/** * Set which region you are working in. It will append the * end point automaticly * * @param string $region */ public static function setRegion($region) { if (in_array(strtolower($region), self::$_validEc2Regions, true)) { self::$_defaultRegion = $region; } else { require_once 'Zend/Service/Amazon/Exception.php'; throw new Zend_Service_Amazon_Exception('Invalid Amazon Ec2 Region'); } }