Skip to content
v2.274.0

CfnInstanceEventWindowProps Struct ​

Properties for defining a CfnInstanceEventWindow.

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 ​

cronExpressionstringcron_expressionstrcronExpressionStringCronExpressionstringCronExpression*string#
The cron expression defined for the event window.

Exactly one of TimeRanges or CronExpression must be specified.

namestringnamestrnameStringNamestringName*string#
The name of the event window.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tags applied to the event window.
timeRangesIResolvable | IResolvable | CfnInstanceEventWindow.TimeRangeProperty[]time_rangestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TimeRangeProperty]]]timeRangesIResolvableTimeRangesIResolvableTimeRangesinterface{}#
The time ranges of the event window.

Exactly one of TimeRanges or CronExpression must be specified.