Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DescribeScheduledInstanceAvailabilityCommand

Finds available schedules that meet the specified criteria.

You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

example

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

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

DescribeScheduledInstanceAvailabilityCommandInput for command's input shape.

see

DescribeScheduledInstanceAvailabilityCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DescribeScheduledInstanceAvailabilityCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions