@aws-sdk/client-iot-events-data 3.121.0 → 3.130.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 +75 -106
- package/dist-es/protocols/Aws_restJson1.js +47 -78
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-iot-events-data
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-iot-events-data
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -13,8 +13,7 @@ const serializeAws_restJson1BatchAcknowledgeAlarmCommand = async (input, context
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/acknowledge";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.acknowledgeActionRequests
|
|
17
|
-
input.acknowledgeActionRequests !== null && {
|
|
16
|
+
...(input.acknowledgeActionRequests != null && {
|
|
18
17
|
acknowledgeActionRequests: serializeAws_restJson1AcknowledgeAlarmActionRequests(input.acknowledgeActionRequests, context),
|
|
19
18
|
}),
|
|
20
19
|
});
|
|
@@ -37,8 +36,7 @@ const serializeAws_restJson1BatchDeleteDetectorCommand = async (input, context)
|
|
|
37
36
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detectors/delete";
|
|
38
37
|
let body;
|
|
39
38
|
body = JSON.stringify({
|
|
40
|
-
...(input.detectors
|
|
41
|
-
input.detectors !== null && {
|
|
39
|
+
...(input.detectors != null && {
|
|
42
40
|
detectors: serializeAws_restJson1DeleteDetectorRequests(input.detectors, context),
|
|
43
41
|
}),
|
|
44
42
|
});
|
|
@@ -61,8 +59,7 @@ const serializeAws_restJson1BatchDisableAlarmCommand = async (input, context) =>
|
|
|
61
59
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/disable";
|
|
62
60
|
let body;
|
|
63
61
|
body = JSON.stringify({
|
|
64
|
-
...(input.disableActionRequests
|
|
65
|
-
input.disableActionRequests !== null && {
|
|
62
|
+
...(input.disableActionRequests != null && {
|
|
66
63
|
disableActionRequests: serializeAws_restJson1DisableAlarmActionRequests(input.disableActionRequests, context),
|
|
67
64
|
}),
|
|
68
65
|
});
|
|
@@ -85,8 +82,7 @@ const serializeAws_restJson1BatchEnableAlarmCommand = async (input, context) =>
|
|
|
85
82
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/enable";
|
|
86
83
|
let body;
|
|
87
84
|
body = JSON.stringify({
|
|
88
|
-
...(input.enableActionRequests
|
|
89
|
-
input.enableActionRequests !== null && {
|
|
85
|
+
...(input.enableActionRequests != null && {
|
|
90
86
|
enableActionRequests: serializeAws_restJson1EnableAlarmActionRequests(input.enableActionRequests, context),
|
|
91
87
|
}),
|
|
92
88
|
});
|
|
@@ -109,8 +105,7 @@ const serializeAws_restJson1BatchPutMessageCommand = async (input, context) => {
|
|
|
109
105
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/messages";
|
|
110
106
|
let body;
|
|
111
107
|
body = JSON.stringify({
|
|
112
|
-
...(input.messages
|
|
113
|
-
input.messages !== null && { messages: serializeAws_restJson1Messages(input.messages, context) }),
|
|
108
|
+
...(input.messages != null && { messages: serializeAws_restJson1Messages(input.messages, context) }),
|
|
114
109
|
});
|
|
115
110
|
return new protocol_http_1.HttpRequest({
|
|
116
111
|
protocol,
|
|
@@ -131,8 +126,7 @@ const serializeAws_restJson1BatchResetAlarmCommand = async (input, context) => {
|
|
|
131
126
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/reset";
|
|
132
127
|
let body;
|
|
133
128
|
body = JSON.stringify({
|
|
134
|
-
...(input.resetActionRequests
|
|
135
|
-
input.resetActionRequests !== null && {
|
|
129
|
+
...(input.resetActionRequests != null && {
|
|
136
130
|
resetActionRequests: serializeAws_restJson1ResetAlarmActionRequests(input.resetActionRequests, context),
|
|
137
131
|
}),
|
|
138
132
|
});
|
|
@@ -155,8 +149,7 @@ const serializeAws_restJson1BatchSnoozeAlarmCommand = async (input, context) =>
|
|
|
155
149
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/snooze";
|
|
156
150
|
let body;
|
|
157
151
|
body = JSON.stringify({
|
|
158
|
-
...(input.snoozeActionRequests
|
|
159
|
-
input.snoozeActionRequests !== null && {
|
|
152
|
+
...(input.snoozeActionRequests != null && {
|
|
160
153
|
snoozeActionRequests: serializeAws_restJson1SnoozeAlarmActionRequests(input.snoozeActionRequests, context),
|
|
161
154
|
}),
|
|
162
155
|
});
|
|
@@ -179,8 +172,7 @@ const serializeAws_restJson1BatchUpdateDetectorCommand = async (input, context)
|
|
|
179
172
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/detectors";
|
|
180
173
|
let body;
|
|
181
174
|
body = JSON.stringify({
|
|
182
|
-
...(input.detectors
|
|
183
|
-
input.detectors !== null && {
|
|
175
|
+
...(input.detectors != null && {
|
|
184
176
|
detectors: serializeAws_restJson1UpdateDetectorRequests(input.detectors, context),
|
|
185
177
|
}),
|
|
186
178
|
});
|
|
@@ -964,11 +956,10 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
964
956
|
};
|
|
965
957
|
const serializeAws_restJson1AcknowledgeAlarmActionRequest = (input, context) => {
|
|
966
958
|
return {
|
|
967
|
-
...(input.alarmModelName
|
|
968
|
-
|
|
969
|
-
...(input.
|
|
970
|
-
...(input.
|
|
971
|
-
...(input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }),
|
|
959
|
+
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
960
|
+
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
961
|
+
...(input.note != null && { note: input.note }),
|
|
962
|
+
...(input.requestId != null && { requestId: input.requestId }),
|
|
972
963
|
};
|
|
973
964
|
};
|
|
974
965
|
const serializeAws_restJson1AcknowledgeAlarmActionRequests = (input, context) => {
|
|
@@ -983,10 +974,9 @@ const serializeAws_restJson1AcknowledgeAlarmActionRequests = (input, context) =>
|
|
|
983
974
|
};
|
|
984
975
|
const serializeAws_restJson1DeleteDetectorRequest = (input, context) => {
|
|
985
976
|
return {
|
|
986
|
-
...(input.detectorModelName
|
|
987
|
-
|
|
988
|
-
...(input.
|
|
989
|
-
...(input.messageId !== undefined && input.messageId !== null && { messageId: input.messageId }),
|
|
977
|
+
...(input.detectorModelName != null && { detectorModelName: input.detectorModelName }),
|
|
978
|
+
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
979
|
+
...(input.messageId != null && { messageId: input.messageId }),
|
|
990
980
|
};
|
|
991
981
|
};
|
|
992
982
|
const serializeAws_restJson1DeleteDetectorRequests = (input, context) => {
|
|
@@ -1001,20 +991,17 @@ const serializeAws_restJson1DeleteDetectorRequests = (input, context) => {
|
|
|
1001
991
|
};
|
|
1002
992
|
const serializeAws_restJson1DetectorStateDefinition = (input, context) => {
|
|
1003
993
|
return {
|
|
1004
|
-
...(input.stateName
|
|
1005
|
-
...(input.timers
|
|
1006
|
-
|
|
1007
|
-
...(input.variables !== undefined &&
|
|
1008
|
-
input.variables !== null && { variables: serializeAws_restJson1VariableDefinitions(input.variables, context) }),
|
|
994
|
+
...(input.stateName != null && { stateName: input.stateName }),
|
|
995
|
+
...(input.timers != null && { timers: serializeAws_restJson1TimerDefinitions(input.timers, context) }),
|
|
996
|
+
...(input.variables != null && { variables: serializeAws_restJson1VariableDefinitions(input.variables, context) }),
|
|
1009
997
|
};
|
|
1010
998
|
};
|
|
1011
999
|
const serializeAws_restJson1DisableAlarmActionRequest = (input, context) => {
|
|
1012
1000
|
return {
|
|
1013
|
-
...(input.alarmModelName
|
|
1014
|
-
|
|
1015
|
-
...(input.
|
|
1016
|
-
...(input.
|
|
1017
|
-
...(input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }),
|
|
1001
|
+
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
1002
|
+
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
1003
|
+
...(input.note != null && { note: input.note }),
|
|
1004
|
+
...(input.requestId != null && { requestId: input.requestId }),
|
|
1018
1005
|
};
|
|
1019
1006
|
};
|
|
1020
1007
|
const serializeAws_restJson1DisableAlarmActionRequests = (input, context) => {
|
|
@@ -1029,11 +1016,10 @@ const serializeAws_restJson1DisableAlarmActionRequests = (input, context) => {
|
|
|
1029
1016
|
};
|
|
1030
1017
|
const serializeAws_restJson1EnableAlarmActionRequest = (input, context) => {
|
|
1031
1018
|
return {
|
|
1032
|
-
...(input.alarmModelName
|
|
1033
|
-
|
|
1034
|
-
...(input.
|
|
1035
|
-
...(input.
|
|
1036
|
-
...(input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }),
|
|
1019
|
+
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
1020
|
+
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
1021
|
+
...(input.note != null && { note: input.note }),
|
|
1022
|
+
...(input.requestId != null && { requestId: input.requestId }),
|
|
1037
1023
|
};
|
|
1038
1024
|
};
|
|
1039
1025
|
const serializeAws_restJson1EnableAlarmActionRequests = (input, context) => {
|
|
@@ -1048,11 +1034,10 @@ const serializeAws_restJson1EnableAlarmActionRequests = (input, context) => {
|
|
|
1048
1034
|
};
|
|
1049
1035
|
const serializeAws_restJson1Message = (input, context) => {
|
|
1050
1036
|
return {
|
|
1051
|
-
...(input.inputName
|
|
1052
|
-
...(input.messageId
|
|
1053
|
-
...(input.payload
|
|
1054
|
-
...(input.timestamp
|
|
1055
|
-
input.timestamp !== null && { timestamp: serializeAws_restJson1TimestampValue(input.timestamp, context) }),
|
|
1037
|
+
...(input.inputName != null && { inputName: input.inputName }),
|
|
1038
|
+
...(input.messageId != null && { messageId: input.messageId }),
|
|
1039
|
+
...(input.payload != null && { payload: context.base64Encoder(input.payload) }),
|
|
1040
|
+
...(input.timestamp != null && { timestamp: serializeAws_restJson1TimestampValue(input.timestamp, context) }),
|
|
1056
1041
|
};
|
|
1057
1042
|
};
|
|
1058
1043
|
const serializeAws_restJson1Messages = (input, context) => {
|
|
@@ -1067,11 +1052,10 @@ const serializeAws_restJson1Messages = (input, context) => {
|
|
|
1067
1052
|
};
|
|
1068
1053
|
const serializeAws_restJson1ResetAlarmActionRequest = (input, context) => {
|
|
1069
1054
|
return {
|
|
1070
|
-
...(input.alarmModelName
|
|
1071
|
-
|
|
1072
|
-
...(input.
|
|
1073
|
-
...(input.
|
|
1074
|
-
...(input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }),
|
|
1055
|
+
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
1056
|
+
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
1057
|
+
...(input.note != null && { note: input.note }),
|
|
1058
|
+
...(input.requestId != null && { requestId: input.requestId }),
|
|
1075
1059
|
};
|
|
1076
1060
|
};
|
|
1077
1061
|
const serializeAws_restJson1ResetAlarmActionRequests = (input, context) => {
|
|
@@ -1086,13 +1070,11 @@ const serializeAws_restJson1ResetAlarmActionRequests = (input, context) => {
|
|
|
1086
1070
|
};
|
|
1087
1071
|
const serializeAws_restJson1SnoozeAlarmActionRequest = (input, context) => {
|
|
1088
1072
|
return {
|
|
1089
|
-
...(input.alarmModelName
|
|
1090
|
-
|
|
1091
|
-
...(input.
|
|
1092
|
-
...(input.
|
|
1093
|
-
...(input.
|
|
1094
|
-
...(input.snoozeDuration !== undefined &&
|
|
1095
|
-
input.snoozeDuration !== null && { snoozeDuration: input.snoozeDuration }),
|
|
1073
|
+
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
1074
|
+
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
1075
|
+
...(input.note != null && { note: input.note }),
|
|
1076
|
+
...(input.requestId != null && { requestId: input.requestId }),
|
|
1077
|
+
...(input.snoozeDuration != null && { snoozeDuration: input.snoozeDuration }),
|
|
1096
1078
|
};
|
|
1097
1079
|
};
|
|
1098
1080
|
const serializeAws_restJson1SnoozeAlarmActionRequests = (input, context) => {
|
|
@@ -1107,8 +1089,8 @@ const serializeAws_restJson1SnoozeAlarmActionRequests = (input, context) => {
|
|
|
1107
1089
|
};
|
|
1108
1090
|
const serializeAws_restJson1TimerDefinition = (input, context) => {
|
|
1109
1091
|
return {
|
|
1110
|
-
...(input.name
|
|
1111
|
-
...(input.seconds
|
|
1092
|
+
...(input.name != null && { name: input.name }),
|
|
1093
|
+
...(input.seconds != null && { seconds: input.seconds }),
|
|
1112
1094
|
};
|
|
1113
1095
|
};
|
|
1114
1096
|
const serializeAws_restJson1TimerDefinitions = (input, context) => {
|
|
@@ -1123,17 +1105,15 @@ const serializeAws_restJson1TimerDefinitions = (input, context) => {
|
|
|
1123
1105
|
};
|
|
1124
1106
|
const serializeAws_restJson1TimestampValue = (input, context) => {
|
|
1125
1107
|
return {
|
|
1126
|
-
...(input.timeInMillis
|
|
1108
|
+
...(input.timeInMillis != null && { timeInMillis: input.timeInMillis }),
|
|
1127
1109
|
};
|
|
1128
1110
|
};
|
|
1129
1111
|
const serializeAws_restJson1UpdateDetectorRequest = (input, context) => {
|
|
1130
1112
|
return {
|
|
1131
|
-
...(input.detectorModelName
|
|
1132
|
-
|
|
1133
|
-
...(input.
|
|
1134
|
-
...(input.
|
|
1135
|
-
...(input.state !== undefined &&
|
|
1136
|
-
input.state !== null && { state: serializeAws_restJson1DetectorStateDefinition(input.state, context) }),
|
|
1113
|
+
...(input.detectorModelName != null && { detectorModelName: input.detectorModelName }),
|
|
1114
|
+
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
1115
|
+
...(input.messageId != null && { messageId: input.messageId }),
|
|
1116
|
+
...(input.state != null && { state: serializeAws_restJson1DetectorStateDefinition(input.state, context) }),
|
|
1137
1117
|
};
|
|
1138
1118
|
};
|
|
1139
1119
|
const serializeAws_restJson1UpdateDetectorRequests = (input, context) => {
|
|
@@ -1148,8 +1128,8 @@ const serializeAws_restJson1UpdateDetectorRequests = (input, context) => {
|
|
|
1148
1128
|
};
|
|
1149
1129
|
const serializeAws_restJson1VariableDefinition = (input, context) => {
|
|
1150
1130
|
return {
|
|
1151
|
-
...(input.name
|
|
1152
|
-
...(input.value
|
|
1131
|
+
...(input.name != null && { name: input.name }),
|
|
1132
|
+
...(input.value != null && { value: input.value }),
|
|
1153
1133
|
};
|
|
1154
1134
|
};
|
|
1155
1135
|
const serializeAws_restJson1VariableDefinitions = (input, context) => {
|
|
@@ -1171,14 +1151,12 @@ const deserializeAws_restJson1Alarm = (output, context) => {
|
|
|
1171
1151
|
return {
|
|
1172
1152
|
alarmModelName: (0, smithy_client_1.expectString)(output.alarmModelName),
|
|
1173
1153
|
alarmModelVersion: (0, smithy_client_1.expectString)(output.alarmModelVersion),
|
|
1174
|
-
alarmState: output.alarmState
|
|
1175
|
-
|
|
1176
|
-
: undefined,
|
|
1177
|
-
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1154
|
+
alarmState: output.alarmState != null ? deserializeAws_restJson1AlarmState(output.alarmState, context) : undefined,
|
|
1155
|
+
creationTime: output.creationTime != null
|
|
1178
1156
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1179
1157
|
: undefined,
|
|
1180
1158
|
keyValue: (0, smithy_client_1.expectString)(output.keyValue),
|
|
1181
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1159
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1182
1160
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1183
1161
|
: undefined,
|
|
1184
1162
|
severity: (0, smithy_client_1.expectInt32)(output.severity),
|
|
@@ -1186,16 +1164,14 @@ const deserializeAws_restJson1Alarm = (output, context) => {
|
|
|
1186
1164
|
};
|
|
1187
1165
|
const deserializeAws_restJson1AlarmState = (output, context) => {
|
|
1188
1166
|
return {
|
|
1189
|
-
customerAction: output.customerAction
|
|
1167
|
+
customerAction: output.customerAction != null
|
|
1190
1168
|
? deserializeAws_restJson1CustomerAction(output.customerAction, context)
|
|
1191
1169
|
: undefined,
|
|
1192
|
-
ruleEvaluation: output.ruleEvaluation
|
|
1170
|
+
ruleEvaluation: output.ruleEvaluation != null
|
|
1193
1171
|
? deserializeAws_restJson1RuleEvaluation(output.ruleEvaluation, context)
|
|
1194
1172
|
: undefined,
|
|
1195
1173
|
stateName: (0, smithy_client_1.expectString)(output.stateName),
|
|
1196
|
-
systemEvent: output.systemEvent
|
|
1197
|
-
? deserializeAws_restJson1SystemEvent(output.systemEvent, context)
|
|
1198
|
-
: undefined,
|
|
1174
|
+
systemEvent: output.systemEvent != null ? deserializeAws_restJson1SystemEvent(output.systemEvent, context) : undefined,
|
|
1199
1175
|
};
|
|
1200
1176
|
};
|
|
1201
1177
|
const deserializeAws_restJson1AlarmSummaries = (output, context) => {
|
|
@@ -1213,11 +1189,11 @@ const deserializeAws_restJson1AlarmSummary = (output, context) => {
|
|
|
1213
1189
|
return {
|
|
1214
1190
|
alarmModelName: (0, smithy_client_1.expectString)(output.alarmModelName),
|
|
1215
1191
|
alarmModelVersion: (0, smithy_client_1.expectString)(output.alarmModelVersion),
|
|
1216
|
-
creationTime: output.creationTime
|
|
1192
|
+
creationTime: output.creationTime != null
|
|
1217
1193
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1218
1194
|
: undefined,
|
|
1219
1195
|
keyValue: (0, smithy_client_1.expectString)(output.keyValue),
|
|
1220
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1196
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1221
1197
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1222
1198
|
: undefined,
|
|
1223
1199
|
stateName: (0, smithy_client_1.expectString)(output.stateName),
|
|
@@ -1297,49 +1273,43 @@ const deserializeAws_restJson1BatchUpdateDetectorErrorEntry = (output, context)
|
|
|
1297
1273
|
};
|
|
1298
1274
|
const deserializeAws_restJson1CustomerAction = (output, context) => {
|
|
1299
1275
|
return {
|
|
1300
|
-
acknowledgeActionConfiguration: output.acknowledgeActionConfiguration
|
|
1276
|
+
acknowledgeActionConfiguration: output.acknowledgeActionConfiguration != null
|
|
1301
1277
|
? deserializeAws_restJson1AcknowledgeActionConfiguration(output.acknowledgeActionConfiguration, context)
|
|
1302
1278
|
: undefined,
|
|
1303
1279
|
actionName: (0, smithy_client_1.expectString)(output.actionName),
|
|
1304
|
-
disableActionConfiguration: output.disableActionConfiguration
|
|
1280
|
+
disableActionConfiguration: output.disableActionConfiguration != null
|
|
1305
1281
|
? deserializeAws_restJson1DisableActionConfiguration(output.disableActionConfiguration, context)
|
|
1306
1282
|
: undefined,
|
|
1307
|
-
enableActionConfiguration: output.enableActionConfiguration
|
|
1283
|
+
enableActionConfiguration: output.enableActionConfiguration != null
|
|
1308
1284
|
? deserializeAws_restJson1EnableActionConfiguration(output.enableActionConfiguration, context)
|
|
1309
1285
|
: undefined,
|
|
1310
|
-
resetActionConfiguration: output.resetActionConfiguration
|
|
1286
|
+
resetActionConfiguration: output.resetActionConfiguration != null
|
|
1311
1287
|
? deserializeAws_restJson1ResetActionConfiguration(output.resetActionConfiguration, context)
|
|
1312
1288
|
: undefined,
|
|
1313
|
-
snoozeActionConfiguration: output.snoozeActionConfiguration
|
|
1289
|
+
snoozeActionConfiguration: output.snoozeActionConfiguration != null
|
|
1314
1290
|
? deserializeAws_restJson1SnoozeActionConfiguration(output.snoozeActionConfiguration, context)
|
|
1315
1291
|
: undefined,
|
|
1316
1292
|
};
|
|
1317
1293
|
};
|
|
1318
1294
|
const deserializeAws_restJson1Detector = (output, context) => {
|
|
1319
1295
|
return {
|
|
1320
|
-
creationTime: output.creationTime
|
|
1296
|
+
creationTime: output.creationTime != null
|
|
1321
1297
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1322
1298
|
: undefined,
|
|
1323
1299
|
detectorModelName: (0, smithy_client_1.expectString)(output.detectorModelName),
|
|
1324
1300
|
detectorModelVersion: (0, smithy_client_1.expectString)(output.detectorModelVersion),
|
|
1325
1301
|
keyValue: (0, smithy_client_1.expectString)(output.keyValue),
|
|
1326
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1302
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1327
1303
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1328
1304
|
: undefined,
|
|
1329
|
-
state: output.state
|
|
1330
|
-
? deserializeAws_restJson1DetectorState(output.state, context)
|
|
1331
|
-
: undefined,
|
|
1305
|
+
state: output.state != null ? deserializeAws_restJson1DetectorState(output.state, context) : undefined,
|
|
1332
1306
|
};
|
|
1333
1307
|
};
|
|
1334
1308
|
const deserializeAws_restJson1DetectorState = (output, context) => {
|
|
1335
1309
|
return {
|
|
1336
1310
|
stateName: (0, smithy_client_1.expectString)(output.stateName),
|
|
1337
|
-
timers: output.timers
|
|
1338
|
-
|
|
1339
|
-
: undefined,
|
|
1340
|
-
variables: output.variables !== undefined && output.variables !== null
|
|
1341
|
-
? deserializeAws_restJson1Variables(output.variables, context)
|
|
1342
|
-
: undefined,
|
|
1311
|
+
timers: output.timers != null ? deserializeAws_restJson1Timers(output.timers, context) : undefined,
|
|
1312
|
+
variables: output.variables != null ? deserializeAws_restJson1Variables(output.variables, context) : undefined,
|
|
1343
1313
|
};
|
|
1344
1314
|
};
|
|
1345
1315
|
const deserializeAws_restJson1DetectorStateSummary = (output, context) => {
|
|
@@ -1360,18 +1330,16 @@ const deserializeAws_restJson1DetectorSummaries = (output, context) => {
|
|
|
1360
1330
|
};
|
|
1361
1331
|
const deserializeAws_restJson1DetectorSummary = (output, context) => {
|
|
1362
1332
|
return {
|
|
1363
|
-
creationTime: output.creationTime
|
|
1333
|
+
creationTime: output.creationTime != null
|
|
1364
1334
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1365
1335
|
: undefined,
|
|
1366
1336
|
detectorModelName: (0, smithy_client_1.expectString)(output.detectorModelName),
|
|
1367
1337
|
detectorModelVersion: (0, smithy_client_1.expectString)(output.detectorModelVersion),
|
|
1368
1338
|
keyValue: (0, smithy_client_1.expectString)(output.keyValue),
|
|
1369
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1339
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1370
1340
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1371
1341
|
: undefined,
|
|
1372
|
-
state: output.state
|
|
1373
|
-
? deserializeAws_restJson1DetectorStateSummary(output.state, context)
|
|
1374
|
-
: undefined,
|
|
1342
|
+
state: output.state != null ? deserializeAws_restJson1DetectorStateSummary(output.state, context) : undefined,
|
|
1375
1343
|
};
|
|
1376
1344
|
};
|
|
1377
1345
|
const deserializeAws_restJson1DisableActionConfiguration = (output, context) => {
|
|
@@ -1391,7 +1359,7 @@ const deserializeAws_restJson1ResetActionConfiguration = (output, context) => {
|
|
|
1391
1359
|
};
|
|
1392
1360
|
const deserializeAws_restJson1RuleEvaluation = (output, context) => {
|
|
1393
1361
|
return {
|
|
1394
|
-
simpleRuleEvaluation: output.simpleRuleEvaluation
|
|
1362
|
+
simpleRuleEvaluation: output.simpleRuleEvaluation != null
|
|
1395
1363
|
? deserializeAws_restJson1SimpleRuleEvaluation(output.simpleRuleEvaluation, context)
|
|
1396
1364
|
: undefined,
|
|
1397
1365
|
};
|
|
@@ -1417,7 +1385,7 @@ const deserializeAws_restJson1StateChangeConfiguration = (output, context) => {
|
|
|
1417
1385
|
const deserializeAws_restJson1SystemEvent = (output, context) => {
|
|
1418
1386
|
return {
|
|
1419
1387
|
eventType: (0, smithy_client_1.expectString)(output.eventType),
|
|
1420
|
-
stateChangeConfiguration: output.stateChangeConfiguration
|
|
1388
|
+
stateChangeConfiguration: output.stateChangeConfiguration != null
|
|
1421
1389
|
? deserializeAws_restJson1StateChangeConfiguration(output.stateChangeConfiguration, context)
|
|
1422
1390
|
: undefined,
|
|
1423
1391
|
};
|
|
@@ -1425,9 +1393,7 @@ const deserializeAws_restJson1SystemEvent = (output, context) => {
|
|
|
1425
1393
|
const deserializeAws_restJson1Timer = (output, context) => {
|
|
1426
1394
|
return {
|
|
1427
1395
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
1428
|
-
timestamp: output.timestamp
|
|
1429
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
|
|
1430
|
-
: undefined,
|
|
1396
|
+
timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
|
|
1431
1397
|
};
|
|
1432
1398
|
};
|
|
1433
1399
|
const deserializeAws_restJson1Timers = (output, context) => {
|
|
@@ -1489,6 +1455,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1489
1455
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1490
1456
|
const sanitizeErrorCode = (rawValue) => {
|
|
1491
1457
|
let cleanValue = rawValue;
|
|
1458
|
+
if (typeof cleanValue === "number") {
|
|
1459
|
+
cleanValue = cleanValue.toString();
|
|
1460
|
+
}
|
|
1492
1461
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1493
1462
|
cleanValue = cleanValue.split(":")[0];
|
|
1494
1463
|
}
|
|
@@ -14,8 +14,7 @@ export var serializeAws_restJson1BatchAcknowledgeAlarmCommand = function (input,
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/acknowledge";
|
|
17
|
-
body = JSON.stringify(__assign({}, (input.acknowledgeActionRequests
|
|
18
|
-
input.acknowledgeActionRequests !== null && {
|
|
17
|
+
body = JSON.stringify(__assign({}, (input.acknowledgeActionRequests != null && {
|
|
19
18
|
acknowledgeActionRequests: serializeAws_restJson1AcknowledgeAlarmActionRequests(input.acknowledgeActionRequests, context),
|
|
20
19
|
})));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
@@ -41,8 +40,7 @@ export var serializeAws_restJson1BatchDeleteDetectorCommand = function (input, c
|
|
|
41
40
|
"content-type": "application/json",
|
|
42
41
|
};
|
|
43
42
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors/delete";
|
|
44
|
-
body = JSON.stringify(__assign({}, (input.detectors
|
|
45
|
-
input.detectors !== null && {
|
|
43
|
+
body = JSON.stringify(__assign({}, (input.detectors != null && {
|
|
46
44
|
detectors: serializeAws_restJson1DeleteDetectorRequests(input.detectors, context),
|
|
47
45
|
})));
|
|
48
46
|
return [2, new __HttpRequest({
|
|
@@ -68,8 +66,7 @@ export var serializeAws_restJson1BatchDisableAlarmCommand = function (input, con
|
|
|
68
66
|
"content-type": "application/json",
|
|
69
67
|
};
|
|
70
68
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/disable";
|
|
71
|
-
body = JSON.stringify(__assign({}, (input.disableActionRequests
|
|
72
|
-
input.disableActionRequests !== null && {
|
|
69
|
+
body = JSON.stringify(__assign({}, (input.disableActionRequests != null && {
|
|
73
70
|
disableActionRequests: serializeAws_restJson1DisableAlarmActionRequests(input.disableActionRequests, context),
|
|
74
71
|
})));
|
|
75
72
|
return [2, new __HttpRequest({
|
|
@@ -95,8 +92,7 @@ export var serializeAws_restJson1BatchEnableAlarmCommand = function (input, cont
|
|
|
95
92
|
"content-type": "application/json",
|
|
96
93
|
};
|
|
97
94
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/enable";
|
|
98
|
-
body = JSON.stringify(__assign({}, (input.enableActionRequests
|
|
99
|
-
input.enableActionRequests !== null && {
|
|
95
|
+
body = JSON.stringify(__assign({}, (input.enableActionRequests != null && {
|
|
100
96
|
enableActionRequests: serializeAws_restJson1EnableAlarmActionRequests(input.enableActionRequests, context),
|
|
101
97
|
})));
|
|
102
98
|
return [2, new __HttpRequest({
|
|
@@ -122,8 +118,7 @@ export var serializeAws_restJson1BatchPutMessageCommand = function (input, conte
|
|
|
122
118
|
"content-type": "application/json",
|
|
123
119
|
};
|
|
124
120
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs/messages";
|
|
125
|
-
body = JSON.stringify(__assign({}, (input.messages
|
|
126
|
-
input.messages !== null && { messages: serializeAws_restJson1Messages(input.messages, context) })));
|
|
121
|
+
body = JSON.stringify(__assign({}, (input.messages != null && { messages: serializeAws_restJson1Messages(input.messages, context) })));
|
|
127
122
|
return [2, new __HttpRequest({
|
|
128
123
|
protocol: protocol,
|
|
129
124
|
hostname: hostname,
|
|
@@ -147,8 +142,7 @@ export var serializeAws_restJson1BatchResetAlarmCommand = function (input, conte
|
|
|
147
142
|
"content-type": "application/json",
|
|
148
143
|
};
|
|
149
144
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/reset";
|
|
150
|
-
body = JSON.stringify(__assign({}, (input.resetActionRequests
|
|
151
|
-
input.resetActionRequests !== null && {
|
|
145
|
+
body = JSON.stringify(__assign({}, (input.resetActionRequests != null && {
|
|
152
146
|
resetActionRequests: serializeAws_restJson1ResetAlarmActionRequests(input.resetActionRequests, context),
|
|
153
147
|
})));
|
|
154
148
|
return [2, new __HttpRequest({
|
|
@@ -174,8 +168,7 @@ export var serializeAws_restJson1BatchSnoozeAlarmCommand = function (input, cont
|
|
|
174
168
|
"content-type": "application/json",
|
|
175
169
|
};
|
|
176
170
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/snooze";
|
|
177
|
-
body = JSON.stringify(__assign({}, (input.snoozeActionRequests
|
|
178
|
-
input.snoozeActionRequests !== null && {
|
|
171
|
+
body = JSON.stringify(__assign({}, (input.snoozeActionRequests != null && {
|
|
179
172
|
snoozeActionRequests: serializeAws_restJson1SnoozeAlarmActionRequests(input.snoozeActionRequests, context),
|
|
180
173
|
})));
|
|
181
174
|
return [2, new __HttpRequest({
|
|
@@ -201,8 +194,7 @@ export var serializeAws_restJson1BatchUpdateDetectorCommand = function (input, c
|
|
|
201
194
|
"content-type": "application/json",
|
|
202
195
|
};
|
|
203
196
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors";
|
|
204
|
-
body = JSON.stringify(__assign({}, (input.detectors
|
|
205
|
-
input.detectors !== null && {
|
|
197
|
+
body = JSON.stringify(__assign({}, (input.detectors != null && {
|
|
206
198
|
detectors: serializeAws_restJson1UpdateDetectorRequests(input.detectors, context),
|
|
207
199
|
})));
|
|
208
200
|
return [2, new __HttpRequest({
|
|
@@ -1262,8 +1254,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
1262
1254
|
});
|
|
1263
1255
|
}); };
|
|
1264
1256
|
var serializeAws_restJson1AcknowledgeAlarmActionRequest = function (input, context) {
|
|
1265
|
-
return __assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1266
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }));
|
|
1257
|
+
return __assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId }));
|
|
1267
1258
|
};
|
|
1268
1259
|
var serializeAws_restJson1AcknowledgeAlarmActionRequests = function (input, context) {
|
|
1269
1260
|
return input
|
|
@@ -1276,8 +1267,7 @@ var serializeAws_restJson1AcknowledgeAlarmActionRequests = function (input, cont
|
|
|
1276
1267
|
});
|
|
1277
1268
|
};
|
|
1278
1269
|
var serializeAws_restJson1DeleteDetectorRequest = function (input, context) {
|
|
1279
|
-
return __assign(__assign(__assign({}, (input.detectorModelName
|
|
1280
|
-
input.detectorModelName !== null && { detectorModelName: input.detectorModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.messageId !== undefined && input.messageId !== null && { messageId: input.messageId }));
|
|
1270
|
+
return __assign(__assign(__assign({}, (input.detectorModelName != null && { detectorModelName: input.detectorModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.messageId != null && { messageId: input.messageId }));
|
|
1281
1271
|
};
|
|
1282
1272
|
var serializeAws_restJson1DeleteDetectorRequests = function (input, context) {
|
|
1283
1273
|
return input
|
|
@@ -1290,13 +1280,10 @@ var serializeAws_restJson1DeleteDetectorRequests = function (input, context) {
|
|
|
1290
1280
|
});
|
|
1291
1281
|
};
|
|
1292
1282
|
var serializeAws_restJson1DetectorStateDefinition = function (input, context) {
|
|
1293
|
-
return __assign(__assign(__assign({}, (input.stateName
|
|
1294
|
-
input.timers !== null && { timers: serializeAws_restJson1TimerDefinitions(input.timers, context) })), (input.variables !== undefined &&
|
|
1295
|
-
input.variables !== null && { variables: serializeAws_restJson1VariableDefinitions(input.variables, context) }));
|
|
1283
|
+
return __assign(__assign(__assign({}, (input.stateName != null && { stateName: input.stateName })), (input.timers != null && { timers: serializeAws_restJson1TimerDefinitions(input.timers, context) })), (input.variables != null && { variables: serializeAws_restJson1VariableDefinitions(input.variables, context) }));
|
|
1296
1284
|
};
|
|
1297
1285
|
var serializeAws_restJson1DisableAlarmActionRequest = function (input, context) {
|
|
1298
|
-
return __assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1299
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }));
|
|
1286
|
+
return __assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId }));
|
|
1300
1287
|
};
|
|
1301
1288
|
var serializeAws_restJson1DisableAlarmActionRequests = function (input, context) {
|
|
1302
1289
|
return input
|
|
@@ -1309,8 +1296,7 @@ var serializeAws_restJson1DisableAlarmActionRequests = function (input, context)
|
|
|
1309
1296
|
});
|
|
1310
1297
|
};
|
|
1311
1298
|
var serializeAws_restJson1EnableAlarmActionRequest = function (input, context) {
|
|
1312
|
-
return __assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1313
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }));
|
|
1299
|
+
return __assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId }));
|
|
1314
1300
|
};
|
|
1315
1301
|
var serializeAws_restJson1EnableAlarmActionRequests = function (input, context) {
|
|
1316
1302
|
return input
|
|
@@ -1323,8 +1309,7 @@ var serializeAws_restJson1EnableAlarmActionRequests = function (input, context)
|
|
|
1323
1309
|
});
|
|
1324
1310
|
};
|
|
1325
1311
|
var serializeAws_restJson1Message = function (input, context) {
|
|
1326
|
-
return __assign(__assign(__assign(__assign({}, (input.inputName
|
|
1327
|
-
input.timestamp !== null && { timestamp: serializeAws_restJson1TimestampValue(input.timestamp, context) }));
|
|
1312
|
+
return __assign(__assign(__assign(__assign({}, (input.inputName != null && { inputName: input.inputName })), (input.messageId != null && { messageId: input.messageId })), (input.payload != null && { payload: context.base64Encoder(input.payload) })), (input.timestamp != null && { timestamp: serializeAws_restJson1TimestampValue(input.timestamp, context) }));
|
|
1328
1313
|
};
|
|
1329
1314
|
var serializeAws_restJson1Messages = function (input, context) {
|
|
1330
1315
|
return input
|
|
@@ -1337,8 +1322,7 @@ var serializeAws_restJson1Messages = function (input, context) {
|
|
|
1337
1322
|
});
|
|
1338
1323
|
};
|
|
1339
1324
|
var serializeAws_restJson1ResetAlarmActionRequest = function (input, context) {
|
|
1340
|
-
return __assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1341
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId }));
|
|
1325
|
+
return __assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId }));
|
|
1342
1326
|
};
|
|
1343
1327
|
var serializeAws_restJson1ResetAlarmActionRequests = function (input, context) {
|
|
1344
1328
|
return input
|
|
@@ -1351,9 +1335,7 @@ var serializeAws_restJson1ResetAlarmActionRequests = function (input, context) {
|
|
|
1351
1335
|
});
|
|
1352
1336
|
};
|
|
1353
1337
|
var serializeAws_restJson1SnoozeAlarmActionRequest = function (input, context) {
|
|
1354
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.alarmModelName
|
|
1355
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.note !== undefined && input.note !== null && { note: input.note })), (input.requestId !== undefined && input.requestId !== null && { requestId: input.requestId })), (input.snoozeDuration !== undefined &&
|
|
1356
|
-
input.snoozeDuration !== null && { snoozeDuration: input.snoozeDuration }));
|
|
1338
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.note != null && { note: input.note })), (input.requestId != null && { requestId: input.requestId })), (input.snoozeDuration != null && { snoozeDuration: input.snoozeDuration }));
|
|
1357
1339
|
};
|
|
1358
1340
|
var serializeAws_restJson1SnoozeAlarmActionRequests = function (input, context) {
|
|
1359
1341
|
return input
|
|
@@ -1366,7 +1348,7 @@ var serializeAws_restJson1SnoozeAlarmActionRequests = function (input, context)
|
|
|
1366
1348
|
});
|
|
1367
1349
|
};
|
|
1368
1350
|
var serializeAws_restJson1TimerDefinition = function (input, context) {
|
|
1369
|
-
return __assign(__assign({}, (input.name
|
|
1351
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.seconds != null && { seconds: input.seconds }));
|
|
1370
1352
|
};
|
|
1371
1353
|
var serializeAws_restJson1TimerDefinitions = function (input, context) {
|
|
1372
1354
|
return input
|
|
@@ -1379,12 +1361,10 @@ var serializeAws_restJson1TimerDefinitions = function (input, context) {
|
|
|
1379
1361
|
});
|
|
1380
1362
|
};
|
|
1381
1363
|
var serializeAws_restJson1TimestampValue = function (input, context) {
|
|
1382
|
-
return __assign({}, (input.timeInMillis
|
|
1364
|
+
return __assign({}, (input.timeInMillis != null && { timeInMillis: input.timeInMillis }));
|
|
1383
1365
|
};
|
|
1384
1366
|
var serializeAws_restJson1UpdateDetectorRequest = function (input, context) {
|
|
1385
|
-
return __assign(__assign(__assign(__assign({}, (input.detectorModelName
|
|
1386
|
-
input.detectorModelName !== null && { detectorModelName: input.detectorModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue })), (input.messageId !== undefined && input.messageId !== null && { messageId: input.messageId })), (input.state !== undefined &&
|
|
1387
|
-
input.state !== null && { state: serializeAws_restJson1DetectorStateDefinition(input.state, context) }));
|
|
1367
|
+
return __assign(__assign(__assign(__assign({}, (input.detectorModelName != null && { detectorModelName: input.detectorModelName })), (input.keyValue != null && { keyValue: input.keyValue })), (input.messageId != null && { messageId: input.messageId })), (input.state != null && { state: serializeAws_restJson1DetectorStateDefinition(input.state, context) }));
|
|
1388
1368
|
};
|
|
1389
1369
|
var serializeAws_restJson1UpdateDetectorRequests = function (input, context) {
|
|
1390
1370
|
return input
|
|
@@ -1397,7 +1377,7 @@ var serializeAws_restJson1UpdateDetectorRequests = function (input, context) {
|
|
|
1397
1377
|
});
|
|
1398
1378
|
};
|
|
1399
1379
|
var serializeAws_restJson1VariableDefinition = function (input, context) {
|
|
1400
|
-
return __assign(__assign({}, (input.name
|
|
1380
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
|
|
1401
1381
|
};
|
|
1402
1382
|
var serializeAws_restJson1VariableDefinitions = function (input, context) {
|
|
1403
1383
|
return input
|
|
@@ -1418,14 +1398,12 @@ var deserializeAws_restJson1Alarm = function (output, context) {
|
|
|
1418
1398
|
return {
|
|
1419
1399
|
alarmModelName: __expectString(output.alarmModelName),
|
|
1420
1400
|
alarmModelVersion: __expectString(output.alarmModelVersion),
|
|
1421
|
-
alarmState: output.alarmState
|
|
1422
|
-
|
|
1423
|
-
: undefined,
|
|
1424
|
-
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1401
|
+
alarmState: output.alarmState != null ? deserializeAws_restJson1AlarmState(output.alarmState, context) : undefined,
|
|
1402
|
+
creationTime: output.creationTime != null
|
|
1425
1403
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
1426
1404
|
: undefined,
|
|
1427
1405
|
keyValue: __expectString(output.keyValue),
|
|
1428
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1406
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1429
1407
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1430
1408
|
: undefined,
|
|
1431
1409
|
severity: __expectInt32(output.severity),
|
|
@@ -1433,16 +1411,14 @@ var deserializeAws_restJson1Alarm = function (output, context) {
|
|
|
1433
1411
|
};
|
|
1434
1412
|
var deserializeAws_restJson1AlarmState = function (output, context) {
|
|
1435
1413
|
return {
|
|
1436
|
-
customerAction: output.customerAction
|
|
1414
|
+
customerAction: output.customerAction != null
|
|
1437
1415
|
? deserializeAws_restJson1CustomerAction(output.customerAction, context)
|
|
1438
1416
|
: undefined,
|
|
1439
|
-
ruleEvaluation: output.ruleEvaluation
|
|
1417
|
+
ruleEvaluation: output.ruleEvaluation != null
|
|
1440
1418
|
? deserializeAws_restJson1RuleEvaluation(output.ruleEvaluation, context)
|
|
1441
1419
|
: undefined,
|
|
1442
1420
|
stateName: __expectString(output.stateName),
|
|
1443
|
-
systemEvent: output.systemEvent
|
|
1444
|
-
? deserializeAws_restJson1SystemEvent(output.systemEvent, context)
|
|
1445
|
-
: undefined,
|
|
1421
|
+
systemEvent: output.systemEvent != null ? deserializeAws_restJson1SystemEvent(output.systemEvent, context) : undefined,
|
|
1446
1422
|
};
|
|
1447
1423
|
};
|
|
1448
1424
|
var deserializeAws_restJson1AlarmSummaries = function (output, context) {
|
|
@@ -1460,11 +1436,11 @@ var deserializeAws_restJson1AlarmSummary = function (output, context) {
|
|
|
1460
1436
|
return {
|
|
1461
1437
|
alarmModelName: __expectString(output.alarmModelName),
|
|
1462
1438
|
alarmModelVersion: __expectString(output.alarmModelVersion),
|
|
1463
|
-
creationTime: output.creationTime
|
|
1439
|
+
creationTime: output.creationTime != null
|
|
1464
1440
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
1465
1441
|
: undefined,
|
|
1466
1442
|
keyValue: __expectString(output.keyValue),
|
|
1467
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1443
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1468
1444
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1469
1445
|
: undefined,
|
|
1470
1446
|
stateName: __expectString(output.stateName),
|
|
@@ -1544,49 +1520,43 @@ var deserializeAws_restJson1BatchUpdateDetectorErrorEntry = function (output, co
|
|
|
1544
1520
|
};
|
|
1545
1521
|
var deserializeAws_restJson1CustomerAction = function (output, context) {
|
|
1546
1522
|
return {
|
|
1547
|
-
acknowledgeActionConfiguration: output.acknowledgeActionConfiguration
|
|
1523
|
+
acknowledgeActionConfiguration: output.acknowledgeActionConfiguration != null
|
|
1548
1524
|
? deserializeAws_restJson1AcknowledgeActionConfiguration(output.acknowledgeActionConfiguration, context)
|
|
1549
1525
|
: undefined,
|
|
1550
1526
|
actionName: __expectString(output.actionName),
|
|
1551
|
-
disableActionConfiguration: output.disableActionConfiguration
|
|
1527
|
+
disableActionConfiguration: output.disableActionConfiguration != null
|
|
1552
1528
|
? deserializeAws_restJson1DisableActionConfiguration(output.disableActionConfiguration, context)
|
|
1553
1529
|
: undefined,
|
|
1554
|
-
enableActionConfiguration: output.enableActionConfiguration
|
|
1530
|
+
enableActionConfiguration: output.enableActionConfiguration != null
|
|
1555
1531
|
? deserializeAws_restJson1EnableActionConfiguration(output.enableActionConfiguration, context)
|
|
1556
1532
|
: undefined,
|
|
1557
|
-
resetActionConfiguration: output.resetActionConfiguration
|
|
1533
|
+
resetActionConfiguration: output.resetActionConfiguration != null
|
|
1558
1534
|
? deserializeAws_restJson1ResetActionConfiguration(output.resetActionConfiguration, context)
|
|
1559
1535
|
: undefined,
|
|
1560
|
-
snoozeActionConfiguration: output.snoozeActionConfiguration
|
|
1536
|
+
snoozeActionConfiguration: output.snoozeActionConfiguration != null
|
|
1561
1537
|
? deserializeAws_restJson1SnoozeActionConfiguration(output.snoozeActionConfiguration, context)
|
|
1562
1538
|
: undefined,
|
|
1563
1539
|
};
|
|
1564
1540
|
};
|
|
1565
1541
|
var deserializeAws_restJson1Detector = function (output, context) {
|
|
1566
1542
|
return {
|
|
1567
|
-
creationTime: output.creationTime
|
|
1543
|
+
creationTime: output.creationTime != null
|
|
1568
1544
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
1569
1545
|
: undefined,
|
|
1570
1546
|
detectorModelName: __expectString(output.detectorModelName),
|
|
1571
1547
|
detectorModelVersion: __expectString(output.detectorModelVersion),
|
|
1572
1548
|
keyValue: __expectString(output.keyValue),
|
|
1573
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1549
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1574
1550
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1575
1551
|
: undefined,
|
|
1576
|
-
state: output.state
|
|
1577
|
-
? deserializeAws_restJson1DetectorState(output.state, context)
|
|
1578
|
-
: undefined,
|
|
1552
|
+
state: output.state != null ? deserializeAws_restJson1DetectorState(output.state, context) : undefined,
|
|
1579
1553
|
};
|
|
1580
1554
|
};
|
|
1581
1555
|
var deserializeAws_restJson1DetectorState = function (output, context) {
|
|
1582
1556
|
return {
|
|
1583
1557
|
stateName: __expectString(output.stateName),
|
|
1584
|
-
timers: output.timers
|
|
1585
|
-
|
|
1586
|
-
: undefined,
|
|
1587
|
-
variables: output.variables !== undefined && output.variables !== null
|
|
1588
|
-
? deserializeAws_restJson1Variables(output.variables, context)
|
|
1589
|
-
: undefined,
|
|
1558
|
+
timers: output.timers != null ? deserializeAws_restJson1Timers(output.timers, context) : undefined,
|
|
1559
|
+
variables: output.variables != null ? deserializeAws_restJson1Variables(output.variables, context) : undefined,
|
|
1590
1560
|
};
|
|
1591
1561
|
};
|
|
1592
1562
|
var deserializeAws_restJson1DetectorStateSummary = function (output, context) {
|
|
@@ -1607,18 +1577,16 @@ var deserializeAws_restJson1DetectorSummaries = function (output, context) {
|
|
|
1607
1577
|
};
|
|
1608
1578
|
var deserializeAws_restJson1DetectorSummary = function (output, context) {
|
|
1609
1579
|
return {
|
|
1610
|
-
creationTime: output.creationTime
|
|
1580
|
+
creationTime: output.creationTime != null
|
|
1611
1581
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
1612
1582
|
: undefined,
|
|
1613
1583
|
detectorModelName: __expectString(output.detectorModelName),
|
|
1614
1584
|
detectorModelVersion: __expectString(output.detectorModelVersion),
|
|
1615
1585
|
keyValue: __expectString(output.keyValue),
|
|
1616
|
-
lastUpdateTime: output.lastUpdateTime
|
|
1586
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
1617
1587
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
1618
1588
|
: undefined,
|
|
1619
|
-
state: output.state
|
|
1620
|
-
? deserializeAws_restJson1DetectorStateSummary(output.state, context)
|
|
1621
|
-
: undefined,
|
|
1589
|
+
state: output.state != null ? deserializeAws_restJson1DetectorStateSummary(output.state, context) : undefined,
|
|
1622
1590
|
};
|
|
1623
1591
|
};
|
|
1624
1592
|
var deserializeAws_restJson1DisableActionConfiguration = function (output, context) {
|
|
@@ -1638,7 +1606,7 @@ var deserializeAws_restJson1ResetActionConfiguration = function (output, context
|
|
|
1638
1606
|
};
|
|
1639
1607
|
var deserializeAws_restJson1RuleEvaluation = function (output, context) {
|
|
1640
1608
|
return {
|
|
1641
|
-
simpleRuleEvaluation: output.simpleRuleEvaluation
|
|
1609
|
+
simpleRuleEvaluation: output.simpleRuleEvaluation != null
|
|
1642
1610
|
? deserializeAws_restJson1SimpleRuleEvaluation(output.simpleRuleEvaluation, context)
|
|
1643
1611
|
: undefined,
|
|
1644
1612
|
};
|
|
@@ -1664,7 +1632,7 @@ var deserializeAws_restJson1StateChangeConfiguration = function (output, context
|
|
|
1664
1632
|
var deserializeAws_restJson1SystemEvent = function (output, context) {
|
|
1665
1633
|
return {
|
|
1666
1634
|
eventType: __expectString(output.eventType),
|
|
1667
|
-
stateChangeConfiguration: output.stateChangeConfiguration
|
|
1635
|
+
stateChangeConfiguration: output.stateChangeConfiguration != null
|
|
1668
1636
|
? deserializeAws_restJson1StateChangeConfiguration(output.stateChangeConfiguration, context)
|
|
1669
1637
|
: undefined,
|
|
1670
1638
|
};
|
|
@@ -1672,9 +1640,7 @@ var deserializeAws_restJson1SystemEvent = function (output, context) {
|
|
|
1672
1640
|
var deserializeAws_restJson1Timer = function (output, context) {
|
|
1673
1641
|
return {
|
|
1674
1642
|
name: __expectString(output.name),
|
|
1675
|
-
timestamp: output.timestamp
|
|
1676
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp)))
|
|
1677
|
-
: undefined,
|
|
1643
|
+
timestamp: output.timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp))) : undefined,
|
|
1678
1644
|
};
|
|
1679
1645
|
};
|
|
1680
1646
|
var deserializeAws_restJson1Timers = function (output, context) {
|
|
@@ -1743,6 +1709,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1743
1709
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1744
1710
|
var sanitizeErrorCode = function (rawValue) {
|
|
1745
1711
|
var cleanValue = rawValue;
|
|
1712
|
+
if (typeof cleanValue === "number") {
|
|
1713
|
+
cleanValue = cleanValue.toString();
|
|
1714
|
+
}
|
|
1746
1715
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1747
1716
|
cleanValue = cleanValue.split(":")[0];
|
|
1748
1717
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iot-events-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iot Events Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|