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

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.EC2.AmazonEC2Request
      Amazon.EC2.Model.DescribeScheduledInstanceAvailabilityRequest

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

Syntax

C#
public class DescribeScheduledInstanceAvailabilityRequest : AmazonEC2Request
         IAmazonWebServiceRequest

The DescribeScheduledInstanceAvailabilityRequest type exposes the following members

Constructors

Properties

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

Gets and sets the property Filters.

One or more 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.

Examples

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 response = client.DescribeScheduledInstanceAvailability(new DescribeScheduledInstanceAvailabilityRequest 
{
    FirstSlotStartTimeRange = new SlotDateTimeRangeRequest {
        EarliestTime = new DateTime(2016, 1, 30, 4, 0, 0),
        LatestTime = new DateTime(2016, 1, 30, 8, 0, 0)
    },
    Recurrence = new ScheduledInstanceRecurrenceRequest {
        Frequency = "Weekly",
        Interval = 1,
        OccurrenceDays = new List {
            1
        }
    }
});

List scheduledInstanceAvailabilitySet = response.ScheduledInstanceAvailabilitySet;

            

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms