| 1 | package Net::Amazon::EC2::InstanceState; | ||
| 2 | 2 | $Net::Amazon::EC2::InstanceState::VERSION = '0.36'; | |
| 3 | 2 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Net::Amazon::EC2::InstanceState | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | A class representing the state of an instance. | ||
| 12 | |||
| 13 | =head1 ATTRIBUTES | ||
| 14 | |||
| 15 | =over | ||
| 16 | |||
| 17 | =item code (required) | ||
| 18 | |||
| 19 | An interger representing the instance state. Valid values are: | ||
| 20 | |||
| 21 | =over | ||
| 22 | |||
| 23 | =item * 0: pending | ||
| 24 | |||
| 25 | =item * 16: running | ||
| 26 | |||
| 27 | =item * 32: shutting-down | ||
| 28 | |||
| 29 | =item * 48: terminated | ||
| 30 | |||
| 31 | =item * 64: stopping | ||
| 32 | |||
| 33 | =item * 80: stopped | ||
| 34 | |||
| 35 | =back | ||
| 36 | |||
| 37 | =item name (required) | ||
| 38 | |||
| 39 | The current named state of the instance. Valid values are: | ||
| 40 | |||
| 41 | =over | ||
| 42 | |||
| 43 | =item * pending: the instance is in the process of being launched | ||
| 44 | |||
| 45 | =item * running: the instance launched (though booting may not be completed) | ||
| 46 | |||
| 47 | =item * shutting-down: the instance started shutting down | ||
| 48 | |||
| 49 | =item * terminated: the instance terminated | ||
| 50 | |||
| 51 | =item * stopping: the instance is in the process of stopping | ||
| 52 | |||
| 53 | =item * stopped: the instance has been stopped | ||
| 54 | |||
| 55 | =back | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||
| 59 | 2 | has 'code' => ( is => 'ro', isa => 'Int' ); | |
| 60 | 2 | has 'name' => ( is => 'ro', isa => 'Str' ); | |
| 61 | |||
| 62 | 2 | __PACKAGE__->meta->make_immutable(); | |
| 63 | |||
| 64 | =back | ||
| 65 | |||
| 66 | =head1 AUTHOR | ||
| 67 | |||
| 68 | Jeff Kim <cpan@chosec.com> | ||
| 69 | |||
| 70 | =head1 COPYRIGHT | ||
| 71 | |||
| 72 | Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it | ||
| 73 | under the same terms as Perl itself. | ||
| 74 | |||
| 75 | =cut | ||
| 76 | |||
| 77 | 2 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 78 | 2 | 1; | |