| 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 { GetDataAutomationLibraryIngestionJob } from "./GetDataAutomationLibraryIngestionJob.ts"; |
| 5 | |
| 6 | export const GetDataAutomationLibraryIngestionJobHttp = Layer.effect( |
| 7 | GetDataAutomationLibraryIngestionJob, |
| 8 | makeBdaLibraryHttpBinding({ |
| 9 | tag: "AWS.BedrockDataAutomation.GetDataAutomationLibraryIngestionJob", |
| 10 | operation: bda.getDataAutomationLibraryIngestionJob, |
| 11 | actions: ["bedrock:GetDataAutomationLibraryIngestionJob"], |
| 12 | // The action authorizes against the ingestion-job resource (minted at |
| 13 | // runtime), not the library ARN. |
| 14 | additionalResources: [ |
| 15 | "arn:aws:bedrock:*:*:data-automation-library-ingestion-job/*", |
| 16 | ], |
| 17 | }), |
| 18 | ); |