File Coverage

blib/lib/Cfn/Resource/AWS/IoTAnalytics/Dataset.pm
Criterion Covered Total %
statement 128 128 100.0
branch n/a
condition n/a
subroutine 44 44 100.0
pod 0 2 0.0
total 172 174 98.8


line stmt bran cond sub pod time code
1             # AWS::IoTAnalytics::Dataset generated from spec 3.4.0
2 1     1   785 use Moose::Util::TypeConstraints;
  1         4  
  1         13  
3              
4             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::IoTAnalytics::Dataset {
9 1     1   2181 use Moose;
  1         4  
  1         10  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1075 [ 'ap-northeast-1','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::IoTAnalytics::Dataset::OutputFileUriValue',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::OutputFileUriValue',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::OutputFileUriValueValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::OutputFileUriValueValue {
37 1     1   7216 use Moose;
  1         3  
  1         6  
38 1     1   7018 use MooseX::StrictConstructor;
  1         3  
  1         11  
39             extends 'Cfn::Value::TypedValue';
40            
41             has FileName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             }
43              
44             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::GlueConfiguration',
45             as 'Cfn::Value';
46              
47             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::GlueConfiguration',
48             from 'HashRef',
49             via {
50             if (my $f = Cfn::TypeLibrary::try_function($_)) {
51             return $f
52             } else {
53             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::GlueConfigurationValue->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::GlueConfigurationValue {
58 1     1   3634 use Moose;
  1         3  
  1         5  
59 1     1   6596 use MooseX::StrictConstructor;
  1         4  
  1         5  
60             extends 'Cfn::Value::TypedValue';
61            
62             has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63             has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             }
65              
66             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DeltaTime',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DeltaTime',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DeltaTimeValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DeltaTimeValue {
80 1     1   3330 use Moose;
  1         4  
  1         5  
81 1     1   6579 use MooseX::StrictConstructor;
  1         2  
  1         6  
82             extends 'Cfn::Value::TypedValue';
83            
84             has OffsetSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has TimeExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             }
87              
88             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentVersionValue',
89             as 'Cfn::Value';
90              
91             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentVersionValue',
92             from 'HashRef',
93             via {
94             if (my $f = Cfn::TypeLibrary::try_function($_)) {
95             return $f
96             } else {
97             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentVersionValueValue->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentVersionValueValue {
102 1     1   3418 use Moose;
  1         3  
  1         5  
103 1     1   7007 use MooseX::StrictConstructor;
  1         2  
  1         6  
104             extends 'Cfn::Value::TypedValue';
105            
106             has DatasetName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107             }
108             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Variable',
109             as 'Cfn::Value',
110             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
111             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
112              
113             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Variable',
114             from 'HashRef',
115             via {
116             if (my $f = Cfn::TypeLibrary::try_function($_)) {
117             return $f
118             } else {
119             die 'Only accepts functions';
120             }
121             },
122             from 'ArrayRef',
123             via {
124             Cfn::Value::Array->new(Value => [
125             map {
126             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Variable')->coerce($_)
127             } @$_
128             ]);
129             };
130              
131             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Variable',
132             as 'Cfn::Value';
133              
134             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Variable',
135             from 'HashRef',
136             via {
137             if (my $f = Cfn::TypeLibrary::try_function($_)) {
138             return $f
139             } else {
140             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::VariableValue->new( %$_ );
141             }
142             };
143              
144             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::VariableValue {
145 1     1   3711 use Moose;
  1         3  
  1         16  
146 1     1   6781 use MooseX::StrictConstructor;
  1         2  
  1         7  
147             extends 'Cfn::Value::TypedValue';
148            
149             has DatasetContentVersionValue => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentVersionValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
150             has DoubleValue => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151             has OutputFileUriValue => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::OutputFileUriValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152             has StringValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153             has VariableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
154             }
155              
156             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::S3DestinationConfiguration',
157             as 'Cfn::Value';
158              
159             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::S3DestinationConfiguration',
160             from 'HashRef',
161             via {
162             if (my $f = Cfn::TypeLibrary::try_function($_)) {
163             return $f
164             } else {
165             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::S3DestinationConfigurationValue->new( %$_ );
166             }
167             };
168              
169             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::S3DestinationConfigurationValue {
170 1     1   3555 use Moose;
  1         4  
  1         5  
171 1     1   6702 use MooseX::StrictConstructor;
  1         2  
  1         4  
172             extends 'Cfn::Value::TypedValue';
173            
174             has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175             has GlueConfiguration => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::GlueConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
176             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
177             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178             }
179              
180             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ResourceConfiguration',
181             as 'Cfn::Value';
182              
183             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ResourceConfiguration',
184             from 'HashRef',
185             via {
186             if (my $f = Cfn::TypeLibrary::try_function($_)) {
187             return $f
188             } else {
189             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ResourceConfigurationValue->new( %$_ );
190             }
191             };
192              
193             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ResourceConfigurationValue {
194 1     1   3509 use Moose;
  1         2  
  1         6  
195 1     1   6605 use MooseX::StrictConstructor;
  1         3  
  1         6  
196             extends 'Cfn::Value::TypedValue';
197            
198             has ComputeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
199             has VolumeSizeInGB => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200             }
201              
202             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::IotEventsDestinationConfiguration',
203             as 'Cfn::Value';
204              
205             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::IotEventsDestinationConfiguration',
206             from 'HashRef',
207             via {
208             if (my $f = Cfn::TypeLibrary::try_function($_)) {
209             return $f
210             } else {
211             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::IotEventsDestinationConfigurationValue->new( %$_ );
212             }
213             };
214              
215             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::IotEventsDestinationConfigurationValue {
216 1     1   3858 use Moose;
  1         4  
  1         6  
217 1     1   7421 use MooseX::StrictConstructor;
  1         3  
  1         5  
218             extends 'Cfn::Value::TypedValue';
219            
220             has InputName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
221             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
222             }
223             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Filter',
224             as 'Cfn::Value',
225             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
226             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
227              
228             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Filter',
229             from 'HashRef',
230             via {
231             if (my $f = Cfn::TypeLibrary::try_function($_)) {
232             return $f
233             } else {
234             die 'Only accepts functions';
235             }
236             },
237             from 'ArrayRef',
238             via {
239             Cfn::Value::Array->new(Value => [
240             map {
241             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Filter')->coerce($_)
242             } @$_
243             ]);
244             };
245              
246             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Filter',
247             as 'Cfn::Value';
248              
249             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Filter',
250             from 'HashRef',
251             via {
252             if (my $f = Cfn::TypeLibrary::try_function($_)) {
253             return $f
254             } else {
255             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::FilterValue->new( %$_ );
256             }
257             };
258              
259             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::FilterValue {
260 1     1   3773 use Moose;
  1         12  
  1         7  
261 1     1   6693 use MooseX::StrictConstructor;
  1         3  
  1         6  
262             extends 'Cfn::Value::TypedValue';
263            
264             has DeltaTime => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DeltaTime', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
265             }
266              
267             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::TriggeringDataset',
268             as 'Cfn::Value';
269              
270             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::TriggeringDataset',
271             from 'HashRef',
272             via {
273             if (my $f = Cfn::TypeLibrary::try_function($_)) {
274             return $f
275             } else {
276             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::TriggeringDatasetValue->new( %$_ );
277             }
278             };
279              
280             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::TriggeringDatasetValue {
281 1     1   3405 use Moose;
  1         4  
  1         6  
282 1     1   6615 use MooseX::StrictConstructor;
  1         3  
  1         6  
283             extends 'Cfn::Value::TypedValue';
284            
285             has DatasetName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
286             }
287              
288             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Schedule',
289             as 'Cfn::Value';
290              
291             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Schedule',
292             from 'HashRef',
293             via {
294             if (my $f = Cfn::TypeLibrary::try_function($_)) {
295             return $f
296             } else {
297             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ScheduleValue->new( %$_ );
298             }
299             };
300              
301             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ScheduleValue {
302 1     1   3369 use Moose;
  1         3  
  1         6  
303 1     1   7537 use MooseX::StrictConstructor;
  1         3  
  1         7  
304             extends 'Cfn::Value::TypedValue';
305            
306             has ScheduleExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
307             }
308              
309             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::QueryAction',
310             as 'Cfn::Value';
311              
312             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::QueryAction',
313             from 'HashRef',
314             via {
315             if (my $f = Cfn::TypeLibrary::try_function($_)) {
316             return $f
317             } else {
318             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::QueryActionValue->new( %$_ );
319             }
320             };
321              
322             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::QueryActionValue {
323 1     1   3575 use Moose;
  1         4  
  1         6  
324 1     1   6736 use MooseX::StrictConstructor;
  1         2  
  1         6  
325             extends 'Cfn::Value::TypedValue';
326            
327             has Filters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Filter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
328             has SqlQuery => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
329             }
330              
331             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRuleDestination',
332             as 'Cfn::Value';
333              
334             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRuleDestination',
335             from 'HashRef',
336             via {
337             if (my $f = Cfn::TypeLibrary::try_function($_)) {
338             return $f
339             } else {
340             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRuleDestinationValue->new( %$_ );
341             }
342             };
343              
344             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRuleDestinationValue {
345 1     1   3280 use Moose;
  1         4  
  1         7  
346 1     1   6795 use MooseX::StrictConstructor;
  1         3  
  1         5  
347             extends 'Cfn::Value::TypedValue';
348            
349             has IotEventsDestinationConfiguration => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::IotEventsDestinationConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
350             has S3DestinationConfiguration => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::S3DestinationConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
351             }
352              
353             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ContainerAction',
354             as 'Cfn::Value';
355              
356             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ContainerAction',
357             from 'HashRef',
358             via {
359             if (my $f = Cfn::TypeLibrary::try_function($_)) {
360             return $f
361             } else {
362             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ContainerActionValue->new( %$_ );
363             }
364             };
365              
366             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ContainerActionValue {
367 1     1   3338 use Moose;
  1         2  
  1         6  
368 1     1   6466 use MooseX::StrictConstructor;
  1         3  
  1         7  
369             extends 'Cfn::Value::TypedValue';
370            
371             has ExecutionRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
372             has Image => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
373             has ResourceConfiguration => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ResourceConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
374             has Variables => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Variable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
375             }
376              
377             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::VersioningConfiguration',
378             as 'Cfn::Value';
379              
380             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::VersioningConfiguration',
381             from 'HashRef',
382             via {
383             if (my $f = Cfn::TypeLibrary::try_function($_)) {
384             return $f
385             } else {
386             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::VersioningConfigurationValue->new( %$_ );
387             }
388             };
389              
390             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::VersioningConfigurationValue {
391 1     1   3306 use Moose;
  1         3  
  1         5  
392 1     1   6527 use MooseX::StrictConstructor;
  1         3  
  1         5  
393             extends 'Cfn::Value::TypedValue';
394            
395             has MaxVersions => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
396             has Unlimited => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
397             }
398             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Trigger',
399             as 'Cfn::Value',
400             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
401             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
402              
403             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Trigger',
404             from 'HashRef',
405             via {
406             if (my $f = Cfn::TypeLibrary::try_function($_)) {
407             return $f
408             } else {
409             die 'Only accepts functions';
410             }
411             },
412             from 'ArrayRef',
413             via {
414             Cfn::Value::Array->new(Value => [
415             map {
416             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Trigger')->coerce($_)
417             } @$_
418             ]);
419             };
420              
421             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Trigger',
422             as 'Cfn::Value';
423              
424             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Trigger',
425             from 'HashRef',
426             via {
427             if (my $f = Cfn::TypeLibrary::try_function($_)) {
428             return $f
429             } else {
430             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::TriggerValue->new( %$_ );
431             }
432             };
433              
434             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::TriggerValue {
435 1     1   3638 use Moose;
  1         3  
  1         5  
436 1     1   6468 use MooseX::StrictConstructor;
  1         3  
  1         6  
437             extends 'Cfn::Value::TypedValue';
438            
439             has Schedule => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Schedule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
440             has TriggeringDataset => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::TriggeringDataset', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
441             }
442              
443             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::RetentionPeriod',
444             as 'Cfn::Value';
445              
446             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::RetentionPeriod',
447             from 'HashRef',
448             via {
449             if (my $f = Cfn::TypeLibrary::try_function($_)) {
450             return $f
451             } else {
452             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::RetentionPeriodValue->new( %$_ );
453             }
454             };
455              
456             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::RetentionPeriodValue {
457 1     1   3339 use Moose;
  1         3  
  1         6  
458 1     1   6474 use MooseX::StrictConstructor;
  1         4  
  1         6  
459             extends 'Cfn::Value::TypedValue';
460            
461             has NumberOfDays => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
462             has Unlimited => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
463             }
464             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRule',
465             as 'Cfn::Value',
466             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
467             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
468              
469             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRule',
470             from 'HashRef',
471             via {
472             if (my $f = Cfn::TypeLibrary::try_function($_)) {
473             return $f
474             } else {
475             die 'Only accepts functions';
476             }
477             },
478             from 'ArrayRef',
479             via {
480             Cfn::Value::Array->new(Value => [
481             map {
482             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRule')->coerce($_)
483             } @$_
484             ]);
485             };
486              
487             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRule',
488             as 'Cfn::Value';
489              
490             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRule',
491             from 'HashRef',
492             via {
493             if (my $f = Cfn::TypeLibrary::try_function($_)) {
494             return $f
495             } else {
496             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRuleValue->new( %$_ );
497             }
498             };
499              
500             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRuleValue {
501 1     1   3468 use Moose;
  1         2  
  1         7  
502 1     1   6475 use MooseX::StrictConstructor;
  1         2  
  1         6  
503             extends 'Cfn::Value::TypedValue';
504            
505             has Destination => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRuleDestination', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
506             has EntryName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
507             }
508             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Action',
509             as 'Cfn::Value',
510             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
511             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
512              
513             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Action',
514             from 'HashRef',
515             via {
516             if (my $f = Cfn::TypeLibrary::try_function($_)) {
517             return $f
518             } else {
519             die 'Only accepts functions';
520             }
521             },
522             from 'ArrayRef',
523             via {
524             Cfn::Value::Array->new(Value => [
525             map {
526             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Action')->coerce($_)
527             } @$_
528             ]);
529             };
530              
531             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Action',
532             as 'Cfn::Value';
533              
534             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Action',
535             from 'HashRef',
536             via {
537             if (my $f = Cfn::TypeLibrary::try_function($_)) {
538             return $f
539             } else {
540             return Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ActionValue->new( %$_ );
541             }
542             };
543              
544             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ActionValue {
545 1     1   3649 use Moose;
  1         3  
  1         5  
546 1     1   6492 use MooseX::StrictConstructor;
  1         3  
  1         5  
547             extends 'Cfn::Value::TypedValue';
548            
549             has ActionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
550             has ContainerAction => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::ContainerAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
551             has QueryAction => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::QueryAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
552             }
553              
554             package Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset {
555 1     1   3293 use Moose;
  1         3  
  1         5  
556 1     1   6515 use MooseX::StrictConstructor;
  1         4  
  1         4  
557             extends 'Cfn::Resource::Properties';
558            
559             has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Action', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
560             has ContentDeliveryRules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::DatasetContentDeliveryRule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
561             has DatasetName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
562             has RetentionPeriod => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::RetentionPeriod', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
563             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
564             has Triggers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Dataset::Trigger', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
565             has VersioningConfiguration => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Dataset::VersioningConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
566             }
567              
568             1;