File Coverage

blib/lib/Cfn/Resource/AWS/IoTAnalytics/Pipeline.pm
Criterion Covered Total %
statement 80 80 100.0
branch n/a
condition n/a
subroutine 28 28 100.0
pod 0 2 0.0
total 108 110 98.1


line stmt bran cond sub pod time code
1             # AWS::IoTAnalytics::Pipeline generated from spec 20.1.0
2 1     1   825 use Moose::Util::TypeConstraints;
  1         2  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::IoTAnalytics::Pipeline {
9 1     1   2369 use Moose;
  1         5  
  1         10  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1165 [ 'ap-northeast-1','ap-southeast-2','cn-north-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::Pipeline::SelectAttributes',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::SelectAttributes',
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::IoTAnalytics::Pipeline::SelectAttributes->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::SelectAttributes {
37 1     1   7477 use Moose;
  1         3  
  1         6  
38 1     1   6659 use MooseX::StrictConstructor;
  1         3  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Attributes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has Next => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             }
45              
46             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::RemoveAttributes',
47             as 'Cfn::Value';
48              
49             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::RemoveAttributes',
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::IoTAnalytics::Pipeline::RemoveAttributes->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::RemoveAttributes {
60 1     1   3778 use Moose;
  1         5  
  1         5  
61 1     1   6707 use MooseX::StrictConstructor;
  1         4  
  1         5  
62             extends 'Cfn::Value::TypedValue';
63            
64             has Attributes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has Next => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             }
68              
69             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Math',
70             as 'Cfn::Value';
71              
72             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Math',
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::IoTAnalytics::Pipeline::Math->new( %$_ );
79             }
80             };
81              
82             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Math {
83 1     1   3526 use Moose;
  1         3  
  1         6  
84 1     1   6717 use MooseX::StrictConstructor;
  1         3  
  1         5  
85             extends 'Cfn::Value::TypedValue';
86            
87             has Attribute => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has Math => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90             has Next => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91             }
92              
93             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Lambda',
94             as 'Cfn::Value';
95              
96             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Lambda',
97             from 'HashRef',
98             via {
99             if (my $f = Cfn::TypeLibrary::try_function($_)) {
100             return $f
101             } else {
102             return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Lambda->new( %$_ );
103             }
104             };
105              
106             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Lambda {
107 1     1   3389 use Moose;
  1         3  
  1         6  
108 1     1   6706 use MooseX::StrictConstructor;
  1         3  
  1         5  
109             extends 'Cfn::Value::TypedValue';
110            
111             has BatchSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             has LambdaName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114             has Next => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115             }
116              
117             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Filter',
118             as 'Cfn::Value';
119              
120             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Filter',
121             from 'HashRef',
122             via {
123             if (my $f = Cfn::TypeLibrary::try_function($_)) {
124             return $f
125             } else {
126             return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Filter->new( %$_ );
127             }
128             };
129              
130             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Filter {
131 1     1   3454 use Moose;
  1         3  
  1         5  
132 1     1   6683 use MooseX::StrictConstructor;
  1         3  
  1         6  
133             extends 'Cfn::Value::TypedValue';
134            
135             has Filter => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
136             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
137             has Next => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
138             }
139              
140             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::DeviceShadowEnrich',
141             as 'Cfn::Value';
142              
143             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::DeviceShadowEnrich',
144             from 'HashRef',
145             via {
146             if (my $f = Cfn::TypeLibrary::try_function($_)) {
147             return $f
148             } else {
149             return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::DeviceShadowEnrich->new( %$_ );
150             }
151             };
152              
153             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::DeviceShadowEnrich {
154 1     1   3492 use Moose;
  1         3  
  1         19  
155 1     1   7039 use MooseX::StrictConstructor;
  1         4  
  1         7  
156             extends 'Cfn::Value::TypedValue';
157            
158             has Attribute => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160             has Next => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162             has ThingName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
163             }
164              
165             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::DeviceRegistryEnrich',
166             as 'Cfn::Value';
167              
168             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::DeviceRegistryEnrich',
169             from 'HashRef',
170             via {
171             if (my $f = Cfn::TypeLibrary::try_function($_)) {
172             return $f
173             } else {
174             return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::DeviceRegistryEnrich->new( %$_ );
175             }
176             };
177              
178             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::DeviceRegistryEnrich {
179 1     1   3478 use Moose;
  1         8  
  1         15  
180 1     1   6665 use MooseX::StrictConstructor;
  1         2  
  1         8  
181             extends 'Cfn::Value::TypedValue';
182            
183             has Attribute => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
184             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
185             has Next => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
186             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
187             has ThingName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
188             }
189              
190             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Datastore',
191             as 'Cfn::Value';
192              
193             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Datastore',
194             from 'HashRef',
195             via {
196             if (my $f = Cfn::TypeLibrary::try_function($_)) {
197             return $f
198             } else {
199             return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Datastore->new( %$_ );
200             }
201             };
202              
203             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Datastore {
204 1     1   3500 use Moose;
  1         2  
  1         5  
205 1     1   6747 use MooseX::StrictConstructor;
  1         4  
  1         6  
206             extends 'Cfn::Value::TypedValue';
207            
208             has DatastoreName => (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 => 'Mutable');
210             }
211              
212             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Channel',
213             as 'Cfn::Value';
214              
215             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Channel',
216             from 'HashRef',
217             via {
218             if (my $f = Cfn::TypeLibrary::try_function($_)) {
219             return $f
220             } else {
221             return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Channel->new( %$_ );
222             }
223             };
224              
225             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Channel {
226 1     1   3454 use Moose;
  1         2  
  1         5  
227 1     1   6694 use MooseX::StrictConstructor;
  1         8  
  1         5  
228             extends 'Cfn::Value::TypedValue';
229            
230             has ChannelName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
231             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
232             has Next => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
233             }
234              
235             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::AddAttributes',
236             as 'Cfn::Value';
237              
238             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::AddAttributes',
239             from 'HashRef',
240             via {
241             if (my $f = Cfn::TypeLibrary::try_function($_)) {
242             return $f
243             } else {
244             return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::AddAttributes->new( %$_ );
245             }
246             };
247              
248             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::AddAttributes {
249 1     1   3442 use Moose;
  1         3  
  1         6  
250 1     1   6769 use MooseX::StrictConstructor;
  1         6  
  1         6  
251             extends 'Cfn::Value::TypedValue';
252            
253             has Attributes => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
254             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
255             has Next => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
256             }
257             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Activity',
258             as 'Cfn::Value',
259             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
260             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
261              
262             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Activity',
263             from 'HashRef',
264             via {
265             if (my $f = Cfn::TypeLibrary::try_function($_)) {
266             return $f
267             } else {
268             die 'Only accepts functions';
269             }
270             },
271             from 'ArrayRef',
272             via {
273             Cfn::Value::Array->new(Value => [
274             map {
275             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Activity')->coerce($_)
276             } @$_
277             ]);
278             };
279              
280             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Activity',
281             as 'Cfn::Value';
282              
283             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Activity',
284             from 'HashRef',
285             via {
286             if (my $f = Cfn::TypeLibrary::try_function($_)) {
287             return $f
288             } else {
289             return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Activity->new( %$_ );
290             }
291             };
292              
293             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Pipeline::Activity {
294 1     1   3606 use Moose;
  1         3  
  1         6  
295 1     1   6740 use MooseX::StrictConstructor;
  1         3  
  1         5  
296             extends 'Cfn::Value::TypedValue';
297            
298             has AddAttributes => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::AddAttributes', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
299             has Channel => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Channel', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
300             has Datastore => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Datastore', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
301             has DeviceRegistryEnrich => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::DeviceRegistryEnrich', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
302             has DeviceShadowEnrich => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::DeviceShadowEnrich', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
303             has Filter => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Filter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
304             has Lambda => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Lambda', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
305             has Math => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Math', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
306             has RemoveAttributes => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::RemoveAttributes', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
307             has SelectAttributes => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::SelectAttributes', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
308             }
309              
310             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline {
311 1     1   3438 use Moose;
  1         11  
  1         6  
312 1     1   6992 use MooseX::StrictConstructor;
  1         4  
  1         5  
313             extends 'Cfn::Resource::Properties';
314            
315             has PipelineActivities => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::Activity', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
316             has PipelineName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
317             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
318             }
319              
320             1;
321             ### main pod documentation begin ###
322              
323             =encoding UTF-8
324              
325             =head1 NAME
326              
327             Cfn::Resource::AWS::IoTAnalytics::Pipeline - Cfn resource for AWS::IoTAnalytics::Pipeline
328              
329             =head1 DESCRIPTION
330              
331             This module implements a Perl module that represents the CloudFormation object AWS::IoTAnalytics::Pipeline.
332              
333             See L<Cfn> for more information on how to use it.
334              
335             =head1 AUTHOR
336              
337             Jose Luis Martinez
338             CAPSiDE
339             jlmartinez@capside.com
340              
341             =head1 COPYRIGHT and LICENSE
342              
343             Copyright (c) 2013 by CAPSiDE
344             This code is distributed under the Apache 2 License. The full text of the
345             license can be found in the LICENSE file included with this module.
346              
347             =cut