Interface InstancePool.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InstancePool.Builder,,InstancePool> SdkBuilder<InstancePool.Builder,,InstancePool> SdkPojo
- Enclosing class:
InstancePool
@Mutable
@NotThreadSafe
public static interface InstancePool.Builder
extends SdkPojo, CopyableBuilder<InstancePool.Builder,InstancePool>
-
Method Summary
Modifier and TypeMethodDescriptioninstanceType(String instanceType) The ML compute instance type for the instance pool.instanceType(ProductionVariantInstanceType instanceType) The ML compute instance type for the instance pool.modelNameOverride(String modelNameOverride) The name of a SageMaker model to use for this instance pool instead of the model specified for the production variant.The priority for the instance pool.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instanceType
The ML compute instance type for the instance pool.
- Parameters:
instanceType- The ML compute instance type for the instance pool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The ML compute instance type for the instance pool.
- Parameters:
instanceType- The ML compute instance type for the instance pool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
modelNameOverride
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.
- Parameters:
modelNameOverride- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priority
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.
- Parameters:
priority- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-