@aws-sdk/client-timestream-write 3.118.1 → 3.128.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.
@@ -187,7 +187,7 @@ export var deserializeAws_json1_0CreateDatabaseCommand = function (output, conte
187
187
  });
188
188
  }); };
189
189
  var deserializeAws_json1_0CreateDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
190
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
190
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
191
191
  var _c;
192
192
  return __generator(this, function (_d) {
193
193
  switch (_d.label) {
@@ -197,7 +197,6 @@ var deserializeAws_json1_0CreateDatabaseCommandError = function (output, context
197
197
  return [4, parseBody(output.body, context)];
198
198
  case 1:
199
199
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
200
- errorCode = "UnknownError";
201
200
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
202
201
  _b = errorCode;
203
202
  switch (_b) {
@@ -233,10 +232,12 @@ var deserializeAws_json1_0CreateDatabaseCommandError = function (output, context
233
232
  case 15: throw _d.sent();
234
233
  case 16:
235
234
  parsedBody = parsedOutput.body;
235
+ $metadata = deserializeMetadata(output);
236
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
236
237
  response = new __BaseException({
237
- name: parsedBody.code || parsedBody.Code || errorCode,
238
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
238
239
  $fault: "client",
239
- $metadata: deserializeMetadata(output),
240
+ $metadata: $metadata,
240
241
  });
241
242
  throw __decorateServiceException(response, parsedBody);
242
243
  }
@@ -261,7 +262,7 @@ export var deserializeAws_json1_0CreateTableCommand = function (output, context)
261
262
  });
262
263
  }); };
263
264
  var deserializeAws_json1_0CreateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
264
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
265
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
265
266
  var _c;
266
267
  return __generator(this, function (_d) {
267
268
  switch (_d.label) {
@@ -271,7 +272,6 @@ var deserializeAws_json1_0CreateTableCommandError = function (output, context) {
271
272
  return [4, parseBody(output.body, context)];
272
273
  case 1:
273
274
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
274
- errorCode = "UnknownError";
275
275
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
276
276
  _b = errorCode;
277
277
  switch (_b) {
@@ -311,10 +311,12 @@ var deserializeAws_json1_0CreateTableCommandError = function (output, context) {
311
311
  case 17: throw _d.sent();
312
312
  case 18:
313
313
  parsedBody = parsedOutput.body;
314
+ $metadata = deserializeMetadata(output);
315
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
314
316
  response = new __BaseException({
315
- name: parsedBody.code || parsedBody.Code || errorCode,
317
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
316
318
  $fault: "client",
317
- $metadata: deserializeMetadata(output),
319
+ $metadata: $metadata,
318
320
  });
319
321
  throw __decorateServiceException(response, parsedBody);
320
322
  }
@@ -339,7 +341,7 @@ export var deserializeAws_json1_0DeleteDatabaseCommand = function (output, conte
339
341
  });
340
342
  }); };
341
343
  var deserializeAws_json1_0DeleteDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
342
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
344
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
343
345
  var _c;
344
346
  return __generator(this, function (_d) {
345
347
  switch (_d.label) {
@@ -349,7 +351,6 @@ var deserializeAws_json1_0DeleteDatabaseCommandError = function (output, context
349
351
  return [4, parseBody(output.body, context)];
350
352
  case 1:
351
353
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
352
- errorCode = "UnknownError";
353
354
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
354
355
  _b = errorCode;
355
356
  switch (_b) {
@@ -381,10 +382,12 @@ var deserializeAws_json1_0DeleteDatabaseCommandError = function (output, context
381
382
  case 13: throw _d.sent();
382
383
  case 14:
383
384
  parsedBody = parsedOutput.body;
385
+ $metadata = deserializeMetadata(output);
386
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
384
387
  response = new __BaseException({
385
- name: parsedBody.code || parsedBody.Code || errorCode,
388
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
386
389
  $fault: "client",
387
- $metadata: deserializeMetadata(output),
390
+ $metadata: $metadata,
388
391
  });
389
392
  throw __decorateServiceException(response, parsedBody);
390
393
  }
@@ -409,7 +412,7 @@ export var deserializeAws_json1_0DeleteTableCommand = function (output, context)
409
412
  });
410
413
  }); };
411
414
  var deserializeAws_json1_0DeleteTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
412
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
415
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
413
416
  var _c;
414
417
  return __generator(this, function (_d) {
415
418
  switch (_d.label) {
@@ -419,7 +422,6 @@ var deserializeAws_json1_0DeleteTableCommandError = function (output, context) {
419
422
  return [4, parseBody(output.body, context)];
420
423
  case 1:
421
424
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
422
- errorCode = "UnknownError";
423
425
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
424
426
  _b = errorCode;
425
427
  switch (_b) {
@@ -451,10 +453,12 @@ var deserializeAws_json1_0DeleteTableCommandError = function (output, context) {
451
453
  case 13: throw _d.sent();
452
454
  case 14:
453
455
  parsedBody = parsedOutput.body;
456
+ $metadata = deserializeMetadata(output);
457
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
454
458
  response = new __BaseException({
455
- name: parsedBody.code || parsedBody.Code || errorCode,
459
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
456
460
  $fault: "client",
457
- $metadata: deserializeMetadata(output),
461
+ $metadata: $metadata,
458
462
  });
459
463
  throw __decorateServiceException(response, parsedBody);
460
464
  }
@@ -479,7 +483,7 @@ export var deserializeAws_json1_0DescribeDatabaseCommand = function (output, con
479
483
  });
480
484
  }); };
481
485
  var deserializeAws_json1_0DescribeDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
482
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
486
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
483
487
  var _c;
484
488
  return __generator(this, function (_d) {
485
489
  switch (_d.label) {
@@ -489,7 +493,6 @@ var deserializeAws_json1_0DescribeDatabaseCommandError = function (output, conte
489
493
  return [4, parseBody(output.body, context)];
490
494
  case 1:
491
495
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
492
- errorCode = "UnknownError";
493
496
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
494
497
  _b = errorCode;
495
498
  switch (_b) {
@@ -521,10 +524,12 @@ var deserializeAws_json1_0DescribeDatabaseCommandError = function (output, conte
521
524
  case 13: throw _d.sent();
522
525
  case 14:
523
526
  parsedBody = parsedOutput.body;
527
+ $metadata = deserializeMetadata(output);
528
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
524
529
  response = new __BaseException({
525
- name: parsedBody.code || parsedBody.Code || errorCode,
530
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
526
531
  $fault: "client",
527
- $metadata: deserializeMetadata(output),
532
+ $metadata: $metadata,
528
533
  });
529
534
  throw __decorateServiceException(response, parsedBody);
530
535
  }
@@ -549,7 +554,7 @@ export var deserializeAws_json1_0DescribeEndpointsCommand = function (output, co
549
554
  });
550
555
  }); };
551
556
  var deserializeAws_json1_0DescribeEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
552
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
557
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
553
558
  var _c;
554
559
  return __generator(this, function (_d) {
555
560
  switch (_d.label) {
@@ -559,7 +564,6 @@ var deserializeAws_json1_0DescribeEndpointsCommandError = function (output, cont
559
564
  return [4, parseBody(output.body, context)];
560
565
  case 1:
561
566
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
562
- errorCode = "UnknownError";
563
567
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
564
568
  _b = errorCode;
565
569
  switch (_b) {
@@ -579,10 +583,12 @@ var deserializeAws_json1_0DescribeEndpointsCommandError = function (output, cont
579
583
  case 7: throw _d.sent();
580
584
  case 8:
581
585
  parsedBody = parsedOutput.body;
586
+ $metadata = deserializeMetadata(output);
587
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
582
588
  response = new __BaseException({
583
- name: parsedBody.code || parsedBody.Code || errorCode,
589
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
584
590
  $fault: "client",
585
- $metadata: deserializeMetadata(output),
591
+ $metadata: $metadata,
586
592
  });
587
593
  throw __decorateServiceException(response, parsedBody);
588
594
  }
@@ -607,7 +613,7 @@ export var deserializeAws_json1_0DescribeTableCommand = function (output, contex
607
613
  });
608
614
  }); };
609
615
  var deserializeAws_json1_0DescribeTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
610
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
616
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
611
617
  var _c;
612
618
  return __generator(this, function (_d) {
613
619
  switch (_d.label) {
@@ -617,7 +623,6 @@ var deserializeAws_json1_0DescribeTableCommandError = function (output, context)
617
623
  return [4, parseBody(output.body, context)];
618
624
  case 1:
619
625
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
620
- errorCode = "UnknownError";
621
626
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
622
627
  _b = errorCode;
623
628
  switch (_b) {
@@ -649,10 +654,12 @@ var deserializeAws_json1_0DescribeTableCommandError = function (output, context)
649
654
  case 13: throw _d.sent();
650
655
  case 14:
651
656
  parsedBody = parsedOutput.body;
657
+ $metadata = deserializeMetadata(output);
658
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
652
659
  response = new __BaseException({
653
- name: parsedBody.code || parsedBody.Code || errorCode,
660
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
654
661
  $fault: "client",
655
- $metadata: deserializeMetadata(output),
662
+ $metadata: $metadata,
656
663
  });
657
664
  throw __decorateServiceException(response, parsedBody);
658
665
  }
@@ -677,7 +684,7 @@ export var deserializeAws_json1_0ListDatabasesCommand = function (output, contex
677
684
  });
678
685
  }); };
679
686
  var deserializeAws_json1_0ListDatabasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
680
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
687
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
681
688
  var _c;
682
689
  return __generator(this, function (_d) {
683
690
  switch (_d.label) {
@@ -687,7 +694,6 @@ var deserializeAws_json1_0ListDatabasesCommandError = function (output, context)
687
694
  return [4, parseBody(output.body, context)];
688
695
  case 1:
689
696
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
690
- errorCode = "UnknownError";
691
697
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
692
698
  _b = errorCode;
693
699
  switch (_b) {
@@ -715,10 +721,12 @@ var deserializeAws_json1_0ListDatabasesCommandError = function (output, context)
715
721
  case 11: throw _d.sent();
716
722
  case 12:
717
723
  parsedBody = parsedOutput.body;
724
+ $metadata = deserializeMetadata(output);
725
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
718
726
  response = new __BaseException({
719
- name: parsedBody.code || parsedBody.Code || errorCode,
727
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
720
728
  $fault: "client",
721
- $metadata: deserializeMetadata(output),
729
+ $metadata: $metadata,
722
730
  });
723
731
  throw __decorateServiceException(response, parsedBody);
724
732
  }
@@ -743,7 +751,7 @@ export var deserializeAws_json1_0ListTablesCommand = function (output, context)
743
751
  });
744
752
  }); };
745
753
  var deserializeAws_json1_0ListTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
746
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
754
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
747
755
  var _c;
748
756
  return __generator(this, function (_d) {
749
757
  switch (_d.label) {
@@ -753,7 +761,6 @@ var deserializeAws_json1_0ListTablesCommandError = function (output, context) {
753
761
  return [4, parseBody(output.body, context)];
754
762
  case 1:
755
763
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
756
- errorCode = "UnknownError";
757
764
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
758
765
  _b = errorCode;
759
766
  switch (_b) {
@@ -785,10 +792,12 @@ var deserializeAws_json1_0ListTablesCommandError = function (output, context) {
785
792
  case 13: throw _d.sent();
786
793
  case 14:
787
794
  parsedBody = parsedOutput.body;
795
+ $metadata = deserializeMetadata(output);
796
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
788
797
  response = new __BaseException({
789
- name: parsedBody.code || parsedBody.Code || errorCode,
798
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
790
799
  $fault: "client",
791
- $metadata: deserializeMetadata(output),
800
+ $metadata: $metadata,
792
801
  });
793
802
  throw __decorateServiceException(response, parsedBody);
794
803
  }
@@ -813,7 +822,7 @@ export var deserializeAws_json1_0ListTagsForResourceCommand = function (output,
813
822
  });
814
823
  }); };
815
824
  var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
816
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
825
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
817
826
  var _c;
818
827
  return __generator(this, function (_d) {
819
828
  switch (_d.label) {
@@ -823,7 +832,6 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
823
832
  return [4, parseBody(output.body, context)];
824
833
  case 1:
825
834
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
826
- errorCode = "UnknownError";
827
835
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
828
836
  _b = errorCode;
829
837
  switch (_b) {
@@ -847,10 +855,12 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
847
855
  case 9: throw _d.sent();
848
856
  case 10:
849
857
  parsedBody = parsedOutput.body;
858
+ $metadata = deserializeMetadata(output);
859
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
850
860
  response = new __BaseException({
851
- name: parsedBody.code || parsedBody.Code || errorCode,
861
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
852
862
  $fault: "client",
853
- $metadata: deserializeMetadata(output),
863
+ $metadata: $metadata,
854
864
  });
855
865
  throw __decorateServiceException(response, parsedBody);
856
866
  }
@@ -875,7 +885,7 @@ export var deserializeAws_json1_0TagResourceCommand = function (output, context)
875
885
  });
876
886
  }); };
877
887
  var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
878
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
888
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
879
889
  var _c;
880
890
  return __generator(this, function (_d) {
881
891
  switch (_d.label) {
@@ -885,7 +895,6 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
885
895
  return [4, parseBody(output.body, context)];
886
896
  case 1:
887
897
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
888
- errorCode = "UnknownError";
889
898
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
899
  _b = errorCode;
891
900
  switch (_b) {
@@ -913,10 +922,12 @@ var deserializeAws_json1_0TagResourceCommandError = function (output, context) {
913
922
  case 11: throw _d.sent();
914
923
  case 12:
915
924
  parsedBody = parsedOutput.body;
925
+ $metadata = deserializeMetadata(output);
926
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
916
927
  response = new __BaseException({
917
- name: parsedBody.code || parsedBody.Code || errorCode,
928
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
918
929
  $fault: "client",
919
- $metadata: deserializeMetadata(output),
930
+ $metadata: $metadata,
920
931
  });
921
932
  throw __decorateServiceException(response, parsedBody);
922
933
  }
@@ -941,7 +952,7 @@ export var deserializeAws_json1_0UntagResourceCommand = function (output, contex
941
952
  });
942
953
  }); };
943
954
  var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
944
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
955
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
945
956
  var _c;
946
957
  return __generator(this, function (_d) {
947
958
  switch (_d.label) {
@@ -951,7 +962,6 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
951
962
  return [4, parseBody(output.body, context)];
952
963
  case 1:
953
964
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
954
- errorCode = "UnknownError";
955
965
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
956
966
  _b = errorCode;
957
967
  switch (_b) {
@@ -979,10 +989,12 @@ var deserializeAws_json1_0UntagResourceCommandError = function (output, context)
979
989
  case 11: throw _d.sent();
980
990
  case 12:
981
991
  parsedBody = parsedOutput.body;
992
+ $metadata = deserializeMetadata(output);
993
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
982
994
  response = new __BaseException({
983
- name: parsedBody.code || parsedBody.Code || errorCode,
995
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
984
996
  $fault: "client",
985
- $metadata: deserializeMetadata(output),
997
+ $metadata: $metadata,
986
998
  });
987
999
  throw __decorateServiceException(response, parsedBody);
988
1000
  }
@@ -1007,7 +1019,7 @@ export var deserializeAws_json1_0UpdateDatabaseCommand = function (output, conte
1007
1019
  });
1008
1020
  }); };
1009
1021
  var deserializeAws_json1_0UpdateDatabaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1010
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1022
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1011
1023
  var _c;
1012
1024
  return __generator(this, function (_d) {
1013
1025
  switch (_d.label) {
@@ -1017,7 +1029,6 @@ var deserializeAws_json1_0UpdateDatabaseCommandError = function (output, context
1017
1029
  return [4, parseBody(output.body, context)];
1018
1030
  case 1:
1019
1031
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1020
- errorCode = "UnknownError";
1021
1032
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1022
1033
  _b = errorCode;
1023
1034
  switch (_b) {
@@ -1053,10 +1064,12 @@ var deserializeAws_json1_0UpdateDatabaseCommandError = function (output, context
1053
1064
  case 15: throw _d.sent();
1054
1065
  case 16:
1055
1066
  parsedBody = parsedOutput.body;
1067
+ $metadata = deserializeMetadata(output);
1068
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1056
1069
  response = new __BaseException({
1057
- name: parsedBody.code || parsedBody.Code || errorCode,
1070
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1058
1071
  $fault: "client",
1059
- $metadata: deserializeMetadata(output),
1072
+ $metadata: $metadata,
1060
1073
  });
1061
1074
  throw __decorateServiceException(response, parsedBody);
1062
1075
  }
@@ -1081,7 +1094,7 @@ export var deserializeAws_json1_0UpdateTableCommand = function (output, context)
1081
1094
  });
1082
1095
  }); };
1083
1096
  var deserializeAws_json1_0UpdateTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1084
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1097
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1085
1098
  var _c;
1086
1099
  return __generator(this, function (_d) {
1087
1100
  switch (_d.label) {
@@ -1091,7 +1104,6 @@ var deserializeAws_json1_0UpdateTableCommandError = function (output, context) {
1091
1104
  return [4, parseBody(output.body, context)];
1092
1105
  case 1:
1093
1106
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1094
- errorCode = "UnknownError";
1095
1107
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1096
1108
  _b = errorCode;
1097
1109
  switch (_b) {
@@ -1123,10 +1135,12 @@ var deserializeAws_json1_0UpdateTableCommandError = function (output, context) {
1123
1135
  case 13: throw _d.sent();
1124
1136
  case 14:
1125
1137
  parsedBody = parsedOutput.body;
1138
+ $metadata = deserializeMetadata(output);
1139
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1126
1140
  response = new __BaseException({
1127
- name: parsedBody.code || parsedBody.Code || errorCode,
1141
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1128
1142
  $fault: "client",
1129
- $metadata: deserializeMetadata(output),
1143
+ $metadata: $metadata,
1130
1144
  });
1131
1145
  throw __decorateServiceException(response, parsedBody);
1132
1146
  }
@@ -1151,7 +1165,7 @@ export var deserializeAws_json1_0WriteRecordsCommand = function (output, context
1151
1165
  });
1152
1166
  }); };
1153
1167
  var deserializeAws_json1_0WriteRecordsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1154
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1168
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1155
1169
  var _c;
1156
1170
  return __generator(this, function (_d) {
1157
1171
  switch (_d.label) {
@@ -1161,7 +1175,6 @@ var deserializeAws_json1_0WriteRecordsCommandError = function (output, context)
1161
1175
  return [4, parseBody(output.body, context)];
1162
1176
  case 1:
1163
1177
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1164
- errorCode = "UnknownError";
1165
1178
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1166
1179
  _b = errorCode;
1167
1180
  switch (_b) {
@@ -1197,10 +1210,12 @@ var deserializeAws_json1_0WriteRecordsCommandError = function (output, context)
1197
1210
  case 15: throw _d.sent();
1198
1211
  case 16:
1199
1212
  parsedBody = parsedOutput.body;
1213
+ $metadata = deserializeMetadata(output);
1214
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1200
1215
  response = new __BaseException({
1201
- name: parsedBody.code || parsedBody.Code || errorCode,
1216
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1202
1217
  $fault: "client",
1203
- $metadata: deserializeMetadata(output),
1218
+ $metadata: $metadata,
1204
1219
  });
1205
1220
  throw __decorateServiceException(response, parsedBody);
1206
1221
  }
@@ -1288,35 +1303,32 @@ var deserializeAws_json1_0ValidationExceptionResponse = function (parsedOutput,
1288
1303
  });
1289
1304
  }); };
