File Coverage

blib/lib/Cfn/Resource/AWS/IAM/AccessKey.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   682 use Moose::Util::TypeConstraints;
  1         3  
  1         12  
2              
3             coerce 'Cfn::Resource::Properties::AWS::IAM::AccessKey',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::IAM::AccessKey->new( %$_ ) };
6              
7             package Cfn::Resource::AWS::IAM::AccessKey {
8 1     1   1983 use Moose;
  1         3  
  1         7  
9             extends 'Cfn::Resource';
10             has Properties => (isa => 'Cfn::Resource::Properties::AWS::IAM::AccessKey', is => 'rw', coerce => 1, required => 1);
11             }
12              
13             package Cfn::Resource::Properties::AWS::IAM::AccessKey {
14 1     1   4490 use Moose;
  1         2  
  1         4  
15 1     1   5738 use MooseX::StrictConstructor;
  1         3  
  1         10  
16             extends 'Cfn::Resource::Properties';
17             has Serial => (isa => 'Cfn::Value', is => 'rw', coerce => 1);
18             # TODO: Status has extra restrictions
19             has Status => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 0);
20             has UserName => (isa => 'Cfn::Value', is => 'rw', coerce => 1, required => 1);
21             }
22              
23             1;