We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 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.
Look up Existing InstanceEventWindow Resource
Get an existing InstanceEventWindow resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): InstanceEventWindow@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> InstanceEventWindowfunc GetInstanceEventWindow(ctx *Context, name string, id IDInput, state *InstanceEventWindowState, opts ...ResourceOption) (*InstanceEventWindow, error)public static InstanceEventWindow Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static InstanceEventWindow get(String name, Output<String> id, CustomResourceOptions options)resources: existingInstanceEventWindow: type: aws-native:ec2:InstanceEventWindow get: id: ${id}import {
to = aws-native_ec2_instance_event_window.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state InstanceEventWindowState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
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
The day on which the time range ends.
| Name | Value |
|---|---|
| Sunday | sunday |
| Monday | monday |
| Tuesday | tuesday |
| Wednesday | wednesday |
| Thursday | thursday |
| Friday | friday |
| Saturday | saturday |
| Name | Value |
|---|---|
| Instance | sunday |
| Instance | monday |
| Instance | tuesday |
| Instance | wednesday |
| Instance | thursday |
| Instance | friday |
| Instance | saturday |
| Value |
|---|
sunday |
monday |
tuesday |
wednesday |
thursday |
friday |
saturday |
| Name | Value |
|---|---|
| Sunday | sunday |
| Monday | monday |
| Tuesday | tuesday |
| Wednesday | wednesday |
| Thursday | thursday |
| Friday | friday |
| Saturday | saturday |
| Name | Value |
|---|---|
| Sunday | sunday |
| Monday | monday |
| Tuesday | tuesday |
| Wednesday | wednesday |
| Thursday | thursday |
| Friday | friday |
| Saturday | saturday |
| Name | Value |
|---|---|
| SUNDAY | sunday |
| MONDAY | monday |
| TUESDAY | tuesday |
| WEDNESDAY | wednesday |
| THURSDAY | thursday |
| FRIDAY | friday |
| SATURDAY | saturday |
| Value |
|---|
sunday |
monday |
tuesday |
wednesday |
thursday |
friday |
saturday |
InstanceEventWindowTimeRangeStartWeekDay
The day on which the time range begins.
| Name | Value |
|---|---|
| Sunday | sunday |
| Monday | monday |
| Tuesday | tuesday |
| Wednesday | wednesday |
| Thursday | thursday |
| Friday | friday |
| Saturday | saturday |
| Name | Value |
|---|---|
| Instance | sunday |
| Instance | monday |
| Instance | tuesday |
| Instance | wednesday |
| Instance | thursday |
| Instance | friday |
| Instance | saturday |
| Value |
|---|
sunday |
monday |
tuesday |
wednesday |
thursday |
friday |
saturday |
| Name | Value |
|---|---|
| Sunday | sunday |
| Monday | monday |
| Tuesday | tuesday |
| Wednesday | wednesday |
| Thursday | thursday |
| Friday | friday |
| Saturday | saturday |
| Name | Value |
|---|---|
| Sunday | sunday |
| Monday | monday |
| Tuesday | tuesday |
| Wednesday | wednesday |
| Thursday | thursday |
| Friday | friday |
| Saturday | saturday |
| Name | Value |
|---|---|
| SUNDAY | sunday |
| MONDAY | monday |
| TUESDAY | tuesday |
| WEDNESDAY | wednesday |
| THURSDAY | thursday |
| FRIDAY | friday |
| SATURDAY | saturday |
| Value |
|---|
sunday |
monday |
tuesday |
wednesday |
thursday |
friday |
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 Wednesday, Nov 18, 2026 by Pulumi