Skip to content

TargetCapacitySpecification

Source code in docs_src/capo_ec2/types/target_capacity_specification.py
class TargetCapacitySpecification(TypedDict, closed=True):
    total_target_capacity: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The number of units to request, filled the default target capacity type.</p>"""
    on_demand_target_capacity: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.</p>"""
    spot_target_capacity: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.</p>"""
    default_target_capacity_type: NotRequired[
        "capo_ec2.types.default_target_capacity_type.DefaultTargetCapacityType"
    ]
    """<p>The default target capacity type.</p>"""
    target_capacity_unit_type: NotRequired[
        "capo_ec2.types.target_capacity_unit_type.TargetCapacityUnitType"
    ]
    """<p>The unit for the target capacity.</p>"""

default_target_capacity_type instance-attribute

default_target_capacity_type: NotRequired[DefaultTargetCapacityType]

The default target capacity type.

on_demand_target_capacity instance-attribute

on_demand_target_capacity: NotRequired[Integer]

The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.

spot_target_capacity instance-attribute

spot_target_capacity: NotRequired[Integer]

The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.

target_capacity_unit_type instance-attribute

target_capacity_unit_type: NotRequired[TargetCapacityUnitType]

The unit for the target capacity.

total_target_capacity instance-attribute

total_target_capacity: NotRequired[Integer]

The number of units to request, filled the default target capacity type.