1290
1305
  var serializeAws_json1_0CreateDatabaseRequest = function (input, context) {
1291
- return __assign(__assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1306
+ return __assign(__assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1292
1307
  };
1293
1308
  var serializeAws_json1_0CreateTableRequest = function (input, context) {
1294
- return __assign(__assign(__assign(__assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.MagneticStoreWriteProperties !== undefined &&
1295
- input.MagneticStoreWriteProperties !== null && {
1309
+ return __assign(__assign(__assign(__assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.MagneticStoreWriteProperties != null && {
1296
1310
  MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
1297
- })), (input.RetentionProperties !== undefined &&
1298
- input.RetentionProperties !== null && {
1311
+ })), (input.RetentionProperties != null && {
1299
1312
  RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
1300
- })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1313
+ })), (input.TableName != null && { TableName: input.TableName })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1301
1314
  };
1302
1315
  var serializeAws_json1_0DeleteDatabaseRequest = function (input, context) {
1303
- return __assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }));
1316
+ return __assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName }));
1304
1317
  };
1305
1318
  var serializeAws_json1_0DeleteTableRequest = function (input, context) {
1306
- return __assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
1319
+ return __assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.TableName != null && { TableName: input.TableName }));
1307
1320
  };
1308
1321
  var serializeAws_json1_0DescribeDatabaseRequest = function (input, context) {
1309
- return __assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }));
1322
+ return __assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName }));
1310
1323
  };
1311
1324
  var serializeAws_json1_0DescribeEndpointsRequest = function (input, context) {
1312
1325
  return {};
1313
1326
  };
1314
1327
  var serializeAws_json1_0DescribeTableRequest = function (input, context) {
1315
- return __assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
1328
+ return __assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.TableName != null && { TableName: input.TableName }));
1316
1329
  };
1317
1330
  var serializeAws_json1_0Dimension = function (input, context) {
1318
- return __assign(__assign(__assign({}, (input.DimensionValueType !== undefined &&
1319
- input.DimensionValueType !== null && { DimensionValueType: input.DimensionValueType })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
1331
+ return __assign(__assign(__assign({}, (input.DimensionValueType != null && { DimensionValueType: input.DimensionValueType })), (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
1320
1332
  };
1321
1333
  var serializeAws_json1_0Dimensions = function (input, context) {
1322
1334
  return input
@@ -1329,29 +1341,26 @@ var serializeAws_json1_0Dimensions = function (input, context) {
1329
1341
  });
1330
1342
  };
1331
1343
  var serializeAws_json1_0ListDatabasesRequest = function (input, context) {
1332
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1344
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
1333
1345
  };
1334
1346
  var serializeAws_json1_0ListTablesRequest = function (input, context) {
1335
- return __assign(__assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
1347
+ return __assign(__assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
1336
1348
  };
1337
1349
  var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
1338
- return __assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
1350
+ return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
1339
1351
  };
1340
1352
  var serializeAws_json1_0MagneticStoreRejectedDataLocation = function (input, context) {
1341
- return __assign({}, (input.S3Configuration !== undefined &&
1342
- input.S3Configuration !== null && {
1353
+ return __assign({}, (input.S3Configuration != null && {
1343
1354
  S3Configuration: serializeAws_json1_0S3Configuration(input.S3Configuration, context),
1344
1355
  }));
1345
1356
  };
1346
1357
  var serializeAws_json1_0MagneticStoreWriteProperties = function (input, context) {
1347
- return __assign(__assign({}, (input.EnableMagneticStoreWrites !== undefined &&
1348
- input.EnableMagneticStoreWrites !== null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites })), (input.MagneticStoreRejectedDataLocation !== undefined &&
1349
- input.MagneticStoreRejectedDataLocation !== null && {
1358
+ return __assign(__assign({}, (input.EnableMagneticStoreWrites != null && { EnableMagneticStoreWrites: input.EnableMagneticStoreWrites })), (input.MagneticStoreRejectedDataLocation != null && {
1350
1359
  MagneticStoreRejectedDataLocation: serializeAws_json1_0MagneticStoreRejectedDataLocation(input.MagneticStoreRejectedDataLocation, context),
1351
1360
  }));
1352
1361
  };
1353
1362
  var serializeAws_json1_0MeasureValue = function (input, context) {
1354
- return __assign(__assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
1363
+ return __assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
1355
1364
  };
1356
1365
  var serializeAws_json1_0MeasureValues = function (input, context) {
1357
1366
  return input
@@ -1364,12 +1373,9 @@ var serializeAws_json1_0MeasureValues = function (input, context) {
1364
1373
  });
1365
1374
  };
1366
1375
  var serializeAws_json1_0_Record = function (input, context) {
1367
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Dimensions !== undefined &&
1368
- input.Dimensions !== null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) })), (input.MeasureName !== undefined && input.MeasureName !== null && { MeasureName: input.MeasureName })), (input.MeasureValue !== undefined && input.MeasureValue !== null && { MeasureValue: input.MeasureValue })), (input.MeasureValueType !== undefined &&
1369
- input.MeasureValueType !== null && { MeasureValueType: input.MeasureValueType })), (input.MeasureValues !== undefined &&
1370
- input.MeasureValues !== null && {
1376
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Dimensions != null && { Dimensions: serializeAws_json1_0Dimensions(input.Dimensions, context) })), (input.MeasureName != null && { MeasureName: input.MeasureName })), (input.MeasureValue != null && { MeasureValue: input.MeasureValue })), (input.MeasureValueType != null && { MeasureValueType: input.MeasureValueType })), (input.MeasureValues != null && {
1371
1377
  MeasureValues: serializeAws_json1_0MeasureValues(input.MeasureValues, context),
1372
- })), (input.Time !== undefined && input.Time !== null && { Time: input.Time })), (input.TimeUnit !== undefined && input.TimeUnit !== null && { TimeUnit: input.TimeUnit })), (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
1378
+ })), (input.Time != null && { Time: input.Time })), (input.TimeUnit != null && { TimeUnit: input.TimeUnit })), (input.Version != null && { Version: input.Version }));
1373
1379
  };
