File Coverage

blib/lib/Cfn/Resource/AWS/EC2/SecurityGroupEgress.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 1     1   753 use Moose::Util::TypeConstraints;
  1         4  
  1         15  
2              
3             coerce 'Cfn::Resource::Properties::AWS::EC2::SecurityGroupEgress',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::EC2::SecurityGroupEgress->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::EC2::SecurityGroupEgress {
8 1     1   2395 use Moose;
  1         3  
  1         9  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::SecurityGroupEgress', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::EC2::SecurityGroupEgress {
14 1     1   7563 use Moose;
  1         3  
  1         5  
15 1     1   6989 use MooseX::StrictConstructor;
  1         3  
  1         9  
16             extends 'Cfn::Resource::Properties';
17             has CidrIp => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
18             has DestinationSecurityGroupId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
19             has FromPort => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
20             has GroupId => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
21             has IpProtocol => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
22             has ToPort => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
23             }
24              
25             1;