Skip to content
v2.274.0

InferenceComponentContainerSpecificationProperty Struct ​

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

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 ​

artifactUrloptionalstringartifact_urloptionalstrartifactUrloptionalStringArtifactUrloptionalstringArtifactUrloptional*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).

containerMetricsConfigoptionalIResolvable | CfnInferenceComponent.ContainerMetricsConfigPropertycontainer_metrics_configoptionaltyping.Union[IResolvable, ContainerMetricsConfigProperty]containerMetricsConfigoptionalIResolvableContainerMetricsConfigoptionalIResolvableContainerMetricsConfigoptionalinterface{}#
The configuration for container metrics scraping.
deployedImageoptionalIResolvable | CfnInferenceComponent.DeployedImagePropertydeployed_imageoptionaltyping.Union[IResolvable, DeployedImageProperty]deployedImageoptionalIResolvableDeployedImageoptionalIResolvableDeployedImageoptionalinterface{}#
environmentoptionalIResolvable | { [key: string]: string }environmentoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]environmentoptionalIResolvableEnvironmentoptionalIResolvableEnvironmentoptionalinterface{}#
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.

imageoptionalstringimageoptionalstrimageoptionalStringImageoptionalstringImageoptional*string#
The Amazon Elastic Container Registry (Amazon ECR) path where the Docker image for the model is stored.