copyDbSnapshot
Copies the specified DB snapshot. The source DB snapshot must be in the available
state.
You can copy a snapshot from one Amazon Web Services Region to another. In that case, the Amazon Web Services Region where you call the CopyDBSnapshot
operation is the destination Amazon Web Services Region for the DB snapshot copy.
This command doesn't apply to RDS Custom.
For more information about copying snapshots, see Copying a DB Snapshot in the Amazon RDS User Guide.
Samples
fun main() {
//sampleStart
// The following example creates a copy of a DB snapshot.
val resp = rdsClient.copyDbSnapshot {
sourceDbSnapshotIdentifier = "rds:database-mysql-2019-06-06-08-38"
targetDbSnapshotIdentifier = "mydbsnapshotcopy"
}
//sampleEnd
}