File Coverage

blib/lib/Cfn/Resource/AWS/IoTEvents/DetectorModel.pm
Criterion Covered Total %
statement 164 164 100.0
branch n/a
condition n/a
subroutine 56 56 100.0
pod 0 2 0.0
total 220 222 99.1


line stmt bran cond sub pod time code
1             # AWS::IoTEvents::DetectorModel generated from spec 18.4.0
2 1     1   810 use Moose::Util::TypeConstraints;
  1         4  
  1         13  
3              
4             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::IoTEvents::DetectorModel {
9 1     1   2323 use Moose;
  1         3  
  1         11  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1192 [ 'ap-northeast-1','ap-northeast-2','ap-southeast-1','ap-southeast-2','eu-central-1','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::IoTEvents::DetectorModel::AssetPropertyVariant',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyVariant',
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::IoTEvents::DetectorModel::AssetPropertyVariant->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyVariant {
37 1     1   7670 use Moose;
  1         7  
  1         6  
38 1     1   6913 use MooseX::StrictConstructor;
  1         3  
  1         13  
39             extends 'Cfn::Value::TypedValue';
40            
41             has BooleanValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has DoubleValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has IntegerValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             has StringValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45             }
46              
47             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp',
48             as 'Cfn::Value';
49              
50             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp',
51             from 'HashRef',
52             via {
53             if (my $f = Cfn::TypeLibrary::try_function($_)) {
54             return $f
55             } else {
56             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp->new( %$_ );
57             }
58             };
59              
60             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp {
61 1     1   3798 use Moose;
  1         3  
  1         5  
62 1     1   6796 use MooseX::StrictConstructor;
  1         3  
  1         5  
63             extends 'Cfn::Value::TypedValue';
64            
65             has OffsetInNanos => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has TimeInSeconds => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             }
68              
69             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload',
70             as 'Cfn::Value';
71              
72             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload',
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::IoTEvents::DetectorModel::Payload->new( %$_ );
79             }
80             };
81              
82             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Payload {
83 1     1   3481 use Moose;
  1         7  
  1         6  
84 1     1   6674 use MooseX::StrictConstructor;
  1         2  
  1         7  
85             extends 'Cfn::Value::TypedValue';
86            
87             has ContentExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             }
90              
91             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyValue',
92             as 'Cfn::Value';
93              
94             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyValue',
95             from 'HashRef',
96             via {
97             if (my $f = Cfn::TypeLibrary::try_function($_)) {
98             return $f
99             } else {
100             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyValue->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyValue {
105 1     1   3491 use Moose;
  1         5  
  1         5  
106 1     1   6815 use MooseX::StrictConstructor;
  1         3  
  1         6  
107             extends 'Cfn::Value::TypedValue';
108            
109             has Quality => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has Timestamp => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             has Value => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyVariant', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             }
113              
114             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sqs',
115             as 'Cfn::Value';
116              
117             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sqs',
118             from 'HashRef',
119             via {
120             if (my $f = Cfn::TypeLibrary::try_function($_)) {
121             return $f
122             } else {
123             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Sqs->new( %$_ );
124             }
125             };
126              
127             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Sqs {
128 1     1   3600 use Moose;
  1         5  
  1         8  
129 1     1   6935 use MooseX::StrictConstructor;
  1         6  
  1         7  
130             extends 'Cfn::Value::TypedValue';
131            
132             has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133             has QueueUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134             has UseBase64 => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135             }
136              
137             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sns',
138             as 'Cfn::Value';
139              
140             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sns',
141             from 'HashRef',
142             via {
143             if (my $f = Cfn::TypeLibrary::try_function($_)) {
144             return $f
145             } else {
146             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Sns->new( %$_ );
147             }
148             };
149              
150             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Sns {
151 1     1   3452 use Moose;
  1         3  
  1         6  
152 1     1   7019 use MooseX::StrictConstructor;
  1         3  
  1         8  
153             extends 'Cfn::Value::TypedValue';
154            
155             has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
156             has TargetArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157             }
158              
159             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetVariable',
160             as 'Cfn::Value';
161              
162             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetVariable',
163             from 'HashRef',
164             via {
165             if (my $f = Cfn::TypeLibrary::try_function($_)) {
166             return $f
167             } else {
168             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::SetVariable->new( %$_ );
169             }
170             };
171              
172             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::SetVariable {
173 1     1   3572 use Moose;
  1         3  
  1         7  
174 1     1   6856 use MooseX::StrictConstructor;
  1         3  
  1         8  
175             extends 'Cfn::Value::TypedValue';
176            
177             has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
178             has VariableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179             }
180              
181             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetTimer',
182             as 'Cfn::Value';
183              
184             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetTimer',
185             from 'HashRef',
186             via {
187             if (my $f = Cfn::TypeLibrary::try_function($_)) {
188             return $f
189             } else {
190             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::SetTimer->new( %$_ );
191             }
192             };
193              
194             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::SetTimer {
195 1     1   3529 use Moose;
  1         12  
  1         9  
196 1     1   6648 use MooseX::StrictConstructor;
  1         6  
  1         7  
197             extends 'Cfn::Value::TypedValue';
198            
199             has DurationExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
200             has Seconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201             has TimerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202             }
203              
204             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ResetTimer',
205             as 'Cfn::Value';
206              
207             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ResetTimer',
208             from 'HashRef',
209             via {
210             if (my $f = Cfn::TypeLibrary::try_function($_)) {
211             return $f
212             } else {
213             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::ResetTimer->new( %$_ );
214             }
215             };
216              
217             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::ResetTimer {
218 1     1   3608 use Moose;
  1         6  
  1         6  
219 1     1   6681 use MooseX::StrictConstructor;
  1         4  
  1         7  
220             extends 'Cfn::Value::TypedValue';
221            
222             has TimerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
223             }
224              
225             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Lambda',
226             as 'Cfn::Value';
227              
228             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Lambda',
229             from 'HashRef',
230             via {
231             if (my $f = Cfn::TypeLibrary::try_function($_)) {
232             return $f
233             } else {
234             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Lambda->new( %$_ );
235             }
236             };
237              
238             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Lambda {
239 1     1   3505 use Moose;
  1         6  
  1         5  
240 1     1   7124 use MooseX::StrictConstructor;
  1         4  
  1         7  
241             extends 'Cfn::Value::TypedValue';
242            
243             has FunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
244             has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
245             }
246              
247             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotTopicPublish',
248             as 'Cfn::Value';
249              
250             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotTopicPublish',
251             from 'HashRef',
252             via {
253             if (my $f = Cfn::TypeLibrary::try_function($_)) {
254             return $f
255             } else {
256             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotTopicPublish->new( %$_ );
257             }
258             };
259              
260             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotTopicPublish {
261 1     1   3536 use Moose;
  1         3  
  1         6  
262 1     1   6860 use MooseX::StrictConstructor;
  1         3  
  1         7  
263             extends 'Cfn::Value::TypedValue';
264            
265             has MqttTopic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
266             has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
267             }
268              
269             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotSiteWise',
270             as 'Cfn::Value';
271              
272             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotSiteWise',
273             from 'HashRef',
274             via {
275             if (my $f = Cfn::TypeLibrary::try_function($_)) {
276             return $f
277             } else {
278             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotSiteWise->new( %$_ );
279             }
280             };
281              
282             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotSiteWise {
283 1     1   3520 use Moose;
  1         2  
  1         6  
284 1     1   7102 use MooseX::StrictConstructor;
  1         4  
  1         8  
285             extends 'Cfn::Value::TypedValue';
286            
287             has AssetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
288             has EntryId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
289             has PropertyAlias => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
290             has PropertyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
291             has PropertyValue => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
292             }
293              
294             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotEvents',
295             as 'Cfn::Value';
296              
297             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotEvents',
298             from 'HashRef',
299             via {
300             if (my $f = Cfn::TypeLibrary::try_function($_)) {
301             return $f
302             } else {
303             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotEvents->new( %$_ );
304             }
305             };
306              
307             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotEvents {
308 1     1   3627 use Moose;
  1         5  
  1         7  
309 1     1   6744 use MooseX::StrictConstructor;
  1         6  
  1         9  
310             extends 'Cfn::Value::TypedValue';
311            
312             has InputName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
313             has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
314             }
315              
316             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Firehose',
317             as 'Cfn::Value';
318              
319             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Firehose',
320             from 'HashRef',
321             via {
322             if (my $f = Cfn::TypeLibrary::try_function($_)) {
323             return $f
324             } else {
325             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Firehose->new( %$_ );
326             }
327             };
328              
329             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Firehose {
330 1     1   3382 use Moose;
  1         10  
  1         5  
331 1     1   6817 use MooseX::StrictConstructor;
  1         3  
  1         6  
332             extends 'Cfn::Value::TypedValue';
333            
334             has DeliveryStreamName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
335             has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
336             has Separator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
337             }
338              
339             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDBv2',
340             as 'Cfn::Value';
341              
342             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDBv2',
343             from 'HashRef',
344             via {
345             if (my $f = Cfn::TypeLibrary::try_function($_)) {
346             return $f
347             } else {
348             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DynamoDBv2->new( %$_ );
349             }
350             };
351              
352             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DynamoDBv2 {
353 1     1   3580 use Moose;
  1         3  
  1         7  
354 1     1   6790 use MooseX::StrictConstructor;
  1         4  
  1         6  
355             extends 'Cfn::Value::TypedValue';
356            
357             has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
358             has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
359             }
360              
361             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDB',
362             as 'Cfn::Value';
363              
364             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDB',
365             from 'HashRef',
366             via {
367             if (my $f = Cfn::TypeLibrary::try_function($_)) {
368             return $f
369             } else {
370             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DynamoDB->new( %$_ );
371             }
372             };
373              
374             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DynamoDB {
375 1     1   3494 use Moose;
  1         8  
  1         6  
376 1     1   6749 use MooseX::StrictConstructor;
  1         5  
  1         6  
377             extends 'Cfn::Value::TypedValue';
378            
379             has HashKeyField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
380             has HashKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
381             has HashKeyValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
382             has Operation => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
383             has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
384             has PayloadField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
385             has RangeKeyField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
386             has RangeKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
387             has RangeKeyValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
388             has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
389             }
390              
391             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ClearTimer',
392             as 'Cfn::Value';
393              
394             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ClearTimer',
395             from 'HashRef',
396             via {
397             if (my $f = Cfn::TypeLibrary::try_function($_)) {
398             return $f
399             } else {
400             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::ClearTimer->new( %$_ );
401             }
402             };
403              
404             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::ClearTimer {
405 1     1   3668 use Moose;
  1         5  
  1         6  
406 1     1   6700 use MooseX::StrictConstructor;
  1         5  
  1         9  
407             extends 'Cfn::Value::TypedValue';
408            
409             has TimerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
410             }
411             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action',
412             as 'Cfn::Value',
413             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
414             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
415              
416             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action',
417             from 'HashRef',
418             via {
419             if (my $f = Cfn::TypeLibrary::try_function($_)) {
420             return $f
421             } else {
422             die 'Only accepts functions';
423             }
424             },
425             from 'ArrayRef',
426             via {
427             Cfn::Value::Array->new(Value => [
428             map {
429             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action')->coerce($_)
430             } @$_
431             ]);
432             };
433              
434             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action',
435             as 'Cfn::Value';
436              
437             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action',
438             from 'HashRef',
439             via {
440             if (my $f = Cfn::TypeLibrary::try_function($_)) {
441             return $f
442             } else {
443             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Action->new( %$_ );
444             }
445             };
446              
447             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Action {
448 1     1   3665 use Moose;
  1         8  
  1         8  
449 1     1   6732 use MooseX::StrictConstructor;
  1         3  
  1         5  
450             extends 'Cfn::Value::TypedValue';
451            
452             has ClearTimer => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ClearTimer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
453             has DynamoDB => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDB', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
454             has DynamoDBv2 => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDBv2', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
455             has Firehose => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Firehose', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
456             has IotEvents => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotEvents', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
457             has IotSiteWise => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotSiteWise', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
458             has IotTopicPublish => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotTopicPublish', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
459             has Lambda => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Lambda', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
460             has ResetTimer => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ResetTimer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
461             has SetTimer => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetTimer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
462             has SetVariable => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
463             has Sns => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sns', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
464             has Sqs => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sqs', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
465             }
466             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent',
467             as 'Cfn::Value',
468             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
469             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
470              
471             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent',
472             from 'HashRef',
473             via {
474             if (my $f = Cfn::TypeLibrary::try_function($_)) {
475             return $f
476             } else {
477             die 'Only accepts functions';
478             }
479             },
480             from 'ArrayRef',
481             via {
482             Cfn::Value::Array->new(Value => [
483             map {
484             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent')->coerce($_)
485             } @$_
486             ]);
487             };
488              
489             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent',
490             as 'Cfn::Value';
491              
492             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent',
493             from 'HashRef',
494             via {
495             if (my $f = Cfn::TypeLibrary::try_function($_)) {
496             return $f
497             } else {
498             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::TransitionEvent->new( %$_ );
499             }
500             };
501              
502             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::TransitionEvent {
503 1     1   3896 use Moose;
  1         7  
  1         6  
504 1     1   6645 use MooseX::StrictConstructor;
  1         4  
  1         6  
505             extends 'Cfn::Value::TypedValue';
506            
507             has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
508             has Condition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
509             has EventName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
510             has NextState => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
511             }
512             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event',
513             as 'Cfn::Value',
514             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
515             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
516              
517             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event',
518             from 'HashRef',
519             via {
520             if (my $f = Cfn::TypeLibrary::try_function($_)) {
521             return $f
522             } else {
523             die 'Only accepts functions';
524             }
525             },
526             from 'ArrayRef',
527             via {
528             Cfn::Value::Array->new(Value => [
529             map {
530             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event')->coerce($_)
531             } @$_
532             ]);
533             };
534              
535             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event',
536             as 'Cfn::Value';
537              
538             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event',
539             from 'HashRef',
540             via {
541             if (my $f = Cfn::TypeLibrary::try_function($_)) {
542             return $f
543             } else {
544             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Event->new( %$_ );
545             }
546             };
547              
548             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Event {
549 1     1   3738 use Moose;
  1         6  
  1         6  
550 1     1   6885 use MooseX::StrictConstructor;
  1         2  
  1         14  
551             extends 'Cfn::Value::TypedValue';
552            
553             has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
554             has Condition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
555             has EventName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
556             }
557              
558             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnInput',
559             as 'Cfn::Value';
560              
561             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnInput',
562             from 'HashRef',
563             via {
564             if (my $f = Cfn::TypeLibrary::try_function($_)) {
565             return $f
566             } else {
567             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnInput->new( %$_ );
568             }
569             };
570              
571             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnInput {
572 1     1   3387 use Moose;
  1         6  
  1         5  
573 1     1   6690 use MooseX::StrictConstructor;
  1         3  
  1         6  
574             extends 'Cfn::Value::TypedValue';
575            
576             has Events => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
577             has TransitionEvents => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
578             }
579              
580             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnExit',
581             as 'Cfn::Value';
582              
583             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnExit',
584             from 'HashRef',
585             via {
586             if (my $f = Cfn::TypeLibrary::try_function($_)) {
587             return $f
588             } else {
589             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnExit->new( %$_ );
590             }
591             };
592              
593             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnExit {
594 1     1   3542 use Moose;
  1         5  
  1         5  
595 1     1   7243 use MooseX::StrictConstructor;
  1         5  
  1         6  
596             extends 'Cfn::Value::TypedValue';
597            
598             has Events => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
599             }
600              
601             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnEnter',
602             as 'Cfn::Value';
603              
604             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnEnter',
605             from 'HashRef',
606             via {
607             if (my $f = Cfn::TypeLibrary::try_function($_)) {
608             return $f
609             } else {
610             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnEnter->new( %$_ );
611             }
612             };
613              
614             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnEnter {
615 1     1   3387 use Moose;
  1         3  
  1         6  
616 1     1   6620 use MooseX::StrictConstructor;
  1         11  
  1         7  
617             extends 'Cfn::Value::TypedValue';
618            
619             has Events => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
620             }
621             subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State',
622             as 'Cfn::Value',
623             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
624             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
625              
626             coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State',
627             from 'HashRef',
628             via {
629             if (my $f = Cfn::TypeLibrary::try_function($_)) {
630             return $f
631             } else {
632             die 'Only accepts functions';
633             }
634             },
635             from 'ArrayRef',
636             via {
637             Cfn::Value::Array->new(Value => [
638             map {
639             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State')->coerce($_)
640             } @$_
641             ]);
642             };
643              
644             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State',
645             as 'Cfn::Value';
646              
647             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State',
648             from 'HashRef',
649             via {
650             if (my $f = Cfn::TypeLibrary::try_function($_)) {
651             return $f
652             } else {
653             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::State->new( %$_ );
654             }
655             };
656              
657             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::State {
658 1     1   3650 use Moose;
  1         5  
  1         8  
659 1     1   6691 use MooseX::StrictConstructor;
  1         3  
  1         6  
660             extends 'Cfn::Value::TypedValue';
661            
662             has OnEnter => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnEnter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
663             has OnExit => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnExit', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
664             has OnInput => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnInput', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
665             has StateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
666             }
667              
668             subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DetectorModelDefinition',
669             as 'Cfn::Value';
670              
671             coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DetectorModelDefinition',
672             from 'HashRef',
673             via {
674             if (my $f = Cfn::TypeLibrary::try_function($_)) {
675             return $f
676             } else {
677             return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DetectorModelDefinition->new( %$_ );
678             }
679             };
680              
681             package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DetectorModelDefinition {
682 1     1   3504 use Moose;
  1         3  
  1         7  
683 1     1   6626 use MooseX::StrictConstructor;
  1         4  
  1         6  
684             extends 'Cfn::Value::TypedValue';
685            
686             has InitialStateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
687             has States => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
688             }
689              
690             package Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel {
691 1     1   3321 use Moose;
  1         7  
  1         5  
692 1     1   6581 use MooseX::StrictConstructor;
  1         3  
  1         4  
693             extends 'Cfn::Resource::Properties';
694            
695             has DetectorModelDefinition => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DetectorModelDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
696             has DetectorModelDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
697             has DetectorModelName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
698             has EvaluationMethod => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
699             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
700             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
701             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
702             }
703              
704             1;
705             ### main pod documentation begin ###
706              
707             =encoding UTF-8
708              
709             =head1 NAME
710              
711             Cfn::Resource::AWS::IoTEvents::DetectorModel - Cfn resource for AWS::IoTEvents::DetectorModel
712              
713             =head1 DESCRIPTION
714              
715             This module implements a Perl module that represents the CloudFormation object AWS::IoTEvents::DetectorModel.
716              
717             See L<Cfn> for more information on how to use it.
718              
719             =head1 AUTHOR
720              
721             Jose Luis Martinez
722             CAPSiDE
723             jlmartinez@capside.com
724              
725             =head1 COPYRIGHT and LICENSE
726              
727             Copyright (c) 2013 by CAPSiDE
728             This code is distributed under the Apache 2 License. The full text of the
729             license can be found in the LICENSE file included with this module.
730              
731             =cut