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