tag_resource
¶
tag_resource(
resource_arn: ARN,
tags: Tags,
*,
config_overrides: Optional[BackupClientConfig] = None,
) -> None
Assigns a set of key-value pairs to a resource.
Parameters:
-
resource_arn(ARN) –The ARN that uniquely identifies the resource.
-
tags(Tags) –Key-value pairs that are used to help organize your resources. You can assign your own metadata to the resources you create. For clarity, this is the structure to assign tags:
[{"Key":"string","Value":"string"}].
Raises:
-
InvalidParameterValueException–Indicates that something is wrong with a parameter's value. For example, the value is out of range.
-
LimitExceededException–A limit in the request has been exceeded; for example, a maximum number of items allowed in a request.
-
MissingParameterValueException–Indicates that a required parameter is missing.
-
ResourceNotFoundException–A resource that is required for the action doesn't exist.
-
ServiceUnavailableException–The request failed due to a temporary failure of the server.
-
UnknownServiceError–The service returned an error code this client does not model.