tag_resource
async
¶
tag_resource(
resource_arn: TranscribeArn,
tags: TagList,
*,
config_overrides: Optional[AsyncTranscribeClientConfig] = None,
) -> TagResourceResponse
Adds one or more custom tags, each in the form of a key:value pair, to the specified resource.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
Parameters:
-
resource_arn(TranscribeArn) –The Amazon Resource Name (ARN) of the resource you want to tag. ARNs have the format
arn:partition:service:region:account-id:resource-type/resource-id.For example,
arn:aws:transcribe:us-west-2:111122223333:transcription-job/transcription-job-name.Valid values for
resource-typeare:transcription-job,medical-transcription-job,vocabulary,medical-vocabulary,vocabulary-filter, andlanguage-model. -
tags(TagList) –Adds one or more custom tags, each in the form of a key:value pair, to the specified resource.
To learn more about using tags with Amazon Transcribe, refer to Tagging resources.
Raises:
-
BadRequestException–Your request didn't pass one or more validation tests. This can occur when the entity you're trying to delete doesn't exist or if it's in a non-terminal state (such as
IN PROGRESS). See the exception message field for more information. -
ConflictException–A resource already exists with this name. Resource names must be unique within an Amazon Web Services account.
-
InternalFailureException–There was an internal error. Check the error message, correct the issue, and try your request again.
-
LimitExceededException–You've either sent too many requests or your input file is too long. Wait before retrying your request, or use a smaller file and try your request again.
-
NotFoundException–We can't find the requested resource. Check that the specified name is correct and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.