CodeGuruReviewer / Client / tag_resource

tag_resource#

CodeGuruReviewer.Client.tag_resource(**kwargs)#

Adds one or more tags to an associated repository.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • resourceArn (string) –

    [REQUIRED]

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

  • Tags (dict) –

    [REQUIRED]

    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) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions