Purchase¶
Structure Class¶
Purchase
dataclass
¶
Bases: _SerdeShape
Describes the result of the purchase.
Attributes¶
currency_code
class-attribute
instance-attribute
¶
currency_code: str | None = ...
The currency in which the UpfrontPrice and HourlyPrice amounts are
specified. At this time, the only supported currency is USD.
duration
class-attribute
instance-attribute
¶
duration: int | None = ...
The duration of the reservation's term in seconds.
host_id_set
class-attribute
instance-attribute
¶
The IDs of the Dedicated Hosts associated with the reservation.
host_reservation_id
class-attribute
instance-attribute
¶
host_reservation_id: str | None = ...
The ID of the reservation.
hourly_price
class-attribute
instance-attribute
¶
hourly_price: str | None = ...
The hourly price of the reservation per hour.
instance_family
class-attribute
instance-attribute
¶
instance_family: str | None = ...
The instance family on the Dedicated Host that the reservation can be associated with.