# DeploymentStyleProperty

Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.

- 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 deploymentStyleProperty: codedeploy.CfnDeploymentGroup.DeploymentStyleProperty = {
  deploymentOption: 'deploymentOption',
  deploymentType: 'deploymentType',
};
```

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

deployment_style_property = codedeploy.CfnDeploymentGroup.DeploymentStyleProperty(
    deployment_option="deploymentOption",
    deployment_type="deploymentType"
)
```

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

DeploymentStyleProperty deploymentStyleProperty = DeploymentStyleProperty.builder()
        .deploymentOption("deploymentOption")
        .deploymentType("deploymentType")
        .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 deploymentStyleProperty = new DeploymentStyleProperty {
    DeploymentOption = "deploymentOption",
    DeploymentType = "deploymentType"
};
```

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"

deploymentStyleProperty := &DeploymentStyleProperty{
	DeploymentOption: jsii.String("deploymentOption"),
	DeploymentType: jsii.String("deploymentType"),
}
```

## Properties

- `deploymentOption`: string — Indicates whether to route deployment traffic behind a load balancer.

  > An Amazon EC2 Application Load Balancer or Network Load Balancer is required for an Amazon ECS deployment.

- `deploymentType`: string — Indicates whether to run an in-place or blue/green deployment.
