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()
         .variantName("variantName")
         // the properties below are optional
         .acceleratorType("acceleratorType")
         .containerStartupHealthCheckTimeoutInSeconds(123)
         .enableSsmAccess(false)
         .initialInstanceCount(123)
         .initialVariantWeight(123)
         .instanceType("instanceType")
         .managedInstanceScaling(ManagedInstanceScalingProperty.builder()
                 .maxInstanceCount(123)
                 .minInstanceCount(123)
                 .status("status")
                 .build())
         .modelDataDownloadTimeoutInSeconds(123)
         .modelName("modelName")
         .routingConfig(RoutingConfigProperty.builder()
                 .routingStrategy("routingStrategy")
                 .build())
         .serverlessConfig(ServerlessConfigProperty.builder()
                 .maxConcurrency(123)
                 .memorySizeInMb(123)
                 // the properties below are optional
                 .provisionedConcurrency(123)
                 .build())
         .volumeSizeInGb(123)
         .build();
 

See Also: