Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

GetDocumentTextDetectionHttp.ts

14 lines551 Bytes

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