Skip to content
v2.275.0

Experimental

@aws-cdk/aws-sagemaker-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AcceleratorType Class ​

Supported Elastic Inference (EI) instance types for SageMaker instance-based production variants.

EI instances provide on-demand GPU computing for inference.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sagemaker_alpha from '@aws-cdk/aws-sagemaker-alpha';
const acceleratorType = sagemaker_alpha.AcceleratorType.EIA1_LARGE;
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_sagemaker_alpha as sagemaker_alpha

accelerator_type = sagemaker_alpha.AcceleratorType.EIA1_LARGE
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.alpha.*;

AcceleratorType acceleratorType = AcceleratorType.EIA1_LARGE;
csharp
// Install: dotnet add package Amazon.CDK.AWS.Sagemaker.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker.Alpha;

var acceleratorType = AcceleratorType.EIA1_LARGE;
go
// Install: go get github.com/aws/aws-cdk-go/awscdksagemakeralpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import sagemaker_alpha "github.com/aws/aws-cdk-go/awscdksagemakeralpha"

acceleratorType := sagemaker_alpha.AcceleratorType_EIA1_LARGE()

Initializer ​

ts
new AcceleratorType(acceleratorType: string)
python
AcceleratorType(accelerator_type: str)
java
new AcceleratorType(String acceleratorType)
csharp
new AcceleratorType(string acceleratorType)
go
NewAcceleratorType(AcceleratorType *string)

Properties ​

EIA1_LARGEAcceleratorTypeeia1_largeAcceleratorTypeEIA1_LARGEAcceleratorTypeEIA1_LARGEAcceleratorTypeEIA1_LARGEAcceleratorTypestatic#
ml.eia1.large.
EIA1_MEDIUMAcceleratorTypeeia1_mediumAcceleratorTypeEIA1_MEDIUMAcceleratorTypeEIA1_MEDIUMAcceleratorTypeEIA1_MEDIUMAcceleratorTypestatic#
ml.eia1.medium.
EIA1_XLARGEAcceleratorTypeeia1_xlargeAcceleratorTypeEIA1_XLARGEAcceleratorTypeEIA1_XLARGEAcceleratorTypeEIA1_XLARGEAcceleratorTypestatic#
ml.eia1.xlarge.
EIA2_LARGEAcceleratorTypeeia2_largeAcceleratorTypeEIA2_LARGEAcceleratorTypeEIA2_LARGEAcceleratorTypeEIA2_LARGEAcceleratorTypestatic#
ml.eia2.large.
EIA2_MEDIUMAcceleratorTypeeia2_mediumAcceleratorTypeEIA2_MEDIUMAcceleratorTypeEIA2_MEDIUMAcceleratorTypeEIA2_MEDIUMAcceleratorTypestatic#
ml.eia2.medium.
EIA2_XLARGEAcceleratorTypeeia2_xlargeAcceleratorTypeEIA2_XLARGEAcceleratorTypeEIA2_XLARGEAcceleratorTypeEIA2_XLARGEAcceleratorTypestatic#
ml.eia2.xlarge.

Methods ​

of(acceleratorType: string): AcceleratorType // chainable@staticmethod def of(accelerator_type: str) -> AcceleratorTypepublic static AcceleratorType of(String acceleratorType)public static AcceleratorType Of(string acceleratorType)func Of(AcceleratorType *string) AcceleratorTypestatic#
Builds an AcceleratorType from a given string or token (such as a CfnParameter).
1 parameter · returns

Parameters

  • acceleratorTypeaccelerator_typeacceleratorTypeacceleratorTypeAcceleratorType — An accelerator type as string.

Returns: A strongly typed AcceleratorType

toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#
Return the accelerator type as a string.
returns

Returns: The accelerator type as a string