Skip to content

CreateClusterSnapshot

Source: src/AWS/Redshift/CreateClusterSnapshot.ts

Runtime binding for the CreateClusterSnapshot operation (IAM action redshift:CreateClusterSnapshot on the cluster and its snapshot:{cluster}/* ARNs).

Takes a manual snapshot of the bound Cluster — 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.Redshift.CreateClusterSnapshotHttp).

// init — bind the operation to the cluster
const createClusterSnapshot =
yield* AWS.Redshift.CreateClusterSnapshot(cluster);
// runtime
yield* createClusterSnapshot({
SnapshotIdentifier: `pre-migration-${runId}`,
});