import type * as ecr from "@distilled.cloud/aws/ecr"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Repository } from "./Repository.ts"; /** * Request for {@link BatchDeleteImage} — `repositoryName` is injected from the * bound {@link Repository} (the registry defaults to the caller's account). */ export interface BatchDeleteImageRequest extends Omit { } /** * Runtime binding for `ecr:BatchDeleteImage`. * * Deletes images (by tag or digest) from the bound repository. Missing images are reported in the response's `failures` array rather than as an error, so deletion is naturally idempotent. Provide the implementation with * `Effect.provide(AWS.ECR.BatchDeleteImageHttp)`. * ### Deleting Images * **Example:** Delete an Image Tag * ```typescript * const batchDeleteImage = yield* AWS.ECR.BatchDeleteImage(repository); * * const res = yield* batchDeleteImage({ imageIds: [{ imageTag: "stale" }] }); * console.log(res.imageIds?.length, "deleted"); * ``` * * @binding */ export interface BatchDeleteImage extends Binding.Service Effect.Effect<(request: BatchDeleteImageRequest) => Effect.Effect>> { } export declare const BatchDeleteImage: BatchDeleteImage; //# sourceMappingURL=BatchDeleteImage.d.ts.map