EndpointProps

class aws_cdk.aws_sagemaker_alpha.EndpointProps(*, endpoint_config, endpoint_name=None)

Bases: object

(experimental) Construction properties for a SageMaker Endpoint.

Parameters:
  • endpoint_config (IEndpointConfig) – (experimental) The endpoint configuration to use for this endpoint.

  • endpoint_name (Optional[str]) – (experimental) Name of the endpoint. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the endpoint’s name.

Stability:

experimental

ExampleMetadata:

infused

Example:

import aws_cdk.aws_sagemaker_alpha as sagemaker

# endpoint_config: sagemaker.EndpointConfig


endpoint = sagemaker.Endpoint(self, "Endpoint", endpoint_config=endpoint_config)
production_variant = endpoint.find_instance_production_variant("my-variant")
production_variant.metric_model_latency().create_alarm(self, "ModelLatencyAlarm",
    threshold=100000,
    evaluation_periods=3
)

Attributes

endpoint_config

(experimental) The endpoint configuration to use for this endpoint.

Stability:

experimental

endpoint_name

(experimental) Name of the endpoint.

Default:

  • AWS CloudFormation generates a unique physical ID and uses that ID for the

endpoint’s name.

Stability:

experimental