# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE require 'seahorse/client/plugins/content_length.rb' require 'aws-sdk-core/plugins/credentials_configuration.rb' require 'aws-sdk-core/plugins/logging.rb' require 'aws-sdk-core/plugins/param_converter.rb' require 'aws-sdk-core/plugins/param_validator.rb' require 'aws-sdk-core/plugins/user_agent.rb' require 'aws-sdk-core/plugins/helpful_socket_errors.rb' require 'aws-sdk-core/plugins/retry_errors.rb' require 'aws-sdk-core/plugins/global_configuration.rb' require 'aws-sdk-core/plugins/regional_endpoint.rb' require 'aws-sdk-core/plugins/endpoint_discovery.rb' require 'aws-sdk-core/plugins/endpoint_pattern.rb' require 'aws-sdk-core/plugins/response_paging.rb' require 'aws-sdk-core/plugins/stub_responses.rb' require 'aws-sdk-core/plugins/idempotency_token.rb' require 'aws-sdk-core/plugins/jsonvalue_converter.rb' require 'aws-sdk-core/plugins/client_metrics_plugin.rb' require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb' require 'aws-sdk-core/plugins/transfer_encoding.rb' require 'aws-sdk-core/plugins/http_checksum.rb' require 'aws-sdk-core/plugins/checksum_algorithm.rb' require 'aws-sdk-core/plugins/defaults_mode.rb' require 'aws-sdk-core/plugins/recursion_detection.rb' require 'aws-sdk-core/plugins/signature_v4.rb' require 'aws-sdk-core/plugins/protocols/rest_json.rb' Aws::Plugins::GlobalConfiguration.add_identifier(:locationservice) module Aws::LocationService # An API client for LocationService. To construct a client, you need to configure a `:region` and `:credentials`. # # client = Aws::LocationService::Client.new( # region: region_name, # credentials: credentials, # # ... # ) # # For details on configuring region and credentials see # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html). # # See {#initialize} for a full list of supported configuration options. class Client < Seahorse::Client::Base include Aws::ClientStubs @identifier = :locationservice set_api(ClientApi::API) add_plugin(Seahorse::Client::Plugins::ContentLength) add_plugin(Aws::Plugins::CredentialsConfiguration) add_plugin(Aws::Plugins::Logging) add_plugin(Aws::Plugins::ParamConverter) add_plugin(Aws::Plugins::ParamValidator) add_plugin(Aws::Plugins::UserAgent) add_plugin(Aws::Plugins::HelpfulSocketErrors) add_plugin(Aws::Plugins::RetryErrors) add_plugin(Aws::Plugins::GlobalConfiguration) add_plugin(Aws::Plugins::RegionalEndpoint) add_plugin(Aws::Plugins::EndpointDiscovery) add_plugin(Aws::Plugins::EndpointPattern) add_plugin(Aws::Plugins::ResponsePaging) add_plugin(Aws::Plugins::StubResponses) add_plugin(Aws::Plugins::IdempotencyToken) add_plugin(Aws::Plugins::JsonvalueConverter) add_plugin(Aws::Plugins::ClientMetricsPlugin) add_plugin(Aws::Plugins::ClientMetricsSendPlugin) add_plugin(Aws::Plugins::TransferEncoding) add_plugin(Aws::Plugins::HttpChecksum) add_plugin(Aws::Plugins::ChecksumAlgorithm) add_plugin(Aws::Plugins::DefaultsMode) add_plugin(Aws::Plugins::RecursionDetection) add_plugin(Aws::Plugins::SignatureV4) add_plugin(Aws::Plugins::Protocols::RestJson) # @overload initialize(options) # @param [Hash] options # @option options [required, Aws::CredentialProvider] :credentials # Your AWS credentials. This can be an instance of any one of the # following classes: # # * `Aws::Credentials` - Used for configuring static, non-refreshing # credentials. # # * `Aws::SharedCredentials` - Used for loading static credentials from a # shared file, such as `~/.aws/config`. # # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role. # # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to # assume a role after providing credentials via the web. # # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an # access token generated from `aws login`. # # * `Aws::ProcessCredentials` - Used for loading credentials from a # process that outputs to stdout. # # * `Aws::InstanceProfileCredentials` - Used for loading credentials # from an EC2 IMDS on an EC2 instance. # # * `Aws::ECSCredentials` - Used for loading credentials from # instances running in ECS. # # * `Aws::CognitoIdentityCredentials` - Used for loading credentials # from the Cognito Identity service. # # When `:credentials` are not configured directly, the following # locations will be searched for credentials: # # * `Aws.config[:credentials]` # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options. # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'] # * `~/.aws/credentials` # * `~/.aws/config` # * EC2/ECS IMDS instance profile - When used by default, the timeouts # are very aggressive. Construct and pass an instance of # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to # enable retries and extended timeouts. Instance profile credential # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] # to true. # # @option options [required, String] :region # The AWS region to connect to. The configured `:region` is # used to determine the service `:endpoint`. When not passed, # a default `:region` is searched for in the following locations: # # * `Aws.config[:region]` # * `ENV['AWS_REGION']` # * `ENV['AMAZON_REGION']` # * `ENV['AWS_DEFAULT_REGION']` # * `~/.aws/credentials` # * `~/.aws/config` # # @option options [String] :access_key_id # # @option options [Boolean] :active_endpoint_cache (false) # When set to `true`, a thread polling for endpoints will be running in # the background every 60 secs (default). Defaults to `false`. # # @option options [Boolean] :adaptive_retry_wait_to_fill (true) # Used only in `adaptive` retry mode. When true, the request will sleep # until there is sufficent client side capacity to retry the request. # When false, the request will raise a `RetryCapacityNotAvailableError` and will # not retry instead of sleeping. # # @option options [Boolean] :client_side_monitoring (false) # When `true`, client-side metrics will be collected for all API requests from # this client. # # @option options [String] :client_side_monitoring_client_id ("") # Allows you to provide an identifier for this client which will be attached to # all generated client side metrics. Defaults to an empty string. # # @option options [String] :client_side_monitoring_host ("127.0.0.1") # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client # side monitoring agent is running on, where client metrics will be published via UDP. # # @option options [Integer] :client_side_monitoring_port (31000) # Required for publishing client metrics. The port that the client side monitoring # agent is running on, where client metrics will be published via UDP. # # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) # Allows you to provide a custom client-side monitoring publisher class. By default, # will use the Client Side Monitoring Agent Publisher. # # @option options [Boolean] :convert_params (true) # When `true`, an attempt is made to coerce request parameters into # the required types. # # @option options [Boolean] :correct_clock_skew (true) # Used only in `standard` and adaptive retry modes. Specifies whether to apply # a clock skew correction and retry requests with skewed client clocks. # # @option options [String] :defaults_mode ("legacy") # See {Aws::DefaultsModeConfiguration} for a list of the # accepted modes and the configuration defaults that are included. # # @option options [Boolean] :disable_host_prefix_injection (false) # Set to true to disable SDK automatically adding host prefix # to default service endpoint when available. # # @option options [String] :endpoint # The client endpoint is normally constructed from the `:region` # option. You should only configure an `:endpoint` when connecting # to test or custom endpoints. This should be a valid HTTP(S) URI. # # @option options [Integer] :endpoint_cache_max_entries (1000) # Used for the maximum size limit of the LRU cache storing endpoints data # for endpoint discovery enabled operations. Defaults to 1000. # # @option options [Integer] :endpoint_cache_max_threads (10) # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10. # # @option options [Integer] :endpoint_cache_poll_interval (60) # When :endpoint_discovery and :active_endpoint_cache is enabled, # Use this option to config the time interval in seconds for making # requests fetching endpoints information. Defaults to 60 sec. # # @option options [Boolean] :endpoint_discovery (false) # When set to `true`, endpoint discovery will be enabled for operations when available. # # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default) # The log formatter. # # @option options [Symbol] :log_level (:info) # The log level to send messages to the `:logger` at. # # @option options [Logger] :logger # The Logger instance to send log messages to. If this option # is not set, logging will be disabled. # # @option options [Integer] :max_attempts (3) # An integer representing the maximum number attempts that will be made for # a single request, including the initial attempt. For example, # setting this value to 5 will result in a request being retried up to # 4 times. Used in `standard` and `adaptive` retry modes. # # @option options [String] :profile ("default") # Used when loading credentials from the shared credentials file # at HOME/.aws/credentials. When not specified, 'default' is used. # # @option options [Proc] :retry_backoff # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. # This option is only used in the `legacy` retry mode. # # @option options [Float] :retry_base_delay (0.3) # The base delay in seconds used by the default backoff function. This option # is only used in the `legacy` retry mode. # # @option options [Symbol] :retry_jitter (:none) # A delay randomiser function used by the default backoff function. # Some predefined functions can be referenced by name - :none, :equal, :full, # otherwise a Proc that takes and returns a number. This option is only used # in the `legacy` retry mode. # # @see https://www.awsarchitectureblog.com/2015/03/backoff.html # # @option options [Integer] :retry_limit (3) # The maximum number of times to retry failed requests. Only # ~ 500 level server errors and certain ~ 400 level client errors # are retried. Generally, these are throttling errors, data # checksum errors, networking errors, timeout errors, auth errors, # endpoint discovery, and errors from expired credentials. # This option is only used in the `legacy` retry mode. # # @option options [Integer] :retry_max_delay (0) # The maximum number of seconds to delay between retries (0 for no limit) # used by the default backoff function. This option is only used in the # `legacy` retry mode. # # @option options [String] :retry_mode ("legacy") # Specifies which retry algorithm to use. Values are: # # * `legacy` - The pre-existing retry behavior. This is default value if # no retry mode is provided. # # * `standard` - A standardized set of retry rules across the AWS SDKs. # This includes support for retry quotas, which limit the number of # unsuccessful retries a client can make. # # * `adaptive` - An experimental retry mode that includes all the # functionality of `standard` mode along with automatic client side # throttling. This is a provisional mode that may change behavior # in the future. # # # @option options [String] :secret_access_key # # @option options [String] :session_token # # @option options [Boolean] :stub_responses (false) # Causes the client to return stubbed responses. By default # fake responses are generated and returned. You can specify # the response data to return or errors to raise by calling # {ClientStubs#stub_responses}. See {ClientStubs} for more information. # # ** Please note ** When response stubbing is enabled, no HTTP # requests are made, and retries are disabled. # # @option options [Boolean] :use_dualstack_endpoint # When set to `true`, dualstack enabled endpoints (with `.aws` TLD) # will be used if available. # # @option options [Boolean] :use_fips_endpoint # When set to `true`, fips compatible endpoints will be used if available. # When a `fips` region is used, the region is normalized and this config # is set to `true`. # # @option options [Boolean] :validate_params (true) # When `true`, request parameters are validated before # sending the request. # # @option options [URI::HTTP,String] :http_proxy A proxy to send # requests through. Formatted like 'http://proxy.com:123'. # # @option options [Float] :http_open_timeout (15) The number of # seconds to wait when opening a HTTP session before raising a # `Timeout::Error`. # # @option options [Float] :http_read_timeout (60) The default # number of seconds to wait for response data. This value can # safely be set per-request on the session. # # @option options [Float] :http_idle_timeout (5) The number of # seconds a connection is allowed to sit idle before it is # considered stale. Stale connections are closed and removed # from the pool before making a request. # # @option options [Float] :http_continue_timeout (1) The number of # seconds to wait for a 100-continue response before sending the # request body. This option has no effect unless the request has # "Expect" header set to "100-continue". Defaults to `nil` which # disables this behaviour. This value can safely be set per # request on the session. # # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout # in seconds. # # @option options [Boolean] :http_wire_trace (false) When `true`, # HTTP debug output will be sent to the `:logger`. # # @option options [Boolean] :ssl_verify_peer (true) When `true`, # SSL peer certificates are verified when establishing a # connection. # # @option options [String] :ssl_ca_bundle Full path to the SSL # certificate authority bundle file that should be used when # verifying peer certificates. If you do not pass # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default # will be used if available. # # @option options [String] :ssl_ca_directory Full path of the # directory that contains the unbundled SSL certificate # authority files for verifying peer certificates. If you do # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the # system default will be used if available. # def initialize(*args) super end # @!group API Operations # Creates an association between a geofence collection and a tracker # resource. This allows the tracker resource to communicate location # data to the linked geofence collection. # # You can associate up to five geofence collections to each tracker # resource. # # Currently not supported — Cross-account configurations, such as # creating associations between a tracker resource in one account and a # geofence collection in another account. # # # # @option params [required, String] :consumer_arn # The Amazon Resource Name (ARN) for the geofence collection to be # associated to tracker resource. Used when you need to specify a # resource across all AWS. # # * Format example: # `arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer` # # ^ # # @option params [required, String] :tracker_name # The name of the tracker resource to be associated with a geofence # collection. # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.associate_tracker_consumer({ # consumer_arn: "Arn", # required # tracker_name: "ResourceName", # required # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/AssociateTrackerConsumer AWS API Documentation # # @overload associate_tracker_consumer(params = {}) # @param [Hash] params ({}) def associate_tracker_consumer(params = {}, options = {}) req = build_request(:associate_tracker_consumer, params) req.send_request(options) end # Deletes the position history of one or more devices from a tracker # resource. # # @option params [required, Array] :device_ids # Devices whose position history you want to delete. # # * For example, for two devices: `“DeviceIds” : [DeviceId1,DeviceId2]` # # ^ # # @option params [required, String] :tracker_name # The name of the tracker resource to delete the device position history # from. # # @return [Types::BatchDeleteDevicePositionHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::BatchDeleteDevicePositionHistoryResponse#errors #errors} => Array<Types::BatchDeleteDevicePositionHistoryError> # # @example Request syntax with placeholder values # # resp = client.batch_delete_device_position_history({ # device_ids: ["Id"], # required # tracker_name: "ResourceName", # required # }) # # @example Response structure # # resp.errors #=> Array # resp.errors[0].device_id #=> String # resp.errors[0].error.code #=> String, one of "AccessDeniedError", "ConflictError", "InternalServerError", "ResourceNotFoundError", "ThrottlingError", "ValidationError" # resp.errors[0].error.message #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchDeleteDevicePositionHistory AWS API Documentation # # @overload batch_delete_device_position_history(params = {}) # @param [Hash] params ({}) def batch_delete_device_position_history(params = {}, options = {}) req = build_request(:batch_delete_device_position_history, params) req.send_request(options) end # Deletes a batch of geofences from a geofence collection. # # This operation deletes the resource permanently. # # # # @option params [required, String] :collection_name # The geofence collection storing the geofences to be deleted. # # @option params [required, Array] :geofence_ids # The batch of geofences to be deleted. # # @return [Types::BatchDeleteGeofenceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::BatchDeleteGeofenceResponse#errors #errors} => Array<Types::BatchDeleteGeofenceError> # # @example Request syntax with placeholder values # # resp = client.batch_delete_geofence({ # collection_name: "ResourceName", # required # geofence_ids: ["Id"], # required # }) # # @example Response structure # # resp.errors #=> Array # resp.errors[0].error.code #=> String, one of "AccessDeniedError", "ConflictError", "InternalServerError", "ResourceNotFoundError", "ThrottlingError", "ValidationError" # resp.errors[0].error.message #=> String # resp.errors[0].geofence_id #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchDeleteGeofence AWS API Documentation # # @overload batch_delete_geofence(params = {}) # @param [Hash] params ({}) def batch_delete_geofence(params = {}, options = {}) req = build_request(:batch_delete_geofence, params) req.send_request(options) end # Evaluates device positions against the geofence geometries from a # given geofence collection. # # This operation always returns an empty response because geofences are # asynchronously evaluated. The evaluation determines if the device has # entered or exited a geofenced area, and then publishes one of the # following events to Amazon EventBridge: # # * `ENTER` if Amazon Location determines that the tracked device has # entered a geofenced area. # # * `EXIT` if Amazon Location determines that the tracked device has # exited a geofenced area. # # The last geofence that a device was observed within is tracked for 30 # days after the most recent device position update. # # # # Geofence evaluation uses the given device position. It does not # account for the optional `Accuracy` of a `DevicePositionUpdate`. # # # # @option params [required, String] :collection_name # The geofence collection used in evaluating the position of devices # against its geofences. # # @option params [required, Array] :device_position_updates # Contains device details for each device to be evaluated against the # given geofence collection. # # @return [Types::BatchEvaluateGeofencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::BatchEvaluateGeofencesResponse#errors #errors} => Array<Types::BatchEvaluateGeofencesError> # # @example Request syntax with placeholder values # # resp = client.batch_evaluate_geofences({ # collection_name: "ResourceName", # required # device_position_updates: [ # required # { # accuracy: { # horizontal: 1.0, # required # }, # device_id: "Id", # required # position: [1.0], # required # position_properties: { # "PropertyMapKeyString" => "PropertyMapValueString", # }, # sample_time: Time.now, # required # }, # ], # }) # # @example Response structure # # resp.errors #=> Array # resp.errors[0].device_id #=> String # resp.errors[0].error.code #=> String, one of "AccessDeniedError", "ConflictError", "InternalServerError", "ResourceNotFoundError", "ThrottlingError", "ValidationError" # resp.errors[0].error.message #=> String # resp.errors[0].sample_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchEvaluateGeofences AWS API Documentation # # @overload batch_evaluate_geofences(params = {}) # @param [Hash] params ({}) def batch_evaluate_geofences(params = {}, options = {}) req = build_request(:batch_evaluate_geofences, params) req.send_request(options) end # Lists the latest device positions for requested devices. # # @option params [required, Array] :device_ids # Devices whose position you want to retrieve. # # * For example, for two devices: # `device-ids=DeviceId1&device-ids=DeviceId2` # # ^ # # @option params [required, String] :tracker_name # The tracker resource retrieving the device position. # # @return [Types::BatchGetDevicePositionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::BatchGetDevicePositionResponse#device_positions #device_positions} => Array<Types::DevicePosition> # * {Types::BatchGetDevicePositionResponse#errors #errors} => Array<Types::BatchGetDevicePositionError> # # @example Request syntax with placeholder values # # resp = client.batch_get_device_position({ # device_ids: ["Id"], # required # tracker_name: "BatchGetDevicePositionRequestTrackerNameString", # required # }) # # @example Response structure # # resp.device_positions #=> Array # resp.device_positions[0].accuracy.horizontal #=> Float # resp.device_positions[0].device_id #=> String # resp.device_positions[0].position #=> Array # resp.device_positions[0].position[0] #=> Float # resp.device_positions[0].position_properties #=> Hash # resp.device_positions[0].position_properties["PropertyMapKeyString"] #=> String # resp.device_positions[0].received_time #=> Time # resp.device_positions[0].sample_time #=> Time # resp.errors #=> Array # resp.errors[0].device_id #=> String # resp.errors[0].error.code #=> String, one of "AccessDeniedError", "ConflictError", "InternalServerError", "ResourceNotFoundError", "ThrottlingError", "ValidationError" # resp.errors[0].error.message #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchGetDevicePosition AWS API Documentation # # @overload batch_get_device_position(params = {}) # @param [Hash] params ({}) def batch_get_device_position(params = {}, options = {}) req = build_request(:batch_get_device_position, params) req.send_request(options) end # A batch request for storing geofence geometries into a given geofence # collection, or updates the geometry of an existing geofence if a # geofence ID is included in the request. # # @option params [required, String] :collection_name # The geofence collection storing the geofences. # # @option params [required, Array] :entries # The batch of geofences to be stored in a geofence collection. # # @return [Types::BatchPutGeofenceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::BatchPutGeofenceResponse#errors #errors} => Array<Types::BatchPutGeofenceError> # * {Types::BatchPutGeofenceResponse#successes #successes} => Array<Types::BatchPutGeofenceSuccess> # # @example Request syntax with placeholder values # # resp = client.batch_put_geofence({ # collection_name: "ResourceName", # required # entries: [ # required # { # geofence_id: "Id", # required # geometry: { # required # polygon: [ # [ # [1.0], # ], # ], # }, # }, # ], # }) # # @example Response structure # # resp.errors #=> Array # resp.errors[0].error.code #=> String, one of "AccessDeniedError", "ConflictError", "InternalServerError", "ResourceNotFoundError", "ThrottlingError", "ValidationError" # resp.errors[0].error.message #=> String # resp.errors[0].geofence_id #=> String # resp.successes #=> Array # resp.successes[0].create_time #=> Time # resp.successes[0].geofence_id #=> String # resp.successes[0].update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchPutGeofence AWS API Documentation # # @overload batch_put_geofence(params = {}) # @param [Hash] params ({}) def batch_put_geofence(params = {}, options = {}) req = build_request(:batch_put_geofence, params) req.send_request(options) end # Uploads position update data for one or more devices to a tracker # resource. Amazon Location uses the data when it reports the last known # device position and position history. Amazon Location retains location # data for 30 days. # # Position updates are handled based on the `PositionFiltering` property # of the tracker. When `PositionFiltering` is set to `TimeBased`, # updates are evaluated against linked geofence collections, and # location data is stored at a maximum of one position per 30 second # interval. If your update frequency is more often than every 30 # seconds, only one update per 30 seconds is stored for each unique # device ID. # # When `PositionFiltering` is set to `DistanceBased` filtering, location # data is stored and evaluated against linked geofence collections only # if the device has moved more than 30 m (98.4 ft). # # When `PositionFiltering` is set to `AccuracyBased` filtering, location # data is stored and evaluated against linked geofence collections only # if the device has moved more than the measured accuracy. For example, # if two consecutive updates from a device have a horizontal accuracy of # 5 m and 10 m, the second update is neither stored or evaluated if the # device has moved less than 15 m. If `PositionFiltering` is set to # `AccuracyBased` filtering, Amazon Location uses the default value `\{ # "Horizontal": 0\}` when accuracy is not provided on a # `DevicePositionUpdate`. # # # # @option params [required, String] :tracker_name # The name of the tracker resource to update. # # @option params [required, Array] :updates # Contains the position update details for each device. # # @return [Types::BatchUpdateDevicePositionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::BatchUpdateDevicePositionResponse#errors #errors} => Array<Types::BatchUpdateDevicePositionError> # # @example Request syntax with placeholder values # # resp = client.batch_update_device_position({ # tracker_name: "ResourceName", # required # updates: [ # required # { # accuracy: { # horizontal: 1.0, # required # }, # device_id: "Id", # required # position: [1.0], # required # position_properties: { # "PropertyMapKeyString" => "PropertyMapValueString", # }, # sample_time: Time.now, # required # }, # ], # }) # # @example Response structure # # resp.errors #=> Array # resp.errors[0].device_id #=> String # resp.errors[0].error.code #=> String, one of "AccessDeniedError", "ConflictError", "InternalServerError", "ResourceNotFoundError", "ThrottlingError", "ValidationError" # resp.errors[0].error.message #=> String # resp.errors[0].sample_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchUpdateDevicePosition AWS API Documentation # # @overload batch_update_device_position(params = {}) # @param [Hash] params ({}) def batch_update_device_position(params = {}, options = {}) req = build_request(:batch_update_device_position, params) req.send_request(options) end # [Calculates a route][1] given the following required parameters: # `DeparturePosition` and `DestinationPosition`. Requires that you first # [create a route calculator resource][2]. # # By default, a request that doesn't specify a departure time uses the # best time of day to travel with the best traffic conditions when # calculating the route. # # Additional options include: # # * [Specifying a departure time][3] using either `DepartureTime` or # `DepartNow`. This calculates a route based on predictive traffic # data at the given time. # # You can't specify both `DepartureTime` and `DepartNow` in a single # request. Specifying both parameters returns a validation error. # # # # * [Specifying a travel mode][4] using TravelMode sets the # transportation mode used to calculate the routes. This also lets you # specify additional route preferences in `CarModeOptions` if # traveling by `Car`, or `TruckModeOptions` if traveling by `Truck`. # # # # [1]: https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html # [2]: https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html # [3]: https://docs.aws.amazon.com/location/latest/developerguide/departure-time.html # [4]: https://docs.aws.amazon.com/location/latest/developerguide/travel-mode.html # # @option params [required, String] :calculator_name # The name of the route calculator resource that you want to use to # calculate the route. # # @option params [Types::CalculateRouteCarModeOptions] :car_mode_options # Specifies route preferences when traveling by `Car`, such as avoiding # routes that use ferries or tolls. # # Requirements: `TravelMode` must be specified as `Car`. # # @option params [Boolean] :depart_now # Sets the time of departure as the current time. Uses the current time # to calculate a route. Otherwise, the best time of day to travel with # the best traffic conditions is used to calculate the route. # # Default Value: `false` # # Valid Values: `false` \| `true` # # @option params [required, Array] :departure_position # The start position for the route. Defined in [WGS 84][1] format: # `[longitude, latitude]`. # # * For example, `[-123.115, 49.285]` # # ^ # # If you specify a departure that's not located on a road, Amazon # Location [moves the position to the nearest road][2]. If Esri is the # provider for your route calculator, specifying a route that is longer # than 400 km returns a `400 RoutesValidationException` error. # # # # Valid Values: `[-180 to 180,-90 to 90]` # # # # [1]: https://earth-info.nga.mil/GandG/wgs84/index.html # [2]: https://docs.aws.amazon.com/location/latest/developerguide/snap-to-nearby-road.html # # @option params [Time,DateTime,Date,Integer,String] :departure_time # Specifies the desired time of departure. Uses the given time to # calculate the route. Otherwise, the best time of day to travel with # the best traffic conditions is used to calculate the route. # # Setting a departure time in the past returns a `400 # ValidationException` error. # # # # * In [ISO 8601][1] format: `YYYY-MM-DDThh:mm:ss.sssZ`. For example, # `2020–07-2T12:15:20.000Z+01:00` # # ^ # # # # [1]: https://www.iso.org/iso-8601-date-and-time-format.html # # @option params [required, Array] :destination_position # The finish position for the route. Defined in [WGS 84][1] format: # `[longitude, latitude]`. # # * For example, `[-122.339, 47.615]` # # ^ # # If you specify a destination that's not located on a road, Amazon # Location [moves the position to the nearest road][2]. # # # # Valid Values: `[-180 to 180,-90 to 90]` # # # # [1]: https://earth-info.nga.mil/GandG/wgs84/index.html # [2]: https://docs.aws.amazon.com/location/latest/developerguide/snap-to-nearby-road.html # # @option params [String] :distance_unit # Set the unit system to specify the distance. # # Default Value: `Kilometers` # # @option params [Boolean] :include_leg_geometry # Set to include the geometry details in the result for each path # between a pair of positions. # # Default Value: `false` # # Valid Values: `false` \| `true` # # @option params [String] :travel_mode # Specifies the mode of transport when calculating a route. Used in # estimating the speed of travel and road compatibility. # # The `TravelMode` you specify also determines how you specify route # preferences: # # * If traveling by `Car` use the `CarModeOptions` parameter. # # * If traveling by `Truck` use the `TruckModeOptions` parameter. # # Default Value: `Car` # # @option params [Types::CalculateRouteTruckModeOptions] :truck_mode_options # Specifies route preferences when traveling by `Truck`, such as # avoiding routes that use ferries or tolls, and truck specifications to # consider when choosing an optimal road. # # Requirements: `TravelMode` must be specified as `Truck`. # # @option params [Array] :waypoint_positions # Specifies an ordered list of up to 23 intermediate positions to # include along a route between the departure position and destination # position. # # * For example, from the `DeparturePosition` `[-123.115, 49.285]`, the # route follows the order that the waypoint positions are given # `[[-122.757, 49.0021],[-122.349, 47.620]]` # # ^ # # If you specify a waypoint position that's not located on a road, # Amazon Location [moves the position to the nearest road][1]. # # Specifying more than 23 waypoints returns a `400 ValidationException` # error. # # If Esri is the provider for your route calculator, specifying a route # that is longer than 400 km returns a `400 RoutesValidationException` # error. # # # # Valid Values: `[-180 to 180,-90 to 90]` # # # # [1]: https://docs.aws.amazon.com/location/latest/developerguide/snap-to-nearby-road.html # # @return [Types::CalculateRouteResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CalculateRouteResponse#legs #legs} => Array<Types::Leg> # * {Types::CalculateRouteResponse#summary #summary} => Types::CalculateRouteSummary # # @example Request syntax with placeholder values # # resp = client.calculate_route({ # calculator_name: "ResourceName", # required # car_mode_options: { # avoid_ferries: false, # avoid_tolls: false, # }, # depart_now: false, # departure_position: [1.0], # required # departure_time: Time.now, # destination_position: [1.0], # required # distance_unit: "Kilometers", # accepts Kilometers, Miles # include_leg_geometry: false, # travel_mode: "Car", # accepts Car, Truck, Walking # truck_mode_options: { # avoid_ferries: false, # avoid_tolls: false, # dimensions: { # height: 1.0, # length: 1.0, # unit: "Meters", # accepts Meters, Feet # width: 1.0, # }, # weight: { # total: 1.0, # unit: "Kilograms", # accepts Kilograms, Pounds # }, # }, # waypoint_positions: [ # [1.0], # ], # }) # # @example Response structure # # resp.legs #=> Array # resp.legs[0].distance #=> Float # resp.legs[0].duration_seconds #=> Float # resp.legs[0].end_position #=> Array # resp.legs[0].end_position[0] #=> Float # resp.legs[0].geometry.line_string #=> Array # resp.legs[0].geometry.line_string[0] #=> Array # resp.legs[0].geometry.line_string[0][0] #=> Float # resp.legs[0].start_position #=> Array # resp.legs[0].start_position[0] #=> Float # resp.legs[0].steps #=> Array # resp.legs[0].steps[0].distance #=> Float # resp.legs[0].steps[0].duration_seconds #=> Float # resp.legs[0].steps[0].end_position #=> Array # resp.legs[0].steps[0].end_position[0] #=> Float # resp.legs[0].steps[0].geometry_offset #=> Integer # resp.legs[0].steps[0].start_position #=> Array # resp.legs[0].steps[0].start_position[0] #=> Float # resp.summary.data_source #=> String # resp.summary.distance #=> Float # resp.summary.distance_unit #=> String, one of "Kilometers", "Miles" # resp.summary.duration_seconds #=> Float # resp.summary.route_b_box #=> Array # resp.summary.route_b_box[0] #=> Float # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CalculateRoute AWS API Documentation # # @overload calculate_route(params = {}) # @param [Hash] params ({}) def calculate_route(params = {}, options = {}) req = build_request(:calculate_route, params) req.send_request(options) end # [ Calculates a route matrix][1] given the following required # parameters: `DeparturePositions` and `DestinationPositions`. # `CalculateRouteMatrix` calculates routes and returns the travel time # and travel distance from each departure position to each destination # position in the request. For example, given departure positions A and # B, and destination positions X and Y, `CalculateRouteMatrix` will # return time and distance for routes from A to X, A to Y, B to X, and B # to Y (in that order). The number of results returned (and routes # calculated) will be the number of `DeparturePositions` times the # number of `DestinationPositions`. # # Your account is charged for each route calculated, not the number of # requests. # # # # Requires that you first [create a route calculator resource][2]. # # By default, a request that doesn't specify a departure time uses the # best time of day to travel with the best traffic conditions when # calculating routes. # # Additional options include: # # * [ Specifying a departure time][3] using either `DepartureTime` or # `DepartNow`. This calculates routes based on predictive traffic data # at the given time. # # You can't specify both `DepartureTime` and `DepartNow` in a single # request. Specifying both parameters returns a validation error. # # # # * [Specifying a travel mode][4] using TravelMode sets the # transportation mode used to calculate the routes. This also lets you # specify additional route preferences in `CarModeOptions` if # traveling by `Car`, or `TruckModeOptions` if traveling by `Truck`. # # # # [1]: https://docs.aws.amazon.com/location/latest/developerguide/calculate-route-matrix.html # [2]: https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html # [3]: https://docs.aws.amazon.com/location/latest/developerguide/departure-time.html # [4]: https://docs.aws.amazon.com/location/latest/developerguide/travel-mode.html # # @option params [required, String] :calculator_name # The name of the route calculator resource that you want to use to # calculate the route matrix. # # @option params [Types::CalculateRouteCarModeOptions] :car_mode_options # Specifies route preferences when traveling by `Car`, such as avoiding # routes that use ferries or tolls. # # Requirements: `TravelMode` must be specified as `Car`. # # @option params [Boolean] :depart_now # Sets the time of departure as the current time. Uses the current time # to calculate the route matrix. You can't set both `DepartureTime` and # `DepartNow`. If neither is set, the best time of day to travel with # the best traffic conditions is used to calculate the route matrix. # # Default Value: `false` # # Valid Values: `false` \| `true` # # @option params [required, Array] :departure_positions # The list of departure (origin) positions for the route matrix. An # array of points, each of which is itself a 2-value array defined in # [WGS 84][1] format: `[longitude, latitude]`. For example, `[-123.115, # 49.285]`. # # Depending on the data provider selected in the route calculator # resource there may be additional restrictions on the inputs you can # choose. See [ Position restrictions][2] in the *Amazon Location # Service Developer Guide*. # # For route calculators that use Esri as the data provider, if you # specify a departure that's not located on a road, Amazon Location [ # moves the position to the nearest road][3]. The snapped value is # available in the result in `SnappedDeparturePositions`. # # # # Valid Values: `[-180 to 180,-90 to 90]` # # # # [1]: https://earth-info.nga.mil/GandG/wgs84/index.html # [2]: https://docs.aws.amazon.com/location/latest/developerguide/calculate-route-matrix.html#matrix-routing-position-limits # [3]: https://docs.aws.amazon.com/location/latest/developerguide/snap-to-nearby-road.html # # @option params [Time,DateTime,Date,Integer,String] :departure_time # Specifies the desired time of departure. Uses the given time to # calculate the route matrix. You can't set both `DepartureTime` and # `DepartNow`. If neither is set, the best time of day to travel with # the best traffic conditions is used to calculate the route matrix. # # Setting a departure time in the past returns a `400 # ValidationException` error. # # # # * In [ISO 8601][1] format: `YYYY-MM-DDThh:mm:ss.sssZ`. For example, # `2020–07-2T12:15:20.000Z+01:00` # # ^ # # # # [1]: https://www.iso.org/iso-8601-date-and-time-format.html # # @option params [required, Array] :destination_positions # The list of destination positions for the route matrix. An array of # points, each of which is itself a 2-value array defined in [WGS 84][1] # format: `[longitude, latitude]`. For example, `[-122.339, 47.615]` # # Depending on the data provider selected in the route calculator # resource there may be additional restrictions on the inputs you can # choose. See [ Position restrictions][2] in the *Amazon Location # Service Developer Guide*. # # For route calculators that use Esri as the data provider, if you # specify a destination that's not located on a road, Amazon Location [ # moves the position to the nearest road][3]. The snapped value is # available in the result in `SnappedDestinationPositions`. # # # # Valid Values: `[-180 to 180,-90 to 90]` # # # # [1]: https://earth-info.nga.mil/GandG/wgs84/index.html # [2]: https://docs.aws.amazon.com/location/latest/developerguide/calculate-route-matrix.html#matrix-routing-position-limits # [3]: https://docs.aws.amazon.com/location/latest/developerguide/snap-to-nearby-road.html # # @option params [String] :distance_unit # Set the unit system to specify the distance. # # Default Value: `Kilometers` # # @option params [String] :travel_mode # Specifies the mode of transport when calculating a route. Used in # estimating the speed of travel and road compatibility. # # The `TravelMode` you specify also determines how you specify route # preferences: # # * If traveling by `Car` use the `CarModeOptions` parameter. # # * If traveling by `Truck` use the `TruckModeOptions` parameter. # # Default Value: `Car` # # @option params [Types::CalculateRouteTruckModeOptions] :truck_mode_options # Specifies route preferences when traveling by `Truck`, such as # avoiding routes that use ferries or tolls, and truck specifications to # consider when choosing an optimal road. # # Requirements: `TravelMode` must be specified as `Truck`. # # @return [Types::CalculateRouteMatrixResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CalculateRouteMatrixResponse#route_matrix #route_matrix} => Array<Array<Types::RouteMatrixEntry>> # * {Types::CalculateRouteMatrixResponse#snapped_departure_positions #snapped_departure_positions} => Array<Array<Float>> # * {Types::CalculateRouteMatrixResponse#snapped_destination_positions #snapped_destination_positions} => Array<Array<Float>> # * {Types::CalculateRouteMatrixResponse#summary #summary} => Types::CalculateRouteMatrixSummary # # @example Request syntax with placeholder values # # resp = client.calculate_route_matrix({ # calculator_name: "ResourceName", # required # car_mode_options: { # avoid_ferries: false, # avoid_tolls: false, # }, # depart_now: false, # departure_positions: [ # required # [1.0], # ], # departure_time: Time.now, # destination_positions: [ # required # [1.0], # ], # distance_unit: "Kilometers", # accepts Kilometers, Miles # travel_mode: "Car", # accepts Car, Truck, Walking # truck_mode_options: { # avoid_ferries: false, # avoid_tolls: false, # dimensions: { # height: 1.0, # length: 1.0, # unit: "Meters", # accepts Meters, Feet # width: 1.0, # }, # weight: { # total: 1.0, # unit: "Kilograms", # accepts Kilograms, Pounds # }, # }, # }) # # @example Response structure # # resp.route_matrix #=> Array # resp.route_matrix[0] #=> Array # resp.route_matrix[0][0].distance #=> Float # resp.route_matrix[0][0].duration_seconds #=> Float # resp.route_matrix[0][0].error.code #=> String, one of "RouteNotFound", "RouteTooLong", "PositionsNotFound", "DestinationPositionNotFound", "DeparturePositionNotFound", "OtherValidationError" # resp.route_matrix[0][0].error.message #=> String # resp.snapped_departure_positions #=> Array # resp.snapped_departure_positions[0] #=> Array # resp.snapped_departure_positions[0][0] #=> Float # resp.snapped_destination_positions #=> Array # resp.snapped_destination_positions[0] #=> Array # resp.snapped_destination_positions[0][0] #=> Float # resp.summary.data_source #=> String # resp.summary.distance_unit #=> String, one of "Kilometers", "Miles" # resp.summary.error_count #=> Integer # resp.summary.route_count #=> Integer # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CalculateRouteMatrix AWS API Documentation # # @overload calculate_route_matrix(params = {}) # @param [Hash] params ({}) def calculate_route_matrix(params = {}, options = {}) req = build_request(:calculate_route_matrix, params) req.send_request(options) end # Creates a geofence collection, which manages and stores geofences. # # @option params [required, String] :collection_name # A custom name for the geofence collection. # # Requirements: # # * Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), # periods (.), and underscores (\_). # # * Must be a unique geofence collection name. # # * No spaces allowed. For example, `ExampleGeofenceCollection`. # # @option params [String] :description # An optional description for the geofence collection. # # @option params [String] :kms_key_id # A key identifier for an [AWS KMS customer managed key][1]. Enter a key # ID, key ARN, alias name, or alias ARN. # # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @option params [String] :pricing_plan_data_source # This parameter is no longer used. # # @option params [Hash] :tags # Applies one or more tags to the geofence collection. A tag is a # key-value pair helps manage, identify, search, and filter your # resources by labelling them. # # Format: `"key" : "value"` # # Restrictions: # # * Maximum 50 tags per resource # # * Each resource tag must be unique with a maximum of one value. # # * Maximum key length: 128 Unicode characters in UTF-8 # # * Maximum value length: 256 Unicode characters in UTF-8 # # * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following # characters: + - = . \_ : / @. # # * Cannot use "aws:" as a prefix for a key. # # @return [Types::CreateGeofenceCollectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateGeofenceCollectionResponse#collection_arn #collection_arn} => String # * {Types::CreateGeofenceCollectionResponse#collection_name #collection_name} => String # * {Types::CreateGeofenceCollectionResponse#create_time #create_time} => Time # # @example Request syntax with placeholder values # # resp = client.create_geofence_collection({ # collection_name: "ResourceName", # required # description: "ResourceDescription", # kms_key_id: "KmsKeyId", # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # pricing_plan_data_source: "String", # tags: { # "TagKey" => "TagValue", # }, # }) # # @example Response structure # # resp.collection_arn #=> String # resp.collection_name #=> String # resp.create_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateGeofenceCollection AWS API Documentation # # @overload create_geofence_collection(params = {}) # @param [Hash] params ({}) def create_geofence_collection(params = {}, options = {}) req = build_request(:create_geofence_collection, params) req.send_request(options) end # Creates a map resource in your AWS account, which provides map tiles # of different styles sourced from global location data providers. # # If your application is tracking or routing assets you use in your # business, such as delivery vehicles or employees, you may only use # HERE as your geolocation provider. See section 82 of the [AWS service # terms][1] for more details. # # # # # # [1]: http://aws.amazon.com/service-terms # # @option params [required, Types::MapConfiguration] :configuration # Specifies the map style selected from an available data provider. # # @option params [String] :description # An optional description for the map resource. # # @option params [required, String] :map_name # The name for the map resource. # # Requirements: # # * Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens # (-), periods (.), and underscores (\_). # # * Must be a unique map resource name. # # * No spaces allowed. For example, `ExampleMap`. # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @option params [Hash] :tags # Applies one or more tags to the map resource. A tag is a key-value # pair helps manage, identify, search, and filter your resources by # labelling them. # # Format: `"key" : "value"` # # Restrictions: # # * Maximum 50 tags per resource # # * Each resource tag must be unique with a maximum of one value. # # * Maximum key length: 128 Unicode characters in UTF-8 # # * Maximum value length: 256 Unicode characters in UTF-8 # # * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following # characters: + - = . \_ : / @. # # * Cannot use "aws:" as a prefix for a key. # # @return [Types::CreateMapResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateMapResponse#create_time #create_time} => Time # * {Types::CreateMapResponse#map_arn #map_arn} => String # * {Types::CreateMapResponse#map_name #map_name} => String # # @example Request syntax with placeholder values # # resp = client.create_map({ # configuration: { # required # style: "MapStyle", # required # }, # description: "ResourceDescription", # map_name: "ResourceName", # required # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # tags: { # "TagKey" => "TagValue", # }, # }) # # @example Response structure # # resp.create_time #=> Time # resp.map_arn #=> String # resp.map_name #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateMap AWS API Documentation # # @overload create_map(params = {}) # @param [Hash] params ({}) def create_map(params = {}, options = {}) req = build_request(:create_map, params) req.send_request(options) end # Creates a place index resource in your AWS account. Use a place index # resource to geocode addresses and other text queries by using the # `SearchPlaceIndexForText` operation, and reverse geocode coordinates # by using the `SearchPlaceIndexForPosition` operation, and enable # autosuggestions by using the `SearchPlaceIndexForSuggestions` # operation. # # If your application is tracking or routing assets you use in your # business, such as delivery vehicles or employees, you may only use # HERE as your geolocation provider. See section 82 of the [AWS service # terms][1] for more details. # # # # # # [1]: http://aws.amazon.com/service-terms # # @option params [required, String] :data_source # Specifies the geospatial data provider for the new place index. # # This field is case-sensitive. Enter the valid values as shown. For # example, entering `HERE` returns an error. # # # # Valid values include: # # * `Esri` – For additional information about [Esri][1]'s coverage in # your region of interest, see [Esri details on geocoding # coverage][2]. # # * `Here` – For additional information about [HERE Technologies][3]' # coverage in your region of interest, see [HERE details on goecoding # coverage][4]. # # If you specify HERE Technologies (`Here`) as the data provider, you # may not [store results][5] for locations in Japan. For more # information, see the [AWS Service Terms][6] for Amazon Location # Service. # # For additional information , see [Data providers][7] on the *Amazon # Location Service Developer Guide*. # # # # [1]: https://docs.aws.amazon.com/location/latest/developerguide/esri.html # [2]: https://developers.arcgis.com/rest/geocode/api-reference/geocode-coverage.htm # [3]: https://docs.aws.amazon.com/location/latest/developerguide/HERE.html # [4]: https://developer.here.com/documentation/geocoder/dev_guide/topics/coverage-geocoder.html # [5]: https://docs.aws.amazon.com/location-places/latest/APIReference/API_DataSourceConfiguration.html # [6]: https://aws.amazon.com/service-terms/ # [7]: https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html # # @option params [Types::DataSourceConfiguration] :data_source_configuration # Specifies the data storage option requesting Places. # # @option params [String] :description # The optional description for the place index resource. # # @option params [required, String] :index_name # The name of the place index resource. # # Requirements: # # * Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), # periods (.), and underscores (\_). # # * Must be a unique place index resource name. # # * No spaces allowed. For example, `ExamplePlaceIndex`. # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @option params [Hash] :tags # Applies one or more tags to the place index resource. A tag is a # key-value pair that helps you manage, identify, search, and filter # your resources. # # Format: `"key" : "value"` # # Restrictions: # # * Maximum 50 tags per resource. # # * Each tag key must be unique and must have exactly one associated # value. # # * Maximum key length: 128 Unicode characters in UTF-8. # # * Maximum value length: 256 Unicode characters in UTF-8. # # * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following # characters: + - = . \_ : / @ # # * Cannot use "aws:" as a prefix for a key. # # @return [Types::CreatePlaceIndexResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreatePlaceIndexResponse#create_time #create_time} => Time # * {Types::CreatePlaceIndexResponse#index_arn #index_arn} => String # * {Types::CreatePlaceIndexResponse#index_name #index_name} => String # # @example Request syntax with placeholder values # # resp = client.create_place_index({ # data_source: "String", # required # data_source_configuration: { # intended_use: "SingleUse", # accepts SingleUse, Storage # }, # description: "ResourceDescription", # index_name: "ResourceName", # required # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # tags: { # "TagKey" => "TagValue", # }, # }) # # @example Response structure # # resp.create_time #=> Time # resp.index_arn #=> String # resp.index_name #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreatePlaceIndex AWS API Documentation # # @overload create_place_index(params = {}) # @param [Hash] params ({}) def create_place_index(params = {}, options = {}) req = build_request(:create_place_index, params) req.send_request(options) end # Creates a route calculator resource in your AWS account. # # You can send requests to a route calculator resource to estimate # travel time, distance, and get directions. A route calculator sources # traffic and road network data from your chosen data provider. # # If your application is tracking or routing assets you use in your # business, such as delivery vehicles or employees, you may only use # HERE as your geolocation provider. See section 82 of the [AWS service # terms][1] for more details. # # # # # # [1]: http://aws.amazon.com/service-terms # # @option params [required, String] :calculator_name # The name of the route calculator resource. # # Requirements: # # * Can use alphanumeric characters (A–Z, a–z, 0–9) , hyphens (-), # periods (.), and underscores (\_). # # * Must be a unique Route calculator resource name. # # * No spaces allowed. For example, `ExampleRouteCalculator`. # # @option params [required, String] :data_source # Specifies the data provider of traffic and road network data. # # This field is case-sensitive. Enter the valid values as shown. For # example, entering `HERE` returns an error. Route calculators that use # Esri as a data source only calculate routes that are shorter than 400 # km. # # # # Valid values include: # # * `Esri` – For additional information about [Esri][1]'s coverage in # your region of interest, see [Esri details on street networks and # traffic coverage][2]. # # * `Here` – For additional information about [HERE Technologies][3]' # coverage in your region of interest, see [HERE car routing # coverage][4] and [HERE truck routing coverage][5]. # # For additional information , see [Data providers][6] on the *Amazon # Location Service Developer Guide*. # # # # [1]: https://docs.aws.amazon.com/location/latest/developerguide/esri.html # [2]: https://doc.arcgis.com/en/arcgis-online/reference/network-coverage.htm # [3]: https://docs.aws.amazon.com/location/latest/developerguide/HERE.html # [4]: https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/car-routing.html # [5]: https://developer.here.com/documentation/routing-api/dev_guide/topics/coverage/truck-routing.html # [6]: https://docs.aws.amazon.com/location/latest/developerguide/what-is-data-provider.html # # @option params [String] :description # The optional description for the route calculator resource. # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @option params [Hash] :tags # Applies one or more tags to the route calculator resource. A tag is a # key-value pair helps manage, identify, search, and filter your # resources by labelling them. # # * For example: \\\{ `"tag1" : "value1"`, `"tag2" : "value2"`\\} # # ^ # # Format: `"key" : "value"` # # Restrictions: # # * Maximum 50 tags per resource # # * Each resource tag must be unique with a maximum of one value. # # * Maximum key length: 128 Unicode characters in UTF-8 # # * Maximum value length: 256 Unicode characters in UTF-8 # # * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following # characters: + - = . \_ : / @. # # * Cannot use "aws:" as a prefix for a key. # # @return [Types::CreateRouteCalculatorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateRouteCalculatorResponse#calculator_arn #calculator_arn} => String # * {Types::CreateRouteCalculatorResponse#calculator_name #calculator_name} => String # * {Types::CreateRouteCalculatorResponse#create_time #create_time} => Time # # @example Request syntax with placeholder values # # resp = client.create_route_calculator({ # calculator_name: "ResourceName", # required # data_source: "String", # required # description: "ResourceDescription", # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # tags: { # "TagKey" => "TagValue", # }, # }) # # @example Response structure # # resp.calculator_arn #=> String # resp.calculator_name #=> String # resp.create_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateRouteCalculator AWS API Documentation # # @overload create_route_calculator(params = {}) # @param [Hash] params ({}) def create_route_calculator(params = {}, options = {}) req = build_request(:create_route_calculator, params) req.send_request(options) end # Creates a tracker resource in your AWS account, which lets you # retrieve current and historical location of devices. # # @option params [String] :description # An optional description for the tracker resource. # # @option params [String] :kms_key_id # A key identifier for an [AWS KMS customer managed key][1]. Enter a key # ID, key ARN, alias name, or alias ARN. # # # # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html # # @option params [String] :position_filtering # Specifies the position filtering for the tracker resource. # # Valid values: # # * `TimeBased` - Location updates are evaluated against linked geofence # collections, but not every location update is stored. If your update # frequency is more often than 30 seconds, only one update per 30 # seconds is stored for each unique device ID. # # * `DistanceBased` - If the device has moved less than 30 m (98.4 ft), # location updates are ignored. Location updates within this area are # neither evaluated against linked geofence collections, nor stored. # This helps control costs by reducing the number of geofence # evaluations and historical device positions to paginate through. # Distance-based filtering can also reduce the effects of GPS noise # when displaying device trajectories on a map. # # * `AccuracyBased` - If the device has moved less than the measured # accuracy, location updates are ignored. For example, if two # consecutive updates from a device have a horizontal accuracy of 5 m # and 10 m, the second update is ignored if the device has moved less # than 15 m. Ignored location updates are neither evaluated against # linked geofence collections, nor stored. This can reduce the effects # of GPS noise when displaying device trajectories on a map, and can # help control your costs by reducing the number of geofence # evaluations. # # This field is optional. If not specified, the default value is # `TimeBased`. # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @option params [String] :pricing_plan_data_source # This parameter is no longer used. # # @option params [Hash] :tags # Applies one or more tags to the tracker resource. A tag is a key-value # pair helps manage, identify, search, and filter your resources by # labelling them. # # Format: `"key" : "value"` # # Restrictions: # # * Maximum 50 tags per resource # # * Each resource tag must be unique with a maximum of one value. # # * Maximum key length: 128 Unicode characters in UTF-8 # # * Maximum value length: 256 Unicode characters in UTF-8 # # * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following # characters: + - = . \_ : / @. # # * Cannot use "aws:" as a prefix for a key. # # @option params [required, String] :tracker_name # The name for the tracker resource. # # Requirements: # # * Contain only alphanumeric characters (A-Z, a-z, 0-9) , hyphens (-), # periods (.), and underscores (\_). # # * Must be a unique tracker resource name. # # * No spaces allowed. For example, `ExampleTracker`. # # @return [Types::CreateTrackerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::CreateTrackerResponse#create_time #create_time} => Time # * {Types::CreateTrackerResponse#tracker_arn #tracker_arn} => String # * {Types::CreateTrackerResponse#tracker_name #tracker_name} => String # # @example Request syntax with placeholder values # # resp = client.create_tracker({ # description: "ResourceDescription", # kms_key_id: "KmsKeyId", # position_filtering: "TimeBased", # accepts TimeBased, DistanceBased, AccuracyBased # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # pricing_plan_data_source: "String", # tags: { # "TagKey" => "TagValue", # }, # tracker_name: "ResourceName", # required # }) # # @example Response structure # # resp.create_time #=> Time # resp.tracker_arn #=> String # resp.tracker_name #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateTracker AWS API Documentation # # @overload create_tracker(params = {}) # @param [Hash] params ({}) def create_tracker(params = {}, options = {}) req = build_request(:create_tracker, params) req.send_request(options) end # Deletes a geofence collection from your AWS account. # # This operation deletes the resource permanently. If the geofence # collection is the target of a tracker resource, the devices will no # longer be monitored. # # # # @option params [required, String] :collection_name # The name of the geofence collection to be deleted. # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.delete_geofence_collection({ # collection_name: "ResourceName", # required # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteGeofenceCollection AWS API Documentation # # @overload delete_geofence_collection(params = {}) # @param [Hash] params ({}) def delete_geofence_collection(params = {}, options = {}) req = build_request(:delete_geofence_collection, params) req.send_request(options) end # Deletes a map resource from your AWS account. # # This operation deletes the resource permanently. If the map is being # used in an application, the map may not render. # # # # @option params [required, String] :map_name # The name of the map resource to be deleted. # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.delete_map({ # map_name: "ResourceName", # required # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteMap AWS API Documentation # # @overload delete_map(params = {}) # @param [Hash] params ({}) def delete_map(params = {}, options = {}) req = build_request(:delete_map, params) req.send_request(options) end # Deletes a place index resource from your AWS account. # # This operation deletes the resource permanently. # # # # @option params [required, String] :index_name # The name of the place index resource to be deleted. # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.delete_place_index({ # index_name: "ResourceName", # required # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeletePlaceIndex AWS API Documentation # # @overload delete_place_index(params = {}) # @param [Hash] params ({}) def delete_place_index(params = {}, options = {}) req = build_request(:delete_place_index, params) req.send_request(options) end # Deletes a route calculator resource from your AWS account. # # This operation deletes the resource permanently. # # # # @option params [required, String] :calculator_name # The name of the route calculator resource to be deleted. # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.delete_route_calculator({ # calculator_name: "ResourceName", # required # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteRouteCalculator AWS API Documentation # # @overload delete_route_calculator(params = {}) # @param [Hash] params ({}) def delete_route_calculator(params = {}, options = {}) req = build_request(:delete_route_calculator, params) req.send_request(options) end # Deletes a tracker resource from your AWS account. # # This operation deletes the resource permanently. If the tracker # resource is in use, you may encounter an error. Make sure that the # target resource isn't a dependency for your applications. # # # # @option params [required, String] :tracker_name # The name of the tracker resource to be deleted. # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.delete_tracker({ # tracker_name: "ResourceName", # required # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteTracker AWS API Documentation # # @overload delete_tracker(params = {}) # @param [Hash] params ({}) def delete_tracker(params = {}, options = {}) req = build_request(:delete_tracker, params) req.send_request(options) end # Retrieves the geofence collection details. # # @option params [required, String] :collection_name # The name of the geofence collection. # # @return [Types::DescribeGeofenceCollectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::DescribeGeofenceCollectionResponse#collection_arn #collection_arn} => String # * {Types::DescribeGeofenceCollectionResponse#collection_name #collection_name} => String # * {Types::DescribeGeofenceCollectionResponse#create_time #create_time} => Time # * {Types::DescribeGeofenceCollectionResponse#description #description} => String # * {Types::DescribeGeofenceCollectionResponse#kms_key_id #kms_key_id} => String # * {Types::DescribeGeofenceCollectionResponse#pricing_plan #pricing_plan} => String # * {Types::DescribeGeofenceCollectionResponse#pricing_plan_data_source #pricing_plan_data_source} => String # * {Types::DescribeGeofenceCollectionResponse#tags #tags} => Hash<String,String> # * {Types::DescribeGeofenceCollectionResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.describe_geofence_collection({ # collection_name: "ResourceName", # required # }) # # @example Response structure # # resp.collection_arn #=> String # resp.collection_name #=> String # resp.create_time #=> Time # resp.description #=> String # resp.kms_key_id #=> String # resp.pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.pricing_plan_data_source #=> String # resp.tags #=> Hash # resp.tags["TagKey"] #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeGeofenceCollection AWS API Documentation # # @overload describe_geofence_collection(params = {}) # @param [Hash] params ({}) def describe_geofence_collection(params = {}, options = {}) req = build_request(:describe_geofence_collection, params) req.send_request(options) end # Retrieves the map resource details. # # @option params [required, String] :map_name # The name of the map resource. # # @return [Types::DescribeMapResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::DescribeMapResponse#configuration #configuration} => Types::MapConfiguration # * {Types::DescribeMapResponse#create_time #create_time} => Time # * {Types::DescribeMapResponse#data_source #data_source} => String # * {Types::DescribeMapResponse#description #description} => String # * {Types::DescribeMapResponse#map_arn #map_arn} => String # * {Types::DescribeMapResponse#map_name #map_name} => String # * {Types::DescribeMapResponse#pricing_plan #pricing_plan} => String # * {Types::DescribeMapResponse#tags #tags} => Hash<String,String> # * {Types::DescribeMapResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.describe_map({ # map_name: "ResourceName", # required # }) # # @example Response structure # # resp.configuration.style #=> String # resp.create_time #=> Time # resp.data_source #=> String # resp.description #=> String # resp.map_arn #=> String # resp.map_name #=> String # resp.pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.tags #=> Hash # resp.tags["TagKey"] #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeMap AWS API Documentation # # @overload describe_map(params = {}) # @param [Hash] params ({}) def describe_map(params = {}, options = {}) req = build_request(:describe_map, params) req.send_request(options) end # Retrieves the place index resource details. # # @option params [required, String] :index_name # The name of the place index resource. # # @return [Types::DescribePlaceIndexResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::DescribePlaceIndexResponse#create_time #create_time} => Time # * {Types::DescribePlaceIndexResponse#data_source #data_source} => String # * {Types::DescribePlaceIndexResponse#data_source_configuration #data_source_configuration} => Types::DataSourceConfiguration # * {Types::DescribePlaceIndexResponse#description #description} => String # * {Types::DescribePlaceIndexResponse#index_arn #index_arn} => String # * {Types::DescribePlaceIndexResponse#index_name #index_name} => String # * {Types::DescribePlaceIndexResponse#pricing_plan #pricing_plan} => String # * {Types::DescribePlaceIndexResponse#tags #tags} => Hash<String,String> # * {Types::DescribePlaceIndexResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.describe_place_index({ # index_name: "ResourceName", # required # }) # # @example Response structure # # resp.create_time #=> Time # resp.data_source #=> String # resp.data_source_configuration.intended_use #=> String, one of "SingleUse", "Storage" # resp.description #=> String # resp.index_arn #=> String # resp.index_name #=> String # resp.pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.tags #=> Hash # resp.tags["TagKey"] #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribePlaceIndex AWS API Documentation # # @overload describe_place_index(params = {}) # @param [Hash] params ({}) def describe_place_index(params = {}, options = {}) req = build_request(:describe_place_index, params) req.send_request(options) end # Retrieves the route calculator resource details. # # @option params [required, String] :calculator_name # The name of the route calculator resource. # # @return [Types::DescribeRouteCalculatorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::DescribeRouteCalculatorResponse#calculator_arn #calculator_arn} => String # * {Types::DescribeRouteCalculatorResponse#calculator_name #calculator_name} => String # * {Types::DescribeRouteCalculatorResponse#create_time #create_time} => Time # * {Types::DescribeRouteCalculatorResponse#data_source #data_source} => String # * {Types::DescribeRouteCalculatorResponse#description #description} => String # * {Types::DescribeRouteCalculatorResponse#pricing_plan #pricing_plan} => String # * {Types::DescribeRouteCalculatorResponse#tags #tags} => Hash<String,String> # * {Types::DescribeRouteCalculatorResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.describe_route_calculator({ # calculator_name: "ResourceName", # required # }) # # @example Response structure # # resp.calculator_arn #=> String # resp.calculator_name #=> String # resp.create_time #=> Time # resp.data_source #=> String # resp.description #=> String # resp.pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.tags #=> Hash # resp.tags["TagKey"] #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeRouteCalculator AWS API Documentation # # @overload describe_route_calculator(params = {}) # @param [Hash] params ({}) def describe_route_calculator(params = {}, options = {}) req = build_request(:describe_route_calculator, params) req.send_request(options) end # Retrieves the tracker resource details. # # @option params [required, String] :tracker_name # The name of the tracker resource. # # @return [Types::DescribeTrackerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::DescribeTrackerResponse#create_time #create_time} => Time # * {Types::DescribeTrackerResponse#description #description} => String # * {Types::DescribeTrackerResponse#kms_key_id #kms_key_id} => String # * {Types::DescribeTrackerResponse#position_filtering #position_filtering} => String # * {Types::DescribeTrackerResponse#pricing_plan #pricing_plan} => String # * {Types::DescribeTrackerResponse#pricing_plan_data_source #pricing_plan_data_source} => String # * {Types::DescribeTrackerResponse#tags #tags} => Hash<String,String> # * {Types::DescribeTrackerResponse#tracker_arn #tracker_arn} => String # * {Types::DescribeTrackerResponse#tracker_name #tracker_name} => String # * {Types::DescribeTrackerResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.describe_tracker({ # tracker_name: "ResourceName", # required # }) # # @example Response structure # # resp.create_time #=> Time # resp.description #=> String # resp.kms_key_id #=> String # resp.position_filtering #=> String, one of "TimeBased", "DistanceBased", "AccuracyBased" # resp.pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.pricing_plan_data_source #=> String # resp.tags #=> Hash # resp.tags["TagKey"] #=> String # resp.tracker_arn #=> String # resp.tracker_name #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeTracker AWS API Documentation # # @overload describe_tracker(params = {}) # @param [Hash] params ({}) def describe_tracker(params = {}, options = {}) req = build_request(:describe_tracker, params) req.send_request(options) end # Removes the association between a tracker resource and a geofence # collection. # # Once you unlink a tracker resource from a geofence collection, the # tracker positions will no longer be automatically evaluated against # geofences. # # # # @option params [required, String] :consumer_arn # The Amazon Resource Name (ARN) for the geofence collection to be # disassociated from the tracker resource. Used when you need to specify # a resource across all AWS. # # * Format example: # `arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer` # # ^ # # @option params [required, String] :tracker_name # The name of the tracker resource to be dissociated from the consumer. # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.disassociate_tracker_consumer({ # consumer_arn: "Arn", # required # tracker_name: "ResourceName", # required # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DisassociateTrackerConsumer AWS API Documentation # # @overload disassociate_tracker_consumer(params = {}) # @param [Hash] params ({}) def disassociate_tracker_consumer(params = {}, options = {}) req = build_request(:disassociate_tracker_consumer, params) req.send_request(options) end # Retrieves a device's most recent position according to its sample # time. # # Device positions are deleted after 30 days. # # # # @option params [required, String] :device_id # The device whose position you want to retrieve. # # @option params [required, String] :tracker_name # The tracker resource receiving the position update. # # @return [Types::GetDevicePositionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetDevicePositionResponse#accuracy #accuracy} => Types::PositionalAccuracy # * {Types::GetDevicePositionResponse#device_id #device_id} => String # * {Types::GetDevicePositionResponse#position #position} => Array<Float> # * {Types::GetDevicePositionResponse#position_properties #position_properties} => Hash<String,String> # * {Types::GetDevicePositionResponse#received_time #received_time} => Time # * {Types::GetDevicePositionResponse#sample_time #sample_time} => Time # # @example Request syntax with placeholder values # # resp = client.get_device_position({ # device_id: "Id", # required # tracker_name: "ResourceName", # required # }) # # @example Response structure # # resp.accuracy.horizontal #=> Float # resp.device_id #=> String # resp.position #=> Array # resp.position[0] #=> Float # resp.position_properties #=> Hash # resp.position_properties["PropertyMapKeyString"] #=> String # resp.received_time #=> Time # resp.sample_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetDevicePosition AWS API Documentation # # @overload get_device_position(params = {}) # @param [Hash] params ({}) def get_device_position(params = {}, options = {}) req = build_request(:get_device_position, params) req.send_request(options) end # Retrieves the device position history from a tracker resource within a # specified range of time. # # Device positions are deleted after 30 days. # # # # @option params [required, String] :device_id # The device whose position history you want to retrieve. # # @option params [Time,DateTime,Date,Integer,String] :end_time_exclusive # Specify the end time for the position history in [ ISO 8601][1] # format: `YYYY-MM-DDThh:mm:ss.sssZ`. By default, the value will be the # time that the request is made. # # Requirement: # # * The time specified for `EndTimeExclusive` must be after the time for # `StartTimeInclusive`. # # ^ # # # # [1]: https://www.iso.org/iso-8601-date-and-time-format.html # # @option params [Integer] :max_results # An optional limit for the number of device positions returned in a # single call. # # Default value: `100` # # @option params [String] :next_token # The pagination token specifying which page of results to return in the # response. If no token is provided, the default page is the first page. # # Default value: `null` # # @option params [Time,DateTime,Date,Integer,String] :start_time_inclusive # Specify the start time for the position history in [ ISO 8601][1] # format: `YYYY-MM-DDThh:mm:ss.sssZ`. By default, the value will be 24 # hours prior to the time that the request is made. # # Requirement: # # * The time specified for `StartTimeInclusive` must be before # `EndTimeExclusive`. # # ^ # # # # [1]: https://www.iso.org/iso-8601-date-and-time-format.html # # @option params [required, String] :tracker_name # The tracker resource receiving the request for the device position # history. # # @return [Types::GetDevicePositionHistoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetDevicePositionHistoryResponse#device_positions #device_positions} => Array<Types::DevicePosition> # * {Types::GetDevicePositionHistoryResponse#next_token #next_token} => String # # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. # # @example Request syntax with placeholder values # # resp = client.get_device_position_history({ # device_id: "Id", # required # end_time_exclusive: Time.now, # max_results: 1, # next_token: "Token", # start_time_inclusive: Time.now, # tracker_name: "ResourceName", # required # }) # # @example Response structure # # resp.device_positions #=> Array # resp.device_positions[0].accuracy.horizontal #=> Float # resp.device_positions[0].device_id #=> String # resp.device_positions[0].position #=> Array # resp.device_positions[0].position[0] #=> Float # resp.device_positions[0].position_properties #=> Hash # resp.device_positions[0].position_properties["PropertyMapKeyString"] #=> String # resp.device_positions[0].received_time #=> Time # resp.device_positions[0].sample_time #=> Time # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetDevicePositionHistory AWS API Documentation # # @overload get_device_position_history(params = {}) # @param [Hash] params ({}) def get_device_position_history(params = {}, options = {}) req = build_request(:get_device_position_history, params) req.send_request(options) end # Retrieves the geofence details from a geofence collection. # # @option params [required, String] :collection_name # The geofence collection storing the target geofence. # # @option params [required, String] :geofence_id # The geofence you're retrieving details for. # # @return [Types::GetGeofenceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetGeofenceResponse#create_time #create_time} => Time # * {Types::GetGeofenceResponse#geofence_id #geofence_id} => String # * {Types::GetGeofenceResponse#geometry #geometry} => Types::GeofenceGeometry # * {Types::GetGeofenceResponse#status #status} => String # * {Types::GetGeofenceResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.get_geofence({ # collection_name: "ResourceName", # required # geofence_id: "Id", # required # }) # # @example Response structure # # resp.create_time #=> Time # resp.geofence_id #=> String # resp.geometry.polygon #=> Array # resp.geometry.polygon[0] #=> Array # resp.geometry.polygon[0][0] #=> Array # resp.geometry.polygon[0][0][0] #=> Float # resp.status #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetGeofence AWS API Documentation # # @overload get_geofence(params = {}) # @param [Hash] params ({}) def get_geofence(params = {}, options = {}) req = build_request(:get_geofence, params) req.send_request(options) end # Retrieves glyphs used to display labels on a map. # # @option params [required, String] :font_stack # A comma-separated list of fonts to load glyphs from in order of # preference. For example, `Noto Sans Regular, Arial Unicode`. # # Valid fonts stacks for [Esri][1] styles: # # * VectorEsriDarkGrayCanvas – `Ubuntu Medium Italic` \| `Ubuntu Medium` # \| `Ubuntu Italic` \| `Ubuntu Regular` \| `Ubuntu Bold` # # * VectorEsriLightGrayCanvas – `Ubuntu Italic` \| `Ubuntu Regular` \| # `Ubuntu Light` \| `Ubuntu Bold` # # * VectorEsriTopographic – `Noto Sans Italic` \| `Noto Sans Regular` \| # `Noto Sans Bold` \| `Noto Serif Regular` \| `Roboto Condensed Light # Italic` # # * VectorEsriStreets – `Arial Regular` \| `Arial Italic` \| `Arial # Bold` # # * VectorEsriNavigation – `Arial Regular` \| `Arial Italic` \| `Arial # Bold` # # Valid font stacks for [HERE Technologies][2] styles: # # * VectorHereBerlin – `Fira GO Regular` \| `Fira GO Bold` # # * VectorHereExplore, VectorHereExploreTruck – `Firo GO Italic` \| # `Fira GO Map` \| `Fira GO Map Bold` \| `Noto Sans CJK JP Bold` \| # `Noto Sans CJK JP Light` \| `Noto Sans CJK JP Regular` # # # # [1]: https://docs.aws.amazon.com/location/latest/developerguide/esri.html # [2]: https://docs.aws.amazon.com/location/latest/developerguide/HERE.html # # @option params [required, String] :font_unicode_range # A Unicode range of characters to download glyphs for. Each response # will contain 256 characters. For example, 0–255 includes all # characters from range `U+0000` to `00FF`. Must be aligned to multiples # of 256. # # @option params [required, String] :map_name # The map resource associated with the glyph file. # # @return [Types::GetMapGlyphsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetMapGlyphsResponse#blob #blob} => IO # * {Types::GetMapGlyphsResponse#content_type #content_type} => String # # @example Request syntax with placeholder values # # resp = client.get_map_glyphs({ # font_stack: "String", # required # font_unicode_range: "GetMapGlyphsRequestFontUnicodeRangeString", # required # map_name: "ResourceName", # required # }) # # @example Response structure # # resp.blob #=> IO # resp.content_type #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapGlyphs AWS API Documentation # # @overload get_map_glyphs(params = {}) # @param [Hash] params ({}) def get_map_glyphs(params = {}, options = {}, &block) req = build_request(:get_map_glyphs, params) req.send_request(options, &block) end # Retrieves the sprite sheet corresponding to a map resource. The sprite # sheet is a PNG image paired with a JSON document describing the # offsets of individual icons that will be displayed on a rendered map. # # @option params [required, String] :file_name # The name of the sprite file. Use the following file names for the sprite # sheet: # # * `sprites.png` # # * `sprites@2x.png` for high pixel density displays # # For the JSON document contain image offsets. Use the following file # names: # # * `sprites.json` # # * `sprites@2x.json` for high pixel density displays # # @option params [required, String] :map_name # The map resource associated with the sprite file. # # @return [Types::GetMapSpritesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetMapSpritesResponse#blob #blob} => IO # * {Types::GetMapSpritesResponse#content_type #content_type} => String # # @example Request syntax with placeholder values # # resp = client.get_map_sprites({ # file_name: "GetMapSpritesRequestFileNameString", # required # map_name: "ResourceName", # required # }) # # @example Response structure # # resp.blob #=> IO # resp.content_type #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapSprites AWS API Documentation # # @overload get_map_sprites(params = {}) # @param [Hash] params ({}) def get_map_sprites(params = {}, options = {}, &block) req = build_request(:get_map_sprites, params) req.send_request(options, &block) end # Retrieves the map style descriptor from a map resource. # # The style descriptor contains specifications on how features render on # a map. For example, what data to display, what order to display the # data in, and the style for the data. Style descriptors follow the # Mapbox Style Specification. # # @option params [required, String] :map_name # The map resource to retrieve the style descriptor from. # # @return [Types::GetMapStyleDescriptorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetMapStyleDescriptorResponse#blob #blob} => IO # * {Types::GetMapStyleDescriptorResponse#content_type #content_type} => String # # @example Request syntax with placeholder values # # resp = client.get_map_style_descriptor({ # map_name: "ResourceName", # required # }) # # @example Response structure # # resp.blob #=> IO # resp.content_type #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapStyleDescriptor AWS API Documentation # # @overload get_map_style_descriptor(params = {}) # @param [Hash] params ({}) def get_map_style_descriptor(params = {}, options = {}, &block) req = build_request(:get_map_style_descriptor, params) req.send_request(options, &block) end # Retrieves a vector data tile from the map resource. Map tiles are used # by clients to render a map. they're addressed using a grid # arrangement with an X coordinate, Y coordinate, and Z (zoom) level. # # The origin (0, 0) is the top left of the map. Increasing the zoom # level by 1 doubles both the X and Y dimensions, so a tile containing # data for the entire world at (0/0/0) will be split into 4 tiles at # zoom 1 (1/0/0, 1/0/1, 1/1/0, 1/1/1). # # @option params [required, String] :map_name # The map resource to retrieve the map tiles from. # # @option params [required, String] :x # The X axis value for the map tile. # # @option params [required, String] :y # The Y axis value for the map tile. # # @option params [required, String] :z # The zoom value for the map tile. # # @return [Types::GetMapTileResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetMapTileResponse#blob #blob} => IO # * {Types::GetMapTileResponse#content_type #content_type} => String # # @example Request syntax with placeholder values # # resp = client.get_map_tile({ # map_name: "ResourceName", # required # x: "GetMapTileRequestXString", # required # y: "GetMapTileRequestYString", # required # z: "GetMapTileRequestZString", # required # }) # # @example Response structure # # resp.blob #=> IO # resp.content_type #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapTile AWS API Documentation # # @overload get_map_tile(params = {}) # @param [Hash] params ({}) def get_map_tile(params = {}, options = {}, &block) req = build_request(:get_map_tile, params) req.send_request(options, &block) end # A batch request to retrieve all device positions. # # @option params [Integer] :max_results # An optional limit for the number of entries returned in a single call. # # Default value: `100` # # @option params [String] :next_token # The pagination token specifying which page of results to return in the # response. If no token is provided, the default page is the first page. # # Default value: `null` # # @option params [required, String] :tracker_name # The tracker resource containing the requested devices. # # @return [Types::ListDevicePositionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListDevicePositionsResponse#entries #data.entries} => Array<Types::ListDevicePositionsResponseEntry> (This method conflicts with a method on Response, call it through the data member) # * {Types::ListDevicePositionsResponse#next_token #next_token} => String # # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. # # @example Request syntax with placeholder values # # resp = client.list_device_positions({ # max_results: 1, # next_token: "Token", # tracker_name: "ResourceName", # required # }) # # @example Response structure # # resp.data.entries #=> Array # resp.data.entries[0].accuracy.horizontal #=> Float # resp.data.entries[0].device_id #=> String # resp.data.entries[0].position #=> Array # resp.data.entries[0].position[0] #=> Float # resp.data.entries[0].position_properties #=> Hash # resp.data.entries[0].position_properties["PropertyMapKeyString"] #=> String # resp.data.entries[0].sample_time #=> Time # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListDevicePositions AWS API Documentation # # @overload list_device_positions(params = {}) # @param [Hash] params ({}) def list_device_positions(params = {}, options = {}) req = build_request(:list_device_positions, params) req.send_request(options) end # Lists geofence collections in your AWS account. # # @option params [Integer] :max_results # An optional limit for the number of resources returned in a single # call. # # Default value: `100` # # @option params [String] :next_token # The pagination token specifying which page of results to return in the # response. If no token is provided, the default page is the first page. # # Default value: `null` # # @return [Types::ListGeofenceCollectionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListGeofenceCollectionsResponse#entries #data.entries} => Array<Types::ListGeofenceCollectionsResponseEntry> (This method conflicts with a method on Response, call it through the data member) # * {Types::ListGeofenceCollectionsResponse#next_token #next_token} => String # # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. # # @example Request syntax with placeholder values # # resp = client.list_geofence_collections({ # max_results: 1, # next_token: "Token", # }) # # @example Response structure # # resp.data.entries #=> Array # resp.data.entries[0].collection_name #=> String # resp.data.entries[0].create_time #=> Time # resp.data.entries[0].description #=> String # resp.data.entries[0].pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.data.entries[0].pricing_plan_data_source #=> String # resp.data.entries[0].update_time #=> Time # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListGeofenceCollections AWS API Documentation # # @overload list_geofence_collections(params = {}) # @param [Hash] params ({}) def list_geofence_collections(params = {}, options = {}) req = build_request(:list_geofence_collections, params) req.send_request(options) end # Lists geofences stored in a given geofence collection. # # @option params [required, String] :collection_name # The name of the geofence collection storing the list of geofences. # # @option params [String] :next_token # The pagination token specifying which page of results to return in the # response. If no token is provided, the default page is the first page. # # Default value: `null` # # @return [Types::ListGeofencesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListGeofencesResponse#entries #data.entries} => Array<Types::ListGeofenceResponseEntry> (This method conflicts with a method on Response, call it through the data member) # * {Types::ListGeofencesResponse#next_token #next_token} => String # # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. # # @example Request syntax with placeholder values # # resp = client.list_geofences({ # collection_name: "ResourceName", # required # next_token: "Token", # }) # # @example Response structure # # resp.data.entries #=> Array # resp.data.entries[0].create_time #=> Time # resp.data.entries[0].geofence_id #=> String # resp.data.entries[0].geometry.polygon #=> Array # resp.data.entries[0].geometry.polygon[0] #=> Array # resp.data.entries[0].geometry.polygon[0][0] #=> Array # resp.data.entries[0].geometry.polygon[0][0][0] #=> Float # resp.data.entries[0].status #=> String # resp.data.entries[0].update_time #=> Time # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListGeofences AWS API Documentation # # @overload list_geofences(params = {}) # @param [Hash] params ({}) def list_geofences(params = {}, options = {}) req = build_request(:list_geofences, params) req.send_request(options) end # Lists map resources in your AWS account. # # @option params [Integer] :max_results # An optional limit for the number of resources returned in a single # call. # # Default value: `100` # # @option params [String] :next_token # The pagination token specifying which page of results to return in the # response. If no token is provided, the default page is the first page. # # Default value: `null` # # @return [Types::ListMapsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListMapsResponse#entries #data.entries} => Array<Types::ListMapsResponseEntry> (This method conflicts with a method on Response, call it through the data member) # * {Types::ListMapsResponse#next_token #next_token} => String # # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. # # @example Request syntax with placeholder values # # resp = client.list_maps({ # max_results: 1, # next_token: "Token", # }) # # @example Response structure # # resp.data.entries #=> Array # resp.data.entries[0].create_time #=> Time # resp.data.entries[0].data_source #=> String # resp.data.entries[0].description #=> String # resp.data.entries[0].map_name #=> String # resp.data.entries[0].pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.data.entries[0].update_time #=> Time # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListMaps AWS API Documentation # # @overload list_maps(params = {}) # @param [Hash] params ({}) def list_maps(params = {}, options = {}) req = build_request(:list_maps, params) req.send_request(options) end # Lists place index resources in your AWS account. # # @option params [Integer] :max_results # An optional limit for the maximum number of results returned in a # single call. # # Default value: `100` # # @option params [String] :next_token # The pagination token specifying which page of results to return in the # response. If no token is provided, the default page is the first page. # # Default value: `null` # # @return [Types::ListPlaceIndexesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListPlaceIndexesResponse#entries #data.entries} => Array<Types::ListPlaceIndexesResponseEntry> (This method conflicts with a method on Response, call it through the data member) # * {Types::ListPlaceIndexesResponse#next_token #next_token} => String # # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. # # @example Request syntax with placeholder values # # resp = client.list_place_indexes({ # max_results: 1, # next_token: "Token", # }) # # @example Response structure # # resp.data.entries #=> Array # resp.data.entries[0].create_time #=> Time # resp.data.entries[0].data_source #=> String # resp.data.entries[0].description #=> String # resp.data.entries[0].index_name #=> String # resp.data.entries[0].pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.data.entries[0].update_time #=> Time # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListPlaceIndexes AWS API Documentation # # @overload list_place_indexes(params = {}) # @param [Hash] params ({}) def list_place_indexes(params = {}, options = {}) req = build_request(:list_place_indexes, params) req.send_request(options) end # Lists route calculator resources in your AWS account. # # @option params [Integer] :max_results # An optional maximum number of results returned in a single call. # # Default Value: `100` # # @option params [String] :next_token # The pagination token specifying which page of results to return in the # response. If no token is provided, the default page is the first page. # # Default Value: `null` # # @return [Types::ListRouteCalculatorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListRouteCalculatorsResponse#entries #data.entries} => Array<Types::ListRouteCalculatorsResponseEntry> (This method conflicts with a method on Response, call it through the data member) # * {Types::ListRouteCalculatorsResponse#next_token #next_token} => String # # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. # # @example Request syntax with placeholder values # # resp = client.list_route_calculators({ # max_results: 1, # next_token: "Token", # }) # # @example Response structure # # resp.data.entries #=> Array # resp.data.entries[0].calculator_name #=> String # resp.data.entries[0].create_time #=> Time # resp.data.entries[0].data_source #=> String # resp.data.entries[0].description #=> String # resp.data.entries[0].pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.data.entries[0].update_time #=> Time # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListRouteCalculators AWS API Documentation # # @overload list_route_calculators(params = {}) # @param [Hash] params ({}) def list_route_calculators(params = {}, options = {}) req = build_request(:list_route_calculators, params) req.send_request(options) end # Returns a list of tags that are applied to the specified Amazon # Location resource. # # @option params [required, String] :resource_arn # The Amazon Resource Name (ARN) of the resource whose tags you want to # retrieve. # # * Format example: # `arn:aws:geo:region:account-id:resourcetype/ExampleResource` # # ^ # # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String> # # @example Request syntax with placeholder values # # resp = client.list_tags_for_resource({ # resource_arn: "Arn", # required # }) # # @example Response structure # # resp.tags #=> Hash # resp.tags["TagKey"] #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListTagsForResource AWS API Documentation # # @overload list_tags_for_resource(params = {}) # @param [Hash] params ({}) def list_tags_for_resource(params = {}, options = {}) req = build_request(:list_tags_for_resource, params) req.send_request(options) end # Lists geofence collections currently associated to the given tracker # resource. # # @option params [Integer] :max_results # An optional limit for the number of resources returned in a single # call. # # Default value: `100` # # @option params [String] :next_token # The pagination token specifying which page of results to return in the # response. If no token is provided, the default page is the first page. # # Default value: `null` # # @option params [required, String] :tracker_name # The tracker resource whose associated geofence collections you want to # list. # # @return [Types::ListTrackerConsumersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListTrackerConsumersResponse#consumer_arns #consumer_arns} => Array<String> # * {Types::ListTrackerConsumersResponse#next_token #next_token} => String # # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. # # @example Request syntax with placeholder values # # resp = client.list_tracker_consumers({ # max_results: 1, # next_token: "Token", # tracker_name: "ResourceName", # required # }) # # @example Response structure # # resp.consumer_arns #=> Array # resp.consumer_arns[0] #=> String # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListTrackerConsumers AWS API Documentation # # @overload list_tracker_consumers(params = {}) # @param [Hash] params ({}) def list_tracker_consumers(params = {}, options = {}) req = build_request(:list_tracker_consumers, params) req.send_request(options) end # Lists tracker resources in your AWS account. # # @option params [Integer] :max_results # An optional limit for the number of resources returned in a single # call. # # Default value: `100` # # @option params [String] :next_token # The pagination token specifying which page of results to return in the # response. If no token is provided, the default page is the first page. # # Default value: `null` # # @return [Types::ListTrackersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::ListTrackersResponse#entries #data.entries} => Array<Types::ListTrackersResponseEntry> (This method conflicts with a method on Response, call it through the data member) # * {Types::ListTrackersResponse#next_token #next_token} => String # # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. # # @example Request syntax with placeholder values # # resp = client.list_trackers({ # max_results: 1, # next_token: "Token", # }) # # @example Response structure # # resp.data.entries #=> Array # resp.data.entries[0].create_time #=> Time # resp.data.entries[0].description #=> String # resp.data.entries[0].pricing_plan #=> String, one of "RequestBasedUsage", "MobileAssetTracking", "MobileAssetManagement" # resp.data.entries[0].pricing_plan_data_source #=> String # resp.data.entries[0].tracker_name #=> String # resp.data.entries[0].update_time #=> Time # resp.next_token #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListTrackers AWS API Documentation # # @overload list_trackers(params = {}) # @param [Hash] params ({}) def list_trackers(params = {}, options = {}) req = build_request(:list_trackers, params) req.send_request(options) end # Stores a geofence geometry in a given geofence collection, or updates # the geometry of an existing geofence if a geofence ID is included in # the request. # # @option params [required, String] :collection_name # The geofence collection to store the geofence in. # # @option params [required, String] :geofence_id # An identifier for the geofence. For example, `ExampleGeofence-1`. # # @option params [required, Types::GeofenceGeometry] :geometry # Contains the polygon details to specify the position of the geofence. # # Each [geofence polygon][1] can have a maximum of 1,000 vertices. # # # # # # [1]: https://docs.aws.amazon.com/location-geofences/latest/APIReference/API_GeofenceGeometry.html # # @return [Types::PutGeofenceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::PutGeofenceResponse#create_time #create_time} => Time # * {Types::PutGeofenceResponse#geofence_id #geofence_id} => String # * {Types::PutGeofenceResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.put_geofence({ # collection_name: "ResourceName", # required # geofence_id: "Id", # required # geometry: { # required # polygon: [ # [ # [1.0], # ], # ], # }, # }) # # @example Response structure # # resp.create_time #=> Time # resp.geofence_id #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/PutGeofence AWS API Documentation # # @overload put_geofence(params = {}) # @param [Hash] params ({}) def put_geofence(params = {}, options = {}) req = build_request(:put_geofence, params) req.send_request(options) end # Reverse geocodes a given coordinate and returns a legible address. # Allows you to search for Places or points of interest near a given # position. # # @option params [required, String] :index_name # The name of the place index resource you want to use for the search. # # @option params [String] :language # The preferred language used to return results. The value must be a # valid [BCP 47][1] language tag, for example, `en` for English. # # This setting affects the languages used in the results. It does not # change which results are returned. If the language is not specified, # or not supported for a particular result, the partner automatically # chooses a language for the result. # # # # [1]: https://tools.ietf.org/search/bcp47 # # @option params [Integer] :max_results # An optional parameter. The maximum number of results returned per # request. # # Default value: `50` # # @option params [required, Array] :position # Specifies the longitude and latitude of the position to query. # # This parameter must contain a pair of numbers. The first number # represents the X coordinate, or longitude; the second number # represents the Y coordinate, or latitude. # # For example, `[-123.1174, 49.2847]` represents a position with # longitude `-123.1174` and latitude `49.2847`. # # @return [Types::SearchPlaceIndexForPositionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::SearchPlaceIndexForPositionResponse#results #results} => Array<Types::SearchForPositionResult> # * {Types::SearchPlaceIndexForPositionResponse#summary #summary} => Types::SearchPlaceIndexForPositionSummary # # @example Request syntax with placeholder values # # resp = client.search_place_index_for_position({ # index_name: "ResourceName", # required # language: "LanguageTag", # max_results: 1, # position: [1.0], # required # }) # # @example Response structure # # resp.results #=> Array # resp.results[0].distance #=> Float # resp.results[0].place.address_number #=> String # resp.results[0].place.country #=> String # resp.results[0].place.geometry.point #=> Array # resp.results[0].place.geometry.point[0] #=> Float # resp.results[0].place.interpolated #=> Boolean # resp.results[0].place.label #=> String # resp.results[0].place.municipality #=> String # resp.results[0].place.neighborhood #=> String # resp.results[0].place.postal_code #=> String # resp.results[0].place.region #=> String # resp.results[0].place.street #=> String # resp.results[0].place.sub_region #=> String # resp.results[0].place.time_zone.name #=> String # resp.results[0].place.time_zone.offset #=> Integer # resp.summary.data_source #=> String # resp.summary.language #=> String # resp.summary.max_results #=> Integer # resp.summary.position #=> Array # resp.summary.position[0] #=> Float # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/SearchPlaceIndexForPosition AWS API Documentation # # @overload search_place_index_for_position(params = {}) # @param [Hash] params ({}) def search_place_index_for_position(params = {}, options = {}) req = build_request(:search_place_index_for_position, params) req.send_request(options) end # Generates suggestions for addresses and points of interest based on # partial or misspelled free-form text. This operation is also known as # autocomplete, autosuggest, or fuzzy matching. # # Optional parameters let you narrow your search results by bounding box # or country, or bias your search toward a specific position on the # globe. # # You can search for suggested place names near a specified position by # using `BiasPosition`, or filter results within a bounding box by using # `FilterBBox`. These parameters are mutually exclusive; using both # `BiasPosition` and `FilterBBox` in the same command returns an error. # # # # @option params [Array] :bias_position # An optional parameter that indicates a preference for place # suggestions that are closer to a specified position. # # If provided, this parameter must contain a pair of numbers. The first # number represents the X coordinate, or longitude; the second number # represents the Y coordinate, or latitude. # # For example, `[-123.1174, 49.2847]` represents the position with # longitude `-123.1174` and latitude `49.2847`. # # `BiasPosition` and `FilterBBox` are mutually exclusive. Specifying # both options results in an error. # # # # @option params [Array] :filter_b_box # An optional parameter that limits the search results by returning only # suggestions within a specified bounding box. # # If provided, this parameter must contain a total of four consecutive # numbers in two pairs. The first pair of numbers represents the X and Y # coordinates (longitude and latitude, respectively) of the southwest # corner of the bounding box; the second pair of numbers represents the # X and Y coordinates (longitude and latitude, respectively) of the # northeast corner of the bounding box. # # For example, `[-12.7935, -37.4835, -12.0684, -36.9542]` represents a # bounding box where the southwest corner has longitude `-12.7935` and # latitude `-37.4835`, and the northeast corner has longitude `-12.0684` # and latitude `-36.9542`. # # `FilterBBox` and `BiasPosition` are mutually exclusive. Specifying # both options results in an error. # # # # @option params [Array] :filter_countries # An optional parameter that limits the search results by returning only # suggestions within the provided list of countries. # # * Use the [ISO 3166][1] 3-digit country code. For example, Australia # uses three upper-case characters: `AUS`. # # ^ # # # # [1]: https://www.iso.org/iso-3166-country-codes.html # # @option params [required, String] :index_name # The name of the place index resource you want to use for the search. # # @option params [String] :language # The preferred language used to return results. The value must be a # valid [BCP 47][1] language tag, for example, `en` for English. # # This setting affects the languages used in the results. It does not # change which results are returned. If the language is not specified, # or not supported for a particular result, the partner automatically # chooses a language for the result. # # Used only when the partner selected is Here. # # # # [1]: https://tools.ietf.org/search/bcp47 # # @option params [Integer] :max_results # An optional parameter. The maximum number of results returned per # request. # # The default: `5` # # @option params [required, String] :text # The free-form partial text to use to generate place suggestions. For # example, `eiffel tow`. # # @return [Types::SearchPlaceIndexForSuggestionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::SearchPlaceIndexForSuggestionsResponse#results #results} => Array<Types::SearchForSuggestionsResult> # * {Types::SearchPlaceIndexForSuggestionsResponse#summary #summary} => Types::SearchPlaceIndexForSuggestionsSummary # # @example Request syntax with placeholder values # # resp = client.search_place_index_for_suggestions({ # bias_position: [1.0], # filter_b_box: [1.0], # filter_countries: ["CountryCode"], # index_name: "ResourceName", # required # language: "LanguageTag", # max_results: 1, # text: "SyntheticSearchPlaceIndexForSuggestionsRequestString", # required # }) # # @example Response structure # # resp.results #=> Array # resp.results[0].text #=> String # resp.summary.bias_position #=> Array # resp.summary.bias_position[0] #=> Float # resp.summary.data_source #=> String # resp.summary.filter_b_box #=> Array # resp.summary.filter_b_box[0] #=> Float # resp.summary.filter_countries #=> Array # resp.summary.filter_countries[0] #=> String # resp.summary.language #=> String # resp.summary.max_results #=> Integer # resp.summary.text #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/SearchPlaceIndexForSuggestions AWS API Documentation # # @overload search_place_index_for_suggestions(params = {}) # @param [Hash] params ({}) def search_place_index_for_suggestions(params = {}, options = {}) req = build_request(:search_place_index_for_suggestions, params) req.send_request(options) end # Geocodes free-form text, such as an address, name, city, or region to # allow you to search for Places or points of interest. # # Optional parameters let you narrow your search results by bounding box # or country, or bias your search toward a specific position on the # globe. # # You can search for places near a given position using `BiasPosition`, # or filter results within a bounding box using `FilterBBox`. Providing # both parameters simultaneously returns an error. # # # # Search results are returned in order of highest to lowest relevance. # # @option params [Array] :bias_position # An optional parameter that indicates a preference for places that are # closer to a specified position. # # If provided, this parameter must contain a pair of numbers. The first # number represents the X coordinate, or longitude; the second number # represents the Y coordinate, or latitude. # # For example, `[-123.1174, 49.2847]` represents the position with # longitude `-123.1174` and latitude `49.2847`. # # `BiasPosition` and `FilterBBox` are mutually exclusive. Specifying # both options results in an error. # # # # @option params [Array] :filter_b_box # An optional parameter that limits the search results by returning only # places that are within the provided bounding box. # # If provided, this parameter must contain a total of four consecutive # numbers in two pairs. The first pair of numbers represents the X and Y # coordinates (longitude and latitude, respectively) of the southwest # corner of the bounding box; the second pair of numbers represents the # X and Y coordinates (longitude and latitude, respectively) of the # northeast corner of the bounding box. # # For example, `[-12.7935, -37.4835, -12.0684, -36.9542]` represents a # bounding box where the southwest corner has longitude `-12.7935` and # latitude `-37.4835`, and the northeast corner has longitude `-12.0684` # and latitude `-36.9542`. # # `FilterBBox` and `BiasPosition` are mutually exclusive. Specifying # both options results in an error. # # # # @option params [Array] :filter_countries # An optional parameter that limits the search results by returning only # places that are in a specified list of countries. # # * Valid values include [ISO 3166][1] 3-digit country codes. For # example, Australia uses three upper-case characters: `AUS`. # # ^ # # # # [1]: https://www.iso.org/iso-3166-country-codes.html # # @option params [required, String] :index_name # The name of the place index resource you want to use for the search. # # @option params [String] :language # The preferred language used to return results. The value must be a # valid [BCP 47][1] language tag, for example, `en` for English. # # This setting affects the languages used in the results. It does not # change which results are returned. If the language is not specified, # or not supported for a particular result, the partner automatically # chooses a language for the result. # # # # [1]: https://tools.ietf.org/search/bcp47 # # @option params [Integer] :max_results # An optional parameter. The maximum number of results returned per # request. # # The default: `50` # # @option params [required, String] :text # The address, name, city, or region to be used in the search in # free-form text format. For example, `123 Any Street`. # # @return [Types::SearchPlaceIndexForTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::SearchPlaceIndexForTextResponse#results #results} => Array<Types::SearchForTextResult> # * {Types::SearchPlaceIndexForTextResponse#summary #summary} => Types::SearchPlaceIndexForTextSummary # # @example Request syntax with placeholder values # # resp = client.search_place_index_for_text({ # bias_position: [1.0], # filter_b_box: [1.0], # filter_countries: ["CountryCode"], # index_name: "ResourceName", # required # language: "LanguageTag", # max_results: 1, # text: "SyntheticSearchPlaceIndexForTextRequestString", # required # }) # # @example Response structure # # resp.results #=> Array # resp.results[0].distance #=> Float # resp.results[0].place.address_number #=> String # resp.results[0].place.country #=> String # resp.results[0].place.geometry.point #=> Array # resp.results[0].place.geometry.point[0] #=> Float # resp.results[0].place.interpolated #=> Boolean # resp.results[0].place.label #=> String # resp.results[0].place.municipality #=> String # resp.results[0].place.neighborhood #=> String # resp.results[0].place.postal_code #=> String # resp.results[0].place.region #=> String # resp.results[0].place.street #=> String # resp.results[0].place.sub_region #=> String # resp.results[0].place.time_zone.name #=> String # resp.results[0].place.time_zone.offset #=> Integer # resp.results[0].relevance #=> Float # resp.summary.bias_position #=> Array # resp.summary.bias_position[0] #=> Float # resp.summary.data_source #=> String # resp.summary.filter_b_box #=> Array # resp.summary.filter_b_box[0] #=> Float # resp.summary.filter_countries #=> Array # resp.summary.filter_countries[0] #=> String # resp.summary.language #=> String # resp.summary.max_results #=> Integer # resp.summary.result_b_box #=> Array # resp.summary.result_b_box[0] #=> Float # resp.summary.text #=> String # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/SearchPlaceIndexForText AWS API Documentation # # @overload search_place_index_for_text(params = {}) # @param [Hash] params ({}) def search_place_index_for_text(params = {}, options = {}) req = build_request(:search_place_index_for_text, params) req.send_request(options) end # Assigns one or more tags (key-value pairs) to the specified Amazon # Location Service resource. # #

Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values.

