deleteDBSnapshot method
Deletes a DB snapshot. If the snapshot is being copied, the copy operation is terminated.
May throw InvalidDBSnapshotStateFault. May throw DBSnapshotNotFoundFault.
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 {
ArgumentError.checkNotNull(dBSnapshotIdentifier, 'dBSnapshotIdentifier');
final $request = <String, dynamic>{};
$request['DBSnapshotIdentifier'] = dBSnapshotIdentifier;
final $result = await _protocol.send(
$request,
action: 'DeleteDBSnapshot',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteDBSnapshotMessage'],
shapes: shapes,
resultWrapper: 'DeleteDBSnapshotResult',
);
return DeleteDBSnapshotResult.fromXml($result);
}