getSessionEndpoint method

Future<GetSessionEndpointResponse> getSessionEndpoint({
  1. required String sessionId,
})

Returns the Spark Connect endpoint URL and authentication token for an interactive session.

May throw AccessDeniedException. May throw EntityNotFoundException. May throw IllegalSessionStateException. May throw InternalServiceException. May throw InvalidInputException. May throw OperationNotSupportedException. May throw OperationTimeoutException.

Parameter sessionId : The unique identifier of the interactive session.

Implementation

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

  return GetSessionEndpointResponse.fromJson(jsonResponse.body);
}