Struct aws_sdk_location::Client
source · 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.
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
BatchDeleteDevicePositionHistoryOutputwith 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
BatchDeleteGeofenceOutputwith 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
BatchEvaluateGeofencesOutputwith 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
BatchGetDevicePositionOutputwith 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
BatchPutGeofenceOutputwith 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
BatchUpdateDevicePositionOutputwith 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 RoutesValidationExceptionerror.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 ValidationExceptionerror.If Esri is the provider for your route calculator, specifying a route that is longer than 400 km returns a
400 RoutesValidationExceptionerror.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,BicycleorMotorcycleas options for theTravelMode.BicycleandMotorcycleare only valid when using Grab as a data provider, and only within Southeast Asia.Truckis 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
TravelModeyou specify also determines how you specify route preferences:-
If traveling by
Caruse theCarModeOptionsparameter. -
If traveling by
Truckuse theTruckModeOptionsparameter.
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:
falseValid Values:
false|truedistance_unit(DistanceUnit)/set_distance_unit(Option<DistanceUnit>):
required: falseSet the unit system to specify the distance.
Default Value:
Kilometersinclude_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:
falseValid Values:
false|truecar_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:
TravelModemust 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:
TravelModemust 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
CalculateRouteOutputwith 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
StartPositionis the departure position. -
The
EndPositionis 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
StartPositionis the departure position . TheEndPositionis the waypoint positon. -
Leg 2: The
StartPositionis the waypoint position. TheEndPositionis 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
TravelModeyou specify also determines how you specify route preferences:-
If traveling by
Caruse theCarModeOptionsparameter. -
If traveling by
Truckuse theTruckModeOptionsparameter.
BicycleorMotorcycleare only valid when usingGrabas a data provider, and only within Southeast Asia.Truckis 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
DepartureTimeandDepartNow. 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 ValidationExceptionerror.-
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
DepartureTimeandDepartNow. 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:
falseValid Values:
false|truedistance_unit(DistanceUnit)/set_distance_unit(Option<DistanceUnit>):
required: falseSet the unit system to specify the distance.
Default Value:
Kilometerscar_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:
TravelModemust 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:
TravelModemust be specified asTruck.key(impl Into<String>)/set_key(Option<String>):
required: falseThe optional API key to authorize the request.
- On success, responds with
CalculateRouteMatrixOutputwith field(s):route_matrix(Vec::<Vec::<RouteMatrixEntry>>):The calculated route matrix containing the results for all pairs of
DeparturePositionstoDestinationPositions. Each row corresponds to one entry inDeparturePositions. Each entry in the row corresponds to the route from that entry inDeparturePositionsto 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,RouteCountandErrorCount.
- 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
CreateGeofenceCollectionOutputwith 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 ofNoExpiryorExpireTimemust be set.no_expiry(bool)/set_no_expiry(Option<bool>):
required: falseOptionally set to
trueto set no expiration time for the API key. One ofNoExpiryorExpireTimemust 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
CreateKeyOutputwith 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
CreateMapOutputwith 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
HEREreturns 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
CreatePlaceIndexOutputwith 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
HEREreturns 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
CreateRouteCalculatorOutputwith 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
UPDATEevents from this tracker to be sent to EventBridge.You do not need enable this feature to get
ENTERandEXITevents 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
GeospatialQueriesfor 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
KmsKeyEnableGeospatialQueriesparameter to true when creating or updating a Tracker.
- On success, responds with
CreateTrackerOutputwith 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
trueto delete the key or tofalseto 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
DescribeGeofenceCollectionOutputwith 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.sssZupdate_time(DateTime):The timestamp for when the geofence collection was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZgeofence_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
DescribeKeyOutputwith 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
DescribeMapOutputwith 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
DescribePlaceIndexOutputwith 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
DescribeRouteCalculatorOutputwith 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
DescribeTrackerOutputwith 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
UPDATEevents from this tracker in EventBridge are enabled. If set totruethese events will be sent to EventBridge.kms_key_enable_geospatial_queries(Option<bool>):Enables
GeospatialQueriesfor 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
KmsKeyEnableGeospatialQueriesparameter 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
NearestDistanceproperty returned in a forecasted event. The measurement system must match forDistanceUnitandSpeedUnit; ifKilometersis specified forDistanceUnit, thenSpeedUnitmust beKilometersPerHour.Default Value:
Kilometersspeed_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
DistanceUnitandSpeedUnit; ifKilometersis specified forDistanceUnit, thenSpeedUnitmust 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:
nullmax_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
ForecastGeofenceEventsOutputwith 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
GetDevicePositionOutputwith 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:
nullstart_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
StartTimeInclusivemust 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
EndTimeExclusivemust 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
GetDevicePositionHistoryOutputwith 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
GetGeofenceOutputwith 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.sssZupdate_time(DateTime):The timestamp for when the geofence collection was last updated in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZgeofence_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 Emberfor most glyphs butNoto Sansfor 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+0000to00FF. 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
GetMapGlyphsOutputwith 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.pngfor high pixel density displays
For the JSON document containing image offsets. Use the following file names:
-
sprites.json -
sprites@2x.jsonfor 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
GetMapSpritesOutputwith 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
GetMapStyleDescriptorOutputwith 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
GetMapTileOutputwith 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,
enfor 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
languageparameter set toen. Thecityin the results will most likely be returned asAthens.If you set the
languageparameter toel, for Greek, then thecityin 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
GetPlaceOutputwith 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:
100next_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:
nullfilter_geometry(TrackingFilterGeometry)/set_filter_geometry(Option<TrackingFilterGeometry>):
required: falseThe geometry used to filter device positions.
- On success, responds with
ListDevicePositionsOutputwith 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:
100next_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
ListGeofenceCollectionsOutputwith 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:
nullmax_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
ListGeofencesOutputwith 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:
100next_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:
nullfilter(ApiKeyFilter)/set_filter(Option<ApiKeyFilter>):
required: falseOptionally filter the list to only
ActiveorExpiredAPI keys.
- On success, responds with
ListKeysOutputwith 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:
100next_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
ListMapsOutputwith 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:
100next_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
ListPlaceIndexesOutputwith 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:
100next_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
ListRouteCalculatorsOutputwith 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
ListTagsForResourceOutputwith 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:
100next_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
ListTrackerConsumersOutputwith 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:
100next_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
ListTrackersOutputwith 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
PutGeofenceOutputwith 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.sssZupdate_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.1174and latitude49.2847.max_results(i32)/set_max_results(Option<i32>):
required: falseAn optional parameter. The maximum number of results returned per request.
Default value:
50language(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,
enfor 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
languageparameter set toen. Thecityin the results will most likely be returned asAthens.If you set the
languageparameter toel, for Greek, then thecityin 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
SearchPlaceIndexForPositionOutputwith field(s):summary(Option<SearchPlaceIndexForPositionSummary>):Contains a summary of the request. Echoes the input values for
Position,Language,MaxResults, and theDataSourceof 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.1174and latitude49.2847.BiasPositionandFilterBBoxare 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.7935and latitude-37.4835, and the northeast corner has longitude-12.0684and latitude-36.9542.FilterBBoxandBiasPositionare 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:
5language(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,
enfor 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, Grto get suggestions with thelanguageparameter set toen. The results found will most likely be returned asAthens, Greece.If you set the
languageparameter 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
SearchPlaceIndexForSuggestionsOutputwith field(s):summary(Option<SearchPlaceIndexForSuggestionsSummary>):Contains a summary of the request. Echoes the input values for
BiasPosition,FilterBBox,FilterCountries,Language,MaxResults, andText. Also includes theDataSourceof 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.1174and latitude49.2847.BiasPositionandFilterBBoxare 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.7935and latitude-37.4835, and the northeast corner has longitude-12.0684and latitude-36.9542.FilterBBoxandBiasPositionare 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:
50language(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,
enfor 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 thelanguageparameter set toen. The result found will most likely be returned asAthens.If you set the
languageparameter 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
SearchPlaceIndexForTextOutputwith field(s):summary(Option<SearchPlaceIndexForTextSummary>):Contains a summary of the request. Echoes the input values for
BiasPosition,FilterBBox,FilterCountries,Language,MaxResults, andText. Also includes theDataSourceof 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
UpdateGeofenceCollectionOutputwith 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
trueto 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
ExpireTimeorRestrictionsdetails.Must be set to
trueto update an API key resource that has been used in the past 7 days.Falseif force update is not preferredDefault value:
Falserestrictions(ApiKeyRestrictions)/set_restrictions(Option<ApiKeyRestrictions>):
required: falseUpdates the API key restrictions for the API key resource.
- On success, responds with
UpdateKeyOutputwith 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
UpdateMapOutputwith 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
UpdatePlaceIndexOutputwith 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
UpdateRouteCalculatorOutputwith 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
UPDATEevents from this tracker to be sent to EventBridge.You do not need enable this feature to get
ENTERandEXITevents 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
GeospatialQueriesfor 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
UpdateTrackerOutputwith 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
VerifyDevicePositionOutputwith 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_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis 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_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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 more