File Coverage

blib/lib/Cfn/Resource/AWS/EC2/Route.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   1305 use Moose::Util::TypeConstraints;
  2         6  
  2         20  
2              
3             coerce 'Cfn::Resource::Properties::AWS::EC2::Route',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::EC2::Route->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::EC2::Route {
8 2     2   4446 use Moose;
  2         5  
  2         12  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::Route', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::EC2::Route {
14 2     2   14554 use Moose;
  2         6  
  2         10  
15 2     2   13166 use MooseX::StrictConstructor;
  2         7  
  2         25  
16             extends 'Cfn::Resource::Properties';
17             has DestinationCidrBlock => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
18             has DestinationIpv6CidrBlock => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
19             has GatewayId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
20             has InstanceId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
21             has NatGatewayId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
22             has NetworkInterfaceId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
23             has RouteTableId => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
24             has VpcPeeringConnectionId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
25             }
26              
27             1;