Skip to content

CopyDBClusterSnapshot

Source: src/AWS/RDS/CopyDBClusterSnapshot.ts

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

Copies an Aurora cluster snapshot (e.g. to archive it under a new identifier or re-encrypt with a different KMS key). Provide the implementation with Effect.provide(AWS.RDS.CopyDBClusterSnapshotHttp).

const copyDBClusterSnapshot = yield* AWS.RDS.CopyDBClusterSnapshot();
yield* copyDBClusterSnapshot({
SourceDBClusterSnapshotIdentifier: snapshotId,
TargetDBClusterSnapshotIdentifier: `archive-${snapshotId}`,
});