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§
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 Default for BlueInstanceTerminationOption
impl Default for BlueInstanceTerminationOption
Source§fn default() -> BlueInstanceTerminationOption
fn default() -> BlueInstanceTerminationOption
Source§impl<'de> Deserialize<'de> for BlueInstanceTerminationOption
impl<'de> Deserialize<'de> for BlueInstanceTerminationOption
Source§fn 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>,
Source§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 ==.