create_blueprint
async
¶
create_blueprint(
blueprint_name: BlueprintName,
schema: BlueprintSchema,
*,
config_overrides: Optional[AsyncTextractClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
tags: Optional[TagMap] = None,
) -> CreateBlueprintResponse
Creates a blueprint that defines the schema Amazon Textract uses to extract structured data from a document during a document insights job. A blueprint describes the fields to extract and how to normalize them.
Parameters:
-
client_request_token(Optional[ClientRequestToken], default:None) –A unique, case-sensitive identifier that you provide to ensure that the operation completes no more than one time. If you use the same token for a request that matches a previous request, the service ignores the request, but does not return an error.
-
blueprint_name(BlueprintName) –A unique name for the blueprint.
-
schema(BlueprintSchema) –The schema of the blueprint, which defines the fields to extract and their expected structure.
-
encryption_configuration(Optional[EncryptionConfiguration], default:None) –The AWS KMS encryption configuration used to encrypt the blueprint at rest.
-
tags(Optional[TagMap], default:None) –A set of tags (key-value pairs) to assign to the blueprint.
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.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
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. -
LimitExceededException–An Amazon Textract service limit was exceeded. For example, if you start too many asynchronous jobs concurrently, calls to start operations (
StartDocumentTextDetection, for example) raise a LimitExceededException exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Textract service limit. -
ProvisionedThroughputExceededException–The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Textract.
-
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.
Source code in docs_src/capo_textract/_services/async_textract.py
689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 | |