public static interface ProductionVariant.Builder extends SdkPojo, CopyableBuilder<ProductionVariant.Builder,ProductionVariant>
| Modifier and Type | Method and Description |
|---|---|
ProductionVariant.Builder |
acceleratorType(ProductionVariantAcceleratorType acceleratorType)
The size of the Elastic Inference (EI) instance to use for the production variant.
|
ProductionVariant.Builder |
acceleratorType(String acceleratorType)
The size of the Elastic Inference (EI) instance to use for the production variant.
|
default ProductionVariant.Builder |
coreDumpConfig(Consumer<ProductionVariantCoreDumpConfig.Builder> coreDumpConfig)
Specifies configuration for a core dump from the model container when the process crashes.
|
ProductionVariant.Builder |
coreDumpConfig(ProductionVariantCoreDumpConfig coreDumpConfig)
Specifies configuration for a core dump from the model container when the process crashes.
|
ProductionVariant.Builder |
initialInstanceCount(Integer initialInstanceCount)
Number of instances to launch initially.
|
ProductionVariant.Builder |
initialVariantWeight(Float initialVariantWeight)
Determines initial traffic distribution among all of the models that you specify in the endpoint
configuration.
|
ProductionVariant.Builder |
instanceType(ProductionVariantInstanceType instanceType)
The ML compute instance type.
|
ProductionVariant.Builder |
instanceType(String instanceType)
The ML compute instance type.
|
ProductionVariant.Builder |
modelName(String modelName)
The name of the model that you want to host.
|
default ProductionVariant.Builder |
serverlessConfig(Consumer<ProductionVariantServerlessConfig.Builder> serverlessConfig)
The serverless configuration for an endpoint.
|
ProductionVariant.Builder |
serverlessConfig(ProductionVariantServerlessConfig serverlessConfig)
The serverless configuration for an endpoint.
|
ProductionVariant.Builder |
variantName(String variantName)
The name of the production variant.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildProductionVariant.Builder variantName(String variantName)
The name of the production variant.
variantName - The name of the production variant.ProductionVariant.Builder modelName(String modelName)
The name of the model that you want to host. This is the name that you specified when creating the model.
modelName - The name of the model that you want to host. This is the name that you specified when creating the
model.ProductionVariant.Builder initialInstanceCount(Integer initialInstanceCount)
Number of instances to launch initially.
initialInstanceCount - Number of instances to launch initially.ProductionVariant.Builder instanceType(String instanceType)
The ML compute instance type.
instanceType - The ML compute instance type.ProductionVariantInstanceType,
ProductionVariantInstanceTypeProductionVariant.Builder instanceType(ProductionVariantInstanceType instanceType)
The ML compute instance type.
instanceType - The ML compute instance type.ProductionVariantInstanceType,
ProductionVariantInstanceTypeProductionVariant.Builder initialVariantWeight(Float initialVariantWeight)
Determines initial traffic distribution among all of the models that you specify in the endpoint
configuration. The traffic to a production variant is determined by the ratio of the
VariantWeight to the sum of all VariantWeight values across all ProductionVariants.
If unspecified, it defaults to 1.0.
initialVariantWeight - Determines initial traffic distribution among all of the models that you specify in the endpoint
configuration. The traffic to a production variant is determined by the ratio of the
VariantWeight to the sum of all VariantWeight values across all
ProductionVariants. If unspecified, it defaults to 1.0.ProductionVariant.Builder acceleratorType(String acceleratorType)
The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker.
acceleratorType - The size of the Elastic Inference (EI) instance to use for the production variant. EI instances
provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon
SageMaker.ProductionVariantAcceleratorType,
ProductionVariantAcceleratorTypeProductionVariant.Builder acceleratorType(ProductionVariantAcceleratorType acceleratorType)
The size of the Elastic Inference (EI) instance to use for the production variant. EI instances provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon SageMaker.
acceleratorType - The size of the Elastic Inference (EI) instance to use for the production variant. EI instances
provide on-demand GPU computing for inference. For more information, see Using Elastic Inference in Amazon
SageMaker.ProductionVariantAcceleratorType,
ProductionVariantAcceleratorTypeProductionVariant.Builder coreDumpConfig(ProductionVariantCoreDumpConfig coreDumpConfig)
Specifies configuration for a core dump from the model container when the process crashes.
coreDumpConfig - Specifies configuration for a core dump from the model container when the process crashes.default ProductionVariant.Builder coreDumpConfig(Consumer<ProductionVariantCoreDumpConfig.Builder> coreDumpConfig)
Specifies configuration for a core dump from the model container when the process crashes.
This is a convenience that creates an instance of theProductionVariantCoreDumpConfig.Builder
avoiding the need to create one manually via ProductionVariantCoreDumpConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to coreDumpConfig(ProductionVariantCoreDumpConfig).coreDumpConfig - a consumer that will call methods on ProductionVariantCoreDumpConfig.BuildercoreDumpConfig(ProductionVariantCoreDumpConfig)ProductionVariant.Builder serverlessConfig(ProductionVariantServerlessConfig serverlessConfig)
The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
Serverless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
serverlessConfig - The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of
an instance-based endpoint configuration. Serverless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
default ProductionVariant.Builder serverlessConfig(Consumer<ProductionVariantServerlessConfig.Builder> serverlessConfig)
The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
Serverless Inference is in preview release for Amazon SageMaker and is subject to change. We do not recommend using this feature in production environments.
ProductionVariantServerlessConfig.Builder avoiding the need to create one manually via
ProductionVariantServerlessConfig.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to serverlessConfig(ProductionVariantServerlessConfig).serverlessConfig - a consumer that will call methods on ProductionVariantServerlessConfig.BuilderserverlessConfig(ProductionVariantServerlessConfig)Copyright © 2022. All rights reserved.