deleteDBSnapshot method

Future<DeleteDBSnapshotResult> deleteDBSnapshot({
  1. required String dBSnapshotIdentifier,
})

Deletes a DB snapshot. If the snapshot is being copied, the copy operation is terminated.

May throw DBSnapshotNotFoundFault. May throw InvalidDBSnapshotStateFault.

Parameter dBSnapshotIdentifier : The DB snapshot identifier.

Constraints: Must be the name of an existing DB snapshot in the available state.

Implementation

Future<DeleteDBSnapshotResult> deleteDBSnapshot({
  required String dBSnapshotIdentifier,
}) async {
  final $request = <String, String>{
    'DBSnapshotIdentifier': dBSnapshotIdentifier,
  };
  final $result = await _protocol.send(
    $request,
    action: 'DeleteDBSnapshot',
    version: '2014-10-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'DeleteDBSnapshotResult',
  );
  return DeleteDBSnapshotResult.fromXml($result);
}