AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the DescribeScheduledInstanceAvailability operation. 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.

Inheritance Hierarchy


Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z


public class DescribeScheduledInstanceAvailabilityRequest : AmazonEC2Request

The DescribeScheduledInstanceAvailabilityRequest type exposes the following members



Public Property Filters System.Collections.Generic.List<Amazon.EC2.Model.Filter>

Gets and sets the property Filters.

The filters.

  • availability-zone - The Availability Zone (for example, us-west-2a).

  • instance-type - The instance type (for example, c4.large).

  • network-platform - The network platform (EC2-Classic or EC2-VPC).

  • platform - The platform (Linux/UNIX or Windows).

Public Property FirstSlotStartTimeRange Amazon.EC2.Model.SlotDateTimeRangeRequest

Gets and sets the property FirstSlotStartTimeRange.

The time period for the first schedule to start.

Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of results to return in a single call. This value can be between 5 and 300. The default value is 300. To retrieve the remaining results, make another call with the returned NextToken value.

Public Property MaxSlotDurationInHours System.Int32

Gets and sets the property MaxSlotDurationInHours.

The maximum available duration, in hours. This value must be greater than MinSlotDurationInHours and less than 1,720.

Public Property MinSlotDurationInHours System.Int32

Gets and sets the property MinSlotDurationInHours.

The minimum available duration, in hours. The minimum required duration is 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.

Public Property NextToken System.String

Gets and sets the property NextToken.

The token for the next set of results.

Public Property Recurrence Amazon.EC2.Model.ScheduledInstanceRecurrenceRequest

Gets and sets the property Recurrence.

The schedule recurrence.


This example describes a schedule that occurs every week on Sunday, starting on the specified date. Note that the output contains a single schedule as an example.

To describe an available schedule

var client = new AmazonEC2Client();
var response = client.DescribeScheduledInstanceAvailability(new DescribeScheduledInstanceAvailabilityRequest 
    FirstSlotStartTimeRange = new SlotDateTimeRangeRequest {
        EarliestTimeUtc = new DateTime(2016, 1, 30, 4, 0, 0, DateTimeKind.Utc),
        LatestTimeUtc = new DateTime(2016, 1, 30, 8, 0, 0, DateTimeKind.Utc)
    Recurrence = new ScheduledInstanceRecurrenceRequest {
        Frequency = "Weekly",
        Interval = 1,
        OccurrenceDays = new List<int> {

List<ScheduledInstanceAvailability> scheduledInstanceAvailabilitySet = response.ScheduledInstanceAvailabilitySet;


Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5