blib/lib/Paws/IoTEvents/StartDetectorModelAnalysis.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IoTEvents::StartDetectorModelAnalysis;
3 use Moose;
4 has DetectorModelDefinition => (is => 'ro', isa => 'Paws::IoTEvents::DetectorModelDefinition', traits => ['NameInRequest'], request_name => 'detectorModelDefinition', required => 1);
5  
6 use MooseX::ClassAttribute;
7  
8 class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartDetectorModelAnalysis');
9 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/analysis/detector-models/');
10 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IoTEvents::StartDetectorModelAnalysisResponse');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::IoTEvents::StartDetectorModelAnalysis - Arguments for method StartDetectorModelAnalysis on L<Paws::IoTEvents>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method StartDetectorModelAnalysis on the
23 L<AWS IoT Events|Paws::IoTEvents> service. Use the attributes of this class
24 as arguments to method StartDetectorModelAnalysis.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartDetectorModelAnalysis.
27  
28 =head1 SYNOPSIS
29  
30 my $iotevents = Paws->service('IoTEvents');
31 my $StartDetectorModelAnalysisResponse =
32 $iotevents->StartDetectorModelAnalysis(
33 DetectorModelDefinition => {
34 InitialStateName => 'MyStateName', # min: 1, max: 128
35 States => [
36 {
37 StateName => 'MyStateName', # min: 1, max: 128
38 OnEnter => {
39 Events => [
40 {
41 EventName => 'MyEventName', # max: 128
42 Actions => [
43 {
44 ClearTimer => {
45 TimerName => 'MyTimerName', # min: 1, max: 128
46  
47 }, # OPTIONAL
48 DynamoDB => {
49 HashKeyField => 'MyDynamoKeyField',
50 HashKeyValue => 'MyDynamoKeyValue',
51 TableName => 'MyDynamoTableName',
52 HashKeyType => 'MyDynamoKeyType', # OPTIONAL
53 Operation => 'MyDynamoOperation', # OPTIONAL
54 Payload => {
55 ContentExpression => 'MyContentExpression', # min: 1
56 Type => 'STRING', # values: STRING, JSON
57  
58 }, # OPTIONAL
59 PayloadField => 'MyDynamoKeyField',
60 RangeKeyField => 'MyDynamoKeyField',
61 RangeKeyType => 'MyDynamoKeyType', # OPTIONAL
62 RangeKeyValue => 'MyDynamoKeyValue',
63 }, # OPTIONAL
64 DynamoDBv2 => {
65 TableName => 'MyDynamoTableName',
66 Payload => {
67 ContentExpression => 'MyContentExpression', # min: 1
68 Type => 'STRING', # values: STRING, JSON
69  
70 }, # OPTIONAL
71 }, # OPTIONAL
72 Firehose => {
73 DeliveryStreamName => 'MyDeliveryStreamName',
74 Payload => {
75 ContentExpression => 'MyContentExpression', # min: 1
76 Type => 'STRING', # values: STRING, JSON
77  
78 }, # OPTIONAL
79 Separator => 'MyFirehoseSeparator', # OPTIONAL
80 }, # OPTIONAL
81 IotEvents => {
82 InputName => 'MyInputName', # min: 1, max: 128
83 Payload => {
84 ContentExpression => 'MyContentExpression', # min: 1
85 Type => 'STRING', # values: STRING, JSON
86  
87 }, # OPTIONAL
88 }, # OPTIONAL
89 IotSiteWise => {
90 AssetId => 'MyAssetId', # OPTIONAL
91 EntryId => 'MyAssetPropertyEntryId', # OPTIONAL
92 PropertyAlias => 'MyAssetPropertyAlias', # OPTIONAL
93 PropertyId => 'MyAssetPropertyId', # OPTIONAL
94 PropertyValue => {
95 Quality => 'MyAssetPropertyQuality', # OPTIONAL
96 Timestamp => {
97 TimeInSeconds => 'MyAssetPropertyTimeInSeconds',
98 OffsetInNanos =>
99 'MyAssetPropertyOffsetInNanos', # OPTIONAL
100 }, # OPTIONAL
101 Value => {
102 BooleanValue =>
103 'MyAssetPropertyBooleanValue', # OPTIONAL
104 DoubleValue =>
105 'MyAssetPropertyDoubleValue', # OPTIONAL
106 IntegerValue =>
107 'MyAssetPropertyIntegerValue', # OPTIONAL
108 StringValue =>
109 'MyAssetPropertyStringValue', # OPTIONAL
110 }, # OPTIONAL
111 }, # OPTIONAL
112 }, # OPTIONAL
113 IotTopicPublish => {
114 MqttTopic => 'MyMQTTTopic', # min: 1, max: 128
115 Payload => {
116 ContentExpression => 'MyContentExpression', # min: 1
117 Type => 'STRING', # values: STRING, JSON
118  
119 }, # OPTIONAL
120 }, # OPTIONAL
121 Lambda => {
122 FunctionArn =>
123 'MyAmazonResourceName', # min: 1, max: 2048
124 Payload => {
125 ContentExpression => 'MyContentExpression', # min: 1
126 Type => 'STRING', # values: STRING, JSON
127  
128 }, # OPTIONAL
129 }, # OPTIONAL
130 ResetTimer => {
131 TimerName => 'MyTimerName', # min: 1, max: 128
132  
133 }, # OPTIONAL
134 SetTimer => {
135 TimerName => 'MyTimerName', # min: 1, max: 128
136 DurationExpression =>
137 'MyVariableValue', # min: 1, max: 1024; OPTIONAL
138 Seconds => 1, # min: 1, max: 31622400; OPTIONAL
139 }, # OPTIONAL
140 SetVariable => {
141 Value =>
142 'MyVariableValue', # min: 1, max: 1024; OPTIONAL
143 VariableName => 'MyVariableName', # min: 1, max: 128
144  
145 }, # OPTIONAL
146 Sns => {
147 TargetArn => 'MyAmazonResourceName', # min: 1, max: 2048
148 Payload => {
149 ContentExpression => 'MyContentExpression', # min: 1
150 Type => 'STRING', # values: STRING, JSON
151  
152 }, # OPTIONAL
153 }, # OPTIONAL
154 Sqs => {
155 QueueUrl => 'MyQueueUrl',
156 Payload => {
157 ContentExpression => 'MyContentExpression', # min: 1
158 Type => 'STRING', # values: STRING, JSON
159  
160 }, # OPTIONAL
161 UseBase64 => 1, # OPTIONAL
162 }, # OPTIONAL
163 },
164 ...
165 ], # OPTIONAL
166 Condition => 'MyCondition', # max: 512; OPTIONAL
167 },
168 ...
169 ], # OPTIONAL
170 }, # OPTIONAL
171 OnExit => {
172 Events => [
173 {
174 EventName => 'MyEventName', # max: 128
175 Actions => [
176 {
177 ClearTimer => {
178 TimerName => 'MyTimerName', # min: 1, max: 128
179  
180 }, # OPTIONAL
181 DynamoDB => {
182 HashKeyField => 'MyDynamoKeyField',
183 HashKeyValue => 'MyDynamoKeyValue',
184 TableName => 'MyDynamoTableName',
185 HashKeyType => 'MyDynamoKeyType', # OPTIONAL
186 Operation => 'MyDynamoOperation', # OPTIONAL
187 Payload => {
188 ContentExpression => 'MyContentExpression', # min: 1
189 Type => 'STRING', # values: STRING, JSON
190  
191 }, # OPTIONAL
192 PayloadField => 'MyDynamoKeyField',
193 RangeKeyField => 'MyDynamoKeyField',
194 RangeKeyType => 'MyDynamoKeyType', # OPTIONAL
195 RangeKeyValue => 'MyDynamoKeyValue',
196 }, # OPTIONAL
197 DynamoDBv2 => {
198 TableName => 'MyDynamoTableName',
199 Payload => {
200 ContentExpression => 'MyContentExpression', # min: 1
201 Type => 'STRING', # values: STRING, JSON
202  
203 }, # OPTIONAL
204 }, # OPTIONAL
205 Firehose => {
206 DeliveryStreamName => 'MyDeliveryStreamName',
207 Payload => {
208 ContentExpression => 'MyContentExpression', # min: 1
209 Type => 'STRING', # values: STRING, JSON
210  
211 }, # OPTIONAL
212 Separator => 'MyFirehoseSeparator', # OPTIONAL
213 }, # OPTIONAL
214 IotEvents => {
215 InputName => 'MyInputName', # min: 1, max: 128
216 Payload => {
217 ContentExpression => 'MyContentExpression', # min: 1
218 Type => 'STRING', # values: STRING, JSON
219  
220 }, # OPTIONAL
221 }, # OPTIONAL
222 IotSiteWise => {
223 AssetId => 'MyAssetId', # OPTIONAL
224 EntryId => 'MyAssetPropertyEntryId', # OPTIONAL
225 PropertyAlias => 'MyAssetPropertyAlias', # OPTIONAL
226 PropertyId => 'MyAssetPropertyId', # OPTIONAL
227 PropertyValue => {
228 Quality => 'MyAssetPropertyQuality', # OPTIONAL
229 Timestamp => {
230 TimeInSeconds => 'MyAssetPropertyTimeInSeconds',
231 OffsetInNanos =>
232 'MyAssetPropertyOffsetInNanos', # OPTIONAL
233 }, # OPTIONAL
234 Value => {
235 BooleanValue =>
236 'MyAssetPropertyBooleanValue', # OPTIONAL
237 DoubleValue =>
238 'MyAssetPropertyDoubleValue', # OPTIONAL
239 IntegerValue =>
240 'MyAssetPropertyIntegerValue', # OPTIONAL
241 StringValue =>
242 'MyAssetPropertyStringValue', # OPTIONAL
243 }, # OPTIONAL
244 }, # OPTIONAL
245 }, # OPTIONAL
246 IotTopicPublish => {
247 MqttTopic => 'MyMQTTTopic', # min: 1, max: 128
248 Payload => {
249 ContentExpression => 'MyContentExpression', # min: 1
250 Type => 'STRING', # values: STRING, JSON
251  
252 }, # OPTIONAL
253 }, # OPTIONAL
254 Lambda => {
255 FunctionArn =>
256 'MyAmazonResourceName', # min: 1, max: 2048
257 Payload => {
258 ContentExpression => 'MyContentExpression', # min: 1
259 Type => 'STRING', # values: STRING, JSON
260  
261 }, # OPTIONAL
262 }, # OPTIONAL
263 ResetTimer => {
264 TimerName => 'MyTimerName', # min: 1, max: 128
265  
266 }, # OPTIONAL
267 SetTimer => {
268 TimerName => 'MyTimerName', # min: 1, max: 128
269 DurationExpression =>
270 'MyVariableValue', # min: 1, max: 1024; OPTIONAL
271 Seconds => 1, # min: 1, max: 31622400; OPTIONAL
272 }, # OPTIONAL
273 SetVariable => {
274 Value =>
275 'MyVariableValue', # min: 1, max: 1024; OPTIONAL
276 VariableName => 'MyVariableName', # min: 1, max: 128
277  
278 }, # OPTIONAL
279 Sns => {
280 TargetArn => 'MyAmazonResourceName', # min: 1, max: 2048
281 Payload => {
282 ContentExpression => 'MyContentExpression', # min: 1
283 Type => 'STRING', # values: STRING, JSON
284  
285 }, # OPTIONAL
286 }, # OPTIONAL
287 Sqs => {
288 QueueUrl => 'MyQueueUrl',
289 Payload => {
290 ContentExpression => 'MyContentExpression', # min: 1
291 Type => 'STRING', # values: STRING, JSON
292  
293 }, # OPTIONAL
294 UseBase64 => 1, # OPTIONAL
295 }, # OPTIONAL
296 },
297 ...
298 ], # OPTIONAL
299 Condition => 'MyCondition', # max: 512; OPTIONAL
300 },
301 ...
302 ], # OPTIONAL
303 }, # OPTIONAL
304 OnInput => {
305 Events => [
306 {
307 EventName => 'MyEventName', # max: 128
308 Actions => [
309 {
310 ClearTimer => {
311 TimerName => 'MyTimerName', # min: 1, max: 128
312  
313 }, # OPTIONAL
314 DynamoDB => {
315 HashKeyField => 'MyDynamoKeyField',
316 HashKeyValue => 'MyDynamoKeyValue',
317 TableName => 'MyDynamoTableName',
318 HashKeyType => 'MyDynamoKeyType', # OPTIONAL
319 Operation => 'MyDynamoOperation', # OPTIONAL
320 Payload => {
321 ContentExpression => 'MyContentExpression', # min: 1
322 Type => 'STRING', # values: STRING, JSON
323  
324 }, # OPTIONAL
325 PayloadField => 'MyDynamoKeyField',
326 RangeKeyField => 'MyDynamoKeyField',
327 RangeKeyType => 'MyDynamoKeyType', # OPTIONAL
328 RangeKeyValue => 'MyDynamoKeyValue',
329 }, # OPTIONAL
330 DynamoDBv2 => {
331 TableName => 'MyDynamoTableName',
332 Payload => {
333 ContentExpression => 'MyContentExpression', # min: 1
334 Type => 'STRING', # values: STRING, JSON
335  
336 }, # OPTIONAL
337 }, # OPTIONAL
338 Firehose => {
339 DeliveryStreamName => 'MyDeliveryStreamName',
340 Payload => {
341 ContentExpression => 'MyContentExpression', # min: 1
342 Type => 'STRING', # values: STRING, JSON
343  
344 }, # OPTIONAL
345 Separator => 'MyFirehoseSeparator', # OPTIONAL
346 }, # OPTIONAL
347 IotEvents => {
348 InputName => 'MyInputName', # min: 1, max: 128
349 Payload => {
350 ContentExpression => 'MyContentExpression', # min: 1
351 Type => 'STRING', # values: STRING, JSON
352  
353 }, # OPTIONAL
354 }, # OPTIONAL
355 IotSiteWise => {
356 AssetId => 'MyAssetId', # OPTIONAL
357 EntryId => 'MyAssetPropertyEntryId', # OPTIONAL
358 PropertyAlias => 'MyAssetPropertyAlias', # OPTIONAL
359 PropertyId => 'MyAssetPropertyId', # OPTIONAL
360 PropertyValue => {
361 Quality => 'MyAssetPropertyQuality', # OPTIONAL
362 Timestamp => {
363 TimeInSeconds => 'MyAssetPropertyTimeInSeconds',
364 OffsetInNanos =>
365 'MyAssetPropertyOffsetInNanos', # OPTIONAL
366 }, # OPTIONAL
367 Value => {
368 BooleanValue =>
369 'MyAssetPropertyBooleanValue', # OPTIONAL
370 DoubleValue =>
371 'MyAssetPropertyDoubleValue', # OPTIONAL
372 IntegerValue =>
373 'MyAssetPropertyIntegerValue', # OPTIONAL
374 StringValue =>
375 'MyAssetPropertyStringValue', # OPTIONAL
376 }, # OPTIONAL
377 }, # OPTIONAL
378 }, # OPTIONAL
379 IotTopicPublish => {
380 MqttTopic => 'MyMQTTTopic', # min: 1, max: 128
381 Payload => {
382 ContentExpression => 'MyContentExpression', # min: 1
383 Type => 'STRING', # values: STRING, JSON
384  
385 }, # OPTIONAL
386 }, # OPTIONAL
387 Lambda => {
388 FunctionArn =>
389 'MyAmazonResourceName', # min: 1, max: 2048
390 Payload => {
391 ContentExpression => 'MyContentExpression', # min: 1
392 Type => 'STRING', # values: STRING, JSON
393  
394 }, # OPTIONAL
395 }, # OPTIONAL
396 ResetTimer => {
397 TimerName => 'MyTimerName', # min: 1, max: 128
398  
399 }, # OPTIONAL
400 SetTimer => {
401 TimerName => 'MyTimerName', # min: 1, max: 128
402 DurationExpression =>
403 'MyVariableValue', # min: 1, max: 1024; OPTIONAL
404 Seconds => 1, # min: 1, max: 31622400; OPTIONAL
405 }, # OPTIONAL
406 SetVariable => {
407 Value =>
408 'MyVariableValue', # min: 1, max: 1024; OPTIONAL
409 VariableName => 'MyVariableName', # min: 1, max: 128
410  
411 }, # OPTIONAL
412 Sns => {
413 TargetArn => 'MyAmazonResourceName', # min: 1, max: 2048
414 Payload => {
415 ContentExpression => 'MyContentExpression', # min: 1
416 Type => 'STRING', # values: STRING, JSON
417  
418 }, # OPTIONAL
419 }, # OPTIONAL
420 Sqs => {
421 QueueUrl => 'MyQueueUrl',
422 Payload => {
423 ContentExpression => 'MyContentExpression', # min: 1
424 Type => 'STRING', # values: STRING, JSON
425  
426 }, # OPTIONAL
427 UseBase64 => 1, # OPTIONAL
428 }, # OPTIONAL
429 },
430 ...
431 ], # OPTIONAL
432 Condition => 'MyCondition', # max: 512; OPTIONAL
433 },
434 ...
435 ], # OPTIONAL
436 TransitionEvents => [
437 {
438 Condition => 'MyCondition', # max: 512; OPTIONAL
439 EventName => 'MyEventName', # max: 128
440 NextState => 'MyStateName', # min: 1, max: 128
441 Actions => [
442 {
443 ClearTimer => {
444 TimerName => 'MyTimerName', # min: 1, max: 128
445  
446 }, # OPTIONAL
447 DynamoDB => {
448 HashKeyField => 'MyDynamoKeyField',
449 HashKeyValue => 'MyDynamoKeyValue',
450 TableName => 'MyDynamoTableName',
451 HashKeyType => 'MyDynamoKeyType', # OPTIONAL
452 Operation => 'MyDynamoOperation', # OPTIONAL
453 Payload => {
454 ContentExpression => 'MyContentExpression', # min: 1
455 Type => 'STRING', # values: STRING, JSON
456  
457 }, # OPTIONAL
458 PayloadField => 'MyDynamoKeyField',
459 RangeKeyField => 'MyDynamoKeyField',
460 RangeKeyType => 'MyDynamoKeyType', # OPTIONAL
461 RangeKeyValue => 'MyDynamoKeyValue',
462 }, # OPTIONAL
463 DynamoDBv2 => {
464 TableName => 'MyDynamoTableName',
465 Payload => {
466 ContentExpression => 'MyContentExpression', # min: 1
467 Type => 'STRING', # values: STRING, JSON
468  
469 }, # OPTIONAL
470 }, # OPTIONAL
471 Firehose => {
472 DeliveryStreamName => 'MyDeliveryStreamName',
473 Payload => {
474 ContentExpression => 'MyContentExpression', # min: 1
475 Type => 'STRING', # values: STRING, JSON
476  
477 }, # OPTIONAL
478 Separator => 'MyFirehoseSeparator', # OPTIONAL
479 }, # OPTIONAL
480 IotEvents => {
481 InputName => 'MyInputName', # min: 1, max: 128
482 Payload => {
483 ContentExpression => 'MyContentExpression', # min: 1
484 Type => 'STRING', # values: STRING, JSON
485  
486 }, # OPTIONAL
487 }, # OPTIONAL
488 IotSiteWise => {
489 AssetId => 'MyAssetId', # OPTIONAL
490 EntryId => 'MyAssetPropertyEntryId', # OPTIONAL
491 PropertyAlias => 'MyAssetPropertyAlias', # OPTIONAL
492 PropertyId => 'MyAssetPropertyId', # OPTIONAL
493 PropertyValue => {
494 Quality => 'MyAssetPropertyQuality', # OPTIONAL
495 Timestamp => {
496 TimeInSeconds => 'MyAssetPropertyTimeInSeconds',
497 OffsetInNanos =>
498 'MyAssetPropertyOffsetInNanos', # OPTIONAL
499 }, # OPTIONAL
500 Value => {
501 BooleanValue =>
502 'MyAssetPropertyBooleanValue', # OPTIONAL
503 DoubleValue =>
504 'MyAssetPropertyDoubleValue', # OPTIONAL
505 IntegerValue =>
506 'MyAssetPropertyIntegerValue', # OPTIONAL
507 StringValue =>
508 'MyAssetPropertyStringValue', # OPTIONAL
509 }, # OPTIONAL
510 }, # OPTIONAL
511 }, # OPTIONAL
512 IotTopicPublish => {
513 MqttTopic => 'MyMQTTTopic', # min: 1, max: 128
514 Payload => {
515 ContentExpression => 'MyContentExpression', # min: 1
516 Type => 'STRING', # values: STRING, JSON
517  
518 }, # OPTIONAL
519 }, # OPTIONAL
520 Lambda => {
521 FunctionArn =>
522 'MyAmazonResourceName', # min: 1, max: 2048
523 Payload => {
524 ContentExpression => 'MyContentExpression', # min: 1
525 Type => 'STRING', # values: STRING, JSON
526  
527 }, # OPTIONAL
528 }, # OPTIONAL
529 ResetTimer => {
530 TimerName => 'MyTimerName', # min: 1, max: 128
531  
532 }, # OPTIONAL
533 SetTimer => {
534 TimerName => 'MyTimerName', # min: 1, max: 128
535 DurationExpression =>
536 'MyVariableValue', # min: 1, max: 1024; OPTIONAL
537 Seconds => 1, # min: 1, max: 31622400; OPTIONAL
538 }, # OPTIONAL
539 SetVariable => {
540 Value =>
541 'MyVariableValue', # min: 1, max: 1024; OPTIONAL
542 VariableName => 'MyVariableName', # min: 1, max: 128
543  
544 }, # OPTIONAL
545 Sns => {
546 TargetArn => 'MyAmazonResourceName', # min: 1, max: 2048
547 Payload => {
548 ContentExpression => 'MyContentExpression', # min: 1
549 Type => 'STRING', # values: STRING, JSON
550  
551 }, # OPTIONAL
552 }, # OPTIONAL
553 Sqs => {
554 QueueUrl => 'MyQueueUrl',
555 Payload => {
556 ContentExpression => 'MyContentExpression', # min: 1
557 Type => 'STRING', # values: STRING, JSON
558  
559 }, # OPTIONAL
560 UseBase64 => 1, # OPTIONAL
561 }, # OPTIONAL
562 },
563 ...
564 ], # OPTIONAL
565 },
566 ...
567 ], # OPTIONAL
568 }, # OPTIONAL
569 },
570 ...
571 ], # min: 1
572  
573 },
574  
575 );
576  
577 # Results:
578 my $AnalysisId = $StartDetectorModelAnalysisResponse->AnalysisId;
579  
580 # Returns a L<Paws::IoTEvents::StartDetectorModelAnalysisResponse> object.
581  
582 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
583 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iotevents/StartDetectorModelAnalysis>
584  
585 =head1 ATTRIBUTES
586  
587  
588 =head2 B<REQUIRED> DetectorModelDefinition => L<Paws::IoTEvents::DetectorModelDefinition>
589  
590  
591  
592  
593  
594  
595 =head1 SEE ALSO
596  
597 This class forms part of L<Paws>, documenting arguments for method StartDetectorModelAnalysis in L<Paws::IoTEvents>
598  
599 =head1 BUGS and CONTRIBUTIONS
600  
601 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
602  
603 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
604  
605 =cut
606