import type * as cloudfront from "@distilled.cloud/aws/cloudfront"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Distribution } from "./Distribution.ts"; export interface GetInvalidationRequest extends Omit { } /** * Runtime binding for `cloudfront:GetInvalidation`. * * Reads the status of a cache invalidation on the bound distribution — * pairs with {@link CreateInvalidation} to poll a purge to `Completed`. * Provide the implementation with * `Effect.provide(AWS.CloudFront.GetInvalidationHttp)`. * ### Inspecting Invalidations * **Example:** Poll an Invalidation's Status * ```typescript * // init — bind the operation to the distribution * const getInvalidation = yield* CloudFront.GetInvalidation(distribution); * * // runtime * const res = yield* getInvalidation({ Id: invalidationId }); * console.log(res.Invalidation?.Status); // "InProgress" | "Completed" * ``` * * @binding */ export interface GetInvalidation extends Binding.Service Effect.Effect<(request: GetInvalidationRequest) => Effect.Effect>> { } export declare const GetInvalidation: GetInvalidation; //# sourceMappingURL=GetInvalidation.d.ts.map