aws-sdk-locationservice 1.12.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -187,7 +187,12 @@ module Aws::LocationService
187
187
  PlaceIndexSearchResultLimit = Shapes::IntegerShape.new(name: 'PlaceIndexSearchResultLimit')
188
188
  Position = Shapes::ListShape.new(name: 'Position')
189
189
  PositionFiltering = Shapes::StringShape.new(name: 'PositionFiltering')
190
+ PositionalAccuracy = Shapes::StructureShape.new(name: 'PositionalAccuracy')
191
+ PositionalAccuracyHorizontalDouble = Shapes::FloatShape.new(name: 'PositionalAccuracyHorizontalDouble')
190
192
  PricingPlan = Shapes::StringShape.new(name: 'PricingPlan')
193
+ PropertyMap = Shapes::MapShape.new(name: 'PropertyMap')
194
+ PropertyMapKeyString = Shapes::StringShape.new(name: 'PropertyMapKeyString')
195
+ PropertyMapValueString = Shapes::StringShape.new(name: 'PropertyMapValueString')
191
196
  PutGeofenceRequest = Shapes::StructureShape.new(name: 'PutGeofenceRequest')
192
197
  PutGeofenceResponse = Shapes::StructureShape.new(name: 'PutGeofenceResponse')
193
198
  ResourceDescription = Shapes::StringShape.new(name: 'ResourceDescription')
@@ -196,6 +201,8 @@ module Aws::LocationService
196
201
  SearchForPositionResult = Shapes::StructureShape.new(name: 'SearchForPositionResult')
197
202
  SearchForPositionResultDistanceDouble = Shapes::FloatShape.new(name: 'SearchForPositionResultDistanceDouble')
198
203
  SearchForPositionResultList = Shapes::ListShape.new(name: 'SearchForPositionResultList')
204
+ SearchForSuggestionsResult = Shapes::StructureShape.new(name: 'SearchForSuggestionsResult')
205
+ SearchForSuggestionsResultList = Shapes::ListShape.new(name: 'SearchForSuggestionsResultList')
199
206
  SearchForTextResult = Shapes::StructureShape.new(name: 'SearchForTextResult')
200
207
  SearchForTextResultDistanceDouble = Shapes::FloatShape.new(name: 'SearchForTextResultDistanceDouble')
201
208
  SearchForTextResultList = Shapes::ListShape.new(name: 'SearchForTextResultList')
@@ -203,6 +210,10 @@ module Aws::LocationService
203
210
  SearchPlaceIndexForPositionRequest = Shapes::StructureShape.new(name: 'SearchPlaceIndexForPositionRequest')
204
211
  SearchPlaceIndexForPositionResponse = Shapes::StructureShape.new(name: 'SearchPlaceIndexForPositionResponse')
205
212
  SearchPlaceIndexForPositionSummary = Shapes::StructureShape.new(name: 'SearchPlaceIndexForPositionSummary')
213
+ SearchPlaceIndexForSuggestionsRequest = Shapes::StructureShape.new(name: 'SearchPlaceIndexForSuggestionsRequest')
214
+ SearchPlaceIndexForSuggestionsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'SearchPlaceIndexForSuggestionsRequestMaxResultsInteger')
215
+ SearchPlaceIndexForSuggestionsResponse = Shapes::StructureShape.new(name: 'SearchPlaceIndexForSuggestionsResponse')
216
+ SearchPlaceIndexForSuggestionsSummary = Shapes::StructureShape.new(name: 'SearchPlaceIndexForSuggestionsSummary')
206
217
  SearchPlaceIndexForTextRequest = Shapes::StructureShape.new(name: 'SearchPlaceIndexForTextRequest')
207
218
  SearchPlaceIndexForTextResponse = Shapes::StructureShape.new(name: 'SearchPlaceIndexForTextResponse')
208
219
  SearchPlaceIndexForTextSummary = Shapes::StructureShape.new(name: 'SearchPlaceIndexForTextSummary')
