File Coverage

blib/lib/Cfn/Resource/AWS/Glue/Table.pm
Criterion Covered Total %
statement 50 50 100.0
branch n/a
condition n/a
subroutine 18 18 100.0
pod 0 2 0.0
total 68 70 97.1


line stmt bran cond sub pod time code
1             # AWS::Glue::Table generated from spec 2.25.0
2 1     1   857 use Moose::Util::TypeConstraints;
  1         3  
  1         10  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Glue::Table',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Glue::Table->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Glue::Table {
9 1     1   2143 use Moose;
  1         3  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1557 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','eu-central-1','eu-west-1','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::Glue::Table::SkewedInfo',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Glue::Table::SkewedInfo',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::Glue::Table::SkewedInfoValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Glue::Table::SkewedInfoValue {
37 1     1   7472 use Moose;
  1         2  
  1         6  
38 1     1   6483 use MooseX::StrictConstructor;
  1         3  
  1         11  
39             extends 'Cfn::Value::TypedValue';
40            
41             has SkewedColumnNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has SkewedColumnValueLocationMaps => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has SkewedColumnValues => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             }
45              
46             subtype 'Cfn::Resource::Properties::AWS::Glue::Table::SerdeInfo',
47             as 'Cfn::Value';
48              
49             coerce 'Cfn::Resource::Properties::AWS::Glue::Table::SerdeInfo',
50             from 'HashRef',
51             via {
52             if (my $f = Cfn::TypeLibrary::try_function($_)) {
53             return $f
54             } else {
55             return Cfn::Resource::Properties::AWS::Glue::Table::SerdeInfoValue->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::AWS::Glue::Table::SerdeInfoValue {
60 1     1   3598 use Moose;
  1         3  
  1         7  
61 1     1   6481 use MooseX::StrictConstructor;
  1         2  
  1         6  
62             extends 'Cfn::Value::TypedValue';
63            
64             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has SerializationLibrary => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             }
68             subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Order',
69             as 'Cfn::Value',
70             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
71             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
72              
73             coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Order',
74             from 'HashRef',
75             via {
76             if (my $f = Cfn::TypeLibrary::try_function($_)) {
77             return $f
78             } else {
79             die 'Only accepts functions';
80             }
81             },
82             from 'ArrayRef',
83             via {
84             Cfn::Value::Array->new(Value => [
85             map {
86             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Table::Order')->coerce($_)
87             } @$_
88             ]);
89             };
90              
91             subtype 'Cfn::Resource::Properties::AWS::Glue::Table::Order',
92             as 'Cfn::Value';
93              
94             coerce 'Cfn::Resource::Properties::AWS::Glue::Table::Order',
95             from 'HashRef',
96             via {
97             if (my $f = Cfn::TypeLibrary::try_function($_)) {
98             return $f
99             } else {
100             return Cfn::Resource::Properties::AWS::Glue::Table::OrderValue->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::AWS::Glue::Table::OrderValue {
105 1     1   3620 use Moose;
  1         4  
  1         5  
106 1     1   6578 use MooseX::StrictConstructor;
  1         4  
  1         6  
107             extends 'Cfn::Value::TypedValue';
108            
109             has Column => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has SortOrder => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             }
112             subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Column',
113             as 'Cfn::Value',
114             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
115             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
116              
117             coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Column',
118             from 'HashRef',
119             via {
120             if (my $f = Cfn::TypeLibrary::try_function($_)) {
121             return $f
122             } else {
123             die 'Only accepts functions';
124             }
125             },
126             from 'ArrayRef',
127             via {
128             Cfn::Value::Array->new(Value => [
129             map {
130             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Table::Column')->coerce($_)
131             } @$_
132             ]);
133             };
134              
135             subtype 'Cfn::Resource::Properties::AWS::Glue::Table::Column',
136             as 'Cfn::Value';
137              
138             coerce 'Cfn::Resource::Properties::AWS::Glue::Table::Column',
139             from 'HashRef',
140             via {
141             if (my $f = Cfn::TypeLibrary::try_function($_)) {
142             return $f
143             } else {
144             return Cfn::Resource::Properties::AWS::Glue::Table::ColumnValue->new( %$_ );
145             }
146             };
147              
148             package Cfn::Resource::Properties::AWS::Glue::Table::ColumnValue {
149 1     1   3573 use Moose;
  1         3  
  1         6  
150 1     1   6417 use MooseX::StrictConstructor;
  1         2  
  1         4  
151             extends 'Cfn::Value::TypedValue';
152            
153             has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
155             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156             }
157              
158             subtype 'Cfn::Resource::Properties::AWS::Glue::Table::StorageDescriptor',
159             as 'Cfn::Value';
160              
161             coerce 'Cfn::Resource::Properties::AWS::Glue::Table::StorageDescriptor',
162             from 'HashRef',
163             via {
164             if (my $f = Cfn::TypeLibrary::try_function($_)) {
165             return $f
166             } else {
167             return Cfn::Resource::Properties::AWS::Glue::Table::StorageDescriptorValue->new( %$_ );
168             }
169             };
170              
171             package Cfn::Resource::Properties::AWS::Glue::Table::StorageDescriptorValue {
172 1     1   3315 use Moose;
  1         2  
  1         7  
173 1     1   6537 use MooseX::StrictConstructor;
  1         3  
  1         6  
174             extends 'Cfn::Value::TypedValue';
175            
176             has BucketColumns => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177             has Columns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Column', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178             has Compressed => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179             has InputFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
180             has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
181             has NumberOfBuckets => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
182             has OutputFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
183             has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
184             has SerdeInfo => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::SerdeInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
185             has SkewedInfo => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::SkewedInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
186             has SortColumns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Order', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
187             has StoredAsSubDirectories => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
188             }
189              
190             subtype 'Cfn::Resource::Properties::AWS::Glue::Table::TableInput',
191             as 'Cfn::Value';
192              
193             coerce 'Cfn::Resource::Properties::AWS::Glue::Table::TableInput',
194             from 'HashRef',
195             via {
196             if (my $f = Cfn::TypeLibrary::try_function($_)) {
197             return $f
198             } else {
199             return Cfn::Resource::Properties::AWS::Glue::Table::TableInputValue->new( %$_ );
200             }
201             };
202              
203             package Cfn::Resource::Properties::AWS::Glue::Table::TableInputValue {
204 1     1   3687 use Moose;
  1         4  
  1         5  
205 1     1   6724 use MooseX::StrictConstructor;
  1         4  
  1         5  
206             extends 'Cfn::Value::TypedValue';
207            
208             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
209             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
210             has Owner => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
211             has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
212             has PartitionKeys => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Column', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
213             has Retention => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
214             has StorageDescriptor => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::StorageDescriptor', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
215             has TableType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
216             has ViewExpandedText => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
217             has ViewOriginalText => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218             }
219              
220             package Cfn::Resource::Properties::AWS::Glue::Table {
221 1     1   3341 use Moose;
  1         3  
  1         6  
222 1     1   6361 use MooseX::StrictConstructor;
  1         3  
  1         4  
223             extends 'Cfn::Resource::Properties';
224            
225             has CatalogId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
226             has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
227             has TableInput => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::TableInput', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228             }
229              
230             1;