Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.kendra.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tagsarrayA list of tags associated with the index, FAQ, data source, or other resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tags_for_resourceselectregionGets a list of tags associated with a resource. Indexes, FAQs, data sources, and other resources can have tags associated with them.
untag_resourceupdateregion, ResourceARN, TagKeysRemoves a tag from an index, FAQ, data source, or other resource.
tag_resourceupdateregion, ResourceARNAdds the specified tag to the specified index, FAQ, data source, or other resource. If the tag already exists, the existing value is replaced with the new value.

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

Gets a list of tags associated with a resource. Indexes, FAQs, data sources, and other resources can have tags associated with them.

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

UPDATE examples

Removes a tag from an index, FAQ, data source, or other resource.

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