BucketGetRegion.class.php 421 B

123456789101112131415161718192021222324
  1. <?php
  2. class BucketGetRegion {
  3. public static function get($bucket) {
  4. $region = "us-east-1";
  5. switch($bucket) {
  6. case "ccld-us-mid":
  7. $region = "us-east-2";
  8. break;
  9. case "ccld-us-west":
  10. $region = "us-west-1";
  11. break;
  12. case "ccld-us-pnw":
  13. $region = "us-west-2";
  14. break;
  15. case "ccld-us-east":
  16. case "ccld-test":
  17. case "ccld-public-test":
  18. default:
  19. break;
  20. }
  21. return $region;
  22. }
  23. }