#[non_exhaustive]pub struct RollingUpdatePolicyBuilder { /* private fields */ }
Expand description
A builder for RollingUpdatePolicy
.
Implementations§
source§impl RollingUpdatePolicyBuilder
impl RollingUpdatePolicyBuilder
sourcepub fn maximum_batch_size(self, input: CapacitySize) -> Self
pub fn maximum_batch_size(self, input: CapacitySize) -> Self
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.
This field is required.sourcepub fn set_maximum_batch_size(self, input: Option<CapacitySize>) -> Self
pub fn set_maximum_batch_size(self, input: Option<CapacitySize>) -> Self
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.
sourcepub fn get_maximum_batch_size(&self) -> &Option<CapacitySize>
pub fn get_maximum_batch_size(&self) -> &Option<CapacitySize>
Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet. Value must be between 5% to 50% of the variant's total instance count.
sourcepub fn wait_interval_in_seconds(self, input: i32) -> Self
pub fn wait_interval_in_seconds(self, input: i32) -> Self
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
This field is required.sourcepub fn set_wait_interval_in_seconds(self, input: Option<i32>) -> Self
pub fn set_wait_interval_in_seconds(self, input: Option<i32>) -> Self
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
sourcepub fn get_wait_interval_in_seconds(&self) -> &Option<i32>
pub fn get_wait_interval_in_seconds(&self) -> &Option<i32>
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
sourcepub fn maximum_execution_timeout_in_seconds(self, input: i32) -> Self
pub fn maximum_execution_timeout_in_seconds(self, input: i32) -> Self
The time limit for the total deployment. Exceeding this limit causes a timeout.
sourcepub fn set_maximum_execution_timeout_in_seconds(
self,
input: Option<i32>,
) -> Self
pub fn set_maximum_execution_timeout_in_seconds( self, input: Option<i32>, ) -> Self
The time limit for the total deployment. Exceeding this limit causes a timeout.
sourcepub fn get_maximum_execution_timeout_in_seconds(&self) -> &Option<i32>
pub fn get_maximum_execution_timeout_in_seconds(&self) -> &Option<i32>
The time limit for the total deployment. Exceeding this limit causes a timeout.
sourcepub fn rollback_maximum_batch_size(self, input: CapacitySize) -> Self
pub fn rollback_maximum_batch_size(self, input: CapacitySize) -> Self
Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
sourcepub fn set_rollback_maximum_batch_size(
self,
input: Option<CapacitySize>,
) -> Self
pub fn set_rollback_maximum_batch_size( self, input: Option<CapacitySize>, ) -> Self
Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
sourcepub fn get_rollback_maximum_batch_size(&self) -> &Option<CapacitySize>
pub fn get_rollback_maximum_batch_size(&self) -> &Option<CapacitySize>
Batch size for rollback to the old endpoint fleet. Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
sourcepub fn build(self) -> RollingUpdatePolicy
pub fn build(self) -> RollingUpdatePolicy
Consumes the builder and constructs a RollingUpdatePolicy
.
Trait Implementations§
source§impl Clone for RollingUpdatePolicyBuilder
impl Clone for RollingUpdatePolicyBuilder
source§fn clone(&self) -> RollingUpdatePolicyBuilder
fn clone(&self) -> RollingUpdatePolicyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RollingUpdatePolicyBuilder
impl Debug for RollingUpdatePolicyBuilder
source§impl Default for RollingUpdatePolicyBuilder
impl Default for RollingUpdatePolicyBuilder
source§fn default() -> RollingUpdatePolicyBuilder
fn default() -> RollingUpdatePolicyBuilder
source§impl PartialEq for RollingUpdatePolicyBuilder
impl PartialEq for RollingUpdatePolicyBuilder
source§fn eq(&self, other: &RollingUpdatePolicyBuilder) -> bool
fn eq(&self, other: &RollingUpdatePolicyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RollingUpdatePolicyBuilder
Auto Trait Implementations§
impl Freeze for RollingUpdatePolicyBuilder
impl RefUnwindSafe for RollingUpdatePolicyBuilder
impl Send for RollingUpdatePolicyBuilder
impl Sync for RollingUpdatePolicyBuilder
impl Unpin for RollingUpdatePolicyBuilder
impl UnwindSafe for RollingUpdatePolicyBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more