File Coverage

blib/lib/Cfn/Resource/AWS/Athena/NamedQuery.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 0 2 0.0
total 20 22 90.9


line stmt bran cond sub pod time code
1             # AWS::Athena::NamedQuery generated from spec 11.1.0
2 3     3   1788 use Moose::Util::TypeConstraints;
  3         7  
  3         32  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Athena::NamedQuery',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Athena::NamedQuery->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Athena::NamedQuery {
9 3     3   6008 use Moose;
  3         8  
  3         21  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Athena::NamedQuery', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1015 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22              
23             package Cfn::Resource::Properties::AWS::Athena::NamedQuery {
24 3     3   19347 use Moose;
  3         8  
  3         11  
25 3     3   17053 use MooseX::StrictConstructor;
  3         7  
  3         25  
26             extends 'Cfn::Resource::Properties';
27            
28             has Database => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
29             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
30             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
31             has QueryString => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
32             }
33              
34             1;