Skip to content

InstancePool

Source code in docs_src/capo_sagemaker/types/instance_pool.py
class InstancePool(TypedDict, closed=True):
    instance_type: NotRequired[
        "capo_sagemaker.types.production_variant_instance_type.ProductionVariantInstanceType"
    ]
    """<p>The ML compute instance type for the instance pool.</p>"""
    model_name_override: NotRequired["capo_sagemaker.types.model_name.ModelName"]
    """<p>The name of a SageMaker model to use for this instance pool instead of the model specified for the production variant. Use this to deploy a different model optimized for the instance type in this pool.</p>"""
    priority: NotRequired[
        "capo_sagemaker.types.instance_pool_priority.InstancePoolPriority"
    ]
    """<p>The priority for the instance pool. SageMaker attempts to provision instances in order of priority, starting with the lowest value. If instances for a higher-priority pool are unavailable, SageMaker attempts to provision from the next pool.</p> <p>Valid values: 1 to 5, where 1 is the highest priority.</p>"""

instance_type instance-attribute

instance_type: NotRequired[ProductionVariantInstanceType]

The ML compute instance type for the instance pool.

model_name_override instance-attribute

model_name_override: NotRequired[ModelName]

The name of a SageMaker model to use for this instance pool instead of the model specified for the production variant. Use this to deploy a different model optimized for the instance type in this pool.

priority instance-attribute

priority: NotRequired[InstancePoolPriority]

The priority for the instance pool. SageMaker attempts to provision instances in order of priority, starting with the lowest value. If instances for a higher-priority pool are unavailable, SageMaker attempts to provision from the next pool.

Valid values: 1 to 5, where 1 is the highest priority.