createCacheSubnetGroup

Creates a new cache subnet group.

Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (Amazon VPC).

Samples


fun main() { 
   //sampleStart 
   // Creates a new cache subnet group.
val resp = elastiCacheClient.createCacheSubnetGroup {
    cacheSubnetGroupName = "my-sn-grp2"
    cacheSubnetGroupDescription = "Sample subnet group"
    subnetIds = listOf<String>(
        "subnet-6f28c982",
        "subnet-bcd382f3",
        "subnet-845b3e7c0"
    )
} 
   //sampleEnd
}