We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
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.
Create InstanceEventWindow Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceEventWindow(name: string, args?: InstanceEventWindowArgs, opts?: CustomResourceOptions);@overload
def InstanceEventWindow(resource_name: str,
args: Optional[InstanceEventWindowArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceEventWindow(resource_name: str,
opts: Optional[ResourceOptions] = None,
cron_expression: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
time_ranges: Optional[Sequence[InstanceEventWindowTimeRangeArgs]] = None)func NewInstanceEventWindow(ctx *Context, name string, args *InstanceEventWindowArgs, opts ...ResourceOption) (*InstanceEventWindow, error)public InstanceEventWindow(string name, InstanceEventWindowArgs? args = null, CustomResourceOptions? opts = null)
public InstanceEventWindow(String name, InstanceEventWindowArgs args)
public InstanceEventWindow(String name, InstanceEventWindowArgs args, CustomResourceOptions options)
type: aws-native:ec2:InstanceEventWindow
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_ec2_instance_event_window" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args InstanceEventWindowArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceEventWindowArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceEventWindowArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceEventWindowArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceEventWindowArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
InstanceEventWindow Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InstanceEventWindow resource accepts the following input properties:
- Cron
Expression string - The cron expression defined for the event window. Exactly one of TimeRanges or CronExpression must be specified.
- Name string
- The name of the event window.
-
List<Pulumi.
Aws Native. Inputs. Tag> - The tags applied to the event window.
- Time
Ranges List<Pulumi.Aws Native. Ec2. Inputs. Instance Event Window Time Range> - The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.
- Cron
Expression string - The cron expression defined for the event window. Exactly one of TimeRanges or CronExpression must be specified.
- Name string
- The name of the event window.
-
Tag
Args - The tags applied to the event window.
- Time
Ranges []InstanceEvent Window Time Range Args - The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.
- cron_
expression string - The cron expression defined for the event window. Exactly one of TimeRanges or CronExpression must be specified.
- name string
- The name of the event window.
- list(object)
- The tags applied to the event window.
- time_
ranges list(object) - The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.
- cron
Expression String - The cron expression defined for the event window. Exactly one of TimeRanges or CronExpression must be specified.
- name String
- The name of the event window.
- List<Tag>
- The tags applied to the event window.
- time
Ranges List<InstanceEvent Window Time Range> - The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.
- cron
Expression string - The cron expression defined for the event window. Exactly one of TimeRanges or CronExpression must be specified.
- name string
- The name of the event window.
- Tag[]
- The tags applied to the event window.
- time
Ranges InstanceEvent Window Time Range[] - The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.
- cron_
expression str - The cron expression defined for the event window. Exactly one of TimeRanges or CronExpression must be specified.
- name str
- The name of the event window.
-
Sequence[Tag
Args] - The tags applied to the event window.
- time_
ranges Sequence[InstanceEvent Window Time Range Args] - The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.
- cron
Expression String - The cron expression defined for the event window. Exactly one of TimeRanges or CronExpression must be specified.
- name String
- The name of the event window.
- List<Property Map>
- The tags applied to the event window.
- time
Ranges List<Property Map> - The time ranges of the event window. Exactly one of TimeRanges or CronExpression must be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceEventWindow resource produces the following output properties:
- Arn string
- The Amazon Resource Name (ARN) of the event window.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Event stringWindow Id - The ID of the event window.
- State string
- The current state of the event window. Observed values include creating, active, modifying, deleting and deleted.
- Arn string
- The Amazon Resource Name (ARN) of the event window.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Event stringWindow Id - The ID of the event window.
- State string
- The current state of the event window. Observed values include creating, active, modifying, deleting and deleted.
- arn string
- The Amazon Resource Name (ARN) of the event window.
- id string
- The provider-assigned unique ID for this managed resource.
- instance_
event_ stringwindow_ id - The ID of the event window.
- state string
- The current state of the event window. Observed values include creating, active, modifying, deleting and deleted.
- arn String
- The Amazon Resource Name (ARN) of the event window.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Event StringWindow Id - The ID of the event window.
- state String
- The current state of the event window. Observed values include creating, active, modifying, deleting and deleted.
- arn string
- The Amazon Resource Name (ARN) of the event window.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Event stringWindow Id - The ID of the event window.
- state string
- The current state of the event window. Observed values include creating, active, modifying, deleting and deleted.
- arn str
- The Amazon Resource Name (ARN) of the event window.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
event_ strwindow_ id - The ID of the event window.
- state str
- The current state of the event window. Observed values include creating, active, modifying, deleting and deleted.
- arn String
- The Amazon Resource Name (ARN) of the event window.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Event StringWindow Id - The ID of the event window.
- state String
- The current state of the event window. Observed values include creating, active, modifying, deleting and deleted.
Supporting Types
InstanceEventWindowTimeRange, InstanceEventWindowTimeRangeArgs
A time range during which an AWS-initiated maintenance event may occur.- End
Hour int - The hour when the time range ends.
- End
Week Pulumi.Day Aws Native. Ec2. Instance Event Window Time Range End Week Day - The day on which the time range ends.
- Start
Hour int - The hour when the time range begins.
- Start
Week Pulumi.Day Aws Native. Ec2. Instance Event Window Time Range Start Week Day - The day on which the time range begins.
- End
Hour int - The hour when the time range ends.
- End
Week InstanceDay Event Window Time Range End Week Day - The day on which the time range ends.
- Start
Hour int - The hour when the time range begins.
- Start
Week InstanceDay Event Window Time Range Start Week Day - The day on which the time range begins.
- end_
hour number - The hour when the time range ends.
- end_
week_ "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday"day - The day on which the time range ends.
- start_
hour number - The hour when the time range begins.
- start_
week_ "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday"day - The day on which the time range begins.
- end
Hour Integer - The hour when the time range ends.
- end
Week InstanceDay Event Window Time Range End Week Day - The day on which the time range ends.
- start
Hour Integer - The hour when the time range begins.
- start
Week InstanceDay Event Window Time Range Start Week Day - The day on which the time range begins.
- end
Hour number - The hour when the time range ends.
- end
Week InstanceDay Event Window Time Range End Week Day - The day on which the time range ends.
- start
Hour number - The hour when the time range begins.
- start
Week InstanceDay Event Window Time Range Start Week Day - The day on which the time range begins.
- end_
hour int - The hour when the time range ends.
- end_
week_ Instanceday Event Window Time Range End Week Day - The day on which the time range ends.
- start_
hour int - The hour when the time range begins.
- start_
week_ Instanceday Event Window Time Range Start Week Day - The day on which the time range begins.
- end
Hour Number - The hour when the time range ends.
- end
Week "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday"Day - The day on which the time range ends.
- start
Hour Number - The hour when the time range begins.
- start
Week "sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday"Day - The day on which the time range begins.
InstanceEventWindowTimeRangeEndWeekDay, InstanceEventWindowTimeRangeEndWeekDayArgs
- Sunday
sunday- Monday
monday- Tuesday
tuesday- Wednesday
wednesday- Thursday
thursday- Friday
friday- Saturday
saturday
- Instance
Event Window Time Range End Week Day Sunday sunday- Instance
Event Window Time Range End Week Day Monday monday- Instance
Event Window Time Range End Week Day Tuesday tuesday- Instance
Event Window Time Range End Week Day Wednesday wednesday- Instance
Event Window Time Range End Week Day Thursday thursday- Instance
Event Window Time Range End Week Day Friday friday- Instance
Event Window Time Range End Week Day Saturday saturday
- "sunday"
sunday- "monday"
monday- "tuesday"
tuesday- "wednesday"
wednesday- "thursday"
thursday- "friday"
friday- "saturday"
saturday
- Sunday
sunday- Monday
monday- Tuesday
tuesday- Wednesday
wednesday- Thursday
thursday- Friday
friday- Saturday
saturday
- Sunday
sunday- Monday
monday- Tuesday
tuesday- Wednesday
wednesday- Thursday
thursday- Friday
friday- Saturday
saturday
- SUNDAY
sunday- MONDAY
monday- TUESDAY
tuesday- WEDNESDAY
wednesday- THURSDAY
thursday- FRIDAY
friday- SATURDAY
saturday
- "sunday"
sunday- "monday"
monday- "tuesday"
tuesday- "wednesday"
wednesday- "thursday"
thursday- "friday"
friday- "saturday"
saturday
InstanceEventWindowTimeRangeStartWeekDay, InstanceEventWindowTimeRangeStartWeekDayArgs
- Sunday
sunday- Monday
monday- Tuesday
tuesday- Wednesday
wednesday- Thursday
thursday- Friday
friday- Saturday
saturday
- Instance
Event Window Time Range Start Week Day Sunday sunday- Instance
Event Window Time Range Start Week Day Monday monday- Instance
Event Window Time Range Start Week Day Tuesday tuesday- Instance
Event Window Time Range Start Week Day Wednesday wednesday- Instance
Event Window Time Range Start Week Day Thursday thursday- Instance
Event Window Time Range Start Week Day Friday friday- Instance
Event Window Time Range Start Week Day Saturday saturday
- "sunday"
sunday- "monday"
monday- "tuesday"
tuesday- "wednesday"
wednesday- "thursday"
thursday- "friday"
friday- "saturday"
saturday
- Sunday
sunday- Monday
monday- Tuesday
tuesday- Wednesday
wednesday- Thursday
thursday- Friday
friday- Saturday
saturday
- Sunday
sunday- Monday
monday- Tuesday
tuesday- Wednesday
wednesday- Thursday
thursday- Friday
friday- Saturday
saturday
- SUNDAY
sunday- MONDAY
monday- TUESDAY
tuesday- WEDNESDAY
wednesday- THURSDAY
thursday- FRIDAY
friday- SATURDAY
saturday
- "sunday"
sunday- "monday"
monday- "tuesday"
tuesday- "wednesday"
wednesday- "thursday"
thursday- "friday"
friday- "saturday"
saturday
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi