Skip to content

EC2  >  Structures  >  Purchase

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
host_id_set: list[str] | None = ...

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.

payment_option class-attribute instance-attribute
payment_option: str | None = ...

The payment option for the reservation.

upfront_price class-attribute instance-attribute
upfront_price: str | None = ...

The upfront price of the reservation.