CfnInstanceEventWindowProps
- class aws_cdk.aws_ec2.CfnInstanceEventWindowProps(*, cron_expression=None, name=None, tags=None, time_ranges=None)
Bases:
objectProperties for defining a
CfnInstanceEventWindow.- Parameters:
cron_expression (
Optional[str]) – The cron expression defined for the event window. Exactly one of TimeRanges or CronExpression must be specified.name (
Optional[str]) – The name of the event window.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – The tags applied to the event window.time_ranges (
Union[IResolvable,Sequence[Union[IResolvable,TimeRangeProperty,Dict[str,Any]]],None]) – The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.
- See:
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 cfn_instance_event_window_props = ec2.CfnInstanceEventWindowProps( cron_expression="cronExpression", name="name", tags=[CfnTag( key="key", value="value" )], time_ranges=[ec2.CfnInstanceEventWindow.TimeRangeProperty( end_hour=123, end_week_day="endWeekDay", start_hour=123, start_week_day="startWeekDay" )] )
Attributes
- cron_expression
The cron expression defined for the event window.
Exactly one of TimeRanges or CronExpression must be specified.
- name
The name of the event window.
- tags
The tags applied to the event window.
- time_ranges
The time ranges of the event window.
Exactly one of TimeRanges or CronExpression must be specified.