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

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

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