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

main
ts 42 lines 1.43 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 { Firewall } from "./Firewall.ts";
5
6 export interface StartFlowFlushRequest extends Omit<NFW.StartFlowFlushRequest, "FirewallArn"> {}
7
8 /**
9 * Runtime binding for `network-firewall:StartFlowFlush` — flush matching
10 * flows from the bound {@link Firewall}'s flow table (impacted flows are
11 * re-evaluated as midstream traffic); the firewall ARN is injected
12 * automatically.
13 *
14 * Provide `NetworkFirewall.StartFlowFlushHttp` on the hosting Lambda
15 * Function to satisfy the requirement.
16 * ### Flow Operations
17 * **Example:** Flush Flows to a Host
18 * ```typescript
19 * // init — grants network-firewall:StartFlowFlush on the firewall
20 * const startFlowFlush = yield* AWS.NetworkFirewall.StartFlowFlush(firewall);
21 *
22 * // runtime
23 * const { FlowOperationId } = yield* startFlowFlush({
24 * FlowFilters: [{ SourceAddress: { AddressDefinition: "10.0.1.10/32" } }],
25 * });
26 * ```
27 *
28 * @binding
29 */
30 export interface StartFlowFlush extends Binding.Service<
31 StartFlowFlush,
32 "AWS.NetworkFirewall.StartFlowFlush",
33 (
34 firewall: Firewall,
35 ) => Effect.Effect<
36 (
37 request: StartFlowFlushRequest,
38 ) => Effect.Effect<NFW.StartFlowFlushResponse, NFW.StartFlowFlushError>
39 >
40 > {}
41
42 export const StartFlowFlush = Binding.Service<StartFlowFlush>("AWS.NetworkFirewall.StartFlowFlush");