| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | function getCloudWatchClient($conf) |
||
| 6 | { |
||
| 7 | if (isset($conf->aws->profil)) { |
||
| 8 | return CloudWatchClient::factory(array( |
||
|
|
|||
| 9 | 'profil' => $conf->aws->profil, |
||
| 10 | 'region' => $conf->aws->region, |
||
| 11 | 'version' => '2010-08-01' |
||
| 12 | )); |
||
| 13 | } |
||
| 14 | return CloudWatchClient::factory(array( |
||
| 15 | 'credentials' => array ( |
||
| 16 | 'key' => $conf->aws->key, |
||
| 17 | 'secret' => $conf->aws->secret |
||
| 18 | ), |
||
| 19 | 'region' => $conf->aws->region, |
||
| 20 | 'version' => '2010-08-01' |
||
| 21 | )); |
||
| 22 | } |
||
| 23 | |||
| 34 |
This method has been deprecated.