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§
source§impl 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.
source§impl ProductionVariantSummary
impl ProductionVariantSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ProductionVariantSummary
.
Trait Implementations§
source§impl Clone for ProductionVariantSummary
impl Clone for ProductionVariantSummary
source§fn clone(&self) -> ProductionVariantSummary
fn clone(&self) -> ProductionVariantSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProductionVariantSummary
impl Debug for ProductionVariantSummary
source§impl PartialEq<ProductionVariantSummary> for ProductionVariantSummary
impl PartialEq<ProductionVariantSummary> for ProductionVariantSummary
source§fn eq(&self, other: &ProductionVariantSummary) -> bool
fn eq(&self, other: &ProductionVariantSummary) -> bool
self
and other
values to be equal, and is used
by ==
.