# ContainerProperty

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `image`: string (required) — Inference environment path.

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

- `modelDataUrl`: string — The Amazon S3 path where the model artifacts, which result from model training, are stored.

- `nearestModelName`: string — The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.
