:doc:`Athena <../../athena>` / Client / create_presigned_notebook_url

*****************************
create_presigned_notebook_url
*****************************



.. py:method:: 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. For information about granting programmatic access, see `Grant programmatic access <https://docs.aws.amazon.com/athena/latest/ug/setting-up.html#setting-up-grant-programmatic-access>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePresignedNotebookUrl>`_  


  **Request Syntax**
  ::

    response = client.create_presigned_notebook_url(
        SessionId='string'
    )
    
  :type SessionId: string
  :param SessionId: **[REQUIRED]** 

    The session ID.

    

  
  
  :rtype: 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**
  
  *   :py:class:`Athena.Client.exceptions.InternalServerException`

  
  *   :py:class:`Athena.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Athena.Client.exceptions.ResourceNotFoundException`

  