:doc:`Chatbot <../../chatbot>` / Client / list_tags_for_resource

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



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

  

  Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a user, server, or role.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chatbot-2017-10-11/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The ARN of the resource to list tags for.

    

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

    
    ::

      {
          'Tags': [
              {
                  'TagKey': 'string',
                  'TagValue': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        Key-value pairs that are assigned to a resource, usually for the purpose of grouping and searching for items. Tags are metadata that you define.

        
        

        - *(dict) --* 

          A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

           

          .. warning::

             

            Do not include confidential or sensitive information in this field.

             

           

          For more information, see `User-Defined Tag Restrictions <https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html>`__ in the *AWS Billing and Cost Management User Guide*.

          
          

          - **TagKey** *(string) --* 

            The key of the tag.

            
          

          - **TagValue** *(string) --* 

            The value of the tag.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Chatbot.Client.exceptions.ServiceUnavailableException`

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

  
  *   :py:class:`Chatbot.Client.exceptions.InternalServiceError`

  