resumeCluster method
Resumes a paused cluster.
May throw ClusterNotFoundFault. May throw InvalidClusterStateFault. May throw InsufficientClusterCapacityFault.
Parameter clusterIdentifier
:
The identifier of the cluster to be resumed.
Implementation
Future<ResumeClusterResult> resumeCluster({
required String clusterIdentifier,
}) async {
ArgumentError.checkNotNull(clusterIdentifier, 'clusterIdentifier');
_s.validateStringLength(
'clusterIdentifier',
clusterIdentifier,
0,
2147483647,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['ClusterIdentifier'] = clusterIdentifier;
final $result = await _protocol.send(
$request,
action: 'ResumeCluster',
version: '2012-12-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['ResumeClusterMessage'],
shapes: shapes,
resultWrapper: 'ResumeClusterResult',
);
return ResumeClusterResult.fromXml($result);
}