Skip to content

CopyClusterSnapshot

Source: src/AWS/Redshift/CopyClusterSnapshot.ts

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

Copies an automated cluster snapshot to a manual one so it survives the automated retention window — e.g. an archival job that preserves the nightly snapshot before a risky migration. Provide the implementation with Effect.provide(AWS.Redshift.CopyClusterSnapshotHttp).

const copyClusterSnapshot = yield* AWS.Redshift.CopyClusterSnapshot();
yield* copyClusterSnapshot({
SourceSnapshotIdentifier: nightly.SnapshotIdentifier!,
TargetSnapshotIdentifier: `archive-${runId}`,
});