CfnInstanceEventWindowPropsMixin
- class aws_cdk.cfn_property_mixins.aws_ec2.CfnInstanceEventWindowPropsMixin(props, *, strategy=None)
Bases:
MixinResource 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:
- 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:
props (
Union[CfnInstanceEventWindowMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
TimeRangeProperty
- class CfnInstanceEventWindowPropsMixin.TimeRangeProperty(*, end_hour=None, end_week_day=None, start_hour=None, start_week_day=None)
Bases:
objectA 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:
- 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.
- end_week_day
The day on which the time range ends.
- start_hour
The hour when the time range begins.
- start_week_day
The day on which the time range begins.