authorizeCacheSecurityGroupIngress

Allows network ingress to a cache security group. Applications using ElastiCache must be running on Amazon EC2, and Amazon EC2 security groups are used as the authorization mechanism.

You cannot authorize ingress from an Amazon EC2 security group in one region to an ElastiCache cluster in another region.

Samples


fun main() { 
   //sampleStart 
   // Allows network ingress to a cache security group. Applications using ElastiCache must be running on
// Amazon EC2. Amazon EC2 security groups are used as the authorization mechanism.
elastiCacheClient.authorizeCacheSecurityGroupIngress {
    cacheSecurityGroupName = "my-sec-grp"
    ec2SecurityGroupName = "my-ec2-sec-grp"
    ec2SecurityGroupOwnerId = "1234567890"
} 
   //sampleEnd
}