line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Amazon::EC2::Attachment; |
2
|
2
|
|
|
2
|
|
1162
|
use Moose; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
15
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
=head1 NAME |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
Net::Amazon::EC2::Attachment |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 DESCRIPTION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
A class representing a volume attachment to an instance |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=over |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=item volume_id (required) |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
The ID of the volume. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=item instance_id (optional) |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
The ID of the instance which this volume was attached to. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=item device (required) |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
The device path on the instance that the volume was attached as. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=item status (required) |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
The attachment's status. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item attach_time (required) |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
The time the volume was attached. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item delete_on_termination (required) |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This boolean indicates if an volume is terminated upon instance termination. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=back |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
has 'volume_id' => ( is => 'ro', isa => 'Str', required => 1 ); |
45
|
|
|
|
|
|
|
has 'instance_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); |
46
|
|
|
|
|
|
|
has 'device' => ( is => 'ro', isa => 'Str', required => 1 ); |
47
|
|
|
|
|
|
|
has 'status' => ( is => 'ro', isa => 'Str', required => 1 ); |
48
|
|
|
|
|
|
|
has 'attach_time' => ( is => 'ro', isa => 'Str', required => 1 ); |
49
|
|
|
|
|
|
|
has 'delete_on_termination' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 ); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 AUTHOR |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Jeff Kim <cpan@chosec.com> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 COPYRIGHT |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it |
60
|
|
|
|
|
|
|
under the same terms as Perl itself. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |
63
|
|
|
|
|
|
|
|
64
|
2
|
|
|
2
|
|
6865
|
no Moose; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
8
|
|
65
|
|
|
|
|
|
|
1; |