Class CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.BlueInstanceTerminationOptionProperty>
- Enclosing interface:
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.BlueInstanceTerminationOptionProperty>
A builder for
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDeploymentGroup.BlueInstanceTerminationOptionProperty.getAction()
build()
Builds the configured instance.terminationWaitTimeInMinutes
(Number terminationWaitTimeInMinutes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
@Stability(Stable) public CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder action(String action) Sets the value ofCfnDeploymentGroup.BlueInstanceTerminationOptionProperty.getAction()
- 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 CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder terminationWaitTimeInMinutes(Number terminationWaitTimeInMinutes) Sets the value ofCfnDeploymentGroup.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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.BlueInstanceTerminationOptionProperty>
- Returns:
- a new instance of
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-