Struct aws_sdk_sagemaker::model::ProductionVariant
source · [−]#[non_exhaustive]pub struct ProductionVariant { /* private fields */ }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 SageMaker how to distribute traffic among the models by specifying variant weights.
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.
sourcepub fn volume_size_in_gb(&self) -> Option<i32>
pub fn volume_size_in_gb(&self) -> Option<i32>
The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Currenly only Amazon EBS gp2 storage volumes are supported.
sourcepub fn model_data_download_timeout_in_seconds(&self) -> Option<i32>
pub fn model_data_download_timeout_in_seconds(&self) -> Option<i32>
The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant.
sourcepub fn container_startup_health_check_timeout_in_seconds(&self) -> Option<i32>
pub fn container_startup_health_check_timeout_in_seconds(&self) -> Option<i32>
The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests.
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
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more