createOptionGroup method
May throw OptionGroupAlreadyExistsFault. May throw OptionGroupQuotaExceededFault.
Implementation
Future<CreateOptionGroupResult> createOptionGroup({
required String engineName,
required String majorEngineVersion,
required String optionGroupDescription,
required String optionGroupName,
}) async {
ArgumentError.checkNotNull(engineName, 'engineName');
ArgumentError.checkNotNull(majorEngineVersion, 'majorEngineVersion');
ArgumentError.checkNotNull(
optionGroupDescription, 'optionGroupDescription');
ArgumentError.checkNotNull(optionGroupName, 'optionGroupName');
final $request = <String, dynamic>{};
$request['EngineName'] = engineName;
$request['MajorEngineVersion'] = majorEngineVersion;
$request['OptionGroupDescription'] = optionGroupDescription;
$request['OptionGroupName'] = optionGroupName;
final $result = await _protocol.send(
$request,
action: 'CreateOptionGroup',
version: '2013-01-10',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['CreateOptionGroupMessage'],
shapes: shapes,
resultWrapper: 'CreateOptionGroupResult',
);
return CreateOptionGroupResult.fromXml($result);
}