| 1 | import type * as textract from "@distilled.cloud/aws/textract"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `textract:GetLendingAnalysisSummary` — read the |
| 7 | * document-group summary of an asynchronous lending-analysis job started |
| 8 | * with `StartLendingAnalysis`. |
| 9 | * |
| 10 | * ### Asynchronous Lending Analysis |
| 11 | * **Example:** Summarize a Lending Analysis Job |
| 12 | * ```typescript |
| 13 | * // init |
| 14 | * const getLendingAnalysisSummary = |
| 15 | * yield* AWS.Textract.GetLendingAnalysisSummary(); |
| 16 | * |
| 17 | * // runtime |
| 18 | * const result = yield* getLendingAnalysisSummary({ JobId: jobId }); |
| 19 | * const groups = result.Summary?.DocumentGroups; |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface GetLendingAnalysisSummary extends Binding.Service< |
| 25 | GetLendingAnalysisSummary, |
| 26 | "AWS.Textract.GetLendingAnalysisSummary", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request: textract.GetLendingAnalysisSummaryRequest, |
| 30 | ) => Effect.Effect< |
| 31 | textract.GetLendingAnalysisSummaryResponse, |
| 32 | textract.GetLendingAnalysisSummaryError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const GetLendingAnalysisSummary = |
| 37 | Binding.Service<GetLendingAnalysisSummary>( |
| 38 | "AWS.Textract.GetLendingAnalysisSummary", |
| 39 | ); |