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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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) -> Option<&[ShadowModelVariantConfig]>
pub fn shadow_model_variants(&self) -> Option<&[ShadowModelVariantConfig]>
List of shadow variant configurations.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ShadowModeConfig
impl Debug for ShadowModeConfig
source§impl PartialEq<ShadowModeConfig> for ShadowModeConfig
impl PartialEq<ShadowModeConfig> for ShadowModeConfig
source§fn eq(&self, other: &ShadowModeConfig) -> bool
fn eq(&self, other: &ShadowModeConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ShadowModeConfig
Auto Trait Implementations§
impl RefUnwindSafe for ShadowModeConfig
impl Send for ShadowModeConfig
impl Sync for ShadowModeConfig
impl Unpin for ShadowModeConfig
impl UnwindSafe for ShadowModeConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more