#[non_exhaustive]pub struct BlueInstanceTerminationOptionBuilder { /* private fields */ }
Expand description
A builder for BlueInstanceTerminationOption
.
Implementations§
source§impl BlueInstanceTerminationOptionBuilder
impl BlueInstanceTerminationOptionBuilder
sourcepub fn action(self, input: InstanceAction) -> Self
pub fn action(self, input: InstanceAction) -> Self
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 set_action(self, input: Option<InstanceAction>) -> Self
pub fn set_action(self, input: Option<InstanceAction>) -> Self
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 get_action(&self) -> &Option<InstanceAction>
pub fn get_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, input: i32) -> Self
pub fn termination_wait_time_in_minutes(self, input: i32) -> Self
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).
sourcepub fn set_termination_wait_time_in_minutes(self, input: Option<i32>) -> Self
pub fn set_termination_wait_time_in_minutes(self, input: Option<i32>) -> Self
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).
sourcepub fn get_termination_wait_time_in_minutes(&self) -> &Option<i32>
pub fn get_termination_wait_time_in_minutes(&self) -> &Option<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).
sourcepub fn build(self) -> BlueInstanceTerminationOption
pub fn build(self) -> BlueInstanceTerminationOption
Consumes the builder and constructs a BlueInstanceTerminationOption
.
Trait Implementations§
source§impl Clone for BlueInstanceTerminationOptionBuilder
impl Clone for BlueInstanceTerminationOptionBuilder
source§fn clone(&self) -> BlueInstanceTerminationOptionBuilder
fn clone(&self) -> BlueInstanceTerminationOptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for BlueInstanceTerminationOptionBuilder
impl Default for BlueInstanceTerminationOptionBuilder
source§fn default() -> BlueInstanceTerminationOptionBuilder
fn default() -> BlueInstanceTerminationOptionBuilder
source§impl PartialEq for BlueInstanceTerminationOptionBuilder
impl PartialEq for BlueInstanceTerminationOptionBuilder
source§fn eq(&self, other: &BlueInstanceTerminationOptionBuilder) -> bool
fn eq(&self, other: &BlueInstanceTerminationOptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.