sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ BedrockDataAutomation/ GetDataAutomationLibraryIngestionJobHttp.ts

import * as bda from "@distilled.cloud/aws/bedrock-data-automation";
import * as Layer from "effect/Layer";
import { makeBdaLibraryHttpBinding } from "./BindingHttp.ts";
import { GetDataAutomationLibraryIngestionJob } from "./GetDataAutomationLibraryIngestionJob.ts";

export const GetDataAutomationLibraryIngestionJobHttp = Layer.effect(
  GetDataAutomationLibraryIngestionJob,
  makeBdaLibraryHttpBinding({
    tag: "AWS.BedrockDataAutomation.GetDataAutomationLibraryIngestionJob",
    operation: bda.getDataAutomationLibraryIngestionJob,
    actions: ["bedrock:GetDataAutomationLibraryIngestionJob"],
    // The action authorizes against the ingestion-job resource (minted at
    // runtime), not the library ARN.
    additionalResources: ["arn:aws:bedrock:*:*:data-automation-library-ingestion-job/*"],
  }),
);