aws-sdk-locationservice 1.28.0 → 1.29.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,13 @@ module Aws::LocationService
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ ApiKey = Shapes::StringShape.new(name: 'ApiKey')
18
+ ApiKeyAction = Shapes::StringShape.new(name: 'ApiKeyAction')
19
+ ApiKeyFilter = Shapes::StructureShape.new(name: 'ApiKeyFilter')
20
+ ApiKeyRestrictions = Shapes::StructureShape.new(name: 'ApiKeyRestrictions')
21
+ ApiKeyRestrictionsAllowActionsList = Shapes::ListShape.new(name: 'ApiKeyRestrictionsAllowActionsList')
22
+ ApiKeyRestrictionsAllowReferersList = Shapes::ListShape.new(name: 'ApiKeyRestrictionsAllowReferersList')
23
+ ApiKeyRestrictionsAllowResourcesList = Shapes::ListShape.new(name: 'ApiKeyRestrictionsAllowResourcesList')
17
24
  Arn = Shapes::StringShape.new(name: 'Arn')
18
25
  ArnList = Shapes::ListShape.new(name: 'ArnList')
19
26
  AssociateTrackerConsumerRequest = Shapes::StructureShape.new(name: 'AssociateTrackerConsumerRequest')
@@ -80,6 +87,8 @@ module Aws::LocationService
80
87
  CountryCodeList = Shapes::ListShape.new(name: 'CountryCodeList')
81
88
  CreateGeofenceCollectionRequest = Shapes::StructureShape.new(name: 'CreateGeofenceCollectionRequest')
82
89
  CreateGeofenceCollectionResponse = Shapes::StructureShape.new(name: 'CreateGeofenceCollectionResponse')
90
+ CreateKeyRequest = Shapes::StructureShape.new(name: 'CreateKeyRequest')
91
+ CreateKeyResponse = Shapes::StructureShape.new(name: 'CreateKeyResponse')
83
92
  CreateMapRequest = Shapes::StructureShape.new(name: 'CreateMapRequest')
84
93
  CreateMapResponse = Shapes::StructureShape.new(name: 'CreateMapResponse')
85
94
  CreatePlaceIndexRequest = Shapes::StructureShape.new(name: 'CreatePlaceIndexRequest')
@@ -91,6 +100,8 @@ module Aws::LocationService
91
100
  DataSourceConfiguration = Shapes::StructureShape.new(name: 'DataSourceConfiguration')
92
101
  DeleteGeofenceCollectionRequest = Shapes::StructureShape.new(name: 'DeleteGeofenceCollectionRequest')
93
102
  DeleteGeofenceCollectionResponse = Shapes::StructureShape.new(name: 'DeleteGeofenceCollectionResponse')
103
+ DeleteKeyRequest = Shapes::StructureShape.new(name: 'DeleteKeyRequest')
104
+ DeleteKeyResponse = Shapes::StructureShape.new(name: 'DeleteKeyResponse')
94
105
  DeleteMapRequest = Shapes::StructureShape.new(name: 'DeleteMapRequest')
95
106
  DeleteMapResponse = Shapes::StructureShape.new(name: 'DeleteMapResponse')
96
107
  DeletePlaceIndexRequest = Shapes::StructureShape.new(name: 'DeletePlaceIndexRequest')
@@ -101,6 +112,8 @@ module Aws::LocationService
101
112
  DeleteTrackerResponse = Shapes::StructureShape.new(name: 'DeleteTrackerResponse')
102
113
  DescribeGeofenceCollectionRequest = Shapes::StructureShape.new(name: 'DescribeGeofenceCollectionRequest')
103
114
  DescribeGeofenceCollectionResponse = Shapes::StructureShape.new(name: 'DescribeGeofenceCollectionResponse')
115
+ DescribeKeyRequest = Shapes::StructureShape.new(name: 'DescribeKeyRequest')
116
+ DescribeKeyResponse = Shapes::StructureShape.new(name: 'DescribeKeyResponse')
104
117
  DescribeMapRequest = Shapes::StructureShape.new(name: 'DescribeMapRequest')
