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.
|
ProductionVariant.Builder |
containerStartupHealthCheckTimeoutInSeconds(Integer containerStartupHealthCheckTimeoutInSeconds)
The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting.
|
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 |
modelDataDownloadTimeoutInSeconds(Integer modelDataDownloadTimeoutInSeconds)
The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the
individual inference instance associated with this production variant.
|
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.
|
ProductionVariant.Builder |
volumeSizeInGB(Integer volumeSizeInGB)
The size, in GB, of the ML storage volume attached to individual inference instance associated with 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 method 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.
serverlessConfig - The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of
an instance-based endpoint configuration.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.
This is a convenience method that creates an instance of theProductionVariantServerlessConfig.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)ProductionVariant.Builder volumeSizeInGB(Integer volumeSizeInGB)
The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant. Currently only Amazon EBS gp2 storage volumes are supported.
volumeSizeInGB - The size, in GB, of the ML storage volume attached to individual inference instance associated with
the production variant. Currently only Amazon EBS gp2 storage volumes are supported.ProductionVariant.Builder modelDataDownloadTimeoutInSeconds(Integer modelDataDownloadTimeoutInSeconds)
The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant.
modelDataDownloadTimeoutInSeconds - The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3
to the individual inference instance associated with this production variant.ProductionVariant.Builder containerStartupHealthCheckTimeoutInSeconds(Integer containerStartupHealthCheckTimeoutInSeconds)
The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting. For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests.
containerStartupHealthCheckTimeoutInSeconds - The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting.
For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests.Copyright © 2023. All rights reserved.