ProductionVariant

Identifies a model that you want to host and the resources chosen to deploy for hosting it. If you are deploying multiple models, tell SageMaker how to distribute traffic among the models by specifying variant weights. For more information on production variants, check Production variants.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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.

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.

Link copied to clipboard

Specifies configuration for a core dump from the model container when the process crashes.

Link copied to clipboard

You can use this parameter to turn on native Amazon Web Services Systems Manager (SSM) access for a production variant behind an endpoint. By default, SSM access is disabled for all production variants behind an endpoint. You can turn on or turn off SSM access for a production variant behind an existing endpoint by creating a new endpoint configuration and calling UpdateEndpoint.

Link copied to clipboard

Number of instances to launch initially.

Link copied to clipboard

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.

Link copied to clipboard

The ML compute instance type.

Link copied to clipboard

Settings that control the range in the number of instances that the endpoint provisions as it scales up or down to accommodate traffic.

Link copied to clipboard

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.

Link copied to clipboard

The name of the model that you want to host. This is the name that you specified when creating the model.

Link copied to clipboard

Settings that control how the endpoint routes incoming traffic to the instances that the endpoint hosts.

Link copied to clipboard

The serverless configuration for an endpoint. Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.

Link copied to clipboard

The name of the production variant.

Link copied to clipboard

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.

Functions

Link copied to clipboard
inline fun copy(block: ProductionVariant.Builder.() -> Unit = {}): ProductionVariant
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String