Skip to content

StartLendingAnalysis

Source: src/AWS/Textract/StartLendingAnalysis.ts

Runtime binding for textract:StartLendingAnalysis — start an asynchronous lending-document analysis job (classifies pages and routes them to the right extraction model) for a document stored in S3. Poll the returned JobId with GetLendingAnalysis / GetLendingAnalysisSummary. The caller needs s3:GetObject on the input bucket.

// init
const startLendingAnalysis = yield* AWS.Textract.StartLendingAnalysis();
// runtime
const { JobId } = yield* startLendingAnalysis({
DocumentLocation: { S3Object: { Bucket: bucketName, Name: "loan.pdf" } },
});