@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 20 lines 736 Bytes
Raw
1 import * as eventbridge from "@distilled.cloud/aws/eventbridge";
2 import * as Layer from "effect/Layer";
3 import { makeEventBridgeRuleHttpBinding } from "./BindingHttp.ts";
4 import { DescribeRule } from "./DescribeRule.ts";
5
6 /**
7 * HTTP implementation of {@link DescribeRule}. At deploy time it grants
8 * `events:DescribeRule` on the bound rule; at runtime it calls the
9 * EventBridge API with the host Function's credentials. Provide this layer on
10 * the Function using the binding.
11 */
12 export const DescribeRuleHttp = Layer.effect(
13 DescribeRule,
14 makeEventBridgeRuleHttpBinding({
15 tag: "AWS.EventBridge.DescribeRule",
16 operation: eventbridge.describeRule,
17 actions: ["events:DescribeRule"],
18 ruleNameKey: "Name",
19 }),
20 );