list_tags_for_resource

CodeGuruReviewer.Client.list_tags_for_resource(**kwargs)

Returns the list of tags associated with an associated repository resource.

See also: AWS API Documentation

Request Syntax

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

[REQUIRED]

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations.

Return type
dict
Returns
Response Syntax
{
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --
    • Tags (dict) --

      An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:

      • A tag key (for example, CostCenter , Environment , Project , or Secret ). Tag keys are case sensitive.
      • An optional field known as a tag value (for example, 111122223333 , Production , or a team name). Omitting the tag value is the same as using an empty string. Like tag keys, tag values are case sensitive.
      • (string) --
        • (string) --

Exceptions

  • CodeGuruReviewer.Client.exceptions.InternalServerException
  • CodeGuruReviewer.Client.exceptions.ValidationException
  • CodeGuruReviewer.Client.exceptions.ResourceNotFoundException