# GreenFleetProvisioningOptionProperty

Information about the instances that belong to the replacement environment in a blue/green deployment.

- 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 greenFleetProvisioningOptionProperty: codedeploy.CfnDeploymentGroup.GreenFleetProvisioningOptionProperty = {
  action: 'action',
};
```

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

green_fleet_provisioning_option_property = codedeploy.CfnDeploymentGroup.GreenFleetProvisioningOptionProperty(
    action="action"
)
```

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.*;

GreenFleetProvisioningOptionProperty greenFleetProvisioningOptionProperty = GreenFleetProvisioningOptionProperty.builder()
        .action("action")
        .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 greenFleetProvisioningOptionProperty = new GreenFleetProvisioningOptionProperty {
    Action = "action"
};
```

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"

greenFleetProvisioningOptionProperty := &GreenFleetProvisioningOptionProperty{
	Action: jsii.String("action"),
}
```

## Properties

- `action`: string — The method used to add instances to a replacement environment.

  - `DISCOVER_EXISTING` : Use instances that already exist or will be created manually.
  - `COPY_AUTO_SCALING_GROUP` : Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group.
