BlueGreenDeploymentConfigurationProperty Struct
Information about blue/green deployment options for a deployment group.
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 blueGreenDeploymentConfigurationProperty: codedeploy.CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty = {
deploymentReadyOption: {
actionOnTimeout: 'actionOnTimeout',
waitTimeInMinutes: 123,
},
greenFleetProvisioningOption: {
action: 'action',
},
terminateBlueInstancesOnDeploymentSuccess: {
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_green_deployment_configuration_property = codedeploy.CfnDeploymentGroup.BlueGreenDeploymentConfigurationProperty(
deployment_ready_option=codedeploy.CfnDeploymentGroup.DeploymentReadyOptionProperty(
action_on_timeout="actionOnTimeout",
wait_time_in_minutes=123
),
green_fleet_provisioning_option=codedeploy.CfnDeploymentGroup.GreenFleetProvisioningOptionProperty(
action="action"
),
terminate_blue_instances_on_deployment_success=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.*;
BlueGreenDeploymentConfigurationProperty blueGreenDeploymentConfigurationProperty = BlueGreenDeploymentConfigurationProperty.builder()
.deploymentReadyOption(DeploymentReadyOptionProperty.builder()
.actionOnTimeout("actionOnTimeout")
.waitTimeInMinutes(123)
.build())
.greenFleetProvisioningOption(GreenFleetProvisioningOptionProperty.builder()
.action("action")
.build())
.terminateBlueInstancesOnDeploymentSuccess(BlueInstanceTerminationOptionProperty.builder()
.action("action")
.terminationWaitTimeInMinutes(123)
.build())
.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 blueGreenDeploymentConfigurationProperty = new BlueGreenDeploymentConfigurationProperty {
DeploymentReadyOption = new DeploymentReadyOptionProperty {
ActionOnTimeout = "actionOnTimeout",
WaitTimeInMinutes = 123
},
GreenFleetProvisioningOption = new GreenFleetProvisioningOptionProperty {
Action = "action"
},
TerminateBlueInstancesOnDeploymentSuccess = 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"
blueGreenDeploymentConfigurationProperty := &BlueGreenDeploymentConfigurationProperty{
DeploymentReadyOption: &DeploymentReadyOptionProperty{
ActionOnTimeout: jsii.String("actionOnTimeout"),
WaitTimeInMinutes: jsii.Number(123),
},
GreenFleetProvisioningOption: &GreenFleetProvisioningOptionProperty{
Action: jsii.String("action"),
},
TerminateBlueInstancesOnDeploymentSuccess: &BlueInstanceTerminationOptionProperty{
Action: jsii.String("action"),
TerminationWaitTimeInMinutes: jsii.Number(123),
},
}
Properties
deploymentReadyOptionoptionalIResolvable | CfnDeploymentGroup.DeploymentReadyOptionPropertydeployment_ready_optionoptionaltyping.Union[IResolvable, DeploymentReadyOptionProperty]deploymentReadyOptionoptionalIResolvableDeploymentReadyOptionoptionalIResolvableDeploymentReadyOptionoptionalinterface{}#Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment.
greenFleetProvisioningOptionoptionalIResolvable | CfnDeploymentGroup.GreenFleetProvisioningOptionPropertygreen_fleet_provisioning_optionoptionaltyping.Union[IResolvable, GreenFleetProvisioningOptionProperty]greenFleetProvisioningOptionoptionalIResolvableGreenFleetProvisioningOptionoptionalIResolvableGreenFleetProvisioningOptionoptionalinterface{}#Information about how instances are provisioned for a replacement environment in a blue/green deployment.
terminateBlueInstancesOnDeploymentSuccessoptionalIResolvable | CfnDeploymentGroup.BlueInstanceTerminationOptionPropertyterminate_blue_instances_on_deployment_successoptionaltyping.Union[IResolvable, BlueInstanceTerminationOptionProperty]terminateBlueInstancesOnDeploymentSuccessoptionalIResolvableTerminateBlueInstancesOnDeploymentSuccessoptionalIResolvableTerminateBlueInstancesOnDeploymentSuccessoptionalinterface{}#Information about whether to terminate instances in the original fleet during a blue/green deployment.