CfnInstanceEventWindowPropsMixin

class aws_cdk.cfn_property_mixins.aws_ec2.CfnInstanceEventWindowPropsMixin(props, *, strategy=None)

Bases: Mixin

Resource type definition for AWS::EC2::InstanceEventWindow.

An event window defines a recurring set of time ranges, or a cron expression, during which AWS-initiated maintenance events may be scheduled for the associated Amazon EC2 instances or Dedicated Hosts.

See:

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

CloudformationResource:

AWS::EC2::InstanceEventWindow

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_ec2 as ec2
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_instance_event_window_props_mixin = ec2.CfnInstanceEventWindowPropsMixin(ec2.CfnInstanceEventWindowMixinProps(
    cron_expression="cronExpression",
    name="name",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    time_ranges=[ec2.CfnInstanceEventWindowPropsMixin.TimeRangeProperty(
        end_hour=123,
        end_week_day="endWeekDay",
        start_hour=123,
        start_week_day="startWeekDay"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::EC2::InstanceEventWindow.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['cronExpression', 'name', 'tags', 'timeRanges']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

TimeRangeProperty

class CfnInstanceEventWindowPropsMixin.TimeRangeProperty(*, end_hour=None, end_week_day=None, start_hour=None, start_week_day=None)

Bases: object

A time range during which an AWS-initiated maintenance event may occur.

Parameters:
  • end_hour (Union[int, float, None]) – The hour when the time range ends.

  • end_week_day (Optional[str]) – The day on which the time range ends.

  • start_hour (Union[int, float, None]) – The hour when the time range begins.

  • start_week_day (Optional[str]) – The day on which the time range begins.

See:

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

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_ec2 as ec2

time_range_property = ec2.CfnInstanceEventWindowPropsMixin.TimeRangeProperty(
    end_hour=123,
    end_week_day="endWeekDay",
    start_hour=123,
    start_week_day="startWeekDay"
)

Attributes

end_hour

The hour when the time range ends.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instanceeventwindow-timerange.html#cfn-ec2-instanceeventwindow-timerange-endhour

end_week_day

The day on which the time range ends.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instanceeventwindow-timerange.html#cfn-ec2-instanceeventwindow-timerange-endweekday

start_hour

The hour when the time range begins.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instanceeventwindow-timerange.html#cfn-ec2-instanceeventwindow-timerange-starthour

start_week_day

The day on which the time range begins.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instanceeventwindow-timerange.html#cfn-ec2-instanceeventwindow-timerange-startweekday