:doc:`ElasticsearchService <../../es>` / Client / add_tags

********
add_tags
********



.. py:method:: 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. <http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html#es-managedomains-awsresorcetagging>`__

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/AddTags>`_  


  **Request Syntax**
  ::

    response = client.add_tags(
        ARN='string',
        TagList=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type ARN: string
  :param ARN: **[REQUIRED]** 

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

    

  
  :type TagList: list
  :param TagList: **[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**
  
  *   :py:class:`ElasticsearchService.Client.exceptions.BaseException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.LimitExceededException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.ValidationException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.InternalException`

  