@aws-sdk/client-iot-events-data 3.141.0 → 3.150.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.
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { IoTEventsDataServiceException as __BaseException } from "../models/IoTEventsDataServiceException";
5
5
  import { InternalFailureException, InvalidRequestException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
6
6
  export var serializeAws_restJson1BatchAcknowledgeAlarmCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -210,7 +210,7 @@ export var serializeAws_restJson1BatchUpdateDetectorCommand = function (input, c
210
210
  });
211
211
  }); };
212
212
  export var serializeAws_restJson1DescribeAlarmCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
213
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
213
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
214
214
  return __generator(this, function (_c) {
215
215
  switch (_c.label) {
216
216
  case 0: return [4, context.endpoint()];
@@ -218,17 +218,10 @@ export var serializeAws_restJson1DescribeAlarmCommand = function (input, context
218
218
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
219
219
  headers = {};
220
220
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/{alarmModelName}/keyValues";
221
- if (input.alarmModelName !== undefined) {
222
- labelValue = input.alarmModelName;
223
- if (labelValue.length <= 0) {
224
- throw new Error("Empty value provided for input HTTP label: alarmModelName.");
225
- }
226
- resolvedPath = resolvedPath.replace("{alarmModelName}", __extendedEncodeURIComponent(labelValue));
227
- }
228
- else {
229
- throw new Error("No value provided for input HTTP label: alarmModelName.");
230
- }
231
- query = __assign({}, (input.keyValue !== undefined && { keyValue: input.keyValue }));
221
+ resolvedPath = __resolvedPath(resolvedPath, input, "alarmModelName", function () { return input.alarmModelName; }, "{alarmModelName}", false);
222
+ query = map({
223
+ keyValue: [, input.keyValue],
224
+ });
232
225
  return [2, new __HttpRequest({
233
226
  protocol: protocol,
234
227
  hostname: hostname,
@@ -243,7 +236,7 @@ export var serializeAws_restJson1DescribeAlarmCommand = function (input, context
243
236
  });
244
237
  }); };
245
238
  export var serializeAws_restJson1DescribeDetectorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
246
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
239
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
247
240
  return __generator(this, function (_c) {
248
241
  switch (_c.label) {
249
242
  case 0: return [4, context.endpoint()];
@@ -251,17 +244,10 @@ export var serializeAws_restJson1DescribeDetectorCommand = function (input, cont
251
244
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
252
245
  headers = {};
253
246
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors/{detectorModelName}/keyValues";
254
- if (input.detectorModelName !== undefined) {
255
- labelValue = input.detectorModelName;
256
- if (labelValue.length <= 0) {
257
- throw new Error("Empty value provided for input HTTP label: detectorModelName.");
258
- }
259
- resolvedPath = resolvedPath.replace("{detectorModelName}", __extendedEncodeURIComponent(labelValue));
260
- }
261
- else {
262
- throw new Error("No value provided for input HTTP label: detectorModelName.");
263
- }
264
- query = __assign({}, (input.keyValue !== undefined && { keyValue: input.keyValue }));
247
+ resolvedPath = __resolvedPath(resolvedPath, input, "detectorModelName", function () { return input.detectorModelName; }, "{detectorModelName}", false);
248
+ query = map({
249
+ keyValue: [, input.keyValue],
250
+ });
265
251
  return [2, new __HttpRequest({
266
252
  protocol: protocol,
267
253
  hostname: hostname,
@@ -276,7 +262,7 @@ export var serializeAws_restJson1DescribeDetectorCommand = function (input, cont
276
262
  });
277
263
  }); };
278
264
  export var serializeAws_restJson1ListAlarmsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
279
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
265
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
280
266
  return __generator(this, function (_c) {
281
267
  switch (_c.label) {
282
268
  case 0: return [4, context.endpoint()];
@@ -284,17 +270,11 @@ export var serializeAws_restJson1ListAlarmsCommand = function (input, context) {
284
270
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
285
271
  headers = {};
286
272
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/{alarmModelName}";
287
- if (input.alarmModelName !== undefined) {
288
- labelValue = input.alarmModelName;
289
- if (labelValue.length <= 0) {
290
- throw new Error("Empty value provided for input HTTP label: alarmModelName.");
291
- }
292
- resolvedPath = resolvedPath.replace("{alarmModelName}", __extendedEncodeURIComponent(labelValue));
293
- }
294
- else {
295
- throw new Error("No value provided for input HTTP label: alarmModelName.");
296
- }
297
- query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
273
+ resolvedPath = __resolvedPath(resolvedPath, input, "alarmModelName", function () { return input.alarmModelName; }, "{alarmModelName}", false);
274
+ query = map({
275
+ nextToken: [, input.nextToken],
276
+ maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
277
+ });
298
278
  return [2, new __HttpRequest({
299
279
  protocol: protocol,
300
280
  hostname: hostname,
@@ -309,7 +289,7 @@ export var serializeAws_restJson1ListAlarmsCommand = function (input, context) {
309
289
  });
310
290
  }); };
311
291
  export var serializeAws_restJson1ListDetectorsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
312
- var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
292
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
313
293
  return __generator(this, function (_c) {
314
294
  switch (_c.label) {
315
295
  case 0: return [4, context.endpoint()];
@@ -317,17 +297,12 @@ export var serializeAws_restJson1ListDetectorsCommand = function (input, context
317
297
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
318
298
  headers = {};
319
299
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors/{detectorModelName}";
320
- if (input.detectorModelName !== undefined) {
321
- labelValue = input.detectorModelName;
322
- if (labelValue.length <= 0) {
323
- throw new Error("Empty value provided for input HTTP label: detectorModelName.");
324
- }
325
- resolvedPath = resolvedPath.replace("{detectorModelName}", __extendedEncodeURIComponent(labelValue));
326
- }
327
- else {
328
- throw new Error("No value provided for input HTTP label: detectorModelName.");
329
- }
330
- query = __assign(__assign(__assign({}, (input.stateName !== undefined && { stateName: input.stateName })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
300
+ resolvedPath = __resolvedPath(resolvedPath, input, "detectorModelName", function () { return input.detectorModelName; }, "{detectorModelName}", false);
301
+ query = map({
302
+ stateName: [, input.stateName],
303
+ nextToken: [, input.nextToken],
304
+ maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
305
+ });
331
306
  return [2, new __HttpRequest({
332
307
  protocol: protocol,
333
308
  hostname: hostname,
@@ -349,24 +324,23 @@ export var deserializeAws_restJson1BatchAcknowledgeAlarmCommand = function (outp
349
324
  if (output.statusCode !== 202 && output.statusCode >= 300) {
350
325
  return [2, deserializeAws_restJson1BatchAcknowledgeAlarmCommandError(output, context)];
351
326
  }
352
- contents = {
327
+ contents = map({
353
328
  $metadata: deserializeMetadata(output),
354
- errorEntries: undefined,
355
- };
329
+ });
356
330
  _a = __expectNonNull;
357
331
  _b = __expectObject;
358
332
  return [4, parseBody(output.body, context)];
359
333
  case 1:
360
334
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
361
- if (data.errorEntries !== undefined && data.errorEntries !== null) {
335
+ if (data.errorEntries != null) {
362
336
  contents.errorEntries = deserializeAws_restJson1BatchAlarmActionErrorEntries(data.errorEntries, context);
363
337
  }
364
- return [2, Promise.resolve(contents)];
338
+ return [2, contents];
365
339
  }
366
340
  });
367
341
  }); };
368
342
  var deserializeAws_restJson1BatchAcknowledgeAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
369
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
343
+ var parsedOutput, _a, errorCode, _b, parsedBody;
370
344
  var _c;
371
345
  return __generator(this, function (_d) {
372
346
  switch (_d.label) {
@@ -399,14 +373,14 @@ var deserializeAws_restJson1BatchAcknowledgeAlarmCommandError = function (output
399
373
  case 9: throw _d.sent();
400
374
  case 10:
401
375
  parsedBody = parsedOutput.body;
402
- $metadata = deserializeMetadata(output);
403
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
404
- response = new __BaseException({
405
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
406
- $fault: "client",
407
- $metadata: $metadata,
376
+ throwDefaultError({
377
+ output: output,
378
+ parsedBody: parsedBody,
379
+ exceptionCtor: __BaseException,
380
+ errorCode: errorCode,
408
381
  });
409
- throw __decorateServiceException(response, parsedBody);
382
+ _d.label = 11;
383
+ case 11: return [2];
410
384
  }
411
385
  });
412
386
  }); };
@@ -418,24 +392,23 @@ export var deserializeAws_restJson1BatchDeleteDetectorCommand = function (output
418
392
  if (output.statusCode !== 200 && output.statusCode >= 300) {
419
393
  return [2, deserializeAws_restJson1BatchDeleteDetectorCommandError(output, context)];
420
394
  }
421
- contents = {
395
+ contents = map({
422
396
  $metadata: deserializeMetadata(output),
423
- batchDeleteDetectorErrorEntries: undefined,
424
- };
397
+ });
425
398
  _a = __expectNonNull;
426
399
  _b = __expectObject;
427
400
  return [4, parseBody(output.body, context)];
428
401
  case 1:
429
402
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
430
- if (data.batchDeleteDetectorErrorEntries !== undefined && data.batchDeleteDetectorErrorEntries !== null) {
403
+ if (data.batchDeleteDetectorErrorEntries != null) {
431
404
  contents.batchDeleteDetectorErrorEntries = deserializeAws_restJson1BatchDeleteDetectorErrorEntries(data.batchDeleteDetectorErrorEntries, context);
432
405
  }
433
- return [2, Promise.resolve(contents)];
406
+ return [2, contents];
434
407
  }
435
408
  });
436
409
  }); };
437
410
  var deserializeAws_restJson1BatchDeleteDetectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
438
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
411
+ var parsedOutput, _a, errorCode, _b, parsedBody;
439
412
  var _c;
440
413
  return __generator(this, function (_d) {
441
414
  switch (_d.label) {
@@ -468,14 +441,14 @@ var deserializeAws_restJson1BatchDeleteDetectorCommandError = function (output,
468
441
  case 9: throw _d.sent();
469
442
  case 10:
470
443
  parsedBody = parsedOutput.body;
471
- $metadata = deserializeMetadata(output);
472
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
473
- response = new __BaseException({
474
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
475
- $fault: "client",
476
- $metadata: $metadata,
444
+ throwDefaultError({
445
+ output: output,
446
+ parsedBody: parsedBody,
447
+ exceptionCtor: __BaseException,
448
+ errorCode: errorCode,
477
449
  });
478
- throw __decorateServiceException(response, parsedBody);
450
+ _d.label = 11;
451
+ case 11: return [2];
479
452
  }
480
453
  });
481
454
  }); };
@@ -487,24 +460,23 @@ export var deserializeAws_restJson1BatchDisableAlarmCommand = function (output,
487
460
  if (output.statusCode !== 202 && output.statusCode >= 300) {
488
461
  return [2, deserializeAws_restJson1BatchDisableAlarmCommandError(output, context)];
489
462
  }
490
- contents = {
463
+ contents = map({
491
464
  $metadata: deserializeMetadata(output),
492
- errorEntries: undefined,
493
- };
465
+ });
494
466
  _a = __expectNonNull;
495
467
  _b = __expectObject;
496
468
  return [4, parseBody(output.body, context)];
497
469
  case 1:
498
470
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
499
- if (data.errorEntries !== undefined && data.errorEntries !== null) {
471
+ if (data.errorEntries != null) {
500
472
  contents.errorEntries = deserializeAws_restJson1BatchAlarmActionErrorEntries(data.errorEntries, context);
501
473
  }
502
- return [2, Promise.resolve(contents)];
474
+ return [2, contents];
503
475
  }
504
476
  });
505
477
  }); };
506
478
  var deserializeAws_restJson1BatchDisableAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
507
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
479
+ var parsedOutput, _a, errorCode, _b, parsedBody;
508
480
  var _c;
509
481
  return __generator(this, function (_d) {
510
482
  switch (_d.label) {
@@ -537,14 +509,14 @@ var deserializeAws_restJson1BatchDisableAlarmCommandError = function (output, co
537
509
  case 9: throw _d.sent();
538
510
  case 10:
539
511
  parsedBody = parsedOutput.body;
540
- $metadata = deserializeMetadata(output);
541
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
542
- response = new __BaseException({
543
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
544
- $fault: "client",
545
- $metadata: $metadata,
512
+ throwDefaultError({
513
+ output: output,
514
+ parsedBody: parsedBody,
515
+ exceptionCtor: __BaseException,
516
+ errorCode: errorCode,
546
517
  });
547
- throw __decorateServiceException(response, parsedBody);
518
+ _d.label = 11;
519
+ case 11: return [2];
548
520
  }
549
521
  });
550
522
  }); };
@@ -556,24 +528,23 @@ export var deserializeAws_restJson1BatchEnableAlarmCommand = function (output, c
556
528
  if (output.statusCode !== 202 && output.statusCode >= 300) {
557
529
  return [2, deserializeAws_restJson1BatchEnableAlarmCommandError(output, context)];
558
530
  }
559
- contents = {
531
+ contents = map({
560
532
  $metadata: deserializeMetadata(output),
561
- errorEntries: undefined,
562
- };
533
+ });
563
534
  _a = __expectNonNull;
564
535
  _b = __expectObject;
565
536
  return [4, parseBody(output.body, context)];
566
537
  case 1:
567
538
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
568
- if (data.errorEntries !== undefined && data.errorEntries !== null) {
539
+ if (data.errorEntries != null) {
569
540
  contents.errorEntries = deserializeAws_restJson1BatchAlarmActionErrorEntries(data.errorEntries, context);
570
541
  }
571
- return [2, Promise.resolve(contents)];
542
+ return [2, contents];
572
543
  }
573
544
  });
574
545
  }); };
575
546
  var deserializeAws_restJson1BatchEnableAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
576
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
547
+ var parsedOutput, _a, errorCode, _b, parsedBody;
577
548
  var _c;
578
549
  return __generator(this, function (_d) {
579
550
  switch (_d.label) {
@@ -606,14 +577,14 @@ var deserializeAws_restJson1BatchEnableAlarmCommandError = function (output, con
606
577
  case 9: throw _d.sent();
607
578
  case 10:
608
579
  parsedBody = parsedOutput.body;
609
- $metadata = deserializeMetadata(output);
610
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
611
- response = new __BaseException({
612
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
613
- $fault: "client",
614
- $metadata: $metadata,
580
+ throwDefaultError({
581
+ output: output,
582
+ parsedBody: parsedBody,
583
+ exceptionCtor: __BaseException,
584
+ errorCode: errorCode,
615
585
  });
616
- throw __decorateServiceException(response, parsedBody);
586
+ _d.label = 11;
587
+ case 11: return [2];
617
588
  }
618
589
  });
619
590
  }); };
@@ -625,24 +596,23 @@ export var deserializeAws_restJson1BatchPutMessageCommand = function (output, co
625
596
  if (output.statusCode !== 200 && output.statusCode >= 300) {
626
597
  return [2, deserializeAws_restJson1BatchPutMessageCommandError(output, context)];
627
598
  }
628
- contents = {
599
+ contents = map({
629
600
  $metadata: deserializeMetadata(output),
630
- BatchPutMessageErrorEntries: undefined,
631
- };
601
+ });
632
602
  _a = __expectNonNull;
633
603
  _b = __expectObject;
634
604
  return [4, parseBody(output.body, context)];
635
605
  case 1:
636
606
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
637
- if (data.BatchPutMessageErrorEntries !== undefined && data.BatchPutMessageErrorEntries !== null) {
607
+ if (data.BatchPutMessageErrorEntries != null) {
638
608
  contents.BatchPutMessageErrorEntries = deserializeAws_restJson1BatchPutMessageErrorEntries(data.BatchPutMessageErrorEntries, context);
639
609
  }
640
- return [2, Promise.resolve(contents)];
610
+ return [2, contents];
641
611
  }
642
612
  });
643
613
  }); };
