| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Textract.GetLendingAnalysisSummary
Description
Gets summarized results for the StartLendingAnalysis operation, which
analyzes text in a lending document. The returned summary consists of
information about documents grouped together by a common document type.
Information like detected signatures, page numbers, and split documents
is returned with respect to the type of grouped document.
You start asynchronous text analysis by calling StartLendingAnalysis,
which returns a job identifier (JobId). When the text analysis
operation finishes, Amazon Textract publishes a completion status to the
Amazon Simple Notification Service (Amazon SNS) topic that's registered
in the initial call to StartLendingAnalysis.
To get the results of the text analysis operation, first check that the
status value published to the Amazon SNS topic is SUCCEEDED. If so, call
GetLendingAnalysisSummary, and pass the job identifier (JobId) from
the initial call to StartLendingAnalysis.
Synopsis
- data GetLendingAnalysisSummary = GetLendingAnalysisSummary' {}
- newGetLendingAnalysisSummary :: Text -> GetLendingAnalysisSummary
- getLendingAnalysisSummary_jobId :: Lens' GetLendingAnalysisSummary Text
- data GetLendingAnalysisSummaryResponse = GetLendingAnalysisSummaryResponse' {}
- newGetLendingAnalysisSummaryResponse :: Int -> GetLendingAnalysisSummaryResponse
- getLendingAnalysisSummaryResponse_analyzeLendingModelVersion :: Lens' GetLendingAnalysisSummaryResponse (Maybe Text)
- getLendingAnalysisSummaryResponse_documentMetadata :: Lens' GetLendingAnalysisSummaryResponse (Maybe DocumentMetadata)
- getLendingAnalysisSummaryResponse_jobStatus :: Lens' GetLendingAnalysisSummaryResponse (Maybe JobStatus)
- getLendingAnalysisSummaryResponse_statusMessage :: Lens' GetLendingAnalysisSummaryResponse (Maybe Text)
- getLendingAnalysisSummaryResponse_summary :: Lens' GetLendingAnalysisSummaryResponse (Maybe LendingSummary)
- getLendingAnalysisSummaryResponse_warnings :: Lens' GetLendingAnalysisSummaryResponse (Maybe [Warning])
- getLendingAnalysisSummaryResponse_httpStatus :: Lens' GetLendingAnalysisSummaryResponse Int
Creating a Request
data GetLendingAnalysisSummary Source #
See: newGetLendingAnalysisSummary smart constructor.
Constructors
| GetLendingAnalysisSummary' | |
Instances
newGetLendingAnalysisSummary Source #
Create a value of GetLendingAnalysisSummary with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobId:GetLendingAnalysisSummary', getLendingAnalysisSummary_jobId - A unique identifier for the lending or text-detection job. The JobId
is returned from StartLendingAnalysis. A JobId value is only valid for
7 days.
Request Lenses
getLendingAnalysisSummary_jobId :: Lens' GetLendingAnalysisSummary Text Source #
A unique identifier for the lending or text-detection job. The JobId
is returned from StartLendingAnalysis. A JobId value is only valid for
7 days.
Destructuring the Response
data GetLendingAnalysisSummaryResponse Source #
See: newGetLendingAnalysisSummaryResponse smart constructor.
Constructors
| GetLendingAnalysisSummaryResponse' | |
Fields
| |
Instances
newGetLendingAnalysisSummaryResponse Source #
Arguments
| :: Int | |
| -> GetLendingAnalysisSummaryResponse |
Create a value of GetLendingAnalysisSummaryResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:analyzeLendingModelVersion:GetLendingAnalysisSummaryResponse', getLendingAnalysisSummaryResponse_analyzeLendingModelVersion - The current model version of the Analyze Lending API.
$sel:documentMetadata:GetLendingAnalysisSummaryResponse', getLendingAnalysisSummaryResponse_documentMetadata - Undocumented member.
$sel:jobStatus:GetLendingAnalysisSummaryResponse', getLendingAnalysisSummaryResponse_jobStatus - The current status of the lending analysis job.
$sel:statusMessage:GetLendingAnalysisSummaryResponse', getLendingAnalysisSummaryResponse_statusMessage - Returns if the lending analysis could not be completed. Contains
explanation for what error occurred.
$sel:summary:GetLendingAnalysisSummaryResponse', getLendingAnalysisSummaryResponse_summary - Contains summary information for documents grouped by type.
$sel:warnings:GetLendingAnalysisSummaryResponse', getLendingAnalysisSummaryResponse_warnings - A list of warnings that occurred during the lending analysis operation.
$sel:httpStatus:GetLendingAnalysisSummaryResponse', getLendingAnalysisSummaryResponse_httpStatus - The response's http status code.
Response Lenses
getLendingAnalysisSummaryResponse_analyzeLendingModelVersion :: Lens' GetLendingAnalysisSummaryResponse (Maybe Text) Source #
The current model version of the Analyze Lending API.
getLendingAnalysisSummaryResponse_documentMetadata :: Lens' GetLendingAnalysisSummaryResponse (Maybe DocumentMetadata) Source #
Undocumented member.
getLendingAnalysisSummaryResponse_jobStatus :: Lens' GetLendingAnalysisSummaryResponse (Maybe JobStatus) Source #
The current status of the lending analysis job.
getLendingAnalysisSummaryResponse_statusMessage :: Lens' GetLendingAnalysisSummaryResponse (Maybe Text) Source #
Returns if the lending analysis could not be completed. Contains explanation for what error occurred.
getLendingAnalysisSummaryResponse_summary :: Lens' GetLendingAnalysisSummaryResponse (Maybe LendingSummary) Source #
Contains summary information for documents grouped by type.
getLendingAnalysisSummaryResponse_warnings :: Lens' GetLendingAnalysisSummaryResponse (Maybe [Warning]) Source #
A list of warnings that occurred during the lending analysis operation.
getLendingAnalysisSummaryResponse_httpStatus :: Lens' GetLendingAnalysisSummaryResponse Int Source #
The response's http status code.