Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.workmail.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayA list of tag key-value pairs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionLists the tags applied to an WorkMail organization resource.
untag_resourceupdateregion, ResourceARN, TagKeysUntags the specified tags from the specified WorkMail organization resource.
tag_resourceupdateregion, ResourceARNApplies the specified tags to the specified WorkMailorganization 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 the tags applied to an WorkMail organization resource.

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

UPDATE examples

Untags the specified tags from the specified WorkMail organization resource.

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