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
Idaws.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
update_timestringThe datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ)
arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTTrackerName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all trackers in a region.

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 aws.location.trackers
WHERE region = 'us-east-1';

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 aws.location.trackers
WHERE region = 'us-east-1' AND data__Identifier = '<TrackerName>';

INSERT example

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

/*+ create */
INSERT INTO aws.location.trackers (
TrackerName,
region
)
SELECT
'{{ TrackerName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.location.trackers
WHERE data__Identifier = '<TrackerName>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

geo:DescribeTracker,
kms:DescribeKey

Update

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

Delete

geo:DeleteTracker,
geo:DescribeTracker

List

geo:ListTrackers