tag_resource
¶
tag_resource(
resource_arn: AmazonResourceName,
tags: TagMap,
*,
config_overrides: Optional[TextractClientConfig] = None,
) -> TagResourceResponse
Adds one or more tags to the specified resource.
Parameters:
-
resource_arn(AmazonResourceName) –The Amazon Resource Name (ARN) that specifies the resource to be tagged.
-
tags(TagMap) –A set of tags (key-value pairs) that you want to assign to the resource.
Raises:
-
AccessDeniedException–You aren't authorized to perform the action. Use the Amazon Resource Name (ARN) of an authorized user or IAM role to perform the operation.
-
InternalServerError–Amazon Textract experienced a service issue. Try your call again.
-
InvalidParameterException–An input parameter violated a constraint. For example, in synchronous operations, an
InvalidParameterExceptionexception occurs when neither of theS3ObjectorBytesvalues are supplied in theDocumentrequest parameter. Validate your parameter before calling the API operation again. -
ProvisionedThroughputExceededException–The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract.
-
ResourceNotFoundException–Returned when an operation tried to access a nonexistent resource.
-
ServiceQuotaExceededException–Returned when a request cannot be completed as it would exceed a maximum service quota.
-
ThrottlingException–Amazon Textract is temporarily unable to process the request. Try your call again.
-
ValidationException–Indicates that a request was not valid. Check request for proper formatting.
-
UnknownServiceError–The service returned an error code this client does not model.