Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
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";
/**
* Runtime binding for `synthetics:StopCanary` — stop future runs of the
* bound {@link Canary} (an in-flight run completes on its own); the canary
* name is injected automatically.
*
* Provide `Synthetics.StopCanaryHttp` on the hosting Lambda Function to
* satisfy the requirement.
* @binding
* @section Controlling the Canary
* @example Stop the Canary
* ```typescript
* // init — grants synthetics:StopCanary on the canary
* const stopCanary = yield* AWS.Synthetics.StopCanary(canary);
*
* // runtime — a ConflictException means it is not currently running
* yield* stopCanary().pipe(
* Effect.catchTag("ConflictException", () => Effect.void),
* );
* ```
*/
export interface StopCanary extends Binding.Service<
StopCanary,
"AWS.Synthetics.StopCanary",
(
canary: Canary,
) => Effect.Effect<
() => Effect.Effect<
synthetics.StopCanaryResponse,
synthetics.StopCanaryError
>
>
> {}
export const StopCanary = Binding.Service<StopCanary>(
"AWS.Synthetics.StopCanary",
);