Class CfnDeploymentGroup.BlueInstanceTerminationOptionProperty
Information about whether instances in the original environment are terminated when a blue/green deployment is successful.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDeploymentGroup.BlueInstanceTerminationOptionProperty : CfnDeploymentGroup.IBlueInstanceTerminationOptionProperty
Syntax (vb)
Public Class CfnDeploymentGroup.BlueInstanceTerminationOptionProperty Implements CfnDeploymentGroup.IBlueInstanceTerminationOptionProperty
Remarks
BlueInstanceTerminationOption does not apply to Lambda deployments.
ExampleMetadata: fixture=_generated
Examples
// 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
};
Synopsis
Constructors
| BlueInstanceTerminationOptionProperty() | Information about whether instances in the original environment are terminated when a blue/green deployment is successful. |
Properties
| Action | The action to take on instances in the original environment after a successful blue/green deployment. |
| 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. |
Constructors
BlueInstanceTerminationOptionProperty()
Information about whether instances in the original environment are terminated when a blue/green deployment is successful.
public BlueInstanceTerminationOptionProperty()
Remarks
BlueInstanceTerminationOption does not apply to Lambda deployments.
ExampleMetadata: fixture=_generated
Examples
// 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
};
Properties
Action
The action to take on instances in the original environment after a successful blue/green deployment.
public string? Action { get; set; }
Property Value
Remarks
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.
public double? TerminationWaitTimeInMinutes { get; set; }
Property Value
Remarks
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).