:doc:`OpenSearchIngestion <../../osis>` / Client / list_tags_for_resource

**********************
list_tags_for_resource
**********************



.. py:method:: OpenSearchIngestion.Client.list_tags_for_resource(**kwargs)

  

  Lists all resource tags associated with an OpenSearch Ingestion pipeline. For more information, see `Tagging Amazon OpenSearch Ingestion pipelines <https://docs.aws.amazon.com/opensearch-service/latest/developerguide/tag-pipeline.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/osis-2022-01-01/ListTagsForResource>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_resource(
        Arn='string'
    )
    
  :type Arn: string
  :param Arn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the pipeline to retrieve tags for.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **Tags** *(list) --* 

        A list of tags associated with the given pipeline.

        
        

        - *(dict) --* 

          A tag (key-value pair) for an OpenSearch Ingestion pipeline.

          
          

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

            The tag key. Tag keys must be unique for the pipeline 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:`OpenSearchIngestion.Client.exceptions.DisabledOperationException`

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

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

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

  
  *   :py:class:`OpenSearchIngestion.Client.exceptions.AccessDeniedException`

  