Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.comprehend.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
resource_arnstringThe Amazon Resource Name (ARN) of the given Amazon Comprehend resource you are querying. (pattern: <code>arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]:[0-9]{12}:[a-zA-Z0-9-]{1,64}/[a-zA-Z0-9](-[a-zA-Z0-9])((/dataset/[a-zA-Z0-9](-[a-zA-Z0-9]))|(/version/[a-zA-Z0-9](-[a-zA-Z0-9])*))?</code>)
tagsarrayTags associated with the Amazon Comprehend resource being queried. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. 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 Comprehend resource.
untag_resourceupdateregion, ResourceArn, TagKeysRemoves a specific tag associated with an Amazon Comprehend resource.
tag_resourceupdateregion, ResourceArnAssociates a specific tag with an Amazon Comprehend resource. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.

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 Comprehend resource.

SELECT
resource_arn,
tags
FROM aws.comprehend.tags
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Removes a specific tag associated with an Amazon Comprehend resource.

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