pub struct Builder { /* private fields */ }
Expand description
A builder for PendingProductionVariantSummary
.
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 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 variant.
sourcepub fn deployed_images(self, input: DeployedImage) -> Self
pub fn deployed_images(self, input: DeployedImage) -> Self
Appends an item to deployed_images
.
To override the contents of this collection use set_deployed_images
.
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 set_deployed_images(self, input: Option<Vec<DeployedImage>>) -> Self
pub fn set_deployed_images(self, input: Option<Vec<DeployedImage>>) -> Self
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, input: f32) -> Self
pub fn current_weight(self, input: f32) -> Self
The weight associated with the variant.
sourcepub fn set_current_weight(self, input: Option<f32>) -> Self
pub fn set_current_weight(self, input: Option<f32>) -> Self
The weight associated with the variant.
sourcepub fn desired_weight(self, input: f32) -> Self
pub fn desired_weight(self, input: f32) -> Self
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 set_desired_weight(self, input: Option<f32>) -> Self
pub fn set_desired_weight(self, input: Option<f32>) -> Self
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, input: i32) -> Self
pub fn current_instance_count(self, input: i32) -> Self
The number of instances associated with the variant.
sourcepub fn set_current_instance_count(self, input: Option<i32>) -> Self
pub fn set_current_instance_count(self, input: Option<i32>) -> Self
The number of instances associated with the variant.
sourcepub fn desired_instance_count(self, input: i32) -> Self
pub fn desired_instance_count(self, input: i32) -> Self
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 set_desired_instance_count(self, input: Option<i32>) -> Self
pub fn set_desired_instance_count(self, input: Option<i32>) -> Self
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, input: ProductionVariantInstanceType) -> Self
pub fn instance_type(self, input: ProductionVariantInstanceType) -> Self
The type of instances associated with the variant.
sourcepub fn set_instance_type(
self,
input: Option<ProductionVariantInstanceType>
) -> Self
pub fn set_instance_type(
self,
input: Option<ProductionVariantInstanceType>
) -> Self
The type of instances associated with the variant.
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 variant_status(self, input: ProductionVariantStatus) -> Self
pub fn variant_status(self, input: ProductionVariantStatus) -> Self
Appends an item to variant_status
.
To override the contents of this collection use set_variant_status
.
The endpoint variant status which describes the current deployment stage status or operational status.
sourcepub fn set_variant_status(
self,
input: Option<Vec<ProductionVariantStatus>>
) -> Self
pub fn set_variant_status(
self,
input: Option<Vec<ProductionVariantStatus>>
) -> Self
The endpoint variant status which describes the current deployment stage status or operational status.
sourcepub fn current_serverless_config(
self,
input: ProductionVariantServerlessConfig
) -> Self
pub fn current_serverless_config(
self,
input: ProductionVariantServerlessConfig
) -> Self
The serverless configuration for the endpoint.
sourcepub fn set_current_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
pub fn set_current_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
The serverless configuration for the endpoint.
sourcepub fn desired_serverless_config(
self,
input: ProductionVariantServerlessConfig
) -> Self
pub fn desired_serverless_config(
self,
input: ProductionVariantServerlessConfig
) -> Self
The serverless configuration requested for this deployment, as specified in the endpoint configuration for the endpoint.
sourcepub fn set_desired_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
pub fn set_desired_serverless_config(
self,
input: Option<ProductionVariantServerlessConfig>
) -> Self
The serverless configuration requested for this deployment, as specified in the endpoint configuration for the endpoint.
sourcepub fn build(self) -> PendingProductionVariantSummary
pub fn build(self) -> PendingProductionVariantSummary
Consumes the builder and constructs a PendingProductionVariantSummary
.