create_project
¶
create_project(
project_name: ProjectName,
extraction_configuration: ExtractionConfiguration,
*,
config_overrides: Optional[TextractClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
project_description: Optional[ProjectDescription] = None,
generative_configuration: Optional[GenerativeConfiguration] = None,
custom_configuration: Optional[CustomConfiguration] = None,
splitter_configuration: Optional[SplitterConfiguration] = None,
sensitive_data_configuration: Optional[SensitiveDataConfiguration] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
tags: Optional[TagMap] = None,
) -> CreateProjectResponse
Creates a project that groups the configuration used to run document insights jobs.
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.
-
project_name(ProjectName) –A unique name for the project.
-
project_description(Optional[ProjectDescription], default:None) –A description of the project.
-
extraction_configuration(ExtractionConfiguration) –The configuration that controls how Amazon Textract extracts content from the document, including bounding boxes, granularity, and output format.
-
generative_configuration(Optional[GenerativeConfiguration], default:None) –The configuration that controls generative capabilities such as summarization and figure captioning.
-
custom_configuration(Optional[CustomConfiguration], default:None) –The configuration that associates blueprints with the project for custom output extraction.
-
splitter_configuration(Optional[SplitterConfiguration], default:None) –The configuration that controls whether multi-document packets are split into individual documents.
-
sensitive_data_configuration(Optional[SensitiveDataConfiguration], default:None) –The configuration that controls detection and redaction of sensitive data, such as personally identifiable information (PII).
-
encryption_configuration(Optional[EncryptionConfiguration], default:None) –The AWS KMS encryption configuration used to encrypt the project at rest. If you don't specify a value, Amazon Textract encrypts the project using an AWS owned key.
-
tags(Optional[TagMap], default:None) –A set of tags (key-value pairs) to assign to the project.
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.
-
ResourceNotFoundException–Returned when an operation tried to access a nonexistent resource.
-
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/textract.py
831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 | |