Glue / Client / get_session_endpoint

get_session_endpoint

Glue.Client.get_session_endpoint(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.get_session_endpoint(
    SessionId='string'
)
Parameters:

SessionId (string) –

[REQUIRED]

The unique identifier of the interactive session.

Return type:

dict

Returns:

Response Syntax

{
    'SparkConnect': {
        'Url': 'string',
        'AuthToken': 'string',
        'AuthTokenExpirationTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) –

    • SparkConnect (dict) –

      The Spark Connect endpoint details for the session.

      • Url (string) –

        The Spark Connect endpoint URL for the session.

      • AuthToken (string) –

        The authentication token to include in requests to the Spark Connect endpoint.

      • AuthTokenExpirationTime (datetime) –

        The time at which the authentication token expires.

Exceptions

  • Glue.Client.exceptions.AccessDeniedException

  • Glue.Client.exceptions.EntityNotFoundException

  • Glue.Client.exceptions.InternalServiceException

  • Glue.Client.exceptions.OperationTimeoutException

  • Glue.Client.exceptions.InvalidInputException

  • Glue.Client.exceptions.OperationNotSupportedException

  • Glue.Client.exceptions.IllegalSessionStateException