Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data PriceSchedule = PriceSchedule' {}
- newPriceSchedule :: PriceSchedule
- priceSchedule_active :: Lens' PriceSchedule (Maybe Bool)
- priceSchedule_currencyCode :: Lens' PriceSchedule (Maybe CurrencyCodeValues)
- priceSchedule_price :: Lens' PriceSchedule (Maybe Double)
- priceSchedule_term :: Lens' PriceSchedule (Maybe Integer)
Documentation
data PriceSchedule Source #
Describes the price for a Reserved Instance.
See: newPriceSchedule
smart constructor.
PriceSchedule' | |
|
Instances
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.