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

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

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