list_tags_for_resource

CodeCommit.Client.list_tags_for_resource(**kwargs)

Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit Resources and Operations in the*AWS CodeCommit User Guide* .

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    resourceArn='string',
    nextToken='string'
)
Parameters
  • resourceArn (string) --

    [REQUIRED]

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

  • nextToken (string) -- An enumeration token that, when provided in a request, returns the next batch of the results.
Return type

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

  • CodeCommit.Client.exceptions.RepositoryDoesNotExistException
  • CodeCommit.Client.exceptions.InvalidRepositoryNameException
  • CodeCommit.Client.exceptions.ResourceArnRequiredException
  • CodeCommit.Client.exceptions.InvalidResourceArnException