Skip to content
v2.275.0

Experimental

@aws-cdk/aws-sagemaker-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

EndpointConfigProps Struct ​

Construction properties for a SageMaker EndpointConfig.

Example ​

ts
import * as sagemaker from '@aws-cdk/aws-sagemaker-alpha';

declare const modelA: sagemaker.Model;
declare const modelB: sagemaker.Model;

const endpointConfig = new sagemaker.EndpointConfig(this, 'EndpointConfig', {
  instanceProductionVariants: [
    {
      model: modelA,
      variantName: 'modelA',
      initialVariantWeight: 2.0,
    },
    {
      model: modelB,
      variantName: 'variantB',
      initialVariantWeight: 1.0,
    },
  ]
});

Properties ​

encryptionKeyoptionalIKeyRefencryption_keyoptionalIKeyRefencryptionKeyoptionalIKeyRefEncryptionKeyoptionalIKeyRefEncryptionKeyoptionalIKeyRef= none#
Optional KMS encryption key associated with this stream.
endpointConfigNameoptionalstringendpoint_config_nameoptionalstrendpointConfigNameoptionalStringEndpointConfigNameoptionalstringEndpointConfigNameoptional*string#
Name of the endpoint configuration.

Default: AWS CloudFormation generates a unique physical ID and uses that ID for the endpoint configuration's name.

instanceProductionVariantsoptionalInstanceProductionVariantProps[]instance_production_variantsoptionaltyping.List[InstanceProductionVariantProps]instanceProductionVariantsoptionalList<InstanceProductionVariantProps>InstanceProductionVariantsoptionalInstanceProductionVariantProps[]InstanceProductionVariantsoptional*[]InstanceProductionVariantProps= none#
A list of instance production variants. You can always add more variants later by calling `EndpointConfig#addInstanceProductionVariant`.

Cannot be specified if serverlessProductionVariant is specified.

serverlessProductionVariantoptionalServerlessProductionVariantPropsserverless_production_variantoptionalServerlessProductionVariantPropsserverlessProductionVariantoptionalServerlessProductionVariantPropsServerlessProductionVariantoptionalServerlessProductionVariantPropsServerlessProductionVariantoptionalServerlessProductionVariantProps= none#
A serverless production variant. Serverless endpoints automatically launch compute resources and scale them in and out depending on traffic.

Cannot be specified if instanceProductionVariants is specified.