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 * as eventbridge from "@distilled.cloud/aws/eventbridge";
import * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { Rule } from "./Rule.ts";
export interface DescribeRuleRequest extends Omit<
eventbridge.DescribeRuleRequest,
"Name" | "EventBusName"
> {}
/**
* Reads the configuration of an EventBridge rule (`events:DescribeRule`).
*
* Bind this operation to a {@link Rule} inside a function runtime to get a
* callable that automatically injects the rule and bus names. Provide the
* `DescribeRuleHttp` layer on the Function to satisfy the binding.
* @binding
* @section Describing Rules
* @example Describe the Bound Rule
* ```typescript
* // init — bind the rule (provide AWS.EventBridge.DescribeRuleHttp on the Function)
* const describeRule = yield* AWS.EventBridge.DescribeRule(rule);
*
* // runtime — read the rule's state and pattern
* const info = yield* describeRule();
* console.log(info.State, info.EventPattern);
* ```
*/
export interface DescribeRule extends Binding.Service<
DescribeRule,
"AWS.EventBridge.DescribeRule",
(
rule: Rule,
) => Effect.Effect<
(
request?: DescribeRuleRequest,
) => Effect.Effect<
eventbridge.DescribeRuleResponse,
eventbridge.DescribeRuleError
>
>
> {}
export const DescribeRule = Binding.Service<DescribeRule>(
"AWS.EventBridge.DescribeRule",
);