Skip to main content

tracker_consumers

Creates, updates, deletes, gets or lists a tracker_consumers resource.

Overview

Nametracker_consumers
TypeResource
Idaws.location.tracker_consumers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
consumer_arnstringContains the list of geofence collection ARNs associated to the tracker resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tracker_consumersselecttracker_name, regionLists geofence collections currently associated to the given tracker resource.
associate_tracker_consumerupdatetracker_name, region, ConsumerArnCreates an association between a geofence collection and a tracker resource. This allows the tracker resource to communicate location data to the linked geofence collection. You can associate up to five geofence collections to each tracker resource. Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.
disassociate_tracker_consumerupdatetracker_name, consumer_arn, regionRemoves the association between a tracker resource and a geofence collection. Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
consumer_arnstringThe 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
regionstringAWS region (default: us-east-1)
tracker_namestringThe name of the tracker resource to be dissociated from the consumer.

SELECT examples

Lists geofence collections currently associated to the given tracker resource.

SELECT
consumer_arn
FROM aws.location.tracker_consumers
WHERE tracker_name = '{{ tracker_name }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Creates an association between a geofence collection and a tracker resource. This allows the tracker resource to communicate location data to the linked geofence collection. You can associate up to five geofence collections to each tracker resource. Currently not supported — Cross-account configurations, such as creating associations between a tracker resource in one account and a geofence collection in another account.

UPDATE aws.location.tracker_consumers
SET
ConsumerArn = '{{ ConsumerArn }}'
WHERE
tracker_name = '{{ tracker_name }}' --required
AND region = '{{ region }}' --required
AND ConsumerArn = '{{ ConsumerArn }}' --required;