import type * as detective from "@distilled.cloud/aws/detective"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Graph } from "./Graph.ts"; /** * Runtime binding for `detective:ListInvestigations`. * * Enumerates the behavior graph's investigations with optional filter and * sort criteria — list everything triaged in the last week, or every * investigation still `ACTIVE`. The graph ARN is injected from the bound * {@link Graph}. * Provide the implementation with * `Effect.provide(AWS.Detective.ListInvestigationsHttp)`. * ### Running Investigations * **Example:** List Active Investigations * ```typescript * // init * const listInvestigations = yield* AWS.Detective.ListInvestigations(graph); * * // runtime * const { InvestigationDetails } = yield* listInvestigations(); * ``` * * @binding */ export interface ListInvestigations extends Binding.Service< ListInvestigations, "AWS.Detective.ListInvestigations", ( graph: Graph, ) => Effect.Effect< ( request?: Omit, ) => Effect.Effect< detective.ListInvestigationsResponse, detective.ListInvestigationsError > > > {} export const ListInvestigations = Binding.Service( "AWS.Detective.ListInvestigations", );