105
118
  DescribeMapResponse = Shapes::StructureShape.new(name: 'DescribeMapResponse')
106
119
  DescribePlaceIndexRequest = Shapes::StructureShape.new(name: 'DescribePlaceIndexRequest')
@@ -170,6 +183,11 @@ module Aws::LocationService
170
183
  ListGeofencesRequest = Shapes::StructureShape.new(name: 'ListGeofencesRequest')
171
184
  ListGeofencesRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListGeofencesRequestMaxResultsInteger')
172
185
  ListGeofencesResponse = Shapes::StructureShape.new(name: 'ListGeofencesResponse')
186
+ ListKeysRequest = Shapes::StructureShape.new(name: 'ListKeysRequest')
187
+ ListKeysRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListKeysRequestMaxResultsInteger')
188
+ ListKeysResponse = Shapes::StructureShape.new(name: 'ListKeysResponse')
189
+ ListKeysResponseEntry = Shapes::StructureShape.new(name: 'ListKeysResponseEntry')
190
+ ListKeysResponseEntryList = Shapes::ListShape.new(name: 'ListKeysResponseEntryList')
173
191
  ListMapsRequest = Shapes::StructureShape.new(name: 'ListMapsRequest')
174
192
  ListMapsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListMapsRequestMaxResultsInteger')
175
193
  ListMapsResponse = Shapes::StructureShape.new(name: 'ListMapsResponse')
@@ -211,6 +229,7 @@ module Aws::LocationService
211
229
  PropertyMapValueString = Shapes::StringShape.new(name: 'PropertyMapValueString')
212
230
  PutGeofenceRequest = Shapes::StructureShape.new(name: 'PutGeofenceRequest')
213
231
  PutGeofenceResponse = Shapes::StructureShape.new(name: 'PutGeofenceResponse')
232
+ RefererPattern = Shapes::StringShape.new(name: 'RefererPattern')
214
233
  ResourceDescription = Shapes::StringShape.new(name: 'ResourceDescription')
215
234
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
216
235
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -244,6 +263,7 @@ module Aws::LocationService
244
263
  SearchPlaceIndexForTextSummary = Shapes::StructureShape.new(name: 'SearchPlaceIndexForTextSummary')
245
264
  SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
246
265
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
266
+ Status = Shapes::StringShape.new(name: 'Status')
247
267
  Step = Shapes::StructureShape.new(name: 'Step')
248
268
  StepDistanceDouble = Shapes::FloatShape.new(name: 'StepDistanceDouble')
249
269
  StepDurationSecondsDouble = Shapes::FloatShape.new(name: 'StepDurationSecondsDouble')
@@ -271,6 +291,8 @@ module Aws::LocationService
271
291
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
272
292
  UpdateGeofenceCollectionRequest = Shapes::StructureShape.new(name: 'UpdateGeofenceCollectionRequest')
273
293
  UpdateGeofenceCollectionResponse = Shapes::StructureShape.new(name: 'UpdateGeofenceCollectionResponse')
294
+ UpdateKeyRequest = Shapes::StructureShape.new(name: 'UpdateKeyRequest')
295
+ UpdateKeyResponse = Shapes::StructureShape.new(name: 'UpdateKeyResponse')
274
296
  UpdateMapRequest = Shapes::StructureShape.new(name: 'UpdateMapRequest')
275
297
  UpdateMapResponse = Shapes::StructureShape.new(name: 'UpdateMapResponse')
276
298
  UpdatePlaceIndexRequest = Shapes::StructureShape.new(name: 'UpdatePlaceIndexRequest')
@@ -288,6 +310,20 @@ module Aws::LocationService
288
310
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
289
311
  AccessDeniedException.struct_class = Types::AccessDeniedException
290
312
 
