toProductionVariantInstanceType method

ProductionVariantInstanceType toProductionVariantInstanceType()

Implementation

ProductionVariantInstanceType toProductionVariantInstanceType() {
  switch (this) {
    case 'ml.t2.medium':
      return ProductionVariantInstanceType.mlT2Medium;
    case 'ml.t2.large':
      return ProductionVariantInstanceType.mlT2Large;
    case 'ml.t2.xlarge':
      return ProductionVariantInstanceType.mlT2Xlarge;
    case 'ml.t2.2xlarge':
      return ProductionVariantInstanceType.mlT2_2xlarge;
    case 'ml.m4.xlarge':
      return ProductionVariantInstanceType.mlM4Xlarge;
    case 'ml.m4.2xlarge':
      return ProductionVariantInstanceType.mlM4_2xlarge;
    case 'ml.m4.4xlarge':
      return ProductionVariantInstanceType.mlM4_4xlarge;
    case 'ml.m4.10xlarge':
      return ProductionVariantInstanceType.mlM4_10xlarge;
    case 'ml.m4.16xlarge':
      return ProductionVariantInstanceType.mlM4_16xlarge;
    case 'ml.m5.large':
      return ProductionVariantInstanceType.mlM5Large;
    case 'ml.m5.xlarge':
      return ProductionVariantInstanceType.mlM5Xlarge;
    case 'ml.m5.2xlarge':
      return ProductionVariantInstanceType.mlM5_2xlarge;
    case 'ml.m5.4xlarge':
      return ProductionVariantInstanceType.mlM5_4xlarge;
    case 'ml.m5.12xlarge':
      return ProductionVariantInstanceType.mlM5_12xlarge;
    case 'ml.m5.24xlarge':
      return ProductionVariantInstanceType.mlM5_24xlarge;
    case 'ml.m5d.large':
      return ProductionVariantInstanceType.mlM5dLarge;
    case 'ml.m5d.xlarge':
      return ProductionVariantInstanceType.mlM5dXlarge;
    case 'ml.m5d.2xlarge':
      return ProductionVariantInstanceType.mlM5d_2xlarge;
    case 'ml.m5d.4xlarge':
      return ProductionVariantInstanceType.mlM5d_4xlarge;
    case 'ml.m5d.12xlarge':
      return ProductionVariantInstanceType.mlM5d_12xlarge;
    case 'ml.m5d.24xlarge':
      return ProductionVariantInstanceType.mlM5d_24xlarge;
    case 'ml.c4.large':
      return ProductionVariantInstanceType.mlC4Large;
    case 'ml.c4.xlarge':
      return ProductionVariantInstanceType.mlC4Xlarge;
    case 'ml.c4.2xlarge':
      return ProductionVariantInstanceType.mlC4_2xlarge;
    case 'ml.c4.4xlarge':
      return ProductionVariantInstanceType.mlC4_4xlarge;
    case 'ml.c4.8xlarge':
      return ProductionVariantInstanceType.mlC4_8xlarge;
    case 'ml.p2.xlarge':
      return ProductionVariantInstanceType.mlP2Xlarge;
    case 'ml.p2.8xlarge':
      return ProductionVariantInstanceType.mlP2_8xlarge;
    case 'ml.p2.16xlarge':
      return ProductionVariantInstanceType.mlP2_16xlarge;
    case 'ml.p3.2xlarge':
      return ProductionVariantInstanceType.mlP3_2xlarge;
    case 'ml.p3.8xlarge':
      return ProductionVariantInstanceType.mlP3_8xlarge;
    case 'ml.p3.16xlarge':
      return ProductionVariantInstanceType.mlP3_16xlarge;
    case 'ml.c5.large':
      return ProductionVariantInstanceType.mlC5Large;
    case 'ml.c5.xlarge':
      return ProductionVariantInstanceType.mlC5Xlarge;
    case 'ml.c5.2xlarge':
      return ProductionVariantInstanceType.mlC5_2xlarge;
    case 'ml.c5.4xlarge':
      return ProductionVariantInstanceType.mlC5_4xlarge;
    case 'ml.c5.9xlarge':
      return ProductionVariantInstanceType.mlC5_9xlarge;
    case 'ml.c5.18xlarge':
      return ProductionVariantInstanceType.mlC5_18xlarge;
    case 'ml.c5d.large':
      return ProductionVariantInstanceType.mlC5dLarge;
    case 'ml.c5d.xlarge':
      return ProductionVariantInstanceType.mlC5dXlarge;
    case 'ml.c5d.2xlarge':
      return ProductionVariantInstanceType.mlC5d_2xlarge;
    case 'ml.c5d.4xlarge':
      return ProductionVariantInstanceType.mlC5d_4xlarge;
    case 'ml.c5d.9xlarge':
      return ProductionVariantInstanceType.mlC5d_9xlarge;
    case 'ml.c5d.18xlarge':
      return ProductionVariantInstanceType.mlC5d_18xlarge;
    case 'ml.g4dn.xlarge':
      return ProductionVariantInstanceType.mlG4dnXlarge;
    case 'ml.g4dn.2xlarge':
      return ProductionVariantInstanceType.mlG4dn_2xlarge;
    case 'ml.g4dn.4xlarge':
      return ProductionVariantInstanceType.mlG4dn_4xlarge;
    case 'ml.g4dn.8xlarge':
      return ProductionVariantInstanceType.mlG4dn_8xlarge;
    case 'ml.g4dn.12xlarge':
      return ProductionVariantInstanceType.mlG4dn_12xlarge;
    case 'ml.g4dn.16xlarge':
      return ProductionVariantInstanceType.mlG4dn_16xlarge;
    case 'ml.r5.large':
      return ProductionVariantInstanceType.mlR5Large;
    case 'ml.r5.xlarge':
      return ProductionVariantInstanceType.mlR5Xlarge;
    case 'ml.r5.2xlarge':
      return ProductionVariantInstanceType.mlR5_2xlarge;
    case 'ml.r5.4xlarge':
      return ProductionVariantInstanceType.mlR5_4xlarge;
    case 'ml.r5.12xlarge':
      return ProductionVariantInstanceType.mlR5_12xlarge;
    case 'ml.r5.24xlarge':
      return ProductionVariantInstanceType.mlR5_24xlarge;
    case 'ml.r5d.large':
      return ProductionVariantInstanceType.mlR5dLarge;
    case 'ml.r5d.xlarge':
      return ProductionVariantInstanceType.mlR5dXlarge;
    case 'ml.r5d.2xlarge':
      return ProductionVariantInstanceType.mlR5d_2xlarge;
    case 'ml.r5d.4xlarge':
      return ProductionVariantInstanceType.mlR5d_4xlarge;
    case 'ml.r5d.12xlarge':
      return ProductionVariantInstanceType.mlR5d_12xlarge;
    case 'ml.r5d.24xlarge':
      return ProductionVariantInstanceType.mlR5d_24xlarge;
    case 'ml.inf1.xlarge':
      return ProductionVariantInstanceType.mlInf1Xlarge;
    case 'ml.inf1.2xlarge':
      return ProductionVariantInstanceType.mlInf1_2xlarge;
    case 'ml.inf1.6xlarge':
      return ProductionVariantInstanceType.mlInf1_6xlarge;
    case 'ml.inf1.24xlarge':
      return ProductionVariantInstanceType.mlInf1_24xlarge;
  }
  throw Exception('$this is not known in enum ProductionVariantInstanceType');
}