123456789101112131415161718192021222324 |
- <?php
- class BucketGetRegion {
- public static function get($bucket) {
- $region = "us-east-1";
- switch($bucket) {
- case "ccld-us-mid":
- $region = "us-east-2";
- break;
- case "ccld-us-west":
- $region = "us-west-1";
- break;
- case "ccld-us-pnw":
- $region = "us-west-2";
- break;
- case "ccld-us-east":
- case "ccld-test":
- case "ccld-public-test":
- default:
- break;
- }
- return $region;
- }
- }
|