describeCacheParameterGroups method

Future<CacheParameterGroupsMessage> describeCacheParameterGroups({
  1. String? cacheParameterGroupName,
  2. String? marker,
  3. int? maxRecords,
})

Returns a list of cache parameter group descriptions. If a cache parameter group name is specified, the list contains only the descriptions for that group.

May throw CacheParameterGroupNotFoundFault. May throw InvalidParameterValueException. May throw InvalidParameterCombinationException.

Parameter cacheParameterGroupName : The name of a specific cache parameter 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<CacheParameterGroupsMessage> describeCacheParameterGroups({
  String? cacheParameterGroupName,
  String? marker,
  int? maxRecords,
}) async {
  final $request = <String, dynamic>{};
  cacheParameterGroupName
      ?.also((arg) => $request['CacheParameterGroupName'] = arg);
  marker?.also((arg) => $request['Marker'] = arg);
  maxRecords?.also((arg) => $request['MaxRecords'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeCacheParameterGroups',
    version: '2015-02-02',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeCacheParameterGroupsMessage'],
    shapes: shapes,
    resultWrapper: 'DescribeCacheParameterGroupsResult',
  );
  return CacheParameterGroupsMessage.fromXml($result);
}