Class CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.codedeploy.mixins.CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty>
- Enclosing interface:
CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty
@Stability(Stable)
public static final class CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.terminationWaitTimeInMinutes(Number terminationWaitTimeInMinutes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty.Builder action(String action) - Parameters:
action- 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.
- Returns:
this
-
terminationWaitTimeInMinutes
@Stability(Stable) public CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty.Builder terminationWaitTimeInMinutes(Number terminationWaitTimeInMinutes) Sets the value ofCfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty.getTerminationWaitTimeInMinutes()- Parameters:
terminationWaitTimeInMinutes- 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).
- Returns:
this
-
build
@Stability(Stable) public CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty>- Returns:
- a new instance of
CfnDeploymentGroupPropsMixin.BlueInstanceTerminationOptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-