AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
The CreateCacheSecurityGroup action creates a new cache security group. Use a cache security group to control access to one or more cache clusters.

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

Namespace: Amazon.ElastiCache
Assembly: AWSSDK.dll
Version: (assembly version)


public virtual CreateCacheSecurityGroupResponse CreateCacheSecurityGroup(
         CreateCacheSecurityGroupRequest request


Type: Amazon.ElastiCache.Model.CreateCacheSecurityGroupRequest

Container for the necessary parameters to execute the CreateCacheSecurityGroup service method.

Return Value
Type: Amazon.ElastiCache.Model.CreateCacheSecurityGroupResponse
The response from the CreateCacheSecurityGroup service method, as returned by ElastiCache.


CacheSecurityGroupAlreadyExistsException A cache security group with the specified name already exists.
CacheSecurityGroupQuotaExceededException The request cannot be processed because it would exceed the allowed number of cache security groups.
InvalidParameterCombinationException Two or more incompatible parameters were specified.
InvalidParameterValueException The value for a parameter is invalid.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5