Cfn/Resource/AWS/Glue/Partition.pm untested

filter: Statementstmt 0.0% 0 / 220 Branchbran 0.0% 0 / 20 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 22 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 274 CC 1 SCAR 6.9
CC
1
Cov
0%
AttributeList
2.0
supported_regions
2.0
BEGIN
2.0
CRAP 2.0
1 # AWS::Glue::Partition generated from spec 22.0.0
2 use Moose::Util::TypeConstraints;
3  
4 coerce 'Cfn::Resource::Properties::AWS::Glue::Partition',
5 from 'HashRef',
6 via { Cfn::Resource::Properties::AWS::Glue::Partition->new( %$_ ) };
7  
8 package Cfn::Resource::AWS::Glue::Partition {
9 use Moose;
10 extends 'Cfn::Resource';
11 has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 [ ]
15 }
16 sub supported_regions {
17 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','us-east-1','us-east-2','us-west-1','us-west-2' ]
18 }
19 }
20  
21  
22  
23 subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::SchemaId',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::SchemaId',
27 from 'HashRef',
28 via {
29 if (my $f = Cfn::TypeLibrary::try_function($_)) {
30 return $f
31 } else {
32 return Cfn::Resource::Properties::Object::AWS::Glue::Partition::SchemaId->new( %$_ );
33 }
34 };
35  
36 package Cfn::Resource::Properties::Object::AWS::Glue::Partition::SchemaId {
37 use Moose;
38 use MooseX::StrictConstructor;
39 extends 'Cfn::Value::TypedValue';
40
41 has RegistryName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 has SchemaArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 has SchemaName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 }
45  
46 subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::SkewedInfo',
47 as 'Cfn::Value';
48  
49 coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::SkewedInfo',
50 from 'HashRef',
51 via {
52 if (my $f = Cfn::TypeLibrary::try_function($_)) {
53 return $f
54 } else {
55 return Cfn::Resource::Properties::Object::AWS::Glue::Partition::SkewedInfo->new( %$_ );
56 }
57 };
58  
59 package Cfn::Resource::Properties::Object::AWS::Glue::Partition::SkewedInfo {
60 use Moose;
61 use MooseX::StrictConstructor;
62 extends 'Cfn::Value::TypedValue';
63
64 has SkewedColumnNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65 has SkewedColumnValueLocationMaps => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66 has SkewedColumnValues => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 }
68  
69 subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::SerdeInfo',
70 as 'Cfn::Value';
71  
72 coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::SerdeInfo',
73 from 'HashRef',
74 via {
75 if (my $f = Cfn::TypeLibrary::try_function($_)) {
76 return $f
77 } else {
78 return Cfn::Resource::Properties::Object::AWS::Glue::Partition::SerdeInfo->new( %$_ );
79 }
80 };
81  
82 package Cfn::Resource::Properties::Object::AWS::Glue::Partition::SerdeInfo {
83 use Moose;
84 use MooseX::StrictConstructor;
85 extends 'Cfn::Value::TypedValue';
86
87 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88 has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89 has SerializationLibrary => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90 }
91  
92 subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::SchemaReference',
93 as 'Cfn::Value';
94  
95 coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::SchemaReference',
96 from 'HashRef',
97 via {
98 if (my $f = Cfn::TypeLibrary::try_function($_)) {
99 return $f
100 } else {
101 return Cfn::Resource::Properties::Object::AWS::Glue::Partition::SchemaReference->new( %$_ );
102 }
103 };
104  
105 package Cfn::Resource::Properties::Object::AWS::Glue::Partition::SchemaReference {
106 use Moose;
107 use MooseX::StrictConstructor;
108 extends 'Cfn::Value::TypedValue';
109
110 has SchameVersionId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111 has SchemaId => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::SchemaId', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112 has SchemaVersionNumber => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113 }
114 subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Order',
115 as 'Cfn::Value',
116 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
117 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
118  
119 coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Order',
120 from 'HashRef',
121 via {
122 if (my $f = Cfn::TypeLibrary::try_function($_)) {
123 return $f
124 } else {
125 die 'Only accepts functions';
126 }
127 },
128 from 'ArrayRef',
129 via {
130 Cfn::Value::Array->new(Value => [
131 map {
132 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Partition::Order')->coerce($_)
133 } @$_
134 ]);
135 };
136  
137 subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::Order',
138 as 'Cfn::Value';
139  
140 coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::Order',
141 from 'HashRef',
142 via {
143 if (my $f = Cfn::TypeLibrary::try_function($_)) {
144 return $f
145 } else {
146 return Cfn::Resource::Properties::Object::AWS::Glue::Partition::Order->new( %$_ );
147 }
148 };
149  
150 package Cfn::Resource::Properties::Object::AWS::Glue::Partition::Order {
151 use Moose;
152 use MooseX::StrictConstructor;
153 extends 'Cfn::Value::TypedValue';
154
155 has Column => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156 has SortOrder => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157 }
158 subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Column',
159 as 'Cfn::Value',
160 where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
161 message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
162  
163 coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Column',
164 from 'HashRef',
165 via {
166 if (my $f = Cfn::TypeLibrary::try_function($_)) {
167 return $f
168 } else {
169 die 'Only accepts functions';
170 }
171 },
172 from 'ArrayRef',
173 via {
174 Cfn::Value::Array->new(Value => [
175 map {
176 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Partition::Column')->coerce($_)
177 } @$_
178 ]);
179 };
180  
181 subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::Column',
182 as 'Cfn::Value';
183  
184 coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::Column',
185 from 'HashRef',
186 via {
187 if (my $f = Cfn::TypeLibrary::try_function($_)) {
188 return $f
189 } else {
190 return Cfn::Resource::Properties::Object::AWS::Glue::Partition::Column->new( %$_ );
191 }
192 };
193  
194 package Cfn::Resource::Properties::Object::AWS::Glue::Partition::Column {
195 use Moose;
196 use MooseX::StrictConstructor;
197 extends 'Cfn::Value::TypedValue';
198
199 has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200 has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201 has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202 }
203  
204 subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::StorageDescriptor',
205 as 'Cfn::Value';
206  
207 coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::StorageDescriptor',
208 from 'HashRef',
209 via {
210 if (my $f = Cfn::TypeLibrary::try_function($_)) {
211 return $f
212 } else {
213 return Cfn::Resource::Properties::Object::AWS::Glue::Partition::StorageDescriptor->new( %$_ );
214 }
215 };
216  
217 package Cfn::Resource::Properties::Object::AWS::Glue::Partition::StorageDescriptor {
218 use Moose;
219 use MooseX::StrictConstructor;
220 extends 'Cfn::Value::TypedValue';
221
222 has BucketColumns => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
223 has Columns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Column', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
224 has Compressed => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
225 has InputFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
226 has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
227 has NumberOfBuckets => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
228 has OutputFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
229 has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
230 has SchemaReference => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::SchemaReference', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231 has SerdeInfo => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::SerdeInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232 has SkewedInfo => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::SkewedInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
233 has SortColumns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Order', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
234 has StoredAsSubDirectories => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
235 }
236  
237 subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::PartitionInput',
238 as 'Cfn::Value';
239  
240 coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::PartitionInput',
241 from 'HashRef',
242 via {
243 if (my $f = Cfn::TypeLibrary::try_function($_)) {
244 return $f
245 } else {
246 return Cfn::Resource::Properties::Object::AWS::Glue::Partition::PartitionInput->new( %$_ );
247 }
248 };
249  
250 package Cfn::Resource::Properties::Object::AWS::Glue::Partition::PartitionInput {
251 use Moose;
252 use MooseX::StrictConstructor;
253 extends 'Cfn::Value::TypedValue';
254
255 has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
256 has StorageDescriptor => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::StorageDescriptor', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
257 has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
258 }
259  
260 package Cfn::Resource::Properties::AWS::Glue::Partition {
261 use Moose;
262 use MooseX::StrictConstructor;
263 extends 'Cfn::Resource::Properties';
264
265 has CatalogId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
266 has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
267 has PartitionInput => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::PartitionInput', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
268 has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
269 }
270  
271 1;
272 ### main pod documentation begin ###
273  
274 =encoding UTF-8
275  
276 =head1 NAME
277  
278 Cfn::Resource::AWS::Glue::Partition - Cfn resource for AWS::Glue::Partition
279  
280 =head1 DESCRIPTION
281  
282 This module implements a Perl module that represents the CloudFormation object AWS::Glue::Partition.
283  
284 See L<Cfn> for more information on how to use it.
285  
286 =head1 AUTHOR
287  
288 Jose Luis Martinez
289 CAPSiDE
290 jlmartinez@capside.com
291  
292 =head1 COPYRIGHT and LICENSE
293  
294 Copyright (c) 2013 by CAPSiDE
295 This code is distributed under the Apache 2 License. The full text of the
296 license can be found in the LICENSE file included with this module.
297  
298 =cut