VM::EC2::Instance::State3pm
Object describing the state of an ec2 instance
Usage
use VM::EC2;$ec2 = VM::EC2->new(...);$instance = $ec2->describe_instances(-instance_id=>'i-12345');$state = $instance->state;$code = $state->code;$name = $state->name;
Overview
This object represents the state of an Amazon EC2 instance. It is returned by calling the state() method of an VM::EC2::Instance, and is also returned by VM::EC2->start_instances(), stop_instances() and terminate_instances().
Methods
These object methods are supported:
code -- The state codename -- The state nameCode Name---- -------0 pending16 running32 shutting-down48 terminated64 stopping80 stopped272 <none>
Code 272 is said to correspond to a problem with the instance host.
String overloading
When used in a string context, this object will interpolate the name.
Releases
6 releases since Debian 8 (Jessie); the text changed 3 times.