# ScalingInterval

A range of metric values in which to apply a certain scaling operation.

- Source: [`aws-autoscaling-common/lib/types.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-autoscaling-common/lib/types.ts#L4)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_autoscaling_common as autoscaling_common } from 'aws-cdk-lib';
const scalingInterval: autoscaling_common.ScalingInterval = {
  change: 123,

  // the properties below are optional
  lower: 123,
  upper: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_autoscaling_common as autoscaling_common

scaling_interval = autoscaling_common.ScalingInterval(
    change=123,

    # the properties below are optional
    lower=123,
    upper=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.autoscaling.common.*;

ScalingInterval scalingInterval = ScalingInterval.builder()
        .change(123)

        // the properties below are optional
        .lower(123)
        .upper(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AutoScaling.Common;

var scalingInterval = new ScalingInterval {
    Change = 123,

    // the properties below are optional
    Lower = 123,
    Upper = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

scalingInterval := &ScalingInterval{
	Change: jsii.Number(123),

	// the properties below are optional
	Lower: jsii.Number(123),
	Upper: jsii.Number(123),
}
```

## Properties

- `change`: number (required) — The capacity adjustment to apply in this interval.

  The number is interpreted differently based on AdjustmentType:

  - ChangeInCapacity: add the adjustment to the current capacity.
   The number can be positive or negative.
  - PercentChangeInCapacity: add or remove the given percentage of the current
    capacity to itself. The number can be in the range [-100..100].
  - ExactCapacity: set the capacity to this number. The number must
    be positive.

- `lower`: number — The lower bound of the interval.

  **Default:** Threshold automatically derived from neighbouring intervals

  The scaling adjustment will be applied if the metric is higher than this value.

- `upper`: number — The upper bound of the interval.

  **Default:** Threshold automatically derived from neighbouring intervals

  The scaling adjustment will be applied if the metric is lower than this value.
