Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.dlm.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsobjectInformation about the tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionLists the tags for the specified resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves the specified tags from the specified resource.
tag_resourceupdateresource_arn, regionAdds the specified tags to the 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)
resource_arnstringThe Amazon Resource Name (ARN) of the resource.
tagKeysarrayThe tag keys.

SELECT examples

Lists the tags for the specified resource.

SELECT
tags
FROM aws.dlm.tags
WHERE resource_arn = '{{ resource_arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Removes the specified tags from the specified resource.

UPDATE aws.dlm.tags
SET
-- No updatable properties
WHERE
resource_arn = '{{ resource_arn }}' --required
AND tagKeys = '{{ tagKeys }}' --required
AND region = '{{ region }}' --required;