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:GetFindings`.
8 *
9 * Hydrates full finding details for a batch of finding ids returned by `ListFindings`.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.GetFindingsHttp)`.
13 * ### Working with Findings
14 * **Example:** Hydrate Finding Details
15 * ```typescript
16 * // init
17 * const getFindings = yield* AWS.GuardDuty.GetFindings(detector);
18 *
19 * // runtime
20 * const { Findings } = yield* getFindings({ FindingIds: findingIds });
21 * ```
22 *
23 * @binding
24 */
25export interface GetFindings extends Binding.Service<
26 GetFindings,
27 "AWS.GuardDuty.GetFindings",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.GetFindingsRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.GetFindingsResponse,
35 guardduty.GetFindingsError
36 >
37 >
38> {}
39export const GetFindings = Binding.Service<GetFindings>(
40 "AWS.GuardDuty.GetFindings",
41);