File Coverage

blib/lib/Cfn/Resource/AWS/AutoScaling/LaunchConfiguration.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 2     2   1235 use Moose::Util::TypeConstraints;
  2         9  
  2         26  
2              
3             coerce 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::AutoScaling::LaunchConfiguration {
8 2     2   4497 use Moose;
  2         4  
  2         16  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration {
14 2     2   14250 use Moose;
  2         5  
  2         10  
15 2     2   13047 use MooseX::StrictConstructor;
  2         6  
  2         23  
16             extends 'Cfn::Resource::Properties';
17             has AssociatePublicIpAddress => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
18             has BlockDeviceMappings => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
19             has EbsOptimized => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
20             has IamInstanceProfile => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
21             has ImageId => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
22             has InstanceMonitoring => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
23             has InstanceType => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
24             has KernelId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
25             has KeyName => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
26             has RamDiskId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
27             has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
28             has SpotPrice => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
29             has UserData => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
30             }
31              
32             1;