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'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations.
[REQUIRED]
An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:
CostCenter
, Environment
, Project
, or Secret
). Tag keys are case sensitive.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.dict
Response Syntax
{}
Response Structure
Exceptions
CodeGuruReviewer.Client.exceptions.InternalServerException
CodeGuruReviewer.Client.exceptions.ValidationException
CodeGuruReviewer.Client.exceptions.ResourceNotFoundException