@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 33 lines 1.16 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:DeleteKxClusterNode` — deletes one node of a kdb cluster in the bound environment — the scale-in primitive for node-level cluster automation.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.DeleteKxClusterNodeHttp)`.
10 * ### Monitoring Clusters
11 * **Example:** Scale In a Node
12 * ```typescript
13 * const deleteNode = yield* AWS.FinSpace.DeleteKxClusterNode(kdb);
14 *
15 * yield* deleteNode({ clusterName: "hdb", nodeId });
16 * ```
17 *
18 * @binding
19 */
20 export interface DeleteKxClusterNode extends Binding.Service<
21 DeleteKxClusterNode,
22 "AWS.FinSpace.DeleteKxClusterNode",
23 <K extends KxEnvironment>(
24 environment: K,
25 ) => Effect.Effect<
26 (
27 request: Omit<SVC.DeleteKxClusterNodeRequest, "environmentId">,
28 ) => Effect.Effect<SVC.DeleteKxClusterNodeResponse, SVC.DeleteKxClusterNodeError>
29 >
30 > {}
31 export const DeleteKxClusterNode = Binding.Service<DeleteKxClusterNode>(
32 "AWS.FinSpace.DeleteKxClusterNode",
33 );