Skip to content

EC2  >  Structures  >  CapacityAllocation

CapacityAllocation

Structure Class

CapacityAllocation dataclass

Bases: _SerdeShape

Information about instance capacity usage for a Capacity Reservation.

Attributes

allocation_metadata class-attribute instance-attribute
allocation_metadata: list[CapacityAllocationMetadataEntry] | None = ...

Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.

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

The usage type. used indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.

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

The amount of instance capacity associated with the usage. For example a value of 4 indicates that instance capacity for 4 instances is currently in use.