Skip to content
v2.278.0

ContainerProperty Struct ​

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 containerProperty: sagemaker.CfnModelCard.ContainerProperty = {
  image: 'image',

  // the properties below are optional
  modelDataUrl: 'modelDataUrl',
  nearestModelName: 'nearestModelName',
};
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

container_property = sagemaker.CfnModelCard.ContainerProperty(
    image="image",

    # the properties below are optional
    model_data_url="modelDataUrl",
    nearest_model_name="nearestModelName"
)
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.*;

ContainerProperty containerProperty = ContainerProperty.builder()
        .image("image")

        // the properties below are optional
        .modelDataUrl("modelDataUrl")
        .nearestModelName("nearestModelName")
        .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 containerProperty = new ContainerProperty {
    Image = "image",

    // the properties below are optional
    ModelDataUrl = "modelDataUrl",
    NearestModelName = "nearestModelName"
};
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"

containerProperty := &ContainerProperty{
	Image: jsii.String("image"),

	// the properties below are optional
	ModelDataUrl: jsii.String("modelDataUrl"),
	NearestModelName: jsii.String("nearestModelName"),
}

Properties ​

imagestringimagestrimageStringImagestringImage*string required #
Inference environment path.

The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.

modelDataUrloptionalstringmodel_data_urloptionalstrmodelDataUrloptionalStringModelDataUrloptionalstringModelDataUrloptional*string #
The Amazon S3 path where the model artifacts, which result from model training, are stored.
nearestModelNameoptionalstringnearest_model_nameoptionalstrnearestModelNameoptionalStringNearestModelNameoptionalstringNearestModelNameoptional*string #
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.