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 eventbridge from "@distilled.cloud/aws/eventbridge";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { Rule } from "./Rule.ts";
/**
* Disables an EventBridge rule (`events:DisableRule`) so it stops matching
* events without deleting it.
*
* Bind this operation to a {@link Rule} inside a function runtime to get a
* callable that pauses the rule — the runtime half of a feature toggle or
* kill switch. Provide the `DisableRuleHttp` layer on the Function to
* satisfy the binding.
* @binding
* @section Toggling Rules
* @example Pause the Bound Rule
* ```typescript
* // init — bind the rule (provide AWS.EventBridge.DisableRuleHttp on the Function)
* const disableRule = yield* AWS.EventBridge.DisableRule(rule);
*
* // runtime — stop event routing until re-enabled
* yield* disableRule();
* ```
*/
export interface DisableRule extends Binding.Service<
DisableRule,
"AWS.EventBridge.DisableRule",
(
rule: Rule,
) => Effect.Effect<
() => Effect.Effect<
eventbridge.DisableRuleResponse,
eventbridge.DisableRuleError
>
>
> {}
export const DisableRule = Binding.Service<DisableRule>(
"AWS.EventBridge.DisableRule",
);