sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ ECR/ BatchGetImageHttp.ts

import * as ecr from "@distilled.cloud/aws/ecr";
import * as Layer from "effect/Layer";
import { BatchGetImage } from "./BatchGetImage.ts";
import { makeEcrRepositoryHttpBinding } from "./BindingHttp.ts";

/** HTTP implementation of {@link BatchGetImage} over the ECR API. */
export const BatchGetImageHttp = Layer.effect(
  BatchGetImage,
  makeEcrRepositoryHttpBinding({
    capability: "BatchGetImage",
    operation: ecr.batchGetImage,
    iamActions: ["ecr:BatchGetImage"],
  }),
);