tag_resource
async
¶
tag_resource(
resource_arn: AmazonResourceName,
tags: TagMap,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
) -> TagResourceResponse
Adds the specified tags to the specified resource. If a tag key already exists, the existing value is replaced with the new value.
Parameters:
-
resource_arn(AmazonResourceName) –The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel to tag.
-
tags(TagMap) –A list of tag keys to add to the resource. If a tag key already exists, the existing value is replaced with the new value.
Raises:
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
ResourceNotFoundException–You asked to describe a resource that doesn't exist. Check the resource that you are requesting and try again.
-
ThrottlingException–Your request rate is too high. Reduce the frequency of requests.
-
ValidationException–One of the input parameters in your request isn't valid. Check the parameters and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.