313
+ ApiKeyFilter.add_member(:key_status, Shapes::ShapeRef.new(shape: Status, location_name: "KeyStatus"))
314
+ ApiKeyFilter.struct_class = Types::ApiKeyFilter
315
+
316
+ ApiKeyRestrictions.add_member(:allow_actions, Shapes::ShapeRef.new(shape: ApiKeyRestrictionsAllowActionsList, required: true, location_name: "AllowActions"))
317
+ ApiKeyRestrictions.add_member(:allow_referers, Shapes::ShapeRef.new(shape: ApiKeyRestrictionsAllowReferersList, location_name: "AllowReferers"))
318
+ ApiKeyRestrictions.add_member(:allow_resources, Shapes::ShapeRef.new(shape: ApiKeyRestrictionsAllowResourcesList, required: true, location_name: "AllowResources"))
319
+ ApiKeyRestrictions.struct_class = Types::ApiKeyRestrictions
320
+
321
+ ApiKeyRestrictionsAllowActionsList.member = Shapes::ShapeRef.new(shape: ApiKeyAction)
322
+
323
+ ApiKeyRestrictionsAllowReferersList.member = Shapes::ShapeRef.new(shape: RefererPattern)
324
+
325
+ ApiKeyRestrictionsAllowResourcesList.member = Shapes::ShapeRef.new(shape: GeoArn)
326
+
291
327
  ArnList.member = Shapes::ShapeRef.new(shape: Arn)
292
328
 
293
329
  AssociateTrackerConsumerRequest.add_member(:consumer_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ConsumerArn"))
@@ -496,6 +532,20 @@ module Aws::LocationService
496
532
  CreateGeofenceCollectionResponse.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreateTime"))
497
533
  CreateGeofenceCollectionResponse.struct_class = Types::CreateGeofenceCollectionResponse
498
534
 
535
+ CreateKeyRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
536
+ CreateKeyRequest.add_member(:expire_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ExpireTime"))
537
+ CreateKeyRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "KeyName"))
538
+ CreateKeyRequest.add_member(:no_expiry, Shapes::ShapeRef.new(shape: Boolean, location_name: "NoExpiry"))
539
+ CreateKeyRequest.add_member(:restrictions, Shapes::ShapeRef.new(shape: ApiKeyRestrictions, required: true, location_name: "Restrictions"))
540
+ CreateKeyRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
541
+ CreateKeyRequest.struct_class = Types::CreateKeyRequest
542
+
543
+ CreateKeyResponse.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreateTime"))
544
+ CreateKeyResponse.add_member(:key, Shapes::ShapeRef.new(shape: ApiKey, required: true, location_name: "Key"))
545
+ CreateKeyResponse.add_member(:key_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "KeyArn"))
546
+ CreateKeyResponse.add_member(:key_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "KeyName"))
547
+ CreateKeyResponse.struct_class = Types::CreateKeyResponse
548
+
499
549
  CreateMapRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: MapConfiguration, required: true, location_name: "Configuration"))
500
550
  CreateMapRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
501
551
  CreateMapRequest.add_member(:map_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "MapName"))
@@ -555,6 +605,11 @@ module Aws::LocationService
555
605
 
556
606
  DeleteGeofenceCollectionResponse.struct_class = Types::DeleteGeofenceCollectionResponse
557
607
 
608
+ DeleteKeyRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "KeyName"))
609
+ DeleteKeyRequest.struct_class = Types::DeleteKeyRequest
610
+
611
+ DeleteKeyResponse.struct_class = Types::DeleteKeyResponse
612
+
558
613
  DeleteMapRequest.add_member(:map_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MapName"))
559
614
  DeleteMapRequest.struct_class = Types::DeleteMapRequest
560
615
 
@@ -589,6 +644,20 @@ module Aws::LocationService
589
644
  DescribeGeofenceCollectionResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "UpdateTime"))
590
645
  DescribeGeofenceCollectionResponse.struct_class = Types::DescribeGeofenceCollectionResponse
591
646
 
