:doc:`SageMaker <../../sagemaker>` / Client / stop_notebook_instance

**********************
stop_notebook_instance
**********************



.. py:method:: SageMaker.Client.stop_notebook_instance(**kwargs)

  

  Terminates the ML compute instance. Before terminating the instance, SageMaker AI disconnects the ML storage volume from it. SageMaker AI preserves the ML storage volume. SageMaker AI stops charging you for the ML compute instance when you call ``StopNotebookInstance``.

   

  To access data on the ML storage volume for a notebook instance that has been terminated, call the ``StartNotebookInstance`` API. ``StartNotebookInstance`` launches another ML compute instance, configures it, and attaches the preserved ML storage volume so you can continue your work.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopNotebookInstance>`_  


  **Request Syntax**
  ::

    response = client.stop_notebook_instance(
        NotebookInstanceName='string'
    )
    
  :type NotebookInstanceName: string
  :param NotebookInstanceName: **[REQUIRED]** 

    The name of the notebook instance to terminate.

    

  
  
  :returns: None