sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Textract/ GetExpenseAnalysisHttp.ts

import * as textract from "@distilled.cloud/aws/textract";
import * as Layer from "effect/Layer";
import { makeTextractHttpBinding } from "./BindingHttp.ts";
import { GetExpenseAnalysis } from "./GetExpenseAnalysis.ts";

export const GetExpenseAnalysisHttp = Layer.effect(
  GetExpenseAnalysis,
  makeTextractHttpBinding({
    capability: "GetExpenseAnalysis",
    // No resource-level IAM for this action.
    iamActions: ["textract:GetExpenseAnalysis"],
    operation: textract.getExpenseAnalysis,
  }),
);