File Coverage

blib/lib/Cfn/Resource/AWS/LakeFormation/Permissions.pm
Criterion Covered Total %
statement 38 38 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 2 0.0
total 52 54 96.3


line stmt bran cond sub pod time code
1             # AWS::LakeFormation::Permissions generated from spec 5.3.0
2 1     1   680 use Moose::Util::TypeConstraints;
  1         3  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::LakeFormation::Permissions->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::LakeFormation::Permissions {
9 1     1   2215 use Moose;
  1         2  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1125 [ 'ap-northeast-1','eu-west-1','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::TableResource',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::TableResource',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::LakeFormation::Permissions::TableResourceValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::LakeFormation::Permissions::TableResourceValue {
37 1     1   7240 use Moose;
  1         3  
  1         6  
38 1     1   6568 use MooseX::StrictConstructor;
  1         2  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             }
44              
45             subtype 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DatabaseResource',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DatabaseResource',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DatabaseResourceValue->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DatabaseResourceValue {
59 1     1   3614 use Moose;
  1         3  
  1         6  
60 1     1   6570 use MooseX::StrictConstructor;
  1         4  
  1         5  
61             extends 'Cfn::Value::TypedValue';
62            
63             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             }
65              
66             subtype 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::Resource',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::Resource',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::AWS::LakeFormation::Permissions::ResourceValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::LakeFormation::Permissions::ResourceValue {
80 1     1   3336 use Moose;
  1         3  
  1         5  
81 1     1   6497 use MooseX::StrictConstructor;
  1         3  
  1         5  
82             extends 'Cfn::Value::TypedValue';
83            
84             has DatabaseResource => (isa => 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DatabaseResource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has TableResource => (isa => 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::TableResource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             }
87              
88             subtype 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DataLakePrincipal',
89             as 'Cfn::Value';
90              
91             coerce 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DataLakePrincipal',
92             from 'HashRef',
93             via {
94             if (my $f = Cfn::TypeLibrary::try_function($_)) {
95             return $f
96             } else {
97             return Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DataLakePrincipalValue->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DataLakePrincipalValue {
102 1     1   3357 use Moose;
  1         3  
  1         6  
103 1     1   6604 use MooseX::StrictConstructor;
  1         2  
  1         6  
104             extends 'Cfn::Value::TypedValue';
105            
106             has DataLakePrincipalIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107             }
108              
109             package Cfn::Resource::Properties::AWS::LakeFormation::Permissions {
110 1     1   3284 use Moose;
  1         3  
  1         6  
111 1     1   6584 use MooseX::StrictConstructor;
  1         3  
  1         5  
112             extends 'Cfn::Resource::Properties';
113            
114             has DataLakePrincipal => (isa => 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::DataLakePrincipal', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115             has Permissions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116             has PermissionsWithGrantOption => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117             has Resource => (isa => 'Cfn::Resource::Properties::AWS::LakeFormation::Permissions::Resource', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118             }
119              
120             1;