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 18.4.0
2 1     1   778 use Moose::Util::TypeConstraints;
  1         3  
  1         12  
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   2244 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 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1227 [ '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::Object::AWS::KinesisAnalytics::Application::JSONMappingParameters->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::JSONMappingParameters {
37 1     1   7484 use Moose;
  1         3  
  1         6  
38 1     1   6794 use MooseX::StrictConstructor;
  1         3  
  1         10  
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::Object::AWS::KinesisAnalytics::Application::CSVMappingParameters->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::CSVMappingParameters {
58 1     1   3759 use Moose;
  1         3  
  1         7  
59 1     1   6892 use MooseX::StrictConstructor;
  1         5  
  1         6  
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::Object::AWS::KinesisAnalytics::Application::MappingParameters->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::MappingParameters {
80 1     1   3442 use Moose;
  1         5  
  1         6  
81 1     1   6726 use MooseX::StrictConstructor;
  1         3  
  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::Object::AWS::KinesisAnalytics::Application::RecordFormat->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::RecordFormat {
102 1     1   3515 use Moose;
  1         3  
  1         16  
103 1     1   7140 use MooseX::StrictConstructor;
  1         4  
  1         6  
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::Object::AWS::KinesisAnalytics::Application::RecordColumn->new( %$_ );
142             }
143             };
144              
145             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::RecordColumn {
146 1     1   3669 use Moose;
  1         3  
  1         7  
147 1     1   6649 use MooseX::StrictConstructor;
  1         3  
  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::Object::AWS::KinesisAnalytics::Application::InputLambdaProcessor->new( %$_ );
165             }
166             };
167              
168             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::InputLambdaProcessor {
169 1     1   3423 use Moose;
  1         3  
  1         8  
170 1     1   6683 use MooseX::StrictConstructor;
  1         2  
  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::Object::AWS::KinesisAnalytics::Application::KinesisStreamsInput->new( %$_ );
187             }
188             };
189              
190             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::KinesisStreamsInput {
191 1     1   3397 use Moose;
  1         4  
  1         8  
192 1     1   6615 use MooseX::StrictConstructor;
  1         3  
  1         6  
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::Object::AWS::KinesisAnalytics::Application::KinesisFirehoseInput->new( %$_ );
209             }
210             };
211              
212             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::KinesisFirehoseInput {
213 1     1   3501 use Moose;
  1         3  
  1         5  
214 1     1   6655 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::Object::AWS::KinesisAnalytics::Application::InputSchema->new( %$_ );
231             }
232             };
233              
234             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::InputSchema {
235 1     1   3457 use Moose;
  1         4  
  1         6  
236 1     1   6931 use MooseX::StrictConstructor;
  1         3  
  1         6  
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::Object::AWS::KinesisAnalytics::Application::InputProcessingConfiguration->new( %$_ );
254             }
255             };
256              
257             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::InputProcessingConfiguration {
258 1     1   3461 use Moose;
  1         4  
  1         8  
259 1     1   6714 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::Object::AWS::KinesisAnalytics::Application::InputParallelism->new( %$_ );
275             }
276             };
277              
278             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::InputParallelism {
279 1     1   3415 use Moose;
  1         3  
  1         6  
280 1     1   6699 use MooseX::StrictConstructor;
  1         13  
  1         5  
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::Object::AWS::KinesisAnalytics::Application::Input->new( %$_ );
318             }
319             };
320              
321             package Cfn::Resource::Properties::Object::AWS::KinesisAnalytics::Application::Input {
322 1     1   3603 use Moose;
  1         2  
  1         7  
323 1     1   6680 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   3430 use Moose;
  1         3  
  1         5  
336 1     1   6653 use MooseX::StrictConstructor;
  1         4  
  1         4  
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;
346             ### main pod documentation begin ###
347              
348             =encoding UTF-8
349              
350             =head1 NAME
351              
352             Cfn::Resource::AWS::KinesisAnalytics::Application - Cfn resource for AWS::KinesisAnalytics::Application
353              
354             =head1 DESCRIPTION
355              
356             This module implements a Perl module that represents the CloudFormation object AWS::KinesisAnalytics::Application.
357              
358             See L<Cfn> for more information on how to use it.
359              
360             =head1 AUTHOR
361              
362             Jose Luis Martinez
363             CAPSiDE
364             jlmartinez@capside.com
365              
366             =head1 COPYRIGHT and LICENSE
367              
368             Copyright (c) 2013 by CAPSiDE
369             This code is distributed under the Apache 2 License. The full text of the
370             license can be found in the LICENSE file included with this module.
371              
372             =cut