# RollingIntervalProperty

If the interval for this SLO is a rolling interval, this structure contains the interval specifications.

- Source: Generated at build time
- Type last changed: v2.147.0 · 20 Jun 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationsignals as applicationsignals } from 'aws-cdk-lib';
const rollingIntervalProperty: applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty = {
  duration: 123,
  durationUnit: 'durationUnit',
};
```

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_applicationsignals as applicationsignals

rolling_interval_property = applicationsignals.CfnServiceLevelObjective.RollingIntervalProperty(
    duration=123,
    duration_unit="durationUnit"
)
```

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.applicationsignals.*;

RollingIntervalProperty rollingIntervalProperty = RollingIntervalProperty.builder()
        .duration(123)
        .durationUnit("durationUnit")
        .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.ApplicationSignals;

var rollingIntervalProperty = new RollingIntervalProperty {
    Duration = 123,
    DurationUnit = "durationUnit"
};
```

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"

rollingIntervalProperty := &RollingIntervalProperty{
	Duration: jsii.Number(123),
	DurationUnit: jsii.String("durationUnit"),
}
```

## Properties

- `duration`: number (required) — Specifies the duration of each rolling interval.

  For example, if `Duration` is `7` and `DurationUnit` is `DAY` , each rolling interval is seven days.

- `durationUnit`: string (required) — Specifies the rolling interval unit.
