Skip to content
v2.277.0

InferenceEnvironmentProperty Struct ​

An overview of a model's inference environment.

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 inferenceEnvironmentProperty: sagemaker.CfnModelCard.InferenceEnvironmentProperty = {
  containerImage: ['containerImage'],
};
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

inference_environment_property = sagemaker.CfnModelCard.InferenceEnvironmentProperty(
    container_image=["containerImage"]
)
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.*;

InferenceEnvironmentProperty inferenceEnvironmentProperty = InferenceEnvironmentProperty.builder()
        .containerImage(List.of("containerImage"))
        .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 inferenceEnvironmentProperty = new InferenceEnvironmentProperty {
    ContainerImage = new [] { "containerImage" }
};
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"

inferenceEnvironmentProperty := &InferenceEnvironmentProperty{
	ContainerImage: []*string{
		jsii.String("containerImage"),
	},
}

Properties ​

containerImageoptionalstring[]container_imageoptionaltyping.List[str]containerImageoptionalList<String>ContainerImageoptionalstring[]ContainerImageoptional*[]*string #
The container used to run the inference environment.