delete_instance_event_window

EC2.Client.delete_instance_event_window(**kwargs)

Deletes the specified event window.

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

See also: AWS API Documentation

Request Syntax

response = client.delete_instance_event_window(
    DryRun=True|False,
    ForceDelete=True|False,
    InstanceEventWindowId='string'
)
Parameters
  • DryRun (boolean) -- 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 DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • ForceDelete (boolean) -- Specify true to force delete the event window. Use the force delete parameter if the event window is currently associated with targets.
  • InstanceEventWindowId (string) --

    [REQUIRED]

    The ID of the event window.

Return type

dict

Returns

Response Syntax

{
    'InstanceEventWindowState': {
        'InstanceEventWindowId': 'string',
        'State': 'creating'|'deleting'|'active'|'deleted'
    }
}

Response Structure

  • (dict) --

    • InstanceEventWindowState (dict) --

      The state of the event window.

      • InstanceEventWindowId (string) --

        The ID of the event window.

      • State (string) --

        The current state of the event window.