interface EndpointConfigProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Sagemaker.Alpha.EndpointConfigProps |
Go | github.com/aws/aws-cdk-go/awscdksagemakeralpha/v2#EndpointConfigProps |
Java | software.amazon.awscdk.services.sagemaker.alpha.EndpointConfigProps |
Python | aws_cdk.aws_sagemaker_alpha.EndpointConfigProps |
TypeScript (source) | @aws-cdk/aws-sagemaker-alpha » EndpointConfigProps |
Construction properties for a SageMaker EndpointConfig.
Example
import * as sagemaker from '@aws-cdk/aws-sagemaker-alpha';
declare const modelA: sagemaker.Model;
declare const modelB: sagemaker.Model;
const endpointConfig = new sagemaker.EndpointConfig(this, 'EndpointConfig', {
instanceProductionVariants: [
{
model: modelA,
variantName: 'modelA',
initialVariantWeight: 2.0,
},
{
model: modelB,
variantName: 'variantB',
initialVariantWeight: 1.0,
},
]
});
Properties
Name | Type | Description |
---|---|---|
encryption | IKey | Optional KMS encryption key associated with this stream. |
endpoint | string | Name of the endpoint configuration. |
instance | Instance [] | A list of instance production variants. |
encryptionKey?
Type:
IKey
(optional, default: none)
Optional KMS encryption key associated with this stream.
endpointConfigName?
Type:
string
(optional, default: AWS CloudFormation generates a unique physical ID and uses that ID for the endpoint
configuration's name.)
Name of the endpoint configuration.
instanceProductionVariants?
Type:
Instance
[]
(optional, default: none)
A list of instance production variants.
You can always add more variants later by calling
EndpointConfig#addInstanceProductionVariant
.