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