BlueInstanceTerminationOptionProperty Struct
Information about whether instances in the original environment are terminated when a blue/green deployment is successful.
BlueInstanceTerminationOption does not apply to Lambda deployments.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const blueInstanceTerminationOptionProperty: codedeploy.CfnDeploymentGroup.BlueInstanceTerminationOptionProperty = {
action: 'action',
terminationWaitTimeInMinutes: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codedeploy as codedeploy
blue_instance_termination_option_property = codedeploy.CfnDeploymentGroup.BlueInstanceTerminationOptionProperty(
action="action",
termination_wait_time_in_minutes=123
)
java
// 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var blueInstanceTerminationOptionProperty = new BlueInstanceTerminationOptionProperty {
Action = "action",
TerminationWaitTimeInMinutes = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
blueInstanceTerminationOptionProperty := &BlueInstanceTerminationOptionProperty{
Action: jsii.String("action"),
TerminationWaitTimeInMinutes: jsii.Number(123),
}
Properties
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.
terminationWaitTimeInMinutesoptionalnumbertermination_wait_time_in_minutesoptionalint | floatterminationWaitTimeInMinutesoptionalNumberTerminationWaitTimeInMinutesoptionaldoubleTerminationWaitTimeInMinutesoptional*float64#For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
notes
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).