Skip to content

HostReservation

Source code in docs_src/capo_ec2/types/host_reservation.py
class HostReservation(TypedDict, closed=True):
    count: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The number of Dedicated Hosts the reservation is associated with.</p>"""
    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 length of the reservation's term, specified in seconds. Can be <code>31536000 (1 year)</code> | <code>94608000 (3 years)</code>.</p>"""
    end: NotRequired["capo_ec2.types.date_time.DateTime"]
    """<p>The date and time that the reservation ends.</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 that specifies the associated Dedicated Hosts.</p>"""
    hourly_price: NotRequired["capo_ec2.types.string.String"]
    """<p>The hourly price of the reservation.</p>"""
    instance_family: NotRequired["capo_ec2.types.string.String"]
    """<p>The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.</p>"""
    offering_id: NotRequired["capo_ec2.types.offering_id.OfferingId"]
    """<p>The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.</p>"""
    payment_option: NotRequired["capo_ec2.types.payment_option.PaymentOption"]
    """<p>The payment option selected for this reservation.</p>"""
    start: NotRequired["capo_ec2.types.date_time.DateTime"]
    """<p>The date and time that the reservation started.</p>"""
    state: NotRequired["capo_ec2.types.reservation_state.ReservationState"]
    """<p>The state of the reservation.</p>"""
    upfront_price: NotRequired["capo_ec2.types.string.String"]
    """<p>The upfront price of the reservation.</p>"""
    tags: NotRequired["capo_ec2.types.tag_list.TagList"]
    """<p>Any tags assigned to the Dedicated Host Reservation.</p>"""

count instance-attribute

count: NotRequired[Integer]

The number of Dedicated Hosts the reservation is associated with.

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 length of the reservation's term, specified in seconds. Can be 31536000 (1 year) | 94608000 (3 years).

end instance-attribute

end: NotRequired[DateTime]

The date and time that the reservation ends.

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 that specifies the associated Dedicated Hosts.

hourly_price instance-attribute

hourly_price: NotRequired[String]

The hourly price of the reservation.

instance_family instance-attribute

instance_family: NotRequired[String]

The instance family of the Dedicated Host Reservation. The instance family on the Dedicated Host must be the same in order for it to benefit from the reservation.

offering_id instance-attribute

offering_id: NotRequired[OfferingId]

The ID of the reservation. This remains the same regardless of which Dedicated Hosts are associated with it.

payment_option instance-attribute

payment_option: NotRequired[PaymentOption]

The payment option selected for this reservation.

start instance-attribute

start: NotRequired[DateTime]

The date and time that the reservation started.

state instance-attribute

state: NotRequired[ReservationState]

The state of the reservation.

tags instance-attribute

tags: NotRequired[TagList]

Any tags assigned to the Dedicated Host Reservation.

upfront_price instance-attribute

upfront_price: NotRequired[String]

The upfront price of the reservation.