deleteDBInstance method
May throw DBInstanceNotFoundFault. May throw InvalidDBInstanceStateFault. May throw DBSnapshotAlreadyExistsFault. May throw SnapshotQuotaExceededFault.
Implementation
Future<DeleteDBInstanceResult> deleteDBInstance({
required String dBInstanceIdentifier,
String? finalDBSnapshotIdentifier,
bool? skipFinalSnapshot,
}) async {
ArgumentError.checkNotNull(dBInstanceIdentifier, 'dBInstanceIdentifier');
final $request = <String, dynamic>{};
$request['DBInstanceIdentifier'] = dBInstanceIdentifier;
finalDBSnapshotIdentifier
?.also((arg) => $request['FinalDBSnapshotIdentifier'] = arg);
skipFinalSnapshot?.also((arg) => $request['SkipFinalSnapshot'] = arg);
final $result = await _protocol.send(
$request,
action: 'DeleteDBInstance',
version: '2013-01-10',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteDBInstanceMessage'],
shapes: shapes,
resultWrapper: 'DeleteDBInstanceResult',
);
return DeleteDBInstanceResult.fromXml($result);
}