File Coverage

blib/lib/Cfn/Resource/AWS/EC2/Instance.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 4     4   2138 use Moose::Util::TypeConstraints;
  4         9  
  4         39  
2              
3             coerce 'Cfn::Resource::Properties::AWS::EC2::Instance',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::EC2::Instance->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::EC2::Instance {
8 4     4   8229 use Moose;
  4         11  
  4         37  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::Instance', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::EC2::Instance {
14 4     4   19474 use Moose;
  4         13  
  4         19  
15 4     4   24618 use MooseX::StrictConstructor;
  4         45017  
  4         25  
16             extends 'Cfn::Resource::Properties';
17             has AvailabilityZone => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
18             has BlockDeviceMappings => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
19             has DisableApiTermination => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
20             has EbsOptimized => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
21             has IamInstanceProfile => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
22             has ImageId => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
23             has InstanceType => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
24             has KernelId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
25             has KeyName => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
26             has Monitoring => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
27             has NetworkInterfaces => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
28             has PlacementGroupName => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
29             has PrivateIpAddress => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
30             has RamdiskId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
31             has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
32             has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
33             has SourceDestCheck => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
34             has SubnetId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
35             has Tags => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
36             has Tenancy => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
37             has UserData => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
38             has Volumes => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
39             }
40              
41             1;