#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for PendingProductionVariantSummary
Implementations
sourceimpl 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.
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 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.
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,
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.
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 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.
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 build(self) -> PendingProductionVariantSummary
pub fn build(self) -> PendingProductionVariantSummary
Consumes the builder and constructs a PendingProductionVariantSummary
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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