toEC2InstanceType method
Implementation
EC2InstanceType toEC2InstanceType() {
switch (this) {
case 't2.micro':
return EC2InstanceType.t2Micro;
case 't2.small':
return EC2InstanceType.t2Small;
case 't2.medium':
return EC2InstanceType.t2Medium;
case 't2.large':
return EC2InstanceType.t2Large;
case 'c3.large':
return EC2InstanceType.c3Large;
case 'c3.xlarge':
return EC2InstanceType.c3Xlarge;
case 'c3.2xlarge':
return EC2InstanceType.c3_2xlarge;
case 'c3.4xlarge':
return EC2InstanceType.c3_4xlarge;
case 'c3.8xlarge':
return EC2InstanceType.c3_8xlarge;
case 'c4.large':
return EC2InstanceType.c4Large;
case 'c4.xlarge':
return EC2InstanceType.c4Xlarge;
case 'c4.2xlarge':
return EC2InstanceType.c4_2xlarge;
case 'c4.4xlarge':
return EC2InstanceType.c4_4xlarge;
case 'c4.8xlarge':
return EC2InstanceType.c4_8xlarge;
case 'c5.large':
return EC2InstanceType.c5Large;
case 'c5.xlarge':
return EC2InstanceType.c5Xlarge;
case 'c5.2xlarge':
return EC2InstanceType.c5_2xlarge;
case 'c5.4xlarge':
return EC2InstanceType.c5_4xlarge;
case 'c5.9xlarge':
return EC2InstanceType.c5_9xlarge;
case 'c5.12xlarge':
return EC2InstanceType.c5_12xlarge;
case 'c5.18xlarge':
return EC2InstanceType.c5_18xlarge;
case 'c5.24xlarge':
return EC2InstanceType.c5_24xlarge;
case 'c5a.large':
return EC2InstanceType.c5aLarge;
case 'c5a.xlarge':
return EC2InstanceType.c5aXlarge;
case 'c5a.2xlarge':
return EC2InstanceType.c5a_2xlarge;
case 'c5a.4xlarge':
return EC2InstanceType.c5a_4xlarge;
case 'c5a.8xlarge':
return EC2InstanceType.c5a_8xlarge;
case 'c5a.12xlarge':
return EC2InstanceType.c5a_12xlarge;
case 'c5a.16xlarge':
return EC2InstanceType.c5a_16xlarge;
case 'c5a.24xlarge':
return EC2InstanceType.c5a_24xlarge;
case 'r3.large':
return EC2InstanceType.r3Large;
case 'r3.xlarge':
return EC2InstanceType.r3Xlarge;
case 'r3.2xlarge':
return EC2InstanceType.r3_2xlarge;
case 'r3.4xlarge':
return EC2InstanceType.r3_4xlarge;
case 'r3.8xlarge':
return EC2InstanceType.r3_8xlarge;
case 'r4.large':
return EC2InstanceType.r4Large;
case 'r4.xlarge':
return EC2InstanceType.r4Xlarge;
case 'r4.2xlarge':
return EC2InstanceType.r4_2xlarge;
case 'r4.4xlarge':
return EC2InstanceType.r4_4xlarge;
case 'r4.8xlarge':
return EC2InstanceType.r4_8xlarge;
case 'r4.16xlarge':
return EC2InstanceType.r4_16xlarge;
case 'r5.large':
return EC2InstanceType.r5Large;
case 'r5.xlarge':
return EC2InstanceType.r5Xlarge;
case 'r5.2xlarge':
return EC2InstanceType.r5_2xlarge;
case 'r5.4xlarge':
return EC2InstanceType.r5_4xlarge;
case 'r5.8xlarge':
return EC2InstanceType.r5_8xlarge;
case 'r5.12xlarge':
return EC2InstanceType.r5_12xlarge;
case 'r5.16xlarge':
return EC2InstanceType.r5_16xlarge;
case 'r5.24xlarge':
return EC2InstanceType.r5_24xlarge;
case 'r5a.large':
return EC2InstanceType.r5aLarge;
case 'r5a.xlarge':
return EC2InstanceType.r5aXlarge;
case 'r5a.2xlarge':
return EC2InstanceType.r5a_2xlarge;
case 'r5a.4xlarge':
return EC2InstanceType.r5a_4xlarge;
case 'r5a.8xlarge':
return EC2InstanceType.r5a_8xlarge;
case 'r5a.12xlarge':
return EC2InstanceType.r5a_12xlarge;
case 'r5a.16xlarge':
return EC2InstanceType.r5a_16xlarge;
case 'r5a.24xlarge':
return EC2InstanceType.r5a_24xlarge;
case 'm3.medium':
return EC2InstanceType.m3Medium;
case 'm3.large':
return EC2InstanceType.m3Large;
case 'm3.xlarge':
return EC2InstanceType.m3Xlarge;
case 'm3.2xlarge':
return EC2InstanceType.m3_2xlarge;
case 'm4.large':
return EC2InstanceType.m4Large;
case 'm4.xlarge':
return EC2InstanceType.m4Xlarge;
case 'm4.2xlarge':
return EC2InstanceType.m4_2xlarge;
case 'm4.4xlarge':
return EC2InstanceType.m4_4xlarge;
case 'm4.10xlarge':
return EC2InstanceType.m4_10xlarge;
case 'm5.large':
return EC2InstanceType.m5Large;
case 'm5.xlarge':
return EC2InstanceType.m5Xlarge;
case 'm5.2xlarge':
return EC2InstanceType.m5_2xlarge;
case 'm5.4xlarge':
return EC2InstanceType.m5_4xlarge;
case 'm5.8xlarge':
return EC2InstanceType.m5_8xlarge;
case 'm5.12xlarge':
return EC2InstanceType.m5_12xlarge;
case 'm5.16xlarge':
return EC2InstanceType.m5_16xlarge;
case 'm5.24xlarge':
return EC2InstanceType.m5_24xlarge;
case 'm5a.large':
return EC2InstanceType.m5aLarge;
case 'm5a.xlarge':
return EC2InstanceType.m5aXlarge;
case 'm5a.2xlarge':
return EC2InstanceType.m5a_2xlarge;
case 'm5a.4xlarge':
return EC2InstanceType.m5a_4xlarge;
case 'm5a.8xlarge':
return EC2InstanceType.m5a_8xlarge;
case 'm5a.12xlarge':
return EC2InstanceType.m5a_12xlarge;
case 'm5a.16xlarge':
return EC2InstanceType.m5a_16xlarge;
case 'm5a.24xlarge':
return EC2InstanceType.m5a_24xlarge;
}
throw Exception('$this is not known in enum EC2InstanceType');
}