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

********************
get_session_endpoint
********************



.. py:method:: Athena.Client.get_session_endpoint(**kwargs)

  

  Gets a connection endpoint and authentication token for a given session Id.

  

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


  **Request Syntax**
  ::

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

    The session ID.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'EndpointUrl': 'string',
          'AuthToken': 'string',
          'AuthTokenExpirationTime': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **EndpointUrl** *(string) --* 

        The endpoint for connecting to the session.

        
      

      - **AuthToken** *(string) --* 

        Authentication token for the connection

        
      

      - **AuthTokenExpirationTime** *(datetime) --* 

        Expiration time of the auth token.

        
  
  **Exceptions**
  
  *   :py:class:`Athena.Client.exceptions.InternalServerException`

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

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

  