equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Service_Amazon |
16 * @package Zend_Service_Amazon |
17 * @subpackage Ec2 |
17 * @subpackage Ec2 |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Instance.php 22046 2010-04-28 22:12:32Z shahar $ |
20 * @version $Id: Instance.php 24593 2012-01-05 20:35:02Z matthew $ |
21 */ |
21 */ |
22 |
22 |
23 /** |
23 /** |
24 * @see Zend_Service_Amazon_Ec2_Abstract |
24 * @see Zend_Service_Amazon_Ec2_Abstract |
25 */ |
25 */ |
30 * Ec2 Instances. |
30 * Ec2 Instances. |
31 * |
31 * |
32 * @category Zend |
32 * @category Zend |
33 * @package Zend_Service_Amazon |
33 * @package Zend_Service_Amazon |
34 * @subpackage Ec2 |
34 * @subpackage Ec2 |
35 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
35 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
36 * @license http://framework.zend.com/license/new-bsd New BSD License |
36 * @license http://framework.zend.com/license/new-bsd New BSD License |
37 */ |
37 */ |
38 class Zend_Service_Amazon_Ec2_Instance extends Zend_Service_Amazon_Ec2_Abstract |
38 class Zend_Service_Amazon_Ec2_Instance extends Zend_Service_Amazon_Ec2_Abstract |
39 { |
39 { |
|
40 /** |
|
41 * Constant for Micro Instance Type |
|
42 */ |
|
43 const MICRO = 't1.micro'; |
40 /** |
44 /** |
41 * Constant for Small Instance TYpe |
45 * Constant for Small Instance TYpe |
42 */ |
46 */ |
43 const SMALL = 'm1.small'; |
47 const SMALL = 'm1.small'; |
44 |
48 |
166 } |
170 } |
167 |
171 |
168 if(isset($options['monitor']) && $options['monitor'] === true) { |
172 if(isset($options['monitor']) && $options['monitor'] === true) { |
169 $params['Monitoring.Enabled'] = true; |
173 $params['Monitoring.Enabled'] = true; |
170 } |
174 } |
171 |
|
172 $response = $this->sendRequest($params); |
175 $response = $this->sendRequest($params); |
173 $xpath = $response->getXPath(); |
176 $xpath = $response->getXPath(); |
174 |
177 |
175 $return = array(); |
178 $return = array(); |
176 |
179 |