CreateDBClusterSnapshot
Source:
src/AWS/DocDB/CreateDBClusterSnapshot.ts
Runtime binding for the CreateDBClusterSnapshot operation (IAM action
rds:CreateDBClusterSnapshot).
Takes an on-demand snapshot of the bound DBCluster — e.g. a backup
function that snapshots before a risky migration. The cluster identifier
is injected from the binding; the grant covers both the cluster ARN and
the account’s cluster-snapshot ARN space (both resources must be allowed
for snapshot creation). Provide the implementation with
Effect.provide(AWS.DocDB.CreateDBClusterSnapshotHttp).
Operating a Cluster
Section titled “Operating a Cluster”// init — bind the operation to the clusterconst createDBClusterSnapshot = yield* AWS.DocDB.CreateDBClusterSnapshot(cluster);
// runtimeconst { DBClusterSnapshot } = yield* createDBClusterSnapshot({ DBClusterSnapshotIdentifier: `pre-migration-${runId}`,});