Struct aws_sdk_sagemaker::model::BlueGreenUpdatePolicy
source · [−]#[non_exhaustive]pub struct BlueGreenUpdatePolicy {
pub traffic_routing_configuration: Option<TrafficRoutingConfig>,
pub termination_wait_in_seconds: Option<i32>,
pub maximum_execution_timeout_in_seconds: Option<i32>,
}
Expand description
Update policy for a blue/green deployment. If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default.
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.traffic_routing_configuration: Option<TrafficRoutingConfig>
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
termination_wait_in_seconds: Option<i32>
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.
maximum_execution_timeout_in_seconds: Option<i32>
Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified in TerminationWaitInSeconds
and WaitIntervalInSeconds
.
Implementations
sourceimpl BlueGreenUpdatePolicy
impl BlueGreenUpdatePolicy
sourcepub fn traffic_routing_configuration(&self) -> Option<&TrafficRoutingConfig>
pub fn traffic_routing_configuration(&self) -> Option<&TrafficRoutingConfig>
Defines the traffic routing strategy to shift traffic from the old fleet to the new fleet during an endpoint deployment.
sourcepub fn termination_wait_in_seconds(&self) -> Option<i32>
pub fn termination_wait_in_seconds(&self) -> Option<i32>
Additional waiting time in seconds after the completion of an endpoint deployment before terminating the old endpoint fleet. Default is 0.
sourcepub fn maximum_execution_timeout_in_seconds(&self) -> Option<i32>
pub fn maximum_execution_timeout_in_seconds(&self) -> Option<i32>
Maximum execution timeout for the deployment. Note that the timeout value should be larger than the total waiting time specified in TerminationWaitInSeconds
and WaitIntervalInSeconds
.
sourceimpl BlueGreenUpdatePolicy
impl BlueGreenUpdatePolicy
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture BlueGreenUpdatePolicy
Trait Implementations
sourceimpl Clone for BlueGreenUpdatePolicy
impl Clone for BlueGreenUpdatePolicy
sourcefn clone(&self) -> BlueGreenUpdatePolicy
fn clone(&self) -> BlueGreenUpdatePolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BlueGreenUpdatePolicy
impl Debug for BlueGreenUpdatePolicy
sourceimpl PartialEq<BlueGreenUpdatePolicy> for BlueGreenUpdatePolicy
impl PartialEq<BlueGreenUpdatePolicy> for BlueGreenUpdatePolicy
sourcefn eq(&self, other: &BlueGreenUpdatePolicy) -> bool
fn eq(&self, other: &BlueGreenUpdatePolicy) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BlueGreenUpdatePolicy) -> bool
fn ne(&self, other: &BlueGreenUpdatePolicy) -> bool
This method tests for !=
.
impl StructuralPartialEq for BlueGreenUpdatePolicy
Auto Trait Implementations
impl RefUnwindSafe for BlueGreenUpdatePolicy
impl Send for BlueGreenUpdatePolicy
impl Sync for BlueGreenUpdatePolicy
impl Unpin for BlueGreenUpdatePolicy
impl UnwindSafe for BlueGreenUpdatePolicy
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