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

*********
list_tags
*********



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

  

  Returns all resource tags for an Amazon OpenSearch Service domain, data source, or application. 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/ListTags>`_  


  **Request Syntax**
  ::

    response = client.list_tags(
        ARN='string'
    )
    
  :type ARN: string
  :param ARN: **[REQUIRED]** 

    Amazon Resource Name (ARN) for the domain, data source, or application to view tags for.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'TagList': [
              {
                  'Key': 'string',
                  'Value': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The results of a ``ListTags`` operation.

      
      

      - **TagList** *(list) --* 

        List of resource tags associated with the specified domain, data source, or application.

        
        

        - *(dict) --* 

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

          
          

          - **Key** *(string) --* 

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

            
          

          - **Value** *(string) --* 

            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``

            
      
    
  
  **Exceptions**
  
  *   :py:class:`OpenSearchService.Client.exceptions.BaseException`

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

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

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

  