Skip to main content

tags

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

Overview​

Nametags
TypeResource
Idaws.timestream_query.tags

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
keystringThe key of the tag. Tag keys are case sensitive.
valuestringThe value of the tag. Tag values are case sensitive and can be null.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionList all tags on a Timestream query resource.
tag_resourceupdateregion, ResourceARN, TagsAssociate a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking.
untag_resourceupdateregion, ResourceARN, TagKeysRemoves the association of tags from a Timestream query resource.

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
regionstringAWS region (default: us-east-1)

SELECT examples​

List all tags on a Timestream query resource.

SELECT
key,
value
FROM aws.timestream_query.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples​

Associate a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking.

UPDATE aws.timestream_query.tags
SET
ResourceARN = '{{ ResourceARN }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND ResourceARN = '{{ ResourceARN }}' --required
AND Tags = '{{ Tags }}' --required;