:doc:`CodeCommit <../../codecommit>` / Client / list_tags_for_resource

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



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

  

  Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see `CodeCommit Resources and Operations <https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats>`__ in the* CodeCommit User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListTagsForResource>`_  


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the resource for which you want to get information about tags, if any.

    

  
  :type nextToken: string
  :param nextToken: 

    An enumeration token that, when provided in a request, returns the next batch of the results.

    

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

    
    ::

      {
          'tags': {
              'string': 'string'
          },
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **tags** *(dict) --* 

        A list of tag key and value pairs associated with the specified resource.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
      

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

        An enumeration token that allows the operation to batch the next results of the operation.

        
  
  **Exceptions**
  
  *   :py:class:`CodeCommit.Client.exceptions.RepositoryDoesNotExistException`

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidRepositoryNameException`

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

  
  *   :py:class:`CodeCommit.Client.exceptions.InvalidResourceArnException`

  