Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.bcm_pricing_calculator.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectThe list of tags associated with the specified resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionLists all tags associated with a specified resource.
tag_resourceupdateregion, arn, tagsAdds one or more tags to a specified resource.
untag_resourceupdateregion, arn, tagKeysRemoves one or more tags from a specified 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

Lists all tags associated with a specified resource.

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

UPDATE examples

Adds one or more tags to a specified resource.

UPDATE aws.bcm_pricing_calculator.tags
SET
arn = '{{ arn }}',
tags = '{{ tags }}'
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
AND tags = '{{ tags }}' --required;