tag_resource
¶
tag_resource(
resource_arn: str,
tags: TagMap,
*,
config_overrides: Optional[BackupSearchClientConfig] = None,
) -> TagResourceResponse
This operation puts tags on the resource you indicate.
Parameters:
-
resource_arn(str) –The Amazon Resource Name (ARN) that uniquely identifies the resource.
This is the resource that will have the indicated tags.
-
tags(TagMap) –Required tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
ResourceNotFoundException–The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.