Class EndpointConfig
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.sagemaker.alpha.EndpointConfig
- All Implemented Interfaces:
IResource,IEndpointConfig,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.417Z")
@Stability(Experimental)
public class EndpointConfig
extends Resource
implements IEndpointConfig
(experimental) Defines a SageMaker EndpointConfig.
Example:
import software.amazon.awscdk.services.sagemaker.alpha.*;
Model modelA;
Model modelB;
EndpointConfig endpointConfig = EndpointConfig.Builder.create(this, "EndpointConfig")
.instanceProductionVariants(List.of(InstanceProductionVariantProps.builder()
.model(modelA)
.variantName("modelA")
.initialVariantWeight(2)
.build(), InstanceProductionVariantProps.builder()
.model(modelB)
.variantName("variantB")
.initialVariantWeight(1)
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forEndpointConfig.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.IEndpointConfig
IEndpointConfig.Jsii$Default, IEndpointConfig.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
ConstructorsModifierConstructorDescriptionprotectedEndpointConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedEndpointConfig(software.amazon.jsii.JsiiObjectRef objRef) EndpointConfig(software.constructs.Construct scope, String id) EndpointConfig(software.constructs.Construct scope, String id, EndpointConfigProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid(experimental) Add production variant to the endpoint configuration.static IEndpointConfigfromEndpointConfigArn(software.constructs.Construct scope, String id, String endpointConfigArn) (experimental) Imports an EndpointConfig defined either outside the CDK or in a different CDK stack.static IEndpointConfigfromEndpointConfigName(software.constructs.Construct scope, String id, String endpointConfigName) (experimental) Imports an EndpointConfig defined either outside the CDK or in a different CDK stack.(experimental) The ARN of the endpoint configuration.(experimental) The name of the endpoint configuration.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
-
EndpointConfig
protected EndpointConfig(software.amazon.jsii.JsiiObjectRef objRef) -
EndpointConfig
protected EndpointConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EndpointConfig
@Stability(Experimental) public EndpointConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable EndpointConfigProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
EndpointConfig
@Stability(Experimental) public EndpointConfig(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromEndpointConfigArn
@Stability(Experimental) @NotNull public static IEndpointConfig fromEndpointConfigArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String endpointConfigArn) (experimental) Imports an EndpointConfig 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.endpointConfigArn- the ARN of the endpoint configuration. This parameter is required.
-
fromEndpointConfigName
@Stability(Experimental) @NotNull public static IEndpointConfig fromEndpointConfigName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String endpointConfigName) (experimental) Imports an EndpointConfig 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.endpointConfigName- the name of the endpoint configuration. This parameter is required.
-
addInstanceProductionVariant
@Stability(Experimental) public void addInstanceProductionVariant(@NotNull InstanceProductionVariantProps props) (experimental) Add production variant to the endpoint configuration.- Parameters:
props- The properties of a production variant to add. This parameter is required.
-
getEndpointConfigArn
(experimental) The ARN of the endpoint configuration.- Specified by:
getEndpointConfigArnin interfaceIEndpointConfig
-
getEndpointConfigName
(experimental) The name of the endpoint configuration.- Specified by:
getEndpointConfigNamein interfaceIEndpointConfig
-