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:DeleteKxScalingGroup` — deletes a scaling group from the bound environment. The group must have no clusters placed on it.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.DeleteKxScalingGroupHttp)`.
10 * ### Managing Scaling Groups
11 * **Example:** Delete a Scaling Group
12 * ```typescript
13 * const deleteScalingGroup = yield* AWS.FinSpace.DeleteKxScalingGroup(kdb);
14 *
15 * yield* deleteScalingGroup({
16 * scalingGroupName: "shared-hosts",
17 * clientToken: crypto.randomUUID(),
18 * });
19 * ```
20 *
21 * @binding
22 */
23export interface DeleteKxScalingGroup extends Binding.Service<
24 DeleteKxScalingGroup,
25 "AWS.FinSpace.DeleteKxScalingGroup",
26 <K extends KxEnvironment>(
27 environment: K,
28 ) => Effect.Effect<
29 (
30 request: Omit<SVC.DeleteKxScalingGroupRequest, "environmentId">,
31 ) => Effect.Effect<
32 SVC.DeleteKxScalingGroupResponse,
33 SVC.DeleteKxScalingGroupError
34 >
35 >
36> {}
37export const DeleteKxScalingGroup = Binding.Service<DeleteKxScalingGroup>(
38 "AWS.FinSpace.DeleteKxScalingGroup",
39);