createDbSnapshot
inline suspend fun RdsClient.createDbSnapshot(crossinline block: CreateDbSnapshotRequest.Builder.() -> Unit): CreateDbSnapshotResponse
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
}