Struct aws_sdk_sagemaker::model::production_variant::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ProductionVariant
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn variant_name(self, input: impl Into<String>) -> Self
pub fn variant_name(self, input: impl Into<String>) -> Self
The name of the production variant.
sourcepub fn set_variant_name(self, input: Option<String>) -> Self
pub fn set_variant_name(self, input: Option<String>) -> Self
The name of the production variant.
sourcepub fn model_name(self, input: impl Into<String>) -> Self
pub fn model_name(self, input: impl Into<String>) -> Self
The name of the model that you want to host. This is the name that you specified when creating the model.
sourcepub fn set_model_name(self, input: Option<String>) -> Self
pub fn set_model_name(self, input: Option<String>) -> Self
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, input: i32) -> Self
pub fn initial_instance_count(self, input: i32) -> Self
Number of instances to launch initially.
sourcepub fn set_initial_instance_count(self, input: Option<i32>) -> Self
pub fn set_initial_instance_count(self, input: Option<i32>) -> Self
Number of instances to launch initially.
sourcepub fn instance_type(self, input: ProductionVariantInstanceType) -> Self
pub fn instance_type(self, input: ProductionVariantInstanceType) -> Self
The ML compute instance type.
sourcepub fn set_instance_type(
self,
input: Option<ProductionVariantInstanceType>
) -> Self
pub fn set_instance_type(
self,
input: Option<ProductionVariantInstanceType>
) -> Self
The ML compute instance type.
sourcepub fn initial_variant_weight(self, input: f32) -> Self
pub fn initial_variant_weight(self, input: f32) -> Self
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 set_initial_variant_weight(self, input: Option<f32>) -> Self
pub fn set_initial_variant_weight(self, input: Option<f32>) -> Self
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, input: ProductionVariantAcceleratorType) -> Self
pub fn accelerator_type(self, input: ProductionVariantAcceleratorType) -> Self
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 set_accelerator_type(
self,
input: Option<ProductionVariantAcceleratorType>
) -> Self
pub fn set_accelerator_type(
self,
input: Option<ProductionVariantAcceleratorType>
) -> Self
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, input: ProductionVariantCoreDumpConfig) -> Self
pub fn core_dump_config(self, input: ProductionVariantCoreDumpConfig) -> Self
Specifies configuration for a core dump from the model container when the process crashes.
sourcepub fn set_core_dump_config(
self,
input: Option<ProductionVariantCoreDumpConfig>
) -> Self
pub fn set_core_dump_config(
self,
input: Option<ProductionVariantCoreDumpConfig>
) -> Self
Specifies configuration for a core dump from the model container when the process crashes.
sourcepub fn serverless_config(self, input: ProductionVariantServerlessConfig) -> Self
pub fn serverless_config(self, input: ProductionVariantServerlessConfig) -> Self
The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
sourcepub fn set_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
pub fn set_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
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, input: i32) -> Self
pub fn volume_size_in_gb(self, input: i32) -> Self
The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Currently only Amazon EBS gp2 storage volumes are supported.
sourcepub fn set_volume_size_in_gb(self, input: Option<i32>) -> Self
pub fn set_volume_size_in_gb(self, input: Option<i32>) -> Self
The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Currently only Amazon EBS gp2 storage volumes are supported.
sourcepub fn model_data_download_timeout_in_seconds(self, input: i32) -> Self
pub fn model_data_download_timeout_in_seconds(self, input: i32) -> Self
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 set_model_data_download_timeout_in_seconds(
self,
input: Option<i32>
) -> Self
pub fn set_model_data_download_timeout_in_seconds(
self,
input: Option<i32>
) -> Self
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,
input: i32
) -> Self
pub fn container_startup_health_check_timeout_in_seconds(
self,
input: i32
) -> Self
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.
sourcepub fn set_container_startup_health_check_timeout_in_seconds(
self,
input: Option<i32>
) -> Self
pub fn set_container_startup_health_check_timeout_in_seconds(
self,
input: Option<i32>
) -> Self
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.
sourcepub fn build(self) -> ProductionVariant
pub fn build(self) -> ProductionVariant
Consumes the builder and constructs a ProductionVariant
.