# LambdaDeploymentGroupAttributes

Properties of a reference to a CodeDeploy Lambda Deployment Group.

- Source: [`aws-codedeploy/lib/lambda/deployment-group.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-codedeploy/lib/lambda/deployment-group.ts#L300)

## Example

TypeScript:

```ts
declare const application: codedeploy.LambdaApplication;
const deploymentGroup = codedeploy.LambdaDeploymentGroup.fromLambdaDeploymentGroupAttributes(this, 'ExistingCodeDeployDeploymentGroup', {
  application,
  deploymentGroupName: 'MyExistingDeploymentGroup',
});
```

Python:

```python
# application: codedeploy.LambdaApplication

deployment_group = codedeploy.LambdaDeploymentGroup.from_lambda_deployment_group_attributes(self, "ExistingCodeDeployDeploymentGroup",
    application=application,
    deployment_group_name="MyExistingDeploymentGroup"
)
```

Java:

```java
LambdaApplication application;

ILambdaDeploymentGroup deploymentGroup = LambdaDeploymentGroup.fromLambdaDeploymentGroupAttributes(this, "ExistingCodeDeployDeploymentGroup", LambdaDeploymentGroupAttributes.builder()
        .application(application)
        .deploymentGroupName("MyExistingDeploymentGroup")
        .build());
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
LambdaApplication application;

var deploymentGroup = LambdaDeploymentGroup.FromLambdaDeploymentGroupAttributes(this, "ExistingCodeDeployDeploymentGroup", new LambdaDeploymentGroupAttributes {
    Application = application,
    DeploymentGroupName = "MyExistingDeploymentGroup"
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var application LambdaApplication

deploymentGroup := codedeploy.LambdaDeploymentGroup_FromLambdaDeploymentGroupAttributes(this, jsii.String("ExistingCodeDeployDeploymentGroup"), &LambdaDeploymentGroupAttributes{
	Application: Application,
	DeploymentGroupName: jsii.String("MyExistingDeploymentGroup"),
})
```

## Properties

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

- `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 (required) — The physical, human-readable name of the CodeDeploy Lambda Deployment Group that we are referencing.
