AWS SDK Version 4 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.

Describes a Reserved Instance.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.ReservedInstances

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

Syntax

C#
public class ReservedInstances

The ReservedInstances type exposes the following members

Constructors

NameDescription
Public Method ReservedInstances()

Properties

NameTypeDescription
Public Property AvailabilityZone System.String

Gets and sets the property AvailabilityZone.

The Availability Zone in which the Reserved Instance can be used.

Public Property AvailabilityZoneId System.String

Gets and sets the property AvailabilityZoneId.

The ID of the Availability Zone.

Public Property CurrencyCode Amazon.EC2.CurrencyCodeValues

Gets and sets the property CurrencyCode.

The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

Public Property Duration System.Nullable<System.Int64>

Gets and sets the property Duration.

The duration of the Reserved Instance, in seconds.

Public Property End System.Nullable<System.DateTime>

Gets and sets the property End.

The time when the Reserved Instance expires.

Public Property FixedPrice System.Nullable<System.Single>

Gets and sets the property FixedPrice.

The purchase price of the Reserved Instance.

Public Property InstanceCount System.Nullable<System.Int32>

Gets and sets the property InstanceCount.

The number of reservations purchased.

Public Property InstanceTenancy Amazon.EC2.Tenancy

Gets and sets the property InstanceTenancy.

The tenancy of the instance.

Public Property InstanceType Amazon.EC2.InstanceType

Gets and sets the property InstanceType.

The instance type on which the Reserved Instance can be used.

Public Property OfferingClass Amazon.EC2.OfferingClassType

Gets and sets the property OfferingClass.

The offering class of the Reserved Instance.

Public Property OfferingType Amazon.EC2.OfferingTypeValues

Gets and sets the property OfferingType.

The Reserved Instance offering type.

Public Property ProductDescription Amazon.EC2.RIProductDescription

Gets and sets the property ProductDescription.

The Reserved Instance product platform description.

Public Property RecurringCharges System.Collections.Generic.List<Amazon.EC2.Model.RecurringCharge>

Gets and sets the property RecurringCharges.

The recurring charge tag assigned to the resource.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property ReservedInstancesId System.String

Gets and sets the property ReservedInstancesId.

The ID of the Reserved Instance.

Public Property Scope Amazon.EC2.Scope

Gets and sets the property Scope.

The scope of the Reserved Instance.

Public Property Start System.Nullable<System.DateTime>

Gets and sets the property Start.

The date and time the Reserved Instance started.

Public Property State Amazon.EC2.ReservedInstanceState

Gets and sets the property State.

The state of the Reserved Instance purchase.

Public Property Tags System.Collections.Generic.List<Amazon.EC2.Model.Tag>

Gets and sets the property Tags.

Any tags assigned to the resource.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property UsagePrice System.Nullable<System.Single>

Gets and sets the property UsagePrice.

The usage price of the Reserved Instance, per hour.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer