Interface IProductionVariant
Identifies a model that you want to host and the resources to deploy for hosting it.
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IProductionVariant
Syntax (vb)
Public Interface IProductionVariant
Remarks
See: https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_ProductionVariant.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.StepFunctions.Tasks;
AcceleratorType acceleratorType;
InstanceType instanceType;
var productionVariant = new ProductionVariant {
InstanceType = instanceType,
ModelName = "modelName",
VariantName = "variantName",
// the properties below are optional
AcceleratorType = acceleratorType,
InitialInstanceCount = 123,
InitialVariantWeight = 123
};
Synopsis
Properties
AcceleratorType | The size of the Elastic Inference (EI) instance to use for the production variant. |
InitialInstanceCount | Number of instances to launch initially. |
InitialVariantWeight | Determines initial traffic distribution among all of the models that you specify in the endpoint configuration. |
InstanceType | The ML compute instance type. |
ModelName | The name of the model that you want to host. |
VariantName | The name of the production variant. |
Properties
AcceleratorType
The size of the Elastic Inference (EI) instance to use for the production variant.
virtual AcceleratorType AcceleratorType { get; }
Property Value
Remarks
Default: - None
InitialInstanceCount
Number of instances to launch initially.
virtual Nullable<double> InitialInstanceCount { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - 1
InitialVariantWeight
Determines initial traffic distribution among all of the models that you specify in the endpoint configuration.
virtual Nullable<double> InitialVariantWeight { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - 1.0
InstanceType
ModelName
The name of the model that you want to host.
string ModelName { get; }
Property Value
System.String
Remarks
This is the name that you specified when creating the model.
VariantName
The name of the production variant.
string VariantName { get; }
Property Value
System.String