deleteDBInstance method

Future<DeleteDBInstanceResult> deleteDBInstance({
  1. required String dBInstanceIdentifier,
})

Deletes a previously provisioned instance.

May throw DBInstanceNotFoundFault. May throw InvalidDBInstanceStateFault. May throw DBSnapshotAlreadyExistsFault. May throw SnapshotQuotaExceededFault. May throw InvalidDBClusterStateFault.

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 {
  ArgumentError.checkNotNull(dBInstanceIdentifier, 'dBInstanceIdentifier');
  final $request = <String, dynamic>{};
  $request['DBInstanceIdentifier'] = dBInstanceIdentifier;
  final $result = await _protocol.send(
    $request,
    action: 'DeleteDBInstance',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteDBInstanceMessage'],
    shapes: shapes,
    resultWrapper: 'DeleteDBInstanceResult',
  );
  return DeleteDBInstanceResult.fromXml($result);
}