:doc:`CodeDeploy <../../codedeploy>` / Client / list_tags_for_resource

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



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

  

  Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN). Tags are used to organize and categorize your CodeDeploy resources.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The ARN of a CodeDeploy resource. ``ListTagsForResource`` returns all the tags associated with the resource that is identified by the ``ResourceArn``.

    

  
  :type NextToken: string
  :param NextToken: 

    An identifier returned from the previous ``ListTagsForResource`` call. It can be used to return the next set of applications in the list.

    

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

    
    ::

      {
          'Tags': [
              {
                  'Key': 'string',
                  'Value': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        A list of tags returned by ``ListTagsForResource``. The tags are associated with the resource identified by the input ``ResourceArn`` parameter.

        
        

        - *(dict) --* 

          Information about a tag.

          
          

          - **Key** *(string) --* 

            The tag's key.

            
          

          - **Value** *(string) --* 

            The tag's value.

            
      
    
      

      - **NextToken** *(string) --* 

        If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list application revisions call to return the next set of application revisions in the list.

        
  
  **Exceptions**
  
  *   :py:class:`CodeDeploy.Client.exceptions.ArnNotSupportedException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.InvalidArnException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.ResourceArnRequiredException`

  