コード例 #1
0
 /**
  * @param string $instanceId The ID of a running instance to terminate
  */
 protected function terminateAnInstance($instanceId)
 {
     self::log('Terminate the instance.');
     $this->client->getCommand('TerminateInstances', array('InstanceIds' => array($instanceId)))->execute();
     self::log('Wait until the instance is terminated.');
     $this->client->waitUntilInstanceTerminated(array('InstanceIds' => array($instanceId)));
 }