File Coverage

blib/lib/Cfn/Resource/AWS/Serverless/Api.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 2 0.0
total 21 23 91.3


line stmt bran cond sub pod time code
1 1     1   676 use Moose::Util::TypeConstraints;
  1         4  
  1         10  
2              
3             coerce 'Cfn::Resource::Properties::AWS::Serverless::Api',
4             from 'HashRef',
5             via { Cfn::Resource::Properties::AWS::Serverless::Api->new(%$_) };
6              
7             package Cfn::Resource::AWS::Serverless::Api {
8 1     1   2277 use Moose;
  1         4  
  1         7  
9             extends 'Cfn::Resource';
10             has Properties => ( isa => 'Cfn::Resource::Properties::AWS::Serverless::Api', is => 'rw', coerce => 1 );
11              
12             sub supported_regions {
13 1     1 0 1107 require Cfn::Resource::AWS::Lambda::Function;
14 1         9 Cfn::Resource::AWS::Lambda::Function->supported_regions;
15             }
16              
17             sub AttributeList {
18 1     1 0 4 []
19             }
20             }
21              
22             package Cfn::Resource::Properties::AWS::Serverless::Api {
23 1     1   7338 use Moose;
  1         3  
  1         5  
24 1     1   6467 use MooseX::StrictConstructor;
  1         3  
  1         10  
25             extends 'Cfn::Resource::Properties';
26              
27             has Name => ( isa => 'Cfn::Value::String', is => 'rw', coerce => 1 );
28             has StageName => ( isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1 );
29             has DefinitionUri => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 );
30             has DefinitionBody => ( isa => 'Cfn::Value::Json', is => 'rw', coerce => 1 );
31             has CacheClusterEnabled => ( isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1 );
32             has CacheClusterSize => ( isa => 'Cfn::Value::String', is => 'rw', coerce => 1 );
33             has Variables => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 );
34             has MethodSettings => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 );
35             has EndpointConfiguration => ( isa => 'Cfn::Value::String', is => 'rw', coerce => 1 );
36             has BinaryMediaTypes => ( isa => 'Cfn::Value::ArrayOfPrimitives', is => 'rw', coerce => 1 );
37             has Cors => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 );
38             has Auth => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 );
39             has MinimumCompressionSize => ( isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1 );
40             has AccessLogSetting => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 );
41             has CanarySetting => ( isa => 'Cfn::Value', is => 'rw', coerce => 1 );
42             has TracingEnabled => ( isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1 );
43             }
44              
45             1;