VM::EC2::Instance::State::Reason3pm
Object describing the reason for an ec2 instance state change
Usage
use VM::EC2;$ec2 = VM::EC2->new(...);$instance = $ec2->describe_instances(-instance_id=>'i-12345');$reason = $instance->reason;$code = $reason->code;$message = $reason->message;
Overview
This object represents the reason that an Amazon EC2 instance underwent a state change. It is returned by calling the reason() method of VM::EC2::Instance.
Methods
These object methods are supported:
code -- The state change reason code.message -- The state change reason method.
The following table lists the codes and messages (source: http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-StateReasonType.html):
Code Message---- -------Server.SpotInstanceTermination A Spot Instance was terminated dueto an increase in the market price.Server.InternalError An internal error occurred duringinstance launch, resulting in termination.Server.InsufficientInstanceCapacity There was insufficient instance capacityto satisfy the launch request.Client.InternalError A client error caused the instance toterminate on launch.Client.InstanceInitiatedShutdown The instance initiated shutdown by a shutdown -hcommand issued from inside the instance.Client.UserInitiatedShutdown The instance was shutdown by a user via anAPI call.Client.VolumeLimitExceeded The volume limit was exceeded.Client.InvalidSnapshot.NotFound The specified snapshot was not found.
String overloading
When used in a string context, this object will interpolate the message.
Releases
6 releases since Debian 8 (Jessie); the text changed 3 times.