Amazon.ElastiCache.AmazonElastiCacheClient.CreateCacheSecurityGroup C# (CSharp) Method

CreateCacheSecurityGroup() public method

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 (Amazon VPC). If you are creating a cache cluster inside of a VPC, use a cache subnet group instead. For more information, see CreateCacheSubnetGroup.

/// A cache security group with the specified name already exists. /// /// The request cannot be processed because it would exceed the allowed number of cache /// security groups. /// /// Two or more incompatible parameters were specified. /// /// The value for a parameter is invalid. ///
public CreateCacheSecurityGroup ( CreateCacheSecurityGroupRequest request ) : CreateCacheSecurityGroupResponse
request CreateCacheSecurityGroupRequest Container for the necessary parameters to execute the CreateCacheSecurityGroup service method.
return CreateCacheSecurityGroupResponse
        public CreateCacheSecurityGroupResponse CreateCacheSecurityGroup(CreateCacheSecurityGroupRequest request)
        {
            var marshaller = new CreateCacheSecurityGroupRequestMarshaller();
            var unmarshaller = CreateCacheSecurityGroupResponseUnmarshaller.Instance;

            return Invoke<CreateCacheSecurityGroupRequest,CreateCacheSecurityGroupResponse>(request, marshaller, unmarshaller);
        }
AmazonElastiCacheClient