AwsInspector\Model\Ec2\Instance::exec PHP Method

exec() public method

public exec ( $command, $asUser = null )
    public function exec($command, $asUser = null)
    {
        return $this->getSshConnection()->exec($command, $asUser);
    }

Usage Example

 public function exec()
 {
     $instance = new Instance(['Tags' => [], 'PrivateIpAddress' => '1.2.3.4']);
     $instance->exec();
 }