tag_resource
¶
tag_resource(
resource_arn: String,
tags: Tags,
*,
config_overrides: Optional[MPAClientConfig] = None,
) -> TagResourceResponse
Creates or updates a resource tag. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
Parameters:
-
resource_arn(String) –Amazon Resource Name (ARN) for the resource you want to tag.
-
tags(Tags) –Tags that you have added to the specified resource.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. Check your permissions, and try again.
-
InternalServerException–The service encountered an internal error. Try your request again. If the problem persists, contact Amazon Web Services Support.
-
ResourceNotFoundException–The specified resource doesn't exist. Check the resource ID, and try again.
-
ThrottlingException–The request was denied due to request throttling.
-
TooManyTagsException–The request exceeds the maximum number of tags allowed for this resource. Remove some tags, and try again.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.