Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.timestream_write.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayThe tags currently associated with the Timestream resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionLists all tags on a Timestream resource.
untag_resourceupdateregion, ResourceARN, TagKeysRemoves the association of tags from a Timestream resource.
tag_resourceupdateregion, ResourceARNAssociates 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.

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

Lists all tags on a Timestream resource.

SELECT
tags
FROM aws.timestream_write.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Removes the association of tags from a Timestream resource.

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