tag_resource
async
¶
tag_resource(
resource_arn: Arn,
tags: TagList,
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
) -> TagResourceOutput
Associates the list of tags in the input Tags parameter with the resource identified by the ResourceArn input parameter.
Parameters:
-
resource_arn(Arn) –The ARN of a resource, such as a CodeDeploy application or deployment group.
-
tags(TagList) –A list of tags that
TagResourceassociates with a resource. The resource is identified by theResourceArninput parameter.
Raises:
-
ApplicationDoesNotExistException–The application does not exist with the user or Amazon Web Services account.
-
ArnNotSupportedException–The specified ARN is not supported. For example, it might be an ARN for a resource that is not expected.
-
DeploymentConfigDoesNotExistException–The deployment configuration does not exist with the user or Amazon Web Services account.
-
DeploymentGroupDoesNotExistException–The named deployment group with the user or Amazon Web Services account does not exist.
-
InvalidArnException–The specified ARN is not in a valid format.
-
InvalidTagsToAddException–The specified tags are not valid.
-
ResourceArnRequiredException–The ARN of a resource is required, but was not found.
-
TagRequiredException–A tag was not specified.
-
UnknownServiceError–The service returned an error code this client does not model.