:doc:`OpenSearchService <../../opensearch>` / Client / add_tags

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



.. py:method:: OpenSearchService.Client.add_tags(**kwargs)

  

  Attaches tags to an existing Amazon OpenSearch Service domain, data source, or application.

   

  Tags are a set of case-sensitive key-value pairs. A domain, data source, or application can have up to 10 tags. For more information, see `Tagging Amazon OpenSearch Service resources <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-awsresourcetagging.html>`__.

  

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


  **Request Syntax**
  ::

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

    Amazon Resource Name (ARN) for the OpenSearch Service domain, data source, or application to which you want to attach resource tags.

    

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

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

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

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

  