# BlueGreenDeploymentConfigurationProperty

Information about blue/green deployment options for a deployment group.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    }
};
```

Golang:

```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

- `deploymentReadyOption`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentGroup.DeploymentReadyOptionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentGroup.DeploymentReadyOptionProperty.html) — Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment.

- `greenFleetProvisioningOption`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentGroup.GreenFleetProvisioningOptionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentGroup.GreenFleetProvisioningOptionProperty.html) — Information about how instances are provisioned for a replacement environment in a blue/green deployment.

- `terminateBlueInstancesOnDeploymentSuccess`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentGroup.BlueInstanceTerminationOptionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentGroup.BlueInstanceTerminationOptionProperty.html) — Information about whether to terminate instances in the original fleet during a blue/green deployment.
