toRegionName method
Implementation
RegionName toRegionName() {
switch (this) {
case 'us-east-1':
return RegionName.usEast_1;
case 'us-east-2':
return RegionName.usEast_2;
case 'us-west-1':
return RegionName.usWest_1;
case 'us-west-2':
return RegionName.usWest_2;
case 'eu-west-1':
return RegionName.euWest_1;
case 'eu-west-2':
return RegionName.euWest_2;
case 'eu-west-3':
return RegionName.euWest_3;
case 'eu-central-1':
return RegionName.euCentral_1;
case 'ca-central-1':
return RegionName.caCentral_1;
case 'ap-south-1':
return RegionName.apSouth_1;
case 'ap-southeast-1':
return RegionName.apSoutheast_1;
case 'ap-southeast-2':
return RegionName.apSoutheast_2;
case 'ap-northeast-1':
return RegionName.apNortheast_1;
case 'ap-northeast-2':
return RegionName.apNortheast_2;
}
throw Exception('$this is not known in enum RegionName');
}