File Coverage

blib/lib/Cfn/Resource/AWS/EC2/VPNConnection.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   1407 use Moose::Util::TypeConstraints;
  2         4  
  2         42  
2              
3             coerce 'Cfn::Resource::Properties::AWS::EC2::VPNConnection',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::EC2::VPNConnection->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::EC2::VPNConnection {
8 2     2   4998 use Moose;
  2         6  
  2         21  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::VPNConnection', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::EC2::VPNConnection {
14 2     2   15588 use Moose;
  2         7  
  2         9  
15 2     2   13232 use MooseX::StrictConstructor;
  2         6  
  2         18  
16             extends 'Cfn::Resource::Properties';
17             has Type => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
18             has CustomerGatewayId => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
19             has VpnGatewayId => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
20             has StaticRoutesOnly => (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;