644
614
  var deserializeAws_restJson1BatchPutMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
645
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
615
+ var parsedOutput, _a, errorCode, _b, parsedBody;
646
616
  var _c;
647
617
  return __generator(this, function (_d) {
648
618
  switch (_d.label) {
@@ -675,14 +645,14 @@ var deserializeAws_restJson1BatchPutMessageCommandError = function (output, cont
675
645
  case 9: throw _d.sent();
676
646
  case 10:
677
647
  parsedBody = parsedOutput.body;
678
- $metadata = deserializeMetadata(output);
679
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
680
- response = new __BaseException({
681
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
682
- $fault: "client",
683
- $metadata: $metadata,
648
+ throwDefaultError({
649
+ output: output,
650
+ parsedBody: parsedBody,
651
+ exceptionCtor: __BaseException,
652
+ errorCode: errorCode,
684
653
  });
685
- throw __decorateServiceException(response, parsedBody);
654
+ _d.label = 11;
655
+ case 11: return [2];
686
656
  }
687
657
  });
688
658
  }); };
@@ -694,24 +664,23 @@ export var deserializeAws_restJson1BatchResetAlarmCommand = function (output, co
694
664
  if (output.statusCode !== 202 && output.statusCode >= 300) {
695
665
  return [2, deserializeAws_restJson1BatchResetAlarmCommandError(output, context)];
696
666
  }
697
- contents = {
667
+ contents = map({
698
668
  $metadata: deserializeMetadata(output),
699
- errorEntries: undefined,
700
- };
669
+ });
701
670
  _a = __expectNonNull;
702
671
  _b = __expectObject;
703
672
  return [4, parseBody(output.body, context)];
704
673
  case 1:
705
674
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
706
- if (data.errorEntries !== undefined && data.errorEntries !== null) {
675
+ if (data.errorEntries != null) {
707
676
  contents.errorEntries = deserializeAws_restJson1BatchAlarmActionErrorEntries(data.errorEntries, context);
708
677
  }
709
- return [2, Promise.resolve(contents)];
678
+ return [2, contents];
710
679
  }
711
680
  });
712
681
  }); };
713
682
  var deserializeAws_restJson1BatchResetAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
714
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
683
+ var parsedOutput, _a, errorCode, _b, parsedBody;
715
684
  var _c;
716
685
  return __generator(this, function (_d) {
717
686
  switch (_d.label) {
@@ -744,14 +713,14 @@ var deserializeAws_restJson1BatchResetAlarmCommandError = function (output, cont
744
713
  case 9: throw _d.sent();
745
714
  case 10:
746
715
  parsedBody = parsedOutput.body;
747
- $metadata = deserializeMetadata(output);
748
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
749
- response = new __BaseException({
750
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
751
- $fault: "client",
752
- $metadata: $metadata,
716
+ throwDefaultError({
717
+ output: output,
718
+ parsedBody: parsedBody,
719
+ exceptionCtor: __BaseException,
720
+ errorCode: errorCode,
753
721
  });
754
- throw __decorateServiceException(response, parsedBody);
722
+ _d.label = 11;
723
+ case 11: return [2];
755
724
  }
756
725
  });
757
726
  }); };
@@ -763,24 +732,23 @@ export var deserializeAws_restJson1BatchSnoozeAlarmCommand = function (output, c
763
732
  if (output.statusCode !== 202 && output.statusCode >= 300) {
764
733
  return [2, deserializeAws_restJson1BatchSnoozeAlarmCommandError(output, context)];
765
734
  }
766
- contents = {
735
+ contents = map({
767
736
  $metadata: deserializeMetadata(output),
768
- errorEntries: undefined,
769
- };
737
+ });
770
738
  _a = __expectNonNull;
771
739
  _b = __expectObject;
772
740
  return [4, parseBody(output.body, context)];
773
741
  case 1:
774
742
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
775
- if (data.errorEntries !== undefined && data.errorEntries !== null) {
743
+ if (data.errorEntries != null) {
776
744
  contents.errorEntries = deserializeAws_restJson1BatchAlarmActionErrorEntries(data.errorEntries, context);
777
745
  }
778
- return [2, Promise.resolve(contents)];
746
+ return [2, contents];
779
747
  }
780
748
  });
