createDbSnapshot

Creates a snapshot of a DB instance. The source DB instance must be in the available or storage-optimization state.

Samples


fun main() { 
   //sampleStart 
   // The following example creates a DB snapshot.
val resp = rdsClient.createDbSnapshot {
    dbSnapshotIdentifier = "database-mysql"
    dbInstanceIdentifier = "mydbsnapshot"
} 
   //sampleEnd
}