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.101.0 (build b95fe5d)", date="2024-07-22T22:43:00.359Z") @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();
 
  • 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

      @Stability(Experimental) @NotNull public String getEndpointConfigArn()
      (experimental) The ARN of the endpoint configuration.
      Specified by:
      getEndpointConfigArn in interface IEndpointConfig
    • getEndpointConfigName

      @Stability(Experimental) @NotNull public String getEndpointConfigName()
      (experimental) The name of the endpoint configuration.
      Specified by:
      getEndpointConfigName in interface IEndpointConfig