EMRServerless / Client / get_session_endpoint
get_session_endpoint¶
- EMRServerless.Client.get_session_endpoint(**kwargs)¶
Returns the session endpoint URL and a time-limited authentication token for the specified session. Use the endpoint and token to connect a client to the session. Call this operation again when the authentication token expires to obtain a new token.
See also: AWS API Documentation
Request Syntax
response = client.get_session_endpoint( applicationId='string', sessionId='string' )
- Parameters:
applicationId (string) –
[REQUIRED]
The ID of the application that the session belongs to.
sessionId (string) –
[REQUIRED]
The ID of the session.
- Return type:
dict
- Returns:
Response Syntax
{ 'applicationId': 'string', 'sessionId': 'string', 'endpoint': 'string', 'authToken': 'string', 'authTokenExpiresAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
applicationId (string) –
The output contains the ID of the application.
sessionId (string) –
The output contains the ID of the session.
endpoint (string) –
The endpoint URL for connecting to the session.
authToken (string) –
Authentication token for accessing the session endpoint.
authTokenExpiresAt (datetime) –
The expiration time of the authentication token.
Exceptions
EMRServerless.Client.exceptions.ValidationExceptionEMRServerless.Client.exceptions.ResourceNotFoundExceptionEMRServerless.Client.exceptions.InternalServerException