Skip to content

CapacityAllocation

Source code in docs_src/capo_ec2/types/capacity_allocation.py
class CapacityAllocation(TypedDict, closed=True):
    allocation_type: NotRequired["capo_ec2.types.allocation_type.AllocationType"]
    """<p>The usage type. <code>used</code> indicates that the instance capacity is in use by instances that are running in the Capacity Reservation.</p>"""
    count: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The amount of instance capacity associated with the usage. For example a value of <code>4</code> indicates that instance capacity for 4 instances is currently in use.</p>"""
    allocation_metadata: NotRequired[
        "capo_ec2.types.capacity_allocation_metadata_list.CapacityAllocationMetadataList"
    ]
    """<p>Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.</p>"""

allocation_metadata instance-attribute

allocation_metadata: NotRequired[CapacityAllocationMetadataList]

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

allocation_type instance-attribute

allocation_type: NotRequired[AllocationType]

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

count instance-attribute

count: NotRequired[Integer]

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.