File Coverage

blib/lib/Cfn/Resource/AWS/EC2/VPCGatewayAttachment.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   1282 use Moose::Util::TypeConstraints;
  2         6  
  2         24  
2              
3             coerce 'Cfn::Resource::Properties::AWS::EC2::VPCGatewayAttachment',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::EC2::VPCGatewayAttachment->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::EC2::VPCGatewayAttachment {
8 2     2   4490 use Moose;
  2         6  
  2         13  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::VPCGatewayAttachment', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::EC2::VPCGatewayAttachment {
14 2     2   14240 use Moose;
  2         6  
  2         12  
15 2     2   13315 use MooseX::StrictConstructor;
  2         6  
  2         20  
16             extends 'Cfn::Resource::Properties';
17             has InternetGatewayId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
18             has VpcId => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
19             has VpnGatewayId => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
20             }
21              
22             1;