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 DescribeScheduledInstances operation. Describes the specified Scheduled Instances or all your Scheduled Instances.

Inheritance Hierarchy

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

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

Syntax

C#
public class DescribeScheduledInstancesRequest : AmazonEC2Request
         IAmazonWebServiceRequest

The DescribeScheduledInstancesRequest 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.

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 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 100. To retrieve the remaining results, make another call with the returned NextToken value.

Public Property NextToken System.String

Gets and sets the property NextToken.

The token for the next set of results.

Public Property ScheduledInstanceIds System.Collections.Generic.List<System.String>

Gets and sets the property ScheduledInstanceIds.

The Scheduled Instance IDs.

Public Property SlotStartTimeRange Amazon.EC2.Model.SlotStartTimeRangeRequest

Gets and sets the property SlotStartTimeRange.

The time period for the first schedule to start.

Examples

This example describes the specified Scheduled Instance.

To describe your Scheduled Instances


var client = new AmazonEC2Client();
var response = client.DescribeScheduledInstances(new DescribeScheduledInstancesRequest 
{
    ScheduledInstanceIds = new List<string> {
        "sci-1234-1234-1234-1234-123456789012"
    }
});

List<ScheduledInstance> scheduledInstanceSet = response.ScheduledInstanceSet;

            

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