describeCacheSubnetGroups method
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.
May throw CacheSubnetGroupNotFoundFault.
Parameter cacheSubnetGroupName
:
The name of the cache subnet group to return details for.
Parameter marker
:
An optional marker returned from a prior request. Use this marker for
pagination of results from this operation. If this parameter is specified,
the response includes only records beyond the marker, up to the value
specified by MaxRecords
.
Parameter maxRecords
:
The maximum number of records to include in the response. If more records
exist than the specified MaxRecords
value, a marker is
included in the response so that the remaining results can be retrieved.
Default: 100
Constraints: minimum 20; maximum 100.
Implementation
Future<CacheSubnetGroupMessage> describeCacheSubnetGroups({
String? cacheSubnetGroupName,
String? marker,
int? maxRecords,
}) async {
final $request = <String, dynamic>{};
cacheSubnetGroupName?.also((arg) => $request['CacheSubnetGroupName'] = arg);
marker?.also((arg) => $request['Marker'] = arg);
maxRecords?.also((arg) => $request['MaxRecords'] = arg);
final $result = await _protocol.send(
$request,
action: 'DescribeCacheSubnetGroups',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeCacheSubnetGroupsMessage'],
shapes: shapes,
resultWrapper: 'DescribeCacheSubnetGroupsResult',
);
return CacheSubnetGroupMessage.fromXml($result);
}