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 2.25.0
2 1     1   784 use Moose::Util::TypeConstraints;
  1         3  
  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   2228 use Moose;
  1         2  
  1         8  
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 1087 [ '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::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::AWS::IoTAnalytics::Pipeline::SelectAttributesValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::SelectAttributesValue {
37 1     1   7177 use Moose;
  1         2  
  1         7  
38 1     1   6552 use MooseX::StrictConstructor;
  1         2  
  1         11  
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::AWS::IoTAnalytics::Pipeline::RemoveAttributesValue->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::RemoveAttributesValue {
60 1     1   3875 use Moose;
  1         3  
  1         5  
61 1     1   6475 use MooseX::StrictConstructor;
  1         2  
  1         4  
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::AWS::IoTAnalytics::Pipeline::MathValue->new( %$_ );
79             }
80             };
81              
82             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::MathValue {
83 1     1   3360 use Moose;
  1         3  
  1         6  
84 1     1   6494 use MooseX::StrictConstructor;
  1         3  
  1         6  
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::AWS::IoTAnalytics::Pipeline::LambdaValue->new( %$_ );
103             }
104             };
105              
106             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::LambdaValue {
107 1     1   3400 use Moose;
  1         2  
  1         6  
108 1     1   6640 use MooseX::StrictConstructor;
  1         3  
  1         6  
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::AWS::IoTAnalytics::Pipeline::FilterValue->new( %$_ );
127             }
128             };
129              
130             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::FilterValue {
131 1     1   3438 use Moose;
  1         3  
  1         5  
132 1     1   6544 use MooseX::StrictConstructor;
  1         4  
  1         5  
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::AWS::IoTAnalytics::Pipeline::DeviceShadowEnrichValue->new( %$_ );
150             }
151             };
152              
153             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::DeviceShadowEnrichValue {
154 1     1   3317 use Moose;
  1         4  
  1         6  
155 1     1   6794 use MooseX::StrictConstructor;
  1         3  
  1         6  
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::AWS::IoTAnalytics::Pipeline::DeviceRegistryEnrichValue->new( %$_ );
175             }
176             };
177              
178             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::DeviceRegistryEnrichValue {
179 1     1   3400 use Moose;
  1         2  
  1         5  
180 1     1   6532 use MooseX::StrictConstructor;
  1         2  
  1         6  
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::AWS::IoTAnalytics::Pipeline::DatastoreValue->new( %$_ );
200             }
201             };
202              
203             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::DatastoreValue {
204 1     1   3365 use Moose;
  1         2  
  1         5  
205 1     1   6511 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::AWS::IoTAnalytics::Pipeline::ChannelValue->new( %$_ );
222             }
223             };
224              
225             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::ChannelValue {
226 1     1   3322 use Moose;
  1         3  
  1         5  
227 1     1   6453 use MooseX::StrictConstructor;
  1         2  
  1         6  
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::AWS::IoTAnalytics::Pipeline::AddAttributesValue->new( %$_ );
245             }
246             };
247              
248             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::AddAttributesValue {
249 1     1   3364 use Moose;
  1         3  
  1         4  
250 1     1   6478 use MooseX::StrictConstructor;
  1         2  
  1         7  
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::AWS::IoTAnalytics::Pipeline::ActivityValue->new( %$_ );
290             }
291             };
292              
293             package Cfn::Resource::Properties::AWS::IoTAnalytics::Pipeline::ActivityValue {
294 1     1   3509 use Moose;
  1         3  
  1         5  
295 1     1   6704 use MooseX::StrictConstructor;
  1         2  
  1         7  
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   3345 use Moose;
  1         5  
  1         6  
312 1     1   6472 use MooseX::StrictConstructor;
  1         4  
  1         6  
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;