1import type * as SVC from "@distilled.cloud/aws/finspace";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { KxEnvironment } from "./KxEnvironment.ts";
5
6/**
7 * Runtime binding for `finspace:DeleteKxVolume` — deletes a volume from the bound environment. The volume must not be attached to any cluster.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.DeleteKxVolumeHttp)`.
10 * ### Managing Volumes
11 * **Example:** Delete a Volume
12 * ```typescript
13 * const deleteVolume = yield* AWS.FinSpace.DeleteKxVolume(kdb);
14 *
15 * yield* deleteVolume({
16 * volumeName: "tp-logs",
17 * clientToken: crypto.randomUUID(),
18 * });
19 * ```
20 *
21 * @binding
22 */
23export interface DeleteKxVolume extends Binding.Service<
24 DeleteKxVolume,
25 "AWS.FinSpace.DeleteKxVolume",
26 <K extends KxEnvironment>(
27 environment: K,
28 ) => Effect.Effect<
29 (
30 request: Omit<SVC.DeleteKxVolumeRequest, "environmentId">,
31 ) => Effect.Effect<SVC.DeleteKxVolumeResponse, SVC.DeleteKxVolumeError>
32 >
33> {}
34export const DeleteKxVolume = Binding.Service<DeleteKxVolume>(
35 "AWS.FinSpace.DeleteKxVolume",
36);