create_presigned_notebook_url

Athena.Client.create_presigned_notebook_url(**kwargs)

Gets an authentication token and the URL at which the notebook can be accessed. During programmatic access, CreatePresignedNotebookUrl must be called every 10 minutes to refresh the authentication token.

See also: AWS API Documentation

Request Syntax

response = client.create_presigned_notebook_url(
    SessionId='string'
)
Parameters
SessionId (string) --

[REQUIRED]

The session ID.

Return type
dict
Returns
Response Syntax
{
    'NotebookUrl': 'string',
    'AuthToken': 'string',
    'AuthTokenExpirationTime': 123
}

Response Structure

  • (dict) --
    • NotebookUrl (string) --

      The URL of the notebook. The URL includes the authentication token and notebook file name and points directly to the opened notebook.

    • AuthToken (string) --

      The authentication token for the notebook.

    • AuthTokenExpirationTime (integer) --

      The UTC epoch time when the authentication token expires.

Exceptions

  • Athena.Client.exceptions.InternalServerException
  • Athena.Client.exceptions.InvalidRequestException
  • Athena.Client.exceptions.ResourceNotFoundException