Skip to content
v2.277.0

ModelVariantConfigProperty Struct ​

Contains information about the deployment options of a model.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const modelVariantConfigProperty: sagemaker.CfnInferenceExperiment.ModelVariantConfigProperty = {
  infrastructureConfig: {
    infrastructureType: 'infrastructureType',
    realTimeInferenceConfig: {
      instanceCount: 123,
      instanceType: 'instanceType',
    },
  },
  modelName: 'modelName',
  variantName: 'variantName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

model_variant_config_property = sagemaker.CfnInferenceExperiment.ModelVariantConfigProperty(
    infrastructure_config=sagemaker.CfnInferenceExperiment.ModelInfrastructureConfigProperty(
        infrastructure_type="infrastructureType",
        real_time_inference_config=sagemaker.CfnInferenceExperiment.RealTimeInferenceConfigProperty(
            instance_count=123,
            instance_type="instanceType"
        )
    ),
    model_name="modelName",
    variant_name="variantName"
)
java
// 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.*;

ModelVariantConfigProperty modelVariantConfigProperty = ModelVariantConfigProperty.builder()
        .infrastructureConfig(ModelInfrastructureConfigProperty.builder()
                .infrastructureType("infrastructureType")
                .realTimeInferenceConfig(RealTimeInferenceConfigProperty.builder()
                        .instanceCount(123)
                        .instanceType("instanceType")
                        .build())
                .build())
        .modelName("modelName")
        .variantName("variantName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var modelVariantConfigProperty = new ModelVariantConfigProperty {
    InfrastructureConfig = new ModelInfrastructureConfigProperty {
        InfrastructureType = "infrastructureType",
        RealTimeInferenceConfig = new RealTimeInferenceConfigProperty {
            InstanceCount = 123,
            InstanceType = "instanceType"
        }
    },
    ModelName = "modelName",
    VariantName = "variantName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

modelVariantConfigProperty := &ModelVariantConfigProperty{
	InfrastructureConfig: &ModelInfrastructureConfigProperty{
		InfrastructureType: jsii.String("infrastructureType"),
		RealTimeInferenceConfig: &RealTimeInferenceConfigProperty{
			InstanceCount: jsii.Number(123),
			InstanceType: jsii.String("instanceType"),
		},
	},
	ModelName: jsii.String("modelName"),
	VariantName: jsii.String("variantName"),
}

Properties ​

infrastructureConfigIResolvable | CfnInferenceExperiment.ModelInfrastructureConfigPropertyinfrastructure_configtyping.Union[IResolvable, ModelInfrastructureConfigProperty]infrastructureConfigIResolvableInfrastructureConfigIResolvableInfrastructureConfiginterface{} required #
The configuration for the infrastructure that the model will be deployed to.
modelNamestringmodel_namestrmodelNameStringModelNamestringModelName*string required #
The name of the Amazon SageMaker Model entity.
variantNamestringvariant_namestrvariantNameStringVariantNamestringVariantName*string required #
The name of the variant.