File Coverage

blib/lib/Cfn/Resource/AWS/KinesisAnalytics/Application.pm
Criterion Covered Total %
statement 86 86 100.0
branch n/a
condition n/a
subroutine 30 30 100.0
pod 0 2 0.0
total 116 118 98.3


line stmt bran cond sub pod time code
1             # AWS::KinesisAnalytics::Application generated from spec 3.2.0
2 1     1   728 use Moose::Util::TypeConstraints;
  1         3  
  1         10  
3              
4             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::KinesisAnalytics::Application->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::KinesisAnalytics::Application {
9 1     1   2189 use Moose;
  1         3  
  1         7  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1126 [ 'ap-northeast-1','ap-northeast-2','ap-southeast-1','ap-southeast-2','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::JSONMappingParameters',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::JSONMappingParameters',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::JSONMappingParametersValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::JSONMappingParametersValue {
37 1     1   6982 use Moose;
  1         4  
  1         5  
38 1     1   6610 use MooseX::StrictConstructor;
  1         4  
  1         13  
39             extends 'Cfn::Value::TypedValue';
40            
41             has RecordRowPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             }
43              
44             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::CSVMappingParameters',
45             as 'Cfn::Value';
46              
47             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::CSVMappingParameters',
48             from 'HashRef',
49             via {
50             if (my $f = Cfn::TypeLibrary::try_function($_)) {
51             return $f
52             } else {
53             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::CSVMappingParametersValue->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::CSVMappingParametersValue {
58 1     1   3488 use Moose;
  1         3  
  1         5  
59 1     1   6652 use MooseX::StrictConstructor;
  1         3  
  1         7  
60             extends 'Cfn::Value::TypedValue';
61            
62             has RecordColumnDelimiter => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63             has RecordRowDelimiter => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             }
65              
66             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::MappingParameters',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::MappingParameters',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::MappingParametersValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::MappingParametersValue {
80 1     1   3373 use Moose;
  1         4  
  1         5  
81 1     1   6561 use MooseX::StrictConstructor;
  1         4  
  1         5  
82             extends 'Cfn::Value::TypedValue';
83            
84             has CSVMappingParameters => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::CSVMappingParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has JSONMappingParameters => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::JSONMappingParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             }
87              
88             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordFormat',
89             as 'Cfn::Value';
90              
91             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordFormat',
92             from 'HashRef',
93             via {
94             if (my $f = Cfn::TypeLibrary::try_function($_)) {
95             return $f
96             } else {
97             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordFormatValue->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordFormatValue {
102 1     1   3385 use Moose;
  1         3  
  1         5  
103 1     1   6787 use MooseX::StrictConstructor;
  1         4  
  1         9  
104             extends 'Cfn::Value::TypedValue';
105            
106             has MappingParameters => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::MappingParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107             has RecordFormatType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             }
109             subtype 'ArrayOfCfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordColumn',
110             as 'Cfn::Value',
111             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
112             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
113              
114             coerce 'ArrayOfCfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordColumn',
115             from 'HashRef',
116             via {
117             if (my $f = Cfn::TypeLibrary::try_function($_)) {
118             return $f
119             } else {
120             die 'Only accepts functions';
121             }
122             },
123             from 'ArrayRef',
124             via {
125             Cfn::Value::Array->new(Value => [
126             map {
127             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordColumn')->coerce($_)
128             } @$_
129             ]);
130             };
131              
132             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordColumn',
133             as 'Cfn::Value';
134              
135             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordColumn',
136             from 'HashRef',
137             via {
138             if (my $f = Cfn::TypeLibrary::try_function($_)) {
139             return $f
140             } else {
141             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordColumnValue->new( %$_ );
142             }
143             };
144              
145             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordColumnValue {
146 1     1   3691 use Moose;
  1         3  
  1         14  
147 1     1   6652 use MooseX::StrictConstructor;
  1         4  
  1         5  
148             extends 'Cfn::Value::TypedValue';
149            
150             has Mapping => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
151             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
152             has SqlType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
153             }
154              
155             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputLambdaProcessor',
156             as 'Cfn::Value';
157              
158             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputLambdaProcessor',
159             from 'HashRef',
160             via {
161             if (my $f = Cfn::TypeLibrary::try_function($_)) {
162             return $f
163             } else {
164             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputLambdaProcessorValue->new( %$_ );
165             }
166             };
167              
168             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputLambdaProcessorValue {
169 1     1   3393 use Moose;
  1         3  
  1         6  
170 1     1   6689 use MooseX::StrictConstructor;
  1         3  
  1         6  
171             extends 'Cfn::Value::TypedValue';
172            
173             has ResourceARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
174             has RoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
175             }
176              
177             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisStreamsInput',
178             as 'Cfn::Value';
179              
180             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisStreamsInput',
181             from 'HashRef',
182             via {
183             if (my $f = Cfn::TypeLibrary::try_function($_)) {
184             return $f
185             } else {
186             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisStreamsInputValue->new( %$_ );
187             }
188             };
189              
190             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisStreamsInputValue {
191 1     1   3375 use Moose;
  1         3  
  1         6  
192 1     1   6873 use MooseX::StrictConstructor;
  1         4  
  1         7  
193             extends 'Cfn::Value::TypedValue';
194            
195             has ResourceARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
196             has RoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
197             }
198              
199             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisFirehoseInput',
200             as 'Cfn::Value';
201              
202             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisFirehoseInput',
203             from 'HashRef',
204             via {
205             if (my $f = Cfn::TypeLibrary::try_function($_)) {
206             return $f
207             } else {
208             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisFirehoseInputValue->new( %$_ );
209             }
210             };
211              
212             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisFirehoseInputValue {
213 1     1   3879 use Moose;
  1         5  
  1         8  
214 1     1   7587 use MooseX::StrictConstructor;
  1         3  
  1         7  
215             extends 'Cfn::Value::TypedValue';
216            
217             has ResourceARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
218             has RoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
219             }
220              
221             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputSchema',
222             as 'Cfn::Value';
223              
224             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputSchema',
225             from 'HashRef',
226             via {
227             if (my $f = Cfn::TypeLibrary::try_function($_)) {
228             return $f
229             } else {
230             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputSchemaValue->new( %$_ );
231             }
232             };
233              
234             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputSchemaValue {
235 1     1   3558 use Moose;
  1         3  
  1         7  
236 1     1   6538 use MooseX::StrictConstructor;
  1         3  
  1         5  
237             extends 'Cfn::Value::TypedValue';
238            
239             has RecordColumns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordColumn', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
240             has RecordEncoding => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
241             has RecordFormat => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::RecordFormat', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
242             }
243              
244             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputProcessingConfiguration',
245             as 'Cfn::Value';
246              
247             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputProcessingConfiguration',
248             from 'HashRef',
249             via {
250             if (my $f = Cfn::TypeLibrary::try_function($_)) {
251             return $f
252             } else {
253             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputProcessingConfigurationValue->new( %$_ );
254             }
255             };
256              
257             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputProcessingConfigurationValue {
258 1     1   3354 use Moose;
  1         4  
  1         6  
259 1     1   6560 use MooseX::StrictConstructor;
  1         3  
  1         7  
260             extends 'Cfn::Value::TypedValue';
261            
262             has InputLambdaProcessor => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputLambdaProcessor', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
263             }
264              
265             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputParallelism',
266             as 'Cfn::Value';
267              
268             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputParallelism',
269             from 'HashRef',
270             via {
271             if (my $f = Cfn::TypeLibrary::try_function($_)) {
272             return $f
273             } else {
274             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputParallelismValue->new( %$_ );
275             }
276             };
277              
278             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputParallelismValue {
279 1     1   3352 use Moose;
  1         3  
  1         7  
280 1     1   6571 use MooseX::StrictConstructor;
  1         3  
  1         6  
281             extends 'Cfn::Value::TypedValue';
282            
283             has Count => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
284             }
285             subtype 'ArrayOfCfn::Resource::Properties::AWS::KinesisAnalytics::Application::Input',
286             as 'Cfn::Value',
287             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
288             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
289              
290             coerce 'ArrayOfCfn::Resource::Properties::AWS::KinesisAnalytics::Application::Input',
291             from 'HashRef',
292             via {
293             if (my $f = Cfn::TypeLibrary::try_function($_)) {
294             return $f
295             } else {
296             die 'Only accepts functions';
297             }
298             },
299             from 'ArrayRef',
300             via {
301             Cfn::Value::Array->new(Value => [
302             map {
303             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::Input')->coerce($_)
304             } @$_
305             ]);
306             };
307              
308             subtype 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::Input',
309             as 'Cfn::Value';
310              
311             coerce 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::Input',
312             from 'HashRef',
313             via {
314             if (my $f = Cfn::TypeLibrary::try_function($_)) {
315             return $f
316             } else {
317             return Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputValue->new( %$_ );
318             }
319             };
320              
321             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputValue {
322 1     1   3487 use Moose;
  1         2  
  1         5  
323 1     1   6686 use MooseX::StrictConstructor;
  1         3  
  1         6  
324             extends 'Cfn::Value::TypedValue';
325            
326             has InputParallelism => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputParallelism', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
327             has InputProcessingConfiguration => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputProcessingConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
328             has InputSchema => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::InputSchema', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
329             has KinesisFirehoseInput => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisFirehoseInput', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
330             has KinesisStreamsInput => (isa => 'Cfn::Resource::Properties::AWS::KinesisAnalytics::Application::KinesisStreamsInput', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
331             has NamePrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
332             }
333              
334             package Cfn::Resource::Properties::AWS::KinesisAnalytics::Application {
335 1     1   3304 use Moose;
  1         3  
  1         5  
336 1     1   6421 use MooseX::StrictConstructor;
  1         2  
  1         6  
337             extends 'Cfn::Resource::Properties';
338            
339             has ApplicationCode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
340             has ApplicationDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
341             has ApplicationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
342             has Inputs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::KinesisAnalytics::Application::Input', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
343             }
344              
345             1;