# CfnEndpointConfigProps

Properties for defining a `CfnEndpointConfig`.

Extends: CfnEndpointConfigProps
Used as props by: CfnEndpointConfig

- 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 cfnEndpointConfigProps: sagemaker.CfnEndpointConfigProps = {
  productionVariants: [{
    variantName: 'variantName',

    // the properties below are optional
    acceleratorType: 'acceleratorType',
    capacityReservationConfig: {
      capacityReservationPreference: 'capacityReservationPreference',
      mlReservationArn: 'mlReservationArn',
    },
    containerStartupHealthCheckTimeoutInSeconds: 123,
    coreDumpConfig: {
      destinationS3Uri: 'destinationS3Uri',

      // the properties below are optional
      kmsKeyId: 'kmsKeyId',
    },
    enableSsmAccess: false,
    inferenceAmiVersion: 'inferenceAmiVersion',
    initialInstanceCount: 123,
    initialVariantWeight: 123,
    instancePools: [{
      instanceType: 'instanceType',
      priority: 123,

      // the properties below are optional
      modelNameOverride: 'modelNameOverride',
    }],
    instanceType: 'instanceType',
    managedInstanceScaling: {
      maxInstanceCount: 123,
      minInstanceCount: 123,
      scaleInPolicy: {
        strategy: 'strategy',

        // the properties below are optional
        cooldownInMinutes: 123,
        maximumStepSize: 123,
      },
      status: 'status',
    },
    modelDataDownloadTimeoutInSeconds: 123,
    modelName: 'modelName',
    routingConfig: {
      prefixAwareRoutingConfig: {
        concurrencyThreshold: 123,
        prefixLength: 123,
      },
      routingStrategy: 'routingStrategy',
    },
    serverlessConfig: {
      maxConcurrency: 123,
      memorySizeInMb: 123,

      // the properties below are optional
      provisionedConcurrency: 123,
    },
    variantInstanceProvisionTimeoutInSeconds: 123,
    volumeSizeInGb: 123,
  }],

  // the properties below are optional
  asyncInferenceConfig: {
    outputConfig: {
      kmsKeyId: 'kmsKeyId',
      notificationConfig: {
        errorTopic: 'errorTopic',
        includeInferenceResponseIn: ['includeInferenceResponseIn'],
        successTopic: 'successTopic',
      },
      s3FailurePath: 's3FailurePath',
      s3OutputPath: 's3OutputPath',
    },

    // the properties below are optional
    clientConfig: {
      maxConcurrentInvocationsPerInstance: 123,
    },
  },
  dataCaptureConfig: {
    captureOptions: [{
      captureMode: 'captureMode',
    }],
    destinationS3Uri: 'destinationS3Uri',
    initialSamplingPercentage: 123,

    // the properties below are optional
    captureContentTypeHeader: {
      csvContentTypes: ['csvContentTypes'],
      jsonContentTypes: ['jsonContentTypes'],
    },
    enableCapture: false,
    kmsKeyId: 'kmsKeyId',
  },
  enableNetworkIsolation: false,
  endpointConfigName: 'endpointConfigName',
  executionRoleArn: 'executionRoleArn',
  explainerConfig: {
    clarifyExplainerConfig: {
      shapConfig: {
        shapBaselineConfig: {
          mimeType: 'mimeType',
          shapBaseline: 'shapBaseline',
          shapBaselineUri: 'shapBaselineUri',
        },

        // the properties below are optional
        numberOfSamples: 123,
        seed: 123,
        textConfig: {
          granularity: 'granularity',
          language: 'language',
        },
        useLogit: false,
      },

      // the properties below are optional
      enableExplanations: 'enableExplanations',
      inferenceConfig: {
        contentTemplate: 'contentTemplate',
        featureHeaders: ['featureHeaders'],
        featuresAttribute: 'featuresAttribute',
        featureTypes: ['featureTypes'],
        labelAttribute: 'labelAttribute',
        labelHeaders: ['labelHeaders'],
        labelIndex: 123,
        maxPayloadInMb: 123,
        maxRecordCount: 123,
        probabilityAttribute: 'probabilityAttribute',
        probabilityIndex: 123,
      },
    },
  },
  kmsKeyId: 'kmsKeyId',
  metricsConfig: {
    enableDetailedObservability: false,
    enableEnhancedMetrics: false,
    metricPublishFrequencyInSeconds: 123,
  },
  shadowProductionVariants: [{
    variantName: 'variantName',

    // the properties below are optional
    acceleratorType: 'acceleratorType',
    capacityReservationConfig: {
      capacityReservationPreference: 'capacityReservationPreference',
      mlReservationArn: 'mlReservationArn',
    },
    containerStartupHealthCheckTimeoutInSeconds: 123,
    coreDumpConfig: {
      destinationS3Uri: 'destinationS3Uri',

      // the properties below are optional
      kmsKeyId: 'kmsKeyId',
    },
    enableSsmAccess: false,
    inferenceAmiVersion: 'inferenceAmiVersion',
    initialInstanceCount: 123,
    initialVariantWeight: 123,
    instancePools: [{
      instanceType: 'instanceType',
      priority: 123,

      // the properties below are optional
      modelNameOverride: 'modelNameOverride',
    }],
    instanceType: 'instanceType',
    managedInstanceScaling: {
      maxInstanceCount: 123,
      minInstanceCount: 123,
      scaleInPolicy: {
        strategy: 'strategy',

        // the properties below are optional
        cooldownInMinutes: 123,
        maximumStepSize: 123,
      },
      status: 'status',
    },
    modelDataDownloadTimeoutInSeconds: 123,
    modelName: 'modelName',
    routingConfig: {
      prefixAwareRoutingConfig: {
        concurrencyThreshold: 123,
        prefixLength: 123,
      },
      routingStrategy: 'routingStrategy',
    },
    serverlessConfig: {
      maxConcurrency: 123,
      memorySizeInMb: 123,

      // the properties below are optional
      provisionedConcurrency: 123,
    },
    variantInstanceProvisionTimeoutInSeconds: 123,
    volumeSizeInGb: 123,
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vpcConfig: {
    securityGroupIds: ['securityGroupIds'],
    subnets: ['subnets'],
  },
};
```

## Properties

- `asyncInferenceConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.AsyncInferenceConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.AsyncInferenceConfigProperty.html) — Specifies configuration for how an endpoint performs asynchronous inference.

- `dataCaptureConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.DataCaptureConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.DataCaptureConfigProperty.html) — Specifies how to capture endpoint data for model monitor.

  The data capture configuration applies to all production variants hosted at the endpoint.

- `enableNetworkIsolation`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Sets whether all model containers deployed to the endpoint are isolated.

  If they are, no inbound or outbound network calls can be made to or from the model containers.

- `endpointConfigName`: string — The name of the endpoint configuration.

- `executionRoleArn`: string — The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker AI can assume to perform actions on your behalf.

- `explainerConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.ExplainerConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.ExplainerConfigProperty.html) — A parameter to activate explainers.

