:doc:`IAMRolesAnywhere <../../rolesanywhere>` / Client / list_tags_for_resource

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



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

  

  Lists the tags attached to the resource.

   

  **Required permissions:** ``rolesanywhere:ListTagsForResource``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rolesanywhere-2018-05-10/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The ARN of the resource.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        A list of tags attached to the resource.

        
        

        - *(dict) --* 

          A label that consists of a key and value you define.

          
          

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

            The tag key.

            
          

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

            The tag value.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`IAMRolesAnywhere.Client.exceptions.ValidationException`

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

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

  