Skip to content

BatchCheckLayerAvailability

Source: src/AWS/ECRPublic/BatchCheckLayerAvailability.ts

Runtime binding for ecr-public:BatchCheckLayerAvailability.

Checks whether image layers already exist in the bound PublicRepository so a push can skip re-uploading them. Provide the implementation with Effect.provide(AWS.ECRPublic.BatchCheckLayerAvailabilityHttp).

// init
const checkLayers = yield* AWS.ECRPublic.BatchCheckLayerAvailability(repository);
// runtime
const result = yield* checkLayers({ layerDigests: ["sha256:abc..."] });
const missing = (result.failures ?? []).map((f) => f.layerDigest);