CodeArtifact.Client.
tag_resource
(**kwargs)¶Adds or updates tags for a resource in CodeArtifact.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
resourceArn='string',
tags=[
{
'key': 'string',
'value': 'string'
},
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource that you want to add or update tags for.
[REQUIRED]
The tags you want to modify or add to the resource.
A tag is a key-value pair that can be used to manage, search for, or filter resources in CodeArtifact.
The tag key.
The tag value.
dict
Response Syntax
{}
Response Structure
Exceptions
CodeArtifact.Client.exceptions.AccessDeniedException
CodeArtifact.Client.exceptions.ResourceNotFoundException
CodeArtifact.Client.exceptions.ServiceQuotaExceededException
CodeArtifact.Client.exceptions.ThrottlingException
CodeArtifact.Client.exceptions.ValidationException