# InferenceSpecificationProperty

- Source: Generated code
- Type last changed: v2.262.0 · 22 Jul 2026

## 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 inferenceSpecificationProperty: sagemaker.CfnAlgorithm.InferenceSpecificationProperty = {
  containers: [{
    image: 'image',

    // the properties below are optional
    containerHostname: 'containerHostname',
    environment: {
      environmentKey: 'environment',
    },
    framework: 'framework',
    frameworkVersion: 'frameworkVersion',
    imageDigest: 'imageDigest',
    isCheckpoint: false,
    modelInput: {
      dataInputConfig: 'dataInputConfig',
    },
    nearestModelName: 'nearestModelName',
  }],

  // the properties below are optional
  supportedContentTypes: ['supportedContentTypes'],
  supportedRealtimeInferenceInstanceTypes: ['supportedRealtimeInferenceInstanceTypes'],
  supportedResponseMimeTypes: ['supportedResponseMimeTypes'],
  supportedTransformInstanceTypes: ['supportedTransformInstanceTypes'],
};
```

## Properties

- `containers`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAlgorithm.ModelPackageContainerDefinitionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnAlgorithm.ModelPackageContainerDefinitionProperty.html)[] (required)

- `supportedContentTypes`: string[]

- `supportedRealtimeInferenceInstanceTypes`: string[]

- `supportedResponseMimeTypes`: string[]

- `supportedTransformInstanceTypes`: string[]
