# InferenceComponentContainerSpecificationProperty

Defines a container that provides the runtime environment for a model that you deploy with an inference component.

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 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 inferenceComponentContainerSpecificationProperty: sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationProperty = {
  artifactUrl: 'artifactUrl',
  containerMetricsConfig: {
    metricsEndpoints: [{
      metricsEndpointPath: 'metricsEndpointPath',

      // the properties below are optional
      metricPublishFrequencyInSeconds: 123,
    }],
  },
  deployedImage: {
    resolutionTime: 'resolutionTime',
    resolvedImage: 'resolvedImage',
    specifiedImage: 'specifiedImage',
  },
  environment: {
    environmentKey: 'environment',
  },
  image: 'image',
};
```

## Properties

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

  This path must point to a single gzip compressed tar archive (.tar.gz suffix).

- `containerMetricsConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInferenceComponent.ContainerMetricsConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnInferenceComponent.ContainerMetricsConfigProperty.html) — The configuration for container metrics scraping.

- `deployedImage`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInferenceComponent.DeployedImageProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnInferenceComponent.DeployedImageProperty.html)

- `environment`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — The environment variables to set in the Docker container.

  Each key and value in the Environment string-to-string map can have length of up to 1024. We support up to 16 entries in the map.

- `image`: string — The Amazon Elastic Container Registry (Amazon ECR) path where the Docker image for the model is stored.
