BatchCheckLayerAvailability
Source:
src/AWS/ECR/BatchCheckLayerAvailability.ts
Runtime binding for ecr:BatchCheckLayerAvailability.
Checks whether image layers already exist in the bound repository — pushed clients call this before uploading to skip blobs the registry already has. Provide the implementation with
Effect.provide(AWS.ECR.BatchCheckLayerAvailabilityHttp).
Pushing Images
Section titled “Pushing Images”const checkLayers = yield* AWS.ECR.BatchCheckLayerAvailability(repository);
const res = yield* checkLayers({ layerDigests: ["sha256:…"] });const missing = res.layers?.filter((l) => l.layerAvailability === "UNAVAILABLE");