pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateInferenceExperimentInput
.
Implementations§
source§impl Builder
impl Builder
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 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 model_variants(self, input: ModelVariantConfig) -> Self
pub fn model_variants(self, input: ModelVariantConfig) -> Self
Appends an item to model_variants
.
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 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 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 build(self) -> Result<UpdateInferenceExperimentInput, BuildError>
pub fn build(self) -> Result<UpdateInferenceExperimentInput, BuildError>
Consumes the builder and constructs a UpdateInferenceExperimentInput
.