import type * as synthetics from "@distilled.cloud/aws/synthetics"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Canary } from "./Canary.ts"; export interface GetCanaryRunsRequest extends Omit { } /** * Runtime binding for `synthetics:GetCanaryRuns` — list the run results * (status, timeline, artifact location) of the bound {@link Canary}; the * canary name is injected automatically. * * Provide `Synthetics.GetCanaryRunsHttp` on the hosting Lambda Function to * satisfy the requirement. * ### Reading Canary Runs * **Example:** List Recent Runs * ```typescript * // init — grants synthetics:GetCanaryRuns on the canary * const getCanaryRuns = yield* AWS.Synthetics.GetCanaryRuns(canary); * * // runtime * const { CanaryRuns } = yield* getCanaryRuns({ MaxResults: 10 }); * const failed = CanaryRuns?.filter((run) => run.Status?.State === "FAILED"); * ``` * * @binding */ export interface GetCanaryRuns extends Binding.Service Effect.Effect<(request?: GetCanaryRunsRequest) => Effect.Effect>> { } export declare const GetCanaryRuns: GetCanaryRuns; //# sourceMappingURL=GetCanaryRuns.d.ts.map