Struct aws_sdk_sagemaker::client::fluent_builders::StopTrainingJob
source · pub struct StopTrainingJob { /* 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 StopTrainingJob
impl StopTrainingJob
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<StopTrainingJob, AwsResponseRetryClassifier>, SdkError<StopTrainingJobError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<StopTrainingJob, AwsResponseRetryClassifier>, SdkError<StopTrainingJobError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<StopTrainingJobOutput, SdkError<StopTrainingJobError>>
pub async fn send(
self
) -> Result<StopTrainingJobOutput, SdkError<StopTrainingJobError>>
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 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.
Trait Implementations§
source§impl Clone for StopTrainingJob
impl Clone for StopTrainingJob
source§fn clone(&self) -> StopTrainingJob
fn clone(&self) -> StopTrainingJob
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more