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

Class: Aws::EC2::Types::PriceScheduleSpecification

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

Overview

Note:

When making an API call, you may pass PriceScheduleSpecification data as a hash:

{
  currency_code: "USD", # accepts USD
  price: 1.0,
  term: 1,
}

Describes the price for a Reserved Instance.

Instance Attribute Summary collapse

Instance Attribute Details

#currency_codeString

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

Returns:

  • (String)


18636
18637
18638
18639
18640
18641
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18636

class PriceScheduleSpecification < Struct.new(
  :currency_code,
  :price,
  :term)
  include Aws::Structure
end

#priceFloat

The fixed price for the term.

Returns:

  • (Float)


18636
18637
18638
18639
18640
18641
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18636

class PriceScheduleSpecification < Struct.new(
  :currency_code,
  :price,
  :term)
  include Aws::Structure
end

#termInteger

The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

Returns:

  • (Integer)


18636
18637
18638
18639
18640
18641
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 18636

class PriceScheduleSpecification < Struct.new(
  :currency_code,
  :price,
  :term)
  include Aws::Structure
end