GetInvalidation
Source:
src/AWS/CloudFront/GetInvalidation.ts
Runtime binding for cloudfront:GetInvalidation.
Reads the status of a cache invalidation on the bound distribution —
pairs with CreateInvalidation to poll a purge to Completed.
Provide the implementation with
Effect.provide(AWS.CloudFront.GetInvalidationHttp).
Inspecting Invalidations
Section titled “Inspecting Invalidations”// init — bind the operation to the distributionconst getInvalidation = yield* CloudFront.GetInvalidation(distribution);
// runtimeconst res = yield* getInvalidation({ Id: invalidationId });console.log(res.Invalidation?.Status); // "InProgress" | "Completed"