createCacheSecurityGroup

Creates a new cache security group. Use a cache security group to control access to one or more clusters.

Cache security groups are only used when you are creating a cluster outside of an Amazon Virtual Private Cloud (Amazon VPC). If you are creating a cluster inside of a VPC, use a cache subnet group instead. For more information, see CreateCacheSubnetGroup.

Samples


fun main() { 
   //sampleStart 
   // Creates an ElastiCache security group. ElastiCache security groups are only for clusters not running
// in an AWS VPC.
elastiCacheClient.createCacheSecurityGroup {
    cacheSecurityGroupName = "my-cache-sec-grp"
    description = "Example ElastiCache security group."
} 
   //sampleEnd
}