tag_resource
¶
tag_resource(
resource_arn: AmazonResourceName,
tags: TagList,
*,
config_overrides: Optional[LexModelBuildingServiceClientConfig] = 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(TagList) –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:
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and try again.
-
ConflictException–There was a conflict processing the request. Try your request again.
-
InternalFailureException–An internal Amazon Lex error occurred. Try your request again.
-
LimitExceededException–The request exceeded a limit. Try your request again.
-
NotFoundException–The resource specified in the request was not found. Check the resource and try again.
-
UnknownServiceError–The service returned an error code this client does not model.