getSession method
Returns detailed information about a session.
May throw InternalServerException.
May throw InvalidRequestException.
Parameter clusterId :
The ID of the cluster that the session belongs to.
Parameter sessionId :
The ID of the session.
Implementation
Future<GetSessionOutput> getSession({
required String clusterId,
required String sessionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ElasticMapReduce.GetSession'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ClusterId': clusterId,
'SessionId': sessionId,
},
);
return GetSessionOutput.fromJson(jsonResponse.body);
}