Skip to content

DescribeVirtualCluster

Source: src/AWS/EMRContainers/DescribeVirtualCluster.ts

Runtime binding for emr-containers:DescribeVirtualCluster.

Reads the bound VirtualCluster’s live state — its lifecycle state (RUNNING/TERMINATING/TERMINATED/ARRESTED), the backing EKS container provider, and the attached security configuration. The virtual cluster ID is injected from the binding — the runtime callable takes no arguments. Provide the implementation with Effect.provide(AWS.EMRContainers.DescribeVirtualClusterHttp).

// init — bind the operation to the virtual cluster
const describeVirtualCluster =
yield* AWS.EMRContainers.DescribeVirtualCluster(virtualCluster);
// runtime
const { virtualCluster } = yield* describeVirtualCluster();
yield* Effect.log(`virtual cluster is ${virtualCluster?.state}`);