Skip to content

EC2  >  Structures  >  InterruptibleCapacityAllocation

InterruptibleCapacityAllocation

Structure Class

InterruptibleCapacityAllocation dataclass

Bases: _SerdeShape

Represents the allocation of capacity from a source reservation to an interruptible reservation, tracking current and target instance counts for allocation management.

Attributes

instance_count class-attribute instance-attribute
instance_count: int | None = ...

The current number of instances allocated to the interruptible reservation.

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

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

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

The type of interruption policy applied to the interruptible reservation.

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

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

target_instance_count class-attribute instance-attribute
target_instance_count: int | None = ...

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

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

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.