Interface CfnEndpointConfig.ProductionVariantProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEndpointConfig.ProductionVariantProperty.Jsii$Proxy
- Enclosing class:
CfnEndpointConfig
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:
-
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
The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting.default Object
You can use this parameter to turn on native AWS Systems Manager (SSM) access for a production variant behind an endpoint.default Number
Number of instances to launch initially.default Number
Determines initial traffic distribution among all of the models that you specify in the endpoint configuration.default String
The ML compute instance type.default Object
default Number
The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant.default String
The name of the model that you want to host.default Object
default Object
The serverless configuration for an endpoint.The name of the production variant.default Number
The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVariantName
The name of the production variant.- See Also:
-
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 .
- See Also:
-
getContainerStartupHealthCheckTimeoutInSeconds
The timeout value, in seconds, for your inference container to pass health check by SageMaker Hosting.For more information about health check, see How Your Container Should Respond to Health Check (Ping) Requests .
- See Also:
-
getEnableSsmAccess
You can use this parameter to turn on native AWS Systems Manager (SSM) access for a production variant behind an endpoint.By default, SSM access is disabled for all production variants behind an endpoint. You can turn on or turn off SSM access for a production variant behind an existing endpoint by creating a new endpoint configuration and calling
UpdateEndpoint
.- See Also:
-
getInitialInstanceCount
Number of instances to launch initially.- See Also:
-
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.- See Also:
-
getInstanceType
The ML compute instance type.- See Also:
-
getManagedInstanceScaling
- See Also:
-
getModelDataDownloadTimeoutInSeconds
The timeout value, in seconds, to download and extract the model that you want to host from Amazon S3 to the individual inference instance associated with this production variant.- See Also:
-
getModelName
The name of the model that you want to host.This is the name that you specified when creating the model.
- See Also:
-
getRoutingConfig
- See Also:
-
getServerlessConfig
The serverless configuration for an endpoint.Specifies a serverless endpoint configuration instead of an instance-based endpoint configuration.
- See Also:
-
getVolumeSizeInGb
The size, in GB, of the ML storage volume attached to individual inference instance associated with the production variant.Currently only Amazon EBS gp2 storage volumes are supported.
- See Also:
-
builder
-