aws_sdk_sagemaker/client/
stop_training_job.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`StopTrainingJob`](crate::operation::stop_training_job::builders::StopTrainingJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`training_job_name(impl Into<String>)`](crate::operation::stop_training_job::builders::StopTrainingJobFluentBuilder::training_job_name) / [`set_training_job_name(Option<String>)`](crate::operation::stop_training_job::builders::StopTrainingJobFluentBuilder::set_training_job_name):<br>required: **true**<br><p>The name of the training job to stop.</p><br>
7    /// - On success, responds with [`StopTrainingJobOutput`](crate::operation::stop_training_job::StopTrainingJobOutput)
8    /// - On failure, responds with [`SdkError<StopTrainingJobError>`](crate::operation::stop_training_job::StopTrainingJobError)
9    pub fn stop_training_job(&self) -> crate::operation::stop_training_job::builders::StopTrainingJobFluentBuilder {
10        crate::operation::stop_training_job::builders::StopTrainingJobFluentBuilder::new(self.handle.clone())
11    }
12}