Struct aws_sdk_sagemaker::model::ProductionVariantSummary
source · [−]#[non_exhaustive]pub struct ProductionVariantSummary { /* private fields */ }
Expand description
Describes weight and capacities for a production variant associated with an endpoint. If you sent a request to the UpdateEndpointWeightsAndCapacities
API and the endpoint status is Updating
, you get different desired and current values.
Implementations
sourceimpl ProductionVariantSummary
impl ProductionVariantSummary
sourcepub fn variant_name(&self) -> Option<&str>
pub fn variant_name(&self) -> Option<&str>
The name of the variant.
sourcepub fn deployed_images(&self) -> Option<&[DeployedImage]>
pub fn deployed_images(&self) -> Option<&[DeployedImage]>
An array of DeployedImage
objects that specify the Amazon EC2 Container Registry paths of the inference images deployed on instances of this ProductionVariant
.
sourcepub fn current_weight(&self) -> Option<f32>
pub fn current_weight(&self) -> Option<f32>
The weight associated with the variant.
sourcepub fn desired_weight(&self) -> Option<f32>
pub fn desired_weight(&self) -> Option<f32>
The requested weight, as specified in the UpdateEndpointWeightsAndCapacities
request.
sourcepub fn current_instance_count(&self) -> Option<i32>
pub fn current_instance_count(&self) -> Option<i32>
The number of instances associated with the variant.
sourcepub fn desired_instance_count(&self) -> Option<i32>
pub fn desired_instance_count(&self) -> Option<i32>
The number of instances requested in the UpdateEndpointWeightsAndCapacities
request.
sourcepub fn variant_status(&self) -> Option<&[ProductionVariantStatus]>
pub fn variant_status(&self) -> Option<&[ProductionVariantStatus]>
The endpoint variant status which describes the current deployment stage status or operational status.
sourcepub fn current_serverless_config(
&self
) -> Option<&ProductionVariantServerlessConfig>
pub fn current_serverless_config(
&self
) -> Option<&ProductionVariantServerlessConfig>
The serverless configuration for the endpoint.
sourcepub fn desired_serverless_config(
&self
) -> Option<&ProductionVariantServerlessConfig>
pub fn desired_serverless_config(
&self
) -> Option<&ProductionVariantServerlessConfig>
The serverless configuration requested for the endpoint update.
sourceimpl ProductionVariantSummary
impl ProductionVariantSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ProductionVariantSummary
.
Trait Implementations
sourceimpl Clone for ProductionVariantSummary
impl Clone for ProductionVariantSummary
sourcefn clone(&self) -> ProductionVariantSummary
fn clone(&self) -> ProductionVariantSummary
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProductionVariantSummary
impl Debug for ProductionVariantSummary
sourceimpl PartialEq<ProductionVariantSummary> for ProductionVariantSummary
impl PartialEq<ProductionVariantSummary> for ProductionVariantSummary
sourcefn eq(&self, other: &ProductionVariantSummary) -> bool
fn eq(&self, other: &ProductionVariantSummary) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for ProductionVariantSummary
Auto Trait Implementations
impl RefUnwindSafe for ProductionVariantSummary
impl Send for ProductionVariantSummary
impl Sync for ProductionVariantSummary
impl Unpin for ProductionVariantSummary
impl UnwindSafe for ProductionVariantSummary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more