amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.PriceSchedule

Description

 
Synopsis

Documentation

data PriceSchedule Source #

Describes the price for a Reserved Instance.

See: newPriceSchedule smart constructor.

Constructors

PriceSchedule' 

Fields

  • active :: Maybe Bool

    The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

    A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

  • currencyCode :: Maybe CurrencyCodeValues

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

  • price :: Maybe Double

    The fixed price for the term.

  • term :: Maybe Integer

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

Instances

Instances details
FromXML PriceSchedule Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceSchedule

Generic PriceSchedule Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceSchedule

Associated Types

type Rep PriceSchedule :: Type -> Type #

Read PriceSchedule Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceSchedule

Show PriceSchedule Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceSchedule

NFData PriceSchedule Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceSchedule

Methods

rnf :: PriceSchedule -> () #

Eq PriceSchedule Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceSchedule

Hashable PriceSchedule Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceSchedule

type Rep PriceSchedule Source # 
Instance details

Defined in Amazonka.EC2.Types.PriceSchedule

type Rep PriceSchedule = D1 ('MetaData "PriceSchedule" "Amazonka.EC2.Types.PriceSchedule" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "PriceSchedule'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "active") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "currencyCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CurrencyCodeValues))) :*: (S1 ('MetaSel ('Just "price") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "term") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))))

newPriceSchedule :: PriceSchedule Source #

Create a value of PriceSchedule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:active:PriceSchedule', priceSchedule_active - The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

$sel:currencyCode:PriceSchedule', priceSchedule_currencyCode - The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

$sel:price:PriceSchedule', priceSchedule_price - The fixed price for the term.

$sel:term:PriceSchedule', priceSchedule_term - The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

priceSchedule_active :: Lens' PriceSchedule (Maybe Bool) Source #

The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

priceSchedule_currencyCode :: Lens' PriceSchedule (Maybe CurrencyCodeValues) Source #

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

priceSchedule_price :: Lens' PriceSchedule (Maybe Double) Source #

The fixed price for the term.

priceSchedule_term :: Lens' PriceSchedule (Maybe Integer) Source #

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