createSnapshot
inline suspend fun ElastiCacheClient.createSnapshot(crossinline block: CreateSnapshotRequest.Builder.() -> Unit): CreateSnapshotResponse
Creates a copy of an entire cluster or replication group at a specific moment in time.
This operation is valid for Redis only.
Samples
fun main() {
//sampleStart
// Creates a snapshot of a non clustered Redis cluster that has only one node.
val resp = elastiCacheClient.createSnapshot {
cacheClusterId = "onenoderedis"
snapshotName = "snapshot-1"
}
//sampleEnd
}