EC2/BlockDeviceMapping.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« EC2/AvailabilityZoneMessage.pm ↑ Summary EC2/BundleInstanceResponse.pm »
1 package Net::Amazon::EC2::BlockDeviceMapping;
2 2 $Net::Amazon::EC2::BlockDeviceMapping::VERSION = '0.36';
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 Net::Amazon::EC2::BlockDeviceMapping
9  
10 =head1 DESCRIPTION
11  
12 A class representing a block device mapping
13  
14 =head1 ATTRIBUTES
15  
16 =over
17  
18 =item device_name (required)
19  
20 Name of the device within Amazon EC2.
21  
22 =item ebs (optional)
23  
24 A Net::Amazon::EC2::EbsInstanceBlockDeviceMapping object representing the EBS mapping
25  
26 =item virtual_name (optional)
27  
28 A virtual device name.
29  
30 =item no_device (optional)
31  
32 Specifies the device name to suppress during instance launch.
33  
34 =back
35  
36 =cut
37  
38 2 has 'device_name' => ( is => 'ro', isa => 'Str', required => 1 );
39 2 has 'ebs' => ( is => 'ro', isa => 'Maybe[Net::Amazon::EC2::EbsBlockDevice]|Maybe[Net::Amazon::EC2::EbsInstanceBlockDeviceMapping]', required => 0 );
40 2 has 'virtual_name' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
41 2 has 'no_device' => ( is => 'ro', isa => 'Maybe[Int]', required => 0 );
42  
43 2 __PACKAGE__->meta->make_immutable();
44  
45 =head1 AUTHOR
46  
47 Jeff Kim <cpan@chosec.com>
48  
49 =head1 COPYRIGHT
50  
51 Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it
52 under the same terms as Perl itself.
53  
54 =cut
55  
56 2 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
57 2 1;
« EC2/AvailabilityZoneMessage.pm ↑ Summary EC2/BundleInstanceResponse.pm »