Class CfnDeploymentGroup.BlueInstanceTerminationOptionProperty
Information about whether instances in the original environment are terminated when a blue/green deployment is successful.
Inheritance
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BlueInstanceTerminationOptionProperty : Object, CfnDeploymentGroup.IBlueInstanceTerminationOptionProperty
Syntax (vb)
Public Class BlueInstanceTerminationOptionProperty
Inherits Object
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() |
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()
public BlueInstanceTerminationOptionProperty()
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
System.String
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 Nullable<double> TerminationWaitTimeInMinutes { get; set; }
Property Value
System.Nullable<System.Double>
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).