toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RegionName.usEast_1:
      return 'us-east-1';
    case RegionName.usEast_2:
      return 'us-east-2';
    case RegionName.usWest_1:
      return 'us-west-1';
    case RegionName.usWest_2:
      return 'us-west-2';
    case RegionName.euWest_1:
      return 'eu-west-1';
    case RegionName.euWest_2:
      return 'eu-west-2';
    case RegionName.euWest_3:
      return 'eu-west-3';
    case RegionName.euCentral_1:
      return 'eu-central-1';
    case RegionName.caCentral_1:
      return 'ca-central-1';
    case RegionName.apSouth_1:
      return 'ap-south-1';
    case RegionName.apSoutheast_1:
      return 'ap-southeast-1';
    case RegionName.apSoutheast_2:
      return 'ap-southeast-2';
    case RegionName.apNortheast_1:
      return 'ap-northeast-1';
    case RegionName.apNortheast_2:
      return 'ap-northeast-2';
  }
}