Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.swf.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayAn array of tags associated with the domain.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionList tags for a given domain.
tag_resourceupdateregion, resourceArn, tagsAdd a tag to a Amazon SWF domain. Amazon SWF supports a maximum of 50 tags per resource.
untag_resourceupdateregion, resourceArn, tagKeysRemove a tag from a Amazon SWF domain.

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 tags for a given domain.

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

UPDATE examples

Add a tag to a Amazon SWF domain. Amazon SWF supports a maximum of 50 tags per resource.

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