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:ListInvestigations`.
8 *
9 * Lists the detector's investigations with optional sort criteria.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.ListInvestigationsHttp)`.
13 * ### Extended Threat Detection
14 * **Example:** List Investigations
15 * ```typescript
16 * // init
17 * const listInvestigations = yield* AWS.GuardDuty.ListInvestigations(detector);
18 *
19 * // runtime
20 * const { Investigations } = yield* listInvestigations();
21 * ```
22 *
23 * @binding
24 */
25export interface ListInvestigations extends Binding.Service<
26 ListInvestigations,
27 "AWS.GuardDuty.ListInvestigations",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.ListInvestigationsRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.ListInvestigationsResponse,
35 guardduty.ListInvestigationsError
36 >
37 >
38> {}
39export const ListInvestigations = Binding.Service<ListInvestigations>(
40 "AWS.GuardDuty.ListInvestigations",
41);