toProcessingInstanceType method

ProcessingInstanceType toProcessingInstanceType()

Implementation

ProcessingInstanceType toProcessingInstanceType() {
  switch (this) {
    case 'ml.t3.medium':
      return ProcessingInstanceType.mlT3Medium;
    case 'ml.t3.large':
      return ProcessingInstanceType.mlT3Large;
    case 'ml.t3.xlarge':
      return ProcessingInstanceType.mlT3Xlarge;
    case 'ml.t3.2xlarge':
      return ProcessingInstanceType.mlT3_2xlarge;
    case 'ml.m4.xlarge':
      return ProcessingInstanceType.mlM4Xlarge;
    case 'ml.m4.2xlarge':
      return ProcessingInstanceType.mlM4_2xlarge;
    case 'ml.m4.4xlarge':
      return ProcessingInstanceType.mlM4_4xlarge;
    case 'ml.m4.10xlarge':
      return ProcessingInstanceType.mlM4_10xlarge;
    case 'ml.m4.16xlarge':
      return ProcessingInstanceType.mlM4_16xlarge;
    case 'ml.c4.xlarge':
      return ProcessingInstanceType.mlC4Xlarge;
    case 'ml.c4.2xlarge':
      return ProcessingInstanceType.mlC4_2xlarge;
    case 'ml.c4.4xlarge':
      return ProcessingInstanceType.mlC4_4xlarge;
    case 'ml.c4.8xlarge':
      return ProcessingInstanceType.mlC4_8xlarge;
    case 'ml.p2.xlarge':
      return ProcessingInstanceType.mlP2Xlarge;
    case 'ml.p2.8xlarge':
      return ProcessingInstanceType.mlP2_8xlarge;
    case 'ml.p2.16xlarge':
      return ProcessingInstanceType.mlP2_16xlarge;
    case 'ml.p3.2xlarge':
      return ProcessingInstanceType.mlP3_2xlarge;
    case 'ml.p3.8xlarge':
      return ProcessingInstanceType.mlP3_8xlarge;
    case 'ml.p3.16xlarge':
      return ProcessingInstanceType.mlP3_16xlarge;
    case 'ml.c5.xlarge':
      return ProcessingInstanceType.mlC5Xlarge;
    case 'ml.c5.2xlarge':
      return ProcessingInstanceType.mlC5_2xlarge;
    case 'ml.c5.4xlarge':
      return ProcessingInstanceType.mlC5_4xlarge;
    case 'ml.c5.9xlarge':
      return ProcessingInstanceType.mlC5_9xlarge;
    case 'ml.c5.18xlarge':
      return ProcessingInstanceType.mlC5_18xlarge;
    case 'ml.m5.large':
      return ProcessingInstanceType.mlM5Large;
    case 'ml.m5.xlarge':
      return ProcessingInstanceType.mlM5Xlarge;
    case 'ml.m5.2xlarge':
      return ProcessingInstanceType.mlM5_2xlarge;
    case 'ml.m5.4xlarge':
      return ProcessingInstanceType.mlM5_4xlarge;
    case 'ml.m5.12xlarge':
      return ProcessingInstanceType.mlM5_12xlarge;
    case 'ml.m5.24xlarge':
      return ProcessingInstanceType.mlM5_24xlarge;
    case 'ml.r5.large':
      return ProcessingInstanceType.mlR5Large;
    case 'ml.r5.xlarge':
      return ProcessingInstanceType.mlR5Xlarge;
    case 'ml.r5.2xlarge':
      return ProcessingInstanceType.mlR5_2xlarge;
    case 'ml.r5.4xlarge':
      return ProcessingInstanceType.mlR5_4xlarge;
    case 'ml.r5.8xlarge':
      return ProcessingInstanceType.mlR5_8xlarge;
    case 'ml.r5.12xlarge':
      return ProcessingInstanceType.mlR5_12xlarge;
    case 'ml.r5.16xlarge':
      return ProcessingInstanceType.mlR5_16xlarge;
    case 'ml.r5.24xlarge':
      return ProcessingInstanceType.mlR5_24xlarge;
  }
  throw Exception('$this is not known in enum ProcessingInstanceType');
}