The best way to control Claude Code, Codex and more from any computer or phone

main
ts 16 lines 837 Bytes
Raw
1 import * as bda from "@distilled.cloud/aws/bedrock-data-automation";
2 import * as Layer from "effect/Layer";
3 import { makeBdaLibraryHttpBinding } from "./BindingHttp.ts";
4 import { InvokeDataAutomationLibraryIngestionJob } from "./InvokeDataAutomationLibraryIngestionJob.ts";
5
6 export const InvokeDataAutomationLibraryIngestionJobHttp = Layer.effect(
7 InvokeDataAutomationLibraryIngestionJob,
8 makeBdaLibraryHttpBinding({
9 tag: "AWS.BedrockDataAutomation.InvokeDataAutomationLibraryIngestionJob",
10 operation: bda.invokeDataAutomationLibraryIngestionJob,
11 actions: ["bedrock:InvokeDataAutomationLibraryIngestionJob"],
12 // The action authorizes against the ingestion-job resource (minted at
13 // runtime), not the library ARN.
14 additionalResources: ["arn:aws:bedrock:*:*:data-automation-library-ingestion-job/*"],
15 }),
16 );