Skip to content

CapacitySize

Source code in docs_src/capo_sagemaker/types/capacity_size.py
class CapacitySize(TypedDict, closed=True):
    type: NotRequired["capo_sagemaker.types.capacity_size_type.CapacitySizeType"]
    """<p>Specifies the endpoint capacity type.</p> <ul> <li> <p> <code>INSTANCE_COUNT</code>: The endpoint activates based on the number of instances.</p> </li> <li> <p> <code>CAPACITY_PERCENT</code>: The endpoint activates based on the specified percentage of capacity.</p> </li> </ul>"""
    value: NotRequired["capo_sagemaker.types.capacity_size_value.CapacitySizeValue"]
    """<p>Defines the capacity size, either as a number of instances or a capacity percentage.</p>"""

type instance-attribute

type: NotRequired[CapacitySizeType]

Specifies the endpoint capacity type.

  • INSTANCE_COUNT: The endpoint activates based on the number of instances.

  • CAPACITY_PERCENT: The endpoint activates based on the specified percentage of capacity.

value instance-attribute

value: NotRequired[CapacitySizeValue]

Defines the capacity size, either as a number of instances or a capacity percentage.