1import type * as guardduty from "@distilled.cloud/aws/guardduty";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Detector } from "./Detector.ts";
5
6/**
7 * Runtime binding for `guardduty:ListFindings`.
8 *
9 * Lists finding ids for the detector, with optional finding criteria and sort order — the entry point for a findings-triage automation.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.ListFindingsHttp)`.
13 * ### Working with Findings
14 * **Example:** List Current Finding Ids
15 * ```typescript
16 * // init
17 * const listFindings = yield* AWS.GuardDuty.ListFindings(detector);
18 *
19 * // runtime
20 * const { FindingIds } = yield* listFindings();
21 * ```
22 *
23 * @binding
24 */
25export interface ListFindings extends Binding.Service<
26 ListFindings,
27 "AWS.GuardDuty.ListFindings",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.ListFindingsRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.ListFindingsResponse,
35 guardduty.ListFindingsError
36 >
37 >
38> {}
39export const ListFindings = Binding.Service<ListFindings>(
40 "AWS.GuardDuty.ListFindings",
41);