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 |
Gets the results for an Amazon Textract asynchronous operation that analyzes text in a lending 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
GetLendingAnalysis, and pass the job identifier (JobId
) from the
initial call to StartLendingAnalysis
.
Synopsis
- data GetLendingAnalysis = GetLendingAnalysis' {}
- newGetLendingAnalysis :: Text -> GetLendingAnalysis
- getLendingAnalysis_maxResults :: Lens' GetLendingAnalysis (Maybe Natural)
- getLendingAnalysis_nextToken :: Lens' GetLendingAnalysis (Maybe Text)
- getLendingAnalysis_jobId :: Lens' GetLendingAnalysis Text
- data GetLendingAnalysisResponse = GetLendingAnalysisResponse' {}
- newGetLendingAnalysisResponse :: Int -> GetLendingAnalysisResponse
- getLendingAnalysisResponse_analyzeLendingModelVersion :: Lens' GetLendingAnalysisResponse (Maybe Text)
- getLendingAnalysisResponse_documentMetadata :: Lens' GetLendingAnalysisResponse (Maybe DocumentMetadata)
- getLendingAnalysisResponse_jobStatus :: Lens' GetLendingAnalysisResponse (Maybe JobStatus)
- getLendingAnalysisResponse_nextToken :: Lens' GetLendingAnalysisResponse (Maybe Text)
- getLendingAnalysisResponse_results :: Lens' GetLendingAnalysisResponse (Maybe [LendingResult])
- getLendingAnalysisResponse_statusMessage :: Lens' GetLendingAnalysisResponse (Maybe Text)
- getLendingAnalysisResponse_warnings :: Lens' GetLendingAnalysisResponse (Maybe [Warning])
- getLendingAnalysisResponse_httpStatus :: Lens' GetLendingAnalysisResponse Int
Creating a Request
data GetLendingAnalysis Source #
See: newGetLendingAnalysis
smart constructor.
GetLendingAnalysis' | |
|
Instances
newGetLendingAnalysis Source #
Create a value of GetLendingAnalysis
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:maxResults:GetLendingAnalysis'
, getLendingAnalysis_maxResults
- The maximum number of results to return per paginated call. The largest
value that you can specify is 30. If you specify a value greater than
30, a maximum of 30 results is returned. The default value is 30.
GetLendingAnalysis
, getLendingAnalysis_nextToken
- If the previous response was incomplete, Amazon Textract returns a
pagination token in the response. You can use this pagination token to
retrieve the next set of lending results.
$sel:jobId:GetLendingAnalysis'
, getLendingAnalysis_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
getLendingAnalysis_maxResults :: Lens' GetLendingAnalysis (Maybe Natural) Source #
The maximum number of results to return per paginated call. The largest value that you can specify is 30. If you specify a value greater than 30, a maximum of 30 results is returned. The default value is 30.
getLendingAnalysis_nextToken :: Lens' GetLendingAnalysis (Maybe Text) Source #
If the previous response was incomplete, Amazon Textract returns a pagination token in the response. You can use this pagination token to retrieve the next set of lending results.
getLendingAnalysis_jobId :: Lens' GetLendingAnalysis 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 GetLendingAnalysisResponse Source #
See: newGetLendingAnalysisResponse
smart constructor.
GetLendingAnalysisResponse' | |
|
Instances
newGetLendingAnalysisResponse Source #
Create a value of GetLendingAnalysisResponse
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:GetLendingAnalysisResponse'
, getLendingAnalysisResponse_analyzeLendingModelVersion
- The current model version of the Analyze Lending API.
$sel:documentMetadata:GetLendingAnalysisResponse'
, getLendingAnalysisResponse_documentMetadata
- Undocumented member.
$sel:jobStatus:GetLendingAnalysisResponse'
, getLendingAnalysisResponse_jobStatus
- The current status of the lending analysis job.
GetLendingAnalysis
, getLendingAnalysisResponse_nextToken
- If the response is truncated, Amazon Textract returns this token. You
can use this token in the subsequent request to retrieve the next set of
lending results.
$sel:results:GetLendingAnalysisResponse'
, getLendingAnalysisResponse_results
- Holds the information returned by one of AmazonTextract's document
analysis operations for the pinstripe.
$sel:statusMessage:GetLendingAnalysisResponse'
, getLendingAnalysisResponse_statusMessage
- Returns if the lending analysis job could not be completed. Contains
explanation for what error occurred.
$sel:warnings:GetLendingAnalysisResponse'
, getLendingAnalysisResponse_warnings
- A list of warnings that occurred during the lending analysis operation.
$sel:httpStatus:GetLendingAnalysisResponse'
, getLendingAnalysisResponse_httpStatus
- The response's http status code.
Response Lenses
getLendingAnalysisResponse_analyzeLendingModelVersion :: Lens' GetLendingAnalysisResponse (Maybe Text) Source #
The current model version of the Analyze Lending API.
getLendingAnalysisResponse_documentMetadata :: Lens' GetLendingAnalysisResponse (Maybe DocumentMetadata) Source #
Undocumented member.
getLendingAnalysisResponse_jobStatus :: Lens' GetLendingAnalysisResponse (Maybe JobStatus) Source #
The current status of the lending analysis job.
getLendingAnalysisResponse_nextToken :: Lens' GetLendingAnalysisResponse (Maybe Text) Source #
If the response is truncated, Amazon Textract returns this token. You can use this token in the subsequent request to retrieve the next set of lending results.
getLendingAnalysisResponse_results :: Lens' GetLendingAnalysisResponse (Maybe [LendingResult]) Source #
Holds the information returned by one of AmazonTextract's document analysis operations for the pinstripe.
getLendingAnalysisResponse_statusMessage :: Lens' GetLendingAnalysisResponse (Maybe Text) Source #
Returns if the lending analysis job could not be completed. Contains explanation for what error occurred.
getLendingAnalysisResponse_warnings :: Lens' GetLendingAnalysisResponse (Maybe [Warning]) Source #
A list of warnings that occurred during the lending analysis operation.
getLendingAnalysisResponse_httpStatus :: Lens' GetLendingAnalysisResponse Int Source #
The response's http status code.