Skip to content

InterruptibleCapacityAllocation

Source code in docs_src/capo_ec2/types/interruptible_capacity_allocation.py
class InterruptibleCapacityAllocation(TypedDict, closed=True):
    instance_count: NotRequired["capo_ec2.types.integer.Integer"]
    """<p> The current number of instances allocated to the interruptible reservation. </p>"""
    target_instance_count: NotRequired["capo_ec2.types.integer.Integer"]
    """<p> After your modify request, the requested number of instances allocated to interruptible reservation. </p>"""
    status: NotRequired[
        "capo_ec2.types.interruptible_capacity_reservation_allocation_status.InterruptibleCapacityReservationAllocationStatus"
    ]
    """<p> The current status of the allocation (updating during reclamation, active when complete). </p>"""
    interruptible_capacity_reservation_id: NotRequired["capo_ec2.types.string.String"]
    """<p> The ID of the interruptible Capacity Reservation created from the allocation. </p>"""
    interruption_type: NotRequired["capo_ec2.types.interruption_type.InterruptionType"]
    """<p> The type of interruption policy applied to the interruptible reservation. </p>"""
    zero_size_preference: NotRequired[
        "capo_ec2.types.zero_size_preference.ZeroSizePreference"
    ]
    """<p> Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances. A value of <code>retain</code> keeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value of <code>default</code> cancels the interruptible Capacity Reservation and returns the capacity to your source Capacity Reservation. </p>"""

instance_count instance-attribute

instance_count: NotRequired[Integer]

The current number of instances allocated to the interruptible reservation.

interruptible_capacity_reservation_id instance-attribute

interruptible_capacity_reservation_id: NotRequired[String]

The ID of the interruptible Capacity Reservation created from the allocation.

interruption_type instance-attribute

interruption_type: NotRequired[InterruptionType]

The type of interruption policy applied to the interruptible reservation.

status instance-attribute

The current status of the allocation (updating during reclamation, active when complete).

target_instance_count instance-attribute

target_instance_count: NotRequired[Integer]

After your modify request, the requested number of instances allocated to interruptible reservation.

zero_size_preference instance-attribute

zero_size_preference: NotRequired[ZeroSizePreference]

Specifies how Amazon EC2 handles the interruptible Capacity Reservation when you reduce its allocation to zero instances. A value of retain keeps the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. A value of default cancels the interruptible Capacity Reservation and returns the capacity to your source Capacity Reservation.