1VM::EC2::Instance::StatUes(e3r)Contributed Perl DocumentVaMt:i:oEnC2::Instance::State(3)
2
3
4

NAME

6       VM::EC2::State - Object describing the state of an EC2 instance
7

SYNOPSIS

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

DESCRIPTION

18       This object represents the state of an Amazon EC2 instance.  It is
19       returned by calling the state() method of an VM::EC2::Instance, and is
20       also returned by VM::EC2->start_instances(), stop_instances() and
21       terminate_instances().
22

METHODS

24       These object methods are supported:
25
26        code           -- The state code
27        name           -- The state name
28
29          Code                            Name
30          ----                            -------
31           0                              pending
32          16                              running
33          32                              shutting-down
34          48                              terminated
35          64                              stopping
36          80                              stopped
37         272                              <none>
38
39       Code 272 is said to correspond to a problem with the instance host.
40

STRING OVERLOADING

42       When used in a string context, this object will interpolate the name.
43

SEE ALSO

45       VM::EC2 VM::EC2::Generic VM::EC2::State VM::EC2::Instance
46

AUTHOR

48       Lincoln Stein <lincoln.stein@gmail.com>.
49
50       Copyright (c) 2011 Ontario Institute for Cancer Research
51
52       This package and its accompanying libraries is free software; you can
53       redistribute it and/or modify it under the terms of the GPL (either
54       version 1, or at your option, any later version) or the Artistic
55       License 2.0.  Refer to LICENSE for the full license text. In addition,
56       please see DISCLAIMER.txt for disclaimers of warranty.
57
58
59
60perl v5.28.0                      2018-07-15       VM::EC2::Instance::State(3)
Impressum