| 1 | import type * as NFW from "@distilled.cloud/aws/network-firewall"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 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< |
| 42 | NFW.ListFlowOperationResultsResponse, |
| 43 | NFW.ListFlowOperationResultsError |
| 44 | > |
| 45 | > |
| 46 | > {} |
| 47 | |
| 48 | export const ListFlowOperationResults = |
| 49 | Binding.Service<ListFlowOperationResults>( |
| 50 | "AWS.NetworkFirewall.ListFlowOperationResults", |
| 51 | ); |