Skip to content
v2.275.0

InferenceComponentContainerSpecificationForInstanceTypeProperty Struct ​

Container specification for one Specifications entry.

Distinct from InferenceComponentContainerSpecification: DescribeInferenceComponent returns no per-entry DeployedImage (VERIFIED in us-west-2), so DeployedImage is intentionally omitted here and this definition can never be aggregated into a plural READ response. The singular InferenceComponentContainerSpecification keeps DeployedImage - the service DOES return it there.

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 inferenceComponentContainerSpecificationForInstanceTypeProperty: sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationForInstanceTypeProperty = {
  artifactUrl: 'artifactUrl',
  containerMetricsConfig: {
    metricsEndpoints: [{
      metricsEndpointPath: 'metricsEndpointPath',

      // the properties below are optional
      metricPublishFrequencyInSeconds: 123,
    }],
  },
  environment: {
    environmentKey: 'environment',
  },
  image: 'image',
};

Properties ​

artifactUrloptionalstringartifact_urloptionalstrartifactUrloptionalStringArtifactUrloptionalstringArtifactUrloptional*string#
containerMetricsConfigoptionalIResolvable | CfnInferenceComponent.ContainerMetricsConfigPropertycontainer_metrics_configoptionaltyping.Union[IResolvable, ContainerMetricsConfigProperty]containerMetricsConfigoptionalIResolvableContainerMetricsConfigoptionalIResolvableContainerMetricsConfigoptionalinterface{}#
The configuration for container metrics scraping.
environmentoptionalIResolvable | { [key: string]: string }environmentoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]environmentoptionalIResolvableEnvironmentoptionalIResolvableEnvironmentoptionalinterface{}#
Environment variables to specify on the container.
imageoptionalstringimageoptionalstrimageoptionalStringImageoptionalstringImageoptional*string#
The image to use for the container that will be materialized for the inference component.