aws_sdk_sagemaker/client/stop_inference_experiment.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 [`StopInferenceExperiment`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::set_name):<br>required: **true**<br><p>The name of the inference experiment to stop.</p><br>
7 /// - [`model_variant_actions(impl Into<String>, ModelVariantAction)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::model_variant_actions) / [`set_model_variant_actions(Option<HashMap::<String, ModelVariantAction>>)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::set_model_variant_actions):<br>required: **true**<br><p>Array of key-value pairs, with names of variants mapped to actions. The possible actions are the following:</p> <ul> <li> <p><code>Promote</code> - Promote the shadow variant to a production variant</p></li> <li> <p><code>Remove</code> - Delete the variant</p></li> <li> <p><code>Retain</code> - Keep the variant as it is</p></li> </ul><br>
8 /// - [`desired_model_variants(ModelVariantConfig)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::desired_model_variants) / [`set_desired_model_variants(Option<Vec::<ModelVariantConfig>>)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::set_desired_model_variants):<br>required: **false**<br><p>An array of <code>ModelVariantConfig</code> objects. There is one for each variant that you want to deploy after the inference experiment stops. Each <code>ModelVariantConfig</code> describes the infrastructure configuration for deploying the corresponding variant.</p><br>
9 /// - [`desired_state(InferenceExperimentStopDesiredState)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::desired_state) / [`set_desired_state(Option<InferenceExperimentStopDesiredState>)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::set_desired_state):<br>required: **false**<br><p>The desired state of the experiment after stopping. The possible states are the following:</p> <ul> <li> <p><code>Completed</code>: The experiment completed successfully</p></li> <li> <p><code>Cancelled</code>: The experiment was canceled</p></li> </ul><br>
10 /// - [`reason(impl Into<String>)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::reason) / [`set_reason(Option<String>)`](crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::set_reason):<br>required: **false**<br><p>The reason for stopping the experiment.</p><br>
11 /// - On success, responds with [`StopInferenceExperimentOutput`](crate::operation::stop_inference_experiment::StopInferenceExperimentOutput) with field(s):
12 /// - [`inference_experiment_arn(Option<String>)`](crate::operation::stop_inference_experiment::StopInferenceExperimentOutput::inference_experiment_arn): <p>The ARN of the stopped inference experiment.</p>
13 /// - On failure, responds with [`SdkError<StopInferenceExperimentError>`](crate::operation::stop_inference_experiment::StopInferenceExperimentError)
14 pub fn stop_inference_experiment(&self) -> crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder {
15 crate::operation::stop_inference_experiment::builders::StopInferenceExperimentFluentBuilder::new(self.handle.clone())
16 }
17}