v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-171,1822,9897.4 MB

Associates one or more targets with an event window. Only one type of target (instance IDs, Dedicated Host IDs, or tags) can be specified with an event window.

For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

get/#Action=AssociateInstanceEventWindow

Query parameters

DryRunboolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.

InstanceEventWindowIdstring required

The ID of the event window.

InstanceIdsstring[]

The IDs of the instances to associate with the event window. If the instance is on a Dedicated Host, you can't specify the Instance ID parameter; you must use the Dedicated Host ID parameter.

DedicatedHostIdsstring[]

The IDs of the Dedicated Hosts to associate with the event window.

One or more targets associated with the specified event window.

Action'AssociateInstanceEventWindow' required
Version'2016-11-15' required

Response

Success