public static interface CfnDeploymentGroup.BlueInstanceTerminationOptionProperty
BlueInstanceTerminationOption
does not apply to Lambda deployments.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.codedeploy.*; BlueInstanceTerminationOptionProperty blueInstanceTerminationOptionProperty = BlueInstanceTerminationOptionProperty.builder() .action("action") .terminationWaitTimeInMinutes(123) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder
A builder for
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty |
static class |
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Jsii$Proxy
An implementation for
CfnDeploymentGroup.BlueInstanceTerminationOptionProperty |
Modifier and Type | Method and Description |
---|---|
static CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.Builder |
builder() |
default java.lang.String |
getAction()
The action to take on instances in the original environment after a successful blue/green deployment.
|
default java.lang.Number |
getTerminationWaitTimeInMinutes()
For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
|
default java.lang.String getAction()
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.default java.lang.Number getTerminationWaitTimeInMinutes()
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).