Skip to content

PriceSchedule

Source code in docs_src/capo_ec2/types/price_schedule.py
class PriceSchedule(TypedDict, closed=True):
    active: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.</p> <p>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.</p>"""
    currency_code: NotRequired["capo_ec2.types.currency_code_values.CurrencyCodeValues"]
    """<p>The currency for transacting the Reserved Instance resale. At this time, the only supported currency is <code>USD</code>.</p>"""
    price: NotRequired["capo_ec2.types.double.Double"]
    """<p>The fixed price for the term.</p>"""
    term: NotRequired["capo_ec2.types.long.Long"]
    """<p>The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.</p>"""

active instance-attribute

active: NotRequired[Boolean]

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.

currency_code instance-attribute

currency_code: NotRequired[CurrencyCodeValues]

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

price instance-attribute

price: NotRequired[Double]

The fixed price for the term.

term instance-attribute

term: NotRequired[Long]

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