interface BlueInstanceTerminationOptionProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeDeploy.CfnDeploymentGroup.BlueInstanceTerminationOptionProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodedeploy#CfnDeploymentGroup_BlueInstanceTerminationOptionProperty |
Java | software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.BlueInstanceTerminationOptionProperty |
Python | aws_cdk.aws_codedeploy.CfnDeploymentGroup.BlueInstanceTerminationOptionProperty |
TypeScript | aws-cdk-lib » aws_codedeploy » CfnDeploymentGroup » BlueInstanceTerminationOptionProperty |
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
// 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,
};
Properties
Name | Type | Description |
---|---|---|
action? | string | The action to take on instances in the original environment after a successful blue/green deployment. |
termination | number | For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment. |
action?
Type:
string
(optional)
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.
terminationWaitTimeInMinutes?
Type:
number
(optional)
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).