EC2/Attachment.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« EC2/Errors.pm ↑ Summary EC2/AvailabilityZone.pm »
1 package Net::Amazon::EC2::Attachment;
2 2 $Net::Amazon::EC2::Attachment::VERSION = '0.36';
3 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =head1 NAME
6  
7 Net::Amazon::EC2::Attachment
8  
9 =head1 DESCRIPTION
10  
11 A class representing a volume attachment to an instance
12  
13 =head1 ATTRIBUTES
14  
15 =over
16  
17 =item volume_id (required)
18  
19 The ID of the volume.
20  
21 =item instance_id (optional)
22  
23 The ID of the instance which this volume was attached to.
24  
25 =item device (required)
26  
27 The device path on the instance that the volume was attached as.
28  
29 =item status (required)
30  
31 The attachment's status.
32  
33 =item attach_time (required)
34  
35 The time the volume was attached.
36  
37 =item delete_on_termination (required)
38  
39 This boolean indicates if an volume is terminated upon instance termination.
40  
41 =back
42  
43 =cut
44  
45 2 has 'volume_id' => ( is => 'ro', isa => 'Str', required => 1 );
46 2 has 'instance_id' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
47 2 has 'device' => ( is => 'ro', isa => 'Str', required => 1 );
48 2 has 'status' => ( is => 'ro', isa => 'Str', required => 1 );
49 2 has 'attach_time' => ( is => 'ro', isa => 'Str', required => 1 );
50 2 has 'delete_on_termination' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
51  
52 2 __PACKAGE__->meta->make_immutable();
53  
54 =head1 AUTHOR
55  
56 Jeff Kim <cpan@chosec.com>
57  
58 =head1 COPYRIGHT
59  
60 Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it
61 under the same terms as Perl itself.
62  
63 =cut
64  
65 2 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
66 2 1;
« EC2/Errors.pm ↑ Summary EC2/AvailabilityZone.pm »