getSessionStatus method

Future<GetSessionStatusResponse> getSessionStatus({
  1. required String sessionId,
})

Gets the current status of a session.

May throw InternalServerException. May throw InvalidRequestException. May throw ResourceNotFoundException.

Parameter sessionId : The session ID.

Implementation

Future<GetSessionStatusResponse> getSessionStatus({
  required String sessionId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonAthena.GetSessionStatus'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'SessionId': sessionId,
    },
  );

  return GetSessionStatusResponse.fromJson(jsonResponse.body);
}