Struct aws_sdk_sagemaker::operation::stop_training_job::builders::StopTrainingJobFluentBuilder
source · pub struct StopTrainingJobFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StopTrainingJob
.
Stops a training job. To stop a job, SageMaker sends the algorithm the SIGTERM
signal, which delays job termination for 120 seconds. Algorithms might use this 120-second window to save the model artifacts, so the results of the training is not lost.
When it receives a StopTrainingJob
request, SageMaker changes the status of the job to Stopping
. After SageMaker stops the job, it sets the status to Stopped
.
Implementations§
source§impl StopTrainingJobFluentBuilder
impl StopTrainingJobFluentBuilder
sourcepub fn as_input(&self) -> &StopTrainingJobInputBuilder
pub fn as_input(&self) -> &StopTrainingJobInputBuilder
Access the StopTrainingJob as a reference.
sourcepub async fn send(
self
) -> Result<StopTrainingJobOutput, SdkError<StopTrainingJobError, HttpResponse>>
pub async fn send( self ) -> Result<StopTrainingJobOutput, SdkError<StopTrainingJobError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<StopTrainingJobOutput, StopTrainingJobError>, SdkError<StopTrainingJobError>>
pub async fn customize( self ) -> Result<CustomizableOperation<StopTrainingJobOutput, StopTrainingJobError>, SdkError<StopTrainingJobError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn training_job_name(self, input: impl Into<String>) -> Self
pub fn training_job_name(self, input: impl Into<String>) -> Self
The name of the training job to stop.
sourcepub fn set_training_job_name(self, input: Option<String>) -> Self
pub fn set_training_job_name(self, input: Option<String>) -> Self
The name of the training job to stop.
sourcepub fn get_training_job_name(&self) -> &Option<String>
pub fn get_training_job_name(&self) -> &Option<String>
The name of the training job to stop.
Trait Implementations§
source§impl Clone for StopTrainingJobFluentBuilder
impl Clone for StopTrainingJobFluentBuilder
source§fn clone(&self) -> StopTrainingJobFluentBuilder
fn clone(&self) -> StopTrainingJobFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more