VM::EC2::ConsoleOutput - Object describing console output from an Amazon EC2 instance
Contents
Description
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.
Methods
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
Name
VM::EC2::ConsoleOutput - Object describing console output from an Amazon EC2 instance
See Also
VM::EC2 VM::EC2::Generic VM::EC2::Instance
String Overloading
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.
Synopsis
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;
