public static final class CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder
extends java.lang.Object
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder |
action(java.lang.String action)
Sets the value of
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.getAction() |
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty |
build()
Builds the configured instance.
|
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder |
terminationWaitTimeInMinutes(java.lang.Number terminationWaitTimeInMinutes)
|
public CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder action(java.lang.String action)
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.getAction()
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.this
public CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder terminationWaitTimeInMinutes(java.lang.Number terminationWaitTimeInMinutes)
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.getTerminationWaitTimeInMinutes()
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).
this
public CfnDeploymentGroup.BlueInstanceTerminationOptionProperty build()
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty
java.lang.NullPointerException
- if any required attribute was not provided