deleteDBSnapshot method
May throw InvalidDBSnapshotStateFault. May throw DBSnapshotNotFoundFault.
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: '2013-01-10',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteDBSnapshotMessage'],
shapes: shapes,
resultWrapper: 'DeleteDBSnapshotResult',
);
return DeleteDBSnapshotResult.fromXml($result);
}