deleteDBClusterSnapshot method
Future<DeleteDBClusterSnapshotResult>
deleteDBClusterSnapshot({
- required String dBClusterSnapshotIdentifier,
Deletes a DB cluster snapshot. If the snapshot is being copied, the copy operation is terminated. For more information on Amazon Aurora, see What Is Amazon Aurora? in the Amazon Aurora User Guide.
May throw InvalidDBClusterSnapshotStateFault. May throw DBClusterSnapshotNotFoundFault.
Parameter dBClusterSnapshotIdentifier
:
The identifier of the DB cluster snapshot to delete.
Constraints: Must be the name of an existing DB cluster snapshot in the
available
state.
Implementation
Future<DeleteDBClusterSnapshotResult> deleteDBClusterSnapshot({
required String dBClusterSnapshotIdentifier,
}) async {
ArgumentError.checkNotNull(
dBClusterSnapshotIdentifier, 'dBClusterSnapshotIdentifier');
final $request = <String, dynamic>{};
$request['DBClusterSnapshotIdentifier'] = dBClusterSnapshotIdentifier;
final $result = await _protocol.send(
$request,
action: 'DeleteDBClusterSnapshot',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DeleteDBClusterSnapshotMessage'],
shapes: shapes,
resultWrapper: 'DeleteDBClusterSnapshotResult',
);
return DeleteDBClusterSnapshotResult.fromXml($result);
}