781
749
  }); };
782
750
  var deserializeAws_restJson1BatchSnoozeAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
783
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
751
+ var parsedOutput, _a, errorCode, _b, parsedBody;
784
752
  var _c;
785
753
  return __generator(this, function (_d) {
786
754
  switch (_d.label) {
@@ -813,14 +781,14 @@ var deserializeAws_restJson1BatchSnoozeAlarmCommandError = function (output, con
813
781
  case 9: throw _d.sent();
814
782
  case 10:
815
783
  parsedBody = parsedOutput.body;
816
- $metadata = deserializeMetadata(output);
817
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
818
- response = new __BaseException({
819
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
820
- $fault: "client",
821
- $metadata: $metadata,
784
+ throwDefaultError({
785
+ output: output,
786
+ parsedBody: parsedBody,
787
+ exceptionCtor: __BaseException,
788
+ errorCode: errorCode,
822
789
  });
823
- throw __decorateServiceException(response, parsedBody);
790
+ _d.label = 11;
791
+ case 11: return [2];
824
792
  }
825
793
  });
826
794
  }); };
@@ -832,24 +800,23 @@ export var deserializeAws_restJson1BatchUpdateDetectorCommand = function (output
832
800
  if (output.statusCode !== 200 && output.statusCode >= 300) {
833
801
  return [2, deserializeAws_restJson1BatchUpdateDetectorCommandError(output, context)];
834
802
  }
835
- contents = {
803
+ contents = map({
836
804
  $metadata: deserializeMetadata(output),
837
- batchUpdateDetectorErrorEntries: undefined,
838
- };
805
+ });
839
806
  _a = __expectNonNull;
840
807
  _b = __expectObject;
841
808
  return [4, parseBody(output.body, context)];
842
809
  case 1:
843
810
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
844
- if (data.batchUpdateDetectorErrorEntries !== undefined && data.batchUpdateDetectorErrorEntries !== null) {
811
+ if (data.batchUpdateDetectorErrorEntries != null) {
845
812
  contents.batchUpdateDetectorErrorEntries = deserializeAws_restJson1BatchUpdateDetectorErrorEntries(data.batchUpdateDetectorErrorEntries, context);
846
813
  }
847
- return [2, Promise.resolve(contents)];
814
+ return [2, contents];
848
815
  }
849
816
  });
