#[non_exhaustive]pub struct PendingProductionVariantSummary {
pub variant_name: Option<String>,
pub deployed_images: Option<Vec<DeployedImage>>,
pub current_weight: Option<f32>,
pub desired_weight: Option<f32>,
pub current_instance_count: Option<i32>,
pub desired_instance_count: Option<i32>,
pub instance_type: Option<ProductionVariantInstanceType>,
pub accelerator_type: Option<ProductionVariantAcceleratorType>,
pub variant_status: Option<Vec<ProductionVariantStatus>>,
pub current_serverless_config: Option<ProductionVariantServerlessConfig>,
pub desired_serverless_config: Option<ProductionVariantServerlessConfig>,
}
Expand description
The production variant summary for a deployment when an endpoint is creating or updating with the
or CreateEndpoint
operations. Describes the UpdateEndpoint
VariantStatus
, weight and capacity for a production variant associated with an 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_name: Option<String>
The name of the variant.
deployed_images: Option<Vec<DeployedImage>>
An array of DeployedImage
objects that specify the Amazon EC2 Container Registry paths of the inference images deployed on instances of this ProductionVariant
.
current_weight: Option<f32>
The weight associated with the variant.
desired_weight: Option<f32>
The requested weight for the variant in this deployment, as specified in the endpoint configuration for the endpoint. The value is taken from the request to the
operation.CreateEndpointConfig
current_instance_count: Option<i32>
The number of instances associated with the variant.
desired_instance_count: Option<i32>
The number of instances requested in this deployment, as specified in the endpoint configuration for the endpoint. The value is taken from the request to the
operation.CreateEndpointConfig
instance_type: Option<ProductionVariantInstanceType>
The type of instances associated with the variant.
accelerator_type: Option<ProductionVariantAcceleratorType>
The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker.
variant_status: Option<Vec<ProductionVariantStatus>>
The endpoint variant status which describes the current deployment stage status or operational status.
current_serverless_config: Option<ProductionVariantServerlessConfig>
The serverless configuration for the endpoint.
Serverless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
desired_serverless_config: Option<ProductionVariantServerlessConfig>
The serverless configuration requested for this deployment, as specified in the endpoint configuration for the endpoint.
Serverless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
Implementations
sourceimpl PendingProductionVariantSummary
impl PendingProductionVariantSummary
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 for the variant in this deployment, as specified in the endpoint configuration for the endpoint. The value is taken from the request to the
operation.CreateEndpointConfig
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 this deployment, as specified in the endpoint configuration for the endpoint. The value is taken from the request to the
operation.CreateEndpointConfig
sourcepub fn instance_type(&self) -> Option<&ProductionVariantInstanceType>
pub fn instance_type(&self) -> Option<&ProductionVariantInstanceType>
The type of instances associated with the variant.
sourcepub fn accelerator_type(&self) -> Option<&ProductionVariantAcceleratorType>
pub fn accelerator_type(&self) -> Option<&ProductionVariantAcceleratorType>
The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker.
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.
Serverless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
sourcepub fn desired_serverless_config(
&self
) -> Option<&ProductionVariantServerlessConfig>
pub fn desired_serverless_config(
&self
) -> Option<&ProductionVariantServerlessConfig>
The serverless configuration requested for this deployment, as specified in the endpoint configuration for the endpoint.
Serverless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
sourceimpl PendingProductionVariantSummary
impl PendingProductionVariantSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PendingProductionVariantSummary
Trait Implementations
sourceimpl Clone for PendingProductionVariantSummary
impl Clone for PendingProductionVariantSummary
sourcefn clone(&self) -> PendingProductionVariantSummary
fn clone(&self) -> PendingProductionVariantSummary
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 PartialEq<PendingProductionVariantSummary> for PendingProductionVariantSummary
impl PartialEq<PendingProductionVariantSummary> for PendingProductionVariantSummary
sourcefn eq(&self, other: &PendingProductionVariantSummary) -> bool
fn eq(&self, other: &PendingProductionVariantSummary) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PendingProductionVariantSummary) -> bool
fn ne(&self, other: &PendingProductionVariantSummary) -> bool
This method tests for !=
.
impl StructuralPartialEq for PendingProductionVariantSummary
Auto Trait Implementations
impl RefUnwindSafe for PendingProductionVariantSummary
impl Send for PendingProductionVariantSummary
impl Sync for PendingProductionVariantSummary
impl Unpin for PendingProductionVariantSummary
impl UnwindSafe for PendingProductionVariantSummary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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