pub struct StopInferenceExperiment { /* private fields */ }
Expand description
Fluent builder constructing a request to StopInferenceExperiment
.
Stops an inference experiment.
Implementations§
source§impl StopInferenceExperiment
impl StopInferenceExperiment
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<StopInferenceExperiment, AwsResponseRetryClassifier>, SdkError<StopInferenceExperimentError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<StopInferenceExperiment, AwsResponseRetryClassifier>, SdkError<StopInferenceExperimentError>>
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<StopInferenceExperimentOutput, SdkError<StopInferenceExperimentError>>
pub async fn send(
self
) -> Result<StopInferenceExperimentOutput, SdkError<StopInferenceExperimentError>>
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 name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the inference experiment to stop.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the inference experiment to stop.
sourcepub fn model_variant_actions(
self,
k: impl Into<String>,
v: ModelVariantAction
) -> Self
pub fn model_variant_actions(
self,
k: impl Into<String>,
v: ModelVariantAction
) -> Self
Adds a key-value pair to ModelVariantActions
.
To override the contents of this collection use set_model_variant_actions
.
Array of key-value pairs, with names of variants mapped to actions. The possible actions are the following:
-
Promote
- Promote the shadow variant to a production variant -
Remove
- Delete the variant -
Retain
- Keep the variant as it is
sourcepub fn set_model_variant_actions(
self,
input: Option<HashMap<String, ModelVariantAction>>
) -> Self
pub fn set_model_variant_actions(
self,
input: Option<HashMap<String, ModelVariantAction>>
) -> Self
Array of key-value pairs, with names of variants mapped to actions. The possible actions are the following:
-
Promote
- Promote the shadow variant to a production variant -
Remove
- Delete the variant -
Retain
- Keep the variant as it is
sourcepub fn desired_model_variants(self, input: ModelVariantConfig) -> Self
pub fn desired_model_variants(self, input: ModelVariantConfig) -> Self
Appends an item to DesiredModelVariants
.
To override the contents of this collection use set_desired_model_variants
.
An array of ModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. Each ModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.
sourcepub fn set_desired_model_variants(
self,
input: Option<Vec<ModelVariantConfig>>
) -> Self
pub fn set_desired_model_variants(
self,
input: Option<Vec<ModelVariantConfig>>
) -> Self
An array of ModelVariantConfig
objects. There is one for each variant that you want to deploy after the inference experiment stops. Each ModelVariantConfig
describes the infrastructure configuration for deploying the corresponding variant.
sourcepub fn desired_state(self, input: InferenceExperimentStopDesiredState) -> Self
pub fn desired_state(self, input: InferenceExperimentStopDesiredState) -> Self
The desired state of the experiment after stopping. The possible states are the following:
-
Completed
: The experiment completed successfully -
Cancelled
: The experiment was canceled
sourcepub fn set_desired_state(
self,
input: Option<InferenceExperimentStopDesiredState>
) -> Self
pub fn set_desired_state(
self,
input: Option<InferenceExperimentStopDesiredState>
) -> Self
The desired state of the experiment after stopping. The possible states are the following:
-
Completed
: The experiment completed successfully -
Cancelled
: The experiment was canceled
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
The reason for stopping the experiment.
Trait Implementations§
source§impl Clone for StopInferenceExperiment
impl Clone for StopInferenceExperiment
source§fn clone(&self) -> StopInferenceExperiment
fn clone(&self) -> StopInferenceExperiment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more