@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 46 lines 1.6 KB
Raw
1 import type * as NFW from "@distilled.cloud/aws/network-firewall";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { RuleGroup } from "./RuleGroup.ts";
5
6 export interface DescribeRuleGroupMetadataRequest extends Omit<
7 NFW.DescribeRuleGroupMetadataRequest,
8 "RuleGroupArn" | "RuleGroupName" | "Type"
9 > {}
10
11 /**
12 * Runtime binding for `network-firewall:DescribeRuleGroupMetadata` — read
13 * the high-level metadata (type, capacity, last-modified time) of the bound
14 * {@link RuleGroup} without fetching the full rules definition; the rule
15 * group ARN is injected automatically.
16 *
17 * Provide `NetworkFirewall.DescribeRuleGroupMetadataHttp` on the hosting
18 * Lambda Function to satisfy the requirement.
19 * ### Reading Rule Group State
20 * **Example:** Read Rule Group Metadata
21 * ```typescript
22 * // init — grants network-firewall:DescribeRuleGroupMetadata on the rule group
23 * const describeRuleGroupMetadata =
24 * yield* AWS.NetworkFirewall.DescribeRuleGroupMetadata(ruleGroup);
25 *
26 * // runtime
27 * const { Capacity } = yield* describeRuleGroupMetadata();
28 * ```
29 *
30 * @binding
31 */
32 export interface DescribeRuleGroupMetadata extends Binding.Service<
33 DescribeRuleGroupMetadata,
34 "AWS.NetworkFirewall.DescribeRuleGroupMetadata",
35 (
36 ruleGroup: RuleGroup,
37 ) => Effect.Effect<
38 (
39 request?: DescribeRuleGroupMetadataRequest,
40 ) => Effect.Effect<NFW.DescribeRuleGroupMetadataResponse, NFW.DescribeRuleGroupMetadataError>
41 >
42 > {}
43
44 export const DescribeRuleGroupMetadata = Binding.Service<DescribeRuleGroupMetadata>(
45 "AWS.NetworkFirewall.DescribeRuleGroupMetadata",
46 );