describeOptionGroups method
May throw OptionGroupNotFoundFault.
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);
}