tracker_consumers
Creates, updates, deletes or gets a tracker_consumer
resource or lists tracker_consumers
in a region
Overview
Name | tracker_consumers |
Type | Resource |
Description | Definition of AWS::Location::TrackerConsumer Resource Type |
Id | aws.location.tracker_consumers |
Fields
Name | Datatype | Description |
---|---|---|
consumer_arn | string | |
tracker_name | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ConsumerArn, TrackerName, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.location.tracker_consumers (
ConsumerArn,
TrackerName,
region
)
SELECT
'{{ ConsumerArn }}',
'{{ TrackerName }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.location.tracker_consumers (
ConsumerArn,
TrackerName,
region
)
SELECT
'{{ ConsumerArn }}',
'{{ TrackerName }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: tracker_consumer
props:
- name: ConsumerArn
value: '{{ ConsumerArn }}'
- name: TrackerName
value: '{{ TrackerName }}'
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