tag_resource
async
¶
tag_resource(
resource_arn: ResourceArn,
tags: Tags,
*,
config_overrides: Optional[AsyncivsClientConfig] = None,
) -> TagResourceResponse
Adds or updates tags for the Amazon Web Services resource with the specified ARN.
Parameters:
-
resource_arn(ResourceArn) –ARN of the resource for which tags are to be added or updated. The ARN must be URL-encoded.
-
tags(Tags) –Array of tags to be added or updated. Array of maps, each of the form
string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
Raises:
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
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.