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 { } /** * 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. * ### 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); * ``` * * @binding */ export interface DescribeRule extends Binding.Service Effect.Effect<(request?: DescribeRuleRequest) => Effect.Effect>> { } export declare const DescribeRule: DescribeRule; //# sourceMappingURL=DescribeRule.d.ts.map