tag_resource
(**kwargs)¶Associates the list of tags in the input Tags
parameter with the resource identified by the ResourceArn
input parameter.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource(
ResourceArn='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The ARN of a resource, such as a CodeDeploy application or deployment group.
[REQUIRED]
A list of tags that TagResource
associates with a resource. The resource is identified by the ResourceArn
input parameter.
Information about a tag.
The tag's key.
The tag's value.
dict
Response Syntax
{}
Response Structure
Exceptions
CodeDeploy.Client.exceptions.ResourceArnRequiredException
CodeDeploy.Client.exceptions.ApplicationDoesNotExistException
CodeDeploy.Client.exceptions.DeploymentGroupDoesNotExistException
CodeDeploy.Client.exceptions.DeploymentConfigDoesNotExistException
CodeDeploy.Client.exceptions.TagRequiredException
CodeDeploy.Client.exceptions.InvalidTagsToAddException
CodeDeploy.Client.exceptions.ArnNotSupportedException
CodeDeploy.Client.exceptions.InvalidArnException