Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.clouddirectory.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
keystringThe key that is associated with the tag.
valuestringThe value that is associated with the tag.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionReturns tags for a resource. Tagging is currently supported only for directories with a limit of 50 tags per directory. All 50 tags are returned for a given directory with this API call.
tag_resourceupdateregion, ResourceArn, TagsAn API operation for adding tags to a resource.
untag_resourceupdateregion, ResourceArn, TagKeysAn API operation for removing tags from a 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

Returns tags for a resource. Tagging is currently supported only for directories with a limit of 50 tags per directory. All 50 tags are returned for a given directory with this API call.

SELECT
key,
value
FROM aws.clouddirectory.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

An API operation for adding tags to a resource.

UPDATE aws.clouddirectory.tags
SET
ResourceArn = '{{ ResourceArn }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND ResourceArn = '{{ ResourceArn }}' --required
AND Tags = '{{ Tags }}' --required;