toValue method

String toValue()

Implementation

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