| 1 | import type * as macie2 from "@distilled.cloud/aws/macie2"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `macie2:ListFindings`. |
| 7 | * |
| 8 | * Retrieves a subset of information about one or more findings. |
| 9 | * Account-level operation — invoked with the caller's request as-is. |
| 10 | * Provide the implementation with |
| 11 | * `Effect.provide(AWS.Macie2.ListFindingsHttp)`. |
| 12 | * ### Working with Findings |
| 13 | * **Example:** List Finding Ids |
| 14 | * ```typescript |
| 15 | * // init — account-level binding, no resource argument |
| 16 | * const listFindings = yield* AWS.Macie2.ListFindings(); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { findingIds } = yield* listFindings(); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface ListFindings extends Binding.Service< |
| 25 | ListFindings, |
| 26 | "AWS.Macie2.ListFindings", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request?: macie2.ListFindingsRequest, |
| 30 | ) => Effect.Effect<macie2.ListFindingsResponse, macie2.ListFindingsError> |
| 31 | > |
| 32 | > {} |
| 33 | export const ListFindings = Binding.Service<ListFindings>( |
| 34 | "AWS.Macie2.ListFindings", |
| 35 | ); |