amazonka-textract-2.0: Amazon Textract SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data GetLendingAnalysisSummary Source #

See: newGetLendingAnalysisSummary smart constructor.

Constructors

GetLendingAnalysisSummary' 

Fields

  • jobId :: Text

    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.

Instances

Instances details
ToJSON GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

ToHeaders GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

ToPath GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

ToQuery GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

AWSRequest GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

Generic GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

Associated Types

type Rep GetLendingAnalysisSummary :: Type -> Type #

Read GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

Show GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

NFData GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

Eq GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

Hashable GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

type AWSResponse GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

type Rep GetLendingAnalysisSummary Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

type Rep GetLendingAnalysisSummary = D1 ('MetaData "GetLendingAnalysisSummary" "Amazonka.Textract.GetLendingAnalysisSummary" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "GetLendingAnalysisSummary'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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

Instances details
Generic GetLendingAnalysisSummaryResponse Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

Associated Types

type Rep GetLendingAnalysisSummaryResponse :: Type -> Type #

Read GetLendingAnalysisSummaryResponse Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

Show GetLendingAnalysisSummaryResponse Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

NFData GetLendingAnalysisSummaryResponse Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

Eq GetLendingAnalysisSummaryResponse Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

type Rep GetLendingAnalysisSummaryResponse Source # 
Instance details

Defined in Amazonka.Textract.GetLendingAnalysisSummary

type Rep GetLendingAnalysisSummaryResponse = D1 ('MetaData "GetLendingAnalysisSummaryResponse" "Amazonka.Textract.GetLendingAnalysisSummary" "amazonka-textract-2.0-6i5mJlqzS4xCepXxXFK6UK" 'False) (C1 ('MetaCons "GetLendingAnalysisSummaryResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "analyzeLendingModelVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "documentMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DocumentMetadata)) :*: S1 ('MetaSel ('Just "jobStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JobStatus)))) :*: ((S1 ('MetaSel ('Just "statusMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LendingSummary))) :*: (S1 ('MetaSel ('Just "warnings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Warning])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetLendingAnalysisSummaryResponse Source #

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_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.