pub struct Client { /* private fields */ }
Expand description
Client for Amazon Location Service
Client for invoking operations on Amazon Location Service. Each operation on Amazon Location Service is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_location::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Builder
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_location::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the AssociateTrackerConsumer
operation has
a Client::associate_tracker_consumer
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.associate_tracker_consumer()
.tracker_name("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
Source§impl Client
impl Client
Sourcepub fn associate_tracker_consumer(
&self,
) -> AssociateTrackerConsumerFluentBuilder
pub fn associate_tracker_consumer( &self, ) -> AssociateTrackerConsumerFluentBuilder
Constructs a fluent builder for the AssociateTrackerConsumer
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe name of the tracker resource to be associated with a geofence collection.
consumer_arn(impl Into<String>)
/set_consumer_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource. Used when you need to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer
-
- On success, responds with
AssociateTrackerConsumerOutput
- On failure, responds with
SdkError<AssociateTrackerConsumerError>
Source§impl Client
impl Client
Sourcepub fn batch_delete_device_position_history(
&self,
) -> BatchDeleteDevicePositionHistoryFluentBuilder
pub fn batch_delete_device_position_history( &self, ) -> BatchDeleteDevicePositionHistoryFluentBuilder
Constructs a fluent builder for the BatchDeleteDevicePositionHistory
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe name of the tracker resource to delete the device position history from.
device_ids(impl Into<String>)
/set_device_ids(Option<Vec::<String>>)
:
required: trueDevices whose position history you want to delete.
-
For example, for two devices:
“DeviceIds” : [DeviceId1,DeviceId2]
-
- On success, responds with
BatchDeleteDevicePositionHistoryOutput
with field(s):errors(Vec::<BatchDeleteDevicePositionHistoryError>)
:Contains error details for each device history that failed to delete.
- On failure, responds with
SdkError<BatchDeleteDevicePositionHistoryError>
Source§impl Client
impl Client
Sourcepub fn batch_delete_geofence(&self) -> BatchDeleteGeofenceFluentBuilder
pub fn batch_delete_geofence(&self) -> BatchDeleteGeofenceFluentBuilder
Constructs a fluent builder for the BatchDeleteGeofence
operation.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe geofence collection storing the geofences to be deleted.
geofence_ids(impl Into<String>)
/set_geofence_ids(Option<Vec::<String>>)
:
required: trueThe batch of geofences to be deleted.
- On success, responds with
BatchDeleteGeofenceOutput
with field(s):errors(Vec::<BatchDeleteGeofenceError>)
:Contains error details for each geofence that failed to delete.
- On failure, responds with
SdkError<BatchDeleteGeofenceError>
Source§impl Client
impl Client
Sourcepub fn batch_evaluate_geofences(&self) -> BatchEvaluateGeofencesFluentBuilder
pub fn batch_evaluate_geofences(&self) -> BatchEvaluateGeofencesFluentBuilder
Constructs a fluent builder for the BatchEvaluateGeofences
operation.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe geofence collection used in evaluating the position of devices against its geofences.
device_position_updates(DevicePositionUpdate)
/set_device_position_updates(Option<Vec::<DevicePositionUpdate>>)
:
required: trueContains device details for each device to be evaluated against the given geofence collection.
- On success, responds with
BatchEvaluateGeofencesOutput
with field(s):errors(Vec::<BatchEvaluateGeofencesError>)
:Contains error details for each device that failed to evaluate its position against the given geofence collection.
- On failure, responds with
SdkError<BatchEvaluateGeofencesError>
Source§impl Client
impl Client
Sourcepub fn batch_get_device_position(&self) -> BatchGetDevicePositionFluentBuilder
pub fn batch_get_device_position(&self) -> BatchGetDevicePositionFluentBuilder
Constructs a fluent builder for the BatchGetDevicePosition
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe tracker resource retrieving the device position.
device_ids(impl Into<String>)
/set_device_ids(Option<Vec::<String>>)
:
required: trueDevices whose position you want to retrieve.
-
For example, for two devices:
device-ids=DeviceId1&device-ids=DeviceId2
-
- On success, responds with
BatchGetDevicePositionOutput
with field(s):errors(Vec::<BatchGetDevicePositionError>)
:Contains error details for each device that failed to send its position to the tracker resource.
device_positions(Vec::<DevicePosition>)
:Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.
- On failure, responds with
SdkError<BatchGetDevicePositionError>
Source§impl Client
impl Client
Sourcepub fn batch_put_geofence(&self) -> BatchPutGeofenceFluentBuilder
pub fn batch_put_geofence(&self) -> BatchPutGeofenceFluentBuilder
Constructs a fluent builder for the BatchPutGeofence
operation.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe geofence collection storing the geofences.
entries(BatchPutGeofenceRequestEntry)
/set_entries(Option<Vec::<BatchPutGeofenceRequestEntry>>)
:
required: trueThe batch of geofences to be stored in a geofence collection.
- On success, responds with
BatchPutGeofenceOutput
with field(s):successes(Vec::<BatchPutGeofenceSuccess>)
:Contains each geofence that was successfully stored in a geofence collection.
errors(Vec::<BatchPutGeofenceError>)
:Contains additional error details for each geofence that failed to be stored in a geofence collection.
- On failure, responds with
SdkError<BatchPutGeofenceError>
Source§impl Client
impl Client
Sourcepub fn batch_update_device_position(
&self,
) -> BatchUpdateDevicePositionFluentBuilder
pub fn batch_update_device_position( &self, ) -> BatchUpdateDevicePositionFluentBuilder
Constructs a fluent builder for the BatchUpdateDevicePosition
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe name of the tracker resource to update.
updates(DevicePositionUpdate)
/set_updates(Option<Vec::<DevicePositionUpdate>>)
:
required: trueContains the position update details for each device, up to 10 devices.
- On success, responds with
BatchUpdateDevicePositionOutput
with field(s):errors(Vec::<BatchUpdateDevicePositionError>)
:Contains error details for each device that failed to update its position.
- On failure, responds with
SdkError<BatchUpdateDevicePositionError>
Source§impl Client
impl Client
Sourcepub fn calculate_route(&self) -> CalculateRouteFluentBuilder
pub fn calculate_route(&self) -> CalculateRouteFluentBuilder
Constructs a fluent builder for the CalculateRoute
operation.
- The fluent builder is configurable:
calculator_name(impl Into<String>)
/set_calculator_name(Option<String>)
:
required: trueThe name of the route calculator resource that you want to use to calculate the route.
departure_position(f64)
/set_departure_position(Option<Vec::<f64>>)
:
required: trueThe start position for the route. Defined in World Geodetic System (WGS 84) 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. 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]
-
destination_position(f64)
/set_destination_position(Option<Vec::<f64>>)
:
required: trueThe finish position for the route. Defined in World Geodetic System (WGS 84) 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.
Valid Values:
[-180 to 180,-90 to 90]
-
waypoint_positions(Vec::<f64>)
/set_waypoint_positions(Option<Vec::<Vec::<f64>>>)
:
required: falseSpecifies 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.
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]
-
travel_mode(TravelMode)
/set_travel_mode(Option<TravelMode>)
:
required: falseSpecifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. You can choose
Car
,Truck
,Walking
,Bicycle
orMotorcycle
as options for theTravelMode
.Bicycle
andMotorcycle
are only valid when using Grab as a data provider, and only within Southeast Asia.Truck
is not available for Grab.For more details on the using Grab for routing, including areas of coverage, see GrabMaps in the Amazon Location Service Developer Guide.
The
TravelMode
you specify also determines how you specify route preferences:-
If traveling by
Car
use theCarModeOptions
parameter. -
If traveling by
Truck
use theTruckModeOptions
parameter.
Default Value:
Car
-
departure_time(DateTime)
/set_departure_time(Option<DateTime>)
:
required: falseSpecifies 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.
-
In ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
. For example,2020–07-2T12:15:20.000Z+01:00
-
depart_now(bool)
/set_depart_now(Option<bool>)
:
required: falseSets 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
distance_unit(DistanceUnit)
/set_distance_unit(Option<DistanceUnit>)
:
required: falseSet the unit system to specify the distance.
Default Value:
Kilometers
include_leg_geometry(bool)
/set_include_leg_geometry(Option<bool>)
:
required: falseSet to include the geometry details in the result for each path between a pair of positions.
Default Value:
false
Valid Values:
false
|true
car_mode_options(CalculateRouteCarModeOptions)
/set_car_mode_options(Option<CalculateRouteCarModeOptions>)
:
required: falseSpecifies route preferences when traveling by
Car
, such as avoiding routes that use ferries or tolls.Requirements:
TravelMode
must be specified asCar
.truck_mode_options(CalculateRouteTruckModeOptions)
/set_truck_mode_options(Option<CalculateRouteTruckModeOptions>)
:
required: falseSpecifies 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 asTruck
.arrival_time(DateTime)
/set_arrival_time(Option<DateTime>)
:
required: falseSpecifies the desired time of arrival. 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.
ArrivalTime is not supported Esri.
optimize_for(OptimizationMode)
/set_optimize_for(Option<OptimizationMode>)
:
required: falseSpecifies the distance to optimize for when calculating a route.
key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
CalculateRouteOutput
with field(s):legs(Vec::<Leg>)
:Contains details about each path between a pair of positions included along a route such as:
StartPosition
,EndPosition
,Distance
,DurationSeconds
,Geometry
, andSteps
. The number of legs returned corresponds to one fewer than the total number of positions in the request.For example, a route with a departure position and destination position returns one leg with the positions snapped to a nearby road:
-
The
StartPosition
is the departure position. -
The
EndPosition
is the destination position.
A route with a waypoint between the departure and destination position returns two legs with the positions snapped to a nearby road:
-
Leg 1: The
StartPosition
is the departure position . TheEndPosition
is the waypoint positon. -
Leg 2: The
StartPosition
is the waypoint position. TheEndPosition
is the destination position.
-
summary(Option<CalculateRouteSummary>)
:Contains information about the whole route, such as:
RouteBBox
,DataSource
,Distance
,DistanceUnit
, andDurationSeconds
.
- On failure, responds with
SdkError<CalculateRouteError>
Source§impl Client
impl Client
Sourcepub fn calculate_route_matrix(&self) -> CalculateRouteMatrixFluentBuilder
pub fn calculate_route_matrix(&self) -> CalculateRouteMatrixFluentBuilder
Constructs a fluent builder for the CalculateRouteMatrix
operation.
- The fluent builder is configurable:
calculator_name(impl Into<String>)
/set_calculator_name(Option<String>)
:
required: trueThe name of the route calculator resource that you want to use to calculate the route matrix.
departure_positions(Vec::<f64>)
/set_departure_positions(Option<Vec::<Vec::<f64>>>)
:
required: trueThe 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 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 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. The snapped value is available in the result in
SnappedDeparturePositions
.Valid Values:
[-180 to 180,-90 to 90]
destination_positions(Vec::<f64>)
/set_destination_positions(Option<Vec::<Vec::<f64>>>)
:
required: trueThe 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 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 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. The snapped value is available in the result in
SnappedDestinationPositions
.Valid Values:
[-180 to 180,-90 to 90]
travel_mode(TravelMode)
/set_travel_mode(Option<TravelMode>)
:
required: falseSpecifies 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 theCarModeOptions
parameter. -
If traveling by
Truck
use theTruckModeOptions
parameter.
Bicycle
orMotorcycle
are only valid when usingGrab
as a data provider, and only within Southeast Asia.Truck
is not available for Grab.For more information about using Grab as a data provider, see GrabMaps in the Amazon Location Service Developer Guide.
Default Value:
Car
-
departure_time(DateTime)
/set_departure_time(Option<DateTime>)
:
required: falseSpecifies the desired time of departure. Uses the given time to calculate the route matrix. You can’t set both
DepartureTime
andDepartNow
. 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 format:
YYYY-MM-DDThh:mm:ss.sssZ
. For example,2020–07-2T12:15:20.000Z+01:00
-
depart_now(bool)
/set_depart_now(Option<bool>)
:
required: falseSets the time of departure as the current time. Uses the current time to calculate the route matrix. You can’t set both
DepartureTime
andDepartNow
. 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
distance_unit(DistanceUnit)
/set_distance_unit(Option<DistanceUnit>)
:
required: falseSet the unit system to specify the distance.
Default Value:
Kilometers
car_mode_options(CalculateRouteCarModeOptions)
/set_car_mode_options(Option<CalculateRouteCarModeOptions>)
:
required: falseSpecifies route preferences when traveling by
Car
, such as avoiding routes that use ferries or tolls.Requirements:
TravelMode
must be specified asCar
.truck_mode_options(CalculateRouteTruckModeOptions)
/set_truck_mode_options(Option<CalculateRouteTruckModeOptions>)
:
required: falseSpecifies 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 asTruck
.key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
CalculateRouteMatrixOutput
with field(s):route_matrix(Vec::<Vec::<RouteMatrixEntry>>)
:The calculated route matrix containing the results for all pairs of
DeparturePositions
toDestinationPositions
. Each row corresponds to one entry inDeparturePositions
. Each entry in the row corresponds to the route from that entry inDeparturePositions
to an entry inDestinationPositions
.snapped_departure_positions(Option<Vec::<Vec::<f64>>>)
:For routes calculated using an Esri route calculator resource, departure positions are snapped to the closest road. For Esri route calculator resources, this returns the list of departure/origin positions used for calculation of the
RouteMatrix
.snapped_destination_positions(Option<Vec::<Vec::<f64>>>)
:The list of destination positions for the route matrix used for calculation of the
RouteMatrix
.summary(Option<CalculateRouteMatrixSummary>)
:Contains information about the route matrix,
DataSource
,DistanceUnit
,RouteCount
andErrorCount
.
- On failure, responds with
SdkError<CalculateRouteMatrixError>
Source§impl Client
impl Client
Sourcepub fn create_geofence_collection(
&self,
) -> CreateGeofenceCollectionFluentBuilder
pub fn create_geofence_collection( &self, ) -> CreateGeofenceCollectionFluentBuilder
Constructs a fluent builder for the CreateGeofenceCollection
operation.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueA 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
.
-
pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.pricing_plan_data_source(impl Into<String>)
/set_pricing_plan_data_source(Option<String>)
:
required: falseThis parameter is no longer used.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseAn optional description for the geofence collection.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseApplies 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.
-
kms_key_id(impl Into<String>)
/set_kms_key_id(Option<String>)
:
required: falseA key identifier for an Amazon Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN.
- On success, responds with
CreateGeofenceCollectionOutput
with field(s):collection_name(String)
:The name for the geofence collection.
collection_arn(String)
:The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
-
create_time(DateTime)
:The timestamp for when the geofence collection was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
- On failure, responds with
SdkError<CreateGeofenceCollectionError>
Source§impl Client
impl Client
Sourcepub fn create_key(&self) -> CreateKeyFluentBuilder
pub fn create_key(&self) -> CreateKeyFluentBuilder
Constructs a fluent builder for the CreateKey
operation.
- The fluent builder is configurable:
key_name(impl Into<String>)
/set_key_name(Option<String>)
:
required: trueA custom name for the API key resource.
Requirements:
-
Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
-
Must be a unique API key name.
-
No spaces allowed. For example,
ExampleAPIKey
.
-
restrictions(ApiKeyRestrictions)
/set_restrictions(Option<ApiKeyRestrictions>)
:
required: trueThe API key restrictions for the API key resource.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseAn optional description for the API key resource.
expire_time(DateTime)
/set_expire_time(Option<DateTime>)
:
required: falseThe optional timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
. One ofNoExpiry
orExpireTime
must be set.no_expiry(bool)
/set_no_expiry(Option<bool>)
:
required: falseOptionally set to
true
to set no expiration time for the API key. One ofNoExpiry
orExpireTime
must be set.tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseApplies one or more tags to the map resource. A tag is a key-value pair that 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.
-
- On success, responds with
CreateKeyOutput
with field(s):key(String)
:The key value/string of an API key. This value is used when making API calls to authorize the call. For example, see GetMapGlyphs.
key_arn(String)
:The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:key/ExampleKey
-
key_name(String)
:The name of the API key resource.
create_time(DateTime)
:The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<CreateKeyError>
Source§impl Client
impl Client
Sourcepub fn create_map(&self) -> CreateMapFluentBuilder
pub fn create_map(&self) -> CreateMapFluentBuilder
Constructs a fluent builder for the CreateMap
operation.
- The fluent builder is configurable:
map_name(impl Into<String>)
/set_map_name(Option<String>)
:
required: trueThe 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
.
-
configuration(MapConfiguration)
/set_configuration(Option<MapConfiguration>)
:
required: trueSpecifies the
MapConfiguration
, including the map style, for the map resource that you create. The map style defines the look of maps and the data provider for your map resource.pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.description(impl Into<String>)
/set_description(Option<String>)
:
required: falseAn optional description for the map resource.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseApplies 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.
-
- On success, responds with
CreateMapOutput
with field(s):map_name(String)
:The name of the map resource.
map_arn(String)
:The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:map/ExampleMap
-
create_time(DateTime)
:The timestamp for when the map resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<CreateMapError>
Source§impl Client
impl Client
Sourcepub fn create_place_index(&self) -> CreatePlaceIndexFluentBuilder
pub fn create_place_index(&self) -> CreatePlaceIndexFluentBuilder
Constructs a fluent builder for the CreatePlaceIndex
operation.
- The fluent builder is configurable:
index_name(impl Into<String>)
/set_index_name(Option<String>)
:
required: trueThe 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
.
-
data_source(impl Into<String>)
/set_data_source(Option<String>)
:
required: trueSpecifies 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‘s coverage in your region of interest, see Esri details on geocoding coverage. -
Grab
– Grab provides place index functionality for Southeast Asia. For additional information about GrabMaps’ coverage, see GrabMaps countries and areas covered. -
Here
– For additional information about HERE Technologies’ coverage in your region of interest, see HERE details on goecoding coverage.If you specify HERE Technologies (
Here
) as the data provider, you may not store results for locations in Japan. For more information, see the Amazon Web Services Service Terms for Amazon Location Service.
For additional information , see Data providers on the Amazon Location Service Developer Guide.
-
pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe optional description for the place index resource.
data_source_configuration(DataSourceConfiguration)
/set_data_source_configuration(Option<DataSourceConfiguration>)
:
required: falseSpecifies the data storage option requesting Places.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseApplies 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.
-
- On success, responds with
CreatePlaceIndexOutput
with field(s):index_name(String)
:The name for the place index resource.
index_arn(String)
:The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:place-index/ExamplePlaceIndex
-
create_time(DateTime)
:The timestamp for when the place index resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<CreatePlaceIndexError>
Source§impl Client
impl Client
Sourcepub fn create_route_calculator(&self) -> CreateRouteCalculatorFluentBuilder
pub fn create_route_calculator(&self) -> CreateRouteCalculatorFluentBuilder
Constructs a fluent builder for the CreateRouteCalculator
operation.
- The fluent builder is configurable:
calculator_name(impl Into<String>)
/set_calculator_name(Option<String>)
:
required: trueThe 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
.
-
data_source(impl Into<String>)
/set_data_source(Option<String>)
:
required: trueSpecifies 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.Valid values include:
-
Esri
– For additional information about Esri‘s coverage in your region of interest, see Esri details on street networks and traffic coverage.Route calculators that use Esri as a data source only calculate routes that are shorter than 400 km.
-
Grab
– Grab provides routing functionality for Southeast Asia. For additional information about GrabMaps’ coverage, see GrabMaps countries and areas covered. -
Here
– For additional information about HERE Technologies’ coverage in your region of interest, see HERE car routing coverage and HERE truck routing coverage.
For additional information , see Data providers on the Amazon Location Service Developer Guide.
-
pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.description(impl Into<String>)
/set_description(Option<String>)
:
required: falseThe optional description for the route calculator resource.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseApplies 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.
-
- On success, responds with
CreateRouteCalculatorOutput
with field(s):calculator_name(String)
:The name of the route calculator resource.
-
For example,
ExampleRouteCalculator
.
-
calculator_arn(String)
:The Amazon Resource Name (ARN) for the route calculator resource. Use the ARN when you specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:route-calculator/ExampleCalculator
-
create_time(DateTime)
:The timestamp when the route calculator resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.-
For example,
2020–07-2T12:15:20.000Z+01:00
-
- On failure, responds with
SdkError<CreateRouteCalculatorError>
Source§impl Client
impl Client
Sourcepub fn create_tracker(&self) -> CreateTrackerFluentBuilder
pub fn create_tracker(&self) -> CreateTrackerFluentBuilder
Constructs a fluent builder for the CreateTracker
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe 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
.
-
pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.kms_key_id(impl Into<String>)
/set_kms_key_id(Option<String>)
:
required: falseA key identifier for an Amazon Web Services KMS customer managed key. Enter a key ID, key ARN, alias name, or alias ARN.
pricing_plan_data_source(impl Into<String>)
/set_pricing_plan_data_source(Option<String>)
:
required: falseThis parameter is no longer used.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseAn optional description for the tracker resource.
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: falseApplies 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.
-
position_filtering(PositionFiltering)
/set_position_filtering(Option<PositionFiltering>)
:
required: falseSpecifies 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
.-
event_bridge_enabled(bool)
/set_event_bridge_enabled(Option<bool>)
:
required: falseWhether to enable position
UPDATE
events from this tracker to be sent to EventBridge.You do not need enable this feature to get
ENTER
andEXIT
events for geofences with this tracker. Those events are always sent to EventBridge.kms_key_enable_geospatial_queries(bool)
/set_kms_key_enable_geospatial_queries(Option<bool>)
:
required: falseEnables
GeospatialQueries
for a tracker that uses a Amazon Web Services KMS customer managed key.This parameter is only used if you are using a KMS customer managed key.
If you wish to encrypt your data using your own KMS customer managed key, then the Bounding Polygon Queries feature will be disabled by default. This is because by using this feature, a representation of your device positions will not be encrypted using the your KMS managed key. The exact device position, however; is still encrypted using your managed key.
You can choose to opt-in to the Bounding Polygon Quseries feature. This is done by setting the
KmsKeyEnableGeospatialQueries
parameter to true when creating or updating a Tracker.
- On success, responds with
CreateTrackerOutput
with field(s):tracker_name(String)
:The name of the tracker resource.
tracker_arn(String)
:The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:tracker/ExampleTracker
-
create_time(DateTime)
:The timestamp for when the tracker resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<CreateTrackerError>
Source§impl Client
impl Client
Sourcepub fn delete_geofence_collection(
&self,
) -> DeleteGeofenceCollectionFluentBuilder
pub fn delete_geofence_collection( &self, ) -> DeleteGeofenceCollectionFluentBuilder
Constructs a fluent builder for the DeleteGeofenceCollection
operation.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe name of the geofence collection to be deleted.
- On success, responds with
DeleteGeofenceCollectionOutput
- On failure, responds with
SdkError<DeleteGeofenceCollectionError>
Source§impl Client
impl Client
Sourcepub fn delete_key(&self) -> DeleteKeyFluentBuilder
pub fn delete_key(&self) -> DeleteKeyFluentBuilder
Constructs a fluent builder for the DeleteKey
operation.
- The fluent builder is configurable:
key_name(impl Into<String>)
/set_key_name(Option<String>)
:
required: trueThe name of the API key to delete.
force_delete(bool)
/set_force_delete(Option<bool>)
:
required: falseForceDelete bypasses an API key’s expiry conditions and deletes the key. Set the parameter
true
to delete the key or tofalse
to not preemptively delete the API key.Valid values:
true
, orfalse
.Required: No
This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.
- On success, responds with
DeleteKeyOutput
- On failure, responds with
SdkError<DeleteKeyError>
Source§impl Client
impl Client
Sourcepub fn delete_map(&self) -> DeleteMapFluentBuilder
pub fn delete_map(&self) -> DeleteMapFluentBuilder
Constructs a fluent builder for the DeleteMap
operation.
- The fluent builder is configurable:
map_name(impl Into<String>)
/set_map_name(Option<String>)
:
required: trueThe name of the map resource to be deleted.
- On success, responds with
DeleteMapOutput
- On failure, responds with
SdkError<DeleteMapError>
Source§impl Client
impl Client
Sourcepub fn delete_place_index(&self) -> DeletePlaceIndexFluentBuilder
pub fn delete_place_index(&self) -> DeletePlaceIndexFluentBuilder
Constructs a fluent builder for the DeletePlaceIndex
operation.
- The fluent builder is configurable:
index_name(impl Into<String>)
/set_index_name(Option<String>)
:
required: trueThe name of the place index resource to be deleted.
- On success, responds with
DeletePlaceIndexOutput
- On failure, responds with
SdkError<DeletePlaceIndexError>
Source§impl Client
impl Client
Sourcepub fn delete_route_calculator(&self) -> DeleteRouteCalculatorFluentBuilder
pub fn delete_route_calculator(&self) -> DeleteRouteCalculatorFluentBuilder
Constructs a fluent builder for the DeleteRouteCalculator
operation.
- The fluent builder is configurable:
calculator_name(impl Into<String>)
/set_calculator_name(Option<String>)
:
required: trueThe name of the route calculator resource to be deleted.
- On success, responds with
DeleteRouteCalculatorOutput
- On failure, responds with
SdkError<DeleteRouteCalculatorError>
Source§impl Client
impl Client
Sourcepub fn delete_tracker(&self) -> DeleteTrackerFluentBuilder
pub fn delete_tracker(&self) -> DeleteTrackerFluentBuilder
Constructs a fluent builder for the DeleteTracker
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe name of the tracker resource to be deleted.
- On success, responds with
DeleteTrackerOutput
- On failure, responds with
SdkError<DeleteTrackerError>
Source§impl Client
impl Client
Sourcepub fn describe_geofence_collection(
&self,
) -> DescribeGeofenceCollectionFluentBuilder
pub fn describe_geofence_collection( &self, ) -> DescribeGeofenceCollectionFluentBuilder
Constructs a fluent builder for the DescribeGeofenceCollection
operation.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe name of the geofence collection.
- On success, responds with
DescribeGeofenceCollectionOutput
with field(s):collection_name(String)
:The name of the geofence collection.
collection_arn(String)
:The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
-
description(String)
:The optional description for the geofence collection.
pricing_plan(Option<PricingPlan>)
:No longer used. Always returns
RequestBasedUsage
.pricing_plan_data_source(Option<String>)
:No longer used. Always returns an empty string.
kms_key_id(Option<String>)
:A key identifier for an Amazon Web Services KMS customer managed key assigned to the Amazon Location resource
tags(Option<HashMap::<String, String>>)
:Displays the key, value pairs of tags associated with this resource.
create_time(DateTime)
:The timestamp for when the geofence resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
update_time(DateTime)
:The timestamp for when the geofence collection was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
geofence_count(Option<i32>)
:The number of geofences in the geofence collection.
- On failure, responds with
SdkError<DescribeGeofenceCollectionError>
Source§impl Client
impl Client
Sourcepub fn describe_key(&self) -> DescribeKeyFluentBuilder
pub fn describe_key(&self) -> DescribeKeyFluentBuilder
Constructs a fluent builder for the DescribeKey
operation.
- The fluent builder is configurable:
key_name(impl Into<String>)
/set_key_name(Option<String>)
:
required: trueThe name of the API key resource.
- On success, responds with
DescribeKeyOutput
with field(s):key(String)
:The key value/string of an API key.
key_arn(String)
:The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:key/ExampleKey
-
key_name(String)
:The name of the API key resource.
restrictions(Option<ApiKeyRestrictions>)
:API Restrictions on the allowed actions, resources, and referers for an API key resource.
create_time(DateTime)
:The timestamp for when the API key resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.expire_time(DateTime)
:The timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.update_time(DateTime)
:The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.description(Option<String>)
:The optional description for the API key resource.
tags(Option<HashMap::<String, String>>)
:Tags associated with the API key resource.
- On failure, responds with
SdkError<DescribeKeyError>
Source§impl Client
impl Client
Sourcepub fn describe_map(&self) -> DescribeMapFluentBuilder
pub fn describe_map(&self) -> DescribeMapFluentBuilder
Constructs a fluent builder for the DescribeMap
operation.
- The fluent builder is configurable:
map_name(impl Into<String>)
/set_map_name(Option<String>)
:
required: trueThe name of the map resource.
- On success, responds with
DescribeMapOutput
with field(s):map_name(String)
:The map style selected from an available provider.
map_arn(String)
:The Amazon Resource Name (ARN) for the map resource. Used to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:map/ExampleMap
-
pricing_plan(Option<PricingPlan>)
:No longer used. Always returns
RequestBasedUsage
.data_source(String)
:Specifies the data provider for the associated map tiles.
configuration(Option<MapConfiguration>)
:Specifies the map tile style selected from a partner data provider.
description(String)
:The optional description for the map resource.
tags(Option<HashMap::<String, String>>)
:Tags associated with the map resource.
create_time(DateTime)
:The timestamp for when the map resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.update_time(DateTime)
:The timestamp for when the map resource was last update in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<DescribeMapError>
Source§impl Client
impl Client
Sourcepub fn describe_place_index(&self) -> DescribePlaceIndexFluentBuilder
pub fn describe_place_index(&self) -> DescribePlaceIndexFluentBuilder
Constructs a fluent builder for the DescribePlaceIndex
operation.
- The fluent builder is configurable:
index_name(impl Into<String>)
/set_index_name(Option<String>)
:
required: trueThe name of the place index resource.
- On success, responds with
DescribePlaceIndexOutput
with field(s):index_name(String)
:The name of the place index resource being described.
index_arn(String)
:The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:place-index/ExamplePlaceIndex
-
pricing_plan(Option<PricingPlan>)
:No longer used. Always returns
RequestBasedUsage
.description(String)
:The optional description for the place index resource.
create_time(DateTime)
:The timestamp for when the place index resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.update_time(DateTime)
:The timestamp for when the place index resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.data_source(String)
:The data provider of geospatial data. Values can be one of the following:
-
Esri
-
Grab
-
Here
For more information about data providers, see Amazon Location Service data providers.
-
data_source_configuration(Option<DataSourceConfiguration>)
:The specified data storage option for requesting Places.
tags(Option<HashMap::<String, String>>)
:Tags associated with place index resource.
- On failure, responds with
SdkError<DescribePlaceIndexError>
Source§impl Client
impl Client
Sourcepub fn describe_route_calculator(&self) -> DescribeRouteCalculatorFluentBuilder
pub fn describe_route_calculator(&self) -> DescribeRouteCalculatorFluentBuilder
Constructs a fluent builder for the DescribeRouteCalculator
operation.
- The fluent builder is configurable:
calculator_name(impl Into<String>)
/set_calculator_name(Option<String>)
:
required: trueThe name of the route calculator resource.
- On success, responds with
DescribeRouteCalculatorOutput
with field(s):calculator_name(String)
:The name of the route calculator resource being described.
calculator_arn(String)
:The Amazon Resource Name (ARN) for the Route calculator resource. Use the ARN when you specify a resource across Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:route-calculator/ExampleCalculator
-
pricing_plan(Option<PricingPlan>)
:Always returns
RequestBasedUsage
.description(String)
:The optional description of the route calculator resource.
create_time(DateTime)
:The timestamp when the route calculator resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.-
For example,
2020–07-2T12:15:20.000Z+01:00
-
update_time(DateTime)
:The timestamp when the route calculator resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.-
For example,
2020–07-2T12:15:20.000Z+01:00
-
data_source(String)
:The data provider of traffic and road network data. Indicates one of the available providers:
-
Esri
-
Grab
-
Here
For more information about data providers, see Amazon Location Service data providers.
-
tags(Option<HashMap::<String, String>>)
:Tags associated with route calculator resource.
- On failure, responds with
SdkError<DescribeRouteCalculatorError>
Source§impl Client
impl Client
Sourcepub fn describe_tracker(&self) -> DescribeTrackerFluentBuilder
pub fn describe_tracker(&self) -> DescribeTrackerFluentBuilder
Constructs a fluent builder for the DescribeTracker
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe name of the tracker resource.
- On success, responds with
DescribeTrackerOutput
with field(s):tracker_name(String)
:The name of the tracker resource.
tracker_arn(String)
:The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:tracker/ExampleTracker
-
description(String)
:The optional description for the tracker resource.
pricing_plan(Option<PricingPlan>)
:Always returns
RequestBasedUsage
.pricing_plan_data_source(Option<String>)
:No longer used. Always returns an empty string.
tags(Option<HashMap::<String, String>>)
:The tags associated with the tracker resource.
create_time(DateTime)
:The timestamp for when the tracker resource was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.update_time(DateTime)
:The timestamp for when the tracker resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.kms_key_id(Option<String>)
:A key identifier for an Amazon Web Services KMS customer managed key assigned to the Amazon Location resource.
position_filtering(Option<PositionFiltering>)
:The position filtering method of the tracker resource.
event_bridge_enabled(Option<bool>)
:Whether
UPDATE
events from this tracker in EventBridge are enabled. If set totrue
these events will be sent to EventBridge.kms_key_enable_geospatial_queries(Option<bool>)
:Enables
GeospatialQueries
for a tracker that uses a Amazon Web Services KMS customer managed key.This parameter is only used if you are using a KMS customer managed key.
If you wish to encrypt your data using your own KMS customer managed key, then the Bounding Polygon Queries feature will be disabled by default. This is because by using this feature, a representation of your device positions will not be encrypted using the your KMS managed key. The exact device position, however; is still encrypted using your managed key.
You can choose to opt-in to the Bounding Polygon Quseries feature. This is done by setting the
KmsKeyEnableGeospatialQueries
parameter to true when creating or updating a Tracker.
- On failure, responds with
SdkError<DescribeTrackerError>
Source§impl Client
impl Client
Sourcepub fn disassociate_tracker_consumer(
&self,
) -> DisassociateTrackerConsumerFluentBuilder
pub fn disassociate_tracker_consumer( &self, ) -> DisassociateTrackerConsumerFluentBuilder
Constructs a fluent builder for the DisassociateTrackerConsumer
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe name of the tracker resource to be dissociated from the consumer.
consumer_arn(impl Into<String>)
/set_consumer_arn(Option<String>)
:
required: trueThe 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 Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer
-
- On success, responds with
DisassociateTrackerConsumerOutput
- On failure, responds with
SdkError<DisassociateTrackerConsumerError>
Source§impl Client
impl Client
Sourcepub fn forecast_geofence_events(&self) -> ForecastGeofenceEventsFluentBuilder
pub fn forecast_geofence_events(&self) -> ForecastGeofenceEventsFluentBuilder
Constructs a fluent builder for the ForecastGeofenceEvents
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe name of the geofence collection.
device_state(ForecastGeofenceEventsDeviceState)
/set_device_state(Option<ForecastGeofenceEventsDeviceState>)
:
required: trueThe device’s state, including current position and speed.
time_horizon_minutes(f64)
/set_time_horizon_minutes(Option<f64>)
:
required: falseSpecifies the time horizon in minutes for the forecasted events.
distance_unit(DistanceUnit)
/set_distance_unit(Option<DistanceUnit>)
:
required: falseThe distance unit used for the
NearestDistance
property returned in a forecasted event. The measurement system must match forDistanceUnit
andSpeedUnit
; ifKilometers
is specified forDistanceUnit
, thenSpeedUnit
must beKilometersPerHour
.Default Value:
Kilometers
speed_unit(SpeedUnit)
/set_speed_unit(Option<SpeedUnit>)
:
required: falseThe speed unit for the device captured by the device state. The measurement system must match for
DistanceUnit
andSpeedUnit
; ifKilometers
is specified forDistanceUnit
, thenSpeedUnit
must beKilometersPerHour
.Default Value:
KilometersPerHour
.next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the number of resources returned in a single call.
Default value:
20
- On success, responds with
ForecastGeofenceEventsOutput
with field(s):forecasted_events(Vec::<ForecastedEvent>)
:The list of forecasted events.
next_token(Option<String>)
: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.
distance_unit(DistanceUnit)
:The distance unit for the forecasted events.
speed_unit(SpeedUnit)
:The speed unit for the forecasted events.
- On failure, responds with
SdkError<ForecastGeofenceEventsError>
Source§impl Client
impl Client
Sourcepub fn get_device_position(&self) -> GetDevicePositionFluentBuilder
pub fn get_device_position(&self) -> GetDevicePositionFluentBuilder
Constructs a fluent builder for the GetDevicePosition
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe tracker resource receiving the position update.
device_id(impl Into<String>)
/set_device_id(Option<String>)
:
required: trueThe device whose position you want to retrieve.
- On success, responds with
GetDevicePositionOutput
with field(s):device_id(Option<String>)
:The device whose position you retrieved.
sample_time(DateTime)
:The timestamp at which the device’s position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.received_time(DateTime)
:The timestamp for when the tracker resource received the device position. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.position(Vec::<f64>)
:The last known device position.
accuracy(Option<PositionalAccuracy>)
:The accuracy of the device position.
position_properties(Option<HashMap::<String, String>>)
:The properties associated with the position.
- On failure, responds with
SdkError<GetDevicePositionError>
Source§impl Client
impl Client
Sourcepub fn get_device_position_history(
&self,
) -> GetDevicePositionHistoryFluentBuilder
pub fn get_device_position_history( &self, ) -> GetDevicePositionHistoryFluentBuilder
Constructs a fluent builder for the GetDevicePositionHistory
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe tracker resource receiving the request for the device position history.
device_id(impl Into<String>)
/set_device_id(Option<String>)
:
required: trueThe device whose position history you want to retrieve.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
start_time_inclusive(DateTime)
/set_start_time_inclusive(Option<DateTime>)
:
required: falseSpecify the start time for the position history in ISO 8601 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 beforeEndTimeExclusive
.
-
end_time_exclusive(DateTime)
/set_end_time_exclusive(Option<DateTime>)
:
required: falseSpecify the end time for the position history in ISO 8601 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 forStartTimeInclusive
.
-
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the number of device positions returned in a single call.
Default value:
100
- On success, responds with
GetDevicePositionHistoryOutput
with field(s):device_positions(Vec::<DevicePosition>)
:Contains the position history details for the requested device.
next_token(Option<String>)
:A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
- On failure, responds with
SdkError<GetDevicePositionHistoryError>
Source§impl Client
impl Client
Sourcepub fn get_geofence(&self) -> GetGeofenceFluentBuilder
pub fn get_geofence(&self) -> GetGeofenceFluentBuilder
Constructs a fluent builder for the GetGeofence
operation.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe geofence collection storing the target geofence.
geofence_id(impl Into<String>)
/set_geofence_id(Option<String>)
:
required: trueThe geofence you’re retrieving details for.
- On success, responds with
GetGeofenceOutput
with field(s):geofence_id(String)
:The geofence identifier.
geometry(Option<GeofenceGeometry>)
:Contains the geofence geometry details describing a polygon or a circle.
status(String)
:Identifies the state of the geofence. A geofence will hold one of the following states:
-
ACTIVE
— The geofence has been indexed by the system. -
PENDING
— The geofence is being processed by the system. -
FAILED
— The geofence failed to be indexed by the system. -
DELETED
— The geofence has been deleted from the system index. -
DELETING
— The geofence is being deleted from the system index.
-
create_time(DateTime)
:The timestamp for when the geofence collection was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
update_time(DateTime)
:The timestamp for when the geofence collection was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
geofence_properties(Option<HashMap::<String, String>>)
:User defined properties of the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence.
Format:
“key” : “value”
- On failure, responds with
SdkError<GetGeofenceError>
Source§impl Client
impl Client
Sourcepub fn get_map_glyphs(&self) -> GetMapGlyphsFluentBuilder
pub fn get_map_glyphs(&self) -> GetMapGlyphsFluentBuilder
Constructs a fluent builder for the GetMapGlyphs
operation.
- The fluent builder is configurable:
map_name(impl Into<String>)
/set_map_name(Option<String>)
:
required: trueThe map resource associated with the glyph file.
font_stack(impl Into<String>)
/set_font_stack(Option<String>)
:
required: trueA comma-separated list of fonts to load glyphs from in order of preference. For example,
Noto Sans Regular, Arial Unicode
.Valid font stacks for Esri 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 styles:
-
VectorHereContrast –
Fira GO Regular
|Fira GO Bold
-
VectorHereExplore, VectorHereExploreTruck, HybridHereExploreSatellite –
Fira GO Italic
|Fira GO Map
|Fira GO Map Bold
|Noto Sans CJK JP Bold
|Noto Sans CJK JP Light
|Noto Sans CJK JP Regular
Valid font stacks for GrabMaps styles:
-
VectorGrabStandardLight, VectorGrabStandardDark –
Noto Sans Regular
|Noto Sans Medium
|Noto Sans Bold
Valid font stacks for Open Data styles:
-
VectorOpenDataStandardLight, VectorOpenDataStandardDark, VectorOpenDataVisualizationLight, VectorOpenDataVisualizationDark –
Amazon Ember Regular,Noto Sans Regular
|Amazon Ember Bold,Noto Sans Bold
|Amazon Ember Medium,Noto Sans Medium
|Amazon Ember Regular Italic,Noto Sans Italic
|Amazon Ember Condensed RC Regular,Noto Sans Regular
|Amazon Ember Condensed RC Bold,Noto Sans Bold
|Amazon Ember Regular,Noto Sans Regular,Noto Sans Arabic Regular
|Amazon Ember Condensed RC Bold,Noto Sans Bold,Noto Sans Arabic Condensed Bold
|Amazon Ember Bold,Noto Sans Bold,Noto Sans Arabic Bold
|Amazon Ember Regular Italic,Noto Sans Italic,Noto Sans Arabic Regular
|Amazon Ember Condensed RC Regular,Noto Sans Regular,Noto Sans Arabic Condensed Regular
|Amazon Ember Medium,Noto Sans Medium,Noto Sans Arabic Medium
The fonts used by the Open Data map styles are combined fonts that use
Amazon Ember
for most glyphs butNoto Sans
for glyphs unsupported byAmazon Ember
.-
font_unicode_range(impl Into<String>)
/set_font_unicode_range(Option<String>)
:
required: trueA 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
to00FF
. Must be aligned to multiples of 256.key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
GetMapGlyphsOutput
with field(s):blob(Option<Blob>)
:The glyph, as binary blob.
content_type(Option<String>)
:The map glyph content type. For example,
application/octet-stream
.cache_control(Option<String>)
:The HTTP Cache-Control directive for the value.
- On failure, responds with
SdkError<GetMapGlyphsError>
Source§impl Client
impl Client
Sourcepub fn get_map_sprites(&self) -> GetMapSpritesFluentBuilder
pub fn get_map_sprites(&self) -> GetMapSpritesFluentBuilder
Constructs a fluent builder for the GetMapSprites
operation.
- The fluent builder is configurable:
map_name(impl Into<String>)
/set_map_name(Option<String>)
:
required: trueThe map resource associated with the sprite file.
file_name(impl Into<String>)
/set_file_name(Option<String>)
:
required: trueThe 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 containing image offsets. Use the following file names:
-
sprites.json
-
sprites@2x.json
for high pixel density displays
-
key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
GetMapSpritesOutput
with field(s):blob(Option<Blob>)
:Contains the body of the sprite sheet or JSON offset file.
content_type(Option<String>)
:The content type of the sprite sheet and offsets. For example, the sprite sheet content type is
image/png
, and the sprite offset JSON document isapplication/json
.cache_control(Option<String>)
:The HTTP Cache-Control directive for the value.
- On failure, responds with
SdkError<GetMapSpritesError>
Source§impl Client
impl Client
Sourcepub fn get_map_style_descriptor(&self) -> GetMapStyleDescriptorFluentBuilder
pub fn get_map_style_descriptor(&self) -> GetMapStyleDescriptorFluentBuilder
Constructs a fluent builder for the GetMapStyleDescriptor
operation.
- The fluent builder is configurable:
map_name(impl Into<String>)
/set_map_name(Option<String>)
:
required: trueThe map resource to retrieve the style descriptor from.
key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
GetMapStyleDescriptorOutput
with field(s):blob(Option<Blob>)
:Contains the body of the style descriptor.
content_type(Option<String>)
:The style descriptor’s content type. For example,
application/json
.cache_control(Option<String>)
:The HTTP Cache-Control directive for the value.
- On failure, responds with
SdkError<GetMapStyleDescriptorError>
Source§impl Client
impl Client
Sourcepub fn get_map_tile(&self) -> GetMapTileFluentBuilder
pub fn get_map_tile(&self) -> GetMapTileFluentBuilder
Constructs a fluent builder for the GetMapTile
operation.
- The fluent builder is configurable:
map_name(impl Into<String>)
/set_map_name(Option<String>)
:
required: trueThe map resource to retrieve the map tiles from.
z(impl Into<String>)
/set_z(Option<String>)
:
required: trueThe zoom value for the map tile.
x(impl Into<String>)
/set_x(Option<String>)
:
required: trueThe X axis value for the map tile.
y(impl Into<String>)
/set_y(Option<String>)
:
required: trueThe Y axis value for the map tile.
key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
GetMapTileOutput
with field(s):blob(Option<Blob>)
:Contains Mapbox Vector Tile (MVT) data.
content_type(Option<String>)
:The map tile’s content type. For example,
application/vnd.mapbox-vector-tile
.cache_control(Option<String>)
:The HTTP Cache-Control directive for the value.
- On failure, responds with
SdkError<GetMapTileError>
Source§impl Client
impl Client
Sourcepub fn get_place(&self) -> GetPlaceFluentBuilder
pub fn get_place(&self) -> GetPlaceFluentBuilder
Constructs a fluent builder for the GetPlace
operation.
- The fluent builder is configurable:
index_name(impl Into<String>)
/set_index_name(Option<String>)
:
required: trueThe name of the place index resource that you want to use for the search.
place_id(impl Into<String>)
/set_place_id(Option<String>)
:
required: trueThe identifier of the place to find.
language(impl Into<String>)
/set_language(Option<String>)
:
required: falseThe preferred language used to return results. The value must be a valid BCP 47 language tag, for example,
en
for English.This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.
For an example, we’ll use the Greek language. You search for a location around Athens, Greece, with the
language
parameter set toen
. Thecity
in the results will most likely be returned asAthens
.If you set the
language
parameter toel
, for Greek, then thecity
in the results will more likely be returned asΑθήνα
.If the data provider does not have a value for Greek, the result will be in a language that the provider does support.
key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
GetPlaceOutput
with field(s):place(Option<Place>)
:Details about the result, such as its address and position.
- On failure, responds with
SdkError<GetPlaceError>
Source§impl Client
impl Client
Sourcepub fn list_device_positions(&self) -> ListDevicePositionsFluentBuilder
pub fn list_device_positions(&self) -> ListDevicePositionsFluentBuilder
Constructs a fluent builder for the ListDevicePositions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe tracker resource containing the requested devices.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the number of entries returned in a single call.
Default value:
100
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
filter_geometry(TrackingFilterGeometry)
/set_filter_geometry(Option<TrackingFilterGeometry>)
:
required: falseThe geometry used to filter device positions.
- On success, responds with
ListDevicePositionsOutput
with field(s):entries(Vec::<ListDevicePositionsResponseEntry>)
:Contains details about each device’s last known position.
next_token(Option<String>)
:A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
- On failure, responds with
SdkError<ListDevicePositionsError>
Source§impl Client
impl Client
Sourcepub fn list_geofence_collections(&self) -> ListGeofenceCollectionsFluentBuilder
pub fn list_geofence_collections(&self) -> ListGeofenceCollectionsFluentBuilder
Constructs a fluent builder for the ListGeofenceCollections
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the number of resources returned in a single call.
Default value:
100
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
- On success, responds with
ListGeofenceCollectionsOutput
with field(s):entries(Vec::<ListGeofenceCollectionsResponseEntry>)
:Lists the geofence collections that exist in your Amazon Web Services account.
next_token(Option<String>)
:A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
- On failure, responds with
SdkError<ListGeofenceCollectionsError>
Source§impl Client
impl Client
Sourcepub fn list_geofences(&self) -> ListGeofencesFluentBuilder
pub fn list_geofences(&self) -> ListGeofencesFluentBuilder
Constructs a fluent builder for the ListGeofences
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe name of the geofence collection storing the list of geofences.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the number of geofences returned in a single call.
Default value:
100
- On success, responds with
ListGeofencesOutput
with field(s):entries(Vec::<ListGeofenceResponseEntry>)
:Contains a list of geofences stored in the geofence collection.
next_token(Option<String>)
:A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
- On failure, responds with
SdkError<ListGeofencesError>
Source§impl Client
impl Client
Sourcepub fn list_keys(&self) -> ListKeysFluentBuilder
pub fn list_keys(&self) -> ListKeysFluentBuilder
Constructs a fluent builder for the ListKeys
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the number of resources returned in a single call.
Default value:
100
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
filter(ApiKeyFilter)
/set_filter(Option<ApiKeyFilter>)
:
required: falseOptionally filter the list to only
Active
orExpired
API keys.
- On success, responds with
ListKeysOutput
with field(s):entries(Vec::<ListKeysResponseEntry>)
:Contains API key resources in your Amazon Web Services account. Details include API key name, allowed referers and timestamp for when the API key will expire.
next_token(Option<String>)
:A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
- On failure, responds with
SdkError<ListKeysError>
Source§impl Client
impl Client
Sourcepub fn list_maps(&self) -> ListMapsFluentBuilder
pub fn list_maps(&self) -> ListMapsFluentBuilder
Constructs a fluent builder for the ListMaps
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the number of resources returned in a single call.
Default value:
100
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
- On success, responds with
ListMapsOutput
with field(s):entries(Vec::<ListMapsResponseEntry>)
:Contains a list of maps in your Amazon Web Services account
next_token(Option<String>)
:A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
- On failure, responds with
SdkError<ListMapsError>
Source§impl Client
impl Client
Sourcepub fn list_place_indexes(&self) -> ListPlaceIndexesFluentBuilder
pub fn list_place_indexes(&self) -> ListPlaceIndexesFluentBuilder
Constructs a fluent builder for the ListPlaceIndexes
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the maximum number of results returned in a single call.
Default value:
100
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
- On success, responds with
ListPlaceIndexesOutput
with field(s):entries(Vec::<ListPlaceIndexesResponseEntry>)
:Lists the place index resources that exist in your Amazon Web Services account
next_token(Option<String>)
:A pagination token indicating that there are additional pages available. You can use the token in a new request to fetch the next page of results.
- On failure, responds with
SdkError<ListPlaceIndexesError>
Source§impl Client
impl Client
Sourcepub fn list_route_calculators(&self) -> ListRouteCalculatorsFluentBuilder
pub fn list_route_calculators(&self) -> ListRouteCalculatorsFluentBuilder
Constructs a fluent builder for the ListRouteCalculators
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional maximum number of results returned in a single call.
Default Value:
100
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
- On success, responds with
ListRouteCalculatorsOutput
with field(s):entries(Vec::<ListRouteCalculatorsResponseEntry>)
:Lists the route calculator resources that exist in your Amazon Web Services account
next_token(Option<String>)
:A pagination token indicating there are additional pages available. You can use the token in a subsequent request to fetch the next set of results.
- On failure, responds with
SdkError<ListRouteCalculatorsError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.
-
Format example:
arn:aws:geo:region:account-id:resourcetype/ExampleResource
-
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<HashMap::<String, String>>)
:Tags that have been applied to the specified resource. Tags are mapped from the tag key to the tag value:
“TagKey” : “TagValue”
.-
Format example:
{“tag1” : “value1”, “tag2” : “value2”}
-
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn list_tracker_consumers(&self) -> ListTrackerConsumersFluentBuilder
pub fn list_tracker_consumers(&self) -> ListTrackerConsumersFluentBuilder
Constructs a fluent builder for the ListTrackerConsumers
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe tracker resource whose associated geofence collections you want to list.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the number of resources returned in a single call.
Default value:
100
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
- On success, responds with
ListTrackerConsumersOutput
with field(s):consumer_arns(Vec::<String>)
:Contains the list of geofence collection ARNs associated to the tracker resource.
next_token(Option<String>)
:A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
- On failure, responds with
SdkError<ListTrackerConsumersError>
Source§impl Client
impl Client
Sourcepub fn list_trackers(&self) -> ListTrackersFluentBuilder
pub fn list_trackers(&self) -> ListTrackersFluentBuilder
Constructs a fluent builder for the ListTrackers
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional limit for the number of resources returned in a single call.
Default value:
100
next_token(impl Into<String>)
/set_next_token(Option<String>)
:
required: falseThe 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
- On success, responds with
ListTrackersOutput
with field(s):entries(Vec::<ListTrackersResponseEntry>)
:Contains tracker resources in your Amazon Web Services account. Details include tracker name, description and timestamps for when the tracker was created and last updated.
next_token(Option<String>)
:A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.
- On failure, responds with
SdkError<ListTrackersError>
Source§impl Client
impl Client
Sourcepub fn put_geofence(&self) -> PutGeofenceFluentBuilder
pub fn put_geofence(&self) -> PutGeofenceFluentBuilder
Constructs a fluent builder for the PutGeofence
operation.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe geofence collection to store the geofence in.
geofence_id(impl Into<String>)
/set_geofence_id(Option<String>)
:
required: trueAn identifier for the geofence. For example,
ExampleGeofence-1
.geometry(GeofenceGeometry)
/set_geometry(Option<GeofenceGeometry>)
:
required: trueContains the details to specify the position of the geofence. Can be a polygon, a circle or a polygon encoded in Geobuf format. Including multiple selections will return a validation error.
The geofence polygon format supports a maximum of 1,000 vertices. The Geofence Geobuf format supports a maximum of 100,000 vertices.
geofence_properties(impl Into<String>, impl Into<String>)
/set_geofence_properties(Option<HashMap::<String, String>>)
:
required: falseAssociates one of more properties with the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence.
Format:
“key” : “value”
- On success, responds with
PutGeofenceOutput
with field(s):geofence_id(String)
:The geofence identifier entered in the request.
create_time(DateTime)
:The timestamp for when the geofence was created in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
update_time(DateTime)
:The timestamp for when the geofence was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
- On failure, responds with
SdkError<PutGeofenceError>
Source§impl Client
impl Client
Sourcepub fn search_place_index_for_position(
&self,
) -> SearchPlaceIndexForPositionFluentBuilder
pub fn search_place_index_for_position( &self, ) -> SearchPlaceIndexForPositionFluentBuilder
Constructs a fluent builder for the SearchPlaceIndexForPosition
operation.
- The fluent builder is configurable:
index_name(impl Into<String>)
/set_index_name(Option<String>)
:
required: trueThe name of the place index resource you want to use for the search.
position(f64)
/set_position(Option<Vec::<f64>>)
:
required: trueSpecifies 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 latitude49.2847
.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional parameter. The maximum number of results returned per request.
Default value:
50
language(impl Into<String>)
/set_language(Option<String>)
:
required: falseThe preferred language used to return results. The value must be a valid BCP 47 language tag, for example,
en
for English.This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.
For an example, we’ll use the Greek language. You search for a location around Athens, Greece, with the
language
parameter set toen
. Thecity
in the results will most likely be returned asAthens
.If you set the
language
parameter toel
, for Greek, then thecity
in the results will more likely be returned asΑθήνα
.If the data provider does not have a value for Greek, the result will be in a language that the provider does support.
key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
SearchPlaceIndexForPositionOutput
with field(s):summary(Option<SearchPlaceIndexForPositionSummary>)
:Contains a summary of the request. Echoes the input values for
Position
,Language
,MaxResults
, and theDataSource
of the place index.results(Vec::<SearchForPositionResult>)
:Returns a list of Places closest to the specified position. Each result contains additional information about the Places returned.
- On failure, responds with
SdkError<SearchPlaceIndexForPositionError>
Source§impl Client
impl Client
Sourcepub fn search_place_index_for_suggestions(
&self,
) -> SearchPlaceIndexForSuggestionsFluentBuilder
pub fn search_place_index_for_suggestions( &self, ) -> SearchPlaceIndexForSuggestionsFluentBuilder
Constructs a fluent builder for the SearchPlaceIndexForSuggestions
operation.
- The fluent builder is configurable:
index_name(impl Into<String>)
/set_index_name(Option<String>)
:
required: trueThe name of the place index resource you want to use for the search.
text(impl Into<String>)
/set_text(Option<String>)
:
required: trueThe free-form partial text to use to generate place suggestions. For example,
eiffel tow
.bias_position(f64)
/set_bias_position(Option<Vec::<f64>>)
:
required: falseAn 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 latitude49.2847
.BiasPosition
andFilterBBox
are mutually exclusive. Specifying both options results in an error.filter_b_box(f64)
/set_filter_b_box(Option<Vec::<f64>>)
:
required: falseAn 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
andBiasPosition
are mutually exclusive. Specifying both options results in an error.filter_countries(impl Into<String>)
/set_filter_countries(Option<Vec::<String>>)
:
required: falseAn optional parameter that limits the search results by returning only suggestions within the provided list of countries.
-
Use the ISO 3166 3-digit country code. For example, Australia uses three upper-case characters:
AUS
.
-
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional parameter. The maximum number of results returned per request.
The default:
5
language(impl Into<String>)
/set_language(Option<String>)
:
required: falseThe preferred language used to return results. The value must be a valid BCP 47 language tag, for example,
en
for English.This setting affects the languages used in the results. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.
For an example, we’ll use the Greek language. You search for
Athens, Gr
to get suggestions with thelanguage
parameter set toen
. The results found will most likely be returned asAthens, Greece
.If you set the
language
parameter toel
, for Greek, then the result found will more likely be returned asΑθήνα, Ελλάδα
.If the data provider does not have a value for Greek, the result will be in a language that the provider does support.
filter_categories(impl Into<String>)
/set_filter_categories(Option<Vec::<String>>)
:
required: falseA list of one or more Amazon Location categories to filter the returned places. If you include more than one category, the results will include results that match any of the categories listed.
For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the Amazon Location Service Developer Guide.
key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
SearchPlaceIndexForSuggestionsOutput
with field(s):summary(Option<SearchPlaceIndexForSuggestionsSummary>)
:Contains a summary of the request. Echoes the input values for
BiasPosition
,FilterBBox
,FilterCountries
,Language
,MaxResults
, andText
. Also includes theDataSource
of the place index.results(Vec::<SearchForSuggestionsResult>)
:A list of place suggestions that best match the search text.
- On failure, responds with
SdkError<SearchPlaceIndexForSuggestionsError>
Source§impl Client
impl Client
Sourcepub fn search_place_index_for_text(
&self,
) -> SearchPlaceIndexForTextFluentBuilder
pub fn search_place_index_for_text( &self, ) -> SearchPlaceIndexForTextFluentBuilder
Constructs a fluent builder for the SearchPlaceIndexForText
operation.
- The fluent builder is configurable:
index_name(impl Into<String>)
/set_index_name(Option<String>)
:
required: trueThe name of the place index resource you want to use for the search.
text(impl Into<String>)
/set_text(Option<String>)
:
required: trueThe address, name, city, or region to be used in the search in free-form text format. For example,
123 Any Street
.bias_position(f64)
/set_bias_position(Option<Vec::<f64>>)
:
required: falseAn 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 latitude49.2847
.BiasPosition
andFilterBBox
are mutually exclusive. Specifying both options results in an error.filter_b_box(f64)
/set_filter_b_box(Option<Vec::<f64>>)
:
required: falseAn 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
andBiasPosition
are mutually exclusive. Specifying both options results in an error.filter_countries(impl Into<String>)
/set_filter_countries(Option<Vec::<String>>)
:
required: falseAn optional parameter that limits the search results by returning only places that are in a specified list of countries.
-
Valid values include ISO 3166 3-digit country codes. For example, Australia uses three upper-case characters:
AUS
.
-
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseAn optional parameter. The maximum number of results returned per request.
The default:
50
language(impl Into<String>)
/set_language(Option<String>)
:
required: falseThe preferred language used to return results. The value must be a valid BCP 47 language tag, for example,
en
for English.This setting affects the languages used in the results, but not the results themselves. If no language is specified, or not supported for a particular result, the partner automatically chooses a language for the result.
For an example, we’ll use the Greek language. You search for
Athens, Greece
, with thelanguage
parameter set toen
. The result found will most likely be returned asAthens
.If you set the
language
parameter toel
, for Greek, then the result found will more likely be returned asΑθήνα
.If the data provider does not have a value for Greek, the result will be in a language that the provider does support.
filter_categories(impl Into<String>)
/set_filter_categories(Option<Vec::<String>>)
:
required: falseA list of one or more Amazon Location categories to filter the returned places. If you include more than one category, the results will include results that match any of the categories listed.
For more information about using categories, including a list of Amazon Location categories, see Categories and filtering, in the Amazon Location Service Developer Guide.
key(impl Into<String>)
/set_key(Option<String>)
:
required: falseThe optional API key to authorize the request.
- On success, responds with
SearchPlaceIndexForTextOutput
with field(s):summary(Option<SearchPlaceIndexForTextSummary>)
:Contains a summary of the request. Echoes the input values for
BiasPosition
,FilterBBox
,FilterCountries
,Language
,MaxResults
, andText
. Also includes theDataSource
of the place index and the bounding box,ResultBBox
, which surrounds the search results.results(Vec::<SearchForTextResult>)
:A list of Places matching the input text. Each result contains additional information about the specific point of interest.
Not all response properties are included with all responses. Some properties may only be returned by specific data partners.
- On failure, responds with
SdkError<SearchPlaceIndexForTextError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource whose tags you want to update.
-
Format example:
arn:aws:geo:region:account-id:resourcetype/ExampleResource
-
tags(impl Into<String>, impl Into<String>)
/set_tags(Option<HashMap::<String, String>>)
:
required: trueApplies 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.
-
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the resource from which you want to remove tags.
-
Format example:
arn:aws:geo:region:account-id:resourcetype/ExampleResource
-
tag_keys(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueThe list of tag keys to remove from the specified resource.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_geofence_collection(
&self,
) -> UpdateGeofenceCollectionFluentBuilder
pub fn update_geofence_collection( &self, ) -> UpdateGeofenceCollectionFluentBuilder
Constructs a fluent builder for the UpdateGeofenceCollection
operation.
- The fluent builder is configurable:
collection_name(impl Into<String>)
/set_collection_name(Option<String>)
:
required: trueThe name of the geofence collection to update.
pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.pricing_plan_data_source(impl Into<String>)
/set_pricing_plan_data_source(Option<String>)
:
required: falseThis parameter is no longer used.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseUpdates the description for the geofence collection.
- On success, responds with
UpdateGeofenceCollectionOutput
with field(s):collection_name(String)
:The name of the updated geofence collection.
collection_arn(String)
:The Amazon Resource Name (ARN) of the updated geofence collection. Used to specify a resource across Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollection
-
update_time(DateTime)
:The time when the geofence collection was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
- On failure, responds with
SdkError<UpdateGeofenceCollectionError>
Source§impl Client
impl Client
Sourcepub fn update_key(&self) -> UpdateKeyFluentBuilder
pub fn update_key(&self) -> UpdateKeyFluentBuilder
Constructs a fluent builder for the UpdateKey
operation.
- The fluent builder is configurable:
key_name(impl Into<String>)
/set_key_name(Option<String>)
:
required: trueThe name of the API key resource to update.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseUpdates the description for the API key resource.
expire_time(DateTime)
/set_expire_time(Option<DateTime>)
:
required: falseUpdates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.no_expiry(bool)
/set_no_expiry(Option<bool>)
:
required: falseWhether the API key should expire. Set to
true
to set the API key to have no expiration time.force_update(bool)
/set_force_update(Option<bool>)
:
required: falseThe boolean flag to be included for updating
ExpireTime
orRestrictions
details.Must be set to
true
to update an API key resource that has been used in the past 7 days.False
if force update is not preferredDefault value:
False
restrictions(ApiKeyRestrictions)
/set_restrictions(Option<ApiKeyRestrictions>)
:
required: falseUpdates the API key restrictions for the API key resource.
- On success, responds with
UpdateKeyOutput
with field(s):key_arn(String)
:The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:key/ExampleKey
-
key_name(String)
:The name of the API key resource.
update_time(DateTime)
:The timestamp for when the API key resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<UpdateKeyError>
Source§impl Client
impl Client
Sourcepub fn update_map(&self) -> UpdateMapFluentBuilder
pub fn update_map(&self) -> UpdateMapFluentBuilder
Constructs a fluent builder for the UpdateMap
operation.
- The fluent builder is configurable:
map_name(impl Into<String>)
/set_map_name(Option<String>)
:
required: trueThe name of the map resource to update.
pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.description(impl Into<String>)
/set_description(Option<String>)
:
required: falseUpdates the description for the map resource.
configuration_update(MapConfigurationUpdate)
/set_configuration_update(Option<MapConfigurationUpdate>)
:
required: falseUpdates the parts of the map configuration that can be updated, including the political view.
- On success, responds with
UpdateMapOutput
with field(s):map_name(String)
:The name of the updated map resource.
map_arn(String)
:The Amazon Resource Name (ARN) of the updated map resource. Used to specify a resource across AWS.
-
Format example:
arn:aws:geo:region:account-id:map/ExampleMap
-
update_time(DateTime)
:The timestamp for when the map resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<UpdateMapError>
Source§impl Client
impl Client
Sourcepub fn update_place_index(&self) -> UpdatePlaceIndexFluentBuilder
pub fn update_place_index(&self) -> UpdatePlaceIndexFluentBuilder
Constructs a fluent builder for the UpdatePlaceIndex
operation.
- The fluent builder is configurable:
index_name(impl Into<String>)
/set_index_name(Option<String>)
:
required: trueThe name of the place index resource to update.
pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.description(impl Into<String>)
/set_description(Option<String>)
:
required: falseUpdates the description for the place index resource.
data_source_configuration(DataSourceConfiguration)
/set_data_source_configuration(Option<DataSourceConfiguration>)
:
required: falseUpdates the data storage option for the place index resource.
- On success, responds with
UpdatePlaceIndexOutput
with field(s):index_name(String)
:The name of the updated place index resource.
index_arn(String)
:The Amazon Resource Name (ARN) of the upated place index resource. Used to specify a resource across Amazon Web Services.
-
Format example:
arn:aws:geo:region:account-id:place- index/ExamplePlaceIndex
-
update_time(DateTime)
:The timestamp for when the place index resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<UpdatePlaceIndexError>
Source§impl Client
impl Client
Sourcepub fn update_route_calculator(&self) -> UpdateRouteCalculatorFluentBuilder
pub fn update_route_calculator(&self) -> UpdateRouteCalculatorFluentBuilder
Constructs a fluent builder for the UpdateRouteCalculator
operation.
- The fluent builder is configurable:
calculator_name(impl Into<String>)
/set_calculator_name(Option<String>)
:
required: trueThe name of the route calculator resource to update.
pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.description(impl Into<String>)
/set_description(Option<String>)
:
required: falseUpdates the description for the route calculator resource.
- On success, responds with
UpdateRouteCalculatorOutput
with field(s):calculator_name(String)
:The name of the updated route calculator resource.
calculator_arn(String)
:The Amazon Resource Name (ARN) of the updated route calculator resource. Used to specify a resource across AWS.
-
Format example:
arn:aws:geo:region:account-id:route- calculator/ExampleCalculator
-
update_time(DateTime)
:The timestamp for when the route calculator was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<UpdateRouteCalculatorError>
Source§impl Client
impl Client
Sourcepub fn update_tracker(&self) -> UpdateTrackerFluentBuilder
pub fn update_tracker(&self) -> UpdateTrackerFluentBuilder
Constructs a fluent builder for the UpdateTracker
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe name of the tracker resource to update.
pricing_plan(PricingPlan)
/set_pricing_plan(Option<PricingPlan>)
:
required: falseNo longer used. If included, the only allowed value is
RequestBasedUsage
.pricing_plan_data_source(impl Into<String>)
/set_pricing_plan_data_source(Option<String>)
:
required: falseThis parameter is no longer used.
description(impl Into<String>)
/set_description(Option<String>)
:
required: falseUpdates the description for the tracker resource.
position_filtering(PositionFiltering)
/set_position_filtering(Option<PositionFiltering>)
:
required: falseUpdates 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.
-
event_bridge_enabled(bool)
/set_event_bridge_enabled(Option<bool>)
:
required: falseWhether to enable position
UPDATE
events from this tracker to be sent to EventBridge.You do not need enable this feature to get
ENTER
andEXIT
events for geofences with this tracker. Those events are always sent to EventBridge.kms_key_enable_geospatial_queries(bool)
/set_kms_key_enable_geospatial_queries(Option<bool>)
:
required: falseEnables
GeospatialQueries
for a tracker that uses a Amazon Web Services KMS customer managed key.This parameter is only used if you are using a KMS customer managed key.
- On success, responds with
UpdateTrackerOutput
with field(s):tracker_name(String)
:The name of the updated tracker resource.
tracker_arn(String)
:The Amazon Resource Name (ARN) of the updated tracker resource. Used to specify a resource across AWS.
-
Format example:
arn:aws:geo:region:account-id:tracker/ExampleTracker
-
update_time(DateTime)
:The timestamp for when the tracker resource was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.
- On failure, responds with
SdkError<UpdateTrackerError>
Source§impl Client
impl Client
Sourcepub fn verify_device_position(&self) -> VerifyDevicePositionFluentBuilder
pub fn verify_device_position(&self) -> VerifyDevicePositionFluentBuilder
Constructs a fluent builder for the VerifyDevicePosition
operation.
- The fluent builder is configurable:
tracker_name(impl Into<String>)
/set_tracker_name(Option<String>)
:
required: trueThe name of the tracker resource to be associated with verification request.
device_state(DeviceState)
/set_device_state(Option<DeviceState>)
:
required: trueThe device’s state, including position, IP address, cell signals and Wi-Fi access points.
distance_unit(DistanceUnit)
/set_distance_unit(Option<DistanceUnit>)
:
required: falseThe distance unit for the verification request.
Default Value:
Kilometers
- On success, responds with
VerifyDevicePositionOutput
with field(s):inferred_state(Option<InferredState>)
:The inferred state of the device, given the provided position, IP address, cellular signals, and Wi-Fi- access points.
device_id(String)
:The device identifier.
sample_time(DateTime)
:The timestamp at which the device’s position was determined. Uses ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.received_time(DateTime)
:The timestamp for when the tracker resource received the device position in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ
.distance_unit(DistanceUnit)
:The distance unit for the verification response.
- On failure, responds with
SdkError<VerifyDevicePositionError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);