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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Describes the result of the purchase.

Instance Attribute Summary collapse

Instance Attribute Details

#currency_codeString

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

Returns:

  • (String)


18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18269

class Purchase < Struct.new(
  :currency_code,
  :duration,
  :host_id_set,
  :host_reservation_id,
  :hourly_price,
  :instance_family,
  :payment_option,
  :upfront_price)
  include Aws::Structure
end

#durationInteger

The duration of the reservation's term in seconds.

Returns:

  • (Integer)


18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18269

class Purchase < Struct.new(
  :currency_code,
  :duration,
  :host_id_set,
  :host_reservation_id,
  :hourly_price,
  :instance_family,
  :payment_option,
  :upfront_price)
  include Aws::Structure
end

#host_id_setArray<String>

The IDs of the Dedicated Hosts associated with the reservation.

Returns:

  • (Array<String>)


18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18269

class Purchase < Struct.new(
  :currency_code,
  :duration,
  :host_id_set,
  :host_reservation_id,
  :hourly_price,
  :instance_family,
  :payment_option,
  :upfront_price)
  include Aws::Structure
end

#host_reservation_idString

The ID of the reservation.

Returns:

  • (String)


18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18269

class Purchase < Struct.new(
  :currency_code,
  :duration,
  :host_id_set,
  :host_reservation_id,
  :hourly_price,
  :instance_family,
  :payment_option,
  :upfront_price)
  include Aws::Structure
end

#hourly_priceString

The hourly price of the reservation per hour.

Returns:

  • (String)


18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18269

class Purchase < Struct.new(
  :currency_code,
  :duration,
  :host_id_set,
  :host_reservation_id,
  :hourly_price,
  :instance_family,
  :payment_option,
  :upfront_price)
  include Aws::Structure
end

#instance_familyString

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

Returns:

  • (String)


18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18269

class Purchase < Struct.new(
  :currency_code,
  :duration,
  :host_id_set,
  :host_reservation_id,
  :hourly_price,
  :instance_family,
  :payment_option,
  :upfront_price)
  include Aws::Structure
end

#payment_optionString

The payment option for the reservation.

Returns:

  • (String)


18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18269

class Purchase < Struct.new(
  :currency_code,
  :duration,
  :host_id_set,
  :host_reservation_id,
  :hourly_price,
  :instance_family,
  :payment_option,
  :upfront_price)
  include Aws::Structure
end

#upfront_priceString

The upfront price of the reservation.

Returns:

  • (String)


18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18269

class Purchase < Struct.new(
  :currency_code,
  :duration,
  :host_id_set,
  :host_reservation_id,
  :hourly_price,
  :instance_family,
  :payment_option,
  :upfront_price)
  include Aws::Structure
end