1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CancelMLModelTrainingJob`](crate::operation::cancel_ml_model_training_job::builders::CancelMLModelTrainingJobFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`id(impl Into<String>)`](crate::operation::cancel_ml_model_training_job::builders::CancelMLModelTrainingJobFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::cancel_ml_model_training_job::builders::CancelMLModelTrainingJobFluentBuilder::set_id):<br>required: **true**<br><p>The unique identifier of the model-training job to be canceled.</p><br>
    ///   - [`neptune_iam_role_arn(impl Into<String>)`](crate::operation::cancel_ml_model_training_job::builders::CancelMLModelTrainingJobFluentBuilder::neptune_iam_role_arn) / [`set_neptune_iam_role_arn(Option<String>)`](crate::operation::cancel_ml_model_training_job::builders::CancelMLModelTrainingJobFluentBuilder::set_neptune_iam_role_arn):<br>required: **false**<br><p>The ARN of an IAM role that provides Neptune access to SageMaker and Amazon S3 resources. This must be listed in your DB cluster parameter group or an error will occur.</p><br>
    ///   - [`clean(bool)`](crate::operation::cancel_ml_model_training_job::builders::CancelMLModelTrainingJobFluentBuilder::clean) / [`set_clean(Option<bool>)`](crate::operation::cancel_ml_model_training_job::builders::CancelMLModelTrainingJobFluentBuilder::set_clean):<br>required: **false**<br><p>If set to <code>TRUE</code>, this flag specifies that all Amazon S3 artifacts should be deleted when the job is stopped. The default is <code>FALSE</code>.</p><br>
    /// - On success, responds with [`CancelMlModelTrainingJobOutput`](crate::operation::cancel_ml_model_training_job::CancelMlModelTrainingJobOutput) with field(s):
    ///   - [`status(Option<String>)`](crate::operation::cancel_ml_model_training_job::CancelMlModelTrainingJobOutput::status): <p>The status of the cancellation.</p>
    /// - On failure, responds with [`SdkError<CancelMLModelTrainingJobError>`](crate::operation::cancel_ml_model_training_job::CancelMLModelTrainingJobError)
    pub fn cancel_ml_model_training_job(&self) -> crate::operation::cancel_ml_model_training_job::builders::CancelMLModelTrainingJobFluentBuilder {
        crate::operation::cancel_ml_model_training_job::builders::CancelMLModelTrainingJobFluentBuilder::new(self.handle.clone())
    }
}