# Ec2DeploymentOptionsProperty

Options that control how CodeDeploy manages Amazon EC2 Auto Scaling groups during deployments to the deployment group.

- Source: Generated code
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const ec2DeploymentOptionsProperty: codedeploy.CfnDeploymentGroup.Ec2DeploymentOptionsProperty = {
  autoScalingGroupProcessesToSuspend: ['autoScalingGroupProcessesToSuspend'],
};
```

## Properties

- `autoScalingGroupProcessesToSuspend`: string[] — The Amazon EC2 Auto Scaling processes to suspend during an in-place deployment.

  CodeDeploy suspends these processes before it deploys to instances in an Auto Scaling group, and resumes them when the deployment succeeds, fails, or is stopped. Valid values are Terminate, AZRebalance, InstanceRefresh, and ScheduledActions. Process names are case sensitive. To stop suspending processes, remove the property.
