Struct aws_sdk_sagemaker::operation::update_inference_experiment::builders::UpdateInferenceExperimentFluentBuilder
source · pub struct UpdateInferenceExperimentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateInferenceExperiment
.
Updates an inference experiment that you created. The status of the inference experiment has to be either Created
, Running
. For more information on the status of an inference experiment, see DescribeInferenceExperiment.
Implementations§
source§impl UpdateInferenceExperimentFluentBuilder
impl UpdateInferenceExperimentFluentBuilder
sourcepub fn as_input(&self) -> &UpdateInferenceExperimentInputBuilder
pub fn as_input(&self) -> &UpdateInferenceExperimentInputBuilder
Access the UpdateInferenceExperiment as a reference.
sourcepub async fn send(
self
) -> Result<UpdateInferenceExperimentOutput, SdkError<UpdateInferenceExperimentError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateInferenceExperimentOutput, SdkError<UpdateInferenceExperimentError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<UpdateInferenceExperimentOutput, UpdateInferenceExperimentError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateInferenceExperimentOutput, UpdateInferenceExperimentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 be updated.
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 be updated.
sourcepub fn schedule(self, input: InferenceExperimentSchedule) -> Self
pub fn schedule(self, input: InferenceExperimentSchedule) -> Self
The duration for which the inference experiment will run. If the status of the inference experiment is Created
, then you can update both the start and end dates. If the status of the inference experiment is Running
, then you can update only the end date.
sourcepub fn set_schedule(self, input: Option<InferenceExperimentSchedule>) -> Self
pub fn set_schedule(self, input: Option<InferenceExperimentSchedule>) -> Self
The duration for which the inference experiment will run. If the status of the inference experiment is Created
, then you can update both the start and end dates. If the status of the inference experiment is Running
, then you can update only the end date.
sourcepub fn get_schedule(&self) -> &Option<InferenceExperimentSchedule>
pub fn get_schedule(&self) -> &Option<InferenceExperimentSchedule>
The duration for which the inference experiment will run. If the status of the inference experiment is Created
, then you can update both the start and end dates. If the status of the inference experiment is Running
, then you can update only the end date.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the inference experiment.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the inference experiment.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the inference experiment.
sourcepub fn model_variants(self, input: ModelVariantConfig) -> Self
pub fn model_variants(self, input: ModelVariantConfig) -> Self
Appends an item to ModelVariants
.
To override the contents of this collection use set_model_variants
.
An array of ModelVariantConfig
objects. There is one for each variant, whose infrastructure configuration you want to update.
sourcepub fn set_model_variants(self, input: Option<Vec<ModelVariantConfig>>) -> Self
pub fn set_model_variants(self, input: Option<Vec<ModelVariantConfig>>) -> Self
An array of ModelVariantConfig
objects. There is one for each variant, whose infrastructure configuration you want to update.
sourcepub fn get_model_variants(&self) -> &Option<Vec<ModelVariantConfig>>
pub fn get_model_variants(&self) -> &Option<Vec<ModelVariantConfig>>
An array of ModelVariantConfig
objects. There is one for each variant, whose infrastructure configuration you want to update.
sourcepub fn data_storage_config(
self,
input: InferenceExperimentDataStorageConfig
) -> Self
pub fn data_storage_config( self, input: InferenceExperimentDataStorageConfig ) -> Self
The Amazon S3 location and configuration for storing inference request and response data.
sourcepub fn set_data_storage_config(
self,
input: Option<InferenceExperimentDataStorageConfig>
) -> Self
pub fn set_data_storage_config( self, input: Option<InferenceExperimentDataStorageConfig> ) -> Self
The Amazon S3 location and configuration for storing inference request and response data.
sourcepub fn get_data_storage_config(
&self
) -> &Option<InferenceExperimentDataStorageConfig>
pub fn get_data_storage_config( &self ) -> &Option<InferenceExperimentDataStorageConfig>
The Amazon S3 location and configuration for storing inference request and response data.
sourcepub fn shadow_mode_config(self, input: ShadowModeConfig) -> Self
pub fn shadow_mode_config(self, input: ShadowModeConfig) -> Self
The configuration of ShadowMode
inference experiment type. Use this field to specify a production variant which takes all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant also specify the percentage of requests that Amazon SageMaker replicates.
sourcepub fn set_shadow_mode_config(self, input: Option<ShadowModeConfig>) -> Self
pub fn set_shadow_mode_config(self, input: Option<ShadowModeConfig>) -> Self
The configuration of ShadowMode
inference experiment type. Use this field to specify a production variant which takes all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant also specify the percentage of requests that Amazon SageMaker replicates.
sourcepub fn get_shadow_mode_config(&self) -> &Option<ShadowModeConfig>
pub fn get_shadow_mode_config(&self) -> &Option<ShadowModeConfig>
The configuration of ShadowMode
inference experiment type. Use this field to specify a production variant which takes all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant also specify the percentage of requests that Amazon SageMaker replicates.
Trait Implementations§
source§impl Clone for UpdateInferenceExperimentFluentBuilder
impl Clone for UpdateInferenceExperimentFluentBuilder
source§fn clone(&self) -> UpdateInferenceExperimentFluentBuilder
fn clone(&self) -> UpdateInferenceExperimentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more