tag_resource
¶
tag_resource(
resource_arn: TaggableResourceArn,
tags: TagList,
*,
config_overrides: Optional[MailManagerClientConfig] = None,
) -> TagResourceResponse
Adds one or more tags (keys and values) to a specified resource.
Parameters:
-
resource_arn(TaggableResourceArn) –The Amazon Resource Name (ARN) of the resource that you want to tag.
-
tags(TagList) –The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Raises:
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
ResourceNotFoundException–Occurs when a requested resource is not found.
-
ServiceQuotaExceededException–Occurs when an operation exceeds a predefined service quota or limit.
-
ValidationException–The request validation has failed. For details, see the accompanying error message.
-
UnknownServiceError–The service returned an error code this client does not model.