@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, 06:00 UTC

main
ts 47 lines 1.53 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 ListFlowOperationResultsRequest extends Omit<
7 NFW.ListFlowOperationResultsRequest,
8 "FirewallArn"
9 > {}
10
11 /**
12 * Runtime binding for `network-firewall:ListFlowOperationResults` — read the
13 * flows a completed flow capture/flush operation collected on the bound
14 * {@link Firewall}; the firewall ARN is injected automatically.
15 *
16 * Provide `NetworkFirewall.ListFlowOperationResultsHttp` on the hosting
17 * Lambda Function to satisfy the requirement.
18 * ### Flow Operations
19 * **Example:** Read Captured Flows
20 * ```typescript
21 * // init — grants network-firewall:ListFlowOperationResults on the firewall
22 * const listFlowOperationResults =
23 * yield* AWS.NetworkFirewall.ListFlowOperationResults(firewall);
24 *
25 * // runtime
26 * const { Flows } = yield* listFlowOperationResults({
27 * FlowOperationId: flowOperationId,
28 * });
29 * ```
30 *
31 * @binding
32 */
33 export interface ListFlowOperationResults extends Binding.Service<
34 ListFlowOperationResults,
35 "AWS.NetworkFirewall.ListFlowOperationResults",
36 (
37 firewall: Firewall,
38 ) => Effect.Effect<
39 (
40 request: ListFlowOperationResultsRequest,
41 ) => Effect.Effect<NFW.ListFlowOperationResultsResponse, NFW.ListFlowOperationResultsError>
42 >
43 > {}
44
45 export const ListFlowOperationResults = Binding.Service<ListFlowOperationResults>(
46 "AWS.NetworkFirewall.ListFlowOperationResults",
47 );