:doc:`Glue <../../glue>` / Client / stop_session

************
stop_session
************



.. py:method:: Glue.Client.stop_session(**kwargs)

  

  Stops the session.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StopSession>`_  


  **Request Syntax**
  ::

    response = client.stop_session(
        Id='string',
        RequestOrigin='string'
    )
    
  :type Id: string
  :param Id: **[REQUIRED]** 

    The ID of the session to be stopped.

    

  
  :type RequestOrigin: string
  :param RequestOrigin: 

    The origin of the request.

    

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

    
    ::

      {
          'Id': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Id** *(string) --* 

        Returns the Id of the stopped session.

        
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Glue.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Glue.Client.exceptions.OperationTimeoutException`

  
  *   :py:class:`Glue.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Glue.Client.exceptions.IllegalSessionStateException`

  
  *   :py:class:`Glue.Client.exceptions.ConcurrentModificationException`

  