Experimental
@aws-cdk/aws-sagemaker-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
InstanceType Class
Supported instance types for SageMaker instance-based production variants.
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 instanceType = sagemaker_alpha.InstanceType.C4_2XLARGE;
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
instance_type = sagemaker_alpha.InstanceType.C4_2XLARGE
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.*;
InstanceType instanceType = InstanceType.C4_2XLARGE;
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 instanceType = InstanceType.C4_2XLARGE;
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"
instanceType := sagemaker_alpha.InstanceType_C4_2XLARGE()
Initializer
ts
new InstanceType(instanceType: string)
python
InstanceType(instance_type: str)
java
new InstanceType(String instanceType)
csharp
new InstanceType(string instanceType)
go
NewInstanceType(InstanceType *string)
Properties
C4_2XLARGEInstanceTypec4_2_xlargeInstanceTypeC4_2XLARGEInstanceTypeC4_2XLARGEInstanceTypeC4_2XLARGEInstanceTypestatic#ml.c4.2xlarge.
C4_4XLARGEInstanceTypec4_4_xlargeInstanceTypeC4_4XLARGEInstanceTypeC4_4XLARGEInstanceTypeC4_4XLARGEInstanceTypestatic#ml.c4.4xlarge.
C4_8XLARGEInstanceTypec4_8_xlargeInstanceTypeC4_8XLARGEInstanceTypeC4_8XLARGEInstanceTypeC4_8XLARGEInstanceTypestatic#ml.c4.8xlarge.
C4_LARGEInstanceTypec4_largeInstanceTypeC4_LARGEInstanceTypeC4_LARGEInstanceTypeC4_LARGEInstanceTypestatic#ml.c4.large.
C4_XLARGEInstanceTypec4_xlargeInstanceTypeC4_XLARGEInstanceTypeC4_XLARGEInstanceTypeC4_XLARGEInstanceTypestatic#ml.c4.xlarge.
C5_18XLARGEInstanceTypec5_18_xlargeInstanceTypeC5_18XLARGEInstanceTypeC5_18XLARGEInstanceTypeC5_18XLARGEInstanceTypestatic#ml.c5.18xlarge.
C5_2XLARGEInstanceTypec5_2_xlargeInstanceTypeC5_2XLARGEInstanceTypeC5_2XLARGEInstanceTypeC5_2XLARGEInstanceTypestatic#ml.c5.2xlarge.
C5_4XLARGEInstanceTypec5_4_xlargeInstanceTypeC5_4XLARGEInstanceTypeC5_4XLARGEInstanceTypeC5_4XLARGEInstanceTypestatic#ml.c5.4xlarge.
C5_9XLARGEInstanceTypec5_9_xlargeInstanceTypeC5_9XLARGEInstanceTypeC5_9XLARGEInstanceTypeC5_9XLARGEInstanceTypestatic#ml.c5.9xlarge.
C5_LARGEInstanceTypec5_largeInstanceTypeC5_LARGEInstanceTypeC5_LARGEInstanceTypeC5_LARGEInstanceTypestatic#ml.c5.large.
C5_XLARGEInstanceTypec5_xlargeInstanceTypeC5_XLARGEInstanceTypeC5_XLARGEInstanceTypeC5_XLARGEInstanceTypestatic#ml.c5.xlarge.
C5D_18XLARGEInstanceTypec5_d_18_xlargeInstanceTypeC5D_18XLARGEInstanceTypeC5D_18XLARGEInstanceTypeC5D_18XLARGEInstanceTypestatic#ml.c5d.18xlarge.
C5D_2XLARGEInstanceTypec5_d_2_xlargeInstanceTypeC5D_2XLARGEInstanceTypeC5D_2XLARGEInstanceTypeC5D_2XLARGEInstanceTypestatic#ml.c5d.2xlarge.
C5D_4XLARGEInstanceTypec5_d_4_xlargeInstanceTypeC5D_4XLARGEInstanceTypeC5D_4XLARGEInstanceTypeC5D_4XLARGEInstanceTypestatic#ml.c5d.4xlarge.
C5D_9XLARGEInstanceTypec5_d_9_xlargeInstanceTypeC5D_9XLARGEInstanceTypeC5D_9XLARGEInstanceTypeC5D_9XLARGEInstanceTypestatic#ml.c5d.9xlarge.
C5D_LARGEInstanceTypec5_d_largeInstanceTypeC5D_LARGEInstanceTypeC5D_LARGEInstanceTypeC5D_LARGEInstanceTypestatic#ml.c5d.large.
C5D_XLARGEInstanceTypec5_d_xlargeInstanceTypeC5D_XLARGEInstanceTypeC5D_XLARGEInstanceTypeC5D_XLARGEInstanceTypestatic#ml.c5d.xlarge.
C6I_12XLARGEInstanceTypec6_i_12_xlargeInstanceTypeC6I_12XLARGEInstanceTypeC6I_12XLARGEInstanceTypeC6I_12XLARGEInstanceTypestatic#ml.c6i.12xlarge.
C6I_16XLARGEInstanceTypec6_i_16_xlargeInstanceTypeC6I_16XLARGEInstanceTypeC6I_16XLARGEInstanceTypeC6I_16XLARGEInstanceTypestatic#ml.c6i.16xlarge.
C6I_24XLARGEInstanceTypec6_i_24_xlargeInstanceTypeC6I_24XLARGEInstanceTypeC6I_24XLARGEInstanceTypeC6I_24XLARGEInstanceTypestatic#ml.c6i.24xlarge.
C6I_2XLARGEInstanceTypec6_i_2_xlargeInstanceTypeC6I_2XLARGEInstanceTypeC6I_2XLARGEInstanceTypeC6I_2XLARGEInstanceTypestatic#ml.c6i.2xlarge.
C6I_32XLARGEInstanceTypec6_i_32_xlargeInstanceTypeC6I_32XLARGEInstanceTypeC6I_32XLARGEInstanceTypeC6I_32XLARGEInstanceTypestatic#ml.c6i.32xlarge.
C6I_4XLARGEInstanceTypec6_i_4_xlargeInstanceTypeC6I_4XLARGEInstanceTypeC6I_4XLARGEInstanceTypeC6I_4XLARGEInstanceTypestatic#ml.c6i.4xlarge.
C6I_8XLARGEInstanceTypec6_i_8_xlargeInstanceTypeC6I_8XLARGEInstanceTypeC6I_8XLARGEInstanceTypeC6I_8XLARGEInstanceTypestatic#ml.c6i.8xlarge.
C6I_LARGEInstanceTypec6_i_largeInstanceTypeC6I_LARGEInstanceTypeC6I_LARGEInstanceTypeC6I_LARGEInstanceTypestatic#ml.c6i.large.
C6I_XLARGEInstanceTypec6_i_xlargeInstanceTypeC6I_XLARGEInstanceTypeC6I_XLARGEInstanceTypeC6I_XLARGEInstanceTypestatic#ml.c6i.xlarge.
G4DN_12XLARGEInstanceTypeg4_dn_12_xlargeInstanceTypeG4DN_12XLARGEInstanceTypeG4DN_12XLARGEInstanceTypeG4DN_12XLARGEInstanceTypestatic#ml.g4dn.12xlarge.
G4DN_16XLARGEInstanceTypeg4_dn_16_xlargeInstanceTypeG4DN_16XLARGEInstanceTypeG4DN_16XLARGEInstanceTypeG4DN_16XLARGEInstanceTypestatic#ml.g4dn.16xlarge.
G4DN_2XLARGEInstanceTypeg4_dn_2_xlargeInstanceTypeG4DN_2XLARGEInstanceTypeG4DN_2XLARGEInstanceTypeG4DN_2XLARGEInstanceTypestatic#ml.g4dn.2xlarge.
G4DN_4XLARGEInstanceTypeg4_dn_4_xlargeInstanceTypeG4DN_4XLARGEInstanceTypeG4DN_4XLARGEInstanceTypeG4DN_4XLARGEInstanceTypestatic#ml.g4dn.4xlarge.
G4DN_8XLARGEInstanceTypeg4_dn_8_xlargeInstanceTypeG4DN_8XLARGEInstanceTypeG4DN_8XLARGEInstanceTypeG4DN_8XLARGEInstanceTypestatic#ml.g4dn.8xlarge.
G4DN_XLARGEInstanceTypeg4_dn_xlargeInstanceTypeG4DN_XLARGEInstanceTypeG4DN_XLARGEInstanceTypeG4DN_XLARGEInstanceTypestatic#ml.g4dn.xlarge.
G5_12XLARGEInstanceTypeg5_12_xlargeInstanceTypeG5_12XLARGEInstanceTypeG5_12XLARGEInstanceTypeG5_12XLARGEInstanceTypestatic#ml.g5.12xlarge.
G5_16XLARGEInstanceTypeg5_16_xlargeInstanceTypeG5_16XLARGEInstanceTypeG5_16XLARGEInstanceTypeG5_16XLARGEInstanceTypestatic#ml.g5.16xlarge.
G5_24XLARGEInstanceTypeg5_24_xlargeInstanceTypeG5_24XLARGEInstanceTypeG5_24XLARGEInstanceTypeG5_24XLARGEInstanceTypestatic#ml.g5.24xlarge.
G5_2XLARGEInstanceTypeg5_2_xlargeInstanceTypeG5_2XLARGEInstanceTypeG5_2XLARGEInstanceTypeG5_2XLARGEInstanceTypestatic#ml.g5.2xlarge.
G5_48XLARGEInstanceTypeg5_48_xlargeInstanceTypeG5_48XLARGEInstanceTypeG5_48XLARGEInstanceTypeG5_48XLARGEInstanceTypestatic#ml.g5.48xlarge.
G5_4XLARGEInstanceTypeg5_4_xlargeInstanceTypeG5_4XLARGEInstanceTypeG5_4XLARGEInstanceTypeG5_4XLARGEInstanceTypestatic#ml.g5.4xlarge.
G5_8XLARGEInstanceTypeg5_8_xlargeInstanceTypeG5_8XLARGEInstanceTypeG5_8XLARGEInstanceTypeG5_8XLARGEInstanceTypestatic#ml.g5.8xlarge.
G5_XLARGEInstanceTypeg5_xlargeInstanceTypeG5_XLARGEInstanceTypeG5_XLARGEInstanceTypeG5_XLARGEInstanceTypestatic#ml.g5.xlarge.
G6_12XLARGEInstanceTypeg6_12_xlargeInstanceTypeG6_12XLARGEInstanceTypeG6_12XLARGEInstanceTypeG6_12XLARGEInstanceTypestatic#ml.g6.12xlarge.
G6_16XLARGEInstanceTypeg6_16_xlargeInstanceTypeG6_16XLARGEInstanceTypeG6_16XLARGEInstanceTypeG6_16XLARGEInstanceTypestatic#ml.g6.16xlarge.
G6_24XLARGEInstanceTypeg6_24_xlargeInstanceTypeG6_24XLARGEInstanceTypeG6_24XLARGEInstanceTypeG6_24XLARGEInstanceTypestatic#ml.g6.24xlarge.
G6_2XLARGEInstanceTypeg6_2_xlargeInstanceTypeG6_2XLARGEInstanceTypeG6_2XLARGEInstanceTypeG6_2XLARGEInstanceTypestatic#ml.g6.2xlarge.
G6_48XLARGEInstanceTypeg6_48_xlargeInstanceTypeG6_48XLARGEInstanceTypeG6_48XLARGEInstanceTypeG6_48XLARGEInstanceTypestatic#ml.g6.48xlarge.
G6_4XLARGEInstanceTypeg6_4_xlargeInstanceTypeG6_4XLARGEInstanceTypeG6_4XLARGEInstanceTypeG6_4XLARGEInstanceTypestatic#ml.g6.4xlarge.
G6_8XLARGEInstanceTypeg6_8_xlargeInstanceTypeG6_8XLARGEInstanceTypeG6_8XLARGEInstanceTypeG6_8XLARGEInstanceTypestatic#ml.g6.8xlarge.
G6_XLARGEInstanceTypeg6_xlargeInstanceTypeG6_XLARGEInstanceTypeG6_XLARGEInstanceTypeG6_XLARGEInstanceTypestatic#ml.g6.xlarge.
INF1_24XLARGEInstanceTypeinf1_24_xlargeInstanceTypeINF1_24XLARGEInstanceTypeINF1_24XLARGEInstanceTypeINF1_24XLARGEInstanceTypestatic#ml.inf1.24xlarge.
INF1_2XLARGEInstanceTypeinf1_2_xlargeInstanceTypeINF1_2XLARGEInstanceTypeINF1_2XLARGEInstanceTypeINF1_2XLARGEInstanceTypestatic#ml.inf1.2xlarge.
INF1_6XLARGEInstanceTypeinf1_6_xlargeInstanceTypeINF1_6XLARGEInstanceTypeINF1_6XLARGEInstanceTypeINF1_6XLARGEInstanceTypestatic#ml.inf1.6xlarge.
INF1_XLARGEInstanceTypeinf1_xlargeInstanceTypeINF1_XLARGEInstanceTypeINF1_XLARGEInstanceTypeINF1_XLARGEInstanceTypestatic#ml.inf1.xlarge.
INF2_24XLARGEInstanceTypeinf2_24_xlargeInstanceTypeINF2_24XLARGEInstanceTypeINF2_24XLARGEInstanceTypeINF2_24XLARGEInstanceTypestatic#ml.inf2.24xlarge.
INF2_48XLARGEInstanceTypeinf2_48_xlargeInstanceTypeINF2_48XLARGEInstanceTypeINF2_48XLARGEInstanceTypeINF2_48XLARGEInstanceTypestatic#ml.inf2.48xlarge.
INF2_8XLARGEInstanceTypeinf2_8_xlargeInstanceTypeINF2_8XLARGEInstanceTypeINF2_8XLARGEInstanceTypeINF2_8XLARGEInstanceTypestatic#ml.inf2.8xlarge.
INF2_XLARGEInstanceTypeinf2_xlargeInstanceTypeINF2_XLARGEInstanceTypeINF2_XLARGEInstanceTypeINF2_XLARGEInstanceTypestatic#ml.inf2.xlarge.
M4_10XLARGEInstanceTypem4_10_xlargeInstanceTypeM4_10XLARGEInstanceTypeM4_10XLARGEInstanceTypeM4_10XLARGEInstanceTypestatic#ml.m4.10xlarge.
M4_16XLARGEInstanceTypem4_16_xlargeInstanceTypeM4_16XLARGEInstanceTypeM4_16XLARGEInstanceTypeM4_16XLARGEInstanceTypestatic#ml.m4.16xlarge.
M4_2XLARGEInstanceTypem4_2_xlargeInstanceTypeM4_2XLARGEInstanceTypeM4_2XLARGEInstanceTypeM4_2XLARGEInstanceTypestatic#ml.m4.2xlarge.
M4_4XLARGEInstanceTypem4_4_xlargeInstanceTypeM4_4XLARGEInstanceTypeM4_4XLARGEInstanceTypeM4_4XLARGEInstanceTypestatic#ml.m4.4xlarge.
M4_XLARGEInstanceTypem4_xlargeInstanceTypeM4_XLARGEInstanceTypeM4_XLARGEInstanceTypeM4_XLARGEInstanceTypestatic#ml.m4.xlarge.
M5_12XLARGEInstanceTypem5_12_xlargeInstanceTypeM5_12XLARGEInstanceTypeM5_12XLARGEInstanceTypeM5_12XLARGEInstanceTypestatic#ml.m5.12xlarge.
M5_24XLARGEInstanceTypem5_24_xlargeInstanceTypeM5_24XLARGEInstanceTypeM5_24XLARGEInstanceTypeM5_24XLARGEInstanceTypestatic#ml.m5.24xlarge.
M5_2XLARGEInstanceTypem5_2_xlargeInstanceTypeM5_2XLARGEInstanceTypeM5_2XLARGEInstanceTypeM5_2XLARGEInstanceTypestatic#ml.m5.2xlarge.
M5_4XLARGEInstanceTypem5_4_xlargeInstanceTypeM5_4XLARGEInstanceTypeM5_4XLARGEInstanceTypeM5_4XLARGEInstanceTypestatic#ml.m5.4xlarge.
M5_LARGEInstanceTypem5_largeInstanceTypeM5_LARGEInstanceTypeM5_LARGEInstanceTypeM5_LARGEInstanceTypestatic#ml.m5.large.
M5_XLARGEInstanceTypem5_xlargeInstanceTypeM5_XLARGEInstanceTypeM5_XLARGEInstanceTypeM5_XLARGEInstanceTypestatic#ml.m5.xlarge.
M5D_12XLARGEInstanceTypem5_d_12_xlargeInstanceTypeM5D_12XLARGEInstanceTypeM5D_12XLARGEInstanceTypeM5D_12XLARGEInstanceTypestatic#ml.m5d.12xlarge.
M5D_24XLARGEInstanceTypem5_d_24_xlargeInstanceTypeM5D_24XLARGEInstanceTypeM5D_24XLARGEInstanceTypeM5D_24XLARGEInstanceTypestatic#ml.m5d.24xlarge.
M5D_2XLARGEInstanceTypem5_d_2_xlargeInstanceTypeM5D_2XLARGEInstanceTypeM5D_2XLARGEInstanceTypeM5D_2XLARGEInstanceTypestatic#ml.m5d.2xlarge.
M5D_4XLARGEInstanceTypem5_d_4_xlargeInstanceTypeM5D_4XLARGEInstanceTypeM5D_4XLARGEInstanceTypeM5D_4XLARGEInstanceTypestatic#ml.m5d.4xlarge.
M5D_LARGEInstanceTypem5_d_largeInstanceTypeM5D_LARGEInstanceTypeM5D_LARGEInstanceTypeM5D_LARGEInstanceTypestatic#ml.m5d.large.
M5D_XLARGEInstanceTypem5_d_xlargeInstanceTypeM5D_XLARGEInstanceTypeM5D_XLARGEInstanceTypeM5D_XLARGEInstanceTypestatic#ml.m5d.xlarge.
P2_16XLARGEInstanceTypep2_16_xlargeInstanceTypeP2_16XLARGEInstanceTypeP2_16XLARGEInstanceTypeP2_16XLARGEInstanceTypestatic#ml.p2.16xlarge.
P2_8XLARGEInstanceTypep2_8_xlargeInstanceTypeP2_8XLARGEInstanceTypeP2_8XLARGEInstanceTypeP2_8XLARGEInstanceTypestatic#ml.p2.8xlarge.
P2_XLARGEInstanceTypep2_xlargeInstanceTypeP2_XLARGEInstanceTypeP2_XLARGEInstanceTypeP2_XLARGEInstanceTypestatic#ml.p2.xlarge.
P3_16XLARGEInstanceTypep3_16_xlargeInstanceTypeP3_16XLARGEInstanceTypeP3_16XLARGEInstanceTypeP3_16XLARGEInstanceTypestatic#ml.p3.16xlarge.
P3_2XLARGEInstanceTypep3_2_xlargeInstanceTypeP3_2XLARGEInstanceTypeP3_2XLARGEInstanceTypeP3_2XLARGEInstanceTypestatic#ml.p3.2xlarge.
P3_8XLARGEInstanceTypep3_8_xlargeInstanceTypeP3_8XLARGEInstanceTypeP3_8XLARGEInstanceTypeP3_8XLARGEInstanceTypestatic#ml.p3.8xlarge.
P4D_24XLARGEInstanceTypep4_d_24_xlargeInstanceTypeP4D_24XLARGEInstanceTypeP4D_24XLARGEInstanceTypeP4D_24XLARGEInstanceTypestatic#ml.p4d.24xlarge.
R5_12XLARGEInstanceTyper5_12_xlargeInstanceTypeR5_12XLARGEInstanceTypeR5_12XLARGEInstanceTypeR5_12XLARGEInstanceTypestatic#ml.r5.12xlarge.
R5_24XLARGEInstanceTyper5_24_xlargeInstanceTypeR5_24XLARGEInstanceTypeR5_24XLARGEInstanceTypeR5_24XLARGEInstanceTypestatic#ml.r5.24xlarge.
R5_2XLARGEInstanceTyper5_2_xlargeInstanceTypeR5_2XLARGEInstanceTypeR5_2XLARGEInstanceTypeR5_2XLARGEInstanceTypestatic#ml.r5.2xlarge.
R5_4XLARGEInstanceTyper5_4_xlargeInstanceTypeR5_4XLARGEInstanceTypeR5_4XLARGEInstanceTypeR5_4XLARGEInstanceTypestatic#ml.r5.4xlarge.
R5_LARGEInstanceTyper5_largeInstanceTypeR5_LARGEInstanceTypeR5_LARGEInstanceTypeR5_LARGEInstanceTypestatic#ml.r5.large.
R5_XLARGEInstanceTyper5_xlargeInstanceTypeR5_XLARGEInstanceTypeR5_XLARGEInstanceTypeR5_XLARGEInstanceTypestatic#ml.r5.xlarge.
R5D_12XLARGEInstanceTyper5_d_12_xlargeInstanceTypeR5D_12XLARGEInstanceTypeR5D_12XLARGEInstanceTypeR5D_12XLARGEInstanceTypestatic#ml.r5d.12xlarge.
R5D_24XLARGEInstanceTyper5_d_24_xlargeInstanceTypeR5D_24XLARGEInstanceTypeR5D_24XLARGEInstanceTypeR5D_24XLARGEInstanceTypestatic#ml.r5d.24xlarge.
R5D_2XLARGEInstanceTyper5_d_2_xlargeInstanceTypeR5D_2XLARGEInstanceTypeR5D_2XLARGEInstanceTypeR5D_2XLARGEInstanceTypestatic#ml.r5d.2xlarge.
R5D_4XLARGEInstanceTyper5_d_4_xlargeInstanceTypeR5D_4XLARGEInstanceTypeR5D_4XLARGEInstanceTypeR5D_4XLARGEInstanceTypestatic#ml.r5d.4xlarge.
R5D_LARGEInstanceTyper5_d_largeInstanceTypeR5D_LARGEInstanceTypeR5D_LARGEInstanceTypeR5D_LARGEInstanceTypestatic#ml.r5d.large.
R5D_XLARGEInstanceTyper5_d_xlargeInstanceTypeR5D_XLARGEInstanceTypeR5D_XLARGEInstanceTypeR5D_XLARGEInstanceTypestatic#ml.r5d.xlarge.
T2_2XLARGEInstanceTypet2_2_xlargeInstanceTypeT2_2XLARGEInstanceTypeT2_2XLARGEInstanceTypeT2_2XLARGEInstanceTypestatic#ml.t2.2xlarge.
T2_LARGEInstanceTypet2_largeInstanceTypeT2_LARGEInstanceTypeT2_LARGEInstanceTypeT2_LARGEInstanceTypestatic#ml.t2.large.
T2_MEDIUMInstanceTypet2_mediumInstanceTypeT2_MEDIUMInstanceTypeT2_MEDIUMInstanceTypeT2_MEDIUMInstanceTypestatic#ml.t2.medium.
T2_XLARGEInstanceTypet2_xlargeInstanceTypeT2_XLARGEInstanceTypeT2_XLARGEInstanceTypeT2_XLARGEInstanceTypestatic#ml.t2.xlarge.
Methods
of(instanceType: string): InstanceType // chainable@staticmethod def of(instance_type: str) -> InstanceTypepublic static InstanceType of(String instanceType)public static InstanceType Of(string instanceType)func Of(InstanceType *string) InstanceTypestatic#Builds an InstanceType from a given string or token (such as a CfnParameter).
1 parameter · returns
Parameters
instanceTypeinstance_typeinstanceTypeinstanceTypeInstanceType— An instance type as string.
Returns: A strongly typed InstanceType
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#Return the instance type as a string.
returns
Returns: The instance type as a string