modifyCluster method
Modifies the number of steps that can be executed concurrently for the cluster specified using ClusterID.
May throw InternalServerError. May throw InvalidRequestException.
Parameter clusterId
:
The unique identifier of the cluster.
Parameter stepConcurrencyLevel
:
The number of steps that can be executed concurrently. You can specify a
maximum of 256 steps.
Implementation
Future<ModifyClusterOutput> modifyCluster({
required String clusterId,
int? stepConcurrencyLevel,
}) async {
ArgumentError.checkNotNull(clusterId, 'clusterId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ElasticMapReduce.ModifyCluster'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ClusterId': clusterId,
if (stepConcurrencyLevel != null)
'StepConcurrencyLevel': stepConcurrencyLevel,
},
);
return ModifyClusterOutput.fromJson(jsonResponse.body);
}