Skip to content

ListInvalidations

Source: src/AWS/CloudFront/ListInvalidations.ts

Runtime binding for cloudfront:ListInvalidations.

Lists the cache invalidations of the bound distribution (paginated via Marker/MaxItems). Provide the implementation with Effect.provide(AWS.CloudFront.ListInvalidationsHttp).

// init — bind the operation to the distribution
const listInvalidations = yield* CloudFront.ListInvalidations(distribution);
// runtime
const res = yield* listInvalidations({ MaxItems: 10 });
console.log(res.InvalidationList?.Items?.map((i) => i.Id));