# CalendarIntervalProperty

If the interval for this service level objective is a calendar 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 calendarIntervalProperty: applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty = {
  duration: 123,
  durationUnit: 'durationUnit',
  startTime: 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_applicationsignals as applicationsignals

calendar_interval_property = applicationsignals.CfnServiceLevelObjective.CalendarIntervalProperty(
    duration=123,
    duration_unit="durationUnit",
    start_time=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.applicationsignals.*;

CalendarIntervalProperty calendarIntervalProperty = CalendarIntervalProperty.builder()
        .duration(123)
        .durationUnit("durationUnit")
        .startTime(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.ApplicationSignals;

var calendarIntervalProperty = new CalendarIntervalProperty {
    Duration = 123,
    DurationUnit = "durationUnit",
    StartTime = 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"

calendarIntervalProperty := &CalendarIntervalProperty{
	Duration: jsii.Number(123),
	DurationUnit: jsii.String("durationUnit"),
	StartTime: jsii.Number(123),
}
```

## Properties

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

  For example, if `Duration` is `1` and `DurationUnit` is `MONTH` , each interval is one month, aligned with the calendar.

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

- `startTime`: number (required) — The date and time when you want the first interval to start.

  Be sure to choose a time that configures the intervals the way that you want. For example, if you want weekly intervals starting on Mondays at 6 a.m., be sure to specify a start time that is a Monday at 6 a.m.

  When used in a raw HTTP Query API, it is formatted as be epoch time in seconds. For example: `1698778057`

  As soon as one calendar interval ends, another automatically begins.
