@aws-sdk/client-iot-events-data 3.118.0 → 3.127.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +132 -155
- package/dist-es/protocols/Aws_restJson1.js +104 -127
- package/package.json +26 -26
|
@@ -14,8 +14,7 @@ export var serializeAws_restJson1BatchAcknowledgeAlarmCommand = function (input,
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/acknowledge";
|
|
17
|
-
body = JSON.stringify(__assign({}, (input.acknowledgeActionRequests
|
|
18
|
-
input.acknowledgeActionRequests !== null && {
|
|
17
|
+
body = JSON.stringify(__assign({}, (input.acknowledgeActionRequests != null && {
|
|
19
18
|
acknowledgeActionRequests: serializeAws_restJson1AcknowledgeAlarmActionRequests(input.acknowledgeActionRequests, context),
|
|
20
19
|
})));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
@@ -41,8 +40,7 @@ export var serializeAws_restJson1BatchDeleteDetectorCommand = function (input, c
|
|
|
41
40
|
"content-type": "application/json",
|
|
42
41
|
};
|
|
43
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors/delete";
|
|
44
|
-
body = JSON.stringify(__assign({}, (input.detectors
|
|
45
|
-
input.detectors !== null && {
|
|
43
|
+
body = JSON.stringify(__assign({}, (input.detectors != null && {
|
|
46
44
|
detectors: serializeAws_restJson1DeleteDetectorRequests(input.detectors, context),
|
|
47
45
|
})));
|
|
48
46
|
return [2, new __HttpRequest({
|
|
@@ -68,8 +66,7 @@ export var serializeAws_restJson1BatchDisableAlarmCommand = function (input, con
|
|
|
68
66
|
"content-type": "application/json",
|
|
69
67
|
};
|
|
70
68
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/disable";
|
|
71
|
-
body = JSON.stringify(__assign({}, (input.disableActionRequests
|
|
72
|
-
input.disableActionRequests !== null && {
|
|
69
|
+
body = JSON.stringify(__assign({}, (input.disableActionRequests != null && {
|
|
73
70
|
disableActionRequests: serializeAws_restJson1DisableAlarmActionRequests(input.disableActionRequests, context),
|
|
74
71
|
})));
|
|
75
72
|
return [2, new __HttpRequest({
|
|
@@ -95,8 +92,7 @@ export var serializeAws_restJson1BatchEnableAlarmCommand = function (input, cont
|
|
|
95
92
|
"content-type": "application/json",
|
|
96
93
|
};
|
|
97
94
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/enable";
|
|
98
|
-
body = JSON.stringify(__assign({}, (input.enableActionRequests
|
|
99
|
-
input.enableActionRequests !== null && {
|
|
95
|
+
body = JSON.stringify(__assign({}, (input.enableActionRequests != null && {
|
|
100
96
|
enableActionRequests: serializeAws_restJson1EnableAlarmActionRequests(input.enableActionRequests, context),
|
|
101
97
|
})));
|
|
102
98
|
return [2, new __HttpRequest({
|
|
@@ -122,8 +118,7 @@ export var serializeAws_restJson1BatchPutMessageCommand = function (input, conte
|
|
|
122
118
|
"content-type": "application/json",
|
|
123
119
|
};
|
|
124
120
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs/messages";
|
|
125
|
-
body = JSON.stringify(__assign({}, (input.messages
|
|
126
|
-
input.messages !== null && { messages: serializeAws_restJson1Messages(input.messages, context) })));
|
|
121
|
+
body = JSON.stringify(__assign({}, (input.messages != null && { messages: serializeAws_restJson1Messages(input.messages, context) })));
|
|
127
122
|
return [2, new __HttpRequest({
|
|
128
123
|
protocol: protocol,
|
|
129
124
|
hostname: hostname,
|
|
@@ -147,8 +142,7 @@ export var serializeAws_restJson1BatchResetAlarmCommand = function (input, conte
|
|
|
147
142
|
"content-type": "application/json",
|
|
148
143
|
};
|
|
149
144
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/reset";
|
|
150
|
-
body = JSON.stringify(__assign({}, (input.resetActionRequests
|
|
151
|
-
input.resetActionRequests !== null && {
|
|
145
|
+
body = JSON.stringify(__assign({}, (input.resetActionRequests != null && {
|
|
152
146
|
resetActionRequests: serializeAws_restJson1ResetAlarmActionRequests(input.resetActionRequests, context),
|
|
153
147
|
})));
|
|
154
148
|
return [2, new __HttpRequest({
|
|
@@ -174,8 +168,7 @@ export var serializeAws_restJson1BatchSnoozeAlarmCommand = function (input, cont
|
|
|
174
168
|
"content-type": "application/json",
|
|
175
169
|
};
|
|
176
170
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/snooze";
|
|
177
|
-
body = JSON.stringify(__assign({}, (input.snoozeActionRequests
|
|
178
|
-
input.snoozeActionRequests !== null && {
|
|
171
|
+
body = JSON.stringify(__assign({}, (input.snoozeActionRequests != null && {
|
|
179
172
|
snoozeActionRequests: serializeAws_restJson1SnoozeAlarmActionRequests(input.snoozeActionRequests, context),
|
|
180
173
|
})));
|
|
181
174
|
return [2, new __HttpRequest({
|
|
@@ -201,8 +194,7 @@ export var serializeAws_restJson1BatchUpdateDetectorCommand = function (input, c
|
|
|
201
194
|
"content-type": "application/json",
|
|
202
195
|
};
|
|
203
196
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors";
|
|
204
|
-
body = JSON.stringify(__assign({}, (input.detectors
|
|
205
|
-
input.detectors !== null && {
|
|
197
|
+
body = JSON.stringify(__assign({}, (input.detectors != null && {
|
|
206
198
|
detectors: serializeAws_restJson1UpdateDetectorRequests(input.detectors, context),
|
|
207
199
|
})));
|
|
208
200
|
return [2, new __HttpRequest({
|
|
@@ -374,7 +366,7 @@ export var deserializeAws_restJson1BatchAcknowledgeAlarmCommand = function (outp
|
|
|
374
366
|
});
|
|
375
367
|
}); };
|
|
376
368
|
var deserializeAws_restJson1BatchAcknowledgeAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
377
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
369
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
378
370
|
var _c;
|
|
379
371
|
return __generator(this, function (_d) {
|
|
380
372
|
switch (_d.label) {
|
|
@@ -384,7 +376,6 @@ var deserializeAws_restJson1BatchAcknowledgeAlarmCommandError = function (output
|
|
|
384
376
|
return [4, parseBody(output.body, context)];
|
|
385
377
|
case 1:
|
|
386
378
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
387
|
-
errorCode = "UnknownError";
|
|
388
379
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
389
380
|
_b = errorCode;
|
|
390
381
|
switch (_b) {
|
|
@@ -408,10 +399,12 @@ var deserializeAws_restJson1BatchAcknowledgeAlarmCommandError = function (output
|
|
|
408
399
|
case 9: throw _d.sent();
|
|
409
400
|
case 10:
|
|
410
401
|
parsedBody = parsedOutput.body;
|
|
402
|
+
$metadata = deserializeMetadata(output);
|
|
403
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
411
404
|
response = new __BaseException({
|
|
412
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
405
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
413
406
|
$fault: "client",
|
|
414
|
-
$metadata:
|
|
407
|
+
$metadata: $metadata,
|
|
415
408
|
});
|
|
416
409
|
throw __decorateServiceException(response, parsedBody);
|
|
417
410
|
}
|
|
@@ -442,7 +435,7 @@ export var deserializeAws_restJson1BatchDeleteDetectorCommand = function (output
|
|
|
442
435
|
});
|
|
443
436
|
}); };
|
|
444
437
|
var deserializeAws_restJson1BatchDeleteDetectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
445
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
438
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
446
439
|
var _c;
|
|
447
440
|
return __generator(this, function (_d) {
|
|
448
441
|
switch (_d.label) {
|
|
@@ -452,7 +445,6 @@ var deserializeAws_restJson1BatchDeleteDetectorCommandError = function (output,
|
|
|
452
445
|
return [4, parseBody(output.body, context)];
|
|
453
446
|
case 1:
|
|
454
447
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
455
|
-
errorCode = "UnknownError";
|
|
456
448
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
449
|
_b = errorCode;
|
|
458
450
|
switch (_b) {
|
|
@@ -476,10 +468,12 @@ var deserializeAws_restJson1BatchDeleteDetectorCommandError = function (output,
|
|
|
476
468
|
case 9: throw _d.sent();
|
|
477
469
|
case 10:
|
|
478
470
|
parsedBody = parsedOutput.body;
|
|
471
|
+
$metadata = deserializeMetadata(output);
|
|
472
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
479
473
|
response = new __BaseException({
|
|
480
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
474
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
481
475
|
$fault: "client",
|
|
482
|
-
$metadata:
|
|
476
|
+
$metadata: $metadata,
|
|
483
477
|
});
|
|
484
478
|
throw __decorateServiceException(response, parsedBody);
|
|
485
479
|
}
|
|
@@ -510,7 +504,7 @@ export var deserializeAws_restJson1BatchDisableAlarmCommand = function (output,
|
|
|
510
504
|
});
|
|
511
505
|
}); };
|
|
512
506
|
var deserializeAws_restJson1BatchDisableAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
513
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
507
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
514
508
|
var _c;
|
|
515
509
|
return __generator(this, function (_d) {
|
|
516
510
|
switch (_d.label) {
|
|
@@ -520,7 +514,6 @@ var deserializeAws_restJson1BatchDisableAlarmCommandError = function (output, co
|
|
|
520
514
|
return [4, parseBody(output.body, context)];
|
|
521
515
|
case 1:
|
|
522
516
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
523
|
-
errorCode = "UnknownError";
|
|
524
517
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
518
|
_b = errorCode;
|
|
526
519
|
switch (_b) {
|
|
@@ -544,10 +537,12 @@ var deserializeAws_restJson1BatchDisableAlarmCommandError = function (output, co
|
|
|
544
537
|
case 9: throw _d.sent();
|
|
545
538
|
case 10:
|
|
546
539
|
parsedBody = parsedOutput.body;
|
|
540
|
+
$metadata = deserializeMetadata(output);
|
|
541
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
547
542
|
response = new __BaseException({
|
|
548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
543
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
549
544
|
$fault: "client",
|
|
550
|
-
$metadata:
|
|
545
|
+
$metadata: $metadata,
|
|
551
546
|
});
|
|
552
547
|
throw __decorateServiceException(response, parsedBody);
|
|
553
548
|
}
|
|
@@ -578,7 +573,7 @@ export var deserializeAws_restJson1BatchEnableAlarmCommand = function (output, c
|
|
|
578
573
|
});
|
|
579
574
|
}); };
|
|
580
575
|
var deserializeAws_restJson1BatchEnableAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
581
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
576
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
582
577
|
var _c;
|
|
583
578
|
return __generator(this, function (_d) {
|
|
584
579
|
switch (_d.label) {
|
|
@@ -588,7 +583,6 @@ var deserializeAws_restJson1BatchEnableAlarmCommandError = function (output, con
|
|
|
588
583
|
return [4, parseBody(output.body, context)];
|
|
589
584
|
case 1:
|
|
590
585
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
591
|
-
errorCode = "UnknownError";
|
|
592
586
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
587
|
_b = errorCode;
|
|
594
588
|
switch (_b) {
|
|
@@ -612,10 +606,12 @@ var deserializeAws_restJson1BatchEnableAlarmCommandError = function (output, con
|
|
|
612
606
|
case 9: throw _d.sent();
|
|
613
607
|
case 10:
|
|
614
608
|
parsedBody = parsedOutput.body;
|
|
609
|
+
$metadata = deserializeMetadata(output);
|
|
610
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
615
611
|
response = new __BaseException({
|
|
616
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
612
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
617
613
|
$fault: "client",
|
|
618
|
-
$metadata:
|
|
614
|
+
$metadata: $metadata,
|
|
619
615
|
});
|
|
620
616
|
throw __decorateServiceException(response, parsedBody);
|
|
621
617
|
}
|
|
@@ -646,7 +642,7 @@ export var deserializeAws_restJson1BatchPutMessageCommand = function (output, co
|
|
|
646
642
|
});
|
|
647
643
|
}); };
|
|
648
644
|
var deserializeAws_restJson1BatchPutMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
649
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
645
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
650
646
|
var _c;
|
|
651
647
|
return __generator(this, function (_d) {
|
|
652
648
|
switch (_d.label) {
|
|
@@ -656,7 +652,6 @@ var deserializeAws_restJson1BatchPutMessageCommandError = function (output, cont
|
|
|
656
652
|
return [4, parseBody(output.body, context)];
|
|
657
653
|
case 1:
|
|
658
654
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
659
|
-
errorCode = "UnknownError";
|
|
660
655
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
656
|
_b = errorCode;
|
|
662
657
|
switch (_b) {
|
|
@@ -680,10 +675,12 @@ var deserializeAws_restJson1BatchPutMessageCommandError = function (output, cont
|
|
|
680
675
|
case 9: throw _d.sent();
|
|
681
676
|
case 10:
|
|
682
677
|
parsedBody = parsedOutput.body;
|
|
678
|
+
$metadata = deserializeMetadata(output);
|
|
679
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
683
680
|
response = new __BaseException({
|
|
684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
681
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
685
682
|
$fault: "client",
|
|
686
|
-
$metadata:
|
|
683
|
+
$metadata: $metadata,
|
|
687
684
|
});
|
|
688
685
|
throw __decorateServiceException(response, parsedBody);
|
|
689
686
|
}
|
|
@@ -714,7 +711,7 @@ export var deserializeAws_restJson1BatchResetAlarmCommand = function (output, co
|
|
|
714
711
|
});
|
|
715
712
|
}); };
|
|
716
713
|
var deserializeAws_restJson1BatchResetAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
717
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
714
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
718
715
|
var _c;
|
|
719
716
|
return __generator(this, function (_d) {
|
|
720
717
|
switch (_d.label) {
|
|
@@ -724,7 +721,6 @@ var deserializeAws_restJson1BatchResetAlarmCommandError = function (output, cont
|
|
|
724
721
|
return [4, parseBody(output.body, context)];
|
|
725
722
|
case 1:
|
|
726
723
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
727
|
-
errorCode = "UnknownError";
|
|
728
724
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
725
|
_b = errorCode;
|
|
730
726
|
switch (_b) {
|
|
@@ -748,10 +744,12 @@ var deserializeAws_restJson1BatchResetAlarmCommandError = function (output, cont
|
|
|
748
744
|
case 9: throw _d.sent();
|
|
749
745
|
case 10:
|
|
750
746
|
parsedBody = parsedOutput.body;
|
|
747
|
+
$metadata = deserializeMetadata(output);
|
|
748
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
751
749
|
response = new __BaseException({
|
|
752
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
750
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
753
751
|
$fault: "client",
|
|
754
|
-
$metadata:
|
|
752
|
+
$metadata: $metadata,
|
|
755
753
|
});
|
|
756
754
|
throw __decorateServiceException(response, parsedBody);
|
|
757
755
|
}
|
|
@@ -782,7 +780,7 @@ export var deserializeAws_restJson1BatchSnoozeAlarmCommand = function (output, c
|
|
|
782
780
|
});
|
|
783
781
|
}); };
|
|
784
782
|
var deserializeAws_restJson1BatchSnoozeAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
785
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
783
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
786
784
|
var _c;
|
|
787
785
|
return __generator(this, function (_d) {
|
|
788
786
|
switch (_d.label) {
|
|
@@ -792,7 +790,6 @@ var deserializeAws_restJson1BatchSnoozeAlarmCommandError = function (output, con
|
|
|
792
790
|
return [4, parseBody(output.body, context)];
|
|
793
791
|
case 1:
|
|
794
792
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
795
|
-
errorCode = "UnknownError";
|
|
796
793
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
797
794
|
_b = errorCode;
|
|
798
795
|
switch (_b) {
|
|
@@ -816,10 +813,12 @@ var deserializeAws_restJson1BatchSnoozeAlarmCommandError = function (output, con
|
|
|
816
813
|
case 9: throw _d.sent();
|
|
817
814
|
case 10:
|
|
818
815
|
parsedBody = parsedOutput.body;
|
|
816
|
+
$metadata = deserializeMetadata(output);
|
|
817
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
819
818
|
response = new __BaseException({
|
|
820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
819
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
821
820
|
$fault: "client",
|
|
822
|
-
$metadata:
|
|
821
|
+
$metadata: $metadata,
|
|
823
822
|
});
|
|
824
823
|
throw __decorateServiceException(response, parsedBody);
|
|
825
824
|
}
|
|
@@ -850,7 +849,7 @@ export var deserializeAws_restJson1BatchUpdateDetectorCommand = function (output
|
|
|
850
849
|
});
|
|
851
850
|
}); };
|
|
852
851
|
var deserializeAws_restJson1BatchUpdateDetectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
853
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
852
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
854
853
|
var _c;
|
|
855
854
|
return __generator(this, function (_d) {
|
|
856
855
|
switch (_d.label) {
|
|
@@ -860,7 +859,6 @@ var deserializeAws_restJson1BatchUpdateDetectorCommandError = function (output,
|
|
|
860
859
|
return [4, parseBody(output.body, context)];
|
|
861
860
|
case 1:
|
|
862
861
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
863
|
-
errorCode = "UnknownError";
|
|
864
862
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
863
|
_b = errorCode;
|
|
866
864
|
switch (_b) {
|
|
@@ -884,10 +882,12 @@ var deserializeAws_restJson1BatchUpdateDetectorCommandError = function (output,
|
|
|
884
882
|
case 9: throw _d.sent();
|
|
885
883
|
case 10:
|
|
886
884
|
parsedBody = parsedOutput.body;
|
|
885
|
+
$metadata = deserializeMetadata(output);
|
|
886
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
887
887
|
response = new __BaseException({
|
|
888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
888
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
889
889
|
$fault: "client",
|
|
890
|
-
$metadata:
|
|
890
|
+
$metadata: $metadata,
|
|
891
891
|
});
|
|
892
892
|
throw __decorateServiceException(response, parsedBody);
|
|
893
893
|
}
|
|
@@ -918,7 +918,7 @@ export var deserializeAws_restJson1DescribeAlarmCommand = function (output, cont
|
|
|
918
918
|
});
|
|
919
919
|
}); };
|
|
920
920
|
var deserializeAws_restJson1DescribeAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
921
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
921
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
922
922
|
var _c;
|
|
923
923
|
return __generator(this, function (_d) {
|
|
924
924
|
switch (_d.label) {
|
|
@@ -928,7 +928,6 @@ var deserializeAws_restJson1DescribeAlarmCommandError = function (output, contex
|
|
|
928
928
|
return [4, parseBody(output.body, context)];
|
|
929
929
|
case 1:
|
|
930
930
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
931
|
-
errorCode = "UnknownError";
|
|
932
931
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
933
932
|
_b = errorCode;
|
|
934
933
|
switch (_b) {
|
|
@@ -956,10 +955,12 @@ var deserializeAws_restJson1DescribeAlarmCommandError = function (output, contex
|
|
|
956
955
|
case 11: throw _d.sent();
|
|
957
956
|
case 12:
|
|
958
957
|
parsedBody = parsedOutput.body;
|
|
958
|
+
$metadata = deserializeMetadata(output);
|
|
959
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
959
960
|
response = new __BaseException({
|
|
960
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
961
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
961
962
|
$fault: "client",
|
|
962
|
-
$metadata:
|
|
963
|
+
$metadata: $metadata,
|
|
963
964
|
});
|
|
964
965
|
throw __decorateServiceException(response, parsedBody);
|
|
965
966
|
}
|
|
@@ -990,7 +991,7 @@ export var deserializeAws_restJson1DescribeDetectorCommand = function (output, c
|
|
|
990
991
|
});
|
|
991
992
|
}); };
|
|
992
993
|
var deserializeAws_restJson1DescribeDetectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
993
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
994
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
994
995
|
var _c;
|
|
995
996
|
return __generator(this, function (_d) {
|
|
996
997
|
switch (_d.label) {
|
|
@@ -1000,7 +1001,6 @@ var deserializeAws_restJson1DescribeDetectorCommandError = function (output, con
|
|
|
1000
1001
|
return [4, parseBody(output.body, context)];
|
|
1001
1002
|
case 1:
|
|
1002
1003
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1003
|
-
errorCode = "UnknownError";
|
|
1004
1004
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1005
1005
|
_b = errorCode;
|
|
1006
1006
|
switch (_b) {
|
|
@@ -1028,10 +1028,12 @@ var deserializeAws_restJson1DescribeDetectorCommandError = function (output, con
|
|
|
1028
1028
|
case 11: throw _d.sent();
|
|
1029
1029
|
case 12:
|
|
1030
1030
|
parsedBody = parsedOutput.body;
|
|
1031
|
+
$metadata = deserializeMetadata(output);
|
|
1032
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1031
1033
|
response = new __BaseException({
|
|
1032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1033
1035
|
$fault: "client",
|
|
1034
|
-
$metadata:
|
|
1036
|
+
$metadata: $metadata,
|
|
1035
1037
|
});
|
|
1036
1038
|
throw __decorateServiceException(response, parsedBody);
|
|
1037
1039
|
}
|
|
@@ -1066,7 +1068,7 @@ export var deserializeAws_restJson1ListAlarmsCommand = function (output, context
|
|
|
1066
1068
|
});
|
|
1067
1069
|
}); };
|
|
1068
1070
|
var deserializeAws_restJson1ListAlarmsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1069
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1071
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1070
1072
|
var _c;
|
|
1071
1073
|
return __generator(this, function (_d) {
|
|
1072
1074
|
switch (_d.label) {
|
|
@@ -1076,7 +1078,6 @@ var deserializeAws_restJson1ListAlarmsCommandError = function (output, context)
|
|
|
1076
1078
|
return [4, parseBody(output.body, context)];
|
|
1077
1079
|
case 1:
|
|
1078
1080
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1079
|
-
errorCode = "UnknownError";
|
|
1080
1081
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
1082
|
_b = errorCode;
|
|
1082
1083
|
switch (_b) {
|
|
@@ -1104,10 +1105,12 @@ var deserializeAws_restJson1ListAlarmsCommandError = function (output, context)
|
|
|
1104
1105
|
case 11: throw _d.sent();
|
|
1105
1106
|
case 12:
|
|
1106
1107
|
parsedBody = parsedOutput.body;
|
|
1108
|
+
$metadata = deserializeMetadata(output);
|
|
1109
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1107
1110
|
response = new __BaseException({
|
|
1108
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1111
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1109
1112
|
$fault: "client",
|
|
1110
|
-
$metadata:
|
|
1113
|
+
$metadata: $metadata,
|
|
1111
1114
|
});
|
|
1112
1115
|
throw __decorateServiceException(response, parsedBody);
|
|
1113
1116
|
}
|
|
@@ -1142,7 +1145,7 @@ export var deserializeAws_restJson1ListDetectorsCommand = function (output, cont
|
|
|
1142
1145
|
});
|
|
1143
1146
|
}); };
|
|
1144
1147
|
var deserializeAws_restJson1ListDetectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1145
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1148
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1146
1149
|
var _c;
|
|
1147
1150
|
return __generator(this, function (_d) {
|
|
1148
1151
|
switch (_d.label) {
|
|
@@ -1152,7 +1155,6 @@ var deserializeAws_restJson1ListDetectorsCommandError = function (output, contex
|
|
|
1152
1155
|
return [4, parseBody(output.body, context)];
|
|
1153
1156
|
case 1:
|
|
1154
1157
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1155
|
-
errorCode = "UnknownError";
|
|
1156
1158
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
1159
|
_b = errorCode;
|
|
1158
1160
|
switch (_b) {
|
|
@@ -1180,10 +1182,12 @@ var deserializeAws_restJson1ListDetectorsCommandError = function (output, contex
|
|
|
1180
1182
|
case 11: throw _d.sent();
|
|
1181
1183
|
case 12:
|
|
1182
1184
|
parsedBody = parsedOutput.body;
|
|
1185
|
+
$metadata = deserializeMetadata(output);
|
|
1186
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1183
1187
|
response = new __BaseException({
|
|
1184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1185
1189
|
$fault: "client",
|
|
1186
|
-
$metadata:
|
|
1190
|
+
$metadata: $metadata,
|
|
1187
1191
|
});
|
|
1188
1192
|
throw __decorateServiceException(response, parsedBody);
|
|
1189
1193
|
}
|
|
@@ -1250,8 +1254,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
1250
1254
|
});
|
|
1251
1255
|
}); };
|
|
1252
1256
|
var serializeAws_restJson1AcknowledgeAlarmActionRequest = function (input, context) {
|
|
1253
|
-
return __assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1254
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }));
|
|
1257
|
+
return __assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId }));
|
|
1255
1258
|
};
|
|
1256
1259
|
var serializeAws_restJson1AcknowledgeAlarmActionRequests = function (input, context) {
|
|
1257
1260
|
return input
|
|
@@ -1264,8 +1267,7 @@ var serializeAws_restJson1AcknowledgeAlarmActionRequests = function (input, cont
|
|
|
1264
1267
|
});
|
|
1265
1268
|
};
|
|
1266
1269
|
var serializeAws_restJson1DeleteDetectorRequest = function (input, context) {
|
|
1267
|
-
return __assign(__assign(__assign({}, (input.detectorModelName
|
|
1268
|
-
input.detectorModelName !== null && { detectorModelName: input.detectorModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.messageId !== undefined && input.messageId !== null && { messageId: input.messageId }));
|
|
1270
|
+
return __assign(__assign(__assign({}, (input.detectorModelName != null && { detectorModelName: input.detectorModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.messageId != null && { messageId: input.messageId }));
|
|
1269
1271
|
};
|
|
1270
1272
|
var serializeAws_restJson1DeleteDetectorRequests = function (input, context) {
|
|
1271
1273
|
return input
|
|
@@ -1278,13 +1280,10 @@ var serializeAws_restJson1DeleteDetectorRequests = function (input, context) {
|
|
|
1278
1280
|
});
|
|
1279
1281
|
};
|
|
1280
1282
|
var serializeAws_restJson1DetectorStateDefinition = function (input, context) {
|
|
1281
|
-
return __assign(__assign(__assign({}, (input.stateName
|
|
1282
|
-
input.timers !== null && { timers: serializeAws_restJson1TimerDefinitions(input.timers, context) })), (input.variables !== undefined &&
|
|
1283
|
-
input.variables !== null && { variables: serializeAws_restJson1VariableDefinitions(input.variables, context) }));
|
|
1283
|
+
return __assign(__assign(__assign({}, (input.stateName != null && { stateName: input.stateName })), (input.timers != null && { timers: serializeAws_restJson1TimerDefinitions(input.timers, context) })), (input.variables != null && { variables: serializeAws_restJson1VariableDefinitions(input.variables, context) }));
|
|
1284
1284
|
};
|
|
1285
1285
|
var serializeAws_restJson1DisableAlarmActionRequest = function (input, context) {
|
|
1286
|
-
return __assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1287
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }));
|
|
1286
|
+
return __assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId }));
|
|
1288
1287
|
};
|
|
1289
1288
|
var serializeAws_restJson1DisableAlarmActionRequests = function (input, context) {
|
|
1290
1289
|
return input
|
|
@@ -1297,8 +1296,7 @@ var serializeAws_restJson1DisableAlarmActionRequests = function (input, context)
|
|
|
1297
1296
|
});
|
|
1298
1297
|
};
|
|
1299
1298
|
var serializeAws_restJson1EnableAlarmActionRequest = function (input, context) {
|
|
1300
|
-
return __assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1301
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }));
|
|
1299
|
+
return __assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId }));
|
|
1302
1300
|
};
|
|
1303
1301
|
var serializeAws_restJson1EnableAlarmActionRequests = function (input, context) {
|
|
1304
1302
|
return input
|
|
@@ -1311,8 +1309,7 @@ var serializeAws_restJson1EnableAlarmActionRequests = function (input, context)
|
|
|
1311
1309
|
});
|
|
1312
1310
|
};
|
|
1313
1311
|
var serializeAws_restJson1Message = function (input, context) {
|
|
1314
|
-
return __assign(__assign(__assign(__assign({}, (input.inputName
|
|
1315
|
-
input.timestamp !== null && { timestamp: serializeAws_restJson1TimestampValue(input.timestamp, context) }));
|
|
1312
|
+
return __assign(__assign(__assign(__assign({}, (input.inputName != null && { inputName: input.inputName })), (input.messageId != null && { messageId: input.messageId })), (input.payload != null && { payload: context.base64Encoder(input.payload) })), (input.timestamp != null && { timestamp: serializeAws_restJson1TimestampValue(input.timestamp, context) }));
|
|
1316
1313
|
};
|
|
1317
1314
|
var serializeAws_restJson1Messages = function (input, context) {
|
|
1318
1315
|
return input
|
|
@@ -1325,8 +1322,7 @@ var serializeAws_restJson1Messages = function (input, context) {
|
|
|
1325
1322
|
});
|
|
1326
1323
|
};
|
|
1327
1324
|
var serializeAws_restJson1ResetAlarmActionRequest = function (input, context) {
|
|
1328
|
-
return __assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1329
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }));
|
|
1325
|
+
return __assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId }));
|
|
1330
1326
|
};
|
|
1331
1327
|
var serializeAws_restJson1ResetAlarmActionRequests = function (input, context) {
|
|
1332
1328
|
return input
|
|
@@ -1339,9 +1335,7 @@ var serializeAws_restJson1ResetAlarmActionRequests = function (input, context) {
|
|
|
1339
1335
|
});
|
|
1340
1336
|
};
|
|
1341
1337
|
var serializeAws_restJson1SnoozeAlarmActionRequest = function (input, context) {
|
|
1342
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1343
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId })), (input.snoozeDuration !== undefined &&
|
|
1344
|
-
input.snoozeDuration !== null && { snoozeDuration: input.snoozeDuration }));
|
|
1338
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId })), (input.snoozeDuration != null && { snoozeDuration: input.snoozeDuration }));
|
|
1345
1339
|
};
|
|
1346
1340
|
var serializeAws_restJson1SnoozeAlarmActionRequests = function (input, context) {
|
|
1347
1341
|
return input
|
|
@@ -1354,7 +1348,7 @@ var serializeAws_restJson1SnoozeAlarmActionRequests = function (input, context)
|
|
|
1354
1348
|
});
|
|
1355
1349
|
};
|
|
1356
1350
|
var serializeAws_restJson1TimerDefinition = function (input, context) {
|
|
1357
|
-
return __assign(__assign({}, (input.name
|
|
1351
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.seconds != null && { seconds: input.seconds }));
|
|
1358
1352
|
};
|
|
1359
1353
|
var serializeAws_restJson1TimerDefinitions = function (input, context) {
|
|
1360
1354
|
return input
|
|
@@ -1367,12 +1361,10 @@ var serializeAws_restJson1TimerDefinitions = function (input, context) {
|
|
|
1367
1361
|
});
|
|
1368
1362
|
};
|
|
1369
1363
|
var serializeAws_restJson1TimestampValue = function (input, context) {
|
|
1370
|
-
return __assign({}, (input.timeInMillis
|
|
1364
|
+
return __assign({}, (input.timeInMillis != null && { timeInMillis: input.timeInMillis }));
|
|
1371
1365
|
};
|
|
1372
1366
|
var serializeAws_restJson1UpdateDetectorRequest = function (input, context) {
|
|
1373
|
-
return __assign(__assign(__assign(__assign({}, (input.detectorModelName
|
|
1374
|
-
input.detectorModelName !== null && { detectorModelName: input.detectorModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.messageId !== undefined && input.messageId !== null && { messageId: input.messageId })), (input.state !== undefined &&
|
|
1375
|
-
input.state !== null && { state: serializeAws_restJson1DetectorStateDefinition(input.state, context) }));
|
|
1367
|
+
return __assign(__assign(__assign(__assign({}, (input.detectorModelName != null && { detectorModelName: input.detectorModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.messageId != null && { messageId: input.messageId })), (input.state != null && { state: serializeAws_restJson1DetectorStateDefinition(input.state, context) }));
|
|
1376
1368
|
};
|
|
1377
1369
|
var serializeAws_restJson1UpdateDetectorRequests = function (input, context) {
|
|
1378
1370
|
return input
|
|
@@ -1385,7 +1377,7 @@ var serializeAws_restJson1UpdateDetectorRequests = function (input, context) {
|
|
|
1385
1377
|
});
|
|
1386
1378
|
};
|
|
1387
1379
|
var serializeAws_restJson1VariableDefinition = function (input, context) {
|
|
1388
|
-
return __assign(__assign({}, (input.name
|
|
1380
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
|
|
1389
1381
|
};
|
|
1390
1382
|
var serializeAws_restJson1VariableDefinitions = function (input, context) {
|
|
1391
1383
|
return input
|
|
@@ -1406,14 +1398,12 @@ var deserializeAws_restJson1Alarm = function (output, context) {
|
|
|
1406
1398
|
return {
|
|
1407
1399
|
alarmModelName: __expectString(output.alarmModelName),
|
|
1408
1400
|
alarmModelVersion: __expectString(output.alarmModelVersion),
|
|
1409
|
-
alarmState: output.alarmState
|
|
1410
|
-
|
|
1411
|
-
: undefined,
|
|
1412
|
-
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1401
|
+
alarmState: output.alarmState != null ? deserializeAws_restJson1AlarmState(output.alarmState, context) : undefined,
|
|
1402
|
+
creationTime: output.creationTime != null
|
|
1413
1403
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
1414
1404
|
: undefined,
|
|
1415
1405
|
keyValue: __expectString(output.keyValue),
|
|
1416
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1406
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1417
1407
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1418
1408
|
: undefined,
|
|
1419
1409
|
severity: __expectInt32(output.severity),
|
|
@@ -1421,16 +1411,14 @@ var deserializeAws_restJson1Alarm = function (output, context) {
|
|
|
1421
1411
|
};
|
|
1422
1412
|
var deserializeAws_restJson1AlarmState = function (output, context) {
|
|
1423
1413
|
return {
|
|
1424
|
-
customerAction: output.customerAction
|
|
1414
|
+
customerAction: output.customerAction != null
|
|
1425
1415
|
? deserializeAws_restJson1CustomerAction(output.customerAction, context)
|
|
1426
1416
|
: undefined,
|
|
1427
|
-
ruleEvaluation: output.ruleEvaluation
|
|
1417
|
+
ruleEvaluation: output.ruleEvaluation != null
|
|
1428
1418
|
? deserializeAws_restJson1RuleEvaluation(output.ruleEvaluation, context)
|
|
1429
1419
|
: undefined,
|
|
1430
1420
|
stateName: __expectString(output.stateName),
|
|
1431
|
-
systemEvent: output.systemEvent
|
|
1432
|
-
? deserializeAws_restJson1SystemEvent(output.systemEvent, context)
|
|
1433
|
-
: undefined,
|
|
1421
|
+
systemEvent: output.systemEvent != null ? deserializeAws_restJson1SystemEvent(output.systemEvent, context) : undefined,
|
|
1434
1422
|
};
|
|
1435
1423
|
};
|
|
1436
1424
|
var deserializeAws_restJson1AlarmSummaries = function (output, context) {
|
|
@@ -1448,11 +1436,11 @@ var deserializeAws_restJson1AlarmSummary = function (output, context) {
|
|
|
1448
1436
|
return {
|
|
1449
1437
|
alarmModelName: __expectString(output.alarmModelName),
|
|
1450
1438
|
alarmModelVersion: __expectString(output.alarmModelVersion),
|
|
1451
|
-
creationTime: output.creationTime
|
|
1439
|
+
creationTime: output.creationTime != null
|
|
1452
1440
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
1453
1441
|
: undefined,
|
|
1454
1442
|
keyValue: __expectString(output.keyValue),
|
|
1455
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1443
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1456
1444
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1457
1445
|
: undefined,
|
|
1458
1446
|
stateName: __expectString(output.stateName),
|
|
@@ -1532,49 +1520,43 @@ var deserializeAws_restJson1BatchUpdateDetectorErrorEntry = function (output, co
|
|
|
1532
1520
|
};
|
|
1533
1521
|
var deserializeAws_restJson1CustomerAction = function (output, context) {
|
|
1534
1522
|
return {
|
|
1535
|
-
acknowledgeActionConfiguration: output.acknowledgeActionConfiguration
|
|
1523
|
+
acknowledgeActionConfiguration: output.acknowledgeActionConfiguration != null
|
|
1536
1524
|
? deserializeAws_restJson1AcknowledgeActionConfiguration(output.acknowledgeActionConfiguration, context)
|
|
1537
1525
|
: undefined,
|
|
1538
1526
|
actionName: __expectString(output.actionName),
|
|
1539
|
-
disableActionConfiguration: output.disableActionConfiguration
|
|
1527
|
+
disableActionConfiguration: output.disableActionConfiguration != null
|
|
1540
1528
|
? deserializeAws_restJson1DisableActionConfiguration(output.disableActionConfiguration, context)
|
|
1541
1529
|
: undefined,
|
|
1542
|
-
enableActionConfiguration: output.enableActionConfiguration
|
|
1530
|
+
enableActionConfiguration: output.enableActionConfiguration != null
|
|
1543
1531
|
? deserializeAws_restJson1EnableActionConfiguration(output.enableActionConfiguration, context)
|
|
1544
1532
|
: undefined,
|
|
1545
|
-
resetActionConfiguration: output.resetActionConfiguration
|
|
1533
|
+
resetActionConfiguration: output.resetActionConfiguration != null
|
|
1546
1534
|
? deserializeAws_restJson1ResetActionConfiguration(output.resetActionConfiguration, context)
|
|
1547
1535
|
: undefined,
|
|
1548
|
-
snoozeActionConfiguration: output.snoozeActionConfiguration
|
|
1536
|
+
snoozeActionConfiguration: output.snoozeActionConfiguration != null
|
|
1549
1537
|
? deserializeAws_restJson1SnoozeActionConfiguration(output.snoozeActionConfiguration, context)
|
|
1550
1538
|
: undefined,
|
|
1551
1539
|
};
|
|
1552
1540
|
};
|
|
1553
1541
|
var deserializeAws_restJson1Detector = function (output, context) {
|
|
1554
1542
|
return {
|
|
1555
|
-
creationTime: output.creationTime
|
|
1543
|
+
creationTime: output.creationTime != null
|
|
1556
1544
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
1557
1545
|
: undefined,
|
|
1558
1546
|
detectorModelName: __expectString(output.detectorModelName),
|
|
1559
1547
|
detectorModelVersion: __expectString(output.detectorModelVersion),
|
|
1560
1548
|
keyValue: __expectString(output.keyValue),
|
|
1561
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1549
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1562
1550
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1563
1551
|
: undefined,
|
|
1564
|
-
state: output.state
|
|
1565
|
-
? deserializeAws_restJson1DetectorState(output.state, context)
|
|
1566
|
-
: undefined,
|
|
1552
|
+
state: output.state != null ? deserializeAws_restJson1DetectorState(output.state, context) : undefined,
|
|
1567
1553
|
};
|
|
1568
1554
|
};
|
|
1569
1555
|
var deserializeAws_restJson1DetectorState = function (output, context) {
|
|
1570
1556
|
return {
|
|
1571
1557
|
stateName: __expectString(output.stateName),
|
|
1572
|
-
timers: output.timers
|
|
1573
|
-
|
|
1574
|
-
: undefined,
|
|
1575
|
-
variables: output.variables !== undefined && output.variables !== null
|
|
1576
|
-
? deserializeAws_restJson1Variables(output.variables, context)
|
|
1577
|
-
: undefined,
|
|
1558
|
+
timers: output.timers != null ? deserializeAws_restJson1Timers(output.timers, context) : undefined,
|
|
1559
|
+
variables: output.variables != null ? deserializeAws_restJson1Variables(output.variables, context) : undefined,
|
|
1578
1560
|
};
|
|
1579
1561
|
};
|
|
1580
1562
|
var deserializeAws_restJson1DetectorStateSummary = function (output, context) {
|
|
@@ -1595,18 +1577,16 @@ var deserializeAws_restJson1DetectorSummaries = function (output, context) {
|
|
|
1595
1577
|
};
|
|
1596
1578
|
var deserializeAws_restJson1DetectorSummary = function (output, context) {
|
|
1597
1579
|
return {
|
|
1598
|
-
creationTime: output.creationTime
|
|
1580
|
+
creationTime: output.creationTime != null
|
|
1599
1581
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
1600
1582
|
: undefined,
|
|
1601
1583
|
detectorModelName: __expectString(output.detectorModelName),
|
|
1602
1584
|
detectorModelVersion: __expectString(output.detectorModelVersion),
|
|
1603
1585
|
keyValue: __expectString(output.keyValue),
|
|
1604
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1586
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1605
1587
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1606
1588
|
: undefined,
|
|
1607
|
-
state: output.state
|
|
1608
|
-
? deserializeAws_restJson1DetectorStateSummary(output.state, context)
|
|
1609
|
-
: undefined,
|
|
1589
|
+
state: output.state != null ? deserializeAws_restJson1DetectorStateSummary(output.state, context) : undefined,
|
|
1610
1590
|
};
|
|
1611
1591
|
};
|
|
1612
1592
|
var deserializeAws_restJson1DisableActionConfiguration = function (output, context) {
|
|
@@ -1626,7 +1606,7 @@ var deserializeAws_restJson1ResetActionConfiguration = function (output, context
|
|
|
1626
1606
|
};
|
|
1627
1607
|
var deserializeAws_restJson1RuleEvaluation = function (output, context) {
|
|
1628
1608
|
return {
|
|
1629
|
-
simpleRuleEvaluation: output.simpleRuleEvaluation
|
|
1609
|
+
simpleRuleEvaluation: output.simpleRuleEvaluation != null
|
|
1630
1610
|
? deserializeAws_restJson1SimpleRuleEvaluation(output.simpleRuleEvaluation, context)
|
|
1631
1611
|
: undefined,
|
|
1632
1612
|
};
|
|
@@ -1652,7 +1632,7 @@ var deserializeAws_restJson1StateChangeConfiguration = function (output, context
|
|
|
1652
1632
|
var deserializeAws_restJson1SystemEvent = function (output, context) {
|
|
1653
1633
|
return {
|
|
1654
1634
|
eventType: __expectString(output.eventType),
|
|
1655
|
-
stateChangeConfiguration: output.stateChangeConfiguration
|
|
1635
|
+
stateChangeConfiguration: output.stateChangeConfiguration != null
|
|
1656
1636
|
? deserializeAws_restJson1StateChangeConfiguration(output.stateChangeConfiguration, context)
|
|
1657
1637
|
: undefined,
|
|
1658
1638
|
};
|
|
@@ -1660,9 +1640,7 @@ var deserializeAws_restJson1SystemEvent = function (output, context) {
|
|
|
1660
1640
|
var deserializeAws_restJson1Timer = function (output, context) {
|
|
1661
1641
|
return {
|
|
1662
1642
|
name: __expectString(output.name),
|
|
1663
|
-
timestamp: output.timestamp
|
|
1664
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
|
|
1665
|
-
: undefined,
|
|
1643
|
+
timestamp: output.timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp))) : undefined,
|
|
1666
1644
|
};
|
|
1667
1645
|
};
|
|
1668
1646
|
var deserializeAws_restJson1Timers = function (output, context) {
|
|
@@ -1749,5 +1727,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1749
1727
|
if (data["__type"] !== undefined) {
|
|
1750
1728
|
return sanitizeErrorCode(data["__type"]);
|
|
1751
1729
|
}
|
|
1752
|
-
return "";
|
|
1753
1730
|
};
|