CodeCommit.Client.
tag_resource
(**kwargs)¶Adds or updates tags for a resource 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.tag_resource(
resourceArn='string',
tags={
'string': 'string'
}
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource to which you want to add or update tags.
[REQUIRED]
The key-value pair to use when tagging this repository.
None
Exceptions
CodeCommit.Client.exceptions.RepositoryDoesNotExistException
CodeCommit.Client.exceptions.InvalidRepositoryNameException
CodeCommit.Client.exceptions.ResourceArnRequiredException
CodeCommit.Client.exceptions.InvalidResourceArnException
CodeCommit.Client.exceptions.TagsMapRequiredException
CodeCommit.Client.exceptions.InvalidTagsMapException
CodeCommit.Client.exceptions.TooManyTagsException
CodeCommit.Client.exceptions.InvalidSystemTagUsageException
CodeCommit.Client.exceptions.TagPolicyException