# InferenceSpecificationProperty

Defines how to perform inference generation after a training job is run.

- 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 inferenceSpecificationProperty: sagemaker.CfnModelCard.InferenceSpecificationProperty = {
  containers: [{
    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

inference_specification_property = sagemaker.CfnModelCard.InferenceSpecificationProperty(
    containers=[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.*;

InferenceSpecificationProperty inferenceSpecificationProperty = InferenceSpecificationProperty.builder()
        .containers(List.of(ContainerProperty.builder()
                .image("image")

                // the properties below are optional
                .modelDataUrl("modelDataUrl")
                .nearestModelName("nearestModelName")
                .build()))
        .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 inferenceSpecificationProperty = new InferenceSpecificationProperty {
    Containers = new [] { 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"

inferenceSpecificationProperty := &InferenceSpecificationProperty{
	Containers: []interface{}{
		&ContainerProperty{
			Image: jsii.String("image"),

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

## Properties

- `containers`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnModelCard.ContainerProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnModelCard.ContainerProperty.html)[] (required) — The Amazon ECR registry path of the Docker image that contains the inference code.
