File Coverage

blib/lib/Net/Amazon/EC2/BlockDeviceMapping.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Net::Amazon::EC2::BlockDeviceMapping;
2 2     2   1347 use strict;
  2         5  
  2         58  
3 2     2   12 use Moose;
  2         4  
  2         16  
4              
5             =head1 NAME
6              
7             Net::Amazon::EC2::BlockDeviceMapping
8              
9             =head1 DESCRIPTION
10              
11             A class representing a block device mapping
12              
13             =head1 ATTRIBUTES
14              
15             =over
16              
17             =item device_name (required)
18              
19             Name of the device within Amazon EC2.
20              
21             =item ebs (optional)
22              
23             A Net::Amazon::EC2::EbsInstanceBlockDeviceMapping object representing the EBS mapping
24              
25             =item virtual_name (optional)
26              
27             A virtual device name.
28              
29             =item no_device (optional)
30              
31             Specifies the device name to suppress during instance launch.
32              
33             =back
34              
35             =cut
36              
37             has 'device_name' => ( is => 'ro', isa => 'Str', required => 1 );
38             has 'ebs' => ( is => 'ro', isa => 'Maybe[Net::Amazon::EC2::EbsBlockDevice]|Maybe[Net::Amazon::EC2::EbsInstanceBlockDeviceMapping]', required => 0 );
39             has 'virtual_name' => ( is => 'ro', isa => 'Maybe[Str]', required => 0 );
40             has 'no_device' => ( is => 'ro', isa => 'Maybe[Int]', required => 0 );
41              
42             __PACKAGE__->meta->make_immutable();
43              
44             =head1 AUTHOR
45              
46             Jeff Kim <cpan@chosec.com>
47              
48             =head1 COPYRIGHT
49              
50             Copyright (c) 2006-2010 Jeff Kim. This program is free software; you can redistribute it and/or modify it
51             under the same terms as Perl itself.
52              
53             =cut
54              
55 2     2   11319 no Moose;
  2         5  
  2         14  
56             1;