OpenSearchService / Client / add_tags

add_tags#

OpenSearchService.Client.add_tags(**kwargs)#

Attaches tags to an existing Amazon OpenSearch Service domain. Tags are a set of case-sensitive key-value pairs. A domain can have up to 10 tags. For more information, see Tagging Amazon OpenSearch Service domains.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    Amazon Resource Name (ARN) for the OpenSearch Service domain to which you want to attach resource tags.

  • TagList (list) –

    [REQUIRED]

    List of resource tags.

    • (dict) –

      A tag (key-value pair) for an Amazon OpenSearch Service resource.

      • Key (string) – [REQUIRED]

        The tag key. Tag keys must be unique for the domain to which they are attached.

      • Value (string) – [REQUIRED]

        The value assigned to the corresponding tag key. Tag values can be null and don’t 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

  • OpenSearchService.Client.exceptions.BaseException

  • OpenSearchService.Client.exceptions.LimitExceededException

  • OpenSearchService.Client.exceptions.ValidationException

  • OpenSearchService.Client.exceptions.InternalException