Struct aws_sdk_sagemaker::model::ProductionVariant
source · [−]#[non_exhaustive]pub struct ProductionVariant {
pub variant_name: Option<String>,
pub model_name: Option<String>,
pub initial_instance_count: Option<i32>,
pub instance_type: Option<ProductionVariantInstanceType>,
pub initial_variant_weight: Option<f32>,
pub accelerator_type: Option<ProductionVariantAcceleratorType>,
pub core_dump_config: Option<ProductionVariantCoreDumpConfig>,
pub serverless_config: Option<ProductionVariantServerlessConfig>,
}
Expand description
Identifies a model that you want to host and the resources chosen to deploy for hosting it. If you are deploying multiple models, tell Amazon SageMaker how to distribute traffic among the models by specifying variant weights.
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 production variant.
model_name: Option<String>
The name of the model that you want to host. This is the name that you specified when creating the model.
initial_instance_count: Option<i32>
Number of instances to launch initially.
instance_type: Option<ProductionVariantInstanceType>
The ML compute instance type.
initial_variant_weight: Option<f32>
Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. The traffic to a production variant is determined by the ratio of the VariantWeight
to the sum of all VariantWeight
values across all ProductionVariants. If unspecified, it defaults to 1.0.
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.
core_dump_config: Option<ProductionVariantCoreDumpConfig>
Specifies configuration for a core dump from the model container when the process crashes.
serverless_config: Option<ProductionVariantServerlessConfig>
The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
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 ProductionVariant
impl ProductionVariant
sourcepub fn variant_name(&self) -> Option<&str>
pub fn variant_name(&self) -> Option<&str>
The name of the production variant.
sourcepub fn model_name(&self) -> Option<&str>
pub fn model_name(&self) -> Option<&str>
The name of the model that you want to host. This is the name that you specified when creating the model.
sourcepub fn initial_instance_count(&self) -> Option<i32>
pub fn initial_instance_count(&self) -> Option<i32>
Number of instances to launch initially.
sourcepub fn instance_type(&self) -> Option<&ProductionVariantInstanceType>
pub fn instance_type(&self) -> Option<&ProductionVariantInstanceType>
The ML compute instance type.
sourcepub fn initial_variant_weight(&self) -> Option<f32>
pub fn initial_variant_weight(&self) -> Option<f32>
Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. The traffic to a production variant is determined by the ratio of the VariantWeight
to the sum of all VariantWeight
values across all ProductionVariants. If unspecified, it defaults to 1.0.
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 core_dump_config(&self) -> Option<&ProductionVariantCoreDumpConfig>
pub fn core_dump_config(&self) -> Option<&ProductionVariantCoreDumpConfig>
Specifies configuration for a core dump from the model container when the process crashes.
sourcepub fn serverless_config(&self) -> Option<&ProductionVariantServerlessConfig>
pub fn serverless_config(&self) -> Option<&ProductionVariantServerlessConfig>
The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
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 ProductionVariant
impl ProductionVariant
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ProductionVariant
Trait Implementations
sourceimpl Clone for ProductionVariant
impl Clone for ProductionVariant
sourcefn clone(&self) -> ProductionVariant
fn clone(&self) -> ProductionVariant
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 ProductionVariant
impl Debug for ProductionVariant
sourceimpl PartialEq<ProductionVariant> for ProductionVariant
impl PartialEq<ProductionVariant> for ProductionVariant
sourcefn eq(&self, other: &ProductionVariant) -> bool
fn eq(&self, other: &ProductionVariant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProductionVariant) -> bool
fn ne(&self, other: &ProductionVariant) -> bool
This method tests for !=
.
impl StructuralPartialEq for ProductionVariant
Auto Trait Implementations
impl RefUnwindSafe for ProductionVariant
impl Send for ProductionVariant
impl Sync for ProductionVariant
impl Unpin for ProductionVariant
impl UnwindSafe for ProductionVariant
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