startDBCluster method
Restarts the stopped cluster that is specified by
DBClusterIdentifier. For more information, see Stopping
and Starting an Amazon DocumentDB Cluster.
May throw DBClusterNotFoundFault. May throw InvalidDBClusterStateFault. May throw InvalidDBInstanceStateFault.
Parameter dBClusterIdentifier :
The identifier of the cluster to restart. Example:
docdb-2019-05-28-15-24-52
Implementation
Future<StartDBClusterResult> startDBCluster({
required String dBClusterIdentifier,
}) async {
ArgumentError.checkNotNull(dBClusterIdentifier, 'dBClusterIdentifier');
final $request = <String, dynamic>{};
$request['DBClusterIdentifier'] = dBClusterIdentifier;
final $result = await _protocol.send(
$request,
action: 'StartDBCluster',
version: '2014-10-31',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['StartDBClusterMessage'],
shapes: shapes,
resultWrapper: 'StartDBClusterResult',
);
return StartDBClusterResult.fromXml($result);
}