getSessionEndpoint method
Gets a connection endpoint and authentication token for a given session Id.
May throw InternalServerException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
Parameter sessionId :
The session ID.
Implementation
Future<GetSessionEndpointResponse> getSessionEndpoint({
required String sessionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonAthena.GetSessionEndpoint'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'SessionId': sessionId,
},
);
return GetSessionEndpointResponse.fromJson(jsonResponse.body);
}