aws-sdk-locationservice 1.42.0 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f21f441ef594da351249f1b8f0c7c7fee98bf52c2860a0cde938626bb31d767
4
- data.tar.gz: ea22d8aa9e97ace9ddcbb693edadbb6b1e4958aaed2e5b4b4401da87cead4d0f
3
+ metadata.gz: 93e9fe61b27c4450689cf2675904d8df7550dff97541dbdeff5875d7789b2e3e
4
+ data.tar.gz: d4d2c0cc017600f225d45ffb864d70fcf2b9db0e5e12b7b2388cbd1e703bbbae
5
5
  SHA512:
6
- metadata.gz: 12cb78aee0779d4a2a764a45fc024cb2080f5a56d643936716786f785f95641feec541feeb10e64beb4e313d23b67d3978cc6f6e17ee0a43f4136d992d3ce2fb
7
- data.tar.gz: 05af8631c541ac1c1351eadd10650bd3886454880ae0a50ff0c8c1ff2558bba0f873f36043a834850ff2208faf311fd917d706e6afc6f14bdf9ffd5d9c1b47ef
6
+ metadata.gz: f5047b6482d2b2dfd4ef976d5ea70ebb37ec1a90053168dac5916cc293a951a7e11773f060ffad763716d8fd8581debbd27eb6e1ed5ee1092526c931c3bfc968
7
+ data.tar.gz: e14e84d16379acff2d4d28d83b62859d1374c38818c91f9289d5f92ed9e0dd9575d25ff614c961dfae0feb6b35e78aeb3b00276e180d4b861ac58abc47637652
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.44.0 (2023-12-29)
5
+ ------------------
6
+
7
+ * Feature - This release introduces a new parameter to bypasses an API key's expiry conditions and delete the key.
8
+
9
+ 1.43.0 (2023-12-12)
10
+ ------------------
11
+
12
+ * Feature - This release 1) adds sub-municipality field in Places API for searching and getting places information, and 2) allows optimizing route calculation based on expected arrival time.
13
+
4
14
  1.42.0 (2023-11-28)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.44.0
@@ -812,6 +812,15 @@ module Aws::LocationService
812
812
  # [3]: https://docs.aws.amazon.com/location/latest/developerguide/departure-time.html
813
813
  # [4]: https://docs.aws.amazon.com/location/latest/developerguide/travel-mode.html
814
814
  #
815
+ # @option params [Time,DateTime,Date,Integer,String] :arrival_time
816
+ # Specifies the desired time of arrival. Uses the given time to
817
+ # calculate the route. Otherwise, the best time of day to travel with
818
+ # the best traffic conditions is used to calculate the route.
819
+ #
820
+ # <note markdown="1"> ArrivalTime is not supported Esri.
821
+ #
822
+ # </note>
823
+ #
815
824
  # @option params [required, String] :calculator_name
816
825
  # The name of the route calculator resource that you want to use to
817
826
  # calculate the route.
@@ -858,11 +867,6 @@ module Aws::LocationService
858
867
  # calculate the route. Otherwise, the best time of day to travel with
859
868
  # the best traffic conditions is used to calculate the route.
860
869
  #
861
- # <note markdown="1"> Setting a departure time in the past returns a `400
862
- # ValidationException` error.
863
- #
864
- # </note>
865
- #
866
870
  # * In [ISO 8601][1] format: `YYYY-MM-DDThh:mm:ss.sssZ`. For example,
867
871
  # `2020–07-2T12:15:20.000Z+01:00`
868
872
  #
@@ -912,6 +916,9 @@ module Aws::LocationService
912
916
  #
913
917
  # [1]: https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html
914
918
  #
919
+ # @option params [String] :optimize_for
920
+ # Specifies the distance to optimize for when calculating a route.
921
+ #
915
922
  # @option params [String] :travel_mode
916
923
  # Specifies the mode of transport when calculating a route. Used in
917
924
  # estimating the speed of travel and road compatibility. You can choose
@@ -986,6 +993,7 @@ module Aws::LocationService
986
993
  # @example Request syntax with placeholder values
987
994
  #
988
995
  # resp = client.calculate_route({
996
+ # arrival_time: Time.now,
989
997
  # calculator_name: "ResourceName", # required
990
998
  # car_mode_options: {
991
999
  # avoid_ferries: false,
@@ -998,6 +1006,7 @@ module Aws::LocationService
998
1006
  # distance_unit: "Kilometers", # accepts Kilometers, Miles
999
1007
  # include_leg_geometry: false,
1000
1008
  # key: "ApiKey",
1009
+ # optimize_for: "FastestRoute", # accepts FastestRoute, ShortestRoute
1001
1010
  # travel_mode: "Car", # accepts Car, Truck, Walking, Bicycle, Motorcycle
1002
1011
  # truck_mode_options: {
1003
1012
  # avoid_ferries: false,
@@ -2060,6 +2069,20 @@ module Aws::LocationService
2060
2069
  # Deletes the specified API key. The API key must have been deactivated
2061
2070
  # more than 90 days previously.
2062
2071
  #
2072
+ # @option params [Boolean] :force_delete
2073
+ # ForceDelete bypasses an API key's expiry conditions and deletes the
2074
+ # key. Set the parameter `true` to delete the key or to `false` to not
2075
+ # preemptively delete the API key.
2076
+ #
2077
+ # Valid values: `true`, or `false`.
2078
+ #
2079
+ # Required: No
2080
+ #
2081
+ # <note markdown="1"> This action is irreversible. Only use ForceDelete if you are certain
2082
+ # the key is no longer in use.
2083
+ #
2084
+ # </note>
2085
+ #
2063
2086
  # @option params [required, String] :key_name
2064
2087
  # The name of the API key to delete.
2065
2088
  #
@@ -2068,6 +2091,7 @@ module Aws::LocationService
2068
2091
  # @example Request syntax with placeholder values
2069
2092
  #
2070
2093
  # resp = client.delete_key({
2094
+ # force_delete: false,
2071
2095
  # key_name: "ResourceName", # required
2072
2096
  # })
2073
2097
  #
@@ -3066,6 +3090,7 @@ module Aws::LocationService
3066
3090
  # resp.place.postal_code #=> String
3067
3091
  # resp.place.region #=> String
3068
3092
  # resp.place.street #=> String
3093
+ # resp.place.sub_municipality #=> String
3069
3094
  # resp.place.sub_region #=> String
3070
3095
  # resp.place.supplemental_categories #=> Array
3071
3096
  # resp.place.supplemental_categories[0] #=> String
@@ -3086,7 +3111,7 @@ module Aws::LocationService
3086
3111
  # A batch request to retrieve all device positions.
3087
3112
  #
3088
3113
  # @option params [Types::TrackingFilterGeometry] :filter_geometry
3089
- # The geomerty used to filter device positions.
3114
+ # The geometry used to filter device positions.
3090
3115
  #
3091
3116
  # @option params [Integer] :max_results
3092
3117
  # An optional limit for the number of entries returned in a single call.
@@ -3745,6 +3770,7 @@ module Aws::LocationService
3745
3770
  # resp.results[0].place.postal_code #=> String
3746
3771
  # resp.results[0].place.region #=> String
3747
3772
  # resp.results[0].place.street #=> String
3773
+ # resp.results[0].place.sub_municipality #=> String
3748
3774
  # resp.results[0].place.sub_region #=> String
3749
3775
  # resp.results[0].place.supplemental_categories #=> Array
3750
3776
  # resp.results[0].place.supplemental_categories[0] #=> String
@@ -4095,6 +4121,7 @@ module Aws::LocationService
4095
4121
  # resp.results[0].place.postal_code #=> String
4096
4122
  # resp.results[0].place.region #=> String
4097
4123
  # resp.results[0].place.street #=> String
4124
+ # resp.results[0].place.sub_municipality #=> String
4098
4125
  # resp.results[0].place.sub_region #=> String
4099
4126
  # resp.results[0].place.supplemental_categories #=> Array
4100
4127
  # resp.results[0].place.supplemental_categories[0] #=> String
@@ -4590,7 +4617,7 @@ module Aws::LocationService
4590
4617
  params: params,
4591
4618
  config: config)
4592
4619
  context[:gem_name] = 'aws-sdk-locationservice'
4593
- context[:gem_version] = '1.42.0'
4620
+ context[:gem_version] = '1.44.0'
4594
4621
  Seahorse::Client::Request.new(handlers, context)
4595
4622
  end
4596
4623
 
@@ -220,6 +220,7 @@ module Aws::LocationService
220
220
  MapConfiguration = Shapes::StructureShape.new(name: 'MapConfiguration')
221
221
  MapConfigurationUpdate = Shapes::StructureShape.new(name: 'MapConfigurationUpdate')
222
222
  MapStyle = Shapes::StringShape.new(name: 'MapStyle')
223
+ OptimizationMode = Shapes::StringShape.new(name: 'OptimizationMode')
223
224
  Place = Shapes::StructureShape.new(name: 'Place')
224
225
  PlaceCategory = Shapes::StringShape.new(name: 'PlaceCategory')
225
226
  PlaceCategoryList = Shapes::ListShape.new(name: 'PlaceCategoryList')
@@ -490,6 +491,7 @@ module Aws::LocationService
490
491
  CalculateRouteMatrixSummary.add_member(:route_count, Shapes::ShapeRef.new(shape: CalculateRouteMatrixSummaryRouteCountInteger, required: true, location_name: "RouteCount"))
491
492
  CalculateRouteMatrixSummary.struct_class = Types::CalculateRouteMatrixSummary
492
493
 
494
+ CalculateRouteRequest.add_member(:arrival_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ArrivalTime"))
493
495
  CalculateRouteRequest.add_member(:calculator_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "CalculatorName"))
494
496
  CalculateRouteRequest.add_member(:car_mode_options, Shapes::ShapeRef.new(shape: CalculateRouteCarModeOptions, location_name: "CarModeOptions"))
495
497
  CalculateRouteRequest.add_member(:depart_now, Shapes::ShapeRef.new(shape: Boolean, location_name: "DepartNow"))
@@ -499,6 +501,7 @@ module Aws::LocationService
499
501
  CalculateRouteRequest.add_member(:distance_unit, Shapes::ShapeRef.new(shape: DistanceUnit, location_name: "DistanceUnit"))
500
502
  CalculateRouteRequest.add_member(:include_leg_geometry, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeLegGeometry"))
501
503
  CalculateRouteRequest.add_member(:key, Shapes::ShapeRef.new(shape: ApiKey, location: "querystring", location_name: "key"))
504
+ CalculateRouteRequest.add_member(:optimize_for, Shapes::ShapeRef.new(shape: OptimizationMode, location_name: "OptimizeFor"))
502
505
  CalculateRouteRequest.add_member(:travel_mode, Shapes::ShapeRef.new(shape: TravelMode, location_name: "TravelMode"))
503
506
  CalculateRouteRequest.add_member(:truck_mode_options, Shapes::ShapeRef.new(shape: CalculateRouteTruckModeOptions, location_name: "TruckModeOptions"))
504
507
  CalculateRouteRequest.add_member(:waypoint_positions, Shapes::ShapeRef.new(shape: CalculateRouteRequestWaypointPositionsList, location_name: "WaypointPositions"))
@@ -620,6 +623,7 @@ module Aws::LocationService
620
623
 
621
624
  DeleteGeofenceCollectionResponse.struct_class = Types::DeleteGeofenceCollectionResponse
622
625
 
626
+ DeleteKeyRequest.add_member(:force_delete, Shapes::ShapeRef.new(shape: Boolean, location: "querystring", location_name: "forceDelete"))
623
627
  DeleteKeyRequest.add_member(:key_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "KeyName"))
624
628
  DeleteKeyRequest.struct_class = Types::DeleteKeyRequest
625
629
 
@@ -1058,6 +1062,7 @@ module Aws::LocationService
1058
1062
  Place.add_member(:postal_code, Shapes::ShapeRef.new(shape: String, location_name: "PostalCode"))
1059
1063
  Place.add_member(:region, Shapes::ShapeRef.new(shape: String, location_name: "Region"))
1060
1064
  Place.add_member(:street, Shapes::ShapeRef.new(shape: String, location_name: "Street"))
1065
+ Place.add_member(:sub_municipality, Shapes::ShapeRef.new(shape: String, location_name: "SubMunicipality"))
1061
1066
  Place.add_member(:sub_region, Shapes::ShapeRef.new(shape: String, location_name: "SubRegion"))
1062
1067
  Place.add_member(:supplemental_categories, Shapes::ShapeRef.new(shape: PlaceSupplementalCategoryList, location_name: "SupplementalCategories"))
1063
1068
  Place.add_member(:time_zone, Shapes::ShapeRef.new(shape: TimeZone, location_name: "TimeZone"))
@@ -120,7 +120,7 @@ module Aws::LocationService
120
120
  #
121
121
  # * Other than wildcards, you must include the full ARN, including the
122
122
  # `arn`, `partition`, `service`, `region`, `account-id` and
123
- # `resource-id`, delimited by colons (:).
123
+ # `resource-id` delimited by colons (:).
124
124
  #
125
125
  # * No spaces allowed, even with wildcards. For example,
126
126
  # `arn:aws:geo:region:account-id:map/ExampleMap*`.
@@ -888,6 +888,16 @@ module Aws::LocationService
888
888
  include Aws::Structure
889
889
  end
890
890
 
891
+ # @!attribute [rw] arrival_time
892
+ # Specifies the desired time of arrival. Uses the given time to
893
+ # calculate the route. Otherwise, the best time of day to travel with
894
+ # the best traffic conditions is used to calculate the route.
895
+ #
896
+ # <note markdown="1"> ArrivalTime is not supported Esri.
897
+ #
898
+ # </note>
899
+ # @return [Time]
900
+ #
891
901
  # @!attribute [rw] calculator_name
892
902
  # The name of the route calculator resource that you want to use to
893
903
  # calculate the route.
@@ -938,11 +948,6 @@ module Aws::LocationService
938
948
  # calculate the route. Otherwise, the best time of day to travel with
939
949
  # the best traffic conditions is used to calculate the route.
940
950
  #
941
- # <note markdown="1"> Setting a departure time in the past returns a `400
942
- # ValidationException` error.
943
- #
944
- # </note>
945
- #
946
951
  # * In [ISO 8601][1] format: `YYYY-MM-DDThh:mm:ss.sssZ`. For example,
947
952
  # `2020–07-2T12:15:20.000Z+01:00`
948
953
  #
@@ -997,6 +1002,10 @@ module Aws::LocationService
997
1002
  # [1]: https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html
998
1003
  # @return [String]
999
1004
  #
1005
+ # @!attribute [rw] optimize_for
1006
+ # Specifies the distance to optimize for when calculating a route.
1007
+ # @return [String]
1008
+ #
1000
1009
  # @!attribute [rw] travel_mode
1001
1010
  # Specifies the mode of transport when calculating a route. Used in
1002
1011
  # estimating the speed of travel and road compatibility. You can
@@ -1069,6 +1078,7 @@ module Aws::LocationService
1069
1078
  # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CalculateRouteRequest AWS API Documentation
1070
1079
  #
1071
1080
  class CalculateRouteRequest < Struct.new(
1081
+ :arrival_time,
1072
1082
  :calculator_name,
1073
1083
  :car_mode_options,
1074
1084
  :depart_now,
@@ -1078,6 +1088,7 @@ module Aws::LocationService
1078
1088
  :distance_unit,
1079
1089
  :include_leg_geometry,
1080
1090
  :key,
1091
+ :optimize_for,
1081
1092
  :travel_mode,
1082
1093
  :truck_mode_options,
1083
1094
  :waypoint_positions)
@@ -2115,6 +2126,21 @@ module Aws::LocationService
2115
2126
  #
2116
2127
  class DeleteGeofenceCollectionResponse < Aws::EmptyStructure; end
2117
2128
 
2129
+ # @!attribute [rw] force_delete
2130
+ # ForceDelete bypasses an API key's expiry conditions and deletes the
2131
+ # key. Set the parameter `true` to delete the key or to `false` to not
2132
+ # preemptively delete the API key.
2133
+ #
2134
+ # Valid values: `true`, or `false`.
2135
+ #
2136
+ # Required: No
2137
+ #
2138
+ # <note markdown="1"> This action is irreversible. Only use ForceDelete if you are certain
2139
+ # the key is no longer in use.
2140
+ #
2141
+ # </note>
2142
+ # @return [Boolean]
2143
+ #
2118
2144
  # @!attribute [rw] key_name
2119
2145
  # The name of the API key to delete.
2120
2146
  # @return [String]
@@ -2122,6 +2148,7 @@ module Aws::LocationService
2122
2148
  # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteKeyRequest AWS API Documentation
2123
2149
  #
2124
2150
  class DeleteKeyRequest < Struct.new(
2151
+ :force_delete,
2125
2152
  :key_name)
2126
2153
  SENSITIVE = []
2127
2154
  include Aws::Structure
@@ -3656,7 +3683,7 @@ module Aws::LocationService
3656
3683
  end
3657
3684
 
3658
3685
  # @!attribute [rw] filter_geometry
3659
- # The geomerty used to filter device positions.
3686
+ # The geometry used to filter device positions.
3660
3687
  # @return [Types::TrackingFilterGeometry]
3661
3688
  #
3662
3689
  # @!attribute [rw] max_results
@@ -4802,6 +4829,16 @@ module Aws::LocationService
4802
4829
  # `Main Street`.
4803
4830
  # @return [String]
4804
4831
  #
4832
+ # @!attribute [rw] sub_municipality
4833
+ # An area that's part of a larger municipality. For example,
4834
+ # `Blissville ` is a submunicipality in the Queen County in New York.
4835
+ #
4836
+ # <note markdown="1"> This property supported by Esri and OpenData. The Esri property is
4837
+ # `district`, and the OpenData property is `borough`.
4838
+ #
4839
+ # </note>
4840
+ # @return [String]
4841
+ #
4805
4842
  # @!attribute [rw] sub_region
4806
4843
  # A county, or an area that's part of a larger region. For example,
4807
4844
  # `Metro Vancouver`.
@@ -4850,6 +4887,7 @@ module Aws::LocationService
4850
4887
  :postal_code,
4851
4888
  :region,
4852
4889
  :street,
4890
+ :sub_municipality,
4853
4891
  :sub_region,
4854
4892
  :supplemental_categories,
4855
4893
  :time_zone,
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-locationservice/customizations'
52
52
  # @!group service
53
53
  module Aws::LocationService
54
54
 
55
- GEM_VERSION = '1.42.0'
55
+ GEM_VERSION = '1.44.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-locationservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.42.0
4
+ version: 1.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core