toEbsVolumeType method

EbsVolumeType toEbsVolumeType()

Implementation

EbsVolumeType toEbsVolumeType() {
  switch (this) {
    case 'standard':
      return EbsVolumeType.standard;
    case 'io1':
      return EbsVolumeType.io1;
    case 'io2':
      return EbsVolumeType.io2;
    case 'gp2':
      return EbsVolumeType.gp2;
    case 'sc1':
      return EbsVolumeType.sc1;
    case 'st1':
      return EbsVolumeType.st1;
  }
  throw Exception('$this is not known in enum EbsVolumeType');
}