예제 #1
0
 public function testErrorsAreParsedCorrectly()
 {
     try {
         $this->logs->deleteLogGroup(array('logGroupName' => 'foo'));
         $this->fail('An exception should have been thrown.');
     } catch (ServiceResponseException $e) {
         $this->assertEquals('ResourceNotFoundException', $e->getExceptionCode(), 'Caught a ' . $e->getExceptionCode() . ' exception instead.');
     }
 }
예제 #2
0
 public function deleteLogGroup($logGroupName)
 {
     $this->cloudWatchLogsClient->deleteLogGroup(['logGroupName' => $logGroupName]);
 }