toVPCRegion method
Implementation
VPCRegion toVPCRegion() {
switch (this) {
case 'us-east-1':
return VPCRegion.usEast_1;
case 'us-east-2':
return VPCRegion.usEast_2;
case 'us-west-1':
return VPCRegion.usWest_1;
case 'us-west-2':
return VPCRegion.usWest_2;
case 'eu-west-1':
return VPCRegion.euWest_1;
case 'eu-west-2':
return VPCRegion.euWest_2;
case 'eu-west-3':
return VPCRegion.euWest_3;
case 'eu-central-1':
return VPCRegion.euCentral_1;
case 'ap-east-1':
return VPCRegion.apEast_1;
case 'me-south-1':
return VPCRegion.meSouth_1;
case 'us-gov-west-1':
return VPCRegion.usGovWest_1;
case 'us-gov-east-1':
return VPCRegion.usGovEast_1;
case 'us-iso-east-1':
return VPCRegion.usIsoEast_1;
case 'us-isob-east-1':
return VPCRegion.usIsobEast_1;
case 'ap-southeast-1':
return VPCRegion.apSoutheast_1;
case 'ap-southeast-2':
return VPCRegion.apSoutheast_2;
case 'ap-south-1':
return VPCRegion.apSouth_1;
case 'ap-northeast-1':
return VPCRegion.apNortheast_1;
case 'ap-northeast-2':
return VPCRegion.apNortheast_2;
case 'ap-northeast-3':
return VPCRegion.apNortheast_3;
case 'eu-north-1':
return VPCRegion.euNorth_1;
case 'sa-east-1':
return VPCRegion.saEast_1;
case 'ca-central-1':
return VPCRegion.caCentral_1;
case 'cn-north-1':
return VPCRegion.cnNorth_1;
case 'af-south-1':
return VPCRegion.afSouth_1;
case 'eu-south-1':
return VPCRegion.euSouth_1;
}
throw Exception('$this is not known in enum VPCRegion');
}