647
+ DescribeKeyRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "KeyName"))
648
+ DescribeKeyRequest.struct_class = Types::DescribeKeyRequest
649
+
650
+ DescribeKeyResponse.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreateTime"))
651
+ DescribeKeyResponse.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
652
+ DescribeKeyResponse.add_member(:expire_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ExpireTime"))
653
+ DescribeKeyResponse.add_member(:key, Shapes::ShapeRef.new(shape: ApiKey, required: true, location_name: "Key"))
654
+ DescribeKeyResponse.add_member(:key_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "KeyArn"))
655
+ DescribeKeyResponse.add_member(:key_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "KeyName"))
656
+ DescribeKeyResponse.add_member(:restrictions, Shapes::ShapeRef.new(shape: ApiKeyRestrictions, required: true, location_name: "Restrictions"))
657
+ DescribeKeyResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
658
+ DescribeKeyResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "UpdateTime"))
659
+ DescribeKeyResponse.struct_class = Types::DescribeKeyResponse
660
+
592
661
  DescribeMapRequest.add_member(:map_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MapName"))
593
662
  DescribeMapRequest.struct_class = Types::DescribeMapRequest
594
663
 
@@ -709,34 +778,41 @@ module Aws::LocationService
709
778
 
710
779
  GetMapGlyphsRequest.add_member(:font_stack, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "FontStack"))
711
780
  GetMapGlyphsRequest.add_member(:font_unicode_range, Shapes::ShapeRef.new(shape: GetMapGlyphsRequestFontUnicodeRangeString, required: true, location: "uri", location_name: "FontUnicodeRange"))
