# InferenceComponentContainerSpecificationForInstanceTypeProperty

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.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

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

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

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_component_container_specification_for_instance_type_property = sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationForInstanceTypeProperty(
    artifact_url="artifactUrl",
    container_metrics_config=sagemaker.CfnInferenceComponent.ContainerMetricsConfigProperty(
        metrics_endpoints=[sagemaker.CfnInferenceComponent.MetricsEndpointProperty(
            metrics_endpoint_path="metricsEndpointPath",

            # the properties below are optional
            metric_publish_frequency_in_seconds=123
        )]
    ),
    environment={
        "environment_key": "environment"
    },
    image="image"
)
```

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.*;

InferenceComponentContainerSpecificationForInstanceTypeProperty inferenceComponentContainerSpecificationForInstanceTypeProperty = InferenceComponentContainerSpecificationForInstanceTypeProperty.builder()
        .artifactUrl("artifactUrl")
        .containerMetricsConfig(ContainerMetricsConfigProperty.builder()
                .metricsEndpoints(List.of(MetricsEndpointProperty.builder()
                        .metricsEndpointPath("metricsEndpointPath")

                        // the properties below are optional
                        .metricPublishFrequencyInSeconds(123)
                        .build()))
                .build())
        .environment(Map.of(
                "environmentKey", "environment"))
        .image("image")
        .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 inferenceComponentContainerSpecificationForInstanceTypeProperty = new InferenceComponentContainerSpecificationForInstanceTypeProperty {
    ArtifactUrl = "artifactUrl",
    ContainerMetricsConfig = new ContainerMetricsConfigProperty {
        MetricsEndpoints = new [] { new MetricsEndpointProperty {
            MetricsEndpointPath = "metricsEndpointPath",

            // the properties below are optional
            MetricPublishFrequencyInSeconds = 123
        } }
    },
    Environment = new Dictionary<string, string> {
        { "environmentKey", "environment" }
    },
    Image = "image"
};
```

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"

inferenceComponentContainerSpecificationForInstanceTypeProperty := &InferenceComponentContainerSpecificationForInstanceTypeProperty{
	ArtifactUrl: jsii.String("artifactUrl"),
	ContainerMetricsConfig: &ContainerMetricsConfigProperty{
		MetricsEndpoints: []interface{}{
			&MetricsEndpointProperty{
				MetricsEndpointPath: jsii.String("metricsEndpointPath"),

				// the properties below are optional
				MetricPublishFrequencyInSeconds: jsii.Number(123),
			},
		},
	},
	Environment: map[string]*string{
		"environmentKey": jsii.String("environment"),
	},
	Image: jsii.String("image"),
}
```

## Properties

- `artifactUrl`: string

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

- `environment`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Environment variables to specify on the container.

- `image`: string — The image to use for the container that will be materialized for the inference component.
