@aws-sdk/client-iot-events 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 +380 -546
- package/dist-es/protocols/Aws_restJson1.js +291 -457
- package/package.json +26 -26
|
@@ -14,19 +14,13 @@ export var serializeAws_restJson1CreateAlarmModelCommand = function (input, cont
|
|
|
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 || "") + "/alarm-models";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarmCapabilities
|
|
18
|
-
input.alarmCapabilities !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarmCapabilities != null && {
|
|
19
18
|
alarmCapabilities: serializeAws_restJson1AlarmCapabilities(input.alarmCapabilities, context),
|
|
20
|
-
})), (input.alarmEventActions
|
|
21
|
-
input.alarmEventActions !== null && {
|
|
19
|
+
})), (input.alarmEventActions != null && {
|
|
22
20
|
alarmEventActions: serializeAws_restJson1AlarmEventActions(input.alarmEventActions, context),
|
|
23
|
-
})), (input.alarmModelDescription
|
|
24
|
-
input.alarmModelDescription !== null && { alarmModelDescription: input.alarmModelDescription })), (input.alarmModelName !== undefined &&
|
|
25
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.alarmNotification !== undefined &&
|
|
26
|
-
input.alarmNotification !== null && {
|
|
21
|
+
})), (input.alarmModelDescription != null && { alarmModelDescription: input.alarmModelDescription })), (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.alarmNotification != null && {
|
|
27
22
|
alarmNotification: serializeAws_restJson1AlarmNotification(input.alarmNotification, context),
|
|
28
|
-
})), (input.alarmRule
|
|
29
|
-
input.alarmRule !== null && { alarmRule: serializeAws_restJson1AlarmRule(input.alarmRule, context) })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.severity !== undefined && input.severity !== null && { severity: input.severity })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
23
|
+
})), (input.alarmRule != null && { alarmRule: serializeAws_restJson1AlarmRule(input.alarmRule, context) })), (input.key != null && { key: input.key })), (input.roleArn != null && { roleArn: input.roleArn })), (input.severity != null && { severity: input.severity })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
30
24
|
return [2, new __HttpRequest({
|
|
31
25
|
protocol: protocol,
|
|
32
26
|
hostname: hostname,
|
|
@@ -50,13 +44,9 @@ export var serializeAws_restJson1CreateDetectorModelCommand = function (input, c
|
|
|
50
44
|
"content-type": "application/json",
|
|
51
45
|
};
|
|
52
46
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detector-models";
|
|
53
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorModelDefinition
|
|
54
|
-
input.detectorModelDefinition !== null && {
|
|
47
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorModelDefinition != null && {
|
|
55
48
|
detectorModelDefinition: serializeAws_restJson1DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
56
|
-
})), (input.detectorModelDescription
|
|
57
|
-
input.detectorModelDescription !== null && { detectorModelDescription: input.detectorModelDescription })), (input.detectorModelName !== undefined &&
|
|
58
|
-
input.detectorModelName !== null && { detectorModelName: input.detectorModelName })), (input.evaluationMethod !== undefined &&
|
|
59
|
-
input.evaluationMethod !== null && { evaluationMethod: input.evaluationMethod })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
49
|
+
})), (input.detectorModelDescription != null && { detectorModelDescription: input.detectorModelDescription })), (input.detectorModelName != null && { detectorModelName: input.detectorModelName })), (input.evaluationMethod != null && { evaluationMethod: input.evaluationMethod })), (input.key != null && { key: input.key })), (input.roleArn != null && { roleArn: input.roleArn })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
60
50
|
return [2, new __HttpRequest({
|
|
61
51
|
protocol: protocol,
|
|
62
52
|
hostname: hostname,
|
|
@@ -80,11 +70,9 @@ export var serializeAws_restJson1CreateInputCommand = function (input, context)
|
|
|
80
70
|
"content-type": "application/json",
|
|
81
71
|
};
|
|
82
72
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs";
|
|
83
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.inputDefinition
|
|
84
|
-
input.inputDefinition !== null && {
|
|
73
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.inputDefinition != null && {
|
|
85
74
|
inputDefinition: serializeAws_restJson1InputDefinition(input.inputDefinition, context),
|
|
86
|
-
})), (input.inputDescription
|
|
87
|
-
input.inputDescription !== null && { inputDescription: input.inputDescription })), (input.inputName !== undefined && input.inputName !== null && { inputName: input.inputName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
75
|
+
})), (input.inputDescription != null && { inputDescription: input.inputDescription })), (input.inputName != null && { inputName: input.inputName })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
88
76
|
return [2, new __HttpRequest({
|
|
89
77
|
protocol: protocol,
|
|
90
78
|
hostname: hostname,
|
|
@@ -500,10 +488,9 @@ export var serializeAws_restJson1ListInputRoutingsCommand = function (input, con
|
|
|
500
488
|
"content-type": "application/json",
|
|
501
489
|
};
|
|
502
490
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/input-routings";
|
|
503
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.inputIdentifier
|
|
504
|
-
input.inputIdentifier !== null && {
|
|
491
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.inputIdentifier != null && {
|
|
505
492
|
inputIdentifier: serializeAws_restJson1InputIdentifier(input.inputIdentifier, context),
|
|
506
|
-
})), (input.maxResults
|
|
493
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
507
494
|
return [2, new __HttpRequest({
|
|
508
495
|
protocol: protocol,
|
|
509
496
|
hostname: hostname,
|
|
@@ -573,8 +560,7 @@ export var serializeAws_restJson1PutLoggingOptionsCommand = function (input, con
|
|
|
573
560
|
"content-type": "application/json",
|
|
574
561
|
};
|
|
575
562
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/logging";
|
|
576
|
-
body = JSON.stringify(__assign({}, (input.loggingOptions
|
|
577
|
-
input.loggingOptions !== null && {
|
|
563
|
+
body = JSON.stringify(__assign({}, (input.loggingOptions != null && {
|
|
578
564
|
loggingOptions: serializeAws_restJson1LoggingOptions(input.loggingOptions, context),
|
|
579
565
|
})));
|
|
580
566
|
return [2, new __HttpRequest({
|
|
@@ -600,8 +586,7 @@ export var serializeAws_restJson1StartDetectorModelAnalysisCommand = function (i
|
|
|
600
586
|
"content-type": "application/json",
|
|
601
587
|
};
|
|
602
588
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analysis/detector-models";
|
|
603
|
-
body = JSON.stringify(__assign({}, (input.detectorModelDefinition
|
|
604
|
-
input.detectorModelDefinition !== null && {
|
|
589
|
+
body = JSON.stringify(__assign({}, (input.detectorModelDefinition != null && {
|
|
605
590
|
detectorModelDefinition: serializeAws_restJson1DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
606
591
|
})));
|
|
607
592
|
return [2, new __HttpRequest({
|
|
@@ -628,7 +613,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
628
613
|
};
|
|
629
614
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
630
615
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
631
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
616
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
632
617
|
return [2, new __HttpRequest({
|
|
633
618
|
protocol: protocol,
|
|
634
619
|
hostname: hostname,
|
|
@@ -686,18 +671,13 @@ export var serializeAws_restJson1UpdateAlarmModelCommand = function (input, cont
|
|
|
686
671
|
else {
|
|
687
672
|
throw new Error("No value provided for input HTTP label: alarmModelName.");
|
|
688
673
|
}
|
|
689
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarmCapabilities
|
|
690
|
-
input.alarmCapabilities !== null && {
|
|
674
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarmCapabilities != null && {
|
|
691
675
|
alarmCapabilities: serializeAws_restJson1AlarmCapabilities(input.alarmCapabilities, context),
|
|
692
|
-
})), (input.alarmEventActions
|
|
693
|
-
input.alarmEventActions !== null && {
|
|
676
|
+
})), (input.alarmEventActions != null && {
|
|
694
677
|
alarmEventActions: serializeAws_restJson1AlarmEventActions(input.alarmEventActions, context),
|
|
695
|
-
})), (input.alarmModelDescription
|
|
696
|
-
input.alarmModelDescription !== null && { alarmModelDescription: input.alarmModelDescription })), (input.alarmNotification !== undefined &&
|
|
697
|
-
input.alarmNotification !== null && {
|
|
678
|
+
})), (input.alarmModelDescription != null && { alarmModelDescription: input.alarmModelDescription })), (input.alarmNotification != null && {
|
|
698
679
|
alarmNotification: serializeAws_restJson1AlarmNotification(input.alarmNotification, context),
|
|
699
|
-
})), (input.alarmRule
|
|
700
|
-
input.alarmRule !== null && { alarmRule: serializeAws_restJson1AlarmRule(input.alarmRule, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.severity !== undefined && input.severity !== null && { severity: input.severity })));
|
|
680
|
+
})), (input.alarmRule != null && { alarmRule: serializeAws_restJson1AlarmRule(input.alarmRule, context) })), (input.roleArn != null && { roleArn: input.roleArn })), (input.severity != null && { severity: input.severity })));
|
|
701
681
|
return [2, new __HttpRequest({
|
|
702
682
|
protocol: protocol,
|
|
703
683
|
hostname: hostname,
|
|
@@ -731,12 +711,9 @@ export var serializeAws_restJson1UpdateDetectorModelCommand = function (input, c
|
|
|
731
711
|
else {
|
|
732
712
|
throw new Error("No value provided for input HTTP label: detectorModelName.");
|
|
733
713
|
}
|
|
734
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.detectorModelDefinition
|
|
735
|
-
input.detectorModelDefinition !== null && {
|
|
714
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.detectorModelDefinition != null && {
|
|
736
715
|
detectorModelDefinition: serializeAws_restJson1DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
737
|
-
})), (input.detectorModelDescription
|
|
738
|
-
input.detectorModelDescription !== null && { detectorModelDescription: input.detectorModelDescription })), (input.evaluationMethod !== undefined &&
|
|
739
|
-
input.evaluationMethod !== null && { evaluationMethod: input.evaluationMethod })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })));
|
|
716
|
+
})), (input.detectorModelDescription != null && { detectorModelDescription: input.detectorModelDescription })), (input.evaluationMethod != null && { evaluationMethod: input.evaluationMethod })), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
740
717
|
return [2, new __HttpRequest({
|
|
741
718
|
protocol: protocol,
|
|
742
719
|
hostname: hostname,
|
|
@@ -770,11 +747,9 @@ export var serializeAws_restJson1UpdateInputCommand = function (input, context)
|
|
|
770
747
|
else {
|
|
771
748
|
throw new Error("No value provided for input HTTP label: inputName.");
|
|
772
749
|
}
|
|
773
|
-
body = JSON.stringify(__assign(__assign({}, (input.inputDefinition
|
|
774
|
-
input.inputDefinition !== null && {
|
|
750
|
+
body = JSON.stringify(__assign(__assign({}, (input.inputDefinition != null && {
|
|
775
751
|
inputDefinition: serializeAws_restJson1InputDefinition(input.inputDefinition, context),
|
|
776
|
-
})), (input.inputDescription
|
|
777
|
-
input.inputDescription !== null && { inputDescription: input.inputDescription })));
|
|
752
|
+
})), (input.inputDescription != null && { inputDescription: input.inputDescription })));
|
|
778
753
|
return [2, new __HttpRequest({
|
|
779
754
|
protocol: protocol,
|
|
780
755
|
hostname: hostname,
|
|
@@ -828,7 +803,7 @@ export var deserializeAws_restJson1CreateAlarmModelCommand = function (output, c
|
|
|
828
803
|
});
|
|
829
804
|
}); };
|
|
830
805
|
var deserializeAws_restJson1CreateAlarmModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
831
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
806
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
832
807
|
var _c;
|
|
833
808
|
return __generator(this, function (_d) {
|
|
834
809
|
switch (_d.label) {
|
|
@@ -838,7 +813,6 @@ var deserializeAws_restJson1CreateAlarmModelCommandError = function (output, con
|
|
|
838
813
|
return [4, parseBody(output.body, context)];
|
|
839
814
|
case 1:
|
|
840
815
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
841
|
-
errorCode = "UnknownError";
|
|
842
816
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
843
817
|
_b = errorCode;
|
|
844
818
|
switch (_b) {
|
|
@@ -874,10 +848,12 @@ var deserializeAws_restJson1CreateAlarmModelCommandError = function (output, con
|
|
|
874
848
|
case 15: throw _d.sent();
|
|
875
849
|
case 16:
|
|
876
850
|
parsedBody = parsedOutput.body;
|
|
851
|
+
$metadata = deserializeMetadata(output);
|
|
852
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
877
853
|
response = new __BaseException({
|
|
878
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
854
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
879
855
|
$fault: "client",
|
|
880
|
-
$metadata:
|
|
856
|
+
$metadata: $metadata,
|
|
881
857
|
});
|
|
882
858
|
throw __decorateServiceException(response, parsedBody);
|
|
883
859
|
}
|
|
@@ -908,7 +884,7 @@ export var deserializeAws_restJson1CreateDetectorModelCommand = function (output
|
|
|
908
884
|
});
|
|
909
885
|
}); };
|
|
910
886
|
var deserializeAws_restJson1CreateDetectorModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
911
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
887
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
912
888
|
var _c;
|
|
913
889
|
return __generator(this, function (_d) {
|
|
914
890
|
switch (_d.label) {
|
|
@@ -918,7 +894,6 @@ var deserializeAws_restJson1CreateDetectorModelCommandError = function (output,
|
|
|
918
894
|
return [4, parseBody(output.body, context)];
|
|
919
895
|
case 1:
|
|
920
896
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
921
|
-
errorCode = "UnknownError";
|
|
922
897
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
898
|
_b = errorCode;
|
|
924
899
|
switch (_b) {
|
|
@@ -954,10 +929,12 @@ var deserializeAws_restJson1CreateDetectorModelCommandError = function (output,
|
|
|
954
929
|
case 15: throw _d.sent();
|
|
955
930
|
case 16:
|
|
956
931
|
parsedBody = parsedOutput.body;
|
|
932
|
+
$metadata = deserializeMetadata(output);
|
|
933
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
957
934
|
response = new __BaseException({
|
|
958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
935
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
959
936
|
$fault: "client",
|
|
960
|
-
$metadata:
|
|
937
|
+
$metadata: $metadata,
|
|
961
938
|
});
|
|
962
939
|
throw __decorateServiceException(response, parsedBody);
|
|
963
940
|
}
|
|
@@ -988,7 +965,7 @@ export var deserializeAws_restJson1CreateInputCommand = function (output, contex
|
|
|
988
965
|
});
|
|
989
966
|
}); };
|
|
990
967
|
var deserializeAws_restJson1CreateInputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
991
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
968
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
992
969
|
var _c;
|
|
993
970
|
return __generator(this, function (_d) {
|
|
994
971
|
switch (_d.label) {
|
|
@@ -998,7 +975,6 @@ var deserializeAws_restJson1CreateInputCommandError = function (output, context)
|
|
|
998
975
|
return [4, parseBody(output.body, context)];
|
|
999
976
|
case 1:
|
|
1000
977
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1001
|
-
errorCode = "UnknownError";
|
|
1002
978
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
979
|
_b = errorCode;
|
|
1004
980
|
switch (_b) {
|
|
@@ -1026,10 +1002,12 @@ var deserializeAws_restJson1CreateInputCommandError = function (output, context)
|
|
|
1026
1002
|
case 11: throw _d.sent();
|
|
1027
1003
|
case 12:
|
|
1028
1004
|
parsedBody = parsedOutput.body;
|
|
1005
|
+
$metadata = deserializeMetadata(output);
|
|
1006
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1029
1007
|
response = new __BaseException({
|
|
1030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1008
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1031
1009
|
$fault: "client",
|
|
1032
|
-
$metadata:
|
|
1010
|
+
$metadata: $metadata,
|
|
1033
1011
|
});
|
|
1034
1012
|
throw __decorateServiceException(response, parsedBody);
|
|
1035
1013
|
}
|
|
@@ -1054,7 +1032,7 @@ export var deserializeAws_restJson1DeleteAlarmModelCommand = function (output, c
|
|
|
1054
1032
|
});
|
|
1055
1033
|
}); };
|
|
1056
1034
|
var deserializeAws_restJson1DeleteAlarmModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1057
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1035
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1058
1036
|
var _c;
|
|
1059
1037
|
return __generator(this, function (_d) {
|
|
1060
1038
|
switch (_d.label) {
|
|
@@ -1064,7 +1042,6 @@ var deserializeAws_restJson1DeleteAlarmModelCommandError = function (output, con
|
|
|
1064
1042
|
return [4, parseBody(output.body, context)];
|
|
1065
1043
|
case 1:
|
|
1066
1044
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1067
|
-
errorCode = "UnknownError";
|
|
1068
1045
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
1046
|
_b = errorCode;
|
|
1070
1047
|
switch (_b) {
|
|
@@ -1096,10 +1073,12 @@ var deserializeAws_restJson1DeleteAlarmModelCommandError = function (output, con
|
|
|
1096
1073
|
case 13: throw _d.sent();
|
|
1097
1074
|
case 14:
|
|
1098
1075
|
parsedBody = parsedOutput.body;
|
|
1076
|
+
$metadata = deserializeMetadata(output);
|
|
1077
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1099
1078
|
response = new __BaseException({
|
|
1100
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1079
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1101
1080
|
$fault: "client",
|
|
1102
|
-
$metadata:
|
|
1081
|
+
$metadata: $metadata,
|
|
1103
1082
|
});
|
|
1104
1083
|
throw __decorateServiceException(response, parsedBody);
|
|
1105
1084
|
}
|
|
@@ -1124,7 +1103,7 @@ export var deserializeAws_restJson1DeleteDetectorModelCommand = function (output
|
|
|
1124
1103
|
});
|
|
1125
1104
|
}); };
|
|
1126
1105
|
var deserializeAws_restJson1DeleteDetectorModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1127
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1106
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1128
1107
|
var _c;
|
|
1129
1108
|
return __generator(this, function (_d) {
|
|
1130
1109
|
switch (_d.label) {
|
|
@@ -1134,7 +1113,6 @@ var deserializeAws_restJson1DeleteDetectorModelCommandError = function (output,
|
|
|
1134
1113
|
return [4, parseBody(output.body, context)];
|
|
1135
1114
|
case 1:
|
|
1136
1115
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1137
|
-
errorCode = "UnknownError";
|
|
1138
1116
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
1117
|
_b = errorCode;
|
|
1140
1118
|
switch (_b) {
|
|
@@ -1166,10 +1144,12 @@ var deserializeAws_restJson1DeleteDetectorModelCommandError = function (output,
|
|
|
1166
1144
|
case 13: throw _d.sent();
|
|
1167
1145
|
case 14:
|
|
1168
1146
|
parsedBody = parsedOutput.body;
|
|
1147
|
+
$metadata = deserializeMetadata(output);
|
|
1148
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1169
1149
|
response = new __BaseException({
|
|
1170
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1150
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1171
1151
|
$fault: "client",
|
|
1172
|
-
$metadata:
|
|
1152
|
+
$metadata: $metadata,
|
|
1173
1153
|
});
|
|
1174
1154
|
throw __decorateServiceException(response, parsedBody);
|
|
1175
1155
|
}
|
|
@@ -1194,7 +1174,7 @@ export var deserializeAws_restJson1DeleteInputCommand = function (output, contex
|
|
|
1194
1174
|
});
|
|
1195
1175
|
}); };
|
|
1196
1176
|
var deserializeAws_restJson1DeleteInputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1197
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1177
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1198
1178
|
var _c;
|
|
1199
1179
|
return __generator(this, function (_d) {
|
|
1200
1180
|
switch (_d.label) {
|
|
@@ -1204,7 +1184,6 @@ var deserializeAws_restJson1DeleteInputCommandError = function (output, context)
|
|
|
1204
1184
|
return [4, parseBody(output.body, context)];
|
|
1205
1185
|
case 1:
|
|
1206
1186
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1207
|
-
errorCode = "UnknownError";
|
|
1208
1187
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
1188
|
_b = errorCode;
|
|
1210
1189
|
switch (_b) {
|
|
@@ -1236,10 +1215,12 @@ var deserializeAws_restJson1DeleteInputCommandError = function (output, context)
|
|
|
1236
1215
|
case 13: throw _d.sent();
|
|
1237
1216
|
case 14:
|
|
1238
1217
|
parsedBody = parsedOutput.body;
|
|
1218
|
+
$metadata = deserializeMetadata(output);
|
|
1219
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1239
1220
|
response = new __BaseException({
|
|
1240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1221
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1241
1222
|
$fault: "client",
|
|
1242
|
-
$metadata:
|
|
1223
|
+
$metadata: $metadata,
|
|
1243
1224
|
});
|
|
1244
1225
|
throw __decorateServiceException(response, parsedBody);
|
|
1245
1226
|
}
|
|
@@ -1326,7 +1307,7 @@ export var deserializeAws_restJson1DescribeAlarmModelCommand = function (output,
|
|
|
1326
1307
|
});
|
|
1327
1308
|
}); };
|
|
1328
1309
|
var deserializeAws_restJson1DescribeAlarmModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1329
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1310
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1330
1311
|
var _c;
|
|
1331
1312
|
return __generator(this, function (_d) {
|
|
1332
1313
|
switch (_d.label) {
|
|
@@ -1336,7 +1317,6 @@ var deserializeAws_restJson1DescribeAlarmModelCommandError = function (output, c
|
|
|
1336
1317
|
return [4, parseBody(output.body, context)];
|
|
1337
1318
|
case 1:
|
|
1338
1319
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1339
|
-
errorCode = "UnknownError";
|
|
1340
1320
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
1321
|
_b = errorCode;
|
|
1342
1322
|
switch (_b) {
|
|
@@ -1364,10 +1344,12 @@ var deserializeAws_restJson1DescribeAlarmModelCommandError = function (output, c
|
|
|
1364
1344
|
case 11: throw _d.sent();
|
|
1365
1345
|
case 12:
|
|
1366
1346
|
parsedBody = parsedOutput.body;
|
|
1347
|
+
$metadata = deserializeMetadata(output);
|
|
1348
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1367
1349
|
response = new __BaseException({
|
|
1368
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1369
1351
|
$fault: "client",
|
|
1370
|
-
$metadata:
|
|
1352
|
+
$metadata: $metadata,
|
|
1371
1353
|
});
|
|
1372
1354
|
throw __decorateServiceException(response, parsedBody);
|
|
1373
1355
|
}
|
|
@@ -1398,7 +1380,7 @@ export var deserializeAws_restJson1DescribeDetectorModelCommand = function (outp
|
|
|
1398
1380
|
});
|
|
1399
1381
|
}); };
|
|
1400
1382
|
var deserializeAws_restJson1DescribeDetectorModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1401
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1383
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1402
1384
|
var _c;
|
|
1403
1385
|
return __generator(this, function (_d) {
|
|
1404
1386
|
switch (_d.label) {
|
|
@@ -1408,7 +1390,6 @@ var deserializeAws_restJson1DescribeDetectorModelCommandError = function (output
|
|
|
1408
1390
|
return [4, parseBody(output.body, context)];
|
|
1409
1391
|
case 1:
|
|
1410
1392
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1411
|
-
errorCode = "UnknownError";
|
|
1412
1393
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1413
1394
|
_b = errorCode;
|
|
1414
1395
|
switch (_b) {
|
|
@@ -1436,10 +1417,12 @@ var deserializeAws_restJson1DescribeDetectorModelCommandError = function (output
|
|
|
1436
1417
|
case 11: throw _d.sent();
|
|
1437
1418
|
case 12:
|
|
1438
1419
|
parsedBody = parsedOutput.body;
|
|
1420
|
+
$metadata = deserializeMetadata(output);
|
|
1421
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1439
1422
|
response = new __BaseException({
|
|
1440
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1423
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1441
1424
|
$fault: "client",
|
|
1442
|
-
$metadata:
|
|
1425
|
+
$metadata: $metadata,
|
|
1443
1426
|
});
|
|
1444
1427
|
throw __decorateServiceException(response, parsedBody);
|
|
1445
1428
|
}
|
|
@@ -1470,7 +1453,7 @@ export var deserializeAws_restJson1DescribeDetectorModelAnalysisCommand = functi
|
|
|
1470
1453
|
});
|
|
1471
1454
|
}); };
|
|
1472
1455
|
var deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1473
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1456
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1474
1457
|
var _c;
|
|
1475
1458
|
return __generator(this, function (_d) {
|
|
1476
1459
|
switch (_d.label) {
|
|
@@ -1480,7 +1463,6 @@ var deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = function
|
|
|
1480
1463
|
return [4, parseBody(output.body, context)];
|
|
1481
1464
|
case 1:
|
|
1482
1465
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1483
|
-
errorCode = "UnknownError";
|
|
1484
1466
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
1467
|
_b = errorCode;
|
|
1486
1468
|
switch (_b) {
|
|
@@ -1508,10 +1490,12 @@ var deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = function
|
|
|
1508
1490
|
case 11: throw _d.sent();
|
|
1509
1491
|
case 12:
|
|
1510
1492
|
parsedBody = parsedOutput.body;
|
|
1493
|
+
$metadata = deserializeMetadata(output);
|
|
1494
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1511
1495
|
response = new __BaseException({
|
|
1512
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1496
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1513
1497
|
$fault: "client",
|
|
1514
|
-
$metadata:
|
|
1498
|
+
$metadata: $metadata,
|
|
1515
1499
|
});
|
|
1516
1500
|
throw __decorateServiceException(response, parsedBody);
|
|
1517
1501
|
}
|
|
@@ -1542,7 +1526,7 @@ export var deserializeAws_restJson1DescribeInputCommand = function (output, cont
|
|
|
1542
1526
|
});
|
|
1543
1527
|
}); };
|
|
1544
1528
|
var deserializeAws_restJson1DescribeInputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1545
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1529
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1546
1530
|
var _c;
|
|
1547
1531
|
return __generator(this, function (_d) {
|
|
1548
1532
|
switch (_d.label) {
|
|
@@ -1552,7 +1536,6 @@ var deserializeAws_restJson1DescribeInputCommandError = function (output, contex
|
|
|
1552
1536
|
return [4, parseBody(output.body, context)];
|
|
1553
1537
|
case 1:
|
|
1554
1538
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1555
|
-
errorCode = "UnknownError";
|
|
1556
1539
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
1540
|
_b = errorCode;
|
|
1558
1541
|
switch (_b) {
|
|
@@ -1580,10 +1563,12 @@ var deserializeAws_restJson1DescribeInputCommandError = function (output, contex
|
|
|
1580
1563
|
case 11: throw _d.sent();
|
|
1581
1564
|
case 12:
|
|
1582
1565
|
parsedBody = parsedOutput.body;
|
|
1566
|
+
$metadata = deserializeMetadata(output);
|
|
1567
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1583
1568
|
response = new __BaseException({
|
|
1584
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1569
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1585
1570
|
$fault: "client",
|
|
1586
|
-
$metadata:
|
|
1571
|
+
$metadata: $metadata,
|
|
1587
1572
|
});
|
|
1588
1573
|
throw __decorateServiceException(response, parsedBody);
|
|
1589
1574
|
}
|
|
@@ -1614,7 +1599,7 @@ export var deserializeAws_restJson1DescribeLoggingOptionsCommand = function (out
|
|
|
1614
1599
|
});
|
|
1615
1600
|
}); };
|
|
1616
1601
|
var deserializeAws_restJson1DescribeLoggingOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1617
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1602
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1618
1603
|
var _c;
|
|
1619
1604
|
return __generator(this, function (_d) {
|
|
1620
1605
|
switch (_d.label) {
|
|
@@ -1624,7 +1609,6 @@ var deserializeAws_restJson1DescribeLoggingOptionsCommandError = function (outpu
|
|
|
1624
1609
|
return [4, parseBody(output.body, context)];
|
|
1625
1610
|
case 1:
|
|
1626
1611
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1627
|
-
errorCode = "UnknownError";
|
|
1628
1612
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
1613
|
_b = errorCode;
|
|
1630
1614
|
switch (_b) {
|
|
@@ -1656,10 +1640,12 @@ var deserializeAws_restJson1DescribeLoggingOptionsCommandError = function (outpu
|
|
|
1656
1640
|
case 13: throw _d.sent();
|
|
1657
1641
|
case 14:
|
|
1658
1642
|
parsedBody = parsedOutput.body;
|
|
1643
|
+
$metadata = deserializeMetadata(output);
|
|
1644
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1659
1645
|
response = new __BaseException({
|
|
1660
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1661
1647
|
$fault: "client",
|
|
1662
|
-
$metadata:
|
|
1648
|
+
$metadata: $metadata,
|
|
1663
1649
|
});
|
|
1664
1650
|
throw __decorateServiceException(response, parsedBody);
|
|
1665
1651
|
}
|
|
@@ -1694,7 +1680,7 @@ export var deserializeAws_restJson1GetDetectorModelAnalysisResultsCommand = func
|
|
|
1694
1680
|
});
|
|
1695
1681
|
}); };
|
|
1696
1682
|
var deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1697
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1683
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1698
1684
|
var _c;
|
|
1699
1685
|
return __generator(this, function (_d) {
|
|
1700
1686
|
switch (_d.label) {
|
|
@@ -1704,7 +1690,6 @@ var deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = functi
|
|
|
1704
1690
|
return [4, parseBody(output.body, context)];
|
|
1705
1691
|
case 1:
|
|
1706
1692
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1707
|
-
errorCode = "UnknownError";
|
|
1708
1693
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
1694
|
_b = errorCode;
|
|
1710
1695
|
switch (_b) {
|
|
@@ -1732,10 +1717,12 @@ var deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = functi
|
|
|
1732
1717
|
case 11: throw _d.sent();
|
|
1733
1718
|
case 12:
|
|
1734
1719
|
parsedBody = parsedOutput.body;
|
|
1720
|
+
$metadata = deserializeMetadata(output);
|
|
1721
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1735
1722
|
response = new __BaseException({
|
|
1736
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1723
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1737
1724
|
$fault: "client",
|
|
1738
|
-
$metadata:
|
|
1725
|
+
$metadata: $metadata,
|
|
1739
1726
|
});
|
|
1740
1727
|
throw __decorateServiceException(response, parsedBody);
|
|
1741
1728
|
}
|
|
@@ -1770,7 +1757,7 @@ export var deserializeAws_restJson1ListAlarmModelsCommand = function (output, co
|
|
|
1770
1757
|
});
|
|
1771
1758
|
}); };
|
|
1772
1759
|
var deserializeAws_restJson1ListAlarmModelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1773
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1760
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1774
1761
|
var _c;
|
|
1775
1762
|
return __generator(this, function (_d) {
|
|
1776
1763
|
switch (_d.label) {
|
|
@@ -1780,7 +1767,6 @@ var deserializeAws_restJson1ListAlarmModelsCommandError = function (output, cont
|
|
|
1780
1767
|
return [4, parseBody(output.body, context)];
|
|
1781
1768
|
case 1:
|
|
1782
1769
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1783
|
-
errorCode = "UnknownError";
|
|
1784
1770
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
1771
|
_b = errorCode;
|
|
1786
1772
|
switch (_b) {
|
|
@@ -1804,10 +1790,12 @@ var deserializeAws_restJson1ListAlarmModelsCommandError = function (output, cont
|
|
|
1804
1790
|
case 9: throw _d.sent();
|
|
1805
1791
|
case 10:
|
|
1806
1792
|
parsedBody = parsedOutput.body;
|
|
1793
|
+
$metadata = deserializeMetadata(output);
|
|
1794
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1807
1795
|
response = new __BaseException({
|
|
1808
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1796
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1809
1797
|
$fault: "client",
|
|
1810
|
-
$metadata:
|
|
1798
|
+
$metadata: $metadata,
|
|
1811
1799
|
});
|
|
1812
1800
|
throw __decorateServiceException(response, parsedBody);
|
|
1813
1801
|
}
|
|
@@ -1842,7 +1830,7 @@ export var deserializeAws_restJson1ListAlarmModelVersionsCommand = function (out
|
|
|
1842
1830
|
});
|
|
1843
1831
|
}); };
|
|
1844
1832
|
var deserializeAws_restJson1ListAlarmModelVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1845
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1833
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1846
1834
|
var _c;
|
|
1847
1835
|
return __generator(this, function (_d) {
|
|
1848
1836
|
switch (_d.label) {
|
|
@@ -1852,7 +1840,6 @@ var deserializeAws_restJson1ListAlarmModelVersionsCommandError = function (outpu
|
|
|
1852
1840
|
return [4, parseBody(output.body, context)];
|
|
1853
1841
|
case 1:
|
|
1854
1842
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1855
|
-
errorCode = "UnknownError";
|
|
1856
1843
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1857
1844
|
_b = errorCode;
|
|
1858
1845
|
switch (_b) {
|
|
@@ -1880,10 +1867,12 @@ var deserializeAws_restJson1ListAlarmModelVersionsCommandError = function (outpu
|
|
|
1880
1867
|
case 11: throw _d.sent();
|
|
1881
1868
|
case 12:
|
|
1882
1869
|
parsedBody = parsedOutput.body;
|
|
1870
|
+
$metadata = deserializeMetadata(output);
|
|
1871
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1883
1872
|
response = new __BaseException({
|
|
1884
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1873
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1885
1874
|
$fault: "client",
|
|
1886
|
-
$metadata:
|
|
1875
|
+
$metadata: $metadata,
|
|
1887
1876
|
});
|
|
1888
1877
|
throw __decorateServiceException(response, parsedBody);
|
|
1889
1878
|
}
|
|
@@ -1918,7 +1907,7 @@ export var deserializeAws_restJson1ListDetectorModelsCommand = function (output,
|
|
|
1918
1907
|
});
|
|
1919
1908
|
}); };
|
|
1920
1909
|
var deserializeAws_restJson1ListDetectorModelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1921
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1910
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1922
1911
|
var _c;
|
|
1923
1912
|
return __generator(this, function (_d) {
|
|
1924
1913
|
switch (_d.label) {
|
|
@@ -1928,7 +1917,6 @@ var deserializeAws_restJson1ListDetectorModelsCommandError = function (output, c
|
|
|
1928
1917
|
return [4, parseBody(output.body, context)];
|
|
1929
1918
|
case 1:
|
|
1930
1919
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1931
|
-
errorCode = "UnknownError";
|
|
1932
1920
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
1921
|
_b = errorCode;
|
|
1934
1922
|
switch (_b) {
|
|
@@ -1952,10 +1940,12 @@ var deserializeAws_restJson1ListDetectorModelsCommandError = function (output, c
|
|
|
1952
1940
|
case 9: throw _d.sent();
|
|
1953
1941
|
case 10:
|
|
1954
1942
|
parsedBody = parsedOutput.body;
|
|
1943
|
+
$metadata = deserializeMetadata(output);
|
|
1944
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1955
1945
|
response = new __BaseException({
|
|
1956
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1946
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1957
1947
|
$fault: "client",
|
|
1958
|
-
$metadata:
|
|
1948
|
+
$metadata: $metadata,
|
|
1959
1949
|
});
|
|
1960
1950
|
throw __decorateServiceException(response, parsedBody);
|
|
1961
1951
|
}
|
|
@@ -1990,7 +1980,7 @@ export var deserializeAws_restJson1ListDetectorModelVersionsCommand = function (
|
|
|
1990
1980
|
});
|
|
1991
1981
|
}); };
|
|
1992
1982
|
var deserializeAws_restJson1ListDetectorModelVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1993
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1983
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1994
1984
|
var _c;
|
|
1995
1985
|
return __generator(this, function (_d) {
|
|
1996
1986
|
switch (_d.label) {
|
|
@@ -2000,7 +1990,6 @@ var deserializeAws_restJson1ListDetectorModelVersionsCommandError = function (ou
|
|
|
2000
1990
|
return [4, parseBody(output.body, context)];
|
|
2001
1991
|
case 1:
|
|
2002
1992
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2003
|
-
errorCode = "UnknownError";
|
|
2004
1993
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
1994
|
_b = errorCode;
|
|
2006
1995
|
switch (_b) {
|
|
@@ -2028,10 +2017,12 @@ var deserializeAws_restJson1ListDetectorModelVersionsCommandError = function (ou
|
|
|
2028
2017
|
case 11: throw _d.sent();
|
|
2029
2018
|
case 12:
|
|
2030
2019
|
parsedBody = parsedOutput.body;
|
|
2020
|
+
$metadata = deserializeMetadata(output);
|
|
2021
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2031
2022
|
response = new __BaseException({
|
|
2032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2023
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2033
2024
|
$fault: "client",
|
|
2034
|
-
$metadata:
|
|
2025
|
+
$metadata: $metadata,
|
|
2035
2026
|
});
|
|
2036
2027
|
throw __decorateServiceException(response, parsedBody);
|
|
2037
2028
|
}
|
|
@@ -2066,7 +2057,7 @@ export var deserializeAws_restJson1ListInputRoutingsCommand = function (output,
|
|
|
2066
2057
|
});
|
|
2067
2058
|
}); };
|
|
2068
2059
|
var deserializeAws_restJson1ListInputRoutingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2069
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2060
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2070
2061
|
var _c;
|
|
2071
2062
|
return __generator(this, function (_d) {
|
|
2072
2063
|
switch (_d.label) {
|
|
@@ -2076,7 +2067,6 @@ var deserializeAws_restJson1ListInputRoutingsCommandError = function (output, co
|
|
|
2076
2067
|
return [4, parseBody(output.body, context)];
|
|
2077
2068
|
case 1:
|
|
2078
2069
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2079
|
-
errorCode = "UnknownError";
|
|
2080
2070
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2081
2071
|
_b = errorCode;
|
|
2082
2072
|
switch (_b) {
|
|
@@ -2104,10 +2094,12 @@ var deserializeAws_restJson1ListInputRoutingsCommandError = function (output, co
|
|
|
2104
2094
|
case 11: throw _d.sent();
|
|
2105
2095
|
case 12:
|
|
2106
2096
|
parsedBody = parsedOutput.body;
|
|
2097
|
+
$metadata = deserializeMetadata(output);
|
|
2098
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2107
2099
|
response = new __BaseException({
|
|
2108
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2100
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2109
2101
|
$fault: "client",
|
|
2110
|
-
$metadata:
|
|
2102
|
+
$metadata: $metadata,
|
|
2111
2103
|
});
|
|
2112
2104
|
throw __decorateServiceException(response, parsedBody);
|
|
2113
2105
|
}
|
|
@@ -2142,7 +2134,7 @@ export var deserializeAws_restJson1ListInputsCommand = function (output, context
|
|
|
2142
2134
|
});
|
|
2143
2135
|
}); };
|
|
2144
2136
|
var deserializeAws_restJson1ListInputsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2145
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2137
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2146
2138
|
var _c;
|
|
2147
2139
|
return __generator(this, function (_d) {
|
|
2148
2140
|
switch (_d.label) {
|
|
@@ -2152,7 +2144,6 @@ var deserializeAws_restJson1ListInputsCommandError = function (output, context)
|
|
|
2152
2144
|
return [4, parseBody(output.body, context)];
|
|
2153
2145
|
case 1:
|
|
2154
2146
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2155
|
-
errorCode = "UnknownError";
|
|
2156
2147
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
2148
|
_b = errorCode;
|
|
2158
2149
|
switch (_b) {
|
|
@@ -2176,10 +2167,12 @@ var deserializeAws_restJson1ListInputsCommandError = function (output, context)
|
|
|
2176
2167
|
case 9: throw _d.sent();
|
|
2177
2168
|
case 10:
|
|
2178
2169
|
parsedBody = parsedOutput.body;
|
|
2170
|
+
$metadata = deserializeMetadata(output);
|
|
2171
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2179
2172
|
response = new __BaseException({
|
|
2180
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2173
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2181
2174
|
$fault: "client",
|
|
2182
|
-
$metadata:
|
|
2175
|
+
$metadata: $metadata,
|
|
2183
2176
|
});
|
|
2184
2177
|
throw __decorateServiceException(response, parsedBody);
|
|
2185
2178
|
}
|
|
@@ -2210,7 +2203,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2210
2203
|
});
|
|
2211
2204
|
}); };
|
|
2212
2205
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2213
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2206
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2214
2207
|
var _c;
|
|
2215
2208
|
return __generator(this, function (_d) {
|
|
2216
2209
|
switch (_d.label) {
|
|
@@ -2220,7 +2213,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2220
2213
|
return [4, parseBody(output.body, context)];
|
|
2221
2214
|
case 1:
|
|
2222
2215
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2223
|
-
errorCode = "UnknownError";
|
|
2224
2216
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2217
|
_b = errorCode;
|
|
2226
2218
|
switch (_b) {
|
|
@@ -2248,10 +2240,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2248
2240
|
case 11: throw _d.sent();
|
|
2249
2241
|
case 12:
|
|
2250
2242
|
parsedBody = parsedOutput.body;
|
|
2243
|
+
$metadata = deserializeMetadata(output);
|
|
2244
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2251
2245
|
response = new __BaseException({
|
|
2252
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2246
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2253
2247
|
$fault: "client",
|
|
2254
|
-
$metadata:
|
|
2248
|
+
$metadata: $metadata,
|
|
2255
2249
|
});
|
|
2256
2250
|
throw __decorateServiceException(response, parsedBody);
|
|
2257
2251
|
}
|
|
@@ -2276,7 +2270,7 @@ export var deserializeAws_restJson1PutLoggingOptionsCommand = function (output,
|
|
|
2276
2270
|
});
|
|
2277
2271
|
}); };
|
|
2278
2272
|
var deserializeAws_restJson1PutLoggingOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2279
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2273
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2280
2274
|
var _c;
|
|
2281
2275
|
return __generator(this, function (_d) {
|
|
2282
2276
|
switch (_d.label) {
|
|
@@ -2286,7 +2280,6 @@ var deserializeAws_restJson1PutLoggingOptionsCommandError = function (output, co
|
|
|
2286
2280
|
return [4, parseBody(output.body, context)];
|
|
2287
2281
|
case 1:
|
|
2288
2282
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2289
|
-
errorCode = "UnknownError";
|
|
2290
2283
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
2284
|
_b = errorCode;
|
|
2292
2285
|
switch (_b) {
|
|
@@ -2318,10 +2311,12 @@ var deserializeAws_restJson1PutLoggingOptionsCommandError = function (output, co
|
|
|
2318
2311
|
case 13: throw _d.sent();
|
|
2319
2312
|
case 14:
|
|
2320
2313
|
parsedBody = parsedOutput.body;
|
|
2314
|
+
$metadata = deserializeMetadata(output);
|
|
2315
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2321
2316
|
response = new __BaseException({
|
|
2322
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2317
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2323
2318
|
$fault: "client",
|
|
2324
|
-
$metadata:
|
|
2319
|
+
$metadata: $metadata,
|
|
2325
2320
|
});
|
|
2326
2321
|
throw __decorateServiceException(response, parsedBody);
|
|
2327
2322
|
}
|
|
@@ -2352,7 +2347,7 @@ export var deserializeAws_restJson1StartDetectorModelAnalysisCommand = function
|
|
|
2352
2347
|
});
|
|
2353
2348
|
}); };
|
|
2354
2349
|
var deserializeAws_restJson1StartDetectorModelAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2355
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2350
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2356
2351
|
var _c;
|
|
2357
2352
|
return __generator(this, function (_d) {
|
|
2358
2353
|
switch (_d.label) {
|
|
@@ -2362,7 +2357,6 @@ var deserializeAws_restJson1StartDetectorModelAnalysisCommandError = function (o
|
|
|
2362
2357
|
return [4, parseBody(output.body, context)];
|
|
2363
2358
|
case 1:
|
|
2364
2359
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2365
|
-
errorCode = "UnknownError";
|
|
2366
2360
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2367
2361
|
_b = errorCode;
|
|
2368
2362
|
switch (_b) {
|
|
@@ -2390,10 +2384,12 @@ var deserializeAws_restJson1StartDetectorModelAnalysisCommandError = function (o
|
|
|
2390
2384
|
case 11: throw _d.sent();
|
|
2391
2385
|
case 12:
|
|
2392
2386
|
parsedBody = parsedOutput.body;
|
|
2387
|
+
$metadata = deserializeMetadata(output);
|
|
2388
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2393
2389
|
response = new __BaseException({
|
|
2394
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2395
2391
|
$fault: "client",
|
|
2396
|
-
$metadata:
|
|
2392
|
+
$metadata: $metadata,
|
|
2397
2393
|
});
|
|
2398
2394
|
throw __decorateServiceException(response, parsedBody);
|
|
2399
2395
|
}
|
|
@@ -2418,7 +2414,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2418
2414
|
});
|
|
2419
2415
|
}); };
|
|
2420
2416
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2421
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2417
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2422
2418
|
var _c;
|
|
2423
2419
|
return __generator(this, function (_d) {
|
|
2424
2420
|
switch (_d.label) {
|
|
@@ -2428,7 +2424,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2428
2424
|
return [4, parseBody(output.body, context)];
|
|
2429
2425
|
case 1:
|
|
2430
2426
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2431
|
-
errorCode = "UnknownError";
|
|
2432
2427
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
2428
|
_b = errorCode;
|
|
2434
2429
|
switch (_b) {
|
|
@@ -2460,10 +2455,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2460
2455
|
case 13: throw _d.sent();
|
|
2461
2456
|
case 14:
|
|
2462
2457
|
parsedBody = parsedOutput.body;
|
|
2458
|
+
$metadata = deserializeMetadata(output);
|
|
2459
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2463
2460
|
response = new __BaseException({
|
|
2464
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2461
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2465
2462
|
$fault: "client",
|
|
2466
|
-
$metadata:
|
|
2463
|
+
$metadata: $metadata,
|
|
2467
2464
|
});
|
|
2468
2465
|
throw __decorateServiceException(response, parsedBody);
|
|
2469
2466
|
}
|
|
@@ -2488,7 +2485,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2488
2485
|
});
|
|
2489
2486
|
}); };
|
|
2490
2487
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2491
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2488
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2492
2489
|
var _c;
|
|
2493
2490
|
return __generator(this, function (_d) {
|
|
2494
2491
|
switch (_d.label) {
|
|
@@ -2498,7 +2495,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2498
2495
|
return [4, parseBody(output.body, context)];
|
|
2499
2496
|
case 1:
|
|
2500
2497
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2501
|
-
errorCode = "UnknownError";
|
|
2502
2498
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
2499
|
_b = errorCode;
|
|
2504
2500
|
switch (_b) {
|
|
@@ -2526,10 +2522,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2526
2522
|
case 11: throw _d.sent();
|
|
2527
2523
|
case 12:
|
|
2528
2524
|
parsedBody = parsedOutput.body;
|
|
2525
|
+
$metadata = deserializeMetadata(output);
|
|
2526
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2529
2527
|
response = new __BaseException({
|
|
2530
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2531
2529
|
$fault: "client",
|
|
2532
|
-
$metadata:
|
|
2530
|
+
$metadata: $metadata,
|
|
2533
2531
|
});
|
|
2534
2532
|
throw __decorateServiceException(response, parsedBody);
|
|
2535
2533
|
}
|
|
@@ -2576,7 +2574,7 @@ export var deserializeAws_restJson1UpdateAlarmModelCommand = function (output, c
|
|
|
2576
2574
|
});
|
|
2577
2575
|
}); };
|
|
2578
2576
|
var deserializeAws_restJson1UpdateAlarmModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2579
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2577
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2580
2578
|
var _c;
|
|
2581
2579
|
return __generator(this, function (_d) {
|
|
2582
2580
|
switch (_d.label) {
|
|
@@ -2586,7 +2584,6 @@ var deserializeAws_restJson1UpdateAlarmModelCommandError = function (output, con
|
|
|
2586
2584
|
return [4, parseBody(output.body, context)];
|
|
2587
2585
|
case 1:
|
|
2588
2586
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2589
|
-
errorCode = "UnknownError";
|
|
2590
2587
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
2588
|
_b = errorCode;
|
|
2592
2589
|
switch (_b) {
|
|
@@ -2618,10 +2615,12 @@ var deserializeAws_restJson1UpdateAlarmModelCommandError = function (output, con
|
|
|
2618
2615
|
case 13: throw _d.sent();
|
|
2619
2616
|
case 14:
|
|
2620
2617
|
parsedBody = parsedOutput.body;
|
|
2618
|
+
$metadata = deserializeMetadata(output);
|
|
2619
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2621
2620
|
response = new __BaseException({
|
|
2622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2621
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2623
2622
|
$fault: "client",
|
|
2624
|
-
$metadata:
|
|
2623
|
+
$metadata: $metadata,
|
|
2625
2624
|
});
|
|
2626
2625
|
throw __decorateServiceException(response, parsedBody);
|
|
2627
2626
|
}
|
|
@@ -2652,7 +2651,7 @@ export var deserializeAws_restJson1UpdateDetectorModelCommand = function (output
|
|
|
2652
2651
|
});
|
|
2653
2652
|
}); };
|
|
2654
2653
|
var deserializeAws_restJson1UpdateDetectorModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2655
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2654
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2656
2655
|
var _c;
|
|
2657
2656
|
return __generator(this, function (_d) {
|
|
2658
2657
|
switch (_d.label) {
|
|
@@ -2662,7 +2661,6 @@ var deserializeAws_restJson1UpdateDetectorModelCommandError = function (output,
|
|
|
2662
2661
|
return [4, parseBody(output.body, context)];
|
|
2663
2662
|
case 1:
|
|
2664
2663
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2665
|
-
errorCode = "UnknownError";
|
|
2666
2664
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
2665
|
_b = errorCode;
|
|
2668
2666
|
switch (_b) {
|
|
@@ -2694,10 +2692,12 @@ var deserializeAws_restJson1UpdateDetectorModelCommandError = function (output,
|
|
|
2694
2692
|
case 13: throw _d.sent();
|
|
2695
2693
|
case 14:
|
|
2696
2694
|
parsedBody = parsedOutput.body;
|
|
2695
|
+
$metadata = deserializeMetadata(output);
|
|
2696
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2697
2697
|
response = new __BaseException({
|
|
2698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2698
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2699
2699
|
$fault: "client",
|
|
2700
|
-
$metadata:
|
|
2700
|
+
$metadata: $metadata,
|
|
2701
2701
|
});
|
|
2702
2702
|
throw __decorateServiceException(response, parsedBody);
|
|
2703
2703
|
}
|
|
@@ -2728,7 +2728,7 @@ export var deserializeAws_restJson1UpdateInputCommand = function (output, contex
|
|
|
2728
2728
|
});
|
|
2729
2729
|
}); };
|
|
2730
2730
|
var deserializeAws_restJson1UpdateInputCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2731
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2731
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2732
2732
|
var _c;
|
|
2733
2733
|
return __generator(this, function (_d) {
|
|
2734
2734
|
switch (_d.label) {
|
|
@@ -2738,7 +2738,6 @@ var deserializeAws_restJson1UpdateInputCommandError = function (output, context)
|
|
|
2738
2738
|
return [4, parseBody(output.body, context)];
|
|
2739
2739
|
case 1:
|
|
2740
2740
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2741
|
-
errorCode = "UnknownError";
|
|
2742
2741
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2743
2742
|
_b = errorCode;
|
|
2744
2743
|
switch (_b) {
|
|
@@ -2770,10 +2769,12 @@ var deserializeAws_restJson1UpdateInputCommandError = function (output, context)
|
|
|
2770
2769
|
case 13: throw _d.sent();
|
|
2771
2770
|
case 14:
|
|
2772
2771
|
parsedBody = parsedOutput.body;
|
|
2772
|
+
$metadata = deserializeMetadata(output);
|
|
2773
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2773
2774
|
response = new __BaseException({
|
|
2774
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2775
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2775
2776
|
$fault: "client",
|
|
2776
|
-
$metadata:
|
|
2777
|
+
$metadata: $metadata,
|
|
2777
2778
|
});
|
|
2778
2779
|
throw __decorateServiceException(response, parsedBody);
|
|
2779
2780
|
}
|
|
@@ -2894,28 +2895,16 @@ var deserializeAws_restJson1UnsupportedOperationExceptionResponse = function (pa
|
|
|
2894
2895
|
});
|
|
2895
2896
|
}); };
|
|
2896
2897
|
var serializeAws_restJson1AcknowledgeFlow = function (input, context) {
|
|
2897
|
-
return __assign({}, (input.enabled
|
|
2898
|
+
return __assign({}, (input.enabled != null && { enabled: input.enabled }));
|
|
2898
2899
|
};
|
|
2899
2900
|
var serializeAws_restJson1Action = function (input, context) {
|
|
2900
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clearTimer
|
|
2901
|
-
input.clearTimer !== null && { clearTimer: serializeAws_restJson1ClearTimerAction(input.clearTimer, context) })), (input.dynamoDB !== undefined &&
|
|
2902
|
-
input.dynamoDB !== null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 !== undefined &&
|
|
2903
|
-
input.dynamoDBv2 !== null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.firehose !== undefined &&
|
|
2904
|
-
input.firehose !== null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.iotEvents !== undefined &&
|
|
2905
|
-
input.iotEvents !== null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise !== undefined &&
|
|
2906
|
-
input.iotSiteWise !== null && {
|
|
2901
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clearTimer != null && { clearTimer: serializeAws_restJson1ClearTimerAction(input.clearTimer, context) })), (input.dynamoDB != null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 != null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.firehose != null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.iotEvents != null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise != null && {
|
|
2907
2902
|
iotSiteWise: serializeAws_restJson1IotSiteWiseAction(input.iotSiteWise, context),
|
|
2908
|
-
})), (input.iotTopicPublish
|
|
2909
|
-
input.iotTopicPublish !== null && {
|
|
2903
|
+
})), (input.iotTopicPublish != null && {
|
|
2910
2904
|
iotTopicPublish: serializeAws_restJson1IotTopicPublishAction(input.iotTopicPublish, context),
|
|
2911
|
-
})), (input.lambda
|
|
2912
|
-
input.lambda !== null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.resetTimer !== undefined &&
|
|
2913
|
-
input.resetTimer !== null && { resetTimer: serializeAws_restJson1ResetTimerAction(input.resetTimer, context) })), (input.setTimer !== undefined &&
|
|
2914
|
-
input.setTimer !== null && { setTimer: serializeAws_restJson1SetTimerAction(input.setTimer, context) })), (input.setVariable !== undefined &&
|
|
2915
|
-
input.setVariable !== null && {
|
|
2905
|
+
})), (input.lambda != null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.resetTimer != null && { resetTimer: serializeAws_restJson1ResetTimerAction(input.resetTimer, context) })), (input.setTimer != null && { setTimer: serializeAws_restJson1SetTimerAction(input.setTimer, context) })), (input.setVariable != null && {
|
|
2916
2906
|
setVariable: serializeAws_restJson1SetVariableAction(input.setVariable, context),
|
|
2917
|
-
})), (input.sns
|
|
2918
|
-
input.sns !== null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) })), (input.sqs !== undefined && input.sqs !== null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }));
|
|
2907
|
+
})), (input.sns != null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) })), (input.sqs != null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }));
|
|
2919
2908
|
};
|
|
2920
2909
|
var serializeAws_restJson1Actions = function (input, context) {
|
|
2921
2910
|
return input
|
|
@@ -2928,19 +2917,11 @@ var serializeAws_restJson1Actions = function (input, context) {
|
|
|
2928
2917
|
});
|
|
2929
2918
|
};
|
|
2930
2919
|
var serializeAws_restJson1AlarmAction = function (input, context) {
|
|
2931
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dynamoDB
|
|
2932
|
-
input.dynamoDB !== null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 !== undefined &&
|
|
2933
|
-
input.dynamoDBv2 !== null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.firehose !== undefined &&
|
|
2934
|
-
input.firehose !== null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.iotEvents !== undefined &&
|
|
2935
|
-
input.iotEvents !== null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise !== undefined &&
|
|
2936
|
-
input.iotSiteWise !== null && {
|
|
2920
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dynamoDB != null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 != null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.firehose != null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.iotEvents != null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise != null && {
|
|
2937
2921
|
iotSiteWise: serializeAws_restJson1IotSiteWiseAction(input.iotSiteWise, context),
|
|
2938
|
-
})), (input.iotTopicPublish
|
|
2939
|
-
input.iotTopicPublish !== null && {
|
|
2922
|
+
})), (input.iotTopicPublish != null && {
|
|
2940
2923
|
iotTopicPublish: serializeAws_restJson1IotTopicPublishAction(input.iotTopicPublish, context),
|
|
2941
|
-
})), (input.lambda
|
|
2942
|
-
input.lambda !== null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.sns !== undefined &&
|
|
2943
|
-
input.sns !== null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) })), (input.sqs !== undefined && input.sqs !== null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }));
|
|
2924
|
+
})), (input.lambda != null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.sns != null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) })), (input.sqs != null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }));
|
|
2944
2925
|
};
|
|
2945
2926
|
var serializeAws_restJson1AlarmActions = function (input, context) {
|
|
2946
2927
|
return input
|
|
@@ -2953,43 +2934,38 @@ var serializeAws_restJson1AlarmActions = function (input, context) {
|
|
|
2953
2934
|
});
|
|
2954
2935
|
};
|
|
2955
2936
|
var serializeAws_restJson1AlarmCapabilities = function (input, context) {
|
|
2956
|
-
return __assign(__assign({}, (input.acknowledgeFlow
|
|
2957
|
-
input.acknowledgeFlow !== null && {
|
|
2937
|
+
return __assign(__assign({}, (input.acknowledgeFlow != null && {
|
|
2958
2938
|
acknowledgeFlow: serializeAws_restJson1AcknowledgeFlow(input.acknowledgeFlow, context),
|
|
2959
|
-
})), (input.initializationConfiguration
|
|
2960
|
-
input.initializationConfiguration !== null && {
|
|
2939
|
+
})), (input.initializationConfiguration != null && {
|
|
2961
2940
|
initializationConfiguration: serializeAws_restJson1InitializationConfiguration(input.initializationConfiguration, context),
|
|
2962
2941
|
}));
|
|
2963
2942
|
};
|
|
2964
2943
|
var serializeAws_restJson1AlarmEventActions = function (input, context) {
|
|
2965
|
-
return __assign({}, (input.alarmActions
|
|
2966
|
-
|
|
2944
|
+
return __assign({}, (input.alarmActions != null && {
|
|
2945
|
+
alarmActions: serializeAws_restJson1AlarmActions(input.alarmActions, context),
|
|
2946
|
+
}));
|
|
2967
2947
|
};
|
|
2968
2948
|
var serializeAws_restJson1AlarmNotification = function (input, context) {
|
|
2969
|
-
return __assign({}, (input.notificationActions
|
|
2970
|
-
input.notificationActions !== null && {
|
|
2949
|
+
return __assign({}, (input.notificationActions != null && {
|
|
2971
2950
|
notificationActions: serializeAws_restJson1NotificationActions(input.notificationActions, context),
|
|
2972
2951
|
}));
|
|
2973
2952
|
};
|
|
2974
2953
|
var serializeAws_restJson1AlarmRule = function (input, context) {
|
|
2975
|
-
return __assign({}, (input.simpleRule
|
|
2976
|
-
input.simpleRule !== null && { simpleRule: serializeAws_restJson1SimpleRule(input.simpleRule, context) }));
|
|
2954
|
+
return __assign({}, (input.simpleRule != null && { simpleRule: serializeAws_restJson1SimpleRule(input.simpleRule, context) }));
|
|
2977
2955
|
};
|
|
2978
2956
|
var serializeAws_restJson1AssetPropertyTimestamp = function (input, context) {
|
|
2979
|
-
return __assign(__assign({}, (input.offsetInNanos
|
|
2957
|
+
return __assign(__assign({}, (input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos })), (input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }));
|
|
2980
2958
|
};
|
|
2981
2959
|
var serializeAws_restJson1AssetPropertyValue = function (input, context) {
|
|
2982
|
-
return __assign(__assign(__assign({}, (input.quality
|
|
2983
|
-
input.timestamp !== null && {
|
|
2960
|
+
return __assign(__assign(__assign({}, (input.quality != null && { quality: input.quality })), (input.timestamp != null && {
|
|
2984
2961
|
timestamp: serializeAws_restJson1AssetPropertyTimestamp(input.timestamp, context),
|
|
2985
|
-
})), (input.value
|
|
2986
|
-
input.value !== null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }));
|
|
2962
|
+
})), (input.value != null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }));
|
|
2987
2963
|
};
|
|
2988
2964
|
var serializeAws_restJson1AssetPropertyVariant = function (input, context) {
|
|
2989
|
-
return __assign(__assign(__assign(__assign({}, (input.booleanValue
|
|
2965
|
+
return __assign(__assign(__assign(__assign({}, (input.booleanValue != null && { booleanValue: input.booleanValue })), (input.doubleValue != null && { doubleValue: input.doubleValue })), (input.integerValue != null && { integerValue: input.integerValue })), (input.stringValue != null && { stringValue: input.stringValue }));
|
|
2990
2966
|
};
|
|
2991
2967
|
var serializeAws_restJson1Attribute = function (input, context) {
|
|
2992
|
-
return __assign({}, (input.jsonPath
|
|
2968
|
+
return __assign({}, (input.jsonPath != null && { jsonPath: input.jsonPath }));
|
|
2993
2969
|
};
|
|
2994
2970
|
var serializeAws_restJson1Attributes = function (input, context) {
|
|
2995
2971
|
return input
|
|
@@ -3002,11 +2978,10 @@ var serializeAws_restJson1Attributes = function (input, context) {
|
|
|
3002
2978
|
});
|
|
3003
2979
|
};
|
|
3004
2980
|
var serializeAws_restJson1ClearTimerAction = function (input, context) {
|
|
3005
|
-
return __assign({}, (input.timerName
|
|
2981
|
+
return __assign({}, (input.timerName != null && { timerName: input.timerName }));
|
|
3006
2982
|
};
|
|
3007
2983
|
var serializeAws_restJson1DetectorDebugOption = function (input, context) {
|
|
3008
|
-
return __assign(__assign({}, (input.detectorModelName
|
|
3009
|
-
input.detectorModelName !== null && { detectorModelName: input.detectorModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue }));
|
|
2984
|
+
return __assign(__assign({}, (input.detectorModelName != null && { detectorModelName: input.detectorModelName })), (input.keyValue != null && { keyValue: input.keyValue }));
|
|
3010
2985
|
};
|
|
3011
2986
|
var serializeAws_restJson1DetectorDebugOptions = function (input, context) {
|
|
3012
2987
|
return input
|
|
@@ -3019,22 +2994,16 @@ var serializeAws_restJson1DetectorDebugOptions = function (input, context) {
|
|
|
3019
2994
|
});
|
|
3020
2995
|
};
|
|
3021
2996
|
var serializeAws_restJson1DetectorModelDefinition = function (input, context) {
|
|
3022
|
-
return __assign(__assign({}, (input.initialStateName
|
|
3023
|
-
input.initialStateName !== null && { initialStateName: input.initialStateName })), (input.states !== undefined &&
|
|
3024
|
-
input.states !== null && { states: serializeAws_restJson1States(input.states, context) }));
|
|
2997
|
+
return __assign(__assign({}, (input.initialStateName != null && { initialStateName: input.initialStateName })), (input.states != null && { states: serializeAws_restJson1States(input.states, context) }));
|
|
3025
2998
|
};
|
|
3026
2999
|
var serializeAws_restJson1DynamoDBAction = function (input, context) {
|
|
3027
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.hashKeyField
|
|
3028
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.payloadField !== undefined && input.payloadField !== null && { payloadField: input.payloadField })), (input.rangeKeyField !== undefined && input.rangeKeyField !== null && { rangeKeyField: input.rangeKeyField })), (input.rangeKeyType !== undefined && input.rangeKeyType !== null && { rangeKeyType: input.rangeKeyType })), (input.rangeKeyValue !== undefined && input.rangeKeyValue !== null && { rangeKeyValue: input.rangeKeyValue })), (input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }));
|
|
3000
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.hashKeyField != null && { hashKeyField: input.hashKeyField })), (input.hashKeyType != null && { hashKeyType: input.hashKeyType })), (input.hashKeyValue != null && { hashKeyValue: input.hashKeyValue })), (input.operation != null && { operation: input.operation })), (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.payloadField != null && { payloadField: input.payloadField })), (input.rangeKeyField != null && { rangeKeyField: input.rangeKeyField })), (input.rangeKeyType != null && { rangeKeyType: input.rangeKeyType })), (input.rangeKeyValue != null && { rangeKeyValue: input.rangeKeyValue })), (input.tableName != null && { tableName: input.tableName }));
|
|
3029
3001
|
};
|
|
3030
3002
|
var serializeAws_restJson1DynamoDBv2Action = function (input, context) {
|
|
3031
|
-
return __assign(__assign({}, (input.payload
|
|
3032
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }));
|
|
3003
|
+
return __assign(__assign({}, (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.tableName != null && { tableName: input.tableName }));
|
|
3033
3004
|
};
|
|
3034
3005
|
var serializeAws_restJson1EmailConfiguration = function (input, context) {
|
|
3035
|
-
return __assign(__assign(__assign({}, (input.content
|
|
3036
|
-
input.content !== null && { content: serializeAws_restJson1EmailContent(input.content, context) })), (input.from !== undefined && input.from !== null && { from: input.from })), (input.recipients !== undefined &&
|
|
3037
|
-
input.recipients !== null && { recipients: serializeAws_restJson1EmailRecipients(input.recipients, context) }));
|
|
3006
|
+
return __assign(__assign(__assign({}, (input.content != null && { content: serializeAws_restJson1EmailContent(input.content, context) })), (input.from != null && { from: input.from })), (input.recipients != null && { recipients: serializeAws_restJson1EmailRecipients(input.recipients, context) }));
|
|
3038
3007
|
};
|
|
3039
3008
|
var serializeAws_restJson1EmailConfigurations = function (input, context) {
|
|
3040
3009
|
return input
|
|
@@ -3047,16 +3016,13 @@ var serializeAws_restJson1EmailConfigurations = function (input, context) {
|
|
|
3047
3016
|
});
|
|
3048
3017
|
};
|
|
3049
3018
|
var serializeAws_restJson1EmailContent = function (input, context) {
|
|
3050
|
-
return __assign(__assign({}, (input.additionalMessage
|
|
3051
|
-
input.additionalMessage !== null && { additionalMessage: input.additionalMessage })), (input.subject !== undefined && input.subject !== null && { subject: input.subject }));
|
|
3019
|
+
return __assign(__assign({}, (input.additionalMessage != null && { additionalMessage: input.additionalMessage })), (input.subject != null && { subject: input.subject }));
|
|
3052
3020
|
};
|
|
3053
3021
|
var serializeAws_restJson1EmailRecipients = function (input, context) {
|
|
3054
|
-
return __assign({}, (input.to
|
|
3055
|
-
input.to !== null && { to: serializeAws_restJson1RecipientDetails(input.to, context) }));
|
|
3022
|
+
return __assign({}, (input.to != null && { to: serializeAws_restJson1RecipientDetails(input.to, context) }));
|
|
3056
3023
|
};
|
|
3057
3024
|
var serializeAws_restJson1Event = function (input, context) {
|
|
3058
|
-
return __assign(__assign(__assign({}, (input.actions
|
|
3059
|
-
input.actions !== null && { actions: serializeAws_restJson1Actions(input.actions, context) })), (input.condition !== undefined && input.condition !== null && { condition: input.condition })), (input.eventName !== undefined && input.eventName !== null && { eventName: input.eventName }));
|
|
3025
|
+
return __assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1Actions(input.actions, context) })), (input.condition != null && { condition: input.condition })), (input.eventName != null && { eventName: input.eventName }));
|
|
3060
3026
|
};
|
|
3061
3027
|
var serializeAws_restJson1Events = function (input, context) {
|
|
3062
3028
|
return input
|
|
@@ -3069,70 +3035,55 @@ var serializeAws_restJson1Events = function (input, context) {
|
|
|
3069
3035
|
});
|
|
3070
3036
|
};
|
|
3071
3037
|
var serializeAws_restJson1FirehoseAction = function (input, context) {
|
|
3072
|
-
return __assign(__assign(__assign({}, (input.deliveryStreamName
|
|
3073
|
-
input.deliveryStreamName !== null && { deliveryStreamName: input.deliveryStreamName })), (input.payload !== undefined &&
|
|
3074
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.separator !== undefined && input.separator !== null && { separator: input.separator }));
|
|
3038
|
+
return __assign(__assign(__assign({}, (input.deliveryStreamName != null && { deliveryStreamName: input.deliveryStreamName })), (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.separator != null && { separator: input.separator }));
|
|
3075
3039
|
};
|
|
3076
3040
|
var serializeAws_restJson1InitializationConfiguration = function (input, context) {
|
|
3077
|
-
return __assign({}, (input.disabledOnInitialization
|
|
3078
|
-
input.disabledOnInitialization !== null && { disabledOnInitialization: input.disabledOnInitialization }));
|
|
3041
|
+
return __assign({}, (input.disabledOnInitialization != null && { disabledOnInitialization: input.disabledOnInitialization }));
|
|
3079
3042
|
};
|
|
3080
3043
|
var serializeAws_restJson1InputDefinition = function (input, context) {
|
|
3081
|
-
return __assign({}, (input.attributes
|
|
3082
|
-
input.attributes !== null && { attributes: serializeAws_restJson1Attributes(input.attributes, context) }));
|
|
3044
|
+
return __assign({}, (input.attributes != null && { attributes: serializeAws_restJson1Attributes(input.attributes, context) }));
|
|
3083
3045
|
};
|
|
3084
3046
|
var serializeAws_restJson1InputIdentifier = function (input, context) {
|
|
3085
|
-
return __assign(__assign({}, (input.iotEventsInputIdentifier
|
|
3086
|
-
input.iotEventsInputIdentifier !== null && {
|
|
3047
|
+
return __assign(__assign({}, (input.iotEventsInputIdentifier != null && {
|
|
3087
3048
|
iotEventsInputIdentifier: serializeAws_restJson1IotEventsInputIdentifier(input.iotEventsInputIdentifier, context),
|
|
3088
|
-
})), (input.iotSiteWiseInputIdentifier
|
|
3089
|
-
input.iotSiteWiseInputIdentifier !== null && {
|
|
3049
|
+
})), (input.iotSiteWiseInputIdentifier != null && {
|
|
3090
3050
|
iotSiteWiseInputIdentifier: serializeAws_restJson1IotSiteWiseInputIdentifier(input.iotSiteWiseInputIdentifier, context),
|
|
3091
3051
|
}));
|
|
3092
3052
|
};
|
|
3093
3053
|
var serializeAws_restJson1IotEventsAction = function (input, context) {
|
|
3094
|
-
return __assign(__assign({}, (input.inputName
|
|
3095
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3054
|
+
return __assign(__assign({}, (input.inputName != null && { inputName: input.inputName })), (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3096
3055
|
};
|
|
3097
3056
|
var serializeAws_restJson1IotEventsInputIdentifier = function (input, context) {
|
|
3098
|
-
return __assign({}, (input.inputName
|
|
3057
|
+
return __assign({}, (input.inputName != null && { inputName: input.inputName }));
|
|
3099
3058
|
};
|
|
3100
3059
|
var serializeAws_restJson1IotSiteWiseAction = function (input, context) {
|
|
3101
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.assetId
|
|
3102
|
-
input.propertyValue !== null && {
|
|
3060
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.assetId != null && { assetId: input.assetId })), (input.entryId != null && { entryId: input.entryId })), (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyId != null && { propertyId: input.propertyId })), (input.propertyValue != null && {
|
|
3103
3061
|
propertyValue: serializeAws_restJson1AssetPropertyValue(input.propertyValue, context),
|
|
3104
3062
|
}));
|
|
3105
3063
|
};
|
|
3106
3064
|
var serializeAws_restJson1IotSiteWiseAssetModelPropertyIdentifier = function (input, context) {
|
|
3107
|
-
return __assign(__assign({}, (input.assetModelId
|
|
3065
|
+
return __assign(__assign({}, (input.assetModelId != null && { assetModelId: input.assetModelId })), (input.propertyId != null && { propertyId: input.propertyId }));
|
|
3108
3066
|
};
|
|
3109
3067
|
var serializeAws_restJson1IotSiteWiseInputIdentifier = function (input, context) {
|
|
3110
|
-
return __assign({}, (input.iotSiteWiseAssetModelPropertyIdentifier
|
|
3111
|
-
input.iotSiteWiseAssetModelPropertyIdentifier !== null && {
|
|
3068
|
+
return __assign({}, (input.iotSiteWiseAssetModelPropertyIdentifier != null && {
|
|
3112
3069
|
iotSiteWiseAssetModelPropertyIdentifier: serializeAws_restJson1IotSiteWiseAssetModelPropertyIdentifier(input.iotSiteWiseAssetModelPropertyIdentifier, context),
|
|
3113
3070
|
}));
|
|
3114
3071
|
};
|
|
3115
3072
|
var serializeAws_restJson1IotTopicPublishAction = function (input, context) {
|
|
3116
|
-
return __assign(__assign({}, (input.mqttTopic
|
|
3117
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3073
|
+
return __assign(__assign({}, (input.mqttTopic != null && { mqttTopic: input.mqttTopic })), (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3118
3074
|
};
|
|
3119
3075
|
var serializeAws_restJson1LambdaAction = function (input, context) {
|
|
3120
|
-
return __assign(__assign({}, (input.functionArn
|
|
3121
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3076
|
+
return __assign(__assign({}, (input.functionArn != null && { functionArn: input.functionArn })), (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3122
3077
|
};
|
|
3123
3078
|
var serializeAws_restJson1LoggingOptions = function (input, context) {
|
|
3124
|
-
return __assign(__assign(__assign(__assign({}, (input.detectorDebugOptions
|
|
3125
|
-
input.detectorDebugOptions !== null && {
|
|
3079
|
+
return __assign(__assign(__assign(__assign({}, (input.detectorDebugOptions != null && {
|
|
3126
3080
|
detectorDebugOptions: serializeAws_restJson1DetectorDebugOptions(input.detectorDebugOptions, context),
|
|
3127
|
-
})), (input.enabled
|
|
3081
|
+
})), (input.enabled != null && { enabled: input.enabled })), (input.level != null && { level: input.level })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
3128
3082
|
};
|
|
3129
3083
|
var serializeAws_restJson1NotificationAction = function (input, context) {
|
|
3130
|
-
return __assign(__assign(__assign({}, (input.action
|
|
3131
|
-
input.action !== null && { action: serializeAws_restJson1NotificationTargetActions(input.action, context) })), (input.emailConfigurations !== undefined &&
|
|
3132
|
-
input.emailConfigurations !== null && {
|
|
3084
|
+
return __assign(__assign(__assign({}, (input.action != null && { action: serializeAws_restJson1NotificationTargetActions(input.action, context) })), (input.emailConfigurations != null && {
|
|
3133
3085
|
emailConfigurations: serializeAws_restJson1EmailConfigurations(input.emailConfigurations, context),
|
|
3134
|
-
})), (input.smsConfigurations
|
|
3135
|
-
input.smsConfigurations !== null && {
|
|
3086
|
+
})), (input.smsConfigurations != null && {
|
|
3136
3087
|
smsConfigurations: serializeAws_restJson1SMSConfigurations(input.smsConfigurations, context),
|
|
3137
3088
|
}));
|
|
3138
3089
|
};
|
|
@@ -3147,31 +3098,26 @@ var serializeAws_restJson1NotificationActions = function (input, context) {
|
|
|
3147
3098
|
});
|
|
3148
3099
|
};
|
|
3149
3100
|
var serializeAws_restJson1NotificationTargetActions = function (input, context) {
|
|
3150
|
-
return __assign({}, (input.lambdaAction
|
|
3151
|
-
|
|
3101
|
+
return __assign({}, (input.lambdaAction != null && {
|
|
3102
|
+
lambdaAction: serializeAws_restJson1LambdaAction(input.lambdaAction, context),
|
|
3103
|
+
}));
|
|
3152
3104
|
};
|
|
3153
3105
|
var serializeAws_restJson1OnEnterLifecycle = function (input, context) {
|
|
3154
|
-
return __assign({}, (input.events
|
|
3155
|
-
input.events !== null && { events: serializeAws_restJson1Events(input.events, context) }));
|
|
3106
|
+
return __assign({}, (input.events != null && { events: serializeAws_restJson1Events(input.events, context) }));
|
|
3156
3107
|
};
|
|
3157
3108
|
var serializeAws_restJson1OnExitLifecycle = function (input, context) {
|
|
3158
|
-
return __assign({}, (input.events
|
|
3159
|
-
input.events !== null && { events: serializeAws_restJson1Events(input.events, context) }));
|
|
3109
|
+
return __assign({}, (input.events != null && { events: serializeAws_restJson1Events(input.events, context) }));
|
|
3160
3110
|
};
|
|
3161
3111
|
var serializeAws_restJson1OnInputLifecycle = function (input, context) {
|
|
3162
|
-
return __assign(__assign({}, (input.events
|
|
3163
|
-
input.events !== null && { events: serializeAws_restJson1Events(input.events, context) })), (input.transitionEvents !== undefined &&
|
|
3164
|
-
input.transitionEvents !== null && {
|
|
3112
|
+
return __assign(__assign({}, (input.events != null && { events: serializeAws_restJson1Events(input.events, context) })), (input.transitionEvents != null && {
|
|
3165
3113
|
transitionEvents: serializeAws_restJson1TransitionEvents(input.transitionEvents, context),
|
|
3166
3114
|
}));
|
|
3167
3115
|
};
|
|
3168
3116
|
var serializeAws_restJson1Payload = function (input, context) {
|
|
3169
|
-
return __assign(__assign({}, (input.contentExpression
|
|
3170
|
-
input.contentExpression !== null && { contentExpression: input.contentExpression })), (input.type !== undefined && input.type !== null && { type: input.type }));
|
|
3117
|
+
return __assign(__assign({}, (input.contentExpression != null && { contentExpression: input.contentExpression })), (input.type != null && { type: input.type }));
|
|
3171
3118
|
};
|
|
3172
3119
|
var serializeAws_restJson1RecipientDetail = function (input, context) {
|
|
3173
|
-
return __assign({}, (input.ssoIdentity
|
|
3174
|
-
input.ssoIdentity !== null && { ssoIdentity: serializeAws_restJson1SSOIdentity(input.ssoIdentity, context) }));
|
|
3120
|
+
return __assign({}, (input.ssoIdentity != null && { ssoIdentity: serializeAws_restJson1SSOIdentity(input.ssoIdentity, context) }));
|
|
3175
3121
|
};
|
|
3176
3122
|
var serializeAws_restJson1RecipientDetails = function (input, context) {
|
|
3177
3123
|
return input
|
|
@@ -3184,23 +3130,19 @@ var serializeAws_restJson1RecipientDetails = function (input, context) {
|
|
|
3184
3130
|
});
|
|
3185
3131
|
};
|
|
3186
3132
|
var serializeAws_restJson1ResetTimerAction = function (input, context) {
|
|
3187
|
-
return __assign({}, (input.timerName
|
|
3133
|
+
return __assign({}, (input.timerName != null && { timerName: input.timerName }));
|
|
3188
3134
|
};
|
|
3189
3135
|
var serializeAws_restJson1SetTimerAction = function (input, context) {
|
|
3190
|
-
return __assign(__assign(__assign({}, (input.durationExpression
|
|
3191
|
-
input.durationExpression !== null && { durationExpression: input.durationExpression })), (input.seconds !== undefined && input.seconds !== null && { seconds: input.seconds })), (input.timerName !== undefined && input.timerName !== null && { timerName: input.timerName }));
|
|
3136
|
+
return __assign(__assign(__assign({}, (input.durationExpression != null && { durationExpression: input.durationExpression })), (input.seconds != null && { seconds: input.seconds })), (input.timerName != null && { timerName: input.timerName }));
|
|
3192
3137
|
};
|
|
3193
3138
|
var serializeAws_restJson1SetVariableAction = function (input, context) {
|
|
3194
|
-
return __assign(__assign({}, (input.value
|
|
3139
|
+
return __assign(__assign({}, (input.value != null && { value: input.value })), (input.variableName != null && { variableName: input.variableName }));
|
|
3195
3140
|
};
|
|
3196
3141
|
var serializeAws_restJson1SimpleRule = function (input, context) {
|
|
3197
|
-
return __assign(__assign(__assign({}, (input.comparisonOperator
|
|
3198
|
-
input.comparisonOperator !== null && { comparisonOperator: input.comparisonOperator })), (input.inputProperty !== undefined && input.inputProperty !== null && { inputProperty: input.inputProperty })), (input.threshold !== undefined && input.threshold !== null && { threshold: input.threshold }));
|
|
3142
|
+
return __assign(__assign(__assign({}, (input.comparisonOperator != null && { comparisonOperator: input.comparisonOperator })), (input.inputProperty != null && { inputProperty: input.inputProperty })), (input.threshold != null && { threshold: input.threshold }));
|
|
3199
3143
|
};
|
|
3200
3144
|
var serializeAws_restJson1SMSConfiguration = function (input, context) {
|
|
3201
|
-
return __assign(__assign(__assign({}, (input.additionalMessage
|
|
3202
|
-
input.additionalMessage !== null && { additionalMessage: input.additionalMessage })), (input.recipients !== undefined &&
|
|
3203
|
-
input.recipients !== null && { recipients: serializeAws_restJson1RecipientDetails(input.recipients, context) })), (input.senderId !== undefined && input.senderId !== null && { senderId: input.senderId }));
|
|
3145
|
+
return __assign(__assign(__assign({}, (input.additionalMessage != null && { additionalMessage: input.additionalMessage })), (input.recipients != null && { recipients: serializeAws_restJson1RecipientDetails(input.recipients, context) })), (input.senderId != null && { senderId: input.senderId }));
|
|
3204
3146
|
};
|
|
3205
3147
|
var serializeAws_restJson1SMSConfigurations = function (input, context) {
|
|
3206
3148
|
return input
|
|
@@ -3213,22 +3155,16 @@ var serializeAws_restJson1SMSConfigurations = function (input, context) {
|
|
|
3213
3155
|
});
|
|
3214
3156
|
};
|
|
3215
3157
|
var serializeAws_restJson1SNSTopicPublishAction = function (input, context) {
|
|
3216
|
-
return __assign(__assign({}, (input.payload
|
|
3217
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }));
|
|
3158
|
+
return __assign(__assign({}, (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.targetArn != null && { targetArn: input.targetArn }));
|
|
3218
3159
|
};
|
|
3219
3160
|
var serializeAws_restJson1SqsAction = function (input, context) {
|
|
3220
|
-
return __assign(__assign(__assign({}, (input.payload
|
|
3221
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.queueUrl !== undefined && input.queueUrl !== null && { queueUrl: input.queueUrl })), (input.useBase64 !== undefined && input.useBase64 !== null && { useBase64: input.useBase64 }));
|
|
3161
|
+
return __assign(__assign(__assign({}, (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.queueUrl != null && { queueUrl: input.queueUrl })), (input.useBase64 != null && { useBase64: input.useBase64 }));
|
|
3222
3162
|
};
|
|
3223
3163
|
var serializeAws_restJson1SSOIdentity = function (input, context) {
|
|
3224
|
-
return __assign(__assign({}, (input.identityStoreId
|
|
3225
|
-
input.identityStoreId !== null && { identityStoreId: input.identityStoreId })), (input.userId !== undefined && input.userId !== null && { userId: input.userId }));
|
|
3164
|
+
return __assign(__assign({}, (input.identityStoreId != null && { identityStoreId: input.identityStoreId })), (input.userId != null && { userId: input.userId }));
|
|
3226
3165
|
};
|
|
3227
3166
|
var serializeAws_restJson1State = function (input, context) {
|
|
3228
|
-
return __assign(__assign(__assign(__assign({}, (input.onEnter
|
|
3229
|
-
input.onEnter !== null && { onEnter: serializeAws_restJson1OnEnterLifecycle(input.onEnter, context) })), (input.onExit !== undefined &&
|
|
3230
|
-
input.onExit !== null && { onExit: serializeAws_restJson1OnExitLifecycle(input.onExit, context) })), (input.onInput !== undefined &&
|
|
3231
|
-
input.onInput !== null && { onInput: serializeAws_restJson1OnInputLifecycle(input.onInput, context) })), (input.stateName !== undefined && input.stateName !== null && { stateName: input.stateName }));
|
|
3167
|
+
return __assign(__assign(__assign(__assign({}, (input.onEnter != null && { onEnter: serializeAws_restJson1OnEnterLifecycle(input.onEnter, context) })), (input.onExit != null && { onExit: serializeAws_restJson1OnExitLifecycle(input.onExit, context) })), (input.onInput != null && { onInput: serializeAws_restJson1OnInputLifecycle(input.onInput, context) })), (input.stateName != null && { stateName: input.stateName }));
|
|
3232
3168
|
};
|
|
3233
3169
|
var serializeAws_restJson1States = function (input, context) {
|
|
3234
3170
|
return input
|
|
@@ -3241,7 +3177,7 @@ var serializeAws_restJson1States = function (input, context) {
|
|
|
3241
3177
|
});
|
|
3242
3178
|
};
|
|
3243
3179
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
3244
|
-
return __assign(__assign({}, (input.key
|
|
3180
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
3245
3181
|
};
|
|
3246
3182
|
var serializeAws_restJson1Tags = function (input, context) {
|
|
3247
3183
|
return input
|
|
@@ -3254,8 +3190,7 @@ var serializeAws_restJson1Tags = function (input, context) {
|
|
|
3254
3190
|
});
|
|
3255
3191
|
};
|
|
3256
3192
|
var serializeAws_restJson1TransitionEvent = function (input, context) {
|
|
3257
|
-
return __assign(__assign(__assign(__assign({}, (input.actions
|
|
3258
|
-
input.actions !== null && { actions: serializeAws_restJson1Actions(input.actions, context) })), (input.condition !== undefined && input.condition !== null && { condition: input.condition })), (input.eventName !== undefined && input.eventName !== null && { eventName: input.eventName })), (input.nextState !== undefined && input.nextState !== null && { nextState: input.nextState }));
|
|
3193
|
+
return __assign(__assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1Actions(input.actions, context) })), (input.condition != null && { condition: input.condition })), (input.eventName != null && { eventName: input.eventName })), (input.nextState != null && { nextState: input.nextState }));
|
|
3259
3194
|
};
|
|
3260
3195
|
var serializeAws_restJson1TransitionEvents = function (input, context) {
|
|
3261
3196
|
return input
|
|
@@ -3274,45 +3209,21 @@ var deserializeAws_restJson1AcknowledgeFlow = function (output, context) {
|
|
|
3274
3209
|
};
|
|
3275
3210
|
var deserializeAws_restJson1Action = function (output, context) {
|
|
3276
3211
|
return {
|
|
3277
|
-
clearTimer: output.clearTimer
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context)
|
|
3285
|
-
: undefined,
|
|
3286
|
-
firehose: output.firehose !== undefined && output.firehose !== null
|
|
3287
|
-
? deserializeAws_restJson1FirehoseAction(output.firehose, context)
|
|
3288
|
-
: undefined,
|
|
3289
|
-
iotEvents: output.iotEvents !== undefined && output.iotEvents !== null
|
|
3290
|
-
? deserializeAws_restJson1IotEventsAction(output.iotEvents, context)
|
|
3291
|
-
: undefined,
|
|
3292
|
-
iotSiteWise: output.iotSiteWise !== undefined && output.iotSiteWise !== null
|
|
3293
|
-
? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context)
|
|
3294
|
-
: undefined,
|
|
3295
|
-
iotTopicPublish: output.iotTopicPublish !== undefined && output.iotTopicPublish !== null
|
|
3212
|
+
clearTimer: output.clearTimer != null ? deserializeAws_restJson1ClearTimerAction(output.clearTimer, context) : undefined,
|
|
3213
|
+
dynamoDB: output.dynamoDB != null ? deserializeAws_restJson1DynamoDBAction(output.dynamoDB, context) : undefined,
|
|
3214
|
+
dynamoDBv2: output.dynamoDBv2 != null ? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
|
|
3215
|
+
firehose: output.firehose != null ? deserializeAws_restJson1FirehoseAction(output.firehose, context) : undefined,
|
|
3216
|
+
iotEvents: output.iotEvents != null ? deserializeAws_restJson1IotEventsAction(output.iotEvents, context) : undefined,
|
|
3217
|
+
iotSiteWise: output.iotSiteWise != null ? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context) : undefined,
|
|
3218
|
+
iotTopicPublish: output.iotTopicPublish != null
|
|
3296
3219
|
? deserializeAws_restJson1IotTopicPublishAction(output.iotTopicPublish, context)
|
|
3297
3220
|
: undefined,
|
|
3298
|
-
lambda: output.lambda
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
setTimer: output.setTimer !== undefined && output.setTimer !== null
|
|
3305
|
-
? deserializeAws_restJson1SetTimerAction(output.setTimer, context)
|
|
3306
|
-
: undefined,
|
|
3307
|
-
setVariable: output.setVariable !== undefined && output.setVariable !== null
|
|
3308
|
-
? deserializeAws_restJson1SetVariableAction(output.setVariable, context)
|
|
3309
|
-
: undefined,
|
|
3310
|
-
sns: output.sns !== undefined && output.sns !== null
|
|
3311
|
-
? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context)
|
|
3312
|
-
: undefined,
|
|
3313
|
-
sqs: output.sqs !== undefined && output.sqs !== null
|
|
3314
|
-
? deserializeAws_restJson1SqsAction(output.sqs, context)
|
|
3315
|
-
: undefined,
|
|
3221
|
+
lambda: output.lambda != null ? deserializeAws_restJson1LambdaAction(output.lambda, context) : undefined,
|
|
3222
|
+
resetTimer: output.resetTimer != null ? deserializeAws_restJson1ResetTimerAction(output.resetTimer, context) : undefined,
|
|
3223
|
+
setTimer: output.setTimer != null ? deserializeAws_restJson1SetTimerAction(output.setTimer, context) : undefined,
|
|
3224
|
+
setVariable: output.setVariable != null ? deserializeAws_restJson1SetVariableAction(output.setVariable, context) : undefined,
|
|
3225
|
+
sns: output.sns != null ? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context) : undefined,
|
|
3226
|
+
sqs: output.sqs != null ? deserializeAws_restJson1SqsAction(output.sqs, context) : undefined,
|
|
3316
3227
|
};
|
|
3317
3228
|
};
|
|
3318
3229
|
var deserializeAws_restJson1Actions = function (output, context) {
|
|
@@ -3328,33 +3239,17 @@ var deserializeAws_restJson1Actions = function (output, context) {
|
|
|
3328
3239
|
};
|
|
3329
3240
|
var deserializeAws_restJson1AlarmAction = function (output, context) {
|
|
3330
3241
|
return {
|
|
3331
|
-
dynamoDB: output.dynamoDB
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
firehose: output.firehose !== undefined && output.firehose !== null
|
|
3338
|
-
? deserializeAws_restJson1FirehoseAction(output.firehose, context)
|
|
3339
|
-
: undefined,
|
|
3340
|
-
iotEvents: output.iotEvents !== undefined && output.iotEvents !== null
|
|
3341
|
-
? deserializeAws_restJson1IotEventsAction(output.iotEvents, context)
|
|
3342
|
-
: undefined,
|
|
3343
|
-
iotSiteWise: output.iotSiteWise !== undefined && output.iotSiteWise !== null
|
|
3344
|
-
? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context)
|
|
3345
|
-
: undefined,
|
|
3346
|
-
iotTopicPublish: output.iotTopicPublish !== undefined && output.iotTopicPublish !== null
|
|
3242
|
+
dynamoDB: output.dynamoDB != null ? deserializeAws_restJson1DynamoDBAction(output.dynamoDB, context) : undefined,
|
|
3243
|
+
dynamoDBv2: output.dynamoDBv2 != null ? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
|
|
3244
|
+
firehose: output.firehose != null ? deserializeAws_restJson1FirehoseAction(output.firehose, context) : undefined,
|
|
3245
|
+
iotEvents: output.iotEvents != null ? deserializeAws_restJson1IotEventsAction(output.iotEvents, context) : undefined,
|
|
3246
|
+
iotSiteWise: output.iotSiteWise != null ? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context) : undefined,
|
|
3247
|
+
iotTopicPublish: output.iotTopicPublish != null
|
|
3347
3248
|
? deserializeAws_restJson1IotTopicPublishAction(output.iotTopicPublish, context)
|
|
3348
3249
|
: undefined,
|
|
3349
|
-
lambda: output.lambda
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
sns: output.sns !== undefined && output.sns !== null
|
|
3353
|
-
? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context)
|
|
3354
|
-
: undefined,
|
|
3355
|
-
sqs: output.sqs !== undefined && output.sqs !== null
|
|
3356
|
-
? deserializeAws_restJson1SqsAction(output.sqs, context)
|
|
3357
|
-
: undefined,
|
|
3250
|
+
lambda: output.lambda != null ? deserializeAws_restJson1LambdaAction(output.lambda, context) : undefined,
|
|
3251
|
+
sns: output.sns != null ? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context) : undefined,
|
|
3252
|
+
sqs: output.sqs != null ? deserializeAws_restJson1SqsAction(output.sqs, context) : undefined,
|
|
3358
3253
|
};
|
|
3359
3254
|
};
|
|
3360
3255
|
var deserializeAws_restJson1AlarmActions = function (output, context) {
|
|
@@ -3370,19 +3265,17 @@ var deserializeAws_restJson1AlarmActions = function (output, context) {
|
|
|
3370
3265
|
};
|
|
3371
3266
|
var deserializeAws_restJson1AlarmCapabilities = function (output, context) {
|
|
3372
3267
|
return {
|
|
3373
|
-
acknowledgeFlow: output.acknowledgeFlow
|
|
3268
|
+
acknowledgeFlow: output.acknowledgeFlow != null
|
|
3374
3269
|
? deserializeAws_restJson1AcknowledgeFlow(output.acknowledgeFlow, context)
|
|
3375
3270
|
: undefined,
|
|
3376
|
-
initializationConfiguration: output.initializationConfiguration
|
|
3271
|
+
initializationConfiguration: output.initializationConfiguration != null
|
|
3377
3272
|
? deserializeAws_restJson1InitializationConfiguration(output.initializationConfiguration, context)
|
|
3378
3273
|
: undefined,
|
|
3379
3274
|
};
|
|
3380
3275
|
};
|
|
3381
3276
|
var deserializeAws_restJson1AlarmEventActions = function (output, context) {
|
|
3382
3277
|
return {
|
|
3383
|
-
alarmActions: output.alarmActions
|
|
3384
|
-
? deserializeAws_restJson1AlarmActions(output.alarmActions, context)
|
|
3385
|
-
: undefined,
|
|
3278
|
+
alarmActions: output.alarmActions != null ? deserializeAws_restJson1AlarmActions(output.alarmActions, context) : undefined,
|
|
3386
3279
|
};
|
|
3387
3280
|
};
|
|
3388
3281
|
var deserializeAws_restJson1AlarmModelSummaries = function (output, context) {
|
|
@@ -3400,7 +3293,7 @@ var deserializeAws_restJson1AlarmModelSummary = function (output, context) {
|
|
|
3400
3293
|
return {
|
|
3401
3294
|
alarmModelDescription: __expectString(output.alarmModelDescription),
|
|
3402
3295
|
alarmModelName: __expectString(output.alarmModelName),
|
|
3403
|
-
creationTime: output.creationTime
|
|
3296
|
+
creationTime: output.creationTime != null
|
|
3404
3297
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3405
3298
|
: undefined,
|
|
3406
3299
|
};
|
|
@@ -3421,10 +3314,10 @@ var deserializeAws_restJson1AlarmModelVersionSummary = function (output, context
|
|
|
3421
3314
|
alarmModelArn: __expectString(output.alarmModelArn),
|
|
3422
3315
|
alarmModelName: __expectString(output.alarmModelName),
|
|
3423
3316
|
alarmModelVersion: __expectString(output.alarmModelVersion),
|
|
3424
|
-
creationTime: output.creationTime
|
|
3317
|
+
creationTime: output.creationTime != null
|
|
3425
3318
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3426
3319
|
: undefined,
|
|
3427
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3320
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3428
3321
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3429
3322
|
: undefined,
|
|
3430
3323
|
roleArn: __expectString(output.roleArn),
|
|
@@ -3434,24 +3327,20 @@ var deserializeAws_restJson1AlarmModelVersionSummary = function (output, context
|
|
|
3434
3327
|
};
|
|
3435
3328
|
var deserializeAws_restJson1AlarmNotification = function (output, context) {
|
|
3436
3329
|
return {
|
|
3437
|
-
notificationActions: output.notificationActions
|
|
3330
|
+
notificationActions: output.notificationActions != null
|
|
3438
3331
|
? deserializeAws_restJson1NotificationActions(output.notificationActions, context)
|
|
3439
3332
|
: undefined,
|
|
3440
3333
|
};
|
|
3441
3334
|
};
|
|
3442
3335
|
var deserializeAws_restJson1AlarmRule = function (output, context) {
|
|
3443
3336
|
return {
|
|
3444
|
-
simpleRule: output.simpleRule
|
|
3445
|
-
? deserializeAws_restJson1SimpleRule(output.simpleRule, context)
|
|
3446
|
-
: undefined,
|
|
3337
|
+
simpleRule: output.simpleRule != null ? deserializeAws_restJson1SimpleRule(output.simpleRule, context) : undefined,
|
|
3447
3338
|
};
|
|
3448
3339
|
};
|
|
3449
3340
|
var deserializeAws_restJson1AnalysisResult = function (output, context) {
|
|
3450
3341
|
return {
|
|
3451
3342
|
level: __expectString(output.level),
|
|
3452
|
-
locations: output.locations
|
|
3453
|
-
? deserializeAws_restJson1AnalysisResultLocations(output.locations, context)
|
|
3454
|
-
: undefined,
|
|
3343
|
+
locations: output.locations != null ? deserializeAws_restJson1AnalysisResultLocations(output.locations, context) : undefined,
|
|
3455
3344
|
message: __expectString(output.message),
|
|
3456
3345
|
type: __expectString(output.type),
|
|
3457
3346
|
};
|
|
@@ -3492,12 +3381,8 @@ var deserializeAws_restJson1AssetPropertyTimestamp = function (output, context)
|
|
|
3492
3381
|
var deserializeAws_restJson1AssetPropertyValue = function (output, context) {
|
|
3493
3382
|
return {
|
|
3494
3383
|
quality: __expectString(output.quality),
|
|
3495
|
-
timestamp: output.timestamp
|
|
3496
|
-
|
|
3497
|
-
: undefined,
|
|
3498
|
-
value: output.value !== undefined && output.value !== null
|
|
3499
|
-
? deserializeAws_restJson1AssetPropertyVariant(output.value, context)
|
|
3500
|
-
: undefined,
|
|
3384
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1AssetPropertyTimestamp(output.timestamp, context) : undefined,
|
|
3385
|
+
value: output.value != null ? deserializeAws_restJson1AssetPropertyVariant(output.value, context) : undefined,
|
|
3501
3386
|
};
|
|
3502
3387
|
};
|
|
3503
3388
|
var deserializeAws_restJson1AssetPropertyVariant = function (output, context) {
|
|
@@ -3548,17 +3433,17 @@ var deserializeAws_restJson1DetectorDebugOptions = function (output, context) {
|
|
|
3548
3433
|
};
|
|
3549
3434
|
var deserializeAws_restJson1DetectorModel = function (output, context) {
|
|
3550
3435
|
return {
|
|
3551
|
-
detectorModelConfiguration: output.detectorModelConfiguration
|
|
3436
|
+
detectorModelConfiguration: output.detectorModelConfiguration != null
|
|
3552
3437
|
? deserializeAws_restJson1DetectorModelConfiguration(output.detectorModelConfiguration, context)
|
|
3553
3438
|
: undefined,
|
|
3554
|
-
detectorModelDefinition: output.detectorModelDefinition
|
|
3439
|
+
detectorModelDefinition: output.detectorModelDefinition != null
|
|
3555
3440
|
? deserializeAws_restJson1DetectorModelDefinition(output.detectorModelDefinition, context)
|
|
3556
3441
|
: undefined,
|
|
3557
3442
|
};
|
|
3558
3443
|
};
|
|
3559
3444
|
var deserializeAws_restJson1DetectorModelConfiguration = function (output, context) {
|
|
3560
3445
|
return {
|
|
3561
|
-
creationTime: output.creationTime
|
|
3446
|
+
creationTime: output.creationTime != null
|
|
3562
3447
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3563
3448
|
: undefined,
|
|
3564
3449
|
detectorModelArn: __expectString(output.detectorModelArn),
|
|
@@ -3567,7 +3452,7 @@ var deserializeAws_restJson1DetectorModelConfiguration = function (output, conte
|
|
|
3567
3452
|
detectorModelVersion: __expectString(output.detectorModelVersion),
|
|
3568
3453
|
evaluationMethod: __expectString(output.evaluationMethod),
|
|
3569
3454
|
key: __expectString(output.key),
|
|
3570
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3455
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3571
3456
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3572
3457
|
: undefined,
|
|
3573
3458
|
roleArn: __expectString(output.roleArn),
|
|
@@ -3577,9 +3462,7 @@ var deserializeAws_restJson1DetectorModelConfiguration = function (output, conte
|
|
|
3577
3462
|
var deserializeAws_restJson1DetectorModelDefinition = function (output, context) {
|
|
3578
3463
|
return {
|
|
3579
3464
|
initialStateName: __expectString(output.initialStateName),
|
|
3580
|
-
states: output.states
|
|
3581
|
-
? deserializeAws_restJson1States(output.states, context)
|
|
3582
|
-
: undefined,
|
|
3465
|
+
states: output.states != null ? deserializeAws_restJson1States(output.states, context) : undefined,
|
|
3583
3466
|
};
|
|
3584
3467
|
};
|
|
3585
3468
|
var deserializeAws_restJson1DetectorModelSummaries = function (output, context) {
|
|
@@ -3595,7 +3478,7 @@ var deserializeAws_restJson1DetectorModelSummaries = function (output, context)
|
|
|
3595
3478
|
};
|
|
3596
3479
|
var deserializeAws_restJson1DetectorModelSummary = function (output, context) {
|
|
3597
3480
|
return {
|
|
3598
|
-
creationTime: output.creationTime
|
|
3481
|
+
creationTime: output.creationTime != null
|
|
3599
3482
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3600
3483
|
: undefined,
|
|
3601
3484
|
detectorModelDescription: __expectString(output.detectorModelDescription),
|
|
@@ -3615,14 +3498,14 @@ var deserializeAws_restJson1DetectorModelVersionSummaries = function (output, co
|
|
|
3615
3498
|
};
|
|
3616
3499
|
var deserializeAws_restJson1DetectorModelVersionSummary = function (output, context) {
|
|
3617
3500
|
return {
|
|
3618
|
-
creationTime: output.creationTime
|
|
3501
|
+
creationTime: output.creationTime != null
|
|
3619
3502
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3620
3503
|
: undefined,
|
|
3621
3504
|
detectorModelArn: __expectString(output.detectorModelArn),
|
|
3622
3505
|
detectorModelName: __expectString(output.detectorModelName),
|
|
3623
3506
|
detectorModelVersion: __expectString(output.detectorModelVersion),
|
|
3624
3507
|
evaluationMethod: __expectString(output.evaluationMethod),
|
|
3625
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3508
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3626
3509
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3627
3510
|
: undefined,
|
|
3628
3511
|
roleArn: __expectString(output.roleArn),
|
|
@@ -3635,9 +3518,7 @@ var deserializeAws_restJson1DynamoDBAction = function (output, context) {
|
|
|
3635
3518
|
hashKeyType: __expectString(output.hashKeyType),
|
|
3636
3519
|
hashKeyValue: __expectString(output.hashKeyValue),
|
|
3637
3520
|
operation: __expectString(output.operation),
|
|
3638
|
-
payload: output.payload
|
|
3639
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3640
|
-
: undefined,
|
|
3521
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3641
3522
|
payloadField: __expectString(output.payloadField),
|
|
3642
3523
|
rangeKeyField: __expectString(output.rangeKeyField),
|
|
3643
3524
|
rangeKeyType: __expectString(output.rangeKeyType),
|
|
@@ -3647,21 +3528,15 @@ var deserializeAws_restJson1DynamoDBAction = function (output, context) {
|
|
|
3647
3528
|
};
|
|
3648
3529
|
var deserializeAws_restJson1DynamoDBv2Action = function (output, context) {
|
|
3649
3530
|
return {
|
|
3650
|
-
payload: output.payload
|
|
3651
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3652
|
-
: undefined,
|
|
3531
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3653
3532
|
tableName: __expectString(output.tableName),
|
|
3654
3533
|
};
|
|
3655
3534
|
};
|
|
3656
3535
|
var deserializeAws_restJson1EmailConfiguration = function (output, context) {
|
|
3657
3536
|
return {
|
|
3658
|
-
content: output.content
|
|
3659
|
-
? deserializeAws_restJson1EmailContent(output.content, context)
|
|
3660
|
-
: undefined,
|
|
3537
|
+
content: output.content != null ? deserializeAws_restJson1EmailContent(output.content, context) : undefined,
|
|
3661
3538
|
from: __expectString(output.from),
|
|
3662
|
-
recipients: output.recipients
|
|
3663
|
-
? deserializeAws_restJson1EmailRecipients(output.recipients, context)
|
|
3664
|
-
: undefined,
|
|
3539
|
+
recipients: output.recipients != null ? deserializeAws_restJson1EmailRecipients(output.recipients, context) : undefined,
|
|
3665
3540
|
};
|
|
3666
3541
|
};
|
|
3667
3542
|
var deserializeAws_restJson1EmailConfigurations = function (output, context) {
|
|
@@ -3683,16 +3558,12 @@ var deserializeAws_restJson1EmailContent = function (output, context) {
|
|
|
3683
3558
|
};
|
|
3684
3559
|
var deserializeAws_restJson1EmailRecipients = function (output, context) {
|
|
3685
3560
|
return {
|
|
3686
|
-
to: output.to
|
|
3687
|
-
? deserializeAws_restJson1RecipientDetails(output.to, context)
|
|
3688
|
-
: undefined,
|
|
3561
|
+
to: output.to != null ? deserializeAws_restJson1RecipientDetails(output.to, context) : undefined,
|
|
3689
3562
|
};
|
|
3690
3563
|
};
|
|
3691
3564
|
var deserializeAws_restJson1Event = function (output, context) {
|
|
3692
3565
|
return {
|
|
3693
|
-
actions: output.actions
|
|
3694
|
-
? deserializeAws_restJson1Actions(output.actions, context)
|
|
3695
|
-
: undefined,
|
|
3566
|
+
actions: output.actions != null ? deserializeAws_restJson1Actions(output.actions, context) : undefined,
|
|
3696
3567
|
condition: __expectString(output.condition),
|
|
3697
3568
|
eventName: __expectString(output.eventName),
|
|
3698
3569
|
};
|
|
@@ -3711,9 +3582,7 @@ var deserializeAws_restJson1Events = function (output, context) {
|
|
|
3711
3582
|
var deserializeAws_restJson1FirehoseAction = function (output, context) {
|
|
3712
3583
|
return {
|
|
3713
3584
|
deliveryStreamName: __expectString(output.deliveryStreamName),
|
|
3714
|
-
payload: output.payload
|
|
3715
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3716
|
-
: undefined,
|
|
3585
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3717
3586
|
separator: __expectString(output.separator),
|
|
3718
3587
|
};
|
|
3719
3588
|
};
|
|
@@ -3724,23 +3593,23 @@ var deserializeAws_restJson1InitializationConfiguration = function (output, cont
|
|
|
3724
3593
|
};
|
|
3725
3594
|
var deserializeAws_restJson1Input = function (output, context) {
|
|
3726
3595
|
return {
|
|
3727
|
-
inputConfiguration: output.inputConfiguration
|
|
3596
|
+
inputConfiguration: output.inputConfiguration != null
|
|
3728
3597
|
? deserializeAws_restJson1InputConfiguration(output.inputConfiguration, context)
|
|
3729
3598
|
: undefined,
|
|
3730
|
-
inputDefinition: output.inputDefinition
|
|
3599
|
+
inputDefinition: output.inputDefinition != null
|
|
3731
3600
|
? deserializeAws_restJson1InputDefinition(output.inputDefinition, context)
|
|
3732
3601
|
: undefined,
|
|
3733
3602
|
};
|
|
3734
3603
|
};
|
|
3735
3604
|
var deserializeAws_restJson1InputConfiguration = function (output, context) {
|
|
3736
3605
|
return {
|
|
3737
|
-
creationTime: output.creationTime
|
|
3606
|
+
creationTime: output.creationTime != null
|
|
3738
3607
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3739
3608
|
: undefined,
|
|
3740
3609
|
inputArn: __expectString(output.inputArn),
|
|
3741
3610
|
inputDescription: __expectString(output.inputDescription),
|
|
3742
3611
|
inputName: __expectString(output.inputName),
|
|
3743
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3612
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3744
3613
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3745
3614
|
: undefined,
|
|
3746
3615
|
status: __expectString(output.status),
|
|
@@ -3748,9 +3617,7 @@ var deserializeAws_restJson1InputConfiguration = function (output, context) {
|
|
|
3748
3617
|
};
|
|
3749
3618
|
var deserializeAws_restJson1InputDefinition = function (output, context) {
|
|
3750
3619
|
return {
|
|
3751
|
-
attributes: output.attributes
|
|
3752
|
-
? deserializeAws_restJson1Attributes(output.attributes, context)
|
|
3753
|
-
: undefined,
|
|
3620
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
3754
3621
|
};
|
|
3755
3622
|
};
|
|
3756
3623
|
var deserializeAws_restJson1InputSummaries = function (output, context) {
|
|
@@ -3766,13 +3633,13 @@ var deserializeAws_restJson1InputSummaries = function (output, context) {
|
|
|
3766
3633
|
};
|
|
3767
3634
|
var deserializeAws_restJson1InputSummary = function (output, context) {
|
|
3768
3635
|
return {
|
|
3769
|
-
creationTime: output.creationTime
|
|
3636
|
+
creationTime: output.creationTime != null
|
|
3770
3637
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3771
3638
|
: undefined,
|
|
3772
3639
|
inputArn: __expectString(output.inputArn),
|
|
3773
3640
|
inputDescription: __expectString(output.inputDescription),
|
|
3774
3641
|
inputName: __expectString(output.inputName),
|
|
3775
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3642
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3776
3643
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3777
3644
|
: undefined,
|
|
3778
3645
|
status: __expectString(output.status),
|
|
@@ -3781,9 +3648,7 @@ var deserializeAws_restJson1InputSummary = function (output, context) {
|
|
|
3781
3648
|
var deserializeAws_restJson1IotEventsAction = function (output, context) {
|
|
3782
3649
|
return {
|
|
3783
3650
|
inputName: __expectString(output.inputName),
|
|
3784
|
-
payload: output.payload
|
|
3785
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3786
|
-
: undefined,
|
|
3651
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3787
3652
|
};
|
|
3788
3653
|
};
|
|
3789
3654
|
var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
@@ -3792,7 +3657,7 @@ var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
|
3792
3657
|
entryId: __expectString(output.entryId),
|
|
3793
3658
|
propertyAlias: __expectString(output.propertyAlias),
|
|
3794
3659
|
propertyId: __expectString(output.propertyId),
|
|
3795
|
-
propertyValue: output.propertyValue
|
|
3660
|
+
propertyValue: output.propertyValue != null
|
|
3796
3661
|
? deserializeAws_restJson1AssetPropertyValue(output.propertyValue, context)
|
|
3797
3662
|
: undefined,
|
|
3798
3663
|
};
|
|
@@ -3800,22 +3665,18 @@ var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
|
3800
3665
|
var deserializeAws_restJson1IotTopicPublishAction = function (output, context) {
|
|
3801
3666
|
return {
|
|
3802
3667
|
mqttTopic: __expectString(output.mqttTopic),
|
|
3803
|
-
payload: output.payload
|
|
3804
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3805
|
-
: undefined,
|
|
3668
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3806
3669
|
};
|
|
3807
3670
|
};
|
|
3808
3671
|
var deserializeAws_restJson1LambdaAction = function (output, context) {
|
|
3809
3672
|
return {
|
|
3810
3673
|
functionArn: __expectString(output.functionArn),
|
|
3811
|
-
payload: output.payload
|
|
3812
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3813
|
-
: undefined,
|
|
3674
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3814
3675
|
};
|
|
3815
3676
|
};
|
|
3816
3677
|
var deserializeAws_restJson1LoggingOptions = function (output, context) {
|
|
3817
3678
|
return {
|
|
3818
|
-
detectorDebugOptions: output.detectorDebugOptions
|
|
3679
|
+
detectorDebugOptions: output.detectorDebugOptions != null
|
|
3819
3680
|
? deserializeAws_restJson1DetectorDebugOptions(output.detectorDebugOptions, context)
|
|
3820
3681
|
: undefined,
|
|
3821
3682
|
enabled: __expectBoolean(output.enabled),
|
|
@@ -3825,13 +3686,11 @@ var deserializeAws_restJson1LoggingOptions = function (output, context) {
|
|
|
3825
3686
|
};
|
|
3826
3687
|
var deserializeAws_restJson1NotificationAction = function (output, context) {
|
|
3827
3688
|
return {
|
|
3828
|
-
action: output.action
|
|
3829
|
-
|
|
3830
|
-
: undefined,
|
|
3831
|
-
emailConfigurations: output.emailConfigurations !== undefined && output.emailConfigurations !== null
|
|
3689
|
+
action: output.action != null ? deserializeAws_restJson1NotificationTargetActions(output.action, context) : undefined,
|
|
3690
|
+
emailConfigurations: output.emailConfigurations != null
|
|
3832
3691
|
? deserializeAws_restJson1EmailConfigurations(output.emailConfigurations, context)
|
|
3833
3692
|
: undefined,
|
|
3834
|
-
smsConfigurations: output.smsConfigurations
|
|
3693
|
+
smsConfigurations: output.smsConfigurations != null
|
|
3835
3694
|
? deserializeAws_restJson1SMSConfigurations(output.smsConfigurations, context)
|
|
3836
3695
|
: undefined,
|
|
3837
3696
|
};
|
|
@@ -3849,31 +3708,23 @@ var deserializeAws_restJson1NotificationActions = function (output, context) {
|
|
|
3849
3708
|
};
|
|
3850
3709
|
var deserializeAws_restJson1NotificationTargetActions = function (output, context) {
|
|
3851
3710
|
return {
|
|
3852
|
-
lambdaAction: output.lambdaAction
|
|
3853
|
-
? deserializeAws_restJson1LambdaAction(output.lambdaAction, context)
|
|
3854
|
-
: undefined,
|
|
3711
|
+
lambdaAction: output.lambdaAction != null ? deserializeAws_restJson1LambdaAction(output.lambdaAction, context) : undefined,
|
|
3855
3712
|
};
|
|
3856
3713
|
};
|
|
3857
3714
|
var deserializeAws_restJson1OnEnterLifecycle = function (output, context) {
|
|
3858
3715
|
return {
|
|
3859
|
-
events: output.events
|
|
3860
|
-
? deserializeAws_restJson1Events(output.events, context)
|
|
3861
|
-
: undefined,
|
|
3716
|
+
events: output.events != null ? deserializeAws_restJson1Events(output.events, context) : undefined,
|
|
3862
3717
|
};
|
|
3863
3718
|
};
|
|
3864
3719
|
var deserializeAws_restJson1OnExitLifecycle = function (output, context) {
|
|
3865
3720
|
return {
|
|
3866
|
-
events: output.events
|
|
3867
|
-
? deserializeAws_restJson1Events(output.events, context)
|
|
3868
|
-
: undefined,
|
|
3721
|
+
events: output.events != null ? deserializeAws_restJson1Events(output.events, context) : undefined,
|
|
3869
3722
|
};
|
|
3870
3723
|
};
|
|
3871
3724
|
var deserializeAws_restJson1OnInputLifecycle = function (output, context) {
|
|
3872
3725
|
return {
|
|
3873
|
-
events: output.events
|
|
3874
|
-
|
|
3875
|
-
: undefined,
|
|
3876
|
-
transitionEvents: output.transitionEvents !== undefined && output.transitionEvents !== null
|
|
3726
|
+
events: output.events != null ? deserializeAws_restJson1Events(output.events, context) : undefined,
|
|
3727
|
+
transitionEvents: output.transitionEvents != null
|
|
3877
3728
|
? deserializeAws_restJson1TransitionEvents(output.transitionEvents, context)
|
|
3878
3729
|
: undefined,
|
|
3879
3730
|
};
|
|
@@ -3886,9 +3737,7 @@ var deserializeAws_restJson1Payload = function (output, context) {
|
|
|
3886
3737
|
};
|
|
3887
3738
|
var deserializeAws_restJson1RecipientDetail = function (output, context) {
|
|
3888
3739
|
return {
|
|
3889
|
-
ssoIdentity: output.ssoIdentity
|
|
3890
|
-
? deserializeAws_restJson1SSOIdentity(output.ssoIdentity, context)
|
|
3891
|
-
: undefined,
|
|
3740
|
+
ssoIdentity: output.ssoIdentity != null ? deserializeAws_restJson1SSOIdentity(output.ssoIdentity, context) : undefined,
|
|
3892
3741
|
};
|
|
3893
3742
|
};
|
|
3894
3743
|
var deserializeAws_restJson1RecipientDetails = function (output, context) {
|
|
@@ -3947,9 +3796,7 @@ var deserializeAws_restJson1SimpleRule = function (output, context) {
|
|
|
3947
3796
|
var deserializeAws_restJson1SMSConfiguration = function (output, context) {
|
|
3948
3797
|
return {
|
|
3949
3798
|
additionalMessage: __expectString(output.additionalMessage),
|
|
3950
|
-
recipients: output.recipients
|
|
3951
|
-
? deserializeAws_restJson1RecipientDetails(output.recipients, context)
|
|
3952
|
-
: undefined,
|
|
3799
|
+
recipients: output.recipients != null ? deserializeAws_restJson1RecipientDetails(output.recipients, context) : undefined,
|
|
3953
3800
|
senderId: __expectString(output.senderId),
|
|
3954
3801
|
};
|
|
3955
3802
|
};
|
|
@@ -3966,17 +3813,13 @@ var deserializeAws_restJson1SMSConfigurations = function (output, context) {
|
|
|
3966
3813
|
};
|
|
3967
3814
|
var deserializeAws_restJson1SNSTopicPublishAction = function (output, context) {
|
|
3968
3815
|
return {
|
|
3969
|
-
payload: output.payload
|
|
3970
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3971
|
-
: undefined,
|
|
3816
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3972
3817
|
targetArn: __expectString(output.targetArn),
|
|
3973
3818
|
};
|
|
3974
3819
|
};
|
|
3975
3820
|
var deserializeAws_restJson1SqsAction = function (output, context) {
|
|
3976
3821
|
return {
|
|
3977
|
-
payload: output.payload
|
|
3978
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3979
|
-
: undefined,
|
|
3822
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3980
3823
|
queueUrl: __expectString(output.queueUrl),
|
|
3981
3824
|
useBase64: __expectBoolean(output.useBase64),
|
|
3982
3825
|
};
|
|
@@ -3989,15 +3832,9 @@ var deserializeAws_restJson1SSOIdentity = function (output, context) {
|
|
|
3989
3832
|
};
|
|
3990
3833
|
var deserializeAws_restJson1State = function (output, context) {
|
|
3991
3834
|
return {
|
|
3992
|
-
onEnter: output.onEnter
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
onExit: output.onExit !== undefined && output.onExit !== null
|
|
3996
|
-
? deserializeAws_restJson1OnExitLifecycle(output.onExit, context)
|
|
3997
|
-
: undefined,
|
|
3998
|
-
onInput: output.onInput !== undefined && output.onInput !== null
|
|
3999
|
-
? deserializeAws_restJson1OnInputLifecycle(output.onInput, context)
|
|
4000
|
-
: undefined,
|
|
3835
|
+
onEnter: output.onEnter != null ? deserializeAws_restJson1OnEnterLifecycle(output.onEnter, context) : undefined,
|
|
3836
|
+
onExit: output.onExit != null ? deserializeAws_restJson1OnExitLifecycle(output.onExit, context) : undefined,
|
|
3837
|
+
onInput: output.onInput != null ? deserializeAws_restJson1OnInputLifecycle(output.onInput, context) : undefined,
|
|
4001
3838
|
stateName: __expectString(output.stateName),
|
|
4002
3839
|
};
|
|
4003
3840
|
};
|
|
@@ -4031,9 +3868,7 @@ var deserializeAws_restJson1Tags = function (output, context) {
|
|
|
4031
3868
|
};
|
|
4032
3869
|
var deserializeAws_restJson1TransitionEvent = function (output, context) {
|
|
4033
3870
|
return {
|
|
4034
|
-
actions: output.actions
|
|
4035
|
-
? deserializeAws_restJson1Actions(output.actions, context)
|
|
4036
|
-
: undefined,
|
|
3871
|
+
actions: output.actions != null ? deserializeAws_restJson1Actions(output.actions, context) : undefined,
|
|
4037
3872
|
condition: __expectString(output.condition),
|
|
4038
3873
|
eventName: __expectString(output.eventName),
|
|
4039
3874
|
nextState: __expectString(output.nextState),
|
|
@@ -4106,5 +3941,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4106
3941
|
if (data["__type"] !== undefined) {
|
|
4107
3942
|
return sanitizeErrorCode(data["__type"]);
|
|
4108
3943
|
}
|
|
4109
|
-
return "";
|
|
4110
3944
|
};
|