Skip to main content

tracker_consumers

Creates, updates, deletes or gets a tracker_consumer resource or lists tracker_consumers in a region

Overview

Nametracker_consumers
TypeResource
DescriptionDefinition of AWS::Location::TrackerConsumer Resource Type
Idaws.location.tracker_consumers

Fields

NameDatatypeDescription
consumer_arnstring
tracker_namestring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConsumerArn, TrackerName, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all tracker_consumers in a region.

SELECT
region,
consumer_arn,
tracker_name
FROM aws.location.tracker_consumers
WHERE region = 'us-east-1';

Gets all properties from an individual tracker_consumer.

SELECT
region,
consumer_arn,
tracker_name
FROM aws.location.tracker_consumers
WHERE region = 'us-east-1' AND data__Identifier = '<TrackerName>|<ConsumerArn>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

geo:AssociateTrackerConsumer,
geo:ListTrackerConsumers

Delete

geo:DisassociateTrackerConsumer,
geo:ListTrackerConsumers

List

geo:ListTrackerConsumers

Read

geo:ListTrackerConsumers