@Stability(value=Stable) public static final class CfnEndpointConfig.ProductionVariantProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnEndpointConfig.ProductionVariantProperty>
CfnEndpointConfig.ProductionVariantProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnEndpointConfig.ProductionVariantProperty.Builder initialVariantWeight(Number initialVariantWeight)
CfnEndpointConfig.ProductionVariantProperty.getInitialVariantWeight()initialVariantWeight - Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. This parameter is required.
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.this@Stability(value=Stable) public CfnEndpointConfig.ProductionVariantProperty.Builder modelName(String modelName)
CfnEndpointConfig.ProductionVariantProperty.getModelName()modelName - The name of the model that you want to host. This parameter is required.
This is the name that you specified when creating the model.this@Stability(value=Stable) public CfnEndpointConfig.ProductionVariantProperty.Builder variantName(String variantName)
CfnEndpointConfig.ProductionVariantProperty.getVariantName()variantName - The name of the production variant. This parameter is required.this@Stability(value=Stable) public CfnEndpointConfig.ProductionVariantProperty.Builder acceleratorType(String acceleratorType)
CfnEndpointConfig.ProductionVariantProperty.getAcceleratorType()acceleratorType - 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 .this@Stability(value=Stable) public CfnEndpointConfig.ProductionVariantProperty.Builder initialInstanceCount(Number initialInstanceCount)
CfnEndpointConfig.ProductionVariantProperty.getInitialInstanceCount()initialInstanceCount - Number of instances to launch initially.this@Stability(value=Stable) public CfnEndpointConfig.ProductionVariantProperty.Builder instanceType(String instanceType)
CfnEndpointConfig.ProductionVariantProperty.getInstanceType()instanceType - The ML compute instance type.this@Stability(value=Stable) public CfnEndpointConfig.ProductionVariantProperty.Builder serverlessConfig(CfnEndpointConfig.ServerlessConfigProperty serverlessConfig)
CfnEndpointConfig.ProductionVariantProperty.getServerlessConfig()serverlessConfig - The serverless configuration for an endpoint.
Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.this@Stability(value=Stable) public CfnEndpointConfig.ProductionVariantProperty.Builder serverlessConfig(IResolvable serverlessConfig)
CfnEndpointConfig.ProductionVariantProperty.getServerlessConfig()serverlessConfig - The serverless configuration for an endpoint.
Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.this@Stability(value=Stable) public CfnEndpointConfig.ProductionVariantProperty build()
build in interface software.amazon.jsii.Builder<CfnEndpointConfig.ProductionVariantProperty>CfnEndpointConfig.ProductionVariantPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.