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

Class: Aws::EC2::Types::Purchase

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

Overview

Describes the result of the purchase.

Instance Attribute Summary collapse

Instance Attribute Details

#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 duration of the reservation\'s term in seconds.

Returns:

  • (Integer) —

    The duration of the reservation\'s term in seconds.

#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.

Returns:

  • (String) —

    The ID of the reservation.

#hourly_price ⇒ String

The hourly price of the reservation per hour.

Returns:

  • (String) —

    The hourly price of the reservation per hour.

#instance_family ⇒ String

The instance family on the Dedicated Host that the reservation can be associated with.

Returns:

  • (String) —

    The instance family on the Dedicated Host that the reservation can be associated with.

#payment_option ⇒ String

The payment option for the reservation.

Possible values:

  • AllUpfront
  • PartialUpfront
  • NoUpfront

Returns:

  • (String) —

    The payment option for the reservation.

#upfront_price ⇒ String

The upfront price of the reservation.

Returns:

  • (String) —

    The upfront price of the reservation.