Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.translate.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayTags associated with the Amazon Translate resource being queried. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Translate. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionLists all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources.
untag_resourceupdateregion, ResourceArn, TagKeysRemoves a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources.
tag_resourceupdateregion, ResourceArnAssociates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For more information, see Tagging your resources.

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 all tags associated with a given Amazon Translate resource. For more information, see Tagging your resources.

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

UPDATE examples

Removes a specific tag associated with an Amazon Translate resource. For more information, see Tagging your resources.

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