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 2.25.0
2 3     3   1975 use Moose::Util::TypeConstraints;
  3         6  
  3         31  
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   6781 use Moose;
  3         7  
  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 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1026 [ 'ap-northeast-1','ap-southeast-1','ap-southeast-2','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   21557 use Moose;
  3         7  
  3         14  
25 3     3   19443 use MooseX::StrictConstructor;
  3         9  
  3         31  
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;