850
817
  }); };
851
818
  var deserializeAws_restJson1BatchUpdateDetectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
852
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
819
+ var parsedOutput, _a, errorCode, _b, parsedBody;
853
820
  var _c;
854
821
  return __generator(this, function (_d) {
855
822
  switch (_d.label) {
@@ -882,14 +849,14 @@ var deserializeAws_restJson1BatchUpdateDetectorCommandError = function (output,
882
849
  case 9: throw _d.sent();
883
850
  case 10:
884
851
  parsedBody = parsedOutput.body;
885
- $metadata = deserializeMetadata(output);
886
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
887
- response = new __BaseException({
888
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
889
- $fault: "client",
890
- $metadata: $metadata,
852
+ throwDefaultError({
853
+ output: output,
854
+ parsedBody: parsedBody,
855
+ exceptionCtor: __BaseException,
856
+ errorCode: errorCode,
891
857
  });
892
- throw __decorateServiceException(response, parsedBody);
858
+ _d.label = 11;
859
+ case 11: return [2];
893
860
  }
894
861
  });
895
862
  }); };
@@ -901,24 +868,23 @@ export var deserializeAws_restJson1DescribeAlarmCommand = function (output, cont
901
868
  if (output.statusCode !== 200 && output.statusCode >= 300) {
902
869
  return [2, deserializeAws_restJson1DescribeAlarmCommandError(output, context)];
903
870
  }
904
- contents = {
871
+ contents = map({
905
872
  $metadata: deserializeMetadata(output),
906
- alarm: undefined,
907
- };
873
+ });
908
874
  _a = __expectNonNull;
909
875
  _b = __expectObject;
910
876
  return [4, parseBody(output.body, context)];
911
877
  case 1:
912
878
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
913
- if (data.alarm !== undefined && data.alarm !== null) {
879
+ if (data.alarm != null) {
914
880
  contents.alarm = deserializeAws_restJson1Alarm(data.alarm, context);
915
881
  }
916
- return [2, Promise.resolve(contents)];
882
+ return [2, contents];
917
883
  }
918
884
  });
