# ScheduleConfigurationProperty

Struct · External

The schedule configuration for the scheduled query.

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const scheduleConfigurationProperty: cloudwatch.CfnLogAlarm.ScheduleConfigurationProperty = {
  scheduleExpression: 'scheduleExpression',
  startTimeOffset: 123,

  // the properties below are optional
  endTimeOffset: 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_cloudwatch as cloudwatch

schedule_configuration_property = cloudwatch.CfnLogAlarm.ScheduleConfigurationProperty(
    schedule_expression="scheduleExpression",
    start_time_offset=123,

    # the properties below are optional
    end_time_offset=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.cloudwatch.*;

ScheduleConfigurationProperty scheduleConfigurationProperty = ScheduleConfigurationProperty.builder()
        .scheduleExpression("scheduleExpression")
        .startTimeOffset(123)

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

C#:

```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.CloudWatch;

var scheduleConfigurationProperty = new ScheduleConfigurationProperty {
    ScheduleExpression = "scheduleExpression",
    StartTimeOffset = 123,

    // the properties below are optional
    EndTimeOffset = 123
};
```

Go:

```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"

scheduleConfigurationProperty := &ScheduleConfigurationProperty{
	ScheduleExpression: jsii.String("scheduleExpression"),
	StartTimeOffset: jsii.Number(123),

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

## Properties

- `endTimeOffset`: number — The number of seconds into the past to end the query window.

  Must be a non-negative value and cannot exceed 2592000 seconds (30 days).

- `scheduleExpression`: string (required) — The expression that defines when the scheduled query runs, e.g. rate(1 minute).

- `startTimeOffset`: number (required) — The number of seconds into the past to start the query window.

  Must be a positive value and cannot exceed 2592000 seconds (30 days).
