@aws-sdk/client-iot-events-data 3.310.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +175 -525
- package/dist-es/protocols/Aws_restJson1.js +155 -505
- package/package.json +6 -6
|
@@ -12,11 +12,9 @@ const se_BatchAcknowledgeAlarmCommand = async (input, context) => {
|
|
|
12
12
|
};
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/acknowledge";
|
|
14
14
|
let body;
|
|
15
|
-
body = JSON.stringify({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
15
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
|
+
acknowledgeActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
17
|
+
}));
|
|
20
18
|
return new protocol_http_1.HttpRequest({
|
|
21
19
|
protocol,
|
|
22
20
|
hostname,
|
|
@@ -35,9 +33,9 @@ const se_BatchDeleteDetectorCommand = async (input, context) => {
|
|
|
35
33
|
};
|
|
36
34
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors/delete";
|
|
37
35
|
let body;
|
|
38
|
-
body = JSON.stringify({
|
|
39
|
-
|
|
40
|
-
});
|
|
36
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
37
|
+
detectors: (_) => (0, smithy_client_1._json)(_),
|
|
38
|
+
}));
|
|
41
39
|
return new protocol_http_1.HttpRequest({
|
|
42
40
|
protocol,
|
|
43
41
|
hostname,
|
|
@@ -56,11 +54,9 @@ const se_BatchDisableAlarmCommand = async (input, context) => {
|
|
|
56
54
|
};
|
|
57
55
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/disable";
|
|
58
56
|
let body;
|
|
59
|
-
body = JSON.stringify({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}),
|
|
63
|
-
});
|
|
57
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
58
|
+
disableActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
59
|
+
}));
|
|
64
60
|
return new protocol_http_1.HttpRequest({
|
|
65
61
|
protocol,
|
|
66
62
|
hostname,
|
|
@@ -79,11 +75,9 @@ const se_BatchEnableAlarmCommand = async (input, context) => {
|
|
|
79
75
|
};
|
|
80
76
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/enable";
|
|
81
77
|
let body;
|
|
82
|
-
body = JSON.stringify({
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}),
|
|
86
|
-
});
|
|
78
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
79
|
+
enableActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
80
|
+
}));
|
|
87
81
|
return new protocol_http_1.HttpRequest({
|
|
88
82
|
protocol,
|
|
89
83
|
hostname,
|
|
@@ -102,9 +96,9 @@ const se_BatchPutMessageCommand = async (input, context) => {
|
|
|
102
96
|
};
|
|
103
97
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/messages";
|
|
104
98
|
let body;
|
|
105
|
-
body = JSON.stringify({
|
|
106
|
-
|
|
107
|
-
});
|
|
99
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
100
|
+
messages: (_) => se_Messages(_, context),
|
|
101
|
+
}));
|
|
108
102
|
return new protocol_http_1.HttpRequest({
|
|
109
103
|
protocol,
|
|
110
104
|
hostname,
|
|
@@ -123,11 +117,9 @@ const se_BatchResetAlarmCommand = async (input, context) => {
|
|
|
123
117
|
};
|
|
124
118
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/reset";
|
|
125
119
|
let body;
|
|
126
|
-
body = JSON.stringify({
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}),
|
|
130
|
-
});
|
|
120
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
121
|
+
resetActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
122
|
+
}));
|
|
131
123
|
return new protocol_http_1.HttpRequest({
|
|
132
124
|
protocol,
|
|
133
125
|
hostname,
|
|
@@ -146,11 +138,9 @@ const se_BatchSnoozeAlarmCommand = async (input, context) => {
|
|
|
146
138
|
};
|
|
147
139
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/snooze";
|
|
148
140
|
let body;
|
|
149
|
-
body = JSON.stringify({
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}),
|
|
153
|
-
});
|
|
141
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
142
|
+
snoozeActionRequests: (_) => (0, smithy_client_1._json)(_),
|
|
143
|
+
}));
|
|
154
144
|
return new protocol_http_1.HttpRequest({
|
|
155
145
|
protocol,
|
|
156
146
|
hostname,
|
|
@@ -169,9 +159,9 @@ const se_BatchUpdateDetectorCommand = async (input, context) => {
|
|
|
169
159
|
};
|
|
170
160
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors";
|
|
171
161
|
let body;
|
|
172
|
-
body = JSON.stringify({
|
|
173
|
-
|
|
174
|
-
});
|
|
162
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
163
|
+
detectors: (_) => (0, smithy_client_1._json)(_),
|
|
164
|
+
}));
|
|
175
165
|
return new protocol_http_1.HttpRequest({
|
|
176
166
|
protocol,
|
|
177
167
|
hostname,
|
|
@@ -188,7 +178,7 @@ const se_DescribeAlarmCommand = async (input, context) => {
|
|
|
188
178
|
const headers = {};
|
|
189
179
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/{alarmModelName}/keyValues";
|
|
190
180
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
|
|
191
|
-
const query = map({
|
|
181
|
+
const query = (0, smithy_client_1.map)({
|
|
192
182
|
keyValue: [, input.keyValue],
|
|
193
183
|
});
|
|
194
184
|
let body;
|
|
@@ -209,7 +199,7 @@ const se_DescribeDetectorCommand = async (input, context) => {
|
|
|
209
199
|
const headers = {};
|
|
210
200
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors/{detectorModelName}/keyValues";
|
|
211
201
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
|
|
212
|
-
const query = map({
|
|
202
|
+
const query = (0, smithy_client_1.map)({
|
|
213
203
|
keyValue: [, input.keyValue],
|
|
214
204
|
});
|
|
215
205
|
let body;
|
|
@@ -230,7 +220,7 @@ const se_ListAlarmsCommand = async (input, context) => {
|
|
|
230
220
|
const headers = {};
|
|
231
221
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarms/{alarmModelName}";
|
|
232
222
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "alarmModelName", () => input.alarmModelName, "{alarmModelName}", false);
|
|
233
|
-
const query = map({
|
|
223
|
+
const query = (0, smithy_client_1.map)({
|
|
234
224
|
nextToken: [, input.nextToken],
|
|
235
225
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
236
226
|
});
|
|
@@ -252,7 +242,7 @@ const se_ListDetectorsCommand = async (input, context) => {
|
|
|
252
242
|
const headers = {};
|
|
253
243
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detectors/{detectorModelName}";
|
|
254
244
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "detectorModelName", () => input.detectorModelName, "{detectorModelName}", false);
|
|
255
|
-
const query = map({
|
|
245
|
+
const query = (0, smithy_client_1.map)({
|
|
256
246
|
stateName: [, input.stateName],
|
|
257
247
|
nextToken: [, input.nextToken],
|
|
258
248
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -274,13 +264,14 @@ const de_BatchAcknowledgeAlarmCommand = async (output, context) => {
|
|
|
274
264
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
275
265
|
return de_BatchAcknowledgeAlarmCommandError(output, context);
|
|
276
266
|
}
|
|
277
|
-
const contents = map({
|
|
267
|
+
const contents = (0, smithy_client_1.map)({
|
|
278
268
|
$metadata: deserializeMetadata(output),
|
|
279
269
|
});
|
|
280
270
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
271
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
272
|
+
errorEntries: smithy_client_1._json,
|
|
273
|
+
});
|
|
274
|
+
Object.assign(contents, doc);
|
|
284
275
|
return contents;
|
|
285
276
|
};
|
|
286
277
|
exports.de_BatchAcknowledgeAlarmCommand = de_BatchAcknowledgeAlarmCommand;
|
|
@@ -305,10 +296,9 @@ const de_BatchAcknowledgeAlarmCommandError = async (output, context) => {
|
|
|
305
296
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
306
297
|
default:
|
|
307
298
|
const parsedBody = parsedOutput.body;
|
|
308
|
-
|
|
299
|
+
return throwDefaultError({
|
|
309
300
|
output,
|
|
310
301
|
parsedBody,
|
|
311
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
312
302
|
errorCode,
|
|
313
303
|
});
|
|
314
304
|
}
|
|
@@ -317,13 +307,14 @@ const de_BatchDeleteDetectorCommand = async (output, context) => {
|
|
|
317
307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
318
308
|
return de_BatchDeleteDetectorCommandError(output, context);
|
|
319
309
|
}
|
|
320
|
-
const contents = map({
|
|
310
|
+
const contents = (0, smithy_client_1.map)({
|
|
321
311
|
$metadata: deserializeMetadata(output),
|
|
322
312
|
});
|
|
323
313
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
314
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
315
|
+
batchDeleteDetectorErrorEntries: smithy_client_1._json,
|
|
316
|
+
});
|
|
317
|
+
Object.assign(contents, doc);
|
|
327
318
|
return contents;
|
|
328
319
|
};
|
|
329
320
|
exports.de_BatchDeleteDetectorCommand = de_BatchDeleteDetectorCommand;
|
|
@@ -348,10 +339,9 @@ const de_BatchDeleteDetectorCommandError = async (output, context) => {
|
|
|
348
339
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
349
340
|
default:
|
|
350
341
|
const parsedBody = parsedOutput.body;
|
|
351
|
-
|
|
342
|
+
return throwDefaultError({
|
|
352
343
|
output,
|
|
353
344
|
parsedBody,
|
|
354
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
355
345
|
errorCode,
|
|
356
346
|
});
|
|
357
347
|
}
|
|
@@ -360,13 +350,14 @@ const de_BatchDisableAlarmCommand = async (output, context) => {
|
|
|
360
350
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
361
351
|
return de_BatchDisableAlarmCommandError(output, context);
|
|
362
352
|
}
|
|
363
|
-
const contents = map({
|
|
353
|
+
const contents = (0, smithy_client_1.map)({
|
|
364
354
|
$metadata: deserializeMetadata(output),
|
|
365
355
|
});
|
|
366
356
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}
|
|
357
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
358
|
+
errorEntries: smithy_client_1._json,
|
|
359
|
+
});
|
|
360
|
+
Object.assign(contents, doc);
|
|
370
361
|
return contents;
|
|
371
362
|
};
|
|
372
363
|
exports.de_BatchDisableAlarmCommand = de_BatchDisableAlarmCommand;
|
|
@@ -391,10 +382,9 @@ const de_BatchDisableAlarmCommandError = async (output, context) => {
|
|
|
391
382
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
392
383
|
default:
|
|
393
384
|
const parsedBody = parsedOutput.body;
|
|
394
|
-
|
|
385
|
+
return throwDefaultError({
|
|
395
386
|
output,
|
|
396
387
|
parsedBody,
|
|
397
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
398
388
|
errorCode,
|
|
399
389
|
});
|
|
400
390
|
}
|
|
@@ -403,13 +393,14 @@ const de_BatchEnableAlarmCommand = async (output, context) => {
|
|
|
403
393
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
404
394
|
return de_BatchEnableAlarmCommandError(output, context);
|
|
405
395
|
}
|
|
406
|
-
const contents = map({
|
|
396
|
+
const contents = (0, smithy_client_1.map)({
|
|
407
397
|
$metadata: deserializeMetadata(output),
|
|
408
398
|
});
|
|
409
399
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}
|
|
400
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
401
|
+
errorEntries: smithy_client_1._json,
|
|
402
|
+
});
|
|
403
|
+
Object.assign(contents, doc);
|
|
413
404
|
return contents;
|
|
414
405
|
};
|
|
415
406
|
exports.de_BatchEnableAlarmCommand = de_BatchEnableAlarmCommand;
|
|
@@ -434,10 +425,9 @@ const de_BatchEnableAlarmCommandError = async (output, context) => {
|
|
|
434
425
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
435
426
|
default:
|
|
436
427
|
const parsedBody = parsedOutput.body;
|
|
437
|
-
|
|
428
|
+
return throwDefaultError({
|
|
438
429
|
output,
|
|
439
430
|
parsedBody,
|
|
440
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
441
431
|
errorCode,
|
|
442
432
|
});
|
|
443
433
|
}
|
|
@@ -446,13 +436,14 @@ const de_BatchPutMessageCommand = async (output, context) => {
|
|
|
446
436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
447
437
|
return de_BatchPutMessageCommandError(output, context);
|
|
448
438
|
}
|
|
449
|
-
const contents = map({
|
|
439
|
+
const contents = (0, smithy_client_1.map)({
|
|
450
440
|
$metadata: deserializeMetadata(output),
|
|
451
441
|
});
|
|
452
442
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}
|
|
443
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
444
|
+
BatchPutMessageErrorEntries: smithy_client_1._json,
|
|
445
|
+
});
|
|
446
|
+
Object.assign(contents, doc);
|
|
456
447
|
return contents;
|
|
457
448
|
};
|
|
458
449
|
exports.de_BatchPutMessageCommand = de_BatchPutMessageCommand;
|
|
@@ -477,10 +468,9 @@ const de_BatchPutMessageCommandError = async (output, context) => {
|
|
|
477
468
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
478
469
|
default:
|
|
479
470
|
const parsedBody = parsedOutput.body;
|
|
480
|
-
|
|
471
|
+
return throwDefaultError({
|
|
481
472
|
output,
|
|
482
473
|
parsedBody,
|
|
483
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
484
474
|
errorCode,
|
|
485
475
|
});
|
|
486
476
|
}
|
|
@@ -489,13 +479,14 @@ const de_BatchResetAlarmCommand = async (output, context) => {
|
|
|
489
479
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
490
480
|
return de_BatchResetAlarmCommandError(output, context);
|
|
491
481
|
}
|
|
492
|
-
const contents = map({
|
|
482
|
+
const contents = (0, smithy_client_1.map)({
|
|
493
483
|
$metadata: deserializeMetadata(output),
|
|
494
484
|
});
|
|
495
485
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}
|
|
486
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
487
|
+
errorEntries: smithy_client_1._json,
|
|
488
|
+
});
|
|
489
|
+
Object.assign(contents, doc);
|
|
499
490
|
return contents;
|
|
500
491
|
};
|
|
501
492
|
exports.de_BatchResetAlarmCommand = de_BatchResetAlarmCommand;
|
|
@@ -520,10 +511,9 @@ const de_BatchResetAlarmCommandError = async (output, context) => {
|
|
|
520
511
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
521
512
|
default:
|
|
522
513
|
const parsedBody = parsedOutput.body;
|
|
523
|
-
|
|
514
|
+
return throwDefaultError({
|
|
524
515
|
output,
|
|
525
516
|
parsedBody,
|
|
526
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
527
517
|
errorCode,
|
|
528
518
|
});
|
|
529
519
|
}
|
|
@@ -532,13 +522,14 @@ const de_BatchSnoozeAlarmCommand = async (output, context) => {
|
|
|
532
522
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
533
523
|
return de_BatchSnoozeAlarmCommandError(output, context);
|
|
534
524
|
}
|
|
535
|
-
const contents = map({
|
|
525
|
+
const contents = (0, smithy_client_1.map)({
|
|
536
526
|
$metadata: deserializeMetadata(output),
|
|
537
527
|
});
|
|
538
528
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}
|
|
529
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
530
|
+
errorEntries: smithy_client_1._json,
|
|
531
|
+
});
|
|
532
|
+
Object.assign(contents, doc);
|
|
542
533
|
return contents;
|
|
543
534
|
};
|
|
544
535
|
exports.de_BatchSnoozeAlarmCommand = de_BatchSnoozeAlarmCommand;
|
|
@@ -563,10 +554,9 @@ const de_BatchSnoozeAlarmCommandError = async (output, context) => {
|
|
|
563
554
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
564
555
|
default:
|
|
565
556
|
const parsedBody = parsedOutput.body;
|
|
566
|
-
|
|
557
|
+
return throwDefaultError({
|
|
567
558
|
output,
|
|
568
559
|
parsedBody,
|
|
569
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
570
560
|
errorCode,
|
|
571
561
|
});
|
|
572
562
|
}
|
|
@@ -575,13 +565,14 @@ const de_BatchUpdateDetectorCommand = async (output, context) => {
|
|
|
575
565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
576
566
|
return de_BatchUpdateDetectorCommandError(output, context);
|
|
577
567
|
}
|
|
578
|
-
const contents = map({
|
|
568
|
+
const contents = (0, smithy_client_1.map)({
|
|
579
569
|
$metadata: deserializeMetadata(output),
|
|
580
570
|
});
|
|
581
571
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
572
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
573
|
+
batchUpdateDetectorErrorEntries: smithy_client_1._json,
|
|
574
|
+
});
|
|
575
|
+
Object.assign(contents, doc);
|
|
585
576
|
return contents;
|
|
586
577
|
};
|
|
587
578
|
exports.de_BatchUpdateDetectorCommand = de_BatchUpdateDetectorCommand;
|
|
@@ -606,10 +597,9 @@ const de_BatchUpdateDetectorCommandError = async (output, context) => {
|
|
|
606
597
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
607
598
|
default:
|
|
608
599
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
|
|
600
|
+
return throwDefaultError({
|
|
610
601
|
output,
|
|
611
602
|
parsedBody,
|
|
612
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
613
603
|
errorCode,
|
|
614
604
|
});
|
|
615
605
|
}
|
|
@@ -618,13 +608,14 @@ const de_DescribeAlarmCommand = async (output, context) => {
|
|
|
618
608
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
619
609
|
return de_DescribeAlarmCommandError(output, context);
|
|
620
610
|
}
|
|
621
|
-
const contents = map({
|
|
611
|
+
const contents = (0, smithy_client_1.map)({
|
|
622
612
|
$metadata: deserializeMetadata(output),
|
|
623
613
|
});
|
|
624
614
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
}
|
|
615
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
616
|
+
alarm: (_) => de_Alarm(_, context),
|
|
617
|
+
});
|
|
618
|
+
Object.assign(contents, doc);
|
|
628
619
|
return contents;
|
|
629
620
|
};
|
|
630
621
|
exports.de_DescribeAlarmCommand = de_DescribeAlarmCommand;
|
|
@@ -652,10 +643,9 @@ const de_DescribeAlarmCommandError = async (output, context) => {
|
|
|
652
643
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
653
644
|
default:
|
|
654
645
|
const parsedBody = parsedOutput.body;
|
|
655
|
-
|
|
646
|
+
return throwDefaultError({
|
|
656
647
|
output,
|
|
657
648
|
parsedBody,
|
|
658
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
659
649
|
errorCode,
|
|
660
650
|
});
|
|
661
651
|
}
|
|
@@ -664,13 +654,14 @@ const de_DescribeDetectorCommand = async (output, context) => {
|
|
|
664
654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
665
655
|
return de_DescribeDetectorCommandError(output, context);
|
|
666
656
|
}
|
|
667
|
-
const contents = map({
|
|
657
|
+
const contents = (0, smithy_client_1.map)({
|
|
668
658
|
$metadata: deserializeMetadata(output),
|
|
669
659
|
});
|
|
670
660
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
661
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
662
|
+
detector: (_) => de_Detector(_, context),
|
|
663
|
+
});
|
|
664
|
+
Object.assign(contents, doc);
|
|
674
665
|
return contents;
|
|
675
666
|
};
|
|
676
667
|
exports.de_DescribeDetectorCommand = de_DescribeDetectorCommand;
|
|
@@ -698,10 +689,9 @@ const de_DescribeDetectorCommandError = async (output, context) => {
|
|
|
698
689
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
699
690
|
default:
|
|
700
691
|
const parsedBody = parsedOutput.body;
|
|
701
|
-
|
|
692
|
+
return throwDefaultError({
|
|
702
693
|
output,
|
|
703
694
|
parsedBody,
|
|
704
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
705
695
|
errorCode,
|
|
706
696
|
});
|
|
707
697
|
}
|
|
@@ -710,16 +700,15 @@ const de_ListAlarmsCommand = async (output, context) => {
|
|
|
710
700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
711
701
|
return de_ListAlarmsCommandError(output, context);
|
|
712
702
|
}
|
|
713
|
-
const contents = map({
|
|
703
|
+
const contents = (0, smithy_client_1.map)({
|
|
714
704
|
$metadata: deserializeMetadata(output),
|
|
715
705
|
});
|
|
716
706
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}
|
|
707
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
708
|
+
alarmSummaries: (_) => de_AlarmSummaries(_, context),
|
|
709
|
+
nextToken: smithy_client_1.expectString,
|
|
710
|
+
});
|
|
711
|
+
Object.assign(contents, doc);
|
|
723
712
|
return contents;
|
|
724
713
|
};
|
|
725
714
|
exports.de_ListAlarmsCommand = de_ListAlarmsCommand;
|
|
@@ -747,10 +736,9 @@ const de_ListAlarmsCommandError = async (output, context) => {
|
|
|
747
736
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
748
737
|
default:
|
|
749
738
|
const parsedBody = parsedOutput.body;
|
|
750
|
-
|
|
739
|
+
return throwDefaultError({
|
|
751
740
|
output,
|
|
752
741
|
parsedBody,
|
|
753
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
754
742
|
errorCode,
|
|
755
743
|
});
|
|
756
744
|
}
|
|
@@ -759,16 +747,15 @@ const de_ListDetectorsCommand = async (output, context) => {
|
|
|
759
747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
760
748
|
return de_ListDetectorsCommandError(output, context);
|
|
761
749
|
}
|
|
762
|
-
const contents = map({
|
|
750
|
+
const contents = (0, smithy_client_1.map)({
|
|
763
751
|
$metadata: deserializeMetadata(output),
|
|
764
752
|
});
|
|
765
753
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
}
|
|
754
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
755
|
+
detectorSummaries: (_) => de_DetectorSummaries(_, context),
|
|
756
|
+
nextToken: smithy_client_1.expectString,
|
|
757
|
+
});
|
|
758
|
+
Object.assign(contents, doc);
|
|
772
759
|
return contents;
|
|
773
760
|
};
|
|
774
761
|
exports.de_ListDetectorsCommand = de_ListDetectorsCommand;
|
|
@@ -796,21 +783,21 @@ const de_ListDetectorsCommandError = async (output, context) => {
|
|
|
796
783
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
797
784
|
default:
|
|
798
785
|
const parsedBody = parsedOutput.body;
|
|
799
|
-
|
|
786
|
+
return throwDefaultError({
|
|
800
787
|
output,
|
|
801
788
|
parsedBody,
|
|
802
|
-
exceptionCtor: IoTEventsDataServiceException_1.IoTEventsDataServiceException,
|
|
803
789
|
errorCode,
|
|
804
790
|
});
|
|
805
791
|
}
|
|
806
792
|
};
|
|
807
|
-
const
|
|
793
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(IoTEventsDataServiceException_1.IoTEventsDataServiceException);
|
|
808
794
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
809
|
-
const contents = map({});
|
|
795
|
+
const contents = (0, smithy_client_1.map)({});
|
|
810
796
|
const data = parsedOutput.body;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
}
|
|
797
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
798
|
+
message: smithy_client_1.expectString,
|
|
799
|
+
});
|
|
800
|
+
Object.assign(contents, doc);
|
|
814
801
|
const exception = new models_0_1.InternalFailureException({
|
|
815
802
|
$metadata: deserializeMetadata(parsedOutput),
|
|
816
803
|
...contents,
|
|
@@ -818,11 +805,12 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
818
805
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
819
806
|
};
|
|
820
807
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
821
|
-
const contents = map({});
|
|
808
|
+
const contents = (0, smithy_client_1.map)({});
|
|
822
809
|
const data = parsedOutput.body;
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
}
|
|
810
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
811
|
+
message: smithy_client_1.expectString,
|
|
812
|
+
});
|
|
813
|
+
Object.assign(contents, doc);
|
|
826
814
|
const exception = new models_0_1.InvalidRequestException({
|
|
827
815
|
$metadata: deserializeMetadata(parsedOutput),
|
|
828
816
|
...contents,
|
|
@@ -830,11 +818,12 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
830
818
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
831
819
|
};
|
|
832
820
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
833
|
-
const contents = map({});
|
|
821
|
+
const contents = (0, smithy_client_1.map)({});
|
|
834
822
|
const data = parsedOutput.body;
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}
|
|
823
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
824
|
+
message: smithy_client_1.expectString,
|
|
825
|
+
});
|
|
826
|
+
Object.assign(contents, doc);
|
|
838
827
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
839
828
|
$metadata: deserializeMetadata(parsedOutput),
|
|
840
829
|
...contents,
|
|
@@ -842,11 +831,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
842
831
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
843
832
|
};
|
|
844
833
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
845
|
-
const contents = map({});
|
|
834
|
+
const contents = (0, smithy_client_1.map)({});
|
|
846
835
|
const data = parsedOutput.body;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
}
|
|
836
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
837
|
+
message: smithy_client_1.expectString,
|
|
838
|
+
});
|
|
839
|
+
Object.assign(contents, doc);
|
|
850
840
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
851
841
|
$metadata: deserializeMetadata(parsedOutput),
|
|
852
842
|
...contents,
|
|
@@ -854,90 +844,25 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
854
844
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
855
845
|
};
|
|
856
846
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
857
|
-
const contents = map({});
|
|
847
|
+
const contents = (0, smithy_client_1.map)({});
|
|
858
848
|
const data = parsedOutput.body;
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
}
|
|
849
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
850
|
+
message: smithy_client_1.expectString,
|
|
851
|
+
});
|
|
852
|
+
Object.assign(contents, doc);
|
|
862
853
|
const exception = new models_0_1.ThrottlingException({
|
|
863
854
|
$metadata: deserializeMetadata(parsedOutput),
|
|
864
855
|
...contents,
|
|
865
856
|
});
|
|
866
857
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
867
858
|
};
|
|
868
|
-
const se_AcknowledgeAlarmActionRequest = (input, context) => {
|
|
869
|
-
return {
|
|
870
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
871
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
872
|
-
...(input.note != null && { note: input.note }),
|
|
873
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
874
|
-
};
|
|
875
|
-
};
|
|
876
|
-
const se_AcknowledgeAlarmActionRequests = (input, context) => {
|
|
877
|
-
return input
|
|
878
|
-
.filter((e) => e != null)
|
|
879
|
-
.map((entry) => {
|
|
880
|
-
return se_AcknowledgeAlarmActionRequest(entry, context);
|
|
881
|
-
});
|
|
882
|
-
};
|
|
883
|
-
const se_DeleteDetectorRequest = (input, context) => {
|
|
884
|
-
return {
|
|
885
|
-
...(input.detectorModelName != null && { detectorModelName: input.detectorModelName }),
|
|
886
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
887
|
-
...(input.messageId != null && { messageId: input.messageId }),
|
|
888
|
-
};
|
|
889
|
-
};
|
|
890
|
-
const se_DeleteDetectorRequests = (input, context) => {
|
|
891
|
-
return input
|
|
892
|
-
.filter((e) => e != null)
|
|
893
|
-
.map((entry) => {
|
|
894
|
-
return se_DeleteDetectorRequest(entry, context);
|
|
895
|
-
});
|
|
896
|
-
};
|
|
897
|
-
const se_DetectorStateDefinition = (input, context) => {
|
|
898
|
-
return {
|
|
899
|
-
...(input.stateName != null && { stateName: input.stateName }),
|
|
900
|
-
...(input.timers != null && { timers: se_TimerDefinitions(input.timers, context) }),
|
|
901
|
-
...(input.variables != null && { variables: se_VariableDefinitions(input.variables, context) }),
|
|
902
|
-
};
|
|
903
|
-
};
|
|
904
|
-
const se_DisableAlarmActionRequest = (input, context) => {
|
|
905
|
-
return {
|
|
906
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
907
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
908
|
-
...(input.note != null && { note: input.note }),
|
|
909
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
910
|
-
};
|
|
911
|
-
};
|
|
912
|
-
const se_DisableAlarmActionRequests = (input, context) => {
|
|
913
|
-
return input
|
|
914
|
-
.filter((e) => e != null)
|
|
915
|
-
.map((entry) => {
|
|
916
|
-
return se_DisableAlarmActionRequest(entry, context);
|
|
917
|
-
});
|
|
918
|
-
};
|
|
919
|
-
const se_EnableAlarmActionRequest = (input, context) => {
|
|
920
|
-
return {
|
|
921
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
922
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
923
|
-
...(input.note != null && { note: input.note }),
|
|
924
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
925
|
-
};
|
|
926
|
-
};
|
|
927
|
-
const se_EnableAlarmActionRequests = (input, context) => {
|
|
928
|
-
return input
|
|
929
|
-
.filter((e) => e != null)
|
|
930
|
-
.map((entry) => {
|
|
931
|
-
return se_EnableAlarmActionRequest(entry, context);
|
|
932
|
-
});
|
|
933
|
-
};
|
|
934
859
|
const se_Message = (input, context) => {
|
|
935
|
-
return {
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
};
|
|
860
|
+
return (0, smithy_client_1.take)(input, {
|
|
861
|
+
inputName: [],
|
|
862
|
+
messageId: [],
|
|
863
|
+
payload: context.base64Encoder,
|
|
864
|
+
timestamp: smithy_client_1._json,
|
|
865
|
+
});
|
|
941
866
|
};
|
|
942
867
|
const se_Messages = (input, context) => {
|
|
943
868
|
return input
|
|
@@ -946,359 +871,84 @@ const se_Messages = (input, context) => {
|
|
|
946
871
|
return se_Message(entry, context);
|
|
947
872
|
});
|
|
948
873
|
};
|
|
949
|
-
const se_ResetAlarmActionRequest = (input, context) => {
|
|
950
|
-
return {
|
|
951
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
952
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
953
|
-
...(input.note != null && { note: input.note }),
|
|
954
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
955
|
-
};
|
|
956
|
-
};
|
|
957
|
-
const se_ResetAlarmActionRequests = (input, context) => {
|
|
958
|
-
return input
|
|
959
|
-
.filter((e) => e != null)
|
|
960
|
-
.map((entry) => {
|
|
961
|
-
return se_ResetAlarmActionRequest(entry, context);
|
|
962
|
-
});
|
|
963
|
-
};
|
|
964
|
-
const se_SnoozeAlarmActionRequest = (input, context) => {
|
|
965
|
-
return {
|
|
966
|
-
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
967
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
968
|
-
...(input.note != null && { note: input.note }),
|
|
969
|
-
...(input.requestId != null && { requestId: input.requestId }),
|
|
970
|
-
...(input.snoozeDuration != null && { snoozeDuration: input.snoozeDuration }),
|
|
971
|
-
};
|
|
972
|
-
};
|
|
973
|
-
const se_SnoozeAlarmActionRequests = (input, context) => {
|
|
974
|
-
return input
|
|
975
|
-
.filter((e) => e != null)
|
|
976
|
-
.map((entry) => {
|
|
977
|
-
return se_SnoozeAlarmActionRequest(entry, context);
|
|
978
|
-
});
|
|
979
|
-
};
|
|
980
|
-
const se_TimerDefinition = (input, context) => {
|
|
981
|
-
return {
|
|
982
|
-
...(input.name != null && { name: input.name }),
|
|
983
|
-
...(input.seconds != null && { seconds: input.seconds }),
|
|
984
|
-
};
|
|
985
|
-
};
|
|
986
|
-
const se_TimerDefinitions = (input, context) => {
|
|
987
|
-
return input
|
|
988
|
-
.filter((e) => e != null)
|
|
989
|
-
.map((entry) => {
|
|
990
|
-
return se_TimerDefinition(entry, context);
|
|
991
|
-
});
|
|
992
|
-
};
|
|
993
|
-
const se_TimestampValue = (input, context) => {
|
|
994
|
-
return {
|
|
995
|
-
...(input.timeInMillis != null && { timeInMillis: input.timeInMillis }),
|
|
996
|
-
};
|
|
997
|
-
};
|
|
998
|
-
const se_UpdateDetectorRequest = (input, context) => {
|
|
999
|
-
return {
|
|
1000
|
-
...(input.detectorModelName != null && { detectorModelName: input.detectorModelName }),
|
|
1001
|
-
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
1002
|
-
...(input.messageId != null && { messageId: input.messageId }),
|
|
1003
|
-
...(input.state != null && { state: se_DetectorStateDefinition(input.state, context) }),
|
|
1004
|
-
};
|
|
1005
|
-
};
|
|
1006
|
-
const se_UpdateDetectorRequests = (input, context) => {
|
|
1007
|
-
return input
|
|
1008
|
-
.filter((e) => e != null)
|
|
1009
|
-
.map((entry) => {
|
|
1010
|
-
return se_UpdateDetectorRequest(entry, context);
|
|
1011
|
-
});
|
|
1012
|
-
};
|
|
1013
|
-
const se_VariableDefinition = (input, context) => {
|
|
1014
|
-
return {
|
|
1015
|
-
...(input.name != null && { name: input.name }),
|
|
1016
|
-
...(input.value != null && { value: input.value }),
|
|
1017
|
-
};
|
|
1018
|
-
};
|
|
1019
|
-
const se_VariableDefinitions = (input, context) => {
|
|
1020
|
-
return input
|
|
1021
|
-
.filter((e) => e != null)
|
|
1022
|
-
.map((entry) => {
|
|
1023
|
-
return se_VariableDefinition(entry, context);
|
|
1024
|
-
});
|
|
1025
|
-
};
|
|
1026
|
-
const de_AcknowledgeActionConfiguration = (output, context) => {
|
|
1027
|
-
return {
|
|
1028
|
-
note: (0, smithy_client_1.expectString)(output.note),
|
|
1029
|
-
};
|
|
1030
|
-
};
|
|
1031
874
|
const de_Alarm = (output, context) => {
|
|
1032
|
-
return {
|
|
1033
|
-
alarmModelName:
|
|
1034
|
-
alarmModelVersion:
|
|
1035
|
-
alarmState:
|
|
1036
|
-
creationTime:
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1042
|
-
: undefined,
|
|
1043
|
-
severity: (0, smithy_client_1.expectInt32)(output.severity),
|
|
1044
|
-
};
|
|
1045
|
-
};
|
|
1046
|
-
const de_AlarmState = (output, context) => {
|
|
1047
|
-
return {
|
|
1048
|
-
customerAction: output.customerAction != null ? de_CustomerAction(output.customerAction, context) : undefined,
|
|
1049
|
-
ruleEvaluation: output.ruleEvaluation != null ? de_RuleEvaluation(output.ruleEvaluation, context) : undefined,
|
|
1050
|
-
stateName: (0, smithy_client_1.expectString)(output.stateName),
|
|
1051
|
-
systemEvent: output.systemEvent != null ? de_SystemEvent(output.systemEvent, context) : undefined,
|
|
1052
|
-
};
|
|
875
|
+
return (0, smithy_client_1.take)(output, {
|
|
876
|
+
alarmModelName: smithy_client_1.expectString,
|
|
877
|
+
alarmModelVersion: smithy_client_1.expectString,
|
|
878
|
+
alarmState: smithy_client_1._json,
|
|
879
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
880
|
+
keyValue: smithy_client_1.expectString,
|
|
881
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
882
|
+
severity: smithy_client_1.expectInt32,
|
|
883
|
+
});
|
|
1053
884
|
};
|
|
1054
885
|
const de_AlarmSummaries = (output, context) => {
|
|
1055
886
|
const retVal = (output || [])
|
|
1056
887
|
.filter((e) => e != null)
|
|
1057
888
|
.map((entry) => {
|
|
1058
|
-
if (entry === null) {
|
|
1059
|
-
return null;
|
|
1060
|
-
}
|
|
1061
889
|
return de_AlarmSummary(entry, context);
|
|
1062
890
|
});
|
|
1063
891
|
return retVal;
|
|
1064
892
|
};
|
|
1065
893
|
const de_AlarmSummary = (output, context) => {
|
|
1066
|
-
return {
|
|
1067
|
-
alarmModelName:
|
|
1068
|
-
alarmModelVersion:
|
|
1069
|
-
creationTime:
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
lastUpdateTime: output.lastUpdateTime != null
|
|
1074
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1075
|
-
: undefined,
|
|
1076
|
-
stateName: (0, smithy_client_1.expectString)(output.stateName),
|
|
1077
|
-
};
|
|
1078
|
-
};
|
|
1079
|
-
const de_BatchAlarmActionErrorEntries = (output, context) => {
|
|
1080
|
-
const retVal = (output || [])
|
|
1081
|
-
.filter((e) => e != null)
|
|
1082
|
-
.map((entry) => {
|
|
1083
|
-
if (entry === null) {
|
|
1084
|
-
return null;
|
|
1085
|
-
}
|
|
1086
|
-
return de_BatchAlarmActionErrorEntry(entry, context);
|
|
1087
|
-
});
|
|
1088
|
-
return retVal;
|
|
1089
|
-
};
|
|
1090
|
-
const de_BatchAlarmActionErrorEntry = (output, context) => {
|
|
1091
|
-
return {
|
|
1092
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
1093
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
1094
|
-
requestId: (0, smithy_client_1.expectString)(output.requestId),
|
|
1095
|
-
};
|
|
1096
|
-
};
|
|
1097
|
-
const de_BatchDeleteDetectorErrorEntries = (output, context) => {
|
|
1098
|
-
const retVal = (output || [])
|
|
1099
|
-
.filter((e) => e != null)
|
|
1100
|
-
.map((entry) => {
|
|
1101
|
-
if (entry === null) {
|
|
1102
|
-
return null;
|
|
1103
|
-
}
|
|
1104
|
-
return de_BatchDeleteDetectorErrorEntry(entry, context);
|
|
894
|
+
return (0, smithy_client_1.take)(output, {
|
|
895
|
+
alarmModelName: smithy_client_1.expectString,
|
|
896
|
+
alarmModelVersion: smithy_client_1.expectString,
|
|
897
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
898
|
+
keyValue: smithy_client_1.expectString,
|
|
899
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
900
|
+
stateName: smithy_client_1.expectString,
|
|
1105
901
|
});
|
|
1106
|
-
return retVal;
|
|
1107
|
-
};
|
|
1108
|
-
const de_BatchDeleteDetectorErrorEntry = (output, context) => {
|
|
1109
|
-
return {
|
|
1110
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
1111
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
1112
|
-
messageId: (0, smithy_client_1.expectString)(output.messageId),
|
|
1113
|
-
};
|
|
1114
|
-
};
|
|
1115
|
-
const de_BatchPutMessageErrorEntries = (output, context) => {
|
|
1116
|
-
const retVal = (output || [])
|
|
1117
|
-
.filter((e) => e != null)
|
|
1118
|
-
.map((entry) => {
|
|
1119
|
-
if (entry === null) {
|
|
1120
|
-
return null;
|
|
1121
|
-
}
|
|
1122
|
-
return de_BatchPutMessageErrorEntry(entry, context);
|
|
1123
|
-
});
|
|
1124
|
-
return retVal;
|
|
1125
|
-
};
|
|
1126
|
-
const de_BatchPutMessageErrorEntry = (output, context) => {
|
|
1127
|
-
return {
|
|
1128
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
1129
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
1130
|
-
messageId: (0, smithy_client_1.expectString)(output.messageId),
|
|
1131
|
-
};
|
|
1132
|
-
};
|
|
1133
|
-
const de_BatchUpdateDetectorErrorEntries = (output, context) => {
|
|
1134
|
-
const retVal = (output || [])
|
|
1135
|
-
.filter((e) => e != null)
|
|
1136
|
-
.map((entry) => {
|
|
1137
|
-
if (entry === null) {
|
|
1138
|
-
return null;
|
|
1139
|
-
}
|
|
1140
|
-
return de_BatchUpdateDetectorErrorEntry(entry, context);
|
|
1141
|
-
});
|
|
1142
|
-
return retVal;
|
|
1143
|
-
};
|
|
1144
|
-
const de_BatchUpdateDetectorErrorEntry = (output, context) => {
|
|
1145
|
-
return {
|
|
1146
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
1147
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
1148
|
-
messageId: (0, smithy_client_1.expectString)(output.messageId),
|
|
1149
|
-
};
|
|
1150
|
-
};
|
|
1151
|
-
const de_CustomerAction = (output, context) => {
|
|
1152
|
-
return {
|
|
1153
|
-
acknowledgeActionConfiguration: output.acknowledgeActionConfiguration != null
|
|
1154
|
-
? de_AcknowledgeActionConfiguration(output.acknowledgeActionConfiguration, context)
|
|
1155
|
-
: undefined,
|
|
1156
|
-
actionName: (0, smithy_client_1.expectString)(output.actionName),
|
|
1157
|
-
disableActionConfiguration: output.disableActionConfiguration != null
|
|
1158
|
-
? de_DisableActionConfiguration(output.disableActionConfiguration, context)
|
|
1159
|
-
: undefined,
|
|
1160
|
-
enableActionConfiguration: output.enableActionConfiguration != null
|
|
1161
|
-
? de_EnableActionConfiguration(output.enableActionConfiguration, context)
|
|
1162
|
-
: undefined,
|
|
1163
|
-
resetActionConfiguration: output.resetActionConfiguration != null
|
|
1164
|
-
? de_ResetActionConfiguration(output.resetActionConfiguration, context)
|
|
1165
|
-
: undefined,
|
|
1166
|
-
snoozeActionConfiguration: output.snoozeActionConfiguration != null
|
|
1167
|
-
? de_SnoozeActionConfiguration(output.snoozeActionConfiguration, context)
|
|
1168
|
-
: undefined,
|
|
1169
|
-
};
|
|
1170
902
|
};
|
|
1171
903
|
const de_Detector = (output, context) => {
|
|
1172
|
-
return {
|
|
1173
|
-
creationTime:
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1181
|
-
: undefined,
|
|
1182
|
-
state: output.state != null ? de_DetectorState(output.state, context) : undefined,
|
|
1183
|
-
};
|
|
904
|
+
return (0, smithy_client_1.take)(output, {
|
|
905
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
906
|
+
detectorModelName: smithy_client_1.expectString,
|
|
907
|
+
detectorModelVersion: smithy_client_1.expectString,
|
|
908
|
+
keyValue: smithy_client_1.expectString,
|
|
909
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
910
|
+
state: (_) => de_DetectorState(_, context),
|
|
911
|
+
});
|
|
1184
912
|
};
|
|
1185
913
|
const de_DetectorState = (output, context) => {
|
|
1186
|
-
return {
|
|
1187
|
-
stateName:
|
|
1188
|
-
timers:
|
|
1189
|
-
variables:
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
const de_DetectorStateSummary = (output, context) => {
|
|
1193
|
-
return {
|
|
1194
|
-
stateName: (0, smithy_client_1.expectString)(output.stateName),
|
|
1195
|
-
};
|
|
914
|
+
return (0, smithy_client_1.take)(output, {
|
|
915
|
+
stateName: smithy_client_1.expectString,
|
|
916
|
+
timers: (_) => de_Timers(_, context),
|
|
917
|
+
variables: smithy_client_1._json,
|
|
918
|
+
});
|
|
1196
919
|
};
|
|
1197
920
|
const de_DetectorSummaries = (output, context) => {
|
|
1198
921
|
const retVal = (output || [])
|
|
1199
922
|
.filter((e) => e != null)
|
|
1200
923
|
.map((entry) => {
|
|
1201
|
-
if (entry === null) {
|
|
1202
|
-
return null;
|
|
1203
|
-
}
|
|
1204
924
|
return de_DetectorSummary(entry, context);
|
|
1205
925
|
});
|
|
1206
926
|
return retVal;
|
|
1207
927
|
};
|
|
1208
928
|
const de_DetectorSummary = (output, context) => {
|
|
1209
|
-
return {
|
|
1210
|
-
creationTime:
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1218
|
-
: undefined,
|
|
1219
|
-
state: output.state != null ? de_DetectorStateSummary(output.state, context) : undefined,
|
|
1220
|
-
};
|
|
1221
|
-
};
|
|
1222
|
-
const de_DisableActionConfiguration = (output, context) => {
|
|
1223
|
-
return {
|
|
1224
|
-
note: (0, smithy_client_1.expectString)(output.note),
|
|
1225
|
-
};
|
|
1226
|
-
};
|
|
1227
|
-
const de_EnableActionConfiguration = (output, context) => {
|
|
1228
|
-
return {
|
|
1229
|
-
note: (0, smithy_client_1.expectString)(output.note),
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
const de_ResetActionConfiguration = (output, context) => {
|
|
1233
|
-
return {
|
|
1234
|
-
note: (0, smithy_client_1.expectString)(output.note),
|
|
1235
|
-
};
|
|
1236
|
-
};
|
|
1237
|
-
const de_RuleEvaluation = (output, context) => {
|
|
1238
|
-
return {
|
|
1239
|
-
simpleRuleEvaluation: output.simpleRuleEvaluation != null ? de_SimpleRuleEvaluation(output.simpleRuleEvaluation, context) : undefined,
|
|
1240
|
-
};
|
|
1241
|
-
};
|
|
1242
|
-
const de_SimpleRuleEvaluation = (output, context) => {
|
|
1243
|
-
return {
|
|
1244
|
-
inputPropertyValue: (0, smithy_client_1.expectString)(output.inputPropertyValue),
|
|
1245
|
-
operator: (0, smithy_client_1.expectString)(output.operator),
|
|
1246
|
-
thresholdValue: (0, smithy_client_1.expectString)(output.thresholdValue),
|
|
1247
|
-
};
|
|
1248
|
-
};
|
|
1249
|
-
const de_SnoozeActionConfiguration = (output, context) => {
|
|
1250
|
-
return {
|
|
1251
|
-
note: (0, smithy_client_1.expectString)(output.note),
|
|
1252
|
-
snoozeDuration: (0, smithy_client_1.expectInt32)(output.snoozeDuration),
|
|
1253
|
-
};
|
|
1254
|
-
};
|
|
1255
|
-
const de_StateChangeConfiguration = (output, context) => {
|
|
1256
|
-
return {
|
|
1257
|
-
triggerType: (0, smithy_client_1.expectString)(output.triggerType),
|
|
1258
|
-
};
|
|
1259
|
-
};
|
|
1260
|
-
const de_SystemEvent = (output, context) => {
|
|
1261
|
-
return {
|
|
1262
|
-
eventType: (0, smithy_client_1.expectString)(output.eventType),
|
|
1263
|
-
stateChangeConfiguration: output.stateChangeConfiguration != null
|
|
1264
|
-
? de_StateChangeConfiguration(output.stateChangeConfiguration, context)
|
|
1265
|
-
: undefined,
|
|
1266
|
-
};
|
|
929
|
+
return (0, smithy_client_1.take)(output, {
|
|
930
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
931
|
+
detectorModelName: smithy_client_1.expectString,
|
|
932
|
+
detectorModelVersion: smithy_client_1.expectString,
|
|
933
|
+
keyValue: smithy_client_1.expectString,
|
|
934
|
+
lastUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
935
|
+
state: smithy_client_1._json,
|
|
936
|
+
});
|
|
1267
937
|
};
|
|
1268
938
|
const de_Timer = (output, context) => {
|
|
1269
|
-
return {
|
|
1270
|
-
name:
|
|
1271
|
-
timestamp:
|
|
1272
|
-
};
|
|
939
|
+
return (0, smithy_client_1.take)(output, {
|
|
940
|
+
name: smithy_client_1.expectString,
|
|
941
|
+
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
942
|
+
});
|
|
1273
943
|
};
|
|
1274
944
|
const de_Timers = (output, context) => {
|
|
1275
945
|
const retVal = (output || [])
|
|
1276
946
|
.filter((e) => e != null)
|
|
1277
947
|
.map((entry) => {
|
|
1278
|
-
if (entry === null) {
|
|
1279
|
-
return null;
|
|
1280
|
-
}
|
|
1281
948
|
return de_Timer(entry, context);
|
|
1282
949
|
});
|
|
1283
950
|
return retVal;
|
|
1284
951
|
};
|
|
1285
|
-
const de_Variable = (output, context) => {
|
|
1286
|
-
return {
|
|
1287
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1288
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
1289
|
-
};
|
|
1290
|
-
};
|
|
1291
|
-
const de_Variables = (output, context) => {
|
|
1292
|
-
const retVal = (output || [])
|
|
1293
|
-
.filter((e) => e != null)
|
|
1294
|
-
.map((entry) => {
|
|
1295
|
-
if (entry === null) {
|
|
1296
|
-
return null;
|
|
1297
|
-
}
|
|
1298
|
-
return de_Variable(entry, context);
|
|
1299
|
-
});
|
|
1300
|
-
return retVal;
|
|
1301
|
-
};
|
|
1302
952
|
const deserializeMetadata = (output) => ({
|
|
1303
953
|
httpStatusCode: output.statusCode,
|
|
1304
954
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|