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
impl StructuralPartialEq for ShadowModeConfig
Auto Trait Implementations§
impl Freeze for ShadowModeConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more