Class Endpoint
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.sagemaker.alpha.Endpoint
- All Implemented Interfaces:
IResource,IEndpoint,IEndpoint,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:50.416Z")
@Stability(Experimental)
public class Endpoint
extends Resource
implements IEndpoint
(experimental) Defines a SageMaker endpoint.
Example:
import software.amazon.awscdk.services.sagemaker.alpha.*;
EndpointConfig endpointConfig;
Endpoint endpoint = Endpoint.Builder.create(this, "Endpoint").endpointConfig(endpointConfig).build();
IEndpointInstanceProductionVariant productionVariant = endpoint.findInstanceProductionVariant("my-variant");
productionVariant.metricModelLatency().createAlarm(this, "ModelLatencyAlarm", CreateAlarmOptions.builder()
.threshold(100000)
.evaluationPeriods(3)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forEndpoint.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.sagemaker.alpha.IEndpoint
IEndpoint.Jsii$Default, IEndpoint.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedEndpoint(software.amazon.jsii.JsiiObjectRef objRef) Endpoint(software.constructs.Construct scope, String id, EndpointProps props) -
Method Summary
Modifier and TypeMethodDescription(experimental) Find instance production variant based on variant name.static IEndpointfromEndpointArn(software.constructs.Construct scope, String id, String endpointArn) (experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack.static IEndpointfromEndpointAttributes(software.constructs.Construct scope, String id, EndpointAttributes attrs) (experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack.static IEndpointfromEndpointName(software.constructs.Construct scope, String id, String endpointName) (experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack.(experimental) The ARN of the endpoint.(experimental) The name of the endpoint.(experimental) Get instance production variants associated with endpoint.grantInvoke(IGrantable grantee) (experimental) Permits an IAM principal to invoke this endpoint.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
Endpoint
protected Endpoint(software.amazon.jsii.JsiiObjectRef objRef) -
Endpoint
protected Endpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Endpoint
@Stability(Experimental) public Endpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull EndpointProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromEndpointArn
@Stability(Experimental) @NotNull public static IEndpoint fromEndpointArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String endpointArn) (experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack.- Parameters:
scope- the Construct scope. This parameter is required.id- the resource id. This parameter is required.endpointArn- the ARN of the endpoint. This parameter is required.
-
fromEndpointAttributes
@Stability(Experimental) @NotNull public static IEndpoint fromEndpointAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull EndpointAttributes attrs) (experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack.- Parameters:
scope- the Construct scope. This parameter is required.id- the resource id. This parameter is required.attrs- the attributes of the endpoint to import. This parameter is required.
-
fromEndpointName
@Stability(Experimental) @NotNull public static IEndpoint fromEndpointName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String endpointName) (experimental) Imports an Endpoint defined either outside the CDK or in a different CDK stack.- Parameters:
scope- the Construct scope. This parameter is required.id- the resource id. This parameter is required.endpointName- the name of the endpoint. This parameter is required.
-
findInstanceProductionVariant
@Stability(Experimental) @NotNull public IEndpointInstanceProductionVariant findInstanceProductionVariant(@NotNull String name) (experimental) Find instance production variant based on variant name.- Parameters:
name- Variant name from production variant. This parameter is required.
-
grantInvoke
(experimental) Permits an IAM principal to invoke this endpoint.- Specified by:
grantInvokein interfaceIEndpoint- Parameters:
grantee- The principal to grant access to. This parameter is required.
-
getEndpointArn
(experimental) The ARN of the endpoint.- Specified by:
getEndpointArnin interfaceIEndpoint
-
getEndpointName
(experimental) The name of the endpoint.- Specified by:
getEndpointNamein interfaceIEndpoint
-
getInstanceProductionVariants
@Stability(Experimental) @NotNull public List<IEndpointInstanceProductionVariant> getInstanceProductionVariants()(experimental) Get instance production variants associated with endpoint.
-