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 = 'us-east-1' 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 }}';

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 }}';

DELETE example

/*+ delete */
DELETE FROM awscc.location.trackers
WHERE
Identifier = '{{ tracker_name }}' AND
region = 'us-east-1';

Permissions

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

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