Struct aws_sdk_sagemaker::model::production_variant::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ProductionVariant
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 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.
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_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.
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) -> ProductionVariant
pub fn build(self) -> ProductionVariant
Consumes the builder and constructs a ProductionVariant
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