Struct aws_sdk_sagemaker::types::RollingUpdatePolicy
source · #[non_exhaustive]pub struct RollingUpdatePolicy {
pub maximum_batch_size: Option<CapacitySize>,
pub wait_interval_in_seconds: Option<i32>,
pub maximum_execution_timeout_in_seconds: Option<i32>,
pub rollback_maximum_batch_size: Option<CapacitySize>,
}
Expand description
Specifies a rolling deployment strategy for updating a SageMaker endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.maximum_batch_size: 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.
wait_interval_in_seconds: Option<i32>
The length of the baking period, during which SageMaker monitors alarms for each batch on the new fleet.
maximum_execution_timeout_in_seconds: Option<i32>
The time limit for the total deployment. Exceeding this limit causes a timeout.
rollback_maximum_batch_size: 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.
Implementations§
source§impl RollingUpdatePolicy
impl RollingUpdatePolicy
sourcepub fn maximum_batch_size(&self) -> Option<&CapacitySize>
pub fn 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) -> Option<i32>
pub fn 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) -> Option<i32>
pub fn 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) -> Option<&CapacitySize>
pub fn 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.
source§impl RollingUpdatePolicy
impl RollingUpdatePolicy
sourcepub fn builder() -> RollingUpdatePolicyBuilder
pub fn builder() -> RollingUpdatePolicyBuilder
Creates a new builder-style object to manufacture RollingUpdatePolicy
.
Trait Implementations§
source§impl Clone for RollingUpdatePolicy
impl Clone for RollingUpdatePolicy
source§fn clone(&self) -> RollingUpdatePolicy
fn clone(&self) -> RollingUpdatePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RollingUpdatePolicy
impl Debug for RollingUpdatePolicy
source§impl PartialEq for RollingUpdatePolicy
impl PartialEq for RollingUpdatePolicy
impl StructuralPartialEq for RollingUpdatePolicy
Auto Trait Implementations§
impl Freeze for RollingUpdatePolicy
impl RefUnwindSafe for RollingUpdatePolicy
impl Send for RollingUpdatePolicy
impl Sync for RollingUpdatePolicy
impl Unpin for RollingUpdatePolicy
impl UnwindSafe for RollingUpdatePolicy
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