File Coverage

blib/lib/Cfn/Resource/AWS/EC2/SecurityGroup.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 3     3   1781 use Moose::Util::TypeConstraints;
  3         8  
  3         30  
2              
3             coerce 'Cfn::Resource::Properties::AWS::EC2::SecurityGroup',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::EC2::SecurityGroup->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::EC2::SecurityGroup {
8 3     3   6438 use Moose;
  3         9  
  3         24  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::SecurityGroup', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::EC2::SecurityGroup {
14 3     3   18872 use Moose;
  3         7  
  3         16  
15 3     3   20460 use MooseX::StrictConstructor;
  3         6  
  3         25  
16             extends 'Cfn::Resource::Properties';
17             has GroupDescription => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
18             has SecurityGroupEgress => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
19             has SecurityGroupIngress => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1);
20             has VpcId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
21             has Tags => (isa => 'Cfn::Value::Array|Cfn::Value::Function', is => 'rw', coerce => 1)
22             }
23              
24             1;