1VM::EC2::Instance::StatUes:e:rReCaosnotnr(i3bpumt)ed PerVlM:D:oEcCu2m:e:nItnasttiaonnce::State::Reason(3pm)
2
3
4

NAME

6       VM::EC2::State::Reason - Object describing the reason for an EC2
7       instance state change
8

SYNOPSIS

10         use VM::EC2;
11
12         $ec2      = VM::EC2->new(...);
13         $instance = $ec2->describe_instances(-instance_id=>'i-12345');
14         $reason   = $instance->reason;
15         $code     = $reason->code;
16         $message  = $reason->message;
17

DESCRIPTION

19       This object represents the reason that an Amazon EC2 instance underwent
20       a state change. It is returned by calling the reason() method of
21       VM::EC2::Instance.
22

METHODS

24       These object methods are supported:
25
26        code           -- The state change reason code.
27        message        -- The state change reason method.
28
29       The following table lists the codes and messages (source:
30       http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-StateReasonType.html):
31
32          Code                                         Message
33          ----                                         -------
34        Server.SpotInstanceTermination       A Spot Instance was terminated due
35                                             to an increase in the market price.
36
37        Server.InternalError                 An internal error occurred during
38                                             instance launch, resulting in termination.
39
40        Server.InsufficientInstanceCapacity  There was insufficient instance capacity
41                                             to satisfy the launch request.
42
43        Client.InternalError                 A client error caused the instance to
44                                             terminate on launch.
45
46        Client.InstanceInitiatedShutdown     The instance initiated shutdown by a shutdown -h
47                                             command issued from inside the instance.
48
49        Client.UserInitiatedShutdown         The instance was shutdown by a user via an
50                                             API call.
51
52        Client.VolumeLimitExceeded           The volume limit was exceeded.
53
54        Client.InvalidSnapshot.NotFound      The specified snapshot was not found.
55

STRING OVERLOADING

57       When used in a string context, this object will interpolate the
58       message.
59

SEE ALSO

61       VM::EC2 VM::EC2::Generic VM::EC2::State VM::EC2::Instance
62

AUTHOR

64       Lincoln Stein <lincoln.stein@gmail.com>.
65
66       Copyright (c) 2011 Ontario Institute for Cancer Research
67
68       This package and its accompanying libraries is free software; you can
69       redistribute it and/or modify it under the terms of the GPL (either
70       version 1, or at your option, any later version) or the Artistic
71       License 2.0.  Refer to LICENSE for the full license text. In addition,
72       please see DISCLAIMER.txt for disclaimers of warranty.
73
74
75
76perl v5.38.0                      2023-07-V2M1::EC2::Instance::State::Reason(3pm)
Impressum