781
+ GetMapGlyphsRequest.add_member(:key, Shapes::ShapeRef.new(shape: ApiKey, location: "querystring", location_name: "key"))
712
782
  GetMapGlyphsRequest.add_member(:map_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MapName"))
713
783
  GetMapGlyphsRequest.struct_class = Types::GetMapGlyphsRequest
714
784
 
715
785
  GetMapGlyphsResponse.add_member(:blob, Shapes::ShapeRef.new(shape: Blob, location_name: "Blob"))
786
+ GetMapGlyphsResponse.add_member(:cache_control, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Cache-Control"))
716
787
  GetMapGlyphsResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
717
788
  GetMapGlyphsResponse.struct_class = Types::GetMapGlyphsResponse
718
789
  GetMapGlyphsResponse[:payload] = :blob
719
790
  GetMapGlyphsResponse[:payload_member] = GetMapGlyphsResponse.member(:blob)
720
791
 
721
792
  GetMapSpritesRequest.add_member(:file_name, Shapes::ShapeRef.new(shape: GetMapSpritesRequestFileNameString, required: true, location: "uri", location_name: "FileName"))
793
+ GetMapSpritesRequest.add_member(:key, Shapes::ShapeRef.new(shape: ApiKey, location: "querystring", location_name: "key"))
722
794
  GetMapSpritesRequest.add_member(:map_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MapName"))
723
795
  GetMapSpritesRequest.struct_class = Types::GetMapSpritesRequest
724
796
 
725
797
  GetMapSpritesResponse.add_member(:blob, Shapes::ShapeRef.new(shape: Blob, location_name: "Blob"))
798
+ GetMapSpritesResponse.add_member(:cache_control, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Cache-Control"))
726
799
  GetMapSpritesResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
727
800
  GetMapSpritesResponse.struct_class = Types::GetMapSpritesResponse
728
801
  GetMapSpritesResponse[:payload] = :blob
729
802
  GetMapSpritesResponse[:payload_member] = GetMapSpritesResponse.member(:blob)
730
803
 
804
+ GetMapStyleDescriptorRequest.add_member(:key, Shapes::ShapeRef.new(shape: ApiKey, location: "querystring", location_name: "key"))
731
805
  GetMapStyleDescriptorRequest.add_member(:map_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MapName"))
732
806
  GetMapStyleDescriptorRequest.struct_class = Types::GetMapStyleDescriptorRequest
733
807
 
734
808
  GetMapStyleDescriptorResponse.add_member(:blob, Shapes::ShapeRef.new(shape: Blob, location_name: "Blob"))
809
+ GetMapStyleDescriptorResponse.add_member(:cache_control, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Cache-Control"))
735
810
  GetMapStyleDescriptorResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
736
811
  GetMapStyleDescriptorResponse.struct_class = Types::GetMapStyleDescriptorResponse
737
812
  GetMapStyleDescriptorResponse[:payload] = :blob
738
813
  GetMapStyleDescriptorResponse[:payload_member] = GetMapStyleDescriptorResponse.member(:blob)
739
814
 
815
+ GetMapTileRequest.add_member(:key, Shapes::ShapeRef.new(shape: ApiKey, location: "querystring", location_name: "key"))
740
816
  GetMapTileRequest.add_member(:map_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MapName"))
741
817
  GetMapTileRequest.add_member(:x, Shapes::ShapeRef.new(shape: GetMapTileRequestXString, required: true, location: "uri", location_name: "X"))
742
818
  GetMapTileRequest.add_member(:y, Shapes::ShapeRef.new(shape: GetMapTileRequestYString, required: true, location: "uri", location_name: "Y"))
@@ -744,6 +820,7 @@ module Aws::LocationService
744
820
  GetMapTileRequest.struct_class = Types::GetMapTileRequest
745
821
 
746
822
  GetMapTileResponse.add_member(:blob, Shapes::ShapeRef.new(shape: Blob, location_name: "Blob"))
823
+ GetMapTileResponse.add_member(:cache_control, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Cache-Control"))
747
824
  GetMapTileResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Content-Type"))
748
825
  GetMapTileResponse.struct_class = Types::GetMapTileResponse
749
826
  GetMapTileResponse[:payload] = :blob
@@ -833,6 +910,25 @@ module Aws::LocationService
833
910
  ListGeofencesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
834
911
  ListGeofencesResponse.struct_class = Types::ListGeofencesResponse
835
912
 
913
+ ListKeysRequest.add_member(:filter, Shapes::ShapeRef.new(shape: ApiKeyFilter, location_name: "Filter"))
914
+ ListKeysRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListKeysRequestMaxResultsInteger, location_name: "MaxResults"))
915
+ ListKeysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
916
+ ListKeysRequest.struct_class = Types::ListKeysRequest
917
+
918
+ ListKeysResponse.add_member(:entries, Shapes::ShapeRef.new(shape: ListKeysResponseEntryList, required: true, location_name: "Entries"))
919
+ ListKeysResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
920
+ ListKeysResponse.struct_class = Types::ListKeysResponse
921
+
922
+ ListKeysResponseEntry.add_member(:create_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreateTime"))
923
+ ListKeysResponseEntry.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
924
+ ListKeysResponseEntry.add_member(:expire_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ExpireTime"))
925
+ ListKeysResponseEntry.add_member(:key_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "KeyName"))
926
+ ListKeysResponseEntry.add_member(:restrictions, Shapes::ShapeRef.new(shape: ApiKeyRestrictions, required: true, location_name: "Restrictions"))
927
+ ListKeysResponseEntry.add_member(:update_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "UpdateTime"))
928
+ ListKeysResponseEntry.struct_class = Types::ListKeysResponseEntry
929
+
930
+ ListKeysResponseEntryList.member = Shapes::ShapeRef.new(shape: ListKeysResponseEntry)
931
+
836
932
  ListMapsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMapsRequestMaxResultsInteger, location_name: "MaxResults"))
837
933
  ListMapsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
838
934
  ListMapsRequest.struct_class = Types::ListMapsRequest
@@ -1115,6 +1211,19 @@ module Aws::LocationService
1115
1211
  UpdateGeofenceCollectionResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "UpdateTime"))
1116
1212
  UpdateGeofenceCollectionResponse.struct_class = Types::UpdateGeofenceCollectionResponse
1117
1213
 
1214
+ UpdateKeyRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
1215
+ UpdateKeyRequest.add_member(:expire_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ExpireTime"))
1216
+ UpdateKeyRequest.add_member(:force_update, Shapes::ShapeRef.new(shape: Boolean, location_name: "ForceUpdate"))
1217
+ UpdateKeyRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "KeyName"))
1218
+ UpdateKeyRequest.add_member(:no_expiry, Shapes::ShapeRef.new(shape: Boolean, location_name: "NoExpiry"))
1219
+ UpdateKeyRequest.add_member(:restrictions, Shapes::ShapeRef.new(shape: ApiKeyRestrictions, location_name: "Restrictions"))
1220
+ UpdateKeyRequest.struct_class = Types::UpdateKeyRequest
1221
+
1222
+ UpdateKeyResponse.add_member(:key_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "KeyArn"))
1223
+ UpdateKeyResponse.add_member(:key_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "KeyName"))
1224
+ UpdateKeyResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "UpdateTime"))
1225
+ UpdateKeyResponse.struct_class = Types::UpdateKeyResponse
1226
+
1118
1227
  UpdateMapRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
