The best way to control Claude Code, Codex and more from any computer or phone

main
ts 43 lines 1.52 KB
Raw
1 import type * as eventbridge from "@distilled.cloud/aws/eventbridge";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface ListRuleNamesByTargetRequest extends eventbridge.ListRuleNamesByTargetRequest {}
6
7 /**
8 * Lists the EventBridge rules that route events to a given target ARN
9 * (`events:ListRuleNamesByTarget`).
10 *
11 * Bind this operation inside a function runtime to introspect which rules
12 * feed a target (e.g. the function itself, or one of its queues). Provide
13 * the `ListRuleNamesByTargetHttp` layer on the Function to satisfy the
14 * binding.
15 * ### Listing Rules
16 * **Example:** List Rules Feeding a Target
17 * ```typescript
18 * // init — bind the operation (provide AWS.EventBridge.ListRuleNamesByTargetHttp on the Function)
19 * const listRuleNamesByTarget = yield* AWS.EventBridge.ListRuleNamesByTarget();
20 *
21 * // runtime — find every rule routing to the target
22 * const { RuleNames } = yield* listRuleNamesByTarget({
23 * TargetArn: "arn:aws:lambda:us-east-1:123456789012:function:my-fn",
24 * });
25 * ```
26 *
27 * @binding
28 */
29 export interface ListRuleNamesByTarget extends Binding.Service<
30 ListRuleNamesByTarget,
31 "AWS.EventBridge.ListRuleNamesByTarget",
32 () => Effect.Effect<
33 (
34 request: ListRuleNamesByTargetRequest,
35 ) => Effect.Effect<
36 eventbridge.ListRuleNamesByTargetResponse,
37 eventbridge.ListRuleNamesByTargetError
38 >
39 >
40 > {}
41 export const ListRuleNamesByTarget = Binding.Service<ListRuleNamesByTarget>(
42 "AWS.EventBridge.ListRuleNamesByTarget",
43 );