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.
Returns a list of cache security group descriptions. If a cache security group name is specified, the list contains only the description of that group. This applicable only when you have ElastiCache in Classic setup
For .NET Core this operation is only available in asynchronous form. Please refer to DescribeCacheSecurityGroupsAsync.
Namespace: Amazon.ElastiCache
Assembly: AWSSDK.ElastiCache.dll
Version: 3.x.y.z
public abstract DescribeCacheSecurityGroupsResponse DescribeCacheSecurityGroups( DescribeCacheSecurityGroupsRequest request )
Container for the necessary parameters to execute the DescribeCacheSecurityGroups service method.
Exception | Condition |
---|---|
CacheSecurityGroupNotFoundException | The requested cache security group name does not refer to an existing cache security group. |
InvalidParameterCombinationException | Two or more incompatible parameters were specified. |
InvalidParameterValueException | The value for a parameter is invalid. |
Returns a list of cache security group descriptions. If a cache security group name is specified, the list contains only the description of that group.
var client = new AmazonElastiCacheClient(); var response = client.DescribeCacheSecurityGroups(new DescribeCacheSecurityGroupsRequest { CacheSecurityGroupName = "my-sec-group" });
.NET Framework:
Supported in: 4.5, 4.0, 3.5