Textract / Client / get_document_insights
get_document_insights¶
- Textract.Client.get_document_insights(**kwargs)¶
Gets the status and results of a document insights job that was started by StartDocumentInsights.
See also: AWS API Documentation
Request Syntax
response = client.get_document_insights( JobArn='string' )
- Parameters:
JobArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the document insights job to retrieve.
- Return type:
dict
- Returns:
Response Syntax
{ 'Status': 'IN_PROGRESS'|'SUCCEEDED'|'FAILED'|'PARTIAL_SUCCESS', 'OutputConfiguration': { 'S3Uri': 'string' }, 'ErrorType': 'string', 'ErrorMessage': 'string' }
Response Structure
(dict) –
Status (string) –
The current status of the document insights job, indicating whether it is still running, has completed, or has failed. When the job has failed, inspect
ErrorTypeandErrorMessagefor details.OutputConfiguration (dict) –
The Amazon S3 location where the analysis results are written.
S3Uri (string) –
The Amazon S3 URI where the analysis results are written.
ErrorType (string) –
The type of error that caused the job to fail. Present only when the job status is a failure state.
ErrorMessage (string) –
A human-readable description of the error that caused the job to fail. Present only when the job status is a failure state.
Exceptions