CfnInstanceEventWindowProps

class aws_cdk.aws_ec2.CfnInstanceEventWindowProps(*, cron_expression=None, name=None, tags=None, time_ranges=None)

Bases: object

Properties 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceeventwindow.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceeventwindow.html#cfn-ec2-instanceeventwindow-cronexpression

name

The name of the event window.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceeventwindow.html#cfn-ec2-instanceeventwindow-name

tags

The tags applied to the event window.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceeventwindow.html#cfn-ec2-instanceeventwindow-tags

time_ranges

The time ranges of the event window.

Exactly one of TimeRanges or CronExpression must be specified.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instanceeventwindow.html#cfn-ec2-instanceeventwindow-timeranges