# ServerDeploymentGroupAttributes

Properties of a reference to a CodeDeploy EC2/on-premise Deployment Group.

- Source: [`aws-codedeploy/lib/server/deployment-group.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-codedeploy/lib/server/deployment-group.ts#L49)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

```ts
declare const application: codedeploy.ServerApplication;
const deploymentGroup = codedeploy.ServerDeploymentGroup.fromServerDeploymentGroupAttributes(
  this,
  'ExistingCodeDeployDeploymentGroup', {
    application,
    deploymentGroupName: 'MyExistingDeploymentGroup',
  },
);
```

## Properties

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

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

  **Default:** ServerDeploymentConfig#OneAtATime

- `deploymentGroupName`: string (required) — The physical, human-readable name of the CodeDeploy EC2/on-premise Deployment Group that we are referencing.
