Skip to content

CreateDBClusterSnapshot

Source: src/AWS/RDS/CreateDBClusterSnapshot.ts

Runtime binding for the CreateDBClusterSnapshot operation (IAM actions rds:CreateDBClusterSnapshot + rds:AddTagsToResource).

Takes a manual snapshot of the bound DBCluster — e.g. a pre-migration backup function or a scheduled snapshot-rotation job. The cluster identifier is injected from the binding. Provide the implementation with Effect.provide(AWS.RDS.CreateDBClusterSnapshotHttp).

// init — bind the operation to the cluster
const createDBClusterSnapshot =
yield* AWS.RDS.CreateDBClusterSnapshot(cluster);
// runtime
yield* createDBClusterSnapshot({
DBClusterSnapshotIdentifier: `pre-migration-${runId}`,
});