| 1 | import type * as SVC from "@distilled.cloud/aws/finspace"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 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< |
| 29 | SVC.DeleteKxClusterNodeResponse, |
| 30 | SVC.DeleteKxClusterNodeError |
| 31 | > |
| 32 | > |
| 33 | > {} |
| 34 | export const DeleteKxClusterNode = Binding.Service<DeleteKxClusterNode>( |
| 35 | "AWS.FinSpace.DeleteKxClusterNode", |
| 36 | ); |