interface CfnInstanceEventWindowProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnInstanceEventWindowProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnInstanceEventWindowProps |
Java | software.amazon.awscdk.services.ec2.CfnInstanceEventWindowProps |
Python | aws_cdk.aws_ec2.CfnInstanceEventWindowProps |
TypeScript | aws-cdk-lib » aws_ec2 » CfnInstanceEventWindowProps |
Properties for defining a CfnInstanceEventWindow.
Example
// 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
| Name | Type | Description |
|---|---|---|
| cron | string | The cron expression defined for the event window. |
| name? | string | The name of the event window. |
| tags? | Cfn[] | The tags applied to the event window. |
| time | IResolvable | (IResolvable | Time)[] | The time ranges of the event window. |
cronExpression?
Type:
string
(optional)
The cron expression defined for the event window.
Exactly one of TimeRanges or CronExpression must be specified.
name?
Type:
string
(optional)
The name of the event window.
tags?
Type:
Cfn[]
(optional)
The tags applied to the event window.
timeRanges?
Type:
IResolvable | (IResolvable | Time)[]
(optional)
The time ranges of the event window.
Exactly one of TimeRanges or CronExpression must be specified.

.NET
Go
Java
Python
TypeScript