Skip to content

GetKxScalingGroup

Source: src/AWS/FinSpace/GetKxScalingGroup.ts

Runtime binding for finspace:GetKxScalingGroup — reads a scaling group’s status, host type, and the clusters placed on it in the bound environment. Provide the implementation with Effect.provide(AWS.FinSpace.GetKxScalingGroupHttp).

const getScalingGroup = yield* AWS.FinSpace.GetKxScalingGroup(kdb);
const group = yield* getScalingGroup({ scalingGroupName: "shared-hosts" });
if (group.status === "ACTIVE") {
yield* Effect.log(`clusters: ${group.clusters?.join(", ")}`);
}