@@ -213,6 +224,8 @@ module Aws::LocationService
213
224
  StepGeometryOffsetInteger = Shapes::IntegerShape.new(name: 'StepGeometryOffsetInteger')
214
225
  StepList = Shapes::ListShape.new(name: 'StepList')
215
226
  String = Shapes::StringShape.new(name: 'String')
227
+ SyntheticSearchPlaceIndexForSuggestionsRequestString = Shapes::StringShape.new(name: 'SyntheticSearchPlaceIndexForSuggestionsRequestString')
228
+ SyntheticSearchPlaceIndexForSuggestionsSummaryString = Shapes::StringShape.new(name: 'SyntheticSearchPlaceIndexForSuggestionsSummaryString')
216
229
  SyntheticSearchPlaceIndexForTextRequestString = Shapes::StringShape.new(name: 'SyntheticSearchPlaceIndexForTextRequestString')
217
230
  SyntheticSearchPlaceIndexForTextSummaryString = Shapes::StringShape.new(name: 'SyntheticSearchPlaceIndexForTextSummaryString')
218
231
  TagKey = Shapes::StringShape.new(name: 'TagKey')
@@ -416,7 +429,7 @@ module Aws::LocationService
416
429
  CreateGeofenceCollectionRequest.add_member(:collection_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "CollectionName"))
417
430
  CreateGeofenceCollectionRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
418
431
  CreateGeofenceCollectionRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
419
- CreateGeofenceCollectionRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, required: true, location_name: "PricingPlan"))
432
+ CreateGeofenceCollectionRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, location_name: "PricingPlan"))
420
433
  CreateGeofenceCollectionRequest.add_member(:pricing_plan_data_source, Shapes::ShapeRef.new(shape: String, location_name: "PricingPlanDataSource"))
421
434
  CreateGeofenceCollectionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
422
435
  CreateGeofenceCollectionRequest.struct_class = Types::CreateGeofenceCollectionRequest
@@ -429,7 +442,7 @@ module Aws::LocationService
429
442
  CreateMapRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: MapConfiguration, required: true, location_name: "Configuration"))
430
443
  CreateMapRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
431
444
  CreateMapRequest.add_member(:map_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "MapName"))
432
- CreateMapRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, required: true, location_name: "PricingPlan"))
445
+ CreateMapRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, location_name: "PricingPlan"))
433
446
  CreateMapRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
434
447
  CreateMapRequest.struct_class = Types::CreateMapRequest
435
448
 
@@ -442,7 +455,7 @@ module Aws::LocationService
442
455
  CreatePlaceIndexRequest.add_member(:data_source_configuration, Shapes::ShapeRef.new(shape: DataSourceConfiguration, location_name: "DataSourceConfiguration"))
443
456
  CreatePlaceIndexRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
444
457
  CreatePlaceIndexRequest.add_member(:index_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "IndexName"))
445
- CreatePlaceIndexRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, required: true, location_name: "PricingPlan"))
458
+ CreatePlaceIndexRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, location_name: "PricingPlan"))
446
459
  CreatePlaceIndexRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
447
460
  CreatePlaceIndexRequest.struct_class = Types::CreatePlaceIndexRequest
448
461
 
@@ -454,7 +467,7 @@ module Aws::LocationService
454
467
  CreateRouteCalculatorRequest.add_member(:calculator_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "CalculatorName"))
455
468
  CreateRouteCalculatorRequest.add_member(:data_source, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DataSource"))
456
469
  CreateRouteCalculatorRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
457
- CreateRouteCalculatorRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, required: true, location_name: "PricingPlan"))
470
+ CreateRouteCalculatorRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, location_name: "PricingPlan"))
458
471
  CreateRouteCalculatorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
459
472
  CreateRouteCalculatorRequest.struct_class = Types::CreateRouteCalculatorRequest
460
473
 
@@ -466,7 +479,7 @@ module Aws::LocationService
466
479
  CreateTrackerRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
467
480
  CreateTrackerRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "KmsKeyId"))
468
481
  CreateTrackerRequest.add_member(:position_filtering, Shapes::ShapeRef.new(shape: PositionFiltering, location_name: "PositionFiltering"))
469
- CreateTrackerRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, required: true, location_name: "PricingPlan"))
482
+ CreateTrackerRequest.add_member(:pricing_plan, Shapes::ShapeRef.new(shape: PricingPlan, location_name: "PricingPlan"))
470
483
  CreateTrackerRequest.add_member(:pricing_plan_data_source, Shapes::ShapeRef.new(shape: String, location_name: "PricingPlanDataSource"))
471
484
  CreateTrackerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
472
485
  CreateTrackerRequest.add_member(:tracker_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "TrackerName"))
@@ -575,16 +588,20 @@ module Aws::LocationService
575
588
  DescribeTrackerResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "UpdateTime"))
576
589
  DescribeTrackerResponse.struct_class = Types::DescribeTrackerResponse
577
590
 
591
+ DevicePosition.add_member(:accuracy, Shapes::ShapeRef.new(shape: PositionalAccuracy, location_name: "Accuracy"))
578
592
  DevicePosition.add_member(:device_id, Shapes::ShapeRef.new(shape: Id, location_name: "DeviceId"))
579
593
  DevicePosition.add_member(:position, Shapes::ShapeRef.new(shape: Position, required: true, location_name: "Position"))
594
+ DevicePosition.add_member(:position_properties, Shapes::ShapeRef.new(shape: PropertyMap, location_name: "PositionProperties"))
580
595
  DevicePosition.add_member(:received_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ReceivedTime"))
581
596
  DevicePosition.add_member(:sample_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "SampleTime"))
582
597
  DevicePosition.struct_class = Types::DevicePosition
583
598
 
584
599
  DevicePositionList.member = Shapes::ShapeRef.new(shape: DevicePosition)
585
600
 
601
+ DevicePositionUpdate.add_member(:accuracy, Shapes::ShapeRef.new(shape: PositionalAccuracy, location_name: "Accuracy"))
586
602
  DevicePositionUpdate.add_member(:device_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "DeviceId"))
587
603
  DevicePositionUpdate.add_member(:position, Shapes::ShapeRef.new(shape: Position, required: true, location_name: "Position"))
604
+ DevicePositionUpdate.add_member(:position_properties, Shapes::ShapeRef.new(shape: PropertyMap, location_name: "PositionProperties"))
588
605
  DevicePositionUpdate.add_member(:sample_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "SampleTime"))
589
606
  DevicePositionUpdate.struct_class = Types::DevicePositionUpdate
590
607
 
@@ -612,8 +629,10 @@ module Aws::LocationService
612
629
  GetDevicePositionRequest.add_member(:tracker_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "TrackerName"))
613
630
  GetDevicePositionRequest.struct_class = Types::GetDevicePositionRequest
614
631
 
632
+ GetDevicePositionResponse.add_member(:accuracy, Shapes::ShapeRef.new(shape: PositionalAccuracy, location_name: "Accuracy"))
615
633
  GetDevicePositionResponse.add_member(:device_id, Shapes::ShapeRef.new(shape: Id, location_name: "DeviceId"))
616
634
  GetDevicePositionResponse.add_member(:position, Shapes::ShapeRef.new(shape: Position, required: true, location_name: "Position"))
635
+ GetDevicePositionResponse.add_member(:position_properties, Shapes::ShapeRef.new(shape: PropertyMap, location_name: "PositionProperties"))
617
636
  GetDevicePositionResponse.add_member(:received_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "ReceivedTime"))
618
637
  GetDevicePositionResponse.add_member(:sample_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "SampleTime"))
619
638
  GetDevicePositionResponse.struct_class = Types::GetDevicePositionResponse
@@ -702,8 +721,10 @@ module Aws::LocationService
702
721
  ListDevicePositionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
703
722
  ListDevicePositionsResponse.struct_class = Types::ListDevicePositionsResponse
704
723
 
724
+ ListDevicePositionsResponseEntry.add_member(:accuracy, Shapes::ShapeRef.new(shape: PositionalAccuracy, location_name: "Accuracy"))
705
725
  ListDevicePositionsResponseEntry.add_member(:device_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "DeviceId"))
706
726
  ListDevicePositionsResponseEntry.add_member(:position, Shapes::ShapeRef.new(shape: Position, required: true, location_name: "Position"))
727
+ ListDevicePositionsResponseEntry.add_member(:position_properties, Shapes::ShapeRef.new(shape: PropertyMap, location_name: "PositionProperties"))
707
728
  ListDevicePositionsResponseEntry.add_member(:sample_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "SampleTime"))
708
729
  ListDevicePositionsResponseEntry.struct_class = Types::ListDevicePositionsResponseEntry
709
730
 
@@ -853,6 +874,12 @@ module Aws::LocationService
853
874
 
854
875
  Position.member = Shapes::ShapeRef.new(shape: Double)
855
876
 
877
+ PositionalAccuracy.add_member(:horizontal, Shapes::ShapeRef.new(shape: PositionalAccuracyHorizontalDouble, required: true, location_name: "Horizontal"))
878
+ PositionalAccuracy.struct_class = Types::PositionalAccuracy
879
+
880
+ PropertyMap.key = Shapes::ShapeRef.new(shape: PropertyMapKeyString)
881
+ PropertyMap.value = Shapes::ShapeRef.new(shape: PropertyMapValueString)
882
+
856
883
  PutGeofenceRequest.add_member(:collection_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "CollectionName"))
857
884
  PutGeofenceRequest.add_member(:geofence_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "GeofenceId"))
858
885
  PutGeofenceRequest.add_member(:geometry, Shapes::ShapeRef.new(shape: GeofenceGeometry, required: true, location_name: "Geometry"))
@@ -872,6 +899,11 @@ module Aws::LocationService
872
899
 
873
900
  SearchForPositionResultList.member = Shapes::ShapeRef.new(shape: SearchForPositionResult)
874
901
 
902
+ SearchForSuggestionsResult.add_member(:text, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Text"))
903
+ SearchForSuggestionsResult.struct_class = Types::SearchForSuggestionsResult
904
+
905
+ SearchForSuggestionsResultList.member = Shapes::ShapeRef.new(shape: SearchForSuggestionsResult)
906
+
875
907
  SearchForTextResult.add_member(:distance, Shapes::ShapeRef.new(shape: SearchForTextResultDistanceDouble, location_name: "Distance"))
876
908
  SearchForTextResult.add_member(:place, Shapes::ShapeRef.new(shape: Place, required: true, location_name: "Place"))
877
909
  SearchForTextResult.add_member(:relevance, Shapes::ShapeRef.new(shape: SearchForTextResultRelevanceDouble, location_name: "Relevance"))
@@ -895,6 +927,28 @@ module Aws::LocationService
895
927
  SearchPlaceIndexForPositionSummary.add_member(:position, Shapes::ShapeRef.new(shape: Position, required: true, location_name: "Position"))
896
928
  SearchPlaceIndexForPositionSummary.struct_class = Types::SearchPlaceIndexForPositionSummary
897
929
 
930
+ SearchPlaceIndexForSuggestionsRequest.add_member(:bias_position, Shapes::ShapeRef.new(shape: Position, location_name: "BiasPosition"))
931
+ SearchPlaceIndexForSuggestionsRequest.add_member(:filter_b_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "FilterBBox"))
932
+ SearchPlaceIndexForSuggestionsRequest.add_member(:filter_countries, Shapes::ShapeRef.new(shape: CountryCodeList, location_name: "FilterCountries"))
933
+ SearchPlaceIndexForSuggestionsRequest.add_member(:index_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "IndexName"))
934
+ SearchPlaceIndexForSuggestionsRequest.add_member(:language, Shapes::ShapeRef.new(shape: LanguageTag, location_name: "Language"))
935
+ SearchPlaceIndexForSuggestionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchPlaceIndexForSuggestionsRequestMaxResultsInteger, location_name: "MaxResults"))
936
+ SearchPlaceIndexForSuggestionsRequest.add_member(:text, Shapes::ShapeRef.new(shape: SyntheticSearchPlaceIndexForSuggestionsRequestString, required: true, location_name: "Text"))
937
+ SearchPlaceIndexForSuggestionsRequest.struct_class = Types::SearchPlaceIndexForSuggestionsRequest
938
+
939
+ SearchPlaceIndexForSuggestionsResponse.add_member(:results, Shapes::ShapeRef.new(shape: SearchForSuggestionsResultList, required: true, location_name: "Results"))
940
+ SearchPlaceIndexForSuggestionsResponse.add_member(:summary, Shapes::ShapeRef.new(shape: SearchPlaceIndexForSuggestionsSummary, required: true, location_name: "Summary"))
941
+ SearchPlaceIndexForSuggestionsResponse.struct_class = Types::SearchPlaceIndexForSuggestionsResponse
942
+
943
+ SearchPlaceIndexForSuggestionsSummary.add_member(:bias_position, Shapes::ShapeRef.new(shape: Position, location_name: "BiasPosition"))
944
+ SearchPlaceIndexForSuggestionsSummary.add_member(:data_source, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DataSource"))
945
+ SearchPlaceIndexForSuggestionsSummary.add_member(:filter_b_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "FilterBBox"))
946
+ SearchPlaceIndexForSuggestionsSummary.add_member(:filter_countries, Shapes::ShapeRef.new(shape: CountryCodeList, location_name: "FilterCountries"))
947
+ SearchPlaceIndexForSuggestionsSummary.add_member(:language, Shapes::ShapeRef.new(shape: LanguageTag, location_name: "Language"))
948
+ SearchPlaceIndexForSuggestionsSummary.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
949
+ SearchPlaceIndexForSuggestionsSummary.add_member(:text, Shapes::ShapeRef.new(shape: SyntheticSearchPlaceIndexForSuggestionsSummaryString, required: true, location_name: "Text"))
950
+ SearchPlaceIndexForSuggestionsSummary.struct_class = Types::SearchPlaceIndexForSuggestionsSummary
951
+
898
952
  SearchPlaceIndexForTextRequest.add_member(:bias_position, Shapes::ShapeRef.new(shape: Position, location_name: "BiasPosition"))
899
953
  SearchPlaceIndexForTextRequest.add_member(:filter_b_box, Shapes::ShapeRef.new(shape: BoundingBox, location_name: "FilterBBox"))
900
954
  SearchPlaceIndexForTextRequest.add_member(:filter_countries, Shapes::ShapeRef.new(shape: CountryCodeList, location_name: "FilterCountries"))
@@ -1768,6 +1822,22 @@ module Aws::LocationService
1768
1822
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1769
1823
  end)
1770
1824
 
1825
+ api.add_operation(:search_place_index_for_suggestions, Seahorse::Model::Operation.new.tap do |o|
1826
+ o.name = "SearchPlaceIndexForSuggestions"
1827
+ o.http_method = "POST"
1828
+ o.http_request_uri = "/places/v0/indexes/{IndexName}/search/suggestions"
1829
+ o.endpoint_pattern = {
1830
+ "hostPrefix" => "places.",
1831
+ }
1832
+ o.input = Shapes::ShapeRef.new(shape: SearchPlaceIndexForSuggestionsRequest)
1833
+ o.output = Shapes::ShapeRef.new(shape: SearchPlaceIndexForSuggestionsResponse)
1834
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1835
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1836
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1837
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1838
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1839
+ end)
1840
+
1771
1841
  api.add_operation(:search_place_index_for_text, Seahorse::Model::Operation.new.tap do |o|
1772
1842
  o.name = "SearchPlaceIndexForText"
1773
1843
  o.http_method = "POST"