@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.57 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 GetAnalysisReportResultsRequest extends Omit<
7 NFW.GetAnalysisReportResultsRequest,
8 "FirewallArn" | "FirewallName"
9 > {}
10
11 /**
12 * Runtime binding for `network-firewall:GetAnalysisReportResults` — read the
13 * results of a completed traffic analysis report on the bound
14 * {@link Firewall}; the firewall ARN is injected automatically.
15 *
16 * Provide `NetworkFirewall.GetAnalysisReportResultsHttp` on the hosting
17 * Lambda Function to satisfy the requirement.
18 * ### Analysis Reports
19 * **Example:** Read Analysis Report Results
20 * ```typescript
21 * // init — grants network-firewall:GetAnalysisReportResults on the firewall
22 * const getAnalysisReportResults =
23 * yield* AWS.NetworkFirewall.GetAnalysisReportResults(firewall);
24 *
25 * // runtime
26 * const { AnalysisReportResults } = yield* getAnalysisReportResults({
27 * AnalysisReportId: analysisReportId,
28 * });
29 * ```
30 *
31 * @binding
32 */
33 export interface GetAnalysisReportResults extends Binding.Service<
34 GetAnalysisReportResults,
35 "AWS.NetworkFirewall.GetAnalysisReportResults",
36 (
37 firewall: Firewall,
38 ) => Effect.Effect<
39 (
40 request: GetAnalysisReportResultsRequest,
41 ) => Effect.Effect<NFW.GetAnalysisReportResultsResponse, NFW.GetAnalysisReportResultsError>
42 >
43 > {}
44
45 export const GetAnalysisReportResults = Binding.Service<GetAnalysisReportResults>(
46 "AWS.NetworkFirewall.GetAnalysisReportResults",
47 );