NAME

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

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;

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

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.

SEE ALSO

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

AUTHOR

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.