Skip to content

GetKxVolume

Source: src/AWS/FinSpace/GetKxVolume.ts

Runtime binding for finspace:GetKxVolume — reads a volume’s status, NAS configuration, and the clusters attached to it in the bound environment. Provide the implementation with Effect.provide(AWS.FinSpace.GetKxVolumeHttp).

const getVolume = yield* AWS.FinSpace.GetKxVolume(kdb);
const volume = yield* getVolume({ volumeName: "tp-logs" });
if (volume.status === "ACTIVE") {
yield* Effect.log(`attached: ${volume.attachedClusters?.length ?? 0}`);
}