| 1 | import type * as inspector2 from "@distilled.cloud/aws/inspector2"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `inspector2:ListFindings`. |
| 7 | * |
| 8 | * Lists findings for your environment. |
| 9 | * |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.Inspector2.ListFindingsHttp)`. |
| 12 | * ### Querying Findings |
| 13 | * **Example:** List Critical Findings |
| 14 | * ```typescript |
| 15 | * // init |
| 16 | * const listFindings = yield* AWS.Inspector2.ListFindings(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { findings } = yield* listFindings({ |
| 20 | * filterCriteria: { severity: [{ comparison: "EQUALS", value: "CRITICAL" }] }, |
| 21 | * }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface ListFindings extends Binding.Service< |
| 27 | ListFindings, |
| 28 | "AWS.Inspector2.ListFindings", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request?: inspector2.ListFindingsRequest, |
| 32 | ) => Effect.Effect< |
| 33 | inspector2.ListFindingsResponse, |
| 34 | inspector2.ListFindingsError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const ListFindings = Binding.Service<ListFindings>( |
| 39 | "AWS.Inspector2.ListFindings", |
| 40 | ); |