919
885
  }); };
920
886
  var deserializeAws_restJson1DescribeAlarmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
921
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
887
+ var parsedOutput, _a, errorCode, _b, parsedBody;
922
888
  var _c;
923
889
  return __generator(this, function (_d) {
924
890
  switch (_d.label) {
@@ -955,14 +921,14 @@ var deserializeAws_restJson1DescribeAlarmCommandError = function (output, contex
955
921
  case 11: throw _d.sent();
956
922
  case 12:
957
923
  parsedBody = parsedOutput.body;
958
- $metadata = deserializeMetadata(output);
959
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
960
- response = new __BaseException({
961
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
962
- $fault: "client",
963
- $metadata: $metadata,
924
+ throwDefaultError({
925
+ output: output,
926
+ parsedBody: parsedBody,
927
+ exceptionCtor: __BaseException,
928
+ errorCode: errorCode,
964
929
  });
965
- throw __decorateServiceException(response, parsedBody);
930
+ _d.label = 13;
931
+ case 13: return [2];
966
932
  }
967
933
  });
968
934
  }); };
@@ -974,24 +940,23 @@ export var deserializeAws_restJson1DescribeDetectorCommand = function (output, c
974
940
  if (output.statusCode !== 200 && output.statusCode >= 300) {
975
941
  return [2, deserializeAws_restJson1DescribeDetectorCommandError(output, context)];
976
942
  }
977
- contents = {
943
+ contents = map({
978
944
  $metadata: deserializeMetadata(output),
979
- detector: undefined,
980
- };
945
+ });
981
946
  _a = __expectNonNull;
982
947
  _b = __expectObject;
983
948
  return [4, parseBody(output.body, context)];
984
949
  case 1:
985
950
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
986
- if (data.detector !== undefined && data.detector !== null) {
951
+ if (data.detector != null) {
987
952
  contents.detector = deserializeAws_restJson1Detector(data.detector, context);
988
953
  }
989
- return [2, Promise.resolve(contents)];
954
+ return [2, contents];
990
955
  }
991
956
  });
992
957
  }); };
993
958
  var deserializeAws_restJson1DescribeDetectorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
994
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
959
+ var parsedOutput, _a, errorCode, _b, parsedBody;
995
960
  var _c;
996
961
  return __generator(this, function (_d) {
997
962
  switch (_d.label) {
@@ -1028,14 +993,14 @@ var deserializeAws_restJson1DescribeDetectorCommandError = function (output, con
1028
993
  case 11: throw _d.sent();
1029
994
  case 12:
1030
995
  parsedBody = parsedOutput.body;
1031
- $metadata = deserializeMetadata(output);
1032
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1033
- response = new __BaseException({
1034
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1035
- $fault: "client",
1036
- $metadata: $metadata,
996
+ throwDefaultError({
997
+ output: output,
998
+ parsedBody: parsedBody,
999
+ exceptionCtor: __BaseException,
1000
+ errorCode: errorCode,
1037
1001
  });
1038
- throw __decorateServiceException(response, parsedBody);
1002
+ _d.label = 13;
1003
+ case 13: return [2];
1039
1004
  }
1040
1005
  });
1041
1006
  }); };
@@ -1047,28 +1012,26 @@ export var deserializeAws_restJson1ListAlarmsCommand = function (output, context
1047
1012
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1048
1013
  return [2, deserializeAws_restJson1ListAlarmsCommandError(output, context)];
1049
1014
  }
1050
- contents = {
1015
+ contents = map({
1051
1016
  $metadata: deserializeMetadata(output),
1052
- alarmSummaries: undefined,
1053
- nextToken: undefined,
1054
- };
1017
+ });
1055
1018
  _a = __expectNonNull;
1056
1019
  _b = __expectObject;
1057
1020
  return [4, parseBody(output.body, context)];
1058
1021
  case 1:
1059
1022
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1060
- if (data.alarmSummaries !== undefined && data.alarmSummaries !== null) {
1023
+ if (data.alarmSummaries != null) {
1061
1024
  contents.alarmSummaries = deserializeAws_restJson1AlarmSummaries(data.alarmSummaries, context);
1062
1025
  }
1063
- if (data.nextToken !== undefined && data.nextToken !== null) {
1026
+ if (data.nextToken != null) {
1064
1027
  contents.nextToken = __expectString(data.nextToken);
1065
1028
  }
1066
- return [2, Promise.resolve(contents)];
1029
+ return [2, contents];
1067
1030
  }
1068
1031
  });
1069
1032
  }); };
1070
1033
  var deserializeAws_restJson1ListAlarmsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1071
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1034
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1072
1035
  var _c;
1073
1036
  return __generator(this, function (_d) {
1074
1037
  switch (_d.label) {
@@ -1105,14 +1068,14 @@ var deserializeAws_restJson1ListAlarmsCommandError = function (output, context)
1105
1068
  case 11: throw _d.sent();
1106
1069
  case 12:
1107
1070
  parsedBody = parsedOutput.body;
1108
- $metadata = deserializeMetadata(output);
1109
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1110
- response = new __BaseException({
1111
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1112
- $fault: "client",
1113
- $metadata: $metadata,
1071
+ throwDefaultError({
1072
+ output: output,
1073
+ parsedBody: parsedBody,
1074
+ exceptionCtor: __BaseException,
1075
+ errorCode: errorCode,
1114
1076
  });
1115
- throw __decorateServiceException(response, parsedBody);
1077
+ _d.label = 13;
1078
+ case 13: return [2];
1116
1079
  }
1117
1080
  });
1118
1081
  }); };
@@ -1124,28 +1087,26 @@ export var deserializeAws_restJson1ListDetectorsCommand = function (output, cont
1124
1087
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1125
1088
  return [2, deserializeAws_restJson1ListDetectorsCommandError(output, context)];
1126
1089
  }
1127
- contents = {
1090
+ contents = map({
1128
1091
  $metadata: deserializeMetadata(output),
1129
- detectorSummaries: undefined,
1130
- nextToken: undefined,
1131
- };
1092
+ });
1132
1093
  _a = __expectNonNull;
1133
1094
  _b = __expectObject;
1134
1095
  return [4, parseBody(output.body, context)];
1135
1096
  case 1:
1136
1097
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1137
- if (data.detectorSummaries !== undefined && data.detectorSummaries !== null) {
1098
+ if (data.detectorSummaries != null) {
1138
1099
  contents.detectorSummaries = deserializeAws_restJson1DetectorSummaries(data.detectorSummaries, context);
1139
1100
  }
1140
- if (data.nextToken !== undefined && data.nextToken !== null) {
1101
+ if (data.nextToken != null) {
1141
1102
  contents.nextToken = __expectString(data.nextToken);
1142
1103
  }
1143
- return [2, Promise.resolve(contents)];
1104
+ return [2, contents];
1144
1105
  }
1145
1106
  });
1146
1107
  }); };
1147
1108
  var deserializeAws_restJson1ListDetectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1148
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1109
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1149
1110
  var _c;
1150
1111
  return __generator(this, function (_d) {
1151
1112
  switch (_d.label) {
@@ -1182,23 +1143,24 @@ var deserializeAws_restJson1ListDetectorsCommandError = function (output, contex
1182
1143
  case 11: throw _d.sent();
1183
1144
  case 12:
1184
1145
  parsedBody = parsedOutput.body;
1185
- $metadata = deserializeMetadata(output);
1186
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1187
- response = new __BaseException({
1188
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1189
- $fault: "client",
1190
- $metadata: $metadata,
1146
+ throwDefaultError({
1147
+ output: output,
1148
+ parsedBody: parsedBody,
1149
+ exceptionCtor: __BaseException,
1150
+ errorCode: errorCode,
1191
1151
  });
1192
- throw __decorateServiceException(response, parsedBody);
1152
+ _d.label = 13;
1153
+ case 13: return [2];
1193
1154
  }
1194
1155
  });
1195
1156
  }); };
1157
+ var map = __map;
1196
1158
  var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1197
1159
  var contents, data, exception;
1198
1160
  return __generator(this, function (_a) {
1199
- contents = {};
1161
+ contents = map({});
1200
1162
  data = parsedOutput.body;
1201
- if (data.message !== undefined && data.message !== null) {
1163
+ if (data.message != null) {
1202
1164
  contents.message = __expectString(data.message);
1203
1165
  }
1204
1166
  exception = new InternalFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -1208,9 +1170,9 @@ var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedO
1208
1170
  var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1209
1171
  var contents, data, exception;
1210
1172
  return __generator(this, function (_a) {
1211
- contents = {};
1173
+ contents = map({});
1212
1174
  data = parsedOutput.body;
1213
- if (data.message !== undefined && data.message !== null) {
1175
+ if (data.message != null) {
1214
1176
  contents.message = __expectString(data.message);
1215
1177
  }
1216
1178
  exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -1220,9 +1182,9 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
1220
1182
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1221
1183
  var contents, data, exception;
1222
1184
  return __generator(this, function (_a) {
1223
- contents = {};
1185
+ contents = map({});
1224
1186
  data = parsedOutput.body;
1225
- if (data.message !== undefined && data.message !== null) {
1187
+ if (data.message != null) {
1226
1188
  contents.message = __expectString(data.message);
1227
1189
  }
1228
1190
  exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -1232,9 +1194,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
1232
1194
  var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1233
1195
  var contents, data, exception;
1234
1196
  return __generator(this, function (_a) {
1235
- contents = {};
1197
+ contents = map({});
1236
1198
  data = parsedOutput.body;
1237
- if (data.message !== undefined && data.message !== null) {
1199
+ if (data.message != null) {
1238
1200
  contents.message = __expectString(data.message);
1239
1201
  }
1240
1202
  exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -1244,9 +1206,9 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
1244
1206
  var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
1245
1207
  var contents, data, exception;
1246
1208
  return __generator(this, function (_a) {
1247
- contents = {};
1209
+ contents = map({});
1248
1210
  data = parsedOutput.body;
1249
- if (data.message !== undefined && data.message !== null) {
1211
+ if (data.message != null) {
1250
1212
  contents.message = __expectString(data.message);
1251
1213
  }
1252
1214
  exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -1260,9 +1222,6 @@ var serializeAws_restJson1AcknowledgeAlarmActionRequests = function (input, cont
1260
1222
  return input
1261
1223
  .filter(function (e) { return e != null; })
1262
1224
  .map(function (entry) {
1263
- if (entry === null) {
1264
- return null;
1265
- }
1266
1225
  return serializeAws_restJson1AcknowledgeAlarmActionRequest(entry, context);
1267
1226
  });
1268
1227
  };
@@ -1273,9 +1232,6 @@ var serializeAws_restJson1DeleteDetectorRequests = function (input, context) {
1273
1232
  return input
1274
1233
  .filter(function (e) { return e != null; })
1275
1234
  .map(function (entry) {
1276
- if (entry === null) {
1277
- return null;
1278
- }
1279
1235
  return serializeAws_restJson1DeleteDetectorRequest(entry, context);
1280
1236
  });
1281
1237
  };
@@ -1289,9 +1245,6 @@ var serializeAws_restJson1DisableAlarmActionRequests = function (input, context)
1289
1245
  return input
1290
1246
  .filter(function (e) { return e != null; })
1291
1247
  .map(function (entry) {
1292
- if (entry === null) {
1293
- return null;
1294
- }
1295
1248
  return serializeAws_restJson1DisableAlarmActionRequest(entry, context);
1296
1249
  });
1297
1250
  };
@@ -1302,9 +1255,6 @@ var serializeAws_restJson1EnableAlarmActionRequests = function (input, context)
1302
1255
  return input
1303
1256
  .filter(function (e) { return e != null; })
1304
1257
  .map(function (entry) {
1305
- if (entry === null) {
1306
- return null;
1307
- }
1308
1258
  return serializeAws_restJson1EnableAlarmActionRequest(entry, context);
1309
1259
  });
1310
1260
  };
@@ -1315,9 +1265,6 @@ var serializeAws_restJson1Messages = function (input, context) {
1315
1265
  return input
1316
1266
  .filter(function (e) { return e != null; })
1317
1267
  .map(function (entry) {
1318
- if (entry === null) {
1319
- return null;
1320
- }
1321
1268
  return serializeAws_restJson1Message(entry, context);
1322
1269
  });
1323
1270
  };
@@ -1328,9 +1275,6 @@ var serializeAws_restJson1ResetAlarmActionRequests = function (input, context) {
1328
1275
  return input
1329
1276
  .filter(function (e) { return e != null; })
1330
1277
  .map(function (entry) {
1331
- if (entry === null) {
1332
- return null;
1333
- }
1334
1278
  return serializeAws_restJson1ResetAlarmActionRequest(entry, context);
1335
1279
  });
1336
1280
  };
@@ -1341,9 +1285,6 @@ var serializeAws_restJson1SnoozeAlarmActionRequests = function (input, context)
1341
1285
  return input
1342
1286
  .filter(function (e) { return e != null; })
1343
1287
  .map(function (entry) {
1344
- if (entry === null) {
1345
- return null;
1346
- }
1347
1288
  return serializeAws_restJson1SnoozeAlarmActionRequest(entry, context);
1348
1289
  });
1349
1290
  };
@@ -1354,9 +1295,6 @@ var serializeAws_restJson1TimerDefinitions = function (input, context) {
1354
1295
  return input
1355
1296
  .filter(function (e) { return e != null; })
1356
1297
  .map(function (entry) {
1357
- if (entry === null) {
1358
- return null;
1359
- }
1360
1298
  return serializeAws_restJson1TimerDefinition(entry, context);
1361
1299
  });
1362
1300
  };
@@ -1370,9 +1308,6 @@ var serializeAws_restJson1UpdateDetectorRequests = function (input, context) {
1370
1308
  return input
1371
1309
  .filter(function (e) { return e != null; })
1372
1310
  .map(function (entry) {
1373
- if (entry === null) {
1374
- return null;
1375
- }
1376
1311
  return serializeAws_restJson1UpdateDetectorRequest(entry, context);
1377
1312
  });
1378
1313
  };
@@ -1383,9 +1318,6 @@ var serializeAws_restJson1VariableDefinitions = function (input, context) {
1383
1318
  return input
1384
1319
  .filter(function (e) { return e != null; })
1385
1320
  .map(function (entry) {
1386
- if (entry === null) {
1387
- return null;
1388
- }
1389
1321
  return serializeAws_restJson1VariableDefinition(entry, context);
1390
1322
  });
1391
1323
  };