DOKK / manpages / debian 12 / libvm-ec2-perl / VM::EC2::Instance::ConsoleOutput.3pm.en
VM::EC2::Instance::ConsoleOutput(3pm) User Contributed Perl Documentation VM::EC2::Instance::ConsoleOutput(3pm)

VM::EC2::ConsoleOutput - Object describing console output from an Amazon EC2 instance

  use VM::EC2;
  $ec2      = VM::EC2->new(...);
  $instance = $ec2->describe_instance(-instance_id=>'i-123456'); 
  my $out = $instance->console_output; 
  print $out,"\n"; 
  my $ts       = $out->timestamp; 
  my $instance = $out->instanceId;

This object represents the output from the console of a Amazon EC2 instance. The instance may be running, pending or stopped. It is returned by VM::EC2->get_console_output(), as well as VM::EC2::Instance->console_output.

Please see VM::EC2::Generic for methods shared by all VM::EC2 objects.

These object methods are supported:

 requestId  -- ID of the request that generated this object
 instanceId -- ID of the instance that generated this output 
 timestamp -- Time that this output was generated 
 output    -- Text of the console output

When used in a string context, this object will act as if its output() method was called, allowing it to be printed or searched directly.

VM::EC2 VM::EC2::Generic VM::EC2::Instance

Lincoln Stein <lincoln.stein@gmail.com>.

Copyright (c) 2011 Ontario Institute for Cancer Research

This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.

2022-10-14 perl v5.34.0