add_tags

ElasticsearchService.Client.add_tags(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.add_tags(
    ARN='string',
    TagList=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • ARN (string) --

    [REQUIRED]

    Specify the ARN for which you want to add the tags.

  • TagList (list) --

    [REQUIRED]

    List of Tag that need to be added for the Elasticsearch domain.

    • (dict) --

      Specifies a key value pair for a resource tag.

      • Key (string) -- [REQUIRED]

        Specifies the TagKey , the name of the tag. Tag keys must be unique for the Elasticsearch domain to which they are attached.

      • Value (string) -- [REQUIRED]

        Specifies the TagValue , the value assigned to the corresponding tag key. Tag values can be null and do not have to be unique in a tag set. For example, you can have a key value pair in a tag set of project : Trinity and cost-center : Trinity

Returns

None

Exceptions

  • ElasticsearchService.Client.exceptions.BaseException
  • ElasticsearchService.Client.exceptions.LimitExceededException
  • ElasticsearchService.Client.exceptions.ValidationException
  • ElasticsearchService.Client.exceptions.InternalException