:doc:`Proton <../../proton>` / Client / list_tags_for_resource

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



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

  

  List tags for a resource. For more information, see `Proton resources and tagging <https://docs.aws.amazon.com/proton/latest/userguide/resources.html>`__ in the *Proton User Guide*.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListTagsForResource>`_  


  **Request Syntax**
  ::

    response = client.list_tags_for_resource(
        maxResults=123,
        nextToken='string',
        resourceArn='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of tags to list.

    

  
  :type nextToken: string
  :param nextToken: 

    A token that indicates the location of the next resource tag in the array of resource tags, after the list of resource tags that was previously requested.

    

  
  :type resourceArn: string
  :param resourceArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the resource for the listed tags.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        A token that indicates the location of the next resource tag in the array of resource tags, after the current requested list of resource tags.

        
      

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

        A list of resource tags with detail data.

        
        

        - *(dict) --* 

          A description of a resource tag.

          
          

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

            The key of the resource tag.

            
          

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

            The value of the resource tag.

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

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

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

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

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

  