# InferenceComponentSpecificationForInstanceTypeProperty

A specification for one instance type, for use in Specifications.

InstanceType is required here, and is not accepted on the singular Specification. BaseInferenceComponentName is not accepted here either: adapter inference components are supported only on the singular Specification.

- 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 inferenceComponentSpecificationForInstanceTypeProperty: sagemaker.CfnInferenceComponent.InferenceComponentSpecificationForInstanceTypeProperty = {
  instanceType: 'instanceType',

  // the properties below are optional
  computeResourceRequirements: {
    maxMemoryRequiredInMb: 123,
    minMemoryRequiredInMb: 123,
    numberOfAcceleratorDevicesRequired: 123,
    numberOfCpuCoresRequired: 123,
  },
  container: {
    artifactUrl: 'artifactUrl',
    containerMetricsConfig: {
      metricsEndpoints: [{
        metricsEndpointPath: 'metricsEndpointPath',

        // the properties below are optional
        metricPublishFrequencyInSeconds: 123,
      }],
    },
    environment: {
      environmentKey: 'environment',
    },
    image: 'image',
  },
  currentDataCacheConfig: {
    enableCaching: false,
  },
  dataCacheConfig: {
    enableCaching: false,
  },
  modelName: 'modelName',
  schedulingConfig: {
    availabilityZoneBalance: {
      enforcementMode: 'enforcementMode',

      // the properties below are optional
      maxImbalance: 123,
    },
    placementStrategy: 'placementStrategy',
  },
  startupParameters: {
    containerStartupHealthCheckTimeoutInSeconds: 123,
    modelDataDownloadTimeoutInSeconds: 123,
  },
};
```

## Properties

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

- `container`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInferenceComponent.InferenceComponentContainerSpecificationForInstanceTypeProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnInferenceComponent.InferenceComponentContainerSpecificationForInstanceTypeProperty.html) — 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.

- `currentDataCacheConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInferenceComponent.InferenceComponentDataCacheConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnInferenceComponent.InferenceComponentDataCacheConfigProperty.html) — Settings that affect how the inference component caches data.

- `dataCacheConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInferenceComponent.InferenceComponentDataCacheConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnInferenceComponent.InferenceComponentDataCacheConfigProperty.html) — Settings that affect how the inference component caches data.

- `instanceType`: string (required) — An ML compute instance type.

- `modelName`: string — The name of the model to use with the inference component.

- `schedulingConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInferenceComponent.InferenceComponentSchedulingConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnInferenceComponent.InferenceComponentSchedulingConfigProperty.html) — The scheduling configuration that determines how inference component copies are placed across available instances.

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