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:UnarchiveFindings`.
8 *
9 * Restores archived findings back into the detector's active queue.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.UnarchiveFindingsHttp)`.
13 * ### Working with Findings
14 * **Example:** Unarchive Findings
15 * ```typescript
16 * // init
17 * const unarchiveFindings = yield* AWS.GuardDuty.UnarchiveFindings(detector);
18 *
19 * // runtime
20 * yield* unarchiveFindings({ FindingIds: findingIds });
21 * ```
22 *
23 * @binding
24 */
25export interface UnarchiveFindings extends Binding.Service<
26 UnarchiveFindings,
27 "AWS.GuardDuty.UnarchiveFindings",
28 (
29 detector: Detector,
30 ) => Effect.Effect<
31 (
32 request?: Omit<guardduty.UnarchiveFindingsRequest, "DetectorId">,
33 ) => Effect.Effect<
34 guardduty.UnarchiveFindingsResponse,
35 guardduty.UnarchiveFindingsError
36 >
37 >
38> {}
39export const UnarchiveFindings = Binding.Service<UnarchiveFindings>(
40 "AWS.GuardDuty.UnarchiveFindings",
41);