deleteOptionGroup method
Deletes an existing option group.
May throw OptionGroupNotFoundFault. May throw InvalidOptionGroupStateFault.
Parameter optionGroupName
:
The name of the option group to be deleted.
Implementation
Future<void> deleteOptionGroup({
required String optionGroupName,
}) async {
ArgumentError.checkNotNull(optionGroupName, 'optionGroupName');
final $request = <String, dynamic>{};
$request['OptionGroupName'] = optionGroupName;
await _protocol.send(
$request,
action: 'DeleteOptionGroup',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteOptionGroupMessage'],
shapes: shapes,
);
}