tag_resource
¶
tag_resource(
resource_arn: Arn,
tags: TagList,
*,
config_overrides: Optional[CodeDeployClientConfig] = 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/code_deploy.py
3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 | |