line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Amazon::EC2::InstanceStateChange; |
2
|
2
|
|
|
2
|
|
1601
|
use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
16
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Net::Amazon::EC2::InstanceStateChange |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 DESCRIPTION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
A class representing the change of a state of an instance. |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=over |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=item instance_id (required) |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
The instance id in question. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=item current_state (required) |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
A Net::Amazon::EC2::InstanceState object representing the current state of the instance. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=item previous_state (required) |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
A Net::Amazon::EC2::InstanceState object representing the previous state of the instance. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=back |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
has 'instance_id' => ( is => 'ro', isa => 'Str', required => 1 ); |
33
|
|
|
|
|
|
|
has 'current_state' => ( is => 'ro', isa => 'Net::Amazon::EC2::InstanceState', required => 1 ); |
34
|
|
|
|
|
|
|
has 'previous_state' => ( is => 'ro', isa => 'Net::Amazon::EC2::InstanceState', required => 1 ); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 AUTHOR |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Jeff Kim <cpan@chosec.com> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 COPYRIGHT |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it |
45
|
|
|
|
|
|
|
under the same terms as Perl itself. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |
48
|
|
|
|
|
|
|
|
49
|
2
|
|
|
2
|
|
13478
|
no Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
10
|
|
50
|
|
|
|
|
|
|
1; |