CodeDeploy / Client / tag_resource
tag_resource¶
- CodeDeploy.Client.tag_resource(**kwargs)¶
Associates the list of tags in the input
Tagsparameter with the resource identified by theResourceArninput parameter.See also: AWS API Documentation
Request Syntax
response = client.tag_resource( ResourceArn='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The ARN of a resource, such as a CodeDeploy application or deployment group.
Tags (list) –
[REQUIRED]
A list of tags that
TagResourceassociates with a resource. The resource is identified by theResourceArninput parameter.(dict) –
Information about a tag.
Key (string) –
The tag’s key.
Value (string) –
The tag’s value.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
CodeDeploy.Client.exceptions.ResourceArnRequiredExceptionCodeDeploy.Client.exceptions.ApplicationDoesNotExistExceptionCodeDeploy.Client.exceptions.DeploymentGroupDoesNotExistExceptionCodeDeploy.Client.exceptions.DeploymentConfigDoesNotExistExceptionCodeDeploy.Client.exceptions.TagRequiredExceptionCodeDeploy.Client.exceptions.InvalidTagsToAddExceptionCodeDeploy.Client.exceptions.ArnNotSupportedExceptionCodeDeploy.Client.exceptions.InvalidArnException