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.104.0 (build e79254c)",
date="2025-01-10T21:57:02.021Z")
@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
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forEndpointConfig
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.sagemaker.alpha.IEndpointConfig
IEndpointConfig.Jsii$Default, IEndpointConfig.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
EndpointConfig
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
EndpointConfig
(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 IEndpointConfig
fromEndpointConfigArn
(software.constructs.Construct scope, String id, String endpointConfigArn) (experimental) Imports an EndpointConfig defined either outside the CDK or in a different CDK stack.static IEndpointConfig
fromEndpointConfigName
(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, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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:
getEndpointConfigArn
in interfaceIEndpointConfig
-
getEndpointConfigName
(experimental) The name of the endpoint configuration.- Specified by:
getEndpointConfigName
in interfaceIEndpointConfig
-