CodeCommit / Client / list_tags_for_resource

list_tags_for_resource#

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 in the* 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