You can use the TagResource operation with an Amazon Location Service resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the tags already associated with the resource. If you specify a tag key that's already associated with the resource, the new tag value that you specify replaces the previous value for that tag.

You can associate up to 50 tags with a resource.

# # @option params [required, String] :resource_arn # The Amazon Resource Name (ARN) of the resource whose tags you want to # update. # # * Format example: # `arn:aws:geo:region:account-id:resourcetype/ExampleResource` # # ^ # # @option params [required, Hash] :tags # Applies one or more tags to specific resource. A tag is a key-value # pair that helps you manage, identify, search, and filter your # resources. # # Format: `"key" : "value"` # # Restrictions: # # * Maximum 50 tags per resource. # # * Each tag key must be unique and must have exactly one associated # value. # # * Maximum key length: 128 Unicode characters in UTF-8. # # * Maximum value length: 256 Unicode characters in UTF-8. # # * Can use alphanumeric characters (A–Z, a–z, 0–9), and the following # characters: + - = . \_ : / @ # # * Cannot use "aws:" as a prefix for a key. # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.tag_resource({ # resource_arn: "Arn", # required # tags: { # required # "TagKey" => "TagValue", # }, # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/TagResource AWS API Documentation # # @overload tag_resource(params = {}) # @param [Hash] params ({}) def tag_resource(params = {}, options = {}) req = build_request(:tag_resource, params) req.send_request(options) end # Removes one or more tags from the specified Amazon Location resource. # # @option params [required, String] :resource_arn # The Amazon Resource Name (ARN) of the resource from which you want to # remove tags. # # * Format example: # `arn:aws:geo:region:account-id:resourcetype/ExampleResource` # # ^ # # @option params [required, Array] :tag_keys # The list of tag keys to remove from the specified resource. # # @return [Struct] Returns an empty {Seahorse::Client::Response response}. # # @example Request syntax with placeholder values # # resp = client.untag_resource({ # resource_arn: "Arn", # required # tag_keys: ["String"], # required # }) # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/UntagResource AWS API Documentation # # @overload untag_resource(params = {}) # @param [Hash] params ({}) def untag_resource(params = {}, options = {}) req = build_request(:untag_resource, params) req.send_request(options) end # Updates the specified properties of a given geofence collection. # # @option params [required, String] :collection_name # The name of the geofence collection to update. # # @option params [String] :description # Updates the description for the geofence collection. # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @option params [String] :pricing_plan_data_source # This parameter is no longer used. # # @return [Types::UpdateGeofenceCollectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::UpdateGeofenceCollectionResponse#collection_arn #collection_arn} => String # * {Types::UpdateGeofenceCollectionResponse#collection_name #collection_name} => String # * {Types::UpdateGeofenceCollectionResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.update_geofence_collection({ # collection_name: "ResourceName", # required # description: "ResourceDescription", # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # pricing_plan_data_source: "String", # }) # # @example Response structure # # resp.collection_arn #=> String # resp.collection_name #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/UpdateGeofenceCollection AWS API Documentation # # @overload update_geofence_collection(params = {}) # @param [Hash] params ({}) def update_geofence_collection(params = {}, options = {}) req = build_request(:update_geofence_collection, params) req.send_request(options) end # Updates the specified properties of a given map resource. # # @option params [String] :description # Updates the description for the map resource. # # @option params [required, String] :map_name # The name of the map resource to update. # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @return [Types::UpdateMapResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::UpdateMapResponse#map_arn #map_arn} => String # * {Types::UpdateMapResponse#map_name #map_name} => String # * {Types::UpdateMapResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.update_map({ # description: "ResourceDescription", # map_name: "ResourceName", # required # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # }) # # @example Response structure # # resp.map_arn #=> String # resp.map_name #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/UpdateMap AWS API Documentation # # @overload update_map(params = {}) # @param [Hash] params ({}) def update_map(params = {}, options = {}) req = build_request(:update_map, params) req.send_request(options) end # Updates the specified properties of a given place index resource. # # @option params [Types::DataSourceConfiguration] :data_source_configuration # Updates the data storage option for the place index resource. # # @option params [String] :description # Updates the description for the place index resource. # # @option params [required, String] :index_name # The name of the place index resource to update. # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @return [Types::UpdatePlaceIndexResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::UpdatePlaceIndexResponse#index_arn #index_arn} => String # * {Types::UpdatePlaceIndexResponse#index_name #index_name} => String # * {Types::UpdatePlaceIndexResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.update_place_index({ # data_source_configuration: { # intended_use: "SingleUse", # accepts SingleUse, Storage # }, # description: "ResourceDescription", # index_name: "ResourceName", # required # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # }) # # @example Response structure # # resp.index_arn #=> String # resp.index_name #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/UpdatePlaceIndex AWS API Documentation # # @overload update_place_index(params = {}) # @param [Hash] params ({}) def update_place_index(params = {}, options = {}) req = build_request(:update_place_index, params) req.send_request(options) end # Updates the specified properties for a given route calculator # resource. # # @option params [required, String] :calculator_name # The name of the route calculator resource to update. # # @option params [String] :description # Updates the description for the route calculator resource. # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @return [Types::UpdateRouteCalculatorResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::UpdateRouteCalculatorResponse#calculator_arn #calculator_arn} => String # * {Types::UpdateRouteCalculatorResponse#calculator_name #calculator_name} => String # * {Types::UpdateRouteCalculatorResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.update_route_calculator({ # calculator_name: "ResourceName", # required # description: "ResourceDescription", # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # }) # # @example Response structure # # resp.calculator_arn #=> String # resp.calculator_name #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/UpdateRouteCalculator AWS API Documentation # # @overload update_route_calculator(params = {}) # @param [Hash] params ({}) def update_route_calculator(params = {}, options = {}) req = build_request(:update_route_calculator, params) req.send_request(options) end # Updates the specified properties of a given tracker resource. # # @option params [String] :description # Updates the description for the tracker resource. # # @option params [String] :position_filtering # Updates the position filtering for the tracker resource. # # Valid values: # # * `TimeBased` - Location updates are evaluated against linked geofence # collections, but not every location update is stored. If your update # frequency is more often than 30 seconds, only one update per 30 # seconds is stored for each unique device ID. # # * `DistanceBased` - If the device has moved less than 30 m (98.4 ft), # location updates are ignored. Location updates within this distance # are neither evaluated against linked geofence collections, nor # stored. This helps control costs by reducing the number of geofence # evaluations and historical device positions to paginate through. # Distance-based filtering can also reduce the effects of GPS noise # when displaying device trajectories on a map. # # * `AccuracyBased` - If the device has moved less than the measured # accuracy, location updates are ignored. For example, if two # consecutive updates from a device have a horizontal accuracy of 5 m # and 10 m, the second update is ignored if the device has moved less # than 15 m. Ignored location updates are neither evaluated against # linked geofence collections, nor stored. This helps educe the # effects of GPS noise when displaying device trajectories on a map, # and can help control costs by reducing the number of geofence # evaluations. # # @option params [String] :pricing_plan # No longer used. If included, the only allowed value is # `RequestBasedUsage`. # # @option params [String] :pricing_plan_data_source # This parameter is no longer used. # # @option params [required, String] :tracker_name # The name of the tracker resource to update. # # @return [Types::UpdateTrackerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::UpdateTrackerResponse#tracker_arn #tracker_arn} => String # * {Types::UpdateTrackerResponse#tracker_name #tracker_name} => String # * {Types::UpdateTrackerResponse#update_time #update_time} => Time # # @example Request syntax with placeholder values # # resp = client.update_tracker({ # description: "ResourceDescription", # position_filtering: "TimeBased", # accepts TimeBased, DistanceBased, AccuracyBased # pricing_plan: "RequestBasedUsage", # accepts RequestBasedUsage, MobileAssetTracking, MobileAssetManagement # pricing_plan_data_source: "String", # tracker_name: "ResourceName", # required # }) # # @example Response structure # # resp.tracker_arn #=> String # resp.tracker_name #=> String # resp.update_time #=> Time # # @see http://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/UpdateTracker AWS API Documentation # # @overload update_tracker(params = {}) # @param [Hash] params ({}) def update_tracker(params = {}, options = {}) req = build_request(:update_tracker, params) req.send_request(options) end # @!endgroup # @param params ({}) # @api private def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-locationservice' context[:gem_version] = '1.21.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated def waiter_names [] end class << self # @api private attr_reader :identifier # @api private def errors_module Errors end end end end