start_document_insights
¶
start_document_insights(
input_configuration: InputConfiguration,
output_configuration: OutputConfiguration,
*,
config_overrides: Optional[TextractClientConfig] = 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/textract.py
2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 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 | |