# AdjustmentType

How adjustment numbers are interpreted.

- Source: [`aws-autoscaling/lib/step-scaling-action.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-autoscaling/lib/step-scaling-action.ts#L121)

## Example

```ts
declare const autoScalingGroup: autoscaling.AutoScalingGroup;

const workerUtilizationMetric = new cloudwatch.Metric({
    namespace: 'MyService',
    metricName: 'WorkerUtilization'
});

autoScalingGroup.scaleOnMetric('ScaleToCPU', {
  metric: workerUtilizationMetric,
  scalingSteps: [
    { upper: 10, change: -1 },
    { lower: 50, change: +1 },
    { lower: 70, change: +3 },
  ],
  evaluationPeriods: 10,
  datapointsToAlarm: 5,

  // Change this to AdjustmentType.PERCENT_CHANGE_IN_CAPACITY to interpret the
  // 'change' numbers before as percentages instead of capacity counts.
  adjustmentType: autoscaling.AdjustmentType.CHANGE_IN_CAPACITY,
});
```

## Members

| Member | Description |
| --- | --- |
| `CHANGE_IN_CAPACITY` | Add the adjustment number to the current capacity. |
| `PERCENT_CHANGE_IN_CAPACITY` | Add this percentage of the current capacity to itself. |
| `EXACT_CAPACITY` | Make the capacity equal to the exact number given. |

## Referenced by

- [`BasicStepScalingPolicyProps`](/v2/docs/aws-cdk-lib.aws_autoscaling.BasicStepScalingPolicyProps).adjustmentType
- [`StepScalingActionProps`](/v2/docs/aws-cdk-lib.aws_autoscaling.StepScalingActionProps).adjustmentType
