Create Cache Security Group
| elasticache_create_cache_security_group | R Documentation | 
Creates a new cache security group¶
Description¶
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 create_cache_subnet_group.
Usage¶
elasticache_create_cache_security_group(CacheSecurityGroupName,
  Description, Tags)
Arguments¶
| CacheSecurityGroupName | [required] A name for the cache security group. This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default". Example:  | 
| Description | [required] A description for the cache security group. | 
| Tags | A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted. | 
Value¶
A list with the following syntax:
list(
  CacheSecurityGroup = list(
    OwnerId = "string",
    CacheSecurityGroupName = "string",
    Description = "string",
    EC2SecurityGroups = list(
      list(
        Status = "string",
        EC2SecurityGroupName = "string",
        EC2SecurityGroupOwnerId = "string"
      )
    ),
    ARN = "string"
  )
)
Request syntax¶
svc$create_cache_security_group(
  CacheSecurityGroupName = "string",
  Description = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)
Examples¶
## Not run: 
# Creates an ElastiCache security group. ElastiCache security groups are
# only for clusters not running in an AWS VPC.
svc$create_cache_security_group(
  CacheSecurityGroupName = "my-cache-sec-grp",
  Description = "Example ElastiCache security group."
)
## End(Not run)