Skip to content

DescribeClusters

Source: src/AWS/Redshift/DescribeClusters.ts

Runtime binding for the DescribeClusters operation (IAM action redshift:DescribeClusters).

Lists the account’s provisioned Redshift clusters or looks one up by identifier — e.g. an ops function that checks whether the warehouse is available before submitting a load. Provide the implementation with Effect.provide(AWS.Redshift.DescribeClustersHttp).

const describeClusters = yield* AWS.Redshift.DescribeClusters();
const page = yield* describeClusters({ ClusterIdentifier: clusterId });
const status = page.Clusters?.[0]?.ClusterStatus;