1import type * as devopsguru from "@distilled.cloud/aws/devops-guru";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `devops-guru:DeleteInsight`.
7 *
8 * Deletes a closed insight — housekeeping automation for insights that have been triaged and resolved. Only closed insights can be deleted.
9 * Provide the implementation with
10 * `Effect.provide(AWS.DevOpsGuru.DeleteInsightHttp)`.
11 * ### Inspecting Insights
12 * **Example:** Delete a Closed Insight
13 * ```typescript
14 * // init — account-level binding, no resource argument
15 * const deleteInsight = yield* AWS.DevOpsGuru.DeleteInsight();
16 *
17 * // runtime
18 * yield* deleteInsight({ Id: insightId });
19 * ```
20 *
21 * @binding
22 */
23export interface DeleteInsight extends Binding.Service<
24 DeleteInsight,
25 "AWS.DevOpsGuru.DeleteInsight",
26 () => Effect.Effect<
27 (
28 request: devopsguru.DeleteInsightRequest,
29 ) => Effect.Effect<
30 devopsguru.DeleteInsightResponse,
31 devopsguru.DeleteInsightError
32 >
33 >
34> {}
35export const DeleteInsight = Binding.Service<DeleteInsight>(
36 "AWS.DevOpsGuru.DeleteInsight",
37);