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:CreateInvestigation`.
8 *
9 * Starts a GuardDuty Extended Threat Detection investigation from a natural-language trigger prompt.
10 * The detector id is injected from the bound {@link Detector}.
11 * Provide the implementation with
12 * `Effect.provide(AWS.GuardDuty.CreateInvestigationHttp)`.
13 * ### Extended Threat Detection
14 * **Example:** Start an Investigation
15 * ```typescript
16 * // init
17 * const createInvestigation = yield* AWS.GuardDuty.CreateInvestigation(detector);
18 *
19 * // runtime
20 * const { InvestigationId } = yield* createInvestigation({
21 * TriggerPrompt: "Investigate the port probe findings on my web tier",
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface CreateInvestigation extends Binding.Service<
28 CreateInvestigation,
29 "AWS.GuardDuty.CreateInvestigation",
30 (
31 detector: Detector,
32 ) => Effect.Effect<
33 (
34 request?: Omit<guardduty.CreateInvestigationRequest, "DetectorId">,
35 ) => Effect.Effect<
36 guardduty.CreateInvestigationResponse,
37 guardduty.CreateInvestigationError
38 >
39 >
40> {}
41export const CreateInvestigation = Binding.Service<CreateInvestigation>(
42 "AWS.GuardDuty.CreateInvestigation",
43);