Struct aws_sdk_sagemaker::types::ShadowModeConfig
source · #[non_exhaustive]pub struct ShadowModeConfig {
pub source_model_variant_name: Option<String>,
pub shadow_model_variants: Option<Vec<ShadowModelVariantConfig>>,
}
Expand description
The configuration of ShadowMode
inference experiment type, which specifies a production variant to take all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant it also specifies the percentage of requests that Amazon SageMaker replicates.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.source_model_variant_name: Option<String>
The name of the production variant, which takes all the inference requests.
shadow_model_variants: Option<Vec<ShadowModelVariantConfig>>
List of shadow variant configurations.
Implementations§
source§impl ShadowModeConfig
impl ShadowModeConfig
sourcepub fn source_model_variant_name(&self) -> Option<&str>
pub fn source_model_variant_name(&self) -> Option<&str>
The name of the production variant, which takes all the inference requests.
sourcepub fn shadow_model_variants(&self) -> &[ShadowModelVariantConfig]
pub fn shadow_model_variants(&self) -> &[ShadowModelVariantConfig]
List of shadow variant configurations.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .shadow_model_variants.is_none()
.
source§impl ShadowModeConfig
impl ShadowModeConfig
sourcepub fn builder() -> ShadowModeConfigBuilder
pub fn builder() -> ShadowModeConfigBuilder
Creates a new builder-style object to manufacture ShadowModeConfig
.
Trait Implementations§
source§impl Clone for ShadowModeConfig
impl Clone for ShadowModeConfig
source§fn clone(&self) -> ShadowModeConfig
fn clone(&self) -> ShadowModeConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ShadowModeConfig
impl Debug for ShadowModeConfig
source§impl PartialEq for ShadowModeConfig
impl PartialEq for ShadowModeConfig
source§fn eq(&self, other: &ShadowModeConfig) -> bool
fn eq(&self, other: &ShadowModeConfig) -> bool
self
and other
values to be equal, and is used
by ==
.