Skip to main content

trackers

Creates, updates, deletes or gets a tracker resource or lists trackers in a region

Overview

Nametrackers
TypeResource
DescriptionDefinition of AWS::Location::Tracker Resource Type
Idawscc.location.trackers

Fields

NameDatatypeDescription
create_timestringThe datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ)
descriptionstring
event_bridge_enabledboolean
kms_key_enable_geospatial_queriesboolean
kms_key_idstring
position_filteringstring
pricing_planstring
pricing_plan_data_sourcestringThis shape is deprecated since 2022-02-01: Deprecated. No longer allowed.
tagsarrayAn array of key-value pairs to apply to this resource.
tracker_arnstring
tracker_namestring
arnstring
regionstringAWS region.

For more information, see AWS::Location::Tracker.

Methods

NameResourceAccessible byRequired Params
create_resourcetrackersINSERTTrackerName, region
delete_resourcetrackersDELETEIdentifier, region
update_resourcetrackersUPDATEIdentifier, PatchDocument, region
list_resourcestrackers_list_onlySELECTregion
get_resourcetrackersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual tracker.

SELECT
region,
create_time,
description,
event_bridge_enabled,
kms_key_enable_geospatial_queries,
kms_key_id,
position_filtering,
pricing_plan,
pricing_plan_data_source,
tags,
tracker_arn,
tracker_name,
update_time,
arn
FROM awscc.location.trackers
WHERE
region = '{{ region }}' AND
Identifier = '{{ tracker_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new tracker resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.location.trackers (
TrackerName,
region
)
SELECT
'{{ tracker_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a tracker resource, using stack-deploy.

/*+ update */
UPDATE awscc.location.trackers
SET PatchDocument = string('{{ {
"Description": description,
"EventBridgeEnabled": event_bridge_enabled,
"KmsKeyEnableGeospatialQueries": kms_key_enable_geospatial_queries,
"PositionFiltering": position_filtering,
"PricingPlan": pricing_plan,
"PricingPlanDataSource": pricing_plan_data_source,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ tracker_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.location.trackers
WHERE
Identifier = '{{ tracker_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the trackers resource, the following permissions are required:

geo:CreateTracker,
geo:DescribeTracker,
geo:TagResource,
geo:UntagResource,
kms:DescribeKey,
kms:CreateGrant