Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModifyInstanceEventWindowCommand

Modifies the specified event window.

You can define either a set of time ranges or a cron expression when modifying the event window, but not both.

To modify the targets associated with the event window, use the AssociateInstanceEventWindow and DisassociateInstanceEventWindow API.

If Amazon Web Services has already scheduled an event, modifying an event window won't change the time of the scheduled event.

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

example

Use a bare-bones client and the command you need to make an API call.

import { EC2Client, ModifyInstanceEventWindowCommand } from "@aws-sdk/client-ec2"; // ES Modules import
// const { EC2Client, ModifyInstanceEventWindowCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
const client = new EC2Client(config);
const command = new ModifyInstanceEventWindowCommand(input);
const response = await client.send(command);
see

ModifyInstanceEventWindowCommandInput for command's input shape.

see

ModifyInstanceEventWindowCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ModifyInstanceEventWindowCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions