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.
Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 | |