Skip to content

Purchase

Source code in docs_src/capo_ec2/types/purchase.py
class Purchase(TypedDict, closed=True):
    currency_code: NotRequired["capo_ec2.types.currency_code_values.CurrencyCodeValues"]
    """<p>The currency in which the <code>UpfrontPrice</code> and <code>HourlyPrice</code> amounts are specified. At this time, the only supported currency is <code>USD</code>.</p>"""
    duration: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The duration of the reservation's term in seconds.</p>"""
    host_id_set: NotRequired["capo_ec2.types.response_host_id_set.ResponseHostIdSet"]
    """<p>The IDs of the Dedicated Hosts associated with the reservation.</p>"""
    host_reservation_id: NotRequired[
        "capo_ec2.types.host_reservation_id.HostReservationId"
    ]
    """<p>The ID of the reservation.</p>"""
    hourly_price: NotRequired["capo_ec2.types.string.String"]
    """<p>The hourly price of the reservation per hour.</p>"""
    instance_family: NotRequired["capo_ec2.types.string.String"]
    """<p>The instance family on the Dedicated Host that the reservation can be associated with.</p>"""
    payment_option: NotRequired["capo_ec2.types.payment_option.PaymentOption"]
    """<p>The payment option for the reservation.</p>"""
    upfront_price: NotRequired["capo_ec2.types.string.String"]
    """<p>The upfront price of the reservation.</p>"""

currency_code instance-attribute

currency_code: NotRequired[CurrencyCodeValues]

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

duration instance-attribute

duration: NotRequired[Integer]

The duration of the reservation's term in seconds.

host_id_set instance-attribute

host_id_set: NotRequired[ResponseHostIdSet]

The IDs of the Dedicated Hosts associated with the reservation.

host_reservation_id instance-attribute

host_reservation_id: NotRequired[HostReservationId]

The ID of the reservation.

hourly_price instance-attribute

hourly_price: NotRequired[String]

The hourly price of the reservation per hour.

instance_family instance-attribute

instance_family: NotRequired[String]

The instance family on the Dedicated Host that the reservation can be associated with.

payment_option instance-attribute

payment_option: NotRequired[PaymentOption]

The payment option for the reservation.

upfront_price instance-attribute

upfront_price: NotRequired[String]

The upfront price of the reservation.