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.

Details about the Dedicated Host Reservation and associated Dedicated Hosts.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Model.HostReservation

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

Syntax

C#
public class HostReservation

The HostReservation type exposes the following members

Constructors

NameDescription
Public Method HostReservation()

Properties

NameTypeDescription
Public Property Count System.Int32

Gets and sets the property Count.

The number of Dedicated Hosts the reservation is associated with.

Public Property CurrencyCode Amazon.EC2.CurrencyCodeValues

Gets and sets the property CurrencyCode.

The currency in which the upfrontPrice and hourlyPrice amounts are specified. At this time, the only supported currency is USD.

Public Property Duration System.Int32

Gets and sets the property Duration.

The length of the reservation's term, specified in seconds. Can be 31536000 (1 year) | 94608000 (3 years).

Public Property End System.DateTime

Gets and sets the property End.

The date and time that the reservation ends.

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

Gets and sets the property HostIdSet.

The IDs of the Dedicated Hosts associated with the reservation.

Public Property HostReservationId System.String

Gets and sets the property HostReservationId.

The ID of the reservation that specifies the associated Dedicated Hosts.

Public Property HourlyPrice System.String

Gets and sets the property HourlyPrice.

The hourly price of the reservation.

Public Property InstanceFamily System.String

Gets and sets the property InstanceFamily.

The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.

Public Property OfferingId System.String

Gets and sets the property OfferingId.

The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.

Public Property PaymentOption Amazon.EC2.PaymentOption

Gets and sets the property PaymentOption.

The payment option selected for this reservation.

Public Property Start System.DateTime

Gets and sets the property Start.

The date and time that the reservation started.

Public Property State Amazon.EC2.ReservationState

Gets and sets the property State.

The state of the reservation.

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

Gets and sets the property Tags.

Any tags assigned to the Dedicated Host Reservation.

Public Property UpfrontPrice System.String

Gets and sets the property UpfrontPrice.

The upfront price of the reservation.

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