Interface CfnEndpointConfig.ProductionVariantProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnEndpointConfig.ProductionVariantProperty extends
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.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 ProductionVariantProperty productionVariantProperty = ProductionVariantProperty.builder()
         // the properties below are optional
                 // the properties below are optional
  • Method Details

    • getInitialVariantWeight

      @Stability(Stable) @NotNull Number 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 all VariantWeight values across all ProductionVariants. If unspecified, it defaults to 1.0.

    • getModelName

      @Stability(Stable) @NotNull String getModelName()
      The name of the model that you want to host.

      This is the name that you specified when creating the model.

    • getVariantName

      @Stability(Stable) @NotNull String getVariantName()
      The name of the production variant.
    • getAcceleratorType

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default Number getContainerStartupHealthCheckTimeoutInSeconds()
    • getEnableSsmAccess

      @Stability(Stable) @Nullable default Object getEnableSsmAccess()
    • getInitialInstanceCount

      @Stability(Stable) @Nullable default Number getInitialInstanceCount()
      Number of instances to launch initially.
    • getInstanceType

      @Stability(Stable) @Nullable default String getInstanceType()
      The ML compute instance type.
    • getModelDataDownloadTimeoutInSeconds

      @Stability(Stable) @Nullable default Number getModelDataDownloadTimeoutInSeconds()
    • getServerlessConfig

      @Stability(Stable) @Nullable default Object getServerlessConfig()
      The serverless configuration for an endpoint.

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

    • getVolumeSizeInGb

      @Stability(Stable) @Nullable default Number getVolumeSizeInGb()
    • builder

      @Stability(Stable) static CfnEndpointConfig.ProductionVariantProperty.Builder builder()
      a CfnEndpointConfig.ProductionVariantProperty.Builder of CfnEndpointConfig.ProductionVariantProperty