import type * as guardduty from "@distilled.cloud/aws/guardduty"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Detector } from "./Detector.ts"; /** * Runtime binding for `guardduty:ListInvestigations`. * * Lists the detector's investigations with optional sort criteria. * The detector id is injected from the bound {@link Detector}. * Provide the implementation with * `Effect.provide(AWS.GuardDuty.ListInvestigationsHttp)`. * ### Extended Threat Detection * **Example:** List Investigations * ```typescript * // init * const listInvestigations = yield* AWS.GuardDuty.ListInvestigations(detector); * * // runtime * const { Investigations } = yield* listInvestigations(); * ``` * * @binding */ export interface ListInvestigations extends Binding.Service< ListInvestigations, "AWS.GuardDuty.ListInvestigations", ( detector: Detector, ) => Effect.Effect< ( request?: Omit, ) => Effect.Effect< guardduty.ListInvestigationsResponse, guardduty.ListInvestigationsError > > > {} export const ListInvestigations = Binding.Service( "AWS.GuardDuty.ListInvestigations", );