1374
1380
  var serializeAws_json1_0Records = function (input, context) {
1375
1381
  return input
@@ -1382,21 +1388,17 @@ var serializeAws_json1_0Records = function (input, context) {
1382
1388
  });
1383
1389
  };
1384
1390
  var serializeAws_json1_0RetentionProperties = function (input, context) {
1385
- return __assign(__assign({}, (input.MagneticStoreRetentionPeriodInDays !== undefined &&
1386
- input.MagneticStoreRetentionPeriodInDays !== null && {
1391
+ return __assign(__assign({}, (input.MagneticStoreRetentionPeriodInDays != null && {
1387
1392
  MagneticStoreRetentionPeriodInDays: input.MagneticStoreRetentionPeriodInDays,
1388
- })), (input.MemoryStoreRetentionPeriodInHours !== undefined &&
1389
- input.MemoryStoreRetentionPeriodInHours !== null && {
1393
+ })), (input.MemoryStoreRetentionPeriodInHours != null && {
1390
1394
  MemoryStoreRetentionPeriodInHours: input.MemoryStoreRetentionPeriodInHours,
1391
1395
  }));
1392
1396
  };
1393
1397
  var serializeAws_json1_0S3Configuration = function (input, context) {
1394
- return __assign(__assign(__assign(__assign({}, (input.BucketName !== undefined && input.BucketName !== null && { BucketName: input.BucketName })), (input.EncryptionOption !== undefined &&
1395
- input.EncryptionOption !== null && { EncryptionOption: input.EncryptionOption })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.ObjectKeyPrefix !== undefined &&
1396
- input.ObjectKeyPrefix !== null && { ObjectKeyPrefix: input.ObjectKeyPrefix }));
1398
+ return __assign(__assign(__assign(__assign({}, (input.BucketName != null && { BucketName: input.BucketName })), (input.EncryptionOption != null && { EncryptionOption: input.EncryptionOption })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.ObjectKeyPrefix != null && { ObjectKeyPrefix: input.ObjectKeyPrefix }));
1397
1399
  };
1398
1400
  var serializeAws_json1_0Tag = function (input, context) {
1399
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
1401
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
1400
1402
  };
1401
1403
  var serializeAws_json1_0TagKeyList = function (input, context) {
1402
1404
  return input
@@ -1419,30 +1421,25 @@ var serializeAws_json1_0TagList = function (input, context) {
1419
1421
  });
1420
1422
  };
1421
1423
  var serializeAws_json1_0TagResourceRequest = function (input, context) {
1422
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1424
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
1423
1425
  };
1424
1426
  var serializeAws_json1_0UntagResourceRequest = function (input, context) {
1425
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeys !== undefined &&
1426
- input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
1427
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
1427
1428
  };
1428
1429
  var serializeAws_json1_0UpdateDatabaseRequest = function (input, context) {
1429
- return __assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId }));
1430
+ return __assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }));
1430
1431
  };
