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:GetInvestigation`.
8 *
9 * Reads an investigation's status, risk details, and results by investigation id.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.GetInvestigationHttp)`.
13 * ### Extended Threat Detection
14 * **Example:** Read an Investigation
15 * ```typescript
16 * // init
17 * const getInvestigation = yield* AWS.GuardDuty.GetInvestigation(detector);
18 *
19 * // runtime
20 * const { Investigation } = yield* getInvestigation({
21 * InvestigationId: investigationId,
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface GetInvestigation extends Binding.Service<
28 GetInvestigation,
29 "AWS.GuardDuty.GetInvestigation",
30 (
31 detector: Detector,
32 ) => Effect.Effect<
33 (
34 request: Omit<guardduty.GetInvestigationRequest, "DetectorId">,
35 ) => Effect.Effect<
36 guardduty.GetInvestigationResponse,
37 guardduty.GetInvestigationError
38 >
39 >
40> {}
41export const GetInvestigation = Binding.Service<GetInvestigation>(
42 "AWS.GuardDuty.GetInvestigation",
43);