# LambdaDeploymentGroupProps

Construction properties for `LambdaDeploymentGroup`.

Extends: LambdaDeploymentGroupProps
Used as props by: LambdaDeploymentGroup

- Source: [`aws-codedeploy/lib/lambda/deployment-group.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-codedeploy/lib/lambda/deployment-group.ts#L54)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

```ts
declare const myApplication: codedeploy.LambdaApplication;
declare const func: lambda.Function;
const version = func.currentVersion;
const version1Alias = new lambda.Alias(this, 'alias', {
  aliasName: 'prod',
  version,
});

const deploymentGroup = new codedeploy.LambdaDeploymentGroup(this, 'BlueGreenDeployment', {
  application: myApplication, // optional property: one will be created for you if not provided
  alias: version1Alias,
  deploymentConfig: codedeploy.LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE,
});
```

## Properties

- `alarms`: [IAlarmRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_cloudwatch.IAlarmRef.html)[] = [] — The CloudWatch alarms associated with this Deployment Group.

  CodeDeploy will stop (and optionally roll back)
  a deployment if during it any of the alarms trigger.

  Alarms can also be added after the Deployment Group is created using the `#addAlarm` method.

- `alias`: [Alias](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Alias.html) (required) — Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment.

  [disable-awslint:ref-via-interface] since we need to modify the alias CFN resource update policy

- `application`: [ILambdaApplication](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.ILambdaApplication.html) — The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.

  **Default:** One will be created for you.

- `autoRollback`: [AutoRollbackConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.AutoRollbackConfig.html) — The auto-rollback configuration for this Deployment Group.

  **Default:** default AutoRollbackConfig.

- `deploymentConfig`: [ILambdaDeploymentConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.ILambdaDeploymentConfig.html) — The Deployment Configuration this Deployment Group uses.

  **Default:** LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES

- `deploymentGroupName`: string — The physical, human-readable name of the CodeDeploy Deployment Group.

  **Default:** An auto-generated name will be used.

- `ignoreAlarmConfiguration`: boolean = false — Whether to skip the step of checking CloudWatch alarms during the deployment process.

- `ignorePollAlarmsFailure`: boolean = false — Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.

- `postHook`: [IFunction](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.IFunction.html) = None. — The Lambda function to run after traffic routing starts.

- `preHook`: [IFunction](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.IFunction.html) = None. — The Lambda function to run before traffic routing starts.

- `role`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The service Role of this Deployment Group.

  **Default:** A new Role will be created.