- `kmsKeyId`: string — The Amazon Resource Name (ARN) of an AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.

  - Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`
  - Key ARN: `arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`
  - Alias name: `alias/ExampleAlias`
  - Alias name ARN: `arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias`

  The KMS key policy must grant permission to the IAM role that you specify in your `CreateEndpoint` , `UpdateEndpoint` requests. For more information, refer to the AWS Key Management Service section [Using Key Policies in AWS KMS](https://docs.aws.amazon.com//kms/latest/developerguide/key-policies.html)

  > Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a `KmsKeyId` when using an instance type with local storage. If any of the models that you specify in the `ProductionVariants` parameter use nitro-based instances with local storage, do not specify a value for the `KmsKeyId` parameter. If you specify a value for `KmsKeyId` when using any nitro-based instances with local storage, the call to `CreateEndpointConfig` fails.
  >
  > For a list of instance types that support local instance storage, see [Instance Store Volumes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#instance-store-volumes) .
  >
  > For more information about local instance storage encryption, see [SSD Instance Store Volumes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ssd-instance-store.html) .

- `metricsConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.MetricsConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.MetricsConfigProperty.html) — Specifies the metrics that the endpoint publishes to Amazon CloudWatch, the frequency of publication, and whether to enable enhanced or detailed observability metrics.

- `productionVariants`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.ProductionVariantProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.ProductionVariantProperty.html)[] (required) — A list of `ProductionVariant` objects, one for each model that you want to host at this endpoint.

- `shadowProductionVariants`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.ProductionVariantProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.ProductionVariantProperty.html)[] — Array of `ProductionVariant` objects.

  There is one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified on `ProductionVariants` . If you use this field, you can only specify one variant for `ProductionVariants` and one variant for `ShadowProductionVariants` .

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of key-value pairs to apply to this resource.

  For more information, see [Resource Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) and [Using Cost Allocation Tags](https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html#allocation-what) .

- `vpcConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEndpointConfig.VpcConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnEndpointConfig.VpcConfigProperty.html) — Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.

  You can control access to and from your resources by configuring a VPC.
