The best way to control Claude Code, Codex and more from any computer or phone

main
ts 34 lines 1.11 KB
Raw
1 import type * as SVC from "@distilled.cloud/aws/finspace";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import 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 */
23 export 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 > {}
34 export const DeleteKxVolume = Binding.Service<DeleteKxVolume>("AWS.FinSpace.DeleteKxVolume");