start_document_insights
async
¶
start_document_insights(
input_configuration: InputConfiguration,
output_configuration: OutputConfiguration,
*,
config_overrides: Optional[AsyncTextractClientConfig] = None,
project_arn: Optional[ProjectArn] = None,
blueprints: Optional[BlueprintItems] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
notification_configuration: Optional[NotificationConfiguration] = None,
tags: Optional[TagMap] = None,
) -> StartDocumentInsightsResponse
Starts an asynchronous job that analyzes a document using the configuration defined by a project or a set of blueprints. Use GetDocumentInsights to retrieve the results of the job.
Parameters:
-
input_configuration(InputConfiguration) –The Amazon S3 location of the input document to analyze.
-
output_configuration(OutputConfiguration) –The Amazon S3 location where the analysis results are written.
-
project_arn(Optional[ProjectArn], default:None) –The Amazon Resource Name (ARN) of the project whose configuration is used to analyze the document.
-
blueprints(Optional[BlueprintItems], default:None) –The blueprints used to extract custom structured output from the document.
-
encryption_configuration(Optional[EncryptionConfiguration], default:None) –The AWS KMS encryption configuration used to encrypt the analysis output. If you don't specify a value, Amazon Textract encrypts the output using an AWS owned key.
-
notification_configuration(Optional[NotificationConfiguration], default:None) –Notification settings for the job.
-
tags(Optional[TagMap], default:None) –A set of tags (key-value pairs) to assign to the document insights job.
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. -
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/async_textract.py
2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 | |