#[non_exhaustive]pub struct BlueInstanceTerminationOption {
pub action: Option<InstanceAction>,
pub termination_wait_time_in_minutes: i32,
}
Expand description
Information about whether instances in the original environment are terminated when a blue/green deployment is successful. BlueInstanceTerminationOption
does not apply to Lambda deployments.
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.action: Option<InstanceAction>
The action to take on instances in the original environment after a successful blue/green deployment.
-
TERMINATE
: Instances are terminated after a specified wait time. -
KEEP_ALIVE
: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
termination_wait_time_in_minutes: i32
For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.
The maximum setting is 2880 minutes (2 days).
Implementations§
source§impl BlueInstanceTerminationOption
impl BlueInstanceTerminationOption
sourcepub fn action(&self) -> Option<&InstanceAction>
pub fn action(&self) -> Option<&InstanceAction>
The action to take on instances in the original environment after a successful blue/green deployment.
-
TERMINATE
: Instances are terminated after a specified wait time. -
KEEP_ALIVE
: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
sourcepub fn termination_wait_time_in_minutes(&self) -> i32
pub fn termination_wait_time_in_minutes(&self) -> i32
For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.
The maximum setting is 2880 minutes (2 days).
source§impl BlueInstanceTerminationOption
impl BlueInstanceTerminationOption
sourcepub fn builder() -> BlueInstanceTerminationOptionBuilder
pub fn builder() -> BlueInstanceTerminationOptionBuilder
Creates a new builder-style object to manufacture BlueInstanceTerminationOption
.
Trait Implementations§
source§impl Clone for BlueInstanceTerminationOption
impl Clone for BlueInstanceTerminationOption
source§fn clone(&self) -> BlueInstanceTerminationOption
fn clone(&self) -> BlueInstanceTerminationOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for BlueInstanceTerminationOption
impl PartialEq for BlueInstanceTerminationOption
source§fn eq(&self, other: &BlueInstanceTerminationOption) -> bool
fn eq(&self, other: &BlueInstanceTerminationOption) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BlueInstanceTerminationOption
Auto Trait Implementations§
impl Freeze for BlueInstanceTerminationOption
impl RefUnwindSafe for BlueInstanceTerminationOption
impl Send for BlueInstanceTerminationOption
impl Sync for BlueInstanceTerminationOption
impl Unpin for BlueInstanceTerminationOption
impl UnwindSafe for BlueInstanceTerminationOption
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> 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