tag_resource
async
¶
tag_resource(
resource_arn: ARN,
tags: TagsMap,
*,
config_overrides: Optional[AsyncdrsClientConfig] = None,
) -> None
Adds or overwrites only the specified tags for the specified Elastic Disaster Recovery resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value.
Parameters:
-
resource_arn(ARN) –ARN of the resource for which tags are to be added or updated.
-
tags(TagsMap) –Array of tags to be added or updated.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource for this operation was not found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.