@aws-sdk/client-iot-events-data 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/IoTEventsData.js +16 -168
- package/dist-cjs/protocols/Aws_restJson1.js +175 -525
- package/dist-es/IoTEventsData.js +16 -168
- package/dist-es/protocols/Aws_restJson1.js +155 -505
- package/dist-types/IoTEventsData.d.ts +23 -44
- package/dist-types/ts3.4/IoTEventsData.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { IoTEventsDataServiceException as __BaseException } from "../models/IoTEventsDataServiceException";
|
|
4
4
|
import { InternalFailureException, InvalidRequestException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
export const se_BatchAcknowledgeAlarmCommand = async (input, context) => {
|
|
@@ -9,11 +9,9 @@ export const se_BatchAcknowledgeAlarmCommand = async (input, context) => {
|
|
|
9
9
|
};
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/acknowledge";
|
|
11
11
|
let body;
|
|
12
|
-
body = JSON.stringify({
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}),
|
|
16
|
-
});
|
|
12
|
+
body = JSON.stringify(take(input, {
|
|
13
|
+
acknowledgeActionRequests: (_) => _json(_),
|
|
14
|
+
}));
|
|
17
15
|
return new __HttpRequest({
|
|
18
16
|
protocol,
|
|
19
17
|
hostname,
|
|
@@ -31,9 +29,9 @@ export const se_BatchDeleteDetectorCommand = async (input, context) => {
|
|
|
31
29
|
};
|
|
32
30
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors/delete";
|
|
33
31
|
let body;
|
|
34
|
-
body = JSON.stringify({
|
|
35
|
-
|
|
36
|
-
});
|
|
32
|
+
body = JSON.stringify(take(input, {
|
|
33
|
+
detectors: (_) => _json(_),
|
|
34
|
+
}));
|
|
37
35
|
return new __HttpRequest({
|
|
38
36
|
protocol,
|
|
39
37
|
hostname,
|
|
@@ -51,11 +49,9 @@ export const se_BatchDisableAlarmCommand = async (input, context) => {
|
|
|
51
49
|
};
|
|
52
50
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/disable";
|
|
53
51
|
let body;
|
|
54
|
-
body = JSON.stringify({
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}),
|
|
58
|
-
});
|
|
52
|
+
body = JSON.stringify(take(input, {
|
|
53
|
+
disableActionRequests: (_) => _json(_),
|
|
54
|
+
}));
|
|
59
55
|
return new __HttpRequest({
|
|
60
56
|
protocol,
|
|
61
57
|
hostname,
|
|
@@ -73,11 +69,9 @@ export const se_BatchEnableAlarmCommand = async (input, context) => {
|
|
|
73
69
|
};
|
|
74
70
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/enable";
|
|
75
71
|
let body;
|
|
76
|
-
body = JSON.stringify({
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}),
|
|
80
|
-
});
|
|
72
|
+
body = JSON.stringify(take(input, {
|
|
73
|
+
enableActionRequests: (_) => _json(_),
|
|
74
|
+
}));
|
|
81
75
|
return new __HttpRequest({
|
|
82
76
|
protocol,
|
|
83
77
|
hostname,
|
|
@@ -95,9 +89,9 @@ export const se_BatchPutMessageCommand = async (input, context) => {
|
|
|
95
89
|
};
|
|
96
90
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/messages";
|
|
97
91
|
let body;
|
|
98
|
-
body = JSON.stringify({
|
|
99
|
-
|
|
100
|
-
});
|
|
92
|
+
body = JSON.stringify(take(input, {
|
|
93
|
+
messages: (_) => se_Messages(_, context),
|
|
94
|
+
}));
|
|
101
95
|
return new __HttpRequest({
|
|
102
96
|
protocol,
|
|
103
97
|
hostname,
|
|
@@ -115,11 +109,9 @@ export const se_BatchResetAlarmCommand = async (input, context) => {
|
|
|
115
109
|
};
|
|
116
110
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/reset";
|
|
117
111
|
let body;
|
|
118
|
-
body = JSON.stringify({
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}),
|
|
122
|
-
});
|
|
112
|
+
body = JSON.stringify(take(input, {
|
|
113
|
+
resetActionRequests: (_) => _json(_),
|
|
114
|
+
}));
|
|
123
115
|
return new __HttpRequest({
|
|
124
116
|
protocol,
|
|
125
117
|
hostname,
|
|
@@ -137,11 +129,9 @@ export const se_BatchSnoozeAlarmCommand = async (input, context) => {
|
|
|
137
129
|
};
|
|
138
130
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/snooze";
|
|
139
131
|
let body;
|
|
140
|
-
body = JSON.stringify({
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}),
|
|
144
|
-
});
|
|
132
|
+
body = JSON.stringify(take(input, {
|
|
133
|
+
snoozeActionRequests: (_) => _json(_),
|
|
134
|
+
}));
|
|
145
135
|
return new __HttpRequest({
|
|
146
136
|
protocol,
|
|
147
137
|
hostname,
|
|
@@ -159,9 +149,9 @@ export const se_BatchUpdateDetectorCommand = async (input, context) => {
|
|
|
159
149
|
};
|
|
160
150
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors";
|
|
161
151
|
let body;
|
|
162
|
-
body = JSON.stringify({
|
|
163
|
-
|
|
164
|
-
});
|
|
152
|
+
body = JSON.stringify(take(input, {
|
|
153
|
+
detectors: (_) => _json(_),
|
|
154
|
+
}));
|
|
165
155
|
return new __HttpRequest({
|
|
166
156
|
protocol,
|
|
167
157
|
hostname,
|
|
@@ -263,9 +253,10 @@ export const de_BatchAcknowledgeAlarmCommand = async (output, context) => {
|
|
|
263
253
|
$metadata: deserializeMetadata(output),
|
|
264
254
|
});
|
|
265
255
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
256
|
+
const doc = take(data, {
|
|
257
|
+
errorEntries: _json,
|
|
258
|
+
});
|
|
259
|
+
Object.assign(contents, doc);
|
|
269
260
|
return contents;
|
|
270
261
|
};
|
|
271
262
|
const de_BatchAcknowledgeAlarmCommandError = async (output, context) => {
|
|
@@ -289,10 +280,9 @@ const de_BatchAcknowledgeAlarmCommandError = async (output, context) => {
|
|
|
289
280
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
290
281
|
default:
|
|
291
282
|
const parsedBody = parsedOutput.body;
|
|
292
|
-
throwDefaultError({
|
|
283
|
+
return throwDefaultError({
|
|
293
284
|
output,
|
|
294
285
|
parsedBody,
|
|
295
|
-
exceptionCtor: __BaseException,
|
|
296
286
|
errorCode,
|
|
297
287
|
});
|
|
298
288
|
}
|
|
@@ -305,9 +295,10 @@ export const de_BatchDeleteDetectorCommand = async (output, context) => {
|
|
|
305
295
|
$metadata: deserializeMetadata(output),
|
|
306
296
|
});
|
|
307
297
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
298
|
+
const doc = take(data, {
|
|
299
|
+
batchDeleteDetectorErrorEntries: _json,
|
|
300
|
+
});
|
|
301
|
+
Object.assign(contents, doc);
|
|
311
302
|
return contents;
|
|
312
303
|
};
|
|
313
304
|
const de_BatchDeleteDetectorCommandError = async (output, context) => {
|
|
@@ -331,10 +322,9 @@ const de_BatchDeleteDetectorCommandError = async (output, context) => {
|
|
|
331
322
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
332
323
|
default:
|
|
333
324
|
const parsedBody = parsedOutput.body;
|
|
334
|
-
throwDefaultError({
|
|
325
|
+
return throwDefaultError({
|
|
335
326
|
output,
|
|
336
327
|
parsedBody,
|
|
337
|
-
exceptionCtor: __BaseException,
|
|
338
328
|
errorCode,
|
|
339
329
|
});
|
|
340
330
|
}
|
|
@@ -347,9 +337,10 @@ export const de_BatchDisableAlarmCommand = async (output, context) => {
|
|
|
347
337
|
$metadata: deserializeMetadata(output),
|
|
348
338
|
});
|
|
349
339
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
340
|
+
const doc = take(data, {
|
|
341
|
+
errorEntries: _json,
|
|
342
|
+
});
|
|
343
|
+
Object.assign(contents, doc);
|
|
353
344
|
return contents;
|
|
354
345
|
};
|
|
355
346
|
const de_BatchDisableAlarmCommandError = async (output, context) => {
|
|
@@ -373,10 +364,9 @@ const de_BatchDisableAlarmCommandError = async (output, context) => {
|
|
|
373
364
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
374
365
|
default:
|
|
375
366
|
const parsedBody = parsedOutput.body;
|
|
376
|
-
throwDefaultError({
|
|
367
|
+
return throwDefaultError({
|
|
377
368
|
output,
|
|
378
369
|
parsedBody,
|
|
379
|
-
exceptionCtor: __BaseException,
|
|
380
370
|
errorCode,
|
|
381
371
|
});
|
|
382
372
|
}
|
|
@@ -389,9 +379,10 @@ export const de_BatchEnableAlarmCommand = async (output, context) => {
|
|
|
389
379
|
$metadata: deserializeMetadata(output),
|
|
390
380
|
});
|
|
391
381
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
382
|
+
const doc = take(data, {
|
|
383
|
+
errorEntries: _json,
|
|
384
|
+
});
|
|
385
|
+
Object.assign(contents, doc);
|
|
395
386
|
return contents;
|
|
396
387
|
};
|
|
397
388
|
const de_BatchEnableAlarmCommandError = async (output, context) => {
|
|
@@ -415,10 +406,9 @@ const de_BatchEnableAlarmCommandError = async (output, context) => {
|
|
|
415
406
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
416
407
|
default:
|
|
417
408
|
const parsedBody = parsedOutput.body;
|
|
418
|
-
throwDefaultError({
|
|
409
|
+
return throwDefaultError({
|
|
419
410
|
output,
|
|
420
411
|
parsedBody,
|
|
421
|
-
exceptionCtor: __BaseException,
|
|
422
412
|
errorCode,
|
|
423
413
|
});
|
|
424
414
|
}
|
|
@@ -431,9 +421,10 @@ export const de_BatchPutMessageCommand = async (output, context) => {
|
|
|
431
421
|
$metadata: deserializeMetadata(output),
|
|
432
422
|
});
|
|
433
423
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}
|
|
424
|
+
const doc = take(data, {
|
|
425
|
+
BatchPutMessageErrorEntries: _json,
|
|
426
|
+
});
|
|
427
|
+
Object.assign(contents, doc);
|
|
437
428
|
return contents;
|
|
438
429
|
};
|
|
439
430
|
const de_BatchPutMessageCommandError = async (output, context) => {
|
|
@@ -457,10 +448,9 @@ const de_BatchPutMessageCommandError = async (output, context) => {
|
|
|
457
448
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
458
449
|
default:
|
|
459
450
|
const parsedBody = parsedOutput.body;
|
|
460
|
-
throwDefaultError({
|
|
451
|
+
return throwDefaultError({
|
|
461
452
|
output,
|
|
462
453
|
parsedBody,
|
|
463
|
-
exceptionCtor: __BaseException,
|
|
464
454
|
errorCode,
|
|
465
455
|
});
|
|
466
456
|
}
|
|
@@ -473,9 +463,10 @@ export const de_BatchResetAlarmCommand = async (output, context) => {
|
|
|
473
463
|
$metadata: deserializeMetadata(output),
|
|
474
464
|
});
|
|
475
465
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}
|
|
466
|
+
const doc = take(data, {
|
|
467
|
+
errorEntries: _json,
|
|
468
|
+
});
|
|
469
|
+
Object.assign(contents, doc);
|
|
479
470
|
return contents;
|
|
480
471
|
};
|
|
481
472
|
const de_BatchResetAlarmCommandError = async (output, context) => {
|
|
@@ -499,10 +490,9 @@ const de_BatchResetAlarmCommandError = async (output, context) => {
|
|
|
499
490
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
500
491
|
default:
|
|
501
492
|
const parsedBody = parsedOutput.body;
|
|
502
|
-
throwDefaultError({
|
|
493
|
+
return throwDefaultError({
|
|
503
494
|
output,
|
|
504
495
|
parsedBody,
|
|
505
|
-
exceptionCtor: __BaseException,
|
|
506
496
|
errorCode,
|
|
507
497
|
});
|
|
508
498
|
}
|
|
@@ -515,9 +505,10 @@ export const de_BatchSnoozeAlarmCommand = async (output, context) => {
|
|
|
515
505
|
$metadata: deserializeMetadata(output),
|
|
516
506
|
});
|
|
517
507
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
508
|
+
const doc = take(data, {
|
|
509
|
+
errorEntries: _json,
|
|
510
|
+
});
|
|
511
|
+
Object.assign(contents, doc);
|
|
521
512
|
return contents;
|
|
522
513
|
};
|
|
523
514
|
const de_BatchSnoozeAlarmCommandError = async (output, context) => {
|
|
@@ -541,10 +532,9 @@ const de_BatchSnoozeAlarmCommandError = async (output, context) => {
|
|
|
541
532
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
542
533
|
default:
|
|
543
534
|
const parsedBody = parsedOutput.body;
|
|
544
|
-
throwDefaultError({
|
|
535
|
+
return throwDefaultError({
|
|
545
536
|
output,
|
|
546
537
|
parsedBody,
|
|
547
|
-
exceptionCtor: __BaseException,
|
|
548
538
|
errorCode,
|
|
549
539
|
});
|
|
550
540
|
}
|
|
@@ -557,9 +547,10 @@ export const de_BatchUpdateDetectorCommand = async (output, context) => {
|
|
|
557
547
|
$metadata: deserializeMetadata(output),
|
|
558
548
|
});
|
|
559
549
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
}
|
|
550
|
+
const doc = take(data, {
|
|
551
|
+
batchUpdateDetectorErrorEntries: _json,
|
|
552
|
+
});
|
|
553
|
+
Object.assign(contents, doc);
|
|
563
554
|
return contents;
|
|
564
555
|
};
|
|
565
556
|
const de_BatchUpdateDetectorCommandError = async (output, context) => {
|
|
@@ -583,10 +574,9 @@ const de_BatchUpdateDetectorCommandError = async (output, context) => {
|
|
|
583
574
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
584
575
|
default:
|
|
585
576
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
throwDefaultError({
|
|
577
|
+
return throwDefaultError({
|
|
587
578
|
output,
|
|
588
579
|
parsedBody,
|
|
589
|
-
exceptionCtor: __BaseException,
|
|
590
580
|
errorCode,
|
|
591
581
|
});
|
|
592
582
|
}
|
|
@@ -599,9 +589,10 @@ export const de_DescribeAlarmCommand = async (output, context) => {
|
|
|
599
589
|
$metadata: deserializeMetadata(output),
|
|
600
590
|
});
|
|
601
591
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
}
|
|
592
|
+
const doc = take(data, {
|
|
593
|
+
alarm: (_) => de_Alarm(_, context),
|
|
594
|
+
});
|
|
595
|
+
Object.assign(contents, doc);
|
|
605
596
|
return contents;
|
|
606
597
|
};
|
|
607
598
|
const de_DescribeAlarmCommandError = async (output, context) => {
|
|
@@ -628,10 +619,9 @@ const de_DescribeAlarmCommandError = async (output, context) => {
|
|
|
628
619
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
629
620
|
default:
|
|
630
621
|
const parsedBody = parsedOutput.body;
|
|
631
|
-
throwDefaultError({
|
|
622
|
+
return throwDefaultError({
|
|
632
623
|
output,
|
|
633
624
|
parsedBody,
|
|
634
|
-
exceptionCtor: __BaseException,
|
|
635
625
|
errorCode,
|
|
636
626
|
});
|
|
637
627
|
}
|
|
@@ -644,9 +634,10 @@ export const de_DescribeDetectorCommand = async (output, context) => {
|
|
|
644
634
|
$metadata: deserializeMetadata(output),
|
|
645
635
|
});
|
|
646
636
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}
|
|
637
|
+
const doc = take(data, {
|
|
638
|
+
detector: (_) => de_Detector(_, context),
|
|
639
|
+
});
|
|
640
|
+
Object.assign(contents, doc);
|
|
650
641
|
return contents;
|
|
651
642
|
};
|
|
652
643
|
const de_DescribeDetectorCommandError = async (output, context) => {
|
|
@@ -673,10 +664,9 @@ const de_DescribeDetectorCommandError = async (output, context) => {
|
|
|
673
664
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
674
665
|
default:
|
|
675
666
|
const parsedBody = parsedOutput.body;
|
|
676
|
-
throwDefaultError({
|
|
667
|
+
return throwDefaultError({
|
|
677
668
|
output,
|
|
678
669
|
parsedBody,
|
|
679
|
-
exceptionCtor: __BaseException,
|
|
680
670
|
errorCode,
|
|
681
671
|
});
|
|
682
672
|
}
|
|
@@ -689,12 +679,11 @@ export const de_ListAlarmsCommand = async (output, context) => {
|
|
|
689
679
|
$metadata: deserializeMetadata(output),
|
|
690
680
|
});
|
|
691
681
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
}
|
|
682
|
+
const doc = take(data, {
|
|
683
|
+
alarmSummaries: (_) => de_AlarmSummaries(_, context),
|
|
684
|
+
nextToken: __expectString,
|
|
685
|
+
});
|
|
686
|
+
Object.assign(contents, doc);
|
|
698
687
|
return contents;
|
|
699
688
|
};
|
|
700
689
|
const de_ListAlarmsCommandError = async (output, context) => {
|
|
@@ -721,10 +710,9 @@ const de_ListAlarmsCommandError = async (output, context) => {
|
|
|
721
710
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
722
711
|
default:
|
|
723
712
|
const parsedBody = parsedOutput.body;
|
|
724
|
-
throwDefaultError({
|
|
713
|
+
return throwDefaultError({
|
|
725
714
|
output,
|
|
726
715
|
parsedBody,
|
|
727
|
-
exceptionCtor: __BaseException,
|
|
728
716
|
errorCode,
|
|
729
717
|
});
|
|
730
718
|
}
|
|
@@ -737,12 +725,11 @@ export const de_ListDetectorsCommand = async (output, context) => {
|
|
|
737
725
|
$metadata: deserializeMetadata(output),
|
|
738
726
|
});
|
|
739
727
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}
|
|
728
|
+
const doc = take(data, {
|
|
729
|
+
detectorSummaries: (_) => de_DetectorSummaries(_, context),
|
|
730
|
+
nextToken: __expectString,
|
|
731
|
+
});
|
|
732
|
+
Object.assign(contents, doc);
|
|
746
733
|
return contents;
|
|
747
734
|
};
|
|
748
735
|
const de_ListDetectorsCommandError = async (output, context) => {
|
|
@@ -769,21 +756,21 @@ const de_ListDetectorsCommandError = async (output, context) => {
|
|
|
769
756
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
770
757
|
default:
|
|
771
758
|
const parsedBody = parsedOutput.body;
|
|
772
|
-
throwDefaultError({
|
|
759
|
+
return throwDefaultError({
|
|
773
760
|
output,
|
|
774
761
|
parsedBody,
|
|
775
|
-
exceptionCtor: __BaseException,
|
|
776
762
|
errorCode,
|
|
777
763
|
});
|
|
778
764
|
}
|
|
779
765
|
};
|
|
780
|
-
const
|
|
766
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
781
767
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
782
768
|
const contents = map({});
|
|
783
769
|
const data = parsedOutput.body;
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
770
|
+
const doc = take(data, {
|
|
771
|
+
message: __expectString,
|
|
772
|
+
});
|
|
773
|
+
Object.assign(contents, doc);
|
|
787
774
|
const exception = new InternalFailureException({
|
|
788
775
|
$metadata: deserializeMetadata(parsedOutput),
|
|
789
776
|
...contents,
|
|
@@ -793,9 +780,10 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
793
780
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
794
781
|
const contents = map({});
|
|
795
782
|
const data = parsedOutput.body;
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
}
|
|
783
|
+
const doc = take(data, {
|
|
784
|
+
message: __expectString,
|
|
785
|
+
});
|
|
786
|
+
Object.assign(contents, doc);
|
|
799
787
|
const exception = new InvalidRequestException({
|
|
800
788
|
$metadata: deserializeMetadata(parsedOutput),
|
|
801
789
|
...contents,
|
|
@@ -805,9 +793,10 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
805
793
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
806
794
|
const contents = map({});
|
|
807
795
|
const data = parsedOutput.body;
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
}
|
|
796
|
+
const doc = take(data, {
|
|
797
|
+
message: __expectString,
|
|
798
|
+
});
|
|
799
|
+
Object.assign(contents, doc);
|
|
811
800
|
const exception = new ResourceNotFoundException({
|
|
812
801
|
$metadata: deserializeMetadata(parsedOutput),
|
|
813
802
|
...contents,
|
|
@@ -817,9 +806,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
817
806
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
818
807
|
const contents = map({});
|
|
819
808
|
const data = parsedOutput.body;
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
}
|
|
809
|
+
const doc = take(data, {
|
|
810
|
+
message: __expectString,
|
|
811
|
+
});
|
|
812
|
+
Object.assign(contents, doc);
|
|
823
813
|
const exception = new ServiceUnavailableException({
|
|
824
814
|
$metadata: deserializeMetadata(parsedOutput),
|
|
825
815
|
...contents,
|
|
@@ -829,88 +819,23 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
829
819
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
830
820
|
const contents = map({});
|
|
831
821
|
const data = parsedOutput.body;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
}
|
|
822
|
+
const doc = take(data, {
|
|
823
|
+
message: __expectString,
|
|
824
|
+
});
|
|
825
|
+
Object.assign(contents, doc);
|
|
835
826
|
const exception = new ThrottlingException({
|
|
836
827
|
$metadata: deserializeMetadata(parsedOutput),
|
|
837
828
|
...contents,
|
|
838
829
|
});
|
|
839
830
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
840
831
|
};
|
|
841
|
-
const se_AcknowledgeAlarmActionRequest = (input, context) => {
|
|
842
|
-
return {
|
|
843
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
844
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
845
|
-
...(input.note != null && { note: input.note }),
|
|
846
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
847
|
-
};
|
|
848
|
-
};
|
|
849
|
-
const se_AcknowledgeAlarmActionRequests = (input, context) => {
|
|
850
|
-
return input
|
|
851
|
-
.filter((e) => e != null)
|
|
852
|
-
.map((entry) => {
|
|
853
|
-
return se_AcknowledgeAlarmActionRequest(entry, context);
|
|
854
|
-
});
|
|
855
|
-
};
|
|
856
|
-
const se_DeleteDetectorRequest = (input, context) => {
|
|
857
|
-
return {
|
|
858
|
-
...(input.detectorModelName != null && { detectorModelName: input.detectorModelName }),
|
|
859
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
860
|
-
...(input.messageId != null && { messageId: input.messageId }),
|
|
861
|
-
};
|
|
862
|
-
};
|
|
863
|
-
const se_DeleteDetectorRequests = (input, context) => {
|
|
864
|
-
return input
|
|
865
|
-
.filter((e) => e != null)
|
|
866
|
-
.map((entry) => {
|
|
867
|
-
return se_DeleteDetectorRequest(entry, context);
|
|
868
|
-
});
|
|
869
|
-
};
|
|
870
|
-
const se_DetectorStateDefinition = (input, context) => {
|
|
871
|
-
return {
|
|
872
|
-
...(input.stateName != null && { stateName: input.stateName }),
|
|
873
|
-
...(input.timers != null && { timers: se_TimerDefinitions(input.timers, context) }),
|
|
874
|
-
...(input.variables != null && { variables: se_VariableDefinitions(input.variables, context) }),
|
|
875
|
-
};
|
|
876
|
-
};
|
|
877
|
-
const se_DisableAlarmActionRequest = (input, context) => {
|
|
878
|
-
return {
|
|
879
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
880
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
881
|
-
...(input.note != null && { note: input.note }),
|
|
882
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
883
|
-
};
|
|
884
|
-
};
|
|
885
|
-
const se_DisableAlarmActionRequests = (input, context) => {
|
|
886
|
-
return input
|
|
887
|
-
.filter((e) => e != null)
|
|
888
|
-
.map((entry) => {
|
|
889
|
-
return se_DisableAlarmActionRequest(entry, context);
|
|
890
|
-
});
|
|
891
|
-
};
|
|
892
|
-
const se_EnableAlarmActionRequest = (input, context) => {
|
|
893
|
-
return {
|
|
894
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
895
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
896
|
-
...(input.note != null && { note: input.note }),
|
|
897
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
const se_EnableAlarmActionRequests = (input, context) => {
|
|
901
|
-
return input
|
|
902
|
-
.filter((e) => e != null)
|
|
903
|
-
.map((entry) => {
|
|
904
|
-
return se_EnableAlarmActionRequest(entry, context);
|
|
905
|
-
});
|
|
906
|
-
};
|
|
907
832
|
const se_Message = (input, context) => {
|
|
908
|
-
return {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
};
|
|
833
|
+
return take(input, {
|
|
834
|
+
inputName: [],
|
|
835
|
+
messageId: [],
|
|
836
|
+
payload: context.base64Encoder,
|
|
837
|
+
timestamp: _json,
|
|
838
|
+
});
|
|
914
839
|
};
|
|
915
840
|
const se_Messages = (input, context) => {
|
|
916
841
|
return input
|
|
@@ -919,359 +844,84 @@ const se_Messages = (input, context) => {
|
|
|
919
844
|
return se_Message(entry, context);
|
|
920
845
|
});
|
|
921
846
|
};
|
|
922
|
-
const se_ResetAlarmActionRequest = (input, context) => {
|
|
923
|
-
return {
|
|
924
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
925
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
926
|
-
...(input.note != null && { note: input.note }),
|
|
927
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
928
|
-
};
|
|
929
|
-
};
|
|
930
|
-
const se_ResetAlarmActionRequests = (input, context) => {
|
|
931
|
-
return input
|
|
932
|
-
.filter((e) => e != null)
|
|
933
|
-
.map((entry) => {
|
|
934
|
-
return se_ResetAlarmActionRequest(entry, context);
|
|
935
|
-
});
|
|
936
|
-
};
|
|
937
|
-
const se_SnoozeAlarmActionRequest = (input, context) => {
|
|
938
|
-
return {
|
|
939
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
940
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
941
|
-
...(input.note != null && { note: input.note }),
|
|
942
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
943
|
-
...(input.snoozeDuration != null && { snoozeDuration: input.snoozeDuration }),
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
const se_SnoozeAlarmActionRequests = (input, context) => {
|
|
947
|
-
return input
|
|
948
|
-
.filter((e) => e != null)
|
|
949
|
-
.map((entry) => {
|
|
950
|
-
return se_SnoozeAlarmActionRequest(entry, context);
|
|
951
|
-
});
|
|
952
|
-
};
|
|
953
|
-
const se_TimerDefinition = (input, context) => {
|
|
954
|
-
return {
|
|
955
|
-
...(input.name != null && { name: input.name }),
|
|
956
|
-
...(input.seconds != null && { seconds: input.seconds }),
|
|
957
|
-
};
|
|
958
|
-
};
|
|
959
|
-
const se_TimerDefinitions = (input, context) => {
|
|
960
|
-
return input
|
|
961
|
-
.filter((e) => e != null)
|
|
962
|
-
.map((entry) => {
|
|
963
|
-
return se_TimerDefinition(entry, context);
|
|
964
|
-
});
|
|
965
|
-
};
|
|
966
|
-
const se_TimestampValue = (input, context) => {
|
|
967
|
-
return {
|
|
968
|
-
...(input.timeInMillis != null && { timeInMillis: input.timeInMillis }),
|
|
969
|
-
};
|
|
970
|
-
};
|
|
971
|
-
const se_UpdateDetectorRequest = (input, context) => {
|
|
972
|
-
return {
|
|
973
|
-
...(input.detectorModelName != null && { detectorModelName: input.detectorModelName }),
|
|
974
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
975
|
-
...(input.messageId != null && { messageId: input.messageId }),
|
|
976
|
-
...(input.state != null && { state: se_DetectorStateDefinition(input.state, context) }),
|
|
977
|
-
};
|
|
978
|
-
};
|
|
979
|
-
const se_UpdateDetectorRequests = (input, context) => {
|
|
980
|
-
return input
|
|
981
|
-
.filter((e) => e != null)
|
|
982
|
-
.map((entry) => {
|
|
983
|
-
return se_UpdateDetectorRequest(entry, context);
|
|
984
|
-
});
|
|
985
|
-
};
|
|
986
|
-
const se_VariableDefinition = (input, context) => {
|
|
987
|
-
return {
|
|
988
|
-
...(input.name != null && { name: input.name }),
|
|
989
|
-
...(input.value != null && { value: input.value }),
|
|
990
|
-
};
|
|
991
|
-
};
|
|
992
|
-
const se_VariableDefinitions = (input, context) => {
|
|
993
|
-
return input
|
|
994
|
-
.filter((e) => e != null)
|
|
995
|
-
.map((entry) => {
|
|
996
|
-
return se_VariableDefinition(entry, context);
|
|
997
|
-
});
|
|
998
|
-
};
|
|
999
|
-
const de_AcknowledgeActionConfiguration = (output, context) => {
|
|
1000
|
-
return {
|
|
1001
|
-
note: __expectString(output.note),
|
|
1002
|
-
};
|
|
1003
|
-
};
|
|
1004
847
|
const de_Alarm = (output, context) => {
|
|
1005
|
-
return {
|
|
1006
|
-
alarmModelName: __expectString
|
|
1007
|
-
alarmModelVersion: __expectString
|
|
1008
|
-
alarmState:
|
|
1009
|
-
creationTime:
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1015
|
-
: undefined,
|
|
1016
|
-
severity: __expectInt32(output.severity),
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
const de_AlarmState = (output, context) => {
|
|
1020
|
-
return {
|
|
1021
|
-
customerAction: output.customerAction != null ? de_CustomerAction(output.customerAction, context) : undefined,
|
|
1022
|
-
ruleEvaluation: output.ruleEvaluation != null ? de_RuleEvaluation(output.ruleEvaluation, context) : undefined,
|
|
1023
|
-
stateName: __expectString(output.stateName),
|
|
1024
|
-
systemEvent: output.systemEvent != null ? de_SystemEvent(output.systemEvent, context) : undefined,
|
|
1025
|
-
};
|
|
848
|
+
return take(output, {
|
|
849
|
+
alarmModelName: __expectString,
|
|
850
|
+
alarmModelVersion: __expectString,
|
|
851
|
+
alarmState: _json,
|
|
852
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
853
|
+
keyValue: __expectString,
|
|
854
|
+
lastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
855
|
+
severity: __expectInt32,
|
|
856
|
+
});
|
|
1026
857
|
};
|
|
1027
858
|
const de_AlarmSummaries = (output, context) => {
|
|
1028
859
|
const retVal = (output || [])
|
|
1029
860
|
.filter((e) => e != null)
|
|
1030
861
|
.map((entry) => {
|
|
1031
|
-
if (entry === null) {
|
|
1032
|
-
return null;
|
|
1033
|
-
}
|
|
1034
862
|
return de_AlarmSummary(entry, context);
|
|
1035
863
|
});
|
|
1036
864
|
return retVal;
|
|
1037
865
|
};
|
|
1038
866
|
const de_AlarmSummary = (output, context) => {
|
|
1039
|
-
return {
|
|
1040
|
-
alarmModelName: __expectString
|
|
1041
|
-
alarmModelVersion: __expectString
|
|
1042
|
-
creationTime:
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
lastUpdateTime: output.lastUpdateTime != null
|
|
1047
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1048
|
-
: undefined,
|
|
1049
|
-
stateName: __expectString(output.stateName),
|
|
1050
|
-
};
|
|
1051
|
-
};
|
|
1052
|
-
const de_BatchAlarmActionErrorEntries = (output, context) => {
|
|
1053
|
-
const retVal = (output || [])
|
|
1054
|
-
.filter((e) => e != null)
|
|
1055
|
-
.map((entry) => {
|
|
1056
|
-
if (entry === null) {
|
|
1057
|
-
return null;
|
|
1058
|
-
}
|
|
1059
|
-
return de_BatchAlarmActionErrorEntry(entry, context);
|
|
1060
|
-
});
|
|
1061
|
-
return retVal;
|
|
1062
|
-
};
|
|
1063
|
-
const de_BatchAlarmActionErrorEntry = (output, context) => {
|
|
1064
|
-
return {
|
|
1065
|
-
errorCode: __expectString(output.errorCode),
|
|
1066
|
-
errorMessage: __expectString(output.errorMessage),
|
|
1067
|
-
requestId: __expectString(output.requestId),
|
|
1068
|
-
};
|
|
1069
|
-
};
|
|
1070
|
-
const de_BatchDeleteDetectorErrorEntries = (output, context) => {
|
|
1071
|
-
const retVal = (output || [])
|
|
1072
|
-
.filter((e) => e != null)
|
|
1073
|
-
.map((entry) => {
|
|
1074
|
-
if (entry === null) {
|
|
1075
|
-
return null;
|
|
1076
|
-
}
|
|
1077
|
-
return de_BatchDeleteDetectorErrorEntry(entry, context);
|
|
867
|
+
return take(output, {
|
|
868
|
+
alarmModelName: __expectString,
|
|
869
|
+
alarmModelVersion: __expectString,
|
|
870
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
871
|
+
keyValue: __expectString,
|
|
872
|
+
lastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
873
|
+
stateName: __expectString,
|
|
1078
874
|
});
|
|
1079
|
-
return retVal;
|
|
1080
|
-
};
|
|
1081
|
-
const de_BatchDeleteDetectorErrorEntry = (output, context) => {
|
|
1082
|
-
return {
|
|
1083
|
-
errorCode: __expectString(output.errorCode),
|
|
1084
|
-
errorMessage: __expectString(output.errorMessage),
|
|
1085
|
-
messageId: __expectString(output.messageId),
|
|
1086
|
-
};
|
|
1087
|
-
};
|
|
1088
|
-
const de_BatchPutMessageErrorEntries = (output, context) => {
|
|
1089
|
-
const retVal = (output || [])
|
|
1090
|
-
.filter((e) => e != null)
|
|
1091
|
-
.map((entry) => {
|
|
1092
|
-
if (entry === null) {
|
|
1093
|
-
return null;
|
|
1094
|
-
}
|
|
1095
|
-
return de_BatchPutMessageErrorEntry(entry, context);
|
|
1096
|
-
});
|
|
1097
|
-
return retVal;
|
|
1098
|
-
};
|
|
1099
|
-
const de_BatchPutMessageErrorEntry = (output, context) => {
|
|
1100
|
-
return {
|
|
1101
|
-
errorCode: __expectString(output.errorCode),
|
|
1102
|
-
errorMessage: __expectString(output.errorMessage),
|
|
1103
|
-
messageId: __expectString(output.messageId),
|
|
1104
|
-
};
|
|
1105
|
-
};
|
|
1106
|
-
const de_BatchUpdateDetectorErrorEntries = (output, context) => {
|
|
1107
|
-
const retVal = (output || [])
|
|
1108
|
-
.filter((e) => e != null)
|
|
1109
|
-
.map((entry) => {
|
|
1110
|
-
if (entry === null) {
|
|
1111
|
-
return null;
|
|
1112
|
-
}
|
|
1113
|
-
return de_BatchUpdateDetectorErrorEntry(entry, context);
|
|
1114
|
-
});
|
|
1115
|
-
return retVal;
|
|
1116
|
-
};
|
|
1117
|
-
const de_BatchUpdateDetectorErrorEntry = (output, context) => {
|
|
1118
|
-
return {
|
|
1119
|
-
errorCode: __expectString(output.errorCode),
|
|
1120
|
-
errorMessage: __expectString(output.errorMessage),
|
|
1121
|
-
messageId: __expectString(output.messageId),
|
|
1122
|
-
};
|
|
1123
|
-
};
|
|
1124
|
-
const de_CustomerAction = (output, context) => {
|
|
1125
|
-
return {
|
|
1126
|
-
acknowledgeActionConfiguration: output.acknowledgeActionConfiguration != null
|
|
1127
|
-
? de_AcknowledgeActionConfiguration(output.acknowledgeActionConfiguration, context)
|
|
1128
|
-
: undefined,
|
|
1129
|
-
actionName: __expectString(output.actionName),
|
|
1130
|
-
disableActionConfiguration: output.disableActionConfiguration != null
|
|
1131
|
-
? de_DisableActionConfiguration(output.disableActionConfiguration, context)
|
|
1132
|
-
: undefined,
|
|
1133
|
-
enableActionConfiguration: output.enableActionConfiguration != null
|
|
1134
|
-
? de_EnableActionConfiguration(output.enableActionConfiguration, context)
|
|
1135
|
-
: undefined,
|
|
1136
|
-
resetActionConfiguration: output.resetActionConfiguration != null
|
|
1137
|
-
? de_ResetActionConfiguration(output.resetActionConfiguration, context)
|
|
1138
|
-
: undefined,
|
|
1139
|
-
snoozeActionConfiguration: output.snoozeActionConfiguration != null
|
|
1140
|
-
? de_SnoozeActionConfiguration(output.snoozeActionConfiguration, context)
|
|
1141
|
-
: undefined,
|
|
1142
|
-
};
|
|
1143
875
|
};
|
|
1144
876
|
const de_Detector = (output, context) => {
|
|
1145
|
-
return {
|
|
1146
|
-
creationTime:
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1154
|
-
: undefined,
|
|
1155
|
-
state: output.state != null ? de_DetectorState(output.state, context) : undefined,
|
|
1156
|
-
};
|
|
877
|
+
return take(output, {
|
|
878
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
879
|
+
detectorModelName: __expectString,
|
|
880
|
+
detectorModelVersion: __expectString,
|
|
881
|
+
keyValue: __expectString,
|
|
882
|
+
lastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
883
|
+
state: (_) => de_DetectorState(_, context),
|
|
884
|
+
});
|
|
1157
885
|
};
|
|
1158
886
|
const de_DetectorState = (output, context) => {
|
|
1159
|
-
return {
|
|
1160
|
-
stateName: __expectString
|
|
1161
|
-
timers:
|
|
1162
|
-
variables:
|
|
1163
|
-
};
|
|
1164
|
-
};
|
|
1165
|
-
const de_DetectorStateSummary = (output, context) => {
|
|
1166
|
-
return {
|
|
1167
|
-
stateName: __expectString(output.stateName),
|
|
1168
|
-
};
|
|
887
|
+
return take(output, {
|
|
888
|
+
stateName: __expectString,
|
|
889
|
+
timers: (_) => de_Timers(_, context),
|
|
890
|
+
variables: _json,
|
|
891
|
+
});
|
|
1169
892
|
};
|
|
1170
893
|
const de_DetectorSummaries = (output, context) => {
|
|
1171
894
|
const retVal = (output || [])
|
|
1172
895
|
.filter((e) => e != null)
|
|
1173
896
|
.map((entry) => {
|
|
1174
|
-
if (entry === null) {
|
|
1175
|
-
return null;
|
|
1176
|
-
}
|
|
1177
897
|
return de_DetectorSummary(entry, context);
|
|
1178
898
|
});
|
|
1179
899
|
return retVal;
|
|
1180
900
|
};
|
|
1181
901
|
const de_DetectorSummary = (output, context) => {
|
|
1182
|
-
return {
|
|
1183
|
-
creationTime:
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1191
|
-
: undefined,
|
|
1192
|
-
state: output.state != null ? de_DetectorStateSummary(output.state, context) : undefined,
|
|
1193
|
-
};
|
|
1194
|
-
};
|
|
1195
|
-
const de_DisableActionConfiguration = (output, context) => {
|
|
1196
|
-
return {
|
|
1197
|
-
note: __expectString(output.note),
|
|
1198
|
-
};
|
|
1199
|
-
};
|
|
1200
|
-
const de_EnableActionConfiguration = (output, context) => {
|
|
1201
|
-
return {
|
|
1202
|
-
note: __expectString(output.note),
|
|
1203
|
-
};
|
|
1204
|
-
};
|
|
1205
|
-
const de_ResetActionConfiguration = (output, context) => {
|
|
1206
|
-
return {
|
|
1207
|
-
note: __expectString(output.note),
|
|
1208
|
-
};
|
|
1209
|
-
};
|
|
1210
|
-
const de_RuleEvaluation = (output, context) => {
|
|
1211
|
-
return {
|
|
1212
|
-
simpleRuleEvaluation: output.simpleRuleEvaluation != null ? de_SimpleRuleEvaluation(output.simpleRuleEvaluation, context) : undefined,
|
|
1213
|
-
};
|
|
1214
|
-
};
|
|
1215
|
-
const de_SimpleRuleEvaluation = (output, context) => {
|
|
1216
|
-
return {
|
|
1217
|
-
inputPropertyValue: __expectString(output.inputPropertyValue),
|
|
1218
|
-
operator: __expectString(output.operator),
|
|
1219
|
-
thresholdValue: __expectString(output.thresholdValue),
|
|
1220
|
-
};
|
|
1221
|
-
};
|
|
1222
|
-
const de_SnoozeActionConfiguration = (output, context) => {
|
|
1223
|
-
return {
|
|
1224
|
-
note: __expectString(output.note),
|
|
1225
|
-
snoozeDuration: __expectInt32(output.snoozeDuration),
|
|
1226
|
-
};
|
|
1227
|
-
};
|
|
1228
|
-
const de_StateChangeConfiguration = (output, context) => {
|
|
1229
|
-
return {
|
|
1230
|
-
triggerType: __expectString(output.triggerType),
|
|
1231
|
-
};
|
|
1232
|
-
};
|
|
1233
|
-
const de_SystemEvent = (output, context) => {
|
|
1234
|
-
return {
|
|
1235
|
-
eventType: __expectString(output.eventType),
|
|
1236
|
-
stateChangeConfiguration: output.stateChangeConfiguration != null
|
|
1237
|
-
? de_StateChangeConfiguration(output.stateChangeConfiguration, context)
|
|
1238
|
-
: undefined,
|
|
1239
|
-
};
|
|
902
|
+
return take(output, {
|
|
903
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
904
|
+
detectorModelName: __expectString,
|
|
905
|
+
detectorModelVersion: __expectString,
|
|
906
|
+
keyValue: __expectString,
|
|
907
|
+
lastUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
908
|
+
state: _json,
|
|
909
|
+
});
|
|
1240
910
|
};
|
|
1241
911
|
const de_Timer = (output, context) => {
|
|
1242
|
-
return {
|
|
1243
|
-
name: __expectString
|
|
1244
|
-
timestamp:
|
|
1245
|
-
};
|
|
912
|
+
return take(output, {
|
|
913
|
+
name: __expectString,
|
|
914
|
+
timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
915
|
+
});
|
|
1246
916
|
};
|
|
1247
917
|
const de_Timers = (output, context) => {
|
|
1248
918
|
const retVal = (output || [])
|
|
1249
919
|
.filter((e) => e != null)
|
|
1250
920
|
.map((entry) => {
|
|
1251
|
-
if (entry === null) {
|
|
1252
|
-
return null;
|
|
1253
|
-
}
|
|
1254
921
|
return de_Timer(entry, context);
|
|
1255
922
|
});
|
|
1256
923
|
return retVal;
|
|
1257
924
|
};
|
|
1258
|
-
const de_Variable = (output, context) => {
|
|
1259
|
-
return {
|
|
1260
|
-
name: __expectString(output.name),
|
|
1261
|
-
value: __expectString(output.value),
|
|
1262
|
-
};
|
|
1263
|
-
};
|
|
1264
|
-
const de_Variables = (output, context) => {
|
|
1265
|
-
const retVal = (output || [])
|
|
1266
|
-
.filter((e) => e != null)
|
|
1267
|
-
.map((entry) => {
|
|
1268
|
-
if (entry === null) {
|
|
1269
|
-
return null;
|
|
1270
|
-
}
|
|
1271
|
-
return de_Variable(entry, context);
|
|
1272
|
-
});
|
|
1273
|
-
return retVal;
|
|
1274
|
-
};
|
|
1275
925
|
const deserializeMetadata = (output) => ({
|
|
1276
926
|
httpStatusCode: output.statusCode,
|
|
1277
927
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|