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

Class: Aws::EC2::Types::PurchaseHostReservationResult

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

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide

Returns:

  • (String)


18909
18910
18911
18912
18913
18914
18915
18916
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18909

class PurchaseHostReservationResult < Struct.new(
  :client_token,
  :currency_code,
  :purchase,
  :total_hourly_price,
  :total_upfront_price)
  include Aws::Structure
end

#currency_codeString

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

Returns:

  • (String)


18909
18910
18911
18912
18913
18914
18915
18916
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18909

class PurchaseHostReservationResult < Struct.new(
  :client_token,
  :currency_code,
  :purchase,
  :total_hourly_price,
  :total_upfront_price)
  include Aws::Structure
end

#purchaseArray<Types::Purchase>

Describes the details of the purchase.

Returns:



18909
18910
18911
18912
18913
18914
18915
18916
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18909

class PurchaseHostReservationResult < Struct.new(
  :client_token,
  :currency_code,
  :purchase,
  :total_hourly_price,
  :total_upfront_price)
  include Aws::Structure
end

#total_hourly_priceString

The total hourly price of the reservation calculated per hour.

Returns:

  • (String)


18909
18910
18911
18912
18913
18914
18915
18916
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18909

class PurchaseHostReservationResult < Struct.new(
  :client_token,
  :currency_code,
  :purchase,
  :total_hourly_price,
  :total_upfront_price)
  include Aws::Structure
end

#total_upfront_priceString

The total amount that will be charged to your account when you purchase the reservation.

Returns:

  • (String)


18909
18910
18911
18912
18913
18914
18915
18916
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18909

class PurchaseHostReservationResult < Struct.new(
  :client_token,
  :currency_code,
  :purchase,
  :total_hourly_price,
  :total_upfront_price)
  include Aws::Structure
end