:doc:`ResourceExplorer <../../resource-explorer-2>` / Client / list_tags_for_resource

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



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

  

  Lists the tags that are attached to the specified resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-explorer-2-2022-07-28/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The `Amazon resource name (ARN) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ of the view or index that you want to attach tags to.

    

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

    
    ::

      {
          'Tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Tags** *(dict) --* 

        The tag key and value pairs that you want to attach to the specified view or index.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`ResourceExplorer.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ResourceExplorer.Client.exceptions.InternalServerException`

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

  
  *   :py:class:`ResourceExplorer.Client.exceptions.UnauthorizedException`

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

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

  