Interface CfnEndpointConfig.ProductionVariantProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEndpointConfig.ProductionVariantProperty.Jsii$Proxy
- Enclosing class:
- CfnEndpointConfig
@Stability(Stable)
public static interface CfnEndpointConfig.ProductionVariantProperty
extends software.amazon.jsii.JsiiSerializable
Specifies a model that you want to host and the resources to deploy for hosting it.
If you are deploying multiple models, tell Amazon SageMaker how to distribute traffic among the models by specifying the InitialVariantWeight
objects.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.sagemaker.*; ProductionVariantProperty productionVariantProperty = ProductionVariantProperty.builder() .initialVariantWeight(123) .modelName("modelName") .variantName("variantName") // the properties below are optional .acceleratorType("acceleratorType") .containerStartupHealthCheckTimeoutInSeconds(123) .enableSsmAccess(false) .initialInstanceCount(123) .instanceType("instanceType") .modelDataDownloadTimeoutInSeconds(123) .serverlessConfig(ServerlessConfigProperty.builder() .maxConcurrency(123) .memorySizeInMb(123) // the properties below are optional .provisionedConcurrency(123) .build()) .volumeSizeInGb(123) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnEndpointConfig.ProductionVariantProperty
static final class
An implementation forCfnEndpointConfig.ProductionVariantProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The size of the Elastic Inference (EI) instance to use for the production variant.default Number
CfnEndpointConfig.ProductionVariantProperty.ContainerStartupHealthCheckTimeoutInSeconds
.default Object
CfnEndpointConfig.ProductionVariantProperty.EnableSSMAccess
.default Number
Number of instances to launch initially.Determines initial traffic distribution among all of the models that you specify in the endpoint configuration.default String
The ML compute instance type.default Number
CfnEndpointConfig.ProductionVariantProperty.ModelDataDownloadTimeoutInSeconds
.The name of the model that you want to host.default Object
The serverless configuration for an endpoint.The name of the production variant.default Number
CfnEndpointConfig.ProductionVariantProperty.VolumeSizeInGB
.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInitialVariantWeight
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 allVariantWeight
values across all ProductionVariants. If unspecified, it defaults to 1.0. -
getModelName
The name of the model that you want to host.This is the name that you specified when creating the model.
-
getVariantName
The name of the production variant. -
getAcceleratorType
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 . For more information, see Using Elastic Inference in Amazon SageMaker .
-
getContainerStartupHealthCheckTimeoutInSeconds
CfnEndpointConfig.ProductionVariantProperty.ContainerStartupHealthCheckTimeoutInSeconds
. -
getEnableSsmAccess
CfnEndpointConfig.ProductionVariantProperty.EnableSSMAccess
. -
getInitialInstanceCount
Number of instances to launch initially. -
getInstanceType
The ML compute instance type. -
getModelDataDownloadTimeoutInSeconds
CfnEndpointConfig.ProductionVariantProperty.ModelDataDownloadTimeoutInSeconds
. -
getServerlessConfig
The serverless configuration for an endpoint.Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
-
getVolumeSizeInGb
CfnEndpointConfig.ProductionVariantProperty.VolumeSizeInGB
. -
builder
-