Class EndpointConfig
(experimental) Defines a SageMaker EndpointConfig.
Inherited Members
Namespace: Amazon.CDK.AWS.Sagemaker.Alpha
Assembly: Amazon.CDK.AWS.Sagemaker.Alpha.dll
Syntax (csharp)
public class EndpointConfig : Resource, IEndpointConfig, IResource
Syntax (vb)
Public Class EndpointConfig
Inherits Resource
Implements IEndpointConfig, IResource
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Sagemaker.Alpha;
Model modelA;
Model modelB;
var endpointConfig = new EndpointConfig(this, "EndpointConfig", new EndpointConfigProps {
InstanceProductionVariants = new [] { new InstanceProductionVariantProps {
Model = modelA,
VariantName = "modelA",
InitialVariantWeight = 2
}, new InstanceProductionVariantProps {
Model = modelB,
VariantName = "variantB",
InitialVariantWeight = 1
} }
});
Synopsis
Constructors
EndpointConfig(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
EndpointConfig(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
EndpointConfig(Construct, String, IEndpointConfigProps) |
Properties
EndpointConfigArn | (experimental) The ARN of the endpoint configuration. |
EndpointConfigName | (experimental) The name of the endpoint configuration. |
Methods
AddInstanceProductionVariant(IInstanceProductionVariantProps) | (experimental) Add production variant to the endpoint configuration. |
FromEndpointConfigArn(Construct, String, String) | (experimental) Imports an EndpointConfig defined either outside the CDK or in a different CDK stack. |
FromEndpointConfigName(Construct, String, String) | (experimental) Imports an EndpointConfig defined either outside the CDK or in a different CDK stack. |
Constructors
EndpointConfig(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EndpointConfig(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
EndpointConfig(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EndpointConfig(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
EndpointConfig(Construct, String, IEndpointConfigProps)
public EndpointConfig(Construct scope, string id, IEndpointConfigProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IEndpointConfigProps
Remarks
Stability: Experimental
Properties
EndpointConfigArn
(experimental) The ARN of the endpoint configuration.
public virtual string EndpointConfigArn { get; }
Property Value
System.String
Remarks
Stability: Experimental
EndpointConfigName
(experimental) The name of the endpoint configuration.
public virtual string EndpointConfigName { get; }
Property Value
System.String
Remarks
Stability: Experimental
Methods
AddInstanceProductionVariant(IInstanceProductionVariantProps)
(experimental) Add production variant to the endpoint configuration.
public virtual void AddInstanceProductionVariant(IInstanceProductionVariantProps props)
Parameters
- props IInstanceProductionVariantProps
The properties of a production variant to add.
Remarks
Stability: Experimental
FromEndpointConfigArn(Construct, String, String)
(experimental) Imports an EndpointConfig defined either outside the CDK or in a different CDK stack.
public static IEndpointConfig FromEndpointConfigArn(Construct scope, string id, string endpointConfigArn)
Parameters
- scope Constructs.Construct
the Construct scope.
- id System.String
the resource id.
- endpointConfigArn System.String
the ARN of the endpoint configuration.
Returns
Remarks
Stability: Experimental
FromEndpointConfigName(Construct, String, String)
(experimental) Imports an EndpointConfig defined either outside the CDK or in a different CDK stack.
public static IEndpointConfig FromEndpointConfigName(Construct scope, string id, string endpointConfigName)
Parameters
- scope Constructs.Construct
the Construct scope.
- id System.String
the resource id.
- endpointConfigName System.String
the name of the endpoint configuration.
Returns
Remarks
Stability: Experimental