:doc:`SNS <../../sns>` / Client / list_tags_for_resource

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



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

  

  List all tags added to the specified Amazon SNS topic. For an overview, see `Amazon SNS Tags <https://docs.aws.amazon.com/sns/latest/dg/sns-tags.html>`__ in the *Amazon Simple Notification Service Developer Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The ARN of the topic for which to list tags.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The tags associated with the specified topic.

        
        

        - *(dict) --* 

          The list of tags to be added to the specified topic.

          
          

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

            The required key portion of the tag.

            
          

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

            The optional value portion of the tag.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`SNS.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SNS.Client.exceptions.TagPolicyException`

  
  *   :py:class:`SNS.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`SNS.Client.exceptions.AuthorizationErrorException`

  
  *   :py:class:`SNS.Client.exceptions.ConcurrentAccessException`

  