# CfnInstanceEventWindowProps

Properties for defining a `CfnInstanceEventWindow`.

Extends: CfnInstanceEventWindowProps
Used as props by: CfnInstanceEventWindow

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnInstanceEventWindowProps: ec2.CfnInstanceEventWindowProps = {
  cronExpression: 'cronExpression',
  name: 'name',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  timeRanges: [{
    endHour: 123,
    endWeekDay: 'endWeekDay',
    startHour: 123,
    startWeekDay: 'startWeekDay',
  }],
};
```

## Properties

- `cronExpression`: string — The cron expression defined for the event window.

  Exactly one of TimeRanges or CronExpression must be specified.

- `name`: string — The name of the event window.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags applied to the event window.

- `timeRanges`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInstanceEventWindow.TimeRangeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnInstanceEventWindow.TimeRangeProperty.html)[] — The time ranges of the event window.

  Exactly one of TimeRanges or CronExpression must be specified.
