blib/lib/Paws/EC2/InstanceState.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/EC2/InstancePrivateIpAddress.pm ↑ Summary blib/lib/Paws/EC2/InstanceStateChange.pm »
1 package Paws::EC2::InstanceState;
2 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 has Code => (is => 'ro', isa => 'Int', request_name => 'code', traits => ['NameInRequest']);
4 1 has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest']);
5 1 1;
6  
7 ### main pod documentation begin ###
8  
9 =head1 NAME
10  
11 Paws::EC2::InstanceState
12  
13 =head1 USAGE
14  
15 This class represents one of two things:
16  
17 =head3 Arguments in a call to a service
18  
19 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
20 Each attribute should be used as a named argument in the calls that expect this type of object.
21  
22 As an example, if Att1 is expected to be a Paws::EC2::InstanceState object:
23  
24 $service_obj->Method(Att1 => { Code => $value, ..., Name => $value });
25  
26 =head3 Results returned from an API call
27  
28 Use accessors for each attribute. If Att1 is expected to be an Paws::EC2::InstanceState object:
29  
30 $result = $service_obj->Method(...);
31 $result->Att1->Code
32  
33 =head1 DESCRIPTION
34  
35 This class has no description
36  
37 =head1 ATTRIBUTES
38  
39  
40 =head2 Code => Int
41  
42 The state of the instance as a 16-bit unsigned integer.
43  
44 The high byte is all of the bits between 2^8 and (2^16)-1, which equals
45 decimal values between 256 and 65,535. These numerical values are used
46 for internal purposes and should be ignored.
47  
48 The low byte is all of the bits between 2^0 and (2^8)-1, which equals
49 decimal values between 0 and 255.
50  
51 The valid values for instance-state-code will all be in the range of
52 the low byte and they are:
53  
54 =over
55  
56 =item *
57  
58 C<0> : C<pending>
59  
60 =item *
61  
62 C<16> : C<running>
63  
64 =item *
65  
66 C<32> : C<shutting-down>
67  
68 =item *
69  
70 C<48> : C<terminated>
71  
72 =item *
73  
74 C<64> : C<stopping>
75  
76 =item *
77  
78 C<80> : C<stopped>
79  
80 =back
81  
82 You can ignore the high byte value by zeroing out all of the bits above
83 2^8 or 256 in decimal.
84  
85  
86 =head2 Name => Str
87  
88 The current state of the instance.
89  
90  
91  
92 =head1 SEE ALSO
93  
94 This class forms part of L<Paws>, describing an object used in L<Paws::EC2>
95  
96 =head1 BUGS and CONTRIBUTIONS
97  
98 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
99  
100 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
101  
102 =cut
« blib/lib/Paws/EC2/InstancePrivateIpAddress.pm ↑ Summary blib/lib/Paws/EC2/InstanceStateChange.pm »