describeOptionGroups method

Future<OptionGroups> describeOptionGroups({
  1. String? engineName,
  2. String? majorEngineVersion,
  3. String? marker,
  4. int? maxRecords,
  5. String? optionGroupName,
})

Implementation

Future<OptionGroups> describeOptionGroups({
  String? engineName,
  String? majorEngineVersion,
  String? marker,
  int? maxRecords,
  String? optionGroupName,
}) async {
  final $request = <String, dynamic>{};
  engineName?.also((arg) => $request['EngineName'] = arg);
  majorEngineVersion?.also((arg) => $request['MajorEngineVersion'] = arg);
  marker?.also((arg) => $request['Marker'] = arg);
  maxRecords?.also((arg) => $request['MaxRecords'] = arg);
  optionGroupName?.also((arg) => $request['OptionGroupName'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'DescribeOptionGroups',
    version: '2013-02-12',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeOptionGroupsMessage'],
    shapes: shapes,
    resultWrapper: 'DescribeOptionGroupsResult',
  );
  return OptionGroups.fromXml($result);
}