describeStep method
Provides more detail about the cluster step.
May throw InternalServerException. May throw InvalidRequestException.
Parameter clusterId
:
The identifier of the cluster with steps to describe.
Parameter stepId
:
The identifier of the step to describe.
Implementation
Future<DescribeStepOutput> describeStep({
required String clusterId,
required String stepId,
}) async {
ArgumentError.checkNotNull(clusterId, 'clusterId');
ArgumentError.checkNotNull(stepId, 'stepId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ElasticMapReduce.DescribeStep'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ClusterId': clusterId,
'StepId': stepId,
},
);
return DescribeStepOutput.fromJson(jsonResponse.body);
}