| 1 | import * as textract from "@distilled.cloud/aws/textract"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeTextractHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetDocumentAnalysis } from "./GetDocumentAnalysis.ts"; |
| 5 | |
| 6 | export const GetDocumentAnalysisHttp = Layer.effect( |
| 7 | GetDocumentAnalysis, |
| 8 | makeTextractHttpBinding({ |
| 9 | capability: "GetDocumentAnalysis", |
| 10 | // No resource-level IAM for this action. |
| 11 | iamActions: ["textract:GetDocumentAnalysis"], |
| 12 | operation: textract.getDocumentAnalysis, |
| 13 | }), |
| 14 | ); |