1431
1432
  var serializeAws_json1_0UpdateTableRequest = function (input, context) {
1432
- return __assign(__assign(__assign(__assign({}, (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.MagneticStoreWriteProperties !== undefined &&
1433
- input.MagneticStoreWriteProperties !== null && {
1433
+ return __assign(__assign(__assign(__assign({}, (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.MagneticStoreWriteProperties != null && {
1434
1434
  MagneticStoreWriteProperties: serializeAws_json1_0MagneticStoreWriteProperties(input.MagneticStoreWriteProperties, context),
1435
- })), (input.RetentionProperties !== undefined &&
1436
- input.RetentionProperties !== null && {
1435
+ })), (input.RetentionProperties != null && {
1437
1436
  RetentionProperties: serializeAws_json1_0RetentionProperties(input.RetentionProperties, context),
1438
- })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
1437
+ })), (input.TableName != null && { TableName: input.TableName }));
1439
1438
  };
1440
1439
  var serializeAws_json1_0WriteRecordsRequest = function (input, context) {
1441
- return __assign(__assign(__assign(__assign({}, (input.CommonAttributes !== undefined &&
1442
- input.CommonAttributes !== null && {
1440
+ return __assign(__assign(__assign(__assign({}, (input.CommonAttributes != null && {
1443
1441
  CommonAttributes: serializeAws_json1_0_Record(input.CommonAttributes, context),
1444
- })), (input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName })), (input.Records !== undefined &&
1445
- input.Records !== null && { Records: serializeAws_json1_0Records(input.Records, context) })), (input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }));
1442
+ })), (input.DatabaseName != null && { DatabaseName: input.DatabaseName })), (input.Records != null && { Records: serializeAws_json1_0Records(input.Records, context) })), (input.TableName != null && { TableName: input.TableName }));
1446
1443
  };
1447
1444
  var deserializeAws_json1_0AccessDeniedException = function (output, context) {
1448
1445
  return {
@@ -1456,27 +1453,23 @@ var deserializeAws_json1_0ConflictException = function (output, context) {
1456
1453
  };
1457
1454
  var deserializeAws_json1_0CreateDatabaseResponse = function (output, context) {
1458
1455
  return {
1459
- Database: output.Database !== undefined && output.Database !== null
1460
- ? deserializeAws_json1_0Database(output.Database, context)
1461
- : undefined,
1456
+ Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
1462
1457
  };
1463
1458
  };
1464
1459
  var deserializeAws_json1_0CreateTableResponse = function (output, context) {
1465
1460
  return {
1466
- Table: output.Table !== undefined && output.Table !== null
1467
- ? deserializeAws_json1_0Table(output.Table, context)
1468
- : undefined,
1461
+ Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
1469
1462
  };
1470
1463
  };
1471
1464
  var deserializeAws_json1_0Database = function (output, context) {
1472
1465
  return {
1473
1466
  Arn: __expectString(output.Arn),
1474
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
1467
+ CreationTime: output.CreationTime != null
1475
1468
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
1476
1469
  : undefined,
1477
1470
  DatabaseName: __expectString(output.DatabaseName),
1478
1471
  KmsKeyId: __expectString(output.KmsKeyId),
1479
- LastUpdatedTime: output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null
1472
+ LastUpdatedTime: output.LastUpdatedTime != null
1480
1473
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
1481
1474
  : undefined,
1482
1475
  TableCount: __expectLong(output.TableCount),
@@ -1495,23 +1488,17 @@ var deserializeAws_json1_0DatabaseList = function (output, context) {
1495
1488
  };
1496
1489
  var deserializeAws_json1_0DescribeDatabaseResponse = function (output, context) {
1497
1490
  return {
1498
- Database: output.Database !== undefined && output.Database !== null
1499
- ? deserializeAws_json1_0Database(output.Database, context)
1500
- : undefined,
1491
+ Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
1501
1492
  };
1502
1493
  };
1503
1494
  var deserializeAws_json1_0DescribeEndpointsResponse = function (output, context) {
1504
1495
  return {
1505
- Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
1506
- ? deserializeAws_json1_0Endpoints(output.Endpoints, context)
1507
- : undefined,
1496
+ Endpoints: output.Endpoints != null ? deserializeAws_json1_0Endpoints(output.Endpoints, context) : undefined,
1508
1497
  };
1509
1498
  };
1510
1499
  var deserializeAws_json1_0DescribeTableResponse = function (output, context) {
1511
1500
  return {
1512
- Table: output.Table !== undefined && output.Table !== null
1513
- ? deserializeAws_json1_0Table(output.Table, context)
1514
- : undefined,
1501
+ Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
1515
1502
  };
1516
1503
  };
1517
1504
  var deserializeAws_json1_0Endpoint = function (output, context) {
@@ -1543,30 +1530,24 @@ var deserializeAws_json1_0InvalidEndpointException = function (output, context)
1543
1530
  };
1544
1531
  var deserializeAws_json1_0ListDatabasesResponse = function (output, context) {
1545
1532
  return {
1546
- Databases: output.Databases !== undefined && output.Databases !== null
1547
- ? deserializeAws_json1_0DatabaseList(output.Databases, context)
1548
- : undefined,
1533
+ Databases: output.Databases != null ? deserializeAws_json1_0DatabaseList(output.Databases, context) : undefined,
1549
1534
  NextToken: __expectString(output.NextToken),
1550
1535
  };
1551
1536
  };
1552
1537
  var deserializeAws_json1_0ListTablesResponse = function (output, context) {
1553
1538
  return {
1554
1539
  NextToken: __expectString(output.NextToken),
1555
- Tables: output.Tables !== undefined && output.Tables !== null
1556
- ? deserializeAws_json1_0TableList(output.Tables, context)
1557
- : undefined,
1540
+ Tables: output.Tables != null ? deserializeAws_json1_0TableList(output.Tables, context) : undefined,
1558
1541
  };
1559
1542
  };
1560
1543
  var deserializeAws_json1_0ListTagsForResourceResponse = function (output, context) {
1561
1544
  return {
1562
- Tags: output.Tags !== undefined && output.Tags !== null
1563
- ? deserializeAws_json1_0TagList(output.Tags, context)
1564
- : undefined,
1545
+ Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
1565
1546
  };
1566
1547
  };
1567
1548
  var deserializeAws_json1_0MagneticStoreRejectedDataLocation = function (output, context) {
1568
1549
  return {
1569
- S3Configuration: output.S3Configuration !== undefined && output.S3Configuration !== null
1550
+ S3Configuration: output.S3Configuration != null
1570
1551
  ? deserializeAws_json1_0S3Configuration(output.S3Configuration, context)
1571
1552
  : undefined,
1572
1553
  };
@@ -1574,7 +1555,7 @@ var deserializeAws_json1_0MagneticStoreRejectedDataLocation = function (output,
1574
1555
  var deserializeAws_json1_0MagneticStoreWriteProperties = function (output, context) {
1575
1556
  return {
1576
1557
  EnableMagneticStoreWrites: __expectBoolean(output.EnableMagneticStoreWrites),
1577
- MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation !== undefined && output.MagneticStoreRejectedDataLocation !== null
1558
+ MagneticStoreRejectedDataLocation: output.MagneticStoreRejectedDataLocation != null
1578
1559
  ? deserializeAws_json1_0MagneticStoreRejectedDataLocation(output.MagneticStoreRejectedDataLocation, context)
1579
1560
  : undefined,
1580
1561
  };
@@ -1607,7 +1588,7 @@ var deserializeAws_json1_0RejectedRecords = function (output, context) {
1607
1588
  var deserializeAws_json1_0RejectedRecordsException = function (output, context) {
1608
1589
  return {
1609
1590
  Message: __expectString(output.Message),
1610
- RejectedRecords: output.RejectedRecords !== undefined && output.RejectedRecords !== null
1591
+ RejectedRecords: output.RejectedRecords != null
1611
1592
  ? deserializeAws_json1_0RejectedRecords(output.RejectedRecords, context)
1612
1593
  : undefined,
1613
1594
  };
@@ -1639,17 +1620,17 @@ var deserializeAws_json1_0ServiceQuotaExceededException = function (output, cont
1639
1620
  var deserializeAws_json1_0Table = function (output, context) {
1640
1621
  return {
1641
1622
  Arn: __expectString(output.Arn),
1642
- CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
1623
+ CreationTime: output.CreationTime != null
1643
1624
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
1644
1625
  : undefined,
1645
1626
  DatabaseName: __expectString(output.DatabaseName),
1646
- LastUpdatedTime: output.LastUpdatedTime !== undefined && output.LastUpdatedTime !== null
1627
+ LastUpdatedTime: output.LastUpdatedTime != null
1647
1628
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
1648
1629
  : undefined,
1649
- MagneticStoreWriteProperties: output.MagneticStoreWriteProperties !== undefined && output.MagneticStoreWriteProperties !== null
1630
+ MagneticStoreWriteProperties: output.MagneticStoreWriteProperties != null
1650
1631
  ? deserializeAws_json1_0MagneticStoreWriteProperties(output.MagneticStoreWriteProperties, context)
1651
1632
  : undefined,
1652
- RetentionProperties: output.RetentionProperties !== undefined && output.RetentionProperties !== null
1633
+ RetentionProperties: output.RetentionProperties != null
1653
1634
  ? deserializeAws_json1_0RetentionProperties(output.RetentionProperties, context)
1654
1635
  : undefined,
1655
1636
  TableName: __expectString(output.TableName),
@@ -1697,16 +1678,12 @@ var deserializeAws_json1_0UntagResourceResponse = function (output, context) {
1697
1678
  };
1698
1679
  var deserializeAws_json1_0UpdateDatabaseResponse = function (output, context) {
1699
1680
  return {
1700
- Database: output.Database !== undefined && output.Database !== null
1701
- ? deserializeAws_json1_0Database(output.Database, context)
1702
- : undefined,
1681
+ Database: output.Database != null ? deserializeAws_json1_0Database(output.Database, context) : undefined,
1703
1682
  };
1704
1683
  };
1705
1684
  var deserializeAws_json1_0UpdateTableResponse = function (output, context) {
1706
1685
  return {
1707
- Table: output.Table !== undefined && output.Table !== null
1708
- ? deserializeAws_json1_0Table(output.Table, context)
1709
- : undefined,
1686
+ Table: output.Table != null ? deserializeAws_json1_0Table(output.Table, context) : undefined,
1710
1687
  };
1711
1688
  };
1712
1689
  var deserializeAws_json1_0ValidationException = function (output, context) {
@@ -1716,7 +1693,7 @@ var deserializeAws_json1_0ValidationException = function (output, context) {
1716
1693
  };
1717
1694
  var deserializeAws_json1_0WriteRecordsResponse = function (output, context) {
1718
1695
  return {
1719
- RecordsIngested: output.RecordsIngested !== undefined && output.RecordsIngested !== null
1696
+ RecordsIngested: output.RecordsIngested != null
1720
1697
  ? deserializeAws_json1_0RecordsIngested(output.RecordsIngested, context)
1721
1698
  : undefined,
1722
1699
  };
@@ -1795,5 +1772,4 @@ var loadRestJsonErrorCode = function (output, data) {
1795
1772
  if (data["__type"] !== undefined) {
1796
1773
  return sanitizeErrorCode(data["__type"]);
1797
1774
  }
1798
- return "";
1799
1775
  };