describeCacheSecurityGroups method
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
May throw CacheSecurityGroupNotFoundFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.
Parameter cacheSecurityGroupName
:
The name of the cache security 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<CacheSecurityGroupMessage> describeCacheSecurityGroups({
String? cacheSecurityGroupName,
String? marker,
int? maxRecords,
}) async {
final $request = <String, dynamic>{};
cacheSecurityGroupName
?.also((arg) => $request['CacheSecurityGroupName'] = arg);
marker?.also((arg) => $request['Marker'] = arg);
maxRecords?.also((arg) => $request['MaxRecords'] = arg);
final $result = await _protocol.send(
$request,
action: 'DescribeCacheSecurityGroups',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DescribeCacheSecurityGroupsMessage'],
shapes: shapes,
resultWrapper: 'DescribeCacheSecurityGroupsResult',
);
return CacheSecurityGroupMessage.fromXml($result);
}