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 subnet group descriptions. If a subnet group name is specified, the list contains only the description of that group. This is applicable only when you have ElastiCache in VPC setup. All ElastiCache clusters now launch in VPC by default.
For .NET Core this operation is only available in asynchronous form. Please refer to DescribeCacheSubnetGroupsAsync.
Namespace: Amazon.ElastiCache
Assembly: AWSSDK.ElastiCache.dll
Version: 3.x.y.z
public virtual DescribeCacheSubnetGroupsResponse DescribeCacheSubnetGroups( DescribeCacheSubnetGroupsRequest request )
Container for the necessary parameters to execute the DescribeCacheSubnetGroups service method.
Exception | Condition |
---|---|
CacheSubnetGroupNotFoundException | The requested cache subnet group name does not refer to an existing cache subnet group. |
Describes up to 25 cache subnet groups.
var client = new AmazonElastiCacheClient(); var response = client.DescribeCacheSubnetGroups(new DescribeCacheSubnetGroupsRequest { MaxRecords = 25 }); List<CacheSubnetGroup> cacheSubnetGroups = response.CacheSubnetGroups; string marker = response.Marker;
.NET Framework:
Supported in: 4.5, 4.0, 3.5