Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.workspaces_web.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayThe tags of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectresource_arn, regionRetrieves a list of tags for a resource.
tag_resourceupdateresource_arn, region, tagsAdds or overwrites one or more tags for the specified resource.
untag_resourceupdateresource_arn, tagKeys, regionRemoves one or more tags from 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 ARN of the resource.
tagKeysarrayThe list of tag keys to remove from the resource.

SELECT examples

Retrieves a list of tags for a resource.

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

UPDATE examples

Adds or overwrites one or more tags for the specified resource.

UPDATE aws.workspaces_web.tags
SET
tags = '{{ tags }}',
clientToken = '{{ clientToken }}'
WHERE
resource_arn = '{{ resource_arn }}' --required
AND region = '{{ region }}' --required
AND tags = '{{ tags }}' --required;