# LambdaDeploymentConfigProps

Construction properties of `LambdaDeploymentConfig`.

Extends: LambdaDeploymentConfigProps
Extends: BaseDeploymentConfigOptions
Used as props by: LambdaDeploymentConfig

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

## Example

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

declare const application: codedeploy.LambdaApplication;
declare const alias: lambda.Alias;
const deploymentGroup = new codedeploy.LambdaDeploymentGroup(this, 'BlueGreenDeployment', {
  application,
  alias,
  deploymentConfig: config,
});
```

## 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.
