Struct aws_sdk_sagemaker::types::VariantProperty
source · #[non_exhaustive]pub struct VariantProperty {
pub variant_property_type: Option<VariantPropertyType>,
}
Expand description
Specifies a production variant property type for an Endpoint.
If you are updating an endpoint with the RetainAllVariantProperties
option of UpdateEndpointInput set to true
, the VariantProperty
objects listed in the ExcludeRetainedVariantProperties
parameter of UpdateEndpointInput override the existing variant properties of the endpoint.
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.variant_property_type: Option<VariantPropertyType>
The type of variant property. The supported values are:
-
DesiredInstanceCount
: Overrides the existing variant instance counts using theInitialInstanceCount
values in theProductionVariants
of CreateEndpointConfig. -
DesiredWeight
: Overrides the existing variant weights using theInitialVariantWeight
values in theProductionVariants
of CreateEndpointConfig. -
DataCaptureConfig
: (Not currently supported.)
Implementations§
source§impl VariantProperty
impl VariantProperty
sourcepub fn variant_property_type(&self) -> Option<&VariantPropertyType>
pub fn variant_property_type(&self) -> Option<&VariantPropertyType>
The type of variant property. The supported values are:
-
DesiredInstanceCount
: Overrides the existing variant instance counts using theInitialInstanceCount
values in theProductionVariants
of CreateEndpointConfig. -
DesiredWeight
: Overrides the existing variant weights using theInitialVariantWeight
values in theProductionVariants
of CreateEndpointConfig. -
DataCaptureConfig
: (Not currently supported.)
source§impl VariantProperty
impl VariantProperty
sourcepub fn builder() -> VariantPropertyBuilder
pub fn builder() -> VariantPropertyBuilder
Creates a new builder-style object to manufacture VariantProperty
.
Trait Implementations§
source§impl Clone for VariantProperty
impl Clone for VariantProperty
source§fn clone(&self) -> VariantProperty
fn clone(&self) -> VariantProperty
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VariantProperty
impl Debug for VariantProperty
source§impl PartialEq for VariantProperty
impl PartialEq for VariantProperty
source§fn eq(&self, other: &VariantProperty) -> bool
fn eq(&self, other: &VariantProperty) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VariantProperty
Auto Trait Implementations§
impl Freeze for VariantProperty
impl RefUnwindSafe for VariantProperty
impl Send for VariantProperty
impl Sync for VariantProperty
impl Unpin for VariantProperty
impl UnwindSafe for VariantProperty
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