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.

EndpointProps Struct ​

Construction properties for a SageMaker Endpoint.

Example ​

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

declare const endpointConfig: sagemaker.EndpointConfig;

const endpoint = new sagemaker.Endpoint(this, 'Endpoint', { endpointConfig });
const productionVariant = endpoint.findInstanceProductionVariant('my-variant');
productionVariant.metricModelLatency().createAlarm(this, 'ModelLatencyAlarm', {
  threshold: 100000,
  evaluationPeriods: 3,
});

Properties ​

endpointConfigIEndpointConfigendpoint_configIEndpointConfigendpointConfigIEndpointConfigEndpointConfigIEndpointConfigEndpointConfigIEndpointConfigrequired#
The endpoint configuration to use for this endpoint.
endpointNameoptionalstringendpoint_nameoptionalstrendpointNameoptionalStringEndpointNameoptionalstringEndpointNameoptional*string#
Name of the endpoint.

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