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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnEndpointConfig.ProductionVariantPropertystatic final classAn implementation forCfnEndpointConfig.ProductionVariantProperty
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()default StringThe size of the Elastic Inference (EI) instance to use for the production variant.default NumberCfnEndpointConfig.ProductionVariantProperty.ContainerStartupHealthCheckTimeoutInSeconds.default ObjectCfnEndpointConfig.ProductionVariantProperty.EnableSSMAccess.default NumberNumber of instances to launch initially.Determines initial traffic distribution among all of the models that you specify in the endpoint configuration.default StringThe ML compute instance type.default NumberCfnEndpointConfig.ProductionVariantProperty.ModelDataDownloadTimeoutInSeconds.The name of the model that you want to host.default ObjectThe serverless configuration for an endpoint.The name of the production variant.default NumberCfnEndpointConfig.ProductionVariantProperty.VolumeSizeInGB.Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getInitialVariantWeightDetermines 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 VariantWeightto the sum of allVariantWeightvalues across all ProductionVariants. If unspecified, it defaults to 1.0.
- 
getModelNameThe name of the model that you want to host.This is the name that you specified when creating the model. 
- 
getVariantNameThe name of the production variant.
- 
getAcceleratorTypeThe 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 . 
- 
getContainerStartupHealthCheckTimeoutInSecondsCfnEndpointConfig.ProductionVariantProperty.ContainerStartupHealthCheckTimeoutInSeconds.
- 
getEnableSsmAccessCfnEndpointConfig.ProductionVariantProperty.EnableSSMAccess.
- 
getInitialInstanceCountNumber of instances to launch initially.
- 
getInstanceTypeThe ML compute instance type.
- 
getModelDataDownloadTimeoutInSecondsCfnEndpointConfig.ProductionVariantProperty.ModelDataDownloadTimeoutInSeconds.
- 
getServerlessConfigThe serverless configuration for an endpoint.Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration. 
- 
getVolumeSizeInGbCfnEndpointConfig.ProductionVariantProperty.VolumeSizeInGB.
- 
builder
 
-