fn stop_notebook_instance(
        &self,
        input: StopNotebookInstanceInput,
    ) -> RusotoFuture<(), StopNotebookInstanceError> {
        let mut request = SignedRequest::new("POST", "sagemaker", &self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "SageMaker.StopNotebookInstance");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));

        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(future::ok(::std::mem::drop(response)))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(StopNotebookInstanceError::from_response(response))
                    }),
                )
            }
        })
    }
/// <p>Terminates the ML compute instance. Before terminating the instance, Amazon SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves the ML storage volume. </p> <p>To access data on the ML storage volume for a notebook instance that has been terminated, call the <code>StartNotebookInstance</code> API. <code>StartNotebookInstance</code> launches another ML compute instance, configures it, and attaches the preserved ML storage volume so you can continue your work. </p>
Terminates the ML compute instance. Before terminating the instance, Amazon SageMaker disconnects the ML storage volume from it. Amazon SageMaker preserves the ML storage volume.  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.
Terminates the ML compute instance . Before terminating the instance Amazon SageMaker disconnects the ML storage volume from it . Amazon SageMaker preserves the ML storage volume . 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 .
fn stop_notebook_instance(
        &self,
        input: StopNotebookInstanceInput,
    ) -> RusotoFuture<(), StopNotebookInstanceError> {
        let mut request = SignedRequest::new("POST", "sagemaker", &self.region, "/");
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header("x-amz-target", "SageMaker.StopNotebookInstance");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded.into_bytes()));
        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(future::ok(::std::mem::drop(response)))
            } else {
                Box::new(
                    response.buffer().from_err().and_then(|response| {
                        Err(StopNotebookInstanceError::from_response(response))
                    }),
                )
            }
        })
    }
fn stop_notebook_instance ( & self , input : StopNotebookInstanceInput , ) -> RusotoFuture < ( ) , StopNotebookInstanceError > { let mut request = SignedRequest :: new ( " " , " " , & self . region , " " ) ; request . set_content_type ( " " . to_owned ( ) ) ; request . add_header ( " " , " " ) ; let encoded = serde_json :: to_string ( & input ) . unwrap ( ) ; request . set_payload ( Some ( encoded . into_bytes ( ) ) ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . is_success ( ) { Box :: new ( future :: ok ( :: std :: mem :: drop ( response ) ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( StopNotebookInstanceError :: from_response ( response ) ) } ) , ) } } ) }
<p>Terminates the ML compute instance.
<p > Terminates the ML compute instance .
&self
input
StopNotebookInstanceInput
&self
input
StopNotebookInstanceInput