1119
1228
  UpdateMapRequest.add_member(:map_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "MapName"))
1120
1229
  UpdateMapRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, deprecated: true, location_name: "PricingPlan", metadata: {"deprecatedMessage"=>"Deprecated. If included, the only allowed value is RequestBasedUsage."}))
@@ -1350,6 +1459,23 @@ module Aws::LocationService
1350
1459
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1351
1460
  end)
1352
1461
 
1462
+ api.add_operation(:create_key, Seahorse::Model::Operation.new.tap do |o|
1463
+ o.name = "CreateKey"
1464
+ o.http_method = "POST"
1465
+ o.http_request_uri = "/metadata/v0/keys"
1466
+ o.endpoint_pattern = {
1467
+ "hostPrefix" => "metadata.",
1468
+ }
1469
+ o.input = Shapes::ShapeRef.new(shape: CreateKeyRequest)
1470
+ o.output = Shapes::ShapeRef.new(shape: CreateKeyResponse)
1471
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1472
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1473
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1474
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1475
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1476
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1477
+ end)
1478
+
1353
1479
  api.add_operation(:create_map, Seahorse::Model::Operation.new.tap do |o|
1354
1480
  o.name = "CreateMap"
1355
1481
  o.http_method = "POST"
@@ -1433,6 +1559,22 @@ module Aws::LocationService
1433
1559
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1434
1560
  end)
1435
1561
 
1562
+ api.add_operation(:delete_key, Seahorse::Model::Operation.new.tap do |o|
1563
+ o.name = "DeleteKey"
1564
+ o.http_method = "DELETE"
1565
+ o.http_request_uri = "/metadata/v0/keys/{KeyName}"
1566
+ o.endpoint_pattern = {
1567
+ "hostPrefix" => "metadata.",
1568
+ }
1569
+ o.input = Shapes::ShapeRef.new(shape: DeleteKeyRequest)
1570
+ o.output = Shapes::ShapeRef.new(shape: DeleteKeyResponse)
1571
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1572
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1573
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1574
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1575
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1576
+ end)
1577
+
1436
1578
  api.add_operation(:delete_map, Seahorse::Model::Operation.new.tap do |o|
1437
1579
  o.name = "DeleteMap"
1438
1580
  o.http_method = "DELETE"
@@ -1513,6 +1655,22 @@ module Aws::LocationService
1513
1655
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1514
1656
  end)
1515
1657
 
1658
+ api.add_operation(:describe_key, Seahorse::Model::Operation.new.tap do |o|
1659
+ o.name = "DescribeKey"
1660
+ o.http_method = "GET"
1661
+ o.http_request_uri = "/metadata/v0/keys/{KeyName}"
1662
+ o.endpoint_pattern = {
1663
+ "hostPrefix" => "metadata.",
1664
+ }
1665
+ o.input = Shapes::ShapeRef.new(shape: DescribeKeyRequest)
1666
+ o.output = Shapes::ShapeRef.new(shape: DescribeKeyResponse)
1667
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1668
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1669
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1670
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1671
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1672
+ end)
1673
+
1516
1674
  api.add_operation(:describe_map, Seahorse::Model::Operation.new.tap do |o|
1517
1675
  o.name = "DescribeMap"
1518
1676
  o.http_method = "GET"
@@ -1791,6 +1949,27 @@ module Aws::LocationService
1791
1949
  )
1792
1950
  end)
1793
1951
 
1952
+ api.add_operation(:list_keys, Seahorse::Model::Operation.new.tap do |o|
1953
+ o.name = "ListKeys"
1954
+ o.http_method = "POST"
1955
+ o.http_request_uri = "/metadata/v0/list-keys"
1956
+ o.endpoint_pattern = {
1957
+ "hostPrefix" => "metadata.",
1958
+ }
1959
+ o.input = Shapes::ShapeRef.new(shape: ListKeysRequest)
1960
+ o.output = Shapes::ShapeRef.new(shape: ListKeysResponse)
1961
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1962
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1963
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1964
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1965
+ o[:pager] = Aws::Pager.new(
1966
+ limit_key: "max_results",
1967
+ tokens: {
1968
+ "next_token" => "next_token"
1969
+ }
1970
+ )
1971
+ end)
1972
+
1794
1973
  api.add_operation(:list_maps, Seahorse::Model::Operation.new.tap do |o|
1795
1974
  o.name = "ListMaps"
1796
1975
  o.http_method = "POST"
@@ -2026,6 +2205,22 @@ module Aws::LocationService
2026
2205
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2027
2206
  end)
2028
2207
 
2208
+ api.add_operation(:update_key, Seahorse::Model::Operation.new.tap do |o|
2209
+ o.name = "UpdateKey"
2210
+ o.http_method = "PATCH"
2211
+ o.http_request_uri = "/metadata/v0/keys/{KeyName}"
2212
+ o.endpoint_pattern = {
2213
+ "hostPrefix" => "metadata.",
2214
+ }
2215
+ o.input = Shapes::ShapeRef.new(shape: UpdateKeyRequest)
2216
+ o.output = Shapes::ShapeRef.new(shape: UpdateKeyResponse)
2217
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2218
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2219
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2220
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2221
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2222
+ end)
2223
+
2029
2224
  api.add_operation(:update_map, Seahorse::Model::Operation.new.tap do |o|
2030
2225
  o.name = "UpdateMap"
2031
2226
  o.http_method = "PATCH"
@@ -50,9 +50,6 @@ module Aws::LocationService
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::LocationService
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://geo-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://geo-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://geo.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://geo-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://geo-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://geo.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://geo.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://geo.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -151,6 +151,20 @@ module Aws::LocationService
151
151
  end
152
152
  end
153
153
 
154
+ class CreateKey
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::LocationService::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
154
168
  class CreateMap
155
169
  def self.build(context)
156
170
  unless context.config.regional_endpoint
@@ -221,6 +235,20 @@ module Aws::LocationService
221
235
  end
222
236
  end
223
237
 
238
+ class DeleteKey
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::LocationService::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
224
252
  class DeleteMap
225
253
  def self.build(context)
226
254
  unless context.config.regional_endpoint
@@ -291,6 +319,20 @@ module Aws::LocationService
291
319
  end
292
320
  end
293
321
 
322
+ class DescribeKey
323
+ def self.build(context)
324
+ unless context.config.regional_endpoint
325
+ endpoint = context.config.endpoint.to_s
326
+ end
327
+ Aws::LocationService::EndpointParameters.new(
328
+ region: context.config.region,
329
+ use_dual_stack: context.config.use_dualstack_endpoint,
330
+ use_fips: context.config.use_fips_endpoint,
331
+ endpoint: endpoint,
332
+ )
333
+ end
334
+ end
335
+
294
336
  class DescribeMap
295
337
  def self.build(context)
296
338
  unless context.config.regional_endpoint
@@ -515,6 +557,20 @@ module Aws::LocationService
515
557
  end
516
558
  end
517
559
 
560
+ class ListKeys
561
+ def self.build(context)
562
+ unless context.config.regional_endpoint
563
+ endpoint = context.config.endpoint.to_s
564
+ end
565
+ Aws::LocationService::EndpointParameters.new(
566
+ region: context.config.region,
567
+ use_dual_stack: context.config.use_dualstack_endpoint,
568
+ use_fips: context.config.use_fips_endpoint,
569
+ endpoint: endpoint,
570
+ )
571
+ end
572
+ end
573
+
518
574
  class ListMaps
519
575
  def self.build(context)
520
576
  unless context.config.regional_endpoint
@@ -697,6 +753,20 @@ module Aws::LocationService
697
753
  end
698
754
  end
699
755
 
756
+ class UpdateKey
757
+ def self.build(context)
758
+ unless context.config.regional_endpoint
759
+ endpoint = context.config.endpoint.to_s
760
+ end
761
+ Aws::LocationService::EndpointParameters.new(
762
+ region: context.config.region,
763
+ use_dual_stack: context.config.use_dualstack_endpoint,
764
+ use_fips: context.config.use_fips_endpoint,
765
+ endpoint: endpoint,
766
+ )
767
+ end
768
+ end
769
+
700
770
  class UpdateMap
701
771
  def self.build(context)
702
772
  unless context.config.regional_endpoint
@@ -76,6 +76,8 @@ module Aws::LocationService
76
76
  Aws::LocationService::Endpoints::CalculateRouteMatrix.build(context)
77
77
  when :create_geofence_collection
78
78
  Aws::LocationService::Endpoints::CreateGeofenceCollection.build(context)
79
+ when :create_key
80
+ Aws::LocationService::Endpoints::CreateKey.build(context)
79
81
  when :create_map
80
82
  Aws::LocationService::Endpoints::CreateMap.build(context)
81
83
  when :create_place_index
@@ -86,6 +88,8 @@ module Aws::LocationService
86
88
  Aws::LocationService::Endpoints::CreateTracker.build(context)
87
89
  when :delete_geofence_collection
88
90
  Aws::LocationService::Endpoints::DeleteGeofenceCollection.build(context)
91
+ when :delete_key
92
+ Aws::LocationService::Endpoints::DeleteKey.build(context)
89
93
  when :delete_map
90
94
  Aws::LocationService::Endpoints::DeleteMap.build(context)
91
95
  when :delete_place_index
@@ -96,6 +100,8 @@ module Aws::LocationService
96
100
  Aws::LocationService::Endpoints::DeleteTracker.build(context)
97
101
  when :describe_geofence_collection
98
102
  Aws::LocationService::Endpoints::DescribeGeofenceCollection.build(context)
103
+ when :describe_key
104
+ Aws::LocationService::Endpoints::DescribeKey.build(context)
99
105
  when :describe_map
100
106
  Aws::LocationService::Endpoints::DescribeMap.build(context)
101
107
  when :describe_place_index
@@ -128,6 +134,8 @@ module Aws::LocationService
128
134
  Aws::LocationService::Endpoints::ListGeofenceCollections.build(context)
129
135
  when :list_geofences
130
136
  Aws::LocationService::Endpoints::ListGeofences.build(context)
137
+ when :list_keys
138
+ Aws::LocationService::Endpoints::ListKeys.build(context)
131
139
  when :list_maps
132
140
  Aws::LocationService::Endpoints::ListMaps.build(context)
133
141
  when :list_place_indexes
@@ -154,6 +162,8 @@ module Aws::LocationService
154
162
  Aws::LocationService::Endpoints::UntagResource.build(context)
155
163
  when :update_geofence_collection
156
164
  Aws::LocationService::Endpoints::UpdateGeofenceCollection.build(context)
165
+ when :update_key
166
+ Aws::LocationService::Endpoints::UpdateKey.build(context)
157
167
  when :update_map
158
168
  Aws::LocationService::Endpoints::UpdateMap.build(context)
159
169
  when :update_place_index