You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::EC2::Types::HostReservation

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Details about the Dedicated Host Reservation and associated Dedicated Hosts.

Instance Attribute Summary collapse

Instance Attribute Details

#count ⇒ Integer

The number of Dedicated Hosts the reservation is associated with.

Returns:

  • (Integer) —

    The number of Dedicated Hosts the reservation is associated with.

#currency_code ⇒ String

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

Possible values:

  • USD

Returns:

  • (String) —

    The currency in which the upfrontPrice and hourlyPrice amounts are specified.

#duration ⇒ Integer

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

Returns:

  • (Integer) —

    The length of the reservation\'s term, specified in seconds.

#end ⇒ Time

The date and time that the reservation ends.

Returns:

  • (Time) —

    The date and time that the reservation ends.

#host_id_set ⇒ Array<String>

The IDs of the Dedicated Hosts associated with the reservation.

Returns:

  • (Array<String>) —

    The IDs of the Dedicated Hosts associated with the reservation.

#host_reservation_id ⇒ String

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

Returns:

  • (String) —

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

#hourly_price ⇒ String

The hourly price of the reservation.

Returns:

  • (String) —

    The hourly price of the reservation.

#instance_family ⇒ String

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.

Returns:

  • (String) —

    The instance family of the Dedicated Host Reservation.

#offering_id ⇒ String

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

Returns:

  • (String) —

    The ID of the reservation.

#payment_option ⇒ String

The payment option selected for this reservation.

Possible values:

  • AllUpfront
  • PartialUpfront
  • NoUpfront

Returns:

  • (String) —

    The payment option selected for this reservation.

#start ⇒ Time

The date and time that the reservation started.

Returns:

  • (Time) —

    The date and time that the reservation started.

#state ⇒ String

The state of the reservation.

Possible values:

  • payment-pending
  • payment-failed
  • active
  • retired

Returns:

  • (String) —

    The state of the reservation.

#tags ⇒ Array<Types::Tag>

Any tags assigned to the Dedicated Host Reservation.

Returns:

  • (Array<Types::Tag>) —

    Any tags assigned to the Dedicated Host Reservation.

#upfront_price ⇒ String

The upfront price of the reservation.

Returns:

  • (String) —

    The upfront price of the reservation.