pub struct BlueInstanceTerminationOption {
pub action: Option<String>,
pub termination_wait_time_in_minutes: Option<i64>,
}
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
action: Option<String>
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: Option<i64>
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).
Trait Implementations
sourceimpl Clone for BlueInstanceTerminationOption
impl Clone for BlueInstanceTerminationOption
sourcefn clone(&self) -> BlueInstanceTerminationOption
fn clone(&self) -> BlueInstanceTerminationOption
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 BlueInstanceTerminationOption
impl Debug for BlueInstanceTerminationOption
sourceimpl Default for BlueInstanceTerminationOption
impl Default for BlueInstanceTerminationOption
sourcefn default() -> BlueInstanceTerminationOption
fn default() -> BlueInstanceTerminationOption
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BlueInstanceTerminationOption
impl<'de> Deserialize<'de> for BlueInstanceTerminationOption
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<BlueInstanceTerminationOption> for BlueInstanceTerminationOption
impl PartialEq<BlueInstanceTerminationOption> for BlueInstanceTerminationOption
sourcefn eq(&self, other: &BlueInstanceTerminationOption) -> bool
fn eq(&self, other: &BlueInstanceTerminationOption) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BlueInstanceTerminationOption) -> bool
fn ne(&self, other: &BlueInstanceTerminationOption) -> bool
This method tests for !=
.
impl StructuralPartialEq for BlueInstanceTerminationOption
Auto Trait Implementations
impl RefUnwindSafe for BlueInstanceTerminationOption
impl Send for BlueInstanceTerminationOption
impl Sync for BlueInstanceTerminationOption
impl Unpin for BlueInstanceTerminationOption
impl UnwindSafe for BlueInstanceTerminationOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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