Skip to content

CopyDBSnapshot

Source: src/AWS/RDS/CopyDBSnapshot.ts

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

Copies a DB instance 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.CopyDBSnapshotHttp).

const copyDBSnapshot = yield* AWS.RDS.CopyDBSnapshot();
yield* copyDBSnapshot({
SourceDBSnapshotIdentifier: snapshotId,
TargetDBSnapshotIdentifier: `archive-${snapshotId}`,
});