:doc:`AppFabric <../../appfabric>` / Client / list_tags_for_resource

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



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

  

  Returns a list of tags for a resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appfabric-2023-05-19/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource for which you want to retrieve tags.

    

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

    
    ::

      {
          'tags': [
              {
                  'key': 'string',
                  'value': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **tags** *(list) --* 

        A map of the key-value pairs for the tag or tags assigned to the specified resource.

        
        

        - *(dict) --* 

          The key or keys of the key-value pairs for the tag or tags assigned to a resource.

          
          

          - **key** *(string) --* 

            Tag key.

            
          

          - **value** *(string) --* 

            Tag value.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`AppFabric.Client.exceptions.InternalServerException`

  
  *   :py:class:`AppFabric.Client.exceptions.ThrottlingException`

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

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

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

  