rebootDBInstance method
May throw InvalidDBInstanceStateFault. May throw DBInstanceNotFoundFault.
Implementation
Future<RebootDBInstanceResult> rebootDBInstance({
required String dBInstanceIdentifier,
bool? forceFailover,
}) async {
ArgumentError.checkNotNull(dBInstanceIdentifier, 'dBInstanceIdentifier');
final $request = <String, dynamic>{};
$request['DBInstanceIdentifier'] = dBInstanceIdentifier;
forceFailover?.also((arg) => $request['ForceFailover'] = arg);
final $result = await _protocol.send(
$request,
action: 'RebootDBInstance',
version: '2013-01-10',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['RebootDBInstanceMessage'],
shapes: shapes,
resultWrapper: 'RebootDBInstanceResult',
);
return RebootDBInstanceResult.fromXml($result);
}