Skip to main content

tags

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

Overview

Nametags
TypeResource
Idaws.es.tags

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tag_listarrayA list of Tag

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_tagsselectarn, regionReturns all tags for the given Elasticsearch domain.
add_tagsupdateregion, TagListAttaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information.
remove_tagsupdateregion, TagKeysRemoves the specified set of tags from the specified Elasticsearch domain.

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
arnstringSpecify the ARN for the Elasticsearch domain to which the tags are attached that you want to view.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns all tags for the given Elasticsearch domain.

SELECT
tag_list
FROM aws.es.tags
WHERE arn = '{{ arn }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information.

UPDATE aws.es.tags
SET
ARN = '{{ ARN }}',
TagList = '{{ TagList }}'
WHERE
region = '{{ region }}' --required
AND TagList = '{{ TagList }}' --required;