# EcsDeploymentConfigProps

Construction properties of `EcsDeploymentConfig`.

Extends: [BaseDeploymentConfigOptions](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.BaseDeploymentConfigOptions.html)
Used as props by: [EcsDeploymentConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.EcsDeploymentConfig.html)

- Source: [`aws-codedeploy/lib/ecs/deployment-config.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-codedeploy/lib/ecs/deployment-config.ts#L28)
- Type last changed: v2.45.0 · 6 Oct 2022

## Example

TypeScript:

```ts
new codedeploy.EcsDeploymentConfig(this, 'CustomConfig', {
  trafficRouting: new codedeploy.TimeBasedCanaryTrafficRouting({
    interval: Duration.minutes(15),
    percentage: 5,
  }),
});
```

Python:

```python
codedeploy.EcsDeploymentConfig(self, "CustomConfig",
    traffic_routing=codedeploy.TimeBasedCanaryTrafficRouting(
        interval=Duration.minutes(15),
        percentage=5
    )
)
```

Java:

```java
EcsDeploymentConfig.Builder.create(this, "CustomConfig")
        .trafficRouting(TimeBasedCanaryTrafficRouting.Builder.create()
                .interval(Duration.minutes(15))
                .percentage(5)
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
new EcsDeploymentConfig(this, "CustomConfig", new EcsDeploymentConfigProps {
    TrafficRouting = new TimeBasedCanaryTrafficRouting(new TimeBasedCanaryTrafficRoutingProps {
        Interval = Duration.Minutes(15),
        Percentage = 5
    })
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
codedeploy.NewEcsDeploymentConfig(this, jsii.String("CustomConfig"), &EcsDeploymentConfigProps{
	TrafficRouting: codedeploy.NewTimeBasedCanaryTrafficRouting(&TimeBasedCanaryTrafficRoutingProps{
		Interval: awscdk.Duration_Minutes(jsii.Number(15)),
		Percentage: jsii.Number(5),
	}),
})
```

## Properties

- `deploymentConfigName`: string — The physical, human-readable name of the Deployment Configuration.

  **Default:** automatically generated name

- `trafficRouting`: [TrafficRouting](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.TrafficRouting.html) = AllAtOnce — The configuration that specifies how traffic is shifted from the 'blue' target group to the 'green' target group during a deployment.
