Skip to content

StopCluster

Source: src/AWS/DocDBElastic/StopCluster.ts

Runtime binding for the StopCluster operation (IAM action docdb-elastic:StopCluster), scoped to one Cluster.

Stops the bound elastic cluster — compute billing pauses (storage is still billed) and the cluster transitions through STOPPING to STOPPED. Use from a scheduled Lambda to park non-production clusters outside working hours. Provide the implementation with Effect.provide(AWS.DocDBElastic.StopClusterHttp).

const stopCluster = yield* DocDBElastic.StopCluster(cluster);
const result = yield* stopCluster();
// result.cluster.status → "STOPPING"