aws-sdk-locationservice 1.24.0 → 1.25.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.
@@ -0,0 +1,174 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::LocationService
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::LocationService::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::LocationService::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::LocationService::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :associate_tracker_consumer
60
+ Aws::LocationService::Endpoints::AssociateTrackerConsumer.build(context)
61
+ when :batch_delete_device_position_history
62
+ Aws::LocationService::Endpoints::BatchDeleteDevicePositionHistory.build(context)
63
+ when :batch_delete_geofence
64
+ Aws::LocationService::Endpoints::BatchDeleteGeofence.build(context)
65
+ when :batch_evaluate_geofences
66
+ Aws::LocationService::Endpoints::BatchEvaluateGeofences.build(context)
67
+ when :batch_get_device_position
68
+ Aws::LocationService::Endpoints::BatchGetDevicePosition.build(context)
69
+ when :batch_put_geofence
70
+ Aws::LocationService::Endpoints::BatchPutGeofence.build(context)
71
+ when :batch_update_device_position
72
+ Aws::LocationService::Endpoints::BatchUpdateDevicePosition.build(context)
73
+ when :calculate_route
74
+ Aws::LocationService::Endpoints::CalculateRoute.build(context)
75
+ when :calculate_route_matrix
76
+ Aws::LocationService::Endpoints::CalculateRouteMatrix.build(context)
77
+ when :create_geofence_collection
78
+ Aws::LocationService::Endpoints::CreateGeofenceCollection.build(context)
79
+ when :create_map
80
+ Aws::LocationService::Endpoints::CreateMap.build(context)
81
+ when :create_place_index
82
+ Aws::LocationService::Endpoints::CreatePlaceIndex.build(context)
83
+ when :create_route_calculator
84
+ Aws::LocationService::Endpoints::CreateRouteCalculator.build(context)
85
+ when :create_tracker
86
+ Aws::LocationService::Endpoints::CreateTracker.build(context)
87
+ when :delete_geofence_collection
88
+ Aws::LocationService::Endpoints::DeleteGeofenceCollection.build(context)
89
+ when :delete_map
90
+ Aws::LocationService::Endpoints::DeleteMap.build(context)
91
+ when :delete_place_index
92
+ Aws::LocationService::Endpoints::DeletePlaceIndex.build(context)
93
+ when :delete_route_calculator
94
+ Aws::LocationService::Endpoints::DeleteRouteCalculator.build(context)
95
+ when :delete_tracker
96
+ Aws::LocationService::Endpoints::DeleteTracker.build(context)
97
+ when :describe_geofence_collection
98
+ Aws::LocationService::Endpoints::DescribeGeofenceCollection.build(context)
99
+ when :describe_map
100
+ Aws::LocationService::Endpoints::DescribeMap.build(context)
101
+ when :describe_place_index
102
+ Aws::LocationService::Endpoints::DescribePlaceIndex.build(context)
103
+ when :describe_route_calculator
104
+ Aws::LocationService::Endpoints::DescribeRouteCalculator.build(context)
105
+ when :describe_tracker
106
+ Aws::LocationService::Endpoints::DescribeTracker.build(context)
107
+ when :disassociate_tracker_consumer
108
+ Aws::LocationService::Endpoints::DisassociateTrackerConsumer.build(context)
109
+ when :get_device_position
110
+ Aws::LocationService::Endpoints::GetDevicePosition.build(context)
111
+ when :get_device_position_history
112
+ Aws::LocationService::Endpoints::GetDevicePositionHistory.build(context)
113
+ when :get_geofence
114
+ Aws::LocationService::Endpoints::GetGeofence.build(context)
115
+ when :get_map_glyphs
116
+ Aws::LocationService::Endpoints::GetMapGlyphs.build(context)
117
+ when :get_map_sprites
118
+ Aws::LocationService::Endpoints::GetMapSprites.build(context)
119
+ when :get_map_style_descriptor
120
+ Aws::LocationService::Endpoints::GetMapStyleDescriptor.build(context)
121
+ when :get_map_tile
122
+ Aws::LocationService::Endpoints::GetMapTile.build(context)
123
+ when :get_place
124
+ Aws::LocationService::Endpoints::GetPlace.build(context)
125
+ when :list_device_positions
126
+ Aws::LocationService::Endpoints::ListDevicePositions.build(context)
127
+ when :list_geofence_collections
128
+ Aws::LocationService::Endpoints::ListGeofenceCollections.build(context)
129
+ when :list_geofences
130
+ Aws::LocationService::Endpoints::ListGeofences.build(context)
131
+ when :list_maps
132
+ Aws::LocationService::Endpoints::ListMaps.build(context)
133
+ when :list_place_indexes
134
+ Aws::LocationService::Endpoints::ListPlaceIndexes.build(context)
135
+ when :list_route_calculators
136
+ Aws::LocationService::Endpoints::ListRouteCalculators.build(context)
137
+ when :list_tags_for_resource
138
+ Aws::LocationService::Endpoints::ListTagsForResource.build(context)
139
+ when :list_tracker_consumers
140
+ Aws::LocationService::Endpoints::ListTrackerConsumers.build(context)
141
+ when :list_trackers
142
+ Aws::LocationService::Endpoints::ListTrackers.build(context)
143
+ when :put_geofence
144
+ Aws::LocationService::Endpoints::PutGeofence.build(context)
145
+ when :search_place_index_for_position
146
+ Aws::LocationService::Endpoints::SearchPlaceIndexForPosition.build(context)
147
+ when :search_place_index_for_suggestions
148
+ Aws::LocationService::Endpoints::SearchPlaceIndexForSuggestions.build(context)
149
+ when :search_place_index_for_text
150
+ Aws::LocationService::Endpoints::SearchPlaceIndexForText.build(context)
151
+ when :tag_resource
152
+ Aws::LocationService::Endpoints::TagResource.build(context)
153
+ when :untag_resource
154
+ Aws::LocationService::Endpoints::UntagResource.build(context)
155
+ when :update_geofence_collection
156
+ Aws::LocationService::Endpoints::UpdateGeofenceCollection.build(context)
157
+ when :update_map
158
+ Aws::LocationService::Endpoints::UpdateMap.build(context)
159
+ when :update_place_index
160
+ Aws::LocationService::Endpoints::UpdatePlaceIndex.build(context)
161
+ when :update_route_calculator
162
+ Aws::LocationService::Endpoints::UpdateRouteCalculator.build(context)
163
+ when :update_tracker
164
+ Aws::LocationService::Endpoints::UpdateTracker.build(context)
165
+ end
166
+ end
167
+ end
168
+
169
+ def add_handlers(handlers, _config)
170
+ handlers.add(Handler, step: :build, priority: 75)
171
+ end
172
+ end
173
+ end
174
+ end
@@ -1456,7 +1456,9 @@ module Aws::LocationService
1456
1456
  # }
1457
1457
  #
1458
1458
  # @!attribute [rw] configuration
1459
- # Specifies the map style selected from an available data provider.
1459
+ # Specifies the `MapConfiguration`, including the map style, for the
1460
+ # map resource that you create. The map style defines the look of maps
1461
+ # and the data provider for your map resource.
1460
1462
  # @return [Types::MapConfiguration]
1461
1463
  #
1462
1464
  # @!attribute [rw] description
@@ -1529,7 +1531,7 @@ module Aws::LocationService
1529
1531
  # The Amazon Resource Name (ARN) for the map resource. Used to specify
1530
1532
  # a resource across all AWS.
1531
1533
  #
1532
- # * Format example: `arn:aws:geo:region:account-id:maps/ExampleMap`
1534
+ # * Format example: `arn:aws:geo:region:account-id:map/ExampleMap`
1533
1535
  #
1534
1536
  # ^
1535
1537
  # @return [String]
@@ -2297,7 +2299,7 @@ module Aws::LocationService
2297
2299
  # The Amazon Resource Name (ARN) for the map resource. Used to specify
2298
2300
  # a resource across all AWS.
2299
2301
  #
2300
- # * Format example: `arn:aws:geo:region:account-id:maps/ExampleMap`
2302
+ # * Format example: `arn:aws:geo:region:account-id:map/ExampleMap`
2301
2303
  #
2302
2304
  # ^
2303
2305
  # @return [String]
@@ -2818,20 +2820,27 @@ module Aws::LocationService
2818
2820
  # @return [Types::Circle]
2819
2821
  #
2820
2822
  # @!attribute [rw] polygon
2821
- # An array of 1 or more linear rings. A linear ring is an array of 4
2822
- # or more vertices, where the first and last vertex are the same to
2823
- # form a closed boundary. Each vertex is a 2-dimensional point of the
2824
- # form: `[longitude, latitude]`.
2825
- #
2826
- # The first linear ring is an outer ring, describing the polygon's
2827
- # boundary. Subsequent linear rings may be inner or outer rings to
2828
- # describe holes and islands. Outer rings must list their vertices in
2829
- # counter-clockwise order around the ring's center, where the left
2830
- # side is the polygon's exterior. Inner rings must list their
2831
- # vertices in clockwise order, where the left side is the polygon's
2832
- # interior.
2833
- #
2834
- # A geofence polygon can consist of between 4 and 1,000 vertices.
2823
+ # A polygon is a list of linear rings which are each made up of a list
2824
+ # of vertices.
2825
+ #
2826
+ # Each vertex is a 2-dimensional point of the form: `[longitude,
2827
+ # latitude]`. This is represented as an array of doubles of length 2
2828
+ # (so `[double, double]`).
2829
+ #
2830
+ # An array of 4 or more vertices, where the first and last vertex are
2831
+ # the same (to form a closed boundary), is called a linear ring. The
2832
+ # linear ring vertices must be listed in counter-clockwise order
2833
+ # around the ring’s interior. The linear ring is represented as an
2834
+ # array of vertices, or an array of arrays of doubles (`[[double,
2835
+ # double], ...]`).
2836
+ #
2837
+ # A geofence consists of a single linear ring. To allow for future
2838
+ # expansion, the Polygon parameter takes an array of linear rings,
2839
+ # which is represented as an array of arrays of arrays of doubles
2840
+ # (`[[[double, double], ...], ...]`).
2841
+ #
2842
+ # A linear ring for use in geofences can consist of between 4 and
2843
+ # 1,000 vertices.
2835
2844
  # @return [Array<Array<Array<Float>>>]
2836
2845
  #
2837
2846
  # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GeofenceGeometry AWS API Documentation
@@ -3131,9 +3140,10 @@ module Aws::LocationService
3131
3140
  #
3132
3141
  # * VectorHereContrast – `Fira GO Regular` \| `Fira GO Bold`
3133
3142
  #
3134
- # * VectorHereExplore, VectorHereExploreTruck – `Firo GO Italic` \|
3135
- # `Fira GO Map` \| `Fira GO Map Bold` \| `Noto Sans CJK JP Bold` \|
3136
- # `Noto Sans CJK JP Light` \| `Noto Sans CJK JP Regular`
3143
+ # * VectorHereExplore, VectorHereExploreTruck,
3144
+ # HybridHereExploreSatellite – `Fira GO Italic` \| `Fira GO Map` \|
3145
+ # `Fira GO Map Bold` \| `Noto Sans CJK JP Bold` \| `Noto Sans CJK JP
3146
+ # Light` \| `Noto Sans CJK JP Regular`
3137
3147
  #
3138
3148
  #
3139
3149
  #
@@ -4417,6 +4427,12 @@ module Aws::LocationService
4417
4427
  # high contrast detailed base map of the world that blends 3D and 2D
4418
4428
  # rendering.
4419
4429
  #
4430
+ # <note markdown="1"> The `VectorHereContrast` style has been renamed from
4431
+ # `VectorHereBerlin`. `VectorHereBerlin` has been deprecated, but
4432
+ # will continue to work in applications that use it.
4433
+ #
4434
+ # </note>
4435
+ #
4420
4436
  # * `VectorHereExplore` – A default HERE map style containing a
4421
4437
  # neutral, global map and its features including roads, buildings,
4422
4438
  # landmarks, and water features. It also now includes a fully
@@ -4427,11 +4443,20 @@ module Aws::LocationService
4427
4443
  # symbolized with highlighted segments and icons on top of HERE
4428
4444
  # Explore to support use cases within transport and logistics.
4429
4445
  #
4430
- # <note markdown="1"> The `VectorHereContrast` style has been renamed from
4431
- # `VectorHereBerlin`. `VectorHereBerlin` has been deprecated, but will
4432
- # continue to work in applications that use it.
4446
+ # * `RasterHereExploreSatellite` A global map containing high
4447
+ # resolution satellite imagery.
4433
4448
  #
4434
- # </note>
4449
+ # * `HybridHereExploreSatellite` – A global map displaying the road
4450
+ # network, street names, and city labels over satellite imagery.
4451
+ # This style will automatically retrieve both raster and vector
4452
+ # tiles, and your charges will be based on total tiles retrieved.
4453
+ #
4454
+ # <note markdown="1"> Hybrid styles use both vector and raster tiles when rendering the
4455
+ # map that you see. This means that more tiles are retrieved than
4456
+ # when using either vector or raster tiles alone. Your charges will
4457
+ # include all tiles retrieved.
4458
+ #
4459
+ # </note>
4435
4460
  #
4436
4461
  #
4437
4462
  #
@@ -4519,7 +4544,7 @@ module Aws::LocationService
4519
4544
  #
4520
4545
  # @!attribute [rw] time_zone
4521
4546
  # The time zone in which the `Place` is located. Returned only when
4522
- # using Here as the selected partner.
4547
+ # using HERE as the selected partner.
4523
4548
  # @return [Types::TimeZone]
4524
4549
  #
4525
4550
  # @!attribute [rw] unit_number
@@ -5880,7 +5905,7 @@ module Aws::LocationService
5880
5905
  # The Amazon Resource Name (ARN) of the updated map resource. Used to
5881
5906
  # specify a resource across AWS.
5882
5907
  #
5883
- # * Format example: `arn:aws:geo:region:account-id:maps/ExampleMap`
5908
+ # * Format example: `arn:aws:geo:region:account-id:map/ExampleMap`
5884
5909
  #
5885
5910
  # ^
5886
5911
  # @return [String]
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-locationservice/types'
15
15
  require_relative 'aws-sdk-locationservice/client_api'
16
+ require_relative 'aws-sdk-locationservice/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-locationservice/client'
17
18
  require_relative 'aws-sdk-locationservice/errors'
18
19
  require_relative 'aws-sdk-locationservice/resource'
20
+ require_relative 'aws-sdk-locationservice/endpoint_parameters'
21
+ require_relative 'aws-sdk-locationservice/endpoint_provider'
22
+ require_relative 'aws-sdk-locationservice/endpoints'
19
23
  require_relative 'aws-sdk-locationservice/customizations'
20
24
 
21
25
  # This module provides support for Amazon Location Service. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-locationservice/customizations'
48
52
  # @!group service
49
53
  module Aws::LocationService
50
54
 
51
- GEM_VERSION = '1.24.0'
55
+ GEM_VERSION = '1.25.0'
52
56
 
53
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.24.0
4
+ version: 1.25.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: 2022-09-27 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-locationservice/client.rb
60
60
  - lib/aws-sdk-locationservice/client_api.rb
61
61
  - lib/aws-sdk-locationservice/customizations.rb
62
+ - lib/aws-sdk-locationservice/endpoint_parameters.rb
63
+ - lib/aws-sdk-locationservice/endpoint_provider.rb
64
+ - lib/aws-sdk-locationservice/endpoints.rb
62
65
  - lib/aws-sdk-locationservice/errors.rb
66
+ - lib/aws-sdk-locationservice/plugins/endpoints.rb
63
67
  - lib/aws-sdk-locationservice/resource.rb
64
68
  - lib/aws-sdk-locationservice/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby