deleteDBInstance method
Deletes a previously provisioned instance.
May throw DBInstanceNotFoundFault.
May throw DBSnapshotAlreadyExistsFault.
May throw InvalidDBClusterStateFault.
May throw InvalidDBInstanceStateFault.
May throw SnapshotQuotaExceededFault.
Parameter dBInstanceIdentifier :
The instance identifier for the instance to be deleted. This parameter
isn't case sensitive.
Constraints:
- Must match the name of an existing instance.
Implementation
Future<DeleteDBInstanceResult> deleteDBInstance({
required String dBInstanceIdentifier,
}) async {
final $request = <String, String>{
'DBInstanceIdentifier': dBInstanceIdentifier,
};
final $result = await _protocol.send(
$request,
action: 'DeleteDBInstance',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'DeleteDBInstanceResult',
);
return DeleteDBInstanceResult.fromXml($result);
}