@aws-sdk/client-servicediscovery 3.118.0 → 3.127.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -321,7 +321,7 @@ export var deserializeAws_json1_1CreateHttpNamespaceCommand = function (output,
321
321
  });
322
322
  }); };
323
323
  var deserializeAws_json1_1CreateHttpNamespaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
324
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
324
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
325
325
  var _c;
326
326
  return __generator(this, function (_d) {
327
327
  switch (_d.label) {
@@ -331,7 +331,6 @@ var deserializeAws_json1_1CreateHttpNamespaceCommandError = function (output, co
331
331
  return [4, parseBody(output.body, context)];
332
332
  case 1:
333
333
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
334
- errorCode = "UnknownError";
335
334
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
336
335
  _b = errorCode;
337
336
  switch (_b) {
@@ -359,10 +358,12 @@ var deserializeAws_json1_1CreateHttpNamespaceCommandError = function (output, co
359
358
  case 11: throw _d.sent();
360
359
  case 12:
361
360
  parsedBody = parsedOutput.body;
361
+ $metadata = deserializeMetadata(output);
362
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
362
363
  response = new __BaseException({
363
- name: parsedBody.code || parsedBody.Code || errorCode,
364
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
364
365
  $fault: "client",
365
- $metadata: deserializeMetadata(output),
366
+ $metadata: $metadata,
366
367
  });
367
368
  throw __decorateServiceException(response, parsedBody);
368
369
  }
@@ -387,7 +388,7 @@ export var deserializeAws_json1_1CreatePrivateDnsNamespaceCommand = function (ou
387
388
  });
388
389
  }); };
389
390
  var deserializeAws_json1_1CreatePrivateDnsNamespaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
390
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
391
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
391
392
  var _c;
392
393
  return __generator(this, function (_d) {
393
394
  switch (_d.label) {
@@ -397,7 +398,6 @@ var deserializeAws_json1_1CreatePrivateDnsNamespaceCommandError = function (outp
397
398
  return [4, parseBody(output.body, context)];
398
399
  case 1:
399
400
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
400
- errorCode = "UnknownError";
401
401
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
402
402
  _b = errorCode;
403
403
  switch (_b) {
@@ -425,10 +425,12 @@ var deserializeAws_json1_1CreatePrivateDnsNamespaceCommandError = function (outp
425
425
  case 11: throw _d.sent();
426
426
  case 12:
427
427
  parsedBody = parsedOutput.body;
428
+ $metadata = deserializeMetadata(output);
429
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
428
430
  response = new __BaseException({
429
- name: parsedBody.code || parsedBody.Code || errorCode,
431
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
430
432
  $fault: "client",
431
- $metadata: deserializeMetadata(output),
433
+ $metadata: $metadata,
432
434
  });
433
435
  throw __decorateServiceException(response, parsedBody);
434
436
  }
@@ -453,7 +455,7 @@ export var deserializeAws_json1_1CreatePublicDnsNamespaceCommand = function (out
453
455
  });
454
456
  }); };
455
457
  var deserializeAws_json1_1CreatePublicDnsNamespaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
456
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
458
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
457
459
  var _c;
458
460
  return __generator(this, function (_d) {
459
461
  switch (_d.label) {
@@ -463,7 +465,6 @@ var deserializeAws_json1_1CreatePublicDnsNamespaceCommandError = function (outpu
463
465
  return [4, parseBody(output.body, context)];
464
466
  case 1:
465
467
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
466
- errorCode = "UnknownError";
467
468
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
468
469
  _b = errorCode;
469
470
  switch (_b) {
@@ -491,10 +492,12 @@ var deserializeAws_json1_1CreatePublicDnsNamespaceCommandError = function (outpu
491
492
  case 11: throw _d.sent();
492
493
  case 12:
493
494
  parsedBody = parsedOutput.body;
495
+ $metadata = deserializeMetadata(output);
496
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
494
497
  response = new __BaseException({
495
- name: parsedBody.code || parsedBody.Code || errorCode,
498
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
496
499
  $fault: "client",
497
- $metadata: deserializeMetadata(output),
500
+ $metadata: $metadata,
498
501
  });
499
502
  throw __decorateServiceException(response, parsedBody);
500
503
  }
@@ -519,7 +522,7 @@ export var deserializeAws_json1_1CreateServiceCommand = function (output, contex
519
522
  });
520
523
  }); };
521
524
  var deserializeAws_json1_1CreateServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
522
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
525
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
523
526
  var _c;
524
527
  return __generator(this, function (_d) {
525
528
  switch (_d.label) {
@@ -529,7 +532,6 @@ var deserializeAws_json1_1CreateServiceCommandError = function (output, context)
529
532
  return [4, parseBody(output.body, context)];
530
533
  case 1:
531
534
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
532
- errorCode = "UnknownError";
533
535
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
534
536
  _b = errorCode;
535
537
  switch (_b) {
@@ -557,10 +559,12 @@ var deserializeAws_json1_1CreateServiceCommandError = function (output, context)
557
559
  case 11: throw _d.sent();
558
560
  case 12:
559
561
  parsedBody = parsedOutput.body;
562
+ $metadata = deserializeMetadata(output);
563
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
560
564
  response = new __BaseException({
561
- name: parsedBody.code || parsedBody.Code || errorCode,
565
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
562
566
  $fault: "client",
563
- $metadata: deserializeMetadata(output),
567
+ $metadata: $metadata,
564
568
  });
565
569
  throw __decorateServiceException(response, parsedBody);
566
570
  }
@@ -585,7 +589,7 @@ export var deserializeAws_json1_1DeleteNamespaceCommand = function (output, cont
585
589
  });
586
590
  }); };
587
591
  var deserializeAws_json1_1DeleteNamespaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
588
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
592
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
589
593
  var _c;
590
594
  return __generator(this, function (_d) {
591
595
  switch (_d.label) {
@@ -595,7 +599,6 @@ var deserializeAws_json1_1DeleteNamespaceCommandError = function (output, contex
595
599
  return [4, parseBody(output.body, context)];
596
600
  case 1:
597
601
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
598
- errorCode = "UnknownError";
599
602
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
600
603
  _b = errorCode;
601
604
  switch (_b) {
@@ -619,10 +622,12 @@ var deserializeAws_json1_1DeleteNamespaceCommandError = function (output, contex
619
622
  case 9: throw _d.sent();
620
623
  case 10:
621
624
  parsedBody = parsedOutput.body;
625
+ $metadata = deserializeMetadata(output);
626
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
622
627
  response = new __BaseException({
623
- name: parsedBody.code || parsedBody.Code || errorCode,
628
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
624
629
  $fault: "client",
625
- $metadata: deserializeMetadata(output),
630
+ $metadata: $metadata,
626
631
  });
627
632
  throw __decorateServiceException(response, parsedBody);
628
633
  }
@@ -647,7 +652,7 @@ export var deserializeAws_json1_1DeleteServiceCommand = function (output, contex
647
652
  });
648
653
  }); };
649
654
  var deserializeAws_json1_1DeleteServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
650
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
655
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
651
656
  var _c;
652
657
  return __generator(this, function (_d) {
653
658
  switch (_d.label) {
@@ -657,7 +662,6 @@ var deserializeAws_json1_1DeleteServiceCommandError = function (output, context)
657
662
  return [4, parseBody(output.body, context)];
658
663
  case 1:
659
664
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
660
- errorCode = "UnknownError";
661
665
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
662
666
  _b = errorCode;
663
667
  switch (_b) {
@@ -677,10 +681,12 @@ var deserializeAws_json1_1DeleteServiceCommandError = function (output, context)
677
681
  case 7: throw _d.sent();
678
682
  case 8:
679
683
  parsedBody = parsedOutput.body;
684
+ $metadata = deserializeMetadata(output);
685
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
680
686
  response = new __BaseException({
681
- name: parsedBody.code || parsedBody.Code || errorCode,
687
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
682
688
  $fault: "client",
683
- $metadata: deserializeMetadata(output),
689
+ $metadata: $metadata,
684
690
  });
685
691
  throw __decorateServiceException(response, parsedBody);
686
692
  }
@@ -705,7 +711,7 @@ export var deserializeAws_json1_1DeregisterInstanceCommand = function (output, c
705
711
  });
706
712
  }); };
707
713
  var deserializeAws_json1_1DeregisterInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
708
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
714
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
709
715
  var _c;
710
716
  return __generator(this, function (_d) {
711
717
  switch (_d.label) {
@@ -715,7 +721,6 @@ var deserializeAws_json1_1DeregisterInstanceCommandError = function (output, con
715
721
  return [4, parseBody(output.body, context)];
716
722
  case 1:
717
723
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
718
- errorCode = "UnknownError";
719
724
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
720
725
  _b = errorCode;
721
726
  switch (_b) {
@@ -743,10 +748,12 @@ var deserializeAws_json1_1DeregisterInstanceCommandError = function (output, con
743
748
  case 11: throw _d.sent();
744
749
  case 12:
745
750
  parsedBody = parsedOutput.body;
751
+ $metadata = deserializeMetadata(output);
752
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
746
753
  response = new __BaseException({
747
- name: parsedBody.code || parsedBody.Code || errorCode,
754
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
748
755
  $fault: "client",
749
- $metadata: deserializeMetadata(output),
756
+ $metadata: $metadata,
750
757
  });
751
758
  throw __decorateServiceException(response, parsedBody);
752
759
  }
@@ -771,7 +778,7 @@ export var deserializeAws_json1_1DiscoverInstancesCommand = function (output, co
771
778
  });
772
779
  }); };
773
780
  var deserializeAws_json1_1DiscoverInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
774
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
781
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
775
782
  var _c;
776
783
  return __generator(this, function (_d) {
777
784
  switch (_d.label) {
@@ -781,7 +788,6 @@ var deserializeAws_json1_1DiscoverInstancesCommandError = function (output, cont
781
788
  return [4, parseBody(output.body, context)];
782
789
  case 1:
783
790
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
784
- errorCode = "UnknownError";
785
791
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
786
792
  _b = errorCode;
787
793
  switch (_b) {
@@ -805,10 +811,12 @@ var deserializeAws_json1_1DiscoverInstancesCommandError = function (output, cont
805
811
  case 9: throw _d.sent();
806
812
  case 10:
807
813
  parsedBody = parsedOutput.body;
814
+ $metadata = deserializeMetadata(output);
815
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
808
816
  response = new __BaseException({
809
- name: parsedBody.code || parsedBody.Code || errorCode,
817
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
810
818
  $fault: "client",
811
- $metadata: deserializeMetadata(output),
819
+ $metadata: $metadata,
812
820
  });
813
821
  throw __decorateServiceException(response, parsedBody);
814
822
  }
@@ -833,7 +841,7 @@ export var deserializeAws_json1_1GetInstanceCommand = function (output, context)
833
841
  });
834
842
  }); };
835
843
  var deserializeAws_json1_1GetInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
836
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
844
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
837
845
  var _c;
838
846
  return __generator(this, function (_d) {
839
847
  switch (_d.label) {
@@ -843,7 +851,6 @@ var deserializeAws_json1_1GetInstanceCommandError = function (output, context) {
843
851
  return [4, parseBody(output.body, context)];
844
852
  case 1:
845
853
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
846
- errorCode = "UnknownError";
847
854
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
848
855
  _b = errorCode;
849
856
  switch (_b) {
@@ -863,10 +870,12 @@ var deserializeAws_json1_1GetInstanceCommandError = function (output, context) {
863
870
  case 7: throw _d.sent();
864
871
  case 8:
865
872
  parsedBody = parsedOutput.body;
873
+ $metadata = deserializeMetadata(output);
874
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
866
875
  response = new __BaseException({
867
- name: parsedBody.code || parsedBody.Code || errorCode,
876
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
868
877
  $fault: "client",
869
- $metadata: deserializeMetadata(output),
878
+ $metadata: $metadata,
870
879
  });
871
880
  throw __decorateServiceException(response, parsedBody);
872
881
  }
@@ -891,7 +900,7 @@ export var deserializeAws_json1_1GetInstancesHealthStatusCommand = function (out
891
900
  });
892
901
  }); };
893
902
  var deserializeAws_json1_1GetInstancesHealthStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
894
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
903
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
895
904
  var _c;
896
905
  return __generator(this, function (_d) {
897
906
  switch (_d.label) {
@@ -901,7 +910,6 @@ var deserializeAws_json1_1GetInstancesHealthStatusCommandError = function (outpu
901
910
  return [4, parseBody(output.body, context)];
902
911
  case 1:
903
912
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
904
- errorCode = "UnknownError";
905
913
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
906
914
  _b = errorCode;
907
915
  switch (_b) {
@@ -921,10 +929,12 @@ var deserializeAws_json1_1GetInstancesHealthStatusCommandError = function (outpu
921
929
  case 7: throw _d.sent();
922
930
  case 8:
923
931
  parsedBody = parsedOutput.body;
932
+ $metadata = deserializeMetadata(output);
933
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
924
934
  response = new __BaseException({
925
- name: parsedBody.code || parsedBody.Code || errorCode,
935
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
926
936
  $fault: "client",
927
- $metadata: deserializeMetadata(output),
937
+ $metadata: $metadata,
928
938
  });
929
939
  throw __decorateServiceException(response, parsedBody);
930
940
  }
@@ -949,7 +959,7 @@ export var deserializeAws_json1_1GetNamespaceCommand = function (output, context
949
959
  });
950
960
  }); };
951
961
  var deserializeAws_json1_1GetNamespaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
952
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
962
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
953
963
  var _c;
954
964
  return __generator(this, function (_d) {
955
965
  switch (_d.label) {
@@ -959,7 +969,6 @@ var deserializeAws_json1_1GetNamespaceCommandError = function (output, context)
959
969
  return [4, parseBody(output.body, context)];
960
970
  case 1:
961
971
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
962
- errorCode = "UnknownError";
963
972
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
964
973
  _b = errorCode;
965
974
  switch (_b) {
@@ -975,10 +984,12 @@ var deserializeAws_json1_1GetNamespaceCommandError = function (output, context)
975
984
  case 5: throw _d.sent();
976
985
  case 6:
977
986
  parsedBody = parsedOutput.body;
987
+ $metadata = deserializeMetadata(output);
988
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
978
989
  response = new __BaseException({
979
- name: parsedBody.code || parsedBody.Code || errorCode,
990
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
980
991
  $fault: "client",
981
- $metadata: deserializeMetadata(output),
992
+ $metadata: $metadata,
982
993
  });
983
994
  throw __decorateServiceException(response, parsedBody);
984
995
  }
@@ -1003,7 +1014,7 @@ export var deserializeAws_json1_1GetOperationCommand = function (output, context
1003
1014
  });
1004
1015
  }); };
1005
1016
  var deserializeAws_json1_1GetOperationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1006
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1017
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1007
1018
  var _c;
1008
1019
  return __generator(this, function (_d) {
1009
1020
  switch (_d.label) {
@@ -1013,7 +1024,6 @@ var deserializeAws_json1_1GetOperationCommandError = function (output, context)
1013
1024
  return [4, parseBody(output.body, context)];
1014
1025
  case 1:
1015
1026
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1016
- errorCode = "UnknownError";
1017
1027
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1018
1028
  _b = errorCode;
1019
1029
  switch (_b) {
@@ -1029,10 +1039,12 @@ var deserializeAws_json1_1GetOperationCommandError = function (output, context)
1029
1039
  case 5: throw _d.sent();
1030
1040
  case 6:
1031
1041
  parsedBody = parsedOutput.body;
1042
+ $metadata = deserializeMetadata(output);
1043
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1032
1044
  response = new __BaseException({
1033
- name: parsedBody.code || parsedBody.Code || errorCode,
1045
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1034
1046
  $fault: "client",
1035
- $metadata: deserializeMetadata(output),
1047
+ $metadata: $metadata,
1036
1048
  });
1037
1049
  throw __decorateServiceException(response, parsedBody);
1038
1050
  }
@@ -1057,7 +1069,7 @@ export var deserializeAws_json1_1GetServiceCommand = function (output, context)
1057
1069
  });
1058
1070
  }); };
1059
1071
  var deserializeAws_json1_1GetServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1060
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1072
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1061
1073
  var _c;
1062
1074
  return __generator(this, function (_d) {
1063
1075
  switch (_d.label) {
@@ -1067,7 +1079,6 @@ var deserializeAws_json1_1GetServiceCommandError = function (output, context) {
1067
1079
  return [4, parseBody(output.body, context)];
1068
1080
  case 1:
1069
1081
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1070
- errorCode = "UnknownError";
1071
1082
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1072
1083
  _b = errorCode;
1073
1084
  switch (_b) {
@@ -1083,10 +1094,12 @@ var deserializeAws_json1_1GetServiceCommandError = function (output, context) {
1083
1094
  case 5: throw _d.sent();
1084
1095
  case 6:
1085
1096
  parsedBody = parsedOutput.body;
1097
+ $metadata = deserializeMetadata(output);
1098
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1086
1099
  response = new __BaseException({
1087
- name: parsedBody.code || parsedBody.Code || errorCode,
1100
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1088
1101
  $fault: "client",
1089
- $metadata: deserializeMetadata(output),
1102
+ $metadata: $metadata,
1090
1103
  });
1091
1104
  throw __decorateServiceException(response, parsedBody);
1092
1105
  }
@@ -1111,7 +1124,7 @@ export var deserializeAws_json1_1ListInstancesCommand = function (output, contex
1111
1124
  });
1112
1125
  }); };
1113
1126
  var deserializeAws_json1_1ListInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1114
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1127
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1115
1128
  var _c;
1116
1129
  return __generator(this, function (_d) {
1117
1130
  switch (_d.label) {
@@ -1121,7 +1134,6 @@ var deserializeAws_json1_1ListInstancesCommandError = function (output, context)
1121
1134
  return [4, parseBody(output.body, context)];
1122
1135
  case 1:
1123
1136
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1124
- errorCode = "UnknownError";
1125
1137
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1126
1138
  _b = errorCode;
1127
1139
  switch (_b) {
@@ -1137,10 +1149,12 @@ var deserializeAws_json1_1ListInstancesCommandError = function (output, context)
1137
1149
  case 5: throw _d.sent();
1138
1150
  case 6:
1139
1151
  parsedBody = parsedOutput.body;
1152
+ $metadata = deserializeMetadata(output);
1153
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1140
1154
  response = new __BaseException({
1141
- name: parsedBody.code || parsedBody.Code || errorCode,
1155
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1142
1156
  $fault: "client",
1143
- $metadata: deserializeMetadata(output),
1157
+ $metadata: $metadata,
1144
1158
  });
1145
1159
  throw __decorateServiceException(response, parsedBody);
1146
1160
  }
@@ -1165,7 +1179,7 @@ export var deserializeAws_json1_1ListNamespacesCommand = function (output, conte
1165
1179
  });
1166
1180
  }); };
1167
1181
  var deserializeAws_json1_1ListNamespacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1168
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1182
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1169
1183
  var _c;
1170
1184
  return __generator(this, function (_d) {
1171
1185
  switch (_d.label) {
@@ -1175,7 +1189,6 @@ var deserializeAws_json1_1ListNamespacesCommandError = function (output, context
1175
1189
  return [4, parseBody(output.body, context)];
1176
1190
  case 1:
1177
1191
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1178
- errorCode = "UnknownError";
1179
1192
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1180
1193
  _b = errorCode;
1181
1194
  switch (_b) {
@@ -1187,10 +1200,12 @@ var deserializeAws_json1_1ListNamespacesCommandError = function (output, context
1187
1200
  case 3: throw _d.sent();
1188
1201
  case 4:
1189
1202
  parsedBody = parsedOutput.body;
1203
+ $metadata = deserializeMetadata(output);
1204
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1190
1205
  response = new __BaseException({
1191
- name: parsedBody.code || parsedBody.Code || errorCode,
1206
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1192
1207
  $fault: "client",
1193
- $metadata: deserializeMetadata(output),
1208
+ $metadata: $metadata,
1194
1209
  });
1195
1210
  throw __decorateServiceException(response, parsedBody);
1196
1211
  }
@@ -1215,7 +1230,7 @@ export var deserializeAws_json1_1ListOperationsCommand = function (output, conte
1215
1230
  });
1216
1231
  }); };
1217
1232
  var deserializeAws_json1_1ListOperationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1218
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1233
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1219
1234
  var _c;
1220
1235
  return __generator(this, function (_d) {
1221
1236
  switch (_d.label) {
@@ -1225,7 +1240,6 @@ var deserializeAws_json1_1ListOperationsCommandError = function (output, context
1225
1240
  return [4, parseBody(output.body, context)];
1226
1241
  case 1:
1227
1242
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1228
- errorCode = "UnknownError";
1229
1243
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1230
1244
  _b = errorCode;
1231
1245
  switch (_b) {
@@ -1237,10 +1251,12 @@ var deserializeAws_json1_1ListOperationsCommandError = function (output, context
1237
1251
  case 3: throw _d.sent();
1238
1252
  case 4:
1239
1253
  parsedBody = parsedOutput.body;
1254
+ $metadata = deserializeMetadata(output);
1255
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1240
1256
  response = new __BaseException({
1241
- name: parsedBody.code || parsedBody.Code || errorCode,
1257
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1242
1258
  $fault: "client",
1243
- $metadata: deserializeMetadata(output),
1259
+ $metadata: $metadata,
1244
1260
  });
1245
1261
  throw __decorateServiceException(response, parsedBody);
1246
1262
  }
@@ -1265,7 +1281,7 @@ export var deserializeAws_json1_1ListServicesCommand = function (output, context
1265
1281
  });
1266
1282
  }); };
1267
1283
  var deserializeAws_json1_1ListServicesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1268
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1284
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1269
1285
  var _c;
1270
1286
  return __generator(this, function (_d) {
1271
1287
  switch (_d.label) {
@@ -1275,7 +1291,6 @@ var deserializeAws_json1_1ListServicesCommandError = function (output, context)
1275
1291
  return [4, parseBody(output.body, context)];
1276
1292
  case 1:
1277
1293
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1278
- errorCode = "UnknownError";
1279
1294
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1280
1295
  _b = errorCode;
1281
1296
  switch (_b) {
@@ -1287,10 +1302,12 @@ var deserializeAws_json1_1ListServicesCommandError = function (output, context)
1287
1302
  case 3: throw _d.sent();
1288
1303
  case 4:
1289
1304
  parsedBody = parsedOutput.body;
1305
+ $metadata = deserializeMetadata(output);
1306
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1290
1307
  response = new __BaseException({
1291
- name: parsedBody.code || parsedBody.Code || errorCode,
1308
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1292
1309
  $fault: "client",
1293
- $metadata: deserializeMetadata(output),
1310
+ $metadata: $metadata,
1294
1311
  });
1295
1312
  throw __decorateServiceException(response, parsedBody);
1296
1313
  }
@@ -1315,7 +1332,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
1315
1332
  });
1316
1333
  }); };
1317
1334
  var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1318
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1335
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1319
1336
  var _c;
1320
1337
  return __generator(this, function (_d) {
1321
1338
  switch (_d.label) {
@@ -1325,7 +1342,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
1325
1342
  return [4, parseBody(output.body, context)];
1326
1343
  case 1:
1327
1344
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1328
- errorCode = "UnknownError";
1329
1345
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1330
1346
  _b = errorCode;
1331
1347
  switch (_b) {
@@ -1341,10 +1357,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
1341
1357
  case 5: throw _d.sent();
1342
1358
  case 6:
1343
1359
  parsedBody = parsedOutput.body;
1360
+ $metadata = deserializeMetadata(output);
1361
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1344
1362
  response = new __BaseException({
1345
- name: parsedBody.code || parsedBody.Code || errorCode,
1363
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1346
1364
  $fault: "client",
1347
- $metadata: deserializeMetadata(output),
1365
+ $metadata: $metadata,
1348
1366
  });
1349
1367
  throw __decorateServiceException(response, parsedBody);
1350
1368
  }
@@ -1369,7 +1387,7 @@ export var deserializeAws_json1_1RegisterInstanceCommand = function (output, con
1369
1387
  });
1370
1388
  }); };
1371
1389
  var deserializeAws_json1_1RegisterInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1372
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1390
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1373
1391
  var _c;
1374
1392
  return __generator(this, function (_d) {
1375
1393
  switch (_d.label) {
@@ -1379,7 +1397,6 @@ var deserializeAws_json1_1RegisterInstanceCommandError = function (output, conte
1379
1397
  return [4, parseBody(output.body, context)];
1380
1398
  case 1:
1381
1399
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1382
- errorCode = "UnknownError";
1383
1400
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1384
1401
  _b = errorCode;
1385
1402
  switch (_b) {
@@ -1407,10 +1424,12 @@ var deserializeAws_json1_1RegisterInstanceCommandError = function (output, conte
1407
1424
  case 11: throw _d.sent();
1408
1425
  case 12:
1409
1426
  parsedBody = parsedOutput.body;
1427
+ $metadata = deserializeMetadata(output);
1428
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1410
1429
  response = new __BaseException({
1411
- name: parsedBody.code || parsedBody.Code || errorCode,
1430
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1412
1431
  $fault: "client",
1413
- $metadata: deserializeMetadata(output),
1432
+ $metadata: $metadata,
1414
1433
  });
1415
1434
  throw __decorateServiceException(response, parsedBody);
1416
1435
  }
@@ -1435,7 +1454,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
1435
1454
  });
1436
1455
  }); };
1437
1456
  var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1438
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1457
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1439
1458
  var _c;
1440
1459
  return __generator(this, function (_d) {
1441
1460
  switch (_d.label) {
@@ -1445,7 +1464,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
1445
1464
  return [4, parseBody(output.body, context)];
1446
1465
  case 1:
1447
1466
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1448
- errorCode = "UnknownError";
1449
1467
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1450
1468
  _b = errorCode;
1451
1469
  switch (_b) {
@@ -1465,10 +1483,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
1465
1483
  case 7: throw _d.sent();
1466
1484
  case 8:
1467
1485
  parsedBody = parsedOutput.body;
1486
+ $metadata = deserializeMetadata(output);
1487
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1468
1488
  response = new __BaseException({
1469
- name: parsedBody.code || parsedBody.Code || errorCode,
1489
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1470
1490
  $fault: "client",
1471
- $metadata: deserializeMetadata(output),
1491
+ $metadata: $metadata,
1472
1492
  });
1473
1493
  throw __decorateServiceException(response, parsedBody);
1474
1494
  }
@@ -1493,7 +1513,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
1493
1513
  });
1494
1514
  }); };
1495
1515
  var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1496
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1516
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1497
1517
  var _c;
1498
1518
  return __generator(this, function (_d) {
1499
1519
  switch (_d.label) {
@@ -1503,7 +1523,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
1503
1523
  return [4, parseBody(output.body, context)];
1504
1524
  case 1:
1505
1525
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1506
- errorCode = "UnknownError";
1507
1526
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1508
1527
  _b = errorCode;
1509
1528
  switch (_b) {
@@ -1519,10 +1538,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
1519
1538
  case 5: throw _d.sent();
1520
1539
  case 6:
1521
1540
  parsedBody = parsedOutput.body;
1541
+ $metadata = deserializeMetadata(output);
1542
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1522
1543
  response = new __BaseException({
1523
- name: parsedBody.code || parsedBody.Code || errorCode,
1544
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1524
1545
  $fault: "client",
1525
- $metadata: deserializeMetadata(output),
1546
+ $metadata: $metadata,
1526
1547
  });
1527
1548
  throw __decorateServiceException(response, parsedBody);
1528
1549
  }
@@ -1547,7 +1568,7 @@ export var deserializeAws_json1_1UpdateHttpNamespaceCommand = function (output,
1547
1568
  });
1548
1569
  }); };
1549
1570
  var deserializeAws_json1_1UpdateHttpNamespaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1550
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1571
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1551
1572
  var _c;
1552
1573
  return __generator(this, function (_d) {
1553
1574
  switch (_d.label) {
@@ -1557,7 +1578,6 @@ var deserializeAws_json1_1UpdateHttpNamespaceCommandError = function (output, co
1557
1578
  return [4, parseBody(output.body, context)];
1558
1579
  case 1:
1559
1580
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1560
- errorCode = "UnknownError";
1561
1581
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1562
1582
  _b = errorCode;
1563
1583
  switch (_b) {
@@ -1581,10 +1601,12 @@ var deserializeAws_json1_1UpdateHttpNamespaceCommandError = function (output, co
1581
1601
  case 9: throw _d.sent();
1582
1602
  case 10:
1583
1603
  parsedBody = parsedOutput.body;
1604
+ $metadata = deserializeMetadata(output);
1605
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1584
1606
  response = new __BaseException({
1585
- name: parsedBody.code || parsedBody.Code || errorCode,
1607
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1586
1608
  $fault: "client",
1587
- $metadata: deserializeMetadata(output),
1609
+ $metadata: $metadata,
1588
1610
  });
1589
1611
  throw __decorateServiceException(response, parsedBody);
1590
1612
  }
@@ -1609,7 +1631,7 @@ export var deserializeAws_json1_1UpdateInstanceCustomHealthStatusCommand = funct
1609
1631
  });
1610
1632
  }); };
1611
1633
  var deserializeAws_json1_1UpdateInstanceCustomHealthStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1612
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1634
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1613
1635
  var _c;
1614
1636
  return __generator(this, function (_d) {
1615
1637
  switch (_d.label) {
@@ -1619,7 +1641,6 @@ var deserializeAws_json1_1UpdateInstanceCustomHealthStatusCommandError = functio
1619
1641
  return [4, parseBody(output.body, context)];
1620
1642
  case 1:
1621
1643
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1622
- errorCode = "UnknownError";
1623
1644
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1624
1645
  _b = errorCode;
1625
1646
  switch (_b) {
@@ -1643,10 +1664,12 @@ var deserializeAws_json1_1UpdateInstanceCustomHealthStatusCommandError = functio
1643
1664
  case 9: throw _d.sent();
1644
1665
  case 10:
1645
1666
  parsedBody = parsedOutput.body;
1667
+ $metadata = deserializeMetadata(output);
1668
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1646
1669
  response = new __BaseException({
1647
- name: parsedBody.code || parsedBody.Code || errorCode,
1670
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1648
1671
  $fault: "client",
1649
- $metadata: deserializeMetadata(output),
1672
+ $metadata: $metadata,
1650
1673
  });
1651
1674
  throw __decorateServiceException(response, parsedBody);
1652
1675
  }
@@ -1671,7 +1694,7 @@ export var deserializeAws_json1_1UpdatePrivateDnsNamespaceCommand = function (ou
1671
1694
  });
1672
1695
  }); };
1673
1696
  var deserializeAws_json1_1UpdatePrivateDnsNamespaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1674
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1697
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1675
1698
  var _c;
1676
1699
  return __generator(this, function (_d) {
1677
1700
  switch (_d.label) {
@@ -1681,7 +1704,6 @@ var deserializeAws_json1_1UpdatePrivateDnsNamespaceCommandError = function (outp
1681
1704
  return [4, parseBody(output.body, context)];
1682
1705
  case 1:
1683
1706
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1684
- errorCode = "UnknownError";
1685
1707
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1686
1708
  _b = errorCode;
1687
1709
  switch (_b) {
@@ -1705,10 +1727,12 @@ var deserializeAws_json1_1UpdatePrivateDnsNamespaceCommandError = function (outp
1705
1727
  case 9: throw _d.sent();
1706
1728
  case 10:
1707
1729
  parsedBody = parsedOutput.body;
1730
+ $metadata = deserializeMetadata(output);
1731
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1708
1732
  response = new __BaseException({
1709
- name: parsedBody.code || parsedBody.Code || errorCode,
1733
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1710
1734
  $fault: "client",
1711
- $metadata: deserializeMetadata(output),
1735
+ $metadata: $metadata,
1712
1736
  });
1713
1737
  throw __decorateServiceException(response, parsedBody);
1714
1738
  }
@@ -1733,7 +1757,7 @@ export var deserializeAws_json1_1UpdatePublicDnsNamespaceCommand = function (out
1733
1757
  });
1734
1758
  }); };
1735
1759
  var deserializeAws_json1_1UpdatePublicDnsNamespaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1736
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1760
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1737
1761
  var _c;
1738
1762
  return __generator(this, function (_d) {
1739
1763
  switch (_d.label) {
@@ -1743,7 +1767,6 @@ var deserializeAws_json1_1UpdatePublicDnsNamespaceCommandError = function (outpu
1743
1767
  return [4, parseBody(output.body, context)];
1744
1768
  case 1:
1745
1769
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1746
- errorCode = "UnknownError";
1747
1770
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1748
1771
  _b = errorCode;
1749
1772
  switch (_b) {
@@ -1767,10 +1790,12 @@ var deserializeAws_json1_1UpdatePublicDnsNamespaceCommandError = function (outpu
1767
1790
  case 9: throw _d.sent();
1768
1791
  case 10:
1769
1792
  parsedBody = parsedOutput.body;
1793
+ $metadata = deserializeMetadata(output);
1794
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1770
1795
  response = new __BaseException({
1771
- name: parsedBody.code || parsedBody.Code || errorCode,
1796
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1772
1797
  $fault: "client",
1773
- $metadata: deserializeMetadata(output),
1798
+ $metadata: $metadata,
1774
1799
  });
1775
1800
  throw __decorateServiceException(response, parsedBody);
1776
1801
  }
@@ -1795,7 +1820,7 @@ export var deserializeAws_json1_1UpdateServiceCommand = function (output, contex
1795
1820
  });
1796
1821
  }); };
1797
1822
  var deserializeAws_json1_1UpdateServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1798
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1823
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1799
1824
  var _c;
1800
1825
  return __generator(this, function (_d) {
1801
1826
  switch (_d.label) {
@@ -1805,7 +1830,6 @@ var deserializeAws_json1_1UpdateServiceCommandError = function (output, context)
1805
1830
  return [4, parseBody(output.body, context)];
1806
1831
  case 1:
1807
1832
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1808
- errorCode = "UnknownError";
1809
1833
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1810
1834
  _b = errorCode;
1811
1835
  switch (_b) {
@@ -1825,10 +1849,12 @@ var deserializeAws_json1_1UpdateServiceCommandError = function (output, context)
1825
1849
  case 7: throw _d.sent();
1826
1850
  case 8:
1827
1851
  parsedBody = parsedOutput.body;
1852
+ $metadata = deserializeMetadata(output);
1853
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1828
1854
  response = new __BaseException({
1829
- name: parsedBody.code || parsedBody.Code || errorCode,
1855
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1830
1856
  $fault: "client",
1831
- $metadata: deserializeMetadata(output),
1857
+ $metadata: $metadata,
1832
1858
  });
1833
1859
  throw __decorateServiceException(response, parsedBody);
1834
1860
  }
@@ -1972,61 +1998,52 @@ var serializeAws_json1_1Attributes = function (input, context) {
1972
1998
  };
1973
1999
  var serializeAws_json1_1CreateHttpNamespaceRequest = function (input, context) {
1974
2000
  var _a;
1975
- return __assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2001
+ return __assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
1976
2002
  };
1977
2003
  var serializeAws_json1_1CreatePrivateDnsNamespaceRequest = function (input, context) {
1978
2004
  var _a;
1979
- return __assign(__assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Properties !== undefined &&
1980
- input.Properties !== null && {
2005
+ return __assign(__assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Properties != null && {
1981
2006
  Properties: serializeAws_json1_1PrivateDnsNamespaceProperties(input.Properties, context),
1982
- })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Vpc !== undefined && input.Vpc !== null && { Vpc: input.Vpc }));
2007
+ })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Vpc != null && { Vpc: input.Vpc }));
1983
2008
  };
1984
2009
  var serializeAws_json1_1CreatePublicDnsNamespaceRequest = function (input, context) {
1985
2010
  var _a;
1986
- return __assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Properties !== undefined &&
1987
- input.Properties !== null && {
2011
+ return __assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Properties != null && {
1988
2012
  Properties: serializeAws_json1_1PublicDnsNamespaceProperties(input.Properties, context),
1989
- })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2013
+ })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
1990
2014
  };
1991
2015
  var serializeAws_json1_1CreateServiceRequest = function (input, context) {
1992
2016
  var _a;
1993
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DnsConfig !== undefined &&
1994
- input.DnsConfig !== null && { DnsConfig: serializeAws_json1_1DnsConfig(input.DnsConfig, context) })), (input.HealthCheckConfig !== undefined &&
1995
- input.HealthCheckConfig !== null && {
2017
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.DnsConfig != null && { DnsConfig: serializeAws_json1_1DnsConfig(input.DnsConfig, context) })), (input.HealthCheckConfig != null && {
1996
2018
  HealthCheckConfig: serializeAws_json1_1HealthCheckConfig(input.HealthCheckConfig, context),
1997
- })), (input.HealthCheckCustomConfig !== undefined &&
1998
- input.HealthCheckCustomConfig !== null && {
2019
+ })), (input.HealthCheckCustomConfig != null && {
1999
2020
  HealthCheckCustomConfig: serializeAws_json1_1HealthCheckCustomConfig(input.HealthCheckCustomConfig, context),
2000
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NamespaceId !== undefined && input.NamespaceId !== null && { NamespaceId: input.NamespaceId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2021
+ })), (input.Name != null && { Name: input.Name })), (input.NamespaceId != null && { NamespaceId: input.NamespaceId })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Type != null && { Type: input.Type }));
2001
2022
  };
2002
2023
  var serializeAws_json1_1DeleteNamespaceRequest = function (input, context) {
2003
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
2024
+ return __assign({}, (input.Id != null && { Id: input.Id }));
2004
2025
  };
2005
2026
  var serializeAws_json1_1DeleteServiceRequest = function (input, context) {
2006
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
2027
+ return __assign({}, (input.Id != null && { Id: input.Id }));
2007
2028
  };
2008
2029
  var serializeAws_json1_1DeregisterInstanceRequest = function (input, context) {
2009
- return __assign(__assign({}, (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2030
+ return __assign(__assign({}, (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2010
2031
  };
2011
2032
  var serializeAws_json1_1DiscoverInstancesRequest = function (input, context) {
2012
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.HealthStatus !== undefined && input.HealthStatus !== null && { HealthStatus: input.HealthStatus })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NamespaceName !== undefined && input.NamespaceName !== null && { NamespaceName: input.NamespaceName })), (input.OptionalParameters !== undefined &&
2013
- input.OptionalParameters !== null && {
2033
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.HealthStatus != null && { HealthStatus: input.HealthStatus })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NamespaceName != null && { NamespaceName: input.NamespaceName })), (input.OptionalParameters != null && {
2014
2034
  OptionalParameters: serializeAws_json1_1Attributes(input.OptionalParameters, context),
2015
- })), (input.QueryParameters !== undefined &&
2016
- input.QueryParameters !== null && {
2035
+ })), (input.QueryParameters != null && {
2017
2036
  QueryParameters: serializeAws_json1_1Attributes(input.QueryParameters, context),
2018
- })), (input.ServiceName !== undefined && input.ServiceName !== null && { ServiceName: input.ServiceName }));
2037
+ })), (input.ServiceName != null && { ServiceName: input.ServiceName }));
2019
2038
  };
2020
2039
  var serializeAws_json1_1DnsConfig = function (input, context) {
2021
- return __assign(__assign(__assign({}, (input.DnsRecords !== undefined &&
2022
- input.DnsRecords !== null && { DnsRecords: serializeAws_json1_1DnsRecordList(input.DnsRecords, context) })), (input.NamespaceId !== undefined && input.NamespaceId !== null && { NamespaceId: input.NamespaceId })), (input.RoutingPolicy !== undefined && input.RoutingPolicy !== null && { RoutingPolicy: input.RoutingPolicy }));
2040
+ return __assign(__assign(__assign({}, (input.DnsRecords != null && { DnsRecords: serializeAws_json1_1DnsRecordList(input.DnsRecords, context) })), (input.NamespaceId != null && { NamespaceId: input.NamespaceId })), (input.RoutingPolicy != null && { RoutingPolicy: input.RoutingPolicy }));
2023
2041
  };
2024
2042
  var serializeAws_json1_1DnsConfigChange = function (input, context) {
2025
- return __assign({}, (input.DnsRecords !== undefined &&
2026
- input.DnsRecords !== null && { DnsRecords: serializeAws_json1_1DnsRecordList(input.DnsRecords, context) }));
2043
+ return __assign({}, (input.DnsRecords != null && { DnsRecords: serializeAws_json1_1DnsRecordList(input.DnsRecords, context) }));
2027
2044
  };
2028
2045
  var serializeAws_json1_1DnsRecord = function (input, context) {
2029
- return __assign(__assign({}, (input.TTL !== undefined && input.TTL !== null && { TTL: input.TTL })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2046
+ return __assign(__assign({}, (input.TTL != null && { TTL: input.TTL })), (input.Type != null && { Type: input.Type }));
2030
2047
  };
2031
2048
  var serializeAws_json1_1DnsRecordList = function (input, context) {
2032
2049
  return input
@@ -2049,31 +2066,28 @@ var serializeAws_json1_1FilterValues = function (input, context) {
2049
2066
  });
2050
2067
  };
2051
2068
  var serializeAws_json1_1GetInstanceRequest = function (input, context) {
2052
- return __assign(__assign({}, (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2069
+ return __assign(__assign({}, (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2053
2070
  };
2054
2071
  var serializeAws_json1_1GetInstancesHealthStatusRequest = function (input, context) {
2055
- return __assign(__assign(__assign(__assign({}, (input.Instances !== undefined &&
2056
- input.Instances !== null && { Instances: serializeAws_json1_1InstanceIdList(input.Instances, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2072
+ return __assign(__assign(__assign(__assign({}, (input.Instances != null && { Instances: serializeAws_json1_1InstanceIdList(input.Instances, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2057
2073
  };
2058
2074
  var serializeAws_json1_1GetNamespaceRequest = function (input, context) {
2059
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
2075
+ return __assign({}, (input.Id != null && { Id: input.Id }));
2060
2076
  };
2061
2077
  var serializeAws_json1_1GetOperationRequest = function (input, context) {
2062
- return __assign({}, (input.OperationId !== undefined && input.OperationId !== null && { OperationId: input.OperationId }));
2078
+ return __assign({}, (input.OperationId != null && { OperationId: input.OperationId }));
2063
2079
  };
2064
2080
  var serializeAws_json1_1GetServiceRequest = function (input, context) {
2065
- return __assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id }));
2081
+ return __assign({}, (input.Id != null && { Id: input.Id }));
2066
2082
  };
2067
2083
  var serializeAws_json1_1HealthCheckConfig = function (input, context) {
2068
- return __assign(__assign(__assign({}, (input.FailureThreshold !== undefined &&
2069
- input.FailureThreshold !== null && { FailureThreshold: input.FailureThreshold })), (input.ResourcePath !== undefined && input.ResourcePath !== null && { ResourcePath: input.ResourcePath })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2084
+ return __assign(__assign(__assign({}, (input.FailureThreshold != null && { FailureThreshold: input.FailureThreshold })), (input.ResourcePath != null && { ResourcePath: input.ResourcePath })), (input.Type != null && { Type: input.Type }));
2070
2085
  };
2071
2086
  var serializeAws_json1_1HealthCheckCustomConfig = function (input, context) {
2072
- return __assign({}, (input.FailureThreshold !== undefined &&
2073
- input.FailureThreshold !== null && { FailureThreshold: input.FailureThreshold }));
2087
+ return __assign({}, (input.FailureThreshold != null && { FailureThreshold: input.FailureThreshold }));
2074
2088
  };
2075
2089
  var serializeAws_json1_1HttpNamespaceChange = function (input, context) {
2076
- return __assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description }));
2090
+ return __assign({}, (input.Description != null && { Description: input.Description }));
2077
2091
  };
2078
2092
  var serializeAws_json1_1InstanceIdList = function (input, context) {
2079
2093
  return input
@@ -2086,26 +2100,22 @@ var serializeAws_json1_1InstanceIdList = function (input, context) {
2086
2100
  });
2087
2101
  };
2088
2102
  var serializeAws_json1_1ListInstancesRequest = function (input, context) {
2089
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2103
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2090
2104
  };
2091
2105
  var serializeAws_json1_1ListNamespacesRequest = function (input, context) {
2092
- return __assign(__assign(__assign({}, (input.Filters !== undefined &&
2093
- input.Filters !== null && { Filters: serializeAws_json1_1NamespaceFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2106
+ return __assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1NamespaceFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2094
2107
  };
2095
2108
  var serializeAws_json1_1ListOperationsRequest = function (input, context) {
2096
- return __assign(__assign(__assign({}, (input.Filters !== undefined &&
2097
- input.Filters !== null && { Filters: serializeAws_json1_1OperationFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2109
+ return __assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1OperationFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2098
2110
  };
2099
2111
  var serializeAws_json1_1ListServicesRequest = function (input, context) {
2100
- return __assign(__assign(__assign({}, (input.Filters !== undefined &&
2101
- input.Filters !== null && { Filters: serializeAws_json1_1ServiceFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
2112
+ return __assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_json1_1ServiceFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
2102
2113
  };
2103
2114
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
2104
- return __assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
2115
+ return __assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
2105
2116
  };
2106
2117
  var serializeAws_json1_1NamespaceFilter = function (input, context) {
2107
- return __assign(__assign(__assign({}, (input.Condition !== undefined && input.Condition !== null && { Condition: input.Condition })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
2108
- input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2118
+ return __assign(__assign(__assign({}, (input.Condition != null && { Condition: input.Condition })), (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2109
2119
  };
2110
2120
  var serializeAws_json1_1NamespaceFilters = function (input, context) {
2111
2121
  return input
@@ -2118,8 +2128,7 @@ var serializeAws_json1_1NamespaceFilters = function (input, context) {
2118
2128
  });
2119
2129
  };
2120
2130
  var serializeAws_json1_1OperationFilter = function (input, context) {
2121
- return __assign(__assign(__assign({}, (input.Condition !== undefined && input.Condition !== null && { Condition: input.Condition })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
2122
- input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2131
+ return __assign(__assign(__assign({}, (input.Condition != null && { Condition: input.Condition })), (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2123
2132
  };
2124
2133
  var serializeAws_json1_1OperationFilters = function (input, context) {
2125
2134
  return input
@@ -2132,68 +2141,58 @@ var serializeAws_json1_1OperationFilters = function (input, context) {
2132
2141
  });
2133
2142
  };
2134
2143
  var serializeAws_json1_1PrivateDnsNamespaceChange = function (input, context) {
2135
- return __assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Properties !== undefined &&
2136
- input.Properties !== null && {
2144
+ return __assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Properties != null && {
2137
2145
  Properties: serializeAws_json1_1PrivateDnsNamespacePropertiesChange(input.Properties, context),
2138
2146
  }));
2139
2147
  };
2140
2148
  var serializeAws_json1_1PrivateDnsNamespaceProperties = function (input, context) {
2141
- return __assign({}, (input.DnsProperties !== undefined &&
2142
- input.DnsProperties !== null && {
2149
+ return __assign({}, (input.DnsProperties != null && {
2143
2150
  DnsProperties: serializeAws_json1_1PrivateDnsPropertiesMutable(input.DnsProperties, context),
2144
2151
  }));
2145
2152
  };
2146
2153
  var serializeAws_json1_1PrivateDnsNamespacePropertiesChange = function (input, context) {
2147
- return __assign({}, (input.DnsProperties !== undefined &&
2148
- input.DnsProperties !== null && {
2154
+ return __assign({}, (input.DnsProperties != null && {
2149
2155
  DnsProperties: serializeAws_json1_1PrivateDnsPropertiesMutableChange(input.DnsProperties, context),
2150
2156
  }));
2151
2157
  };
2152
2158
  var serializeAws_json1_1PrivateDnsPropertiesMutable = function (input, context) {
2153
- return __assign({}, (input.SOA !== undefined && input.SOA !== null && { SOA: serializeAws_json1_1SOA(input.SOA, context) }));
2159
+ return __assign({}, (input.SOA != null && { SOA: serializeAws_json1_1SOA(input.SOA, context) }));
2154
2160
  };
2155
2161
  var serializeAws_json1_1PrivateDnsPropertiesMutableChange = function (input, context) {
2156
- return __assign({}, (input.SOA !== undefined && input.SOA !== null && { SOA: serializeAws_json1_1SOAChange(input.SOA, context) }));
2162
+ return __assign({}, (input.SOA != null && { SOA: serializeAws_json1_1SOAChange(input.SOA, context) }));
2157
2163
  };
2158
2164
  var serializeAws_json1_1PublicDnsNamespaceChange = function (input, context) {
2159
- return __assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Properties !== undefined &&
2160
- input.Properties !== null && {
2165
+ return __assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Properties != null && {
2161
2166
  Properties: serializeAws_json1_1PublicDnsNamespacePropertiesChange(input.Properties, context),
2162
2167
  }));
2163
2168
  };
2164
2169
  var serializeAws_json1_1PublicDnsNamespaceProperties = function (input, context) {
2165
- return __assign({}, (input.DnsProperties !== undefined &&
2166
- input.DnsProperties !== null && {
2170
+ return __assign({}, (input.DnsProperties != null && {
2167
2171
  DnsProperties: serializeAws_json1_1PublicDnsPropertiesMutable(input.DnsProperties, context),
2168
2172
  }));
2169
2173
  };
2170
2174
  var serializeAws_json1_1PublicDnsNamespacePropertiesChange = function (input, context) {
2171
- return __assign({}, (input.DnsProperties !== undefined &&
2172
- input.DnsProperties !== null && {
2175
+ return __assign({}, (input.DnsProperties != null && {
2173
2176
  DnsProperties: serializeAws_json1_1PublicDnsPropertiesMutableChange(input.DnsProperties, context),
2174
2177
  }));
2175
2178
  };
2176
2179
  var serializeAws_json1_1PublicDnsPropertiesMutable = function (input, context) {
2177
- return __assign({}, (input.SOA !== undefined && input.SOA !== null && { SOA: serializeAws_json1_1SOA(input.SOA, context) }));
2180
+ return __assign({}, (input.SOA != null && { SOA: serializeAws_json1_1SOA(input.SOA, context) }));
2178
2181
  };
2179
2182
  var serializeAws_json1_1PublicDnsPropertiesMutableChange = function (input, context) {
2180
- return __assign({}, (input.SOA !== undefined && input.SOA !== null && { SOA: serializeAws_json1_1SOAChange(input.SOA, context) }));
2183
+ return __assign({}, (input.SOA != null && { SOA: serializeAws_json1_1SOAChange(input.SOA, context) }));
2181
2184
  };
2182
2185
  var serializeAws_json1_1RegisterInstanceRequest = function (input, context) {
2183
2186
  var _a;
2184
- return __assign(__assign(__assign(__assign({}, (input.Attributes !== undefined &&
2185
- input.Attributes !== null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) })), { CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId }));
2187
+ return __assign(__assign(__assign(__assign({}, (input.Attributes != null && { Attributes: serializeAws_json1_1Attributes(input.Attributes, context) })), { CreatorRequestId: (_a = input.CreatorRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }), (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ServiceId != null && { ServiceId: input.ServiceId }));
2186
2188
  };
2187
2189
  var serializeAws_json1_1ServiceChange = function (input, context) {
2188
- return __assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.DnsConfig !== undefined &&
2189
- input.DnsConfig !== null && { DnsConfig: serializeAws_json1_1DnsConfigChange(input.DnsConfig, context) })), (input.HealthCheckConfig !== undefined &&
2190
- input.HealthCheckConfig !== null && {
2190
+ return __assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DnsConfig != null && { DnsConfig: serializeAws_json1_1DnsConfigChange(input.DnsConfig, context) })), (input.HealthCheckConfig != null && {
2191
2191
  HealthCheckConfig: serializeAws_json1_1HealthCheckConfig(input.HealthCheckConfig, context),
2192
2192
  }));
2193
2193
  };
2194
2194
  var serializeAws_json1_1ServiceFilter = function (input, context) {
2195
- return __assign(__assign(__assign({}, (input.Condition !== undefined && input.Condition !== null && { Condition: input.Condition })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Values !== undefined &&
2196
- input.Values !== null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2195
+ return __assign(__assign(__assign({}, (input.Condition != null && { Condition: input.Condition })), (input.Name != null && { Name: input.Name })), (input.Values != null && { Values: serializeAws_json1_1FilterValues(input.Values, context) }));
2197
2196
  };
2198
2197
  var serializeAws_json1_1ServiceFilters = function (input, context) {
2199
2198
  return input
@@ -2206,13 +2205,13 @@ var serializeAws_json1_1ServiceFilters = function (input, context) {
2206
2205
  });
2207
2206
  };
2208
2207
  var serializeAws_json1_1SOA = function (input, context) {
2209
- return __assign({}, (input.TTL !== undefined && input.TTL !== null && { TTL: input.TTL }));
2208
+ return __assign({}, (input.TTL != null && { TTL: input.TTL }));
2210
2209
  };
2211
2210
  var serializeAws_json1_1SOAChange = function (input, context) {
2212
- return __assign({}, (input.TTL !== undefined && input.TTL !== null && { TTL: input.TTL }));
2211
+ return __assign({}, (input.TTL != null && { TTL: input.TTL }));
2213
2212
  };
2214
2213
  var serializeAws_json1_1Tag = function (input, context) {
2215
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
2214
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
2216
2215
  };
2217
2216
  var serializeAws_json1_1TagKeyList = function (input, context) {
2218
2217
  return input
@@ -2235,37 +2234,32 @@ var serializeAws_json1_1TagList = function (input, context) {
2235
2234
  });
2236
2235
  };
2237
2236
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
2238
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2237
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
2239
2238
  };
2240
2239
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
2241
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeys !== undefined &&
2242
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
2240
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
2243
2241
  };
2244
2242
  var serializeAws_json1_1UpdateHttpNamespaceRequest = function (input, context) {
2245
2243
  var _a;
2246
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Namespace !== undefined &&
2247
- input.Namespace !== null && { Namespace: serializeAws_json1_1HttpNamespaceChange(input.Namespace, context) })), { UpdaterRequestId: (_a = input.UpdaterRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() });
2244
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Namespace != null && { Namespace: serializeAws_json1_1HttpNamespaceChange(input.Namespace, context) })), { UpdaterRequestId: (_a = input.UpdaterRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() });
2248
2245
  };
2249
2246
  var serializeAws_json1_1UpdateInstanceCustomHealthStatusRequest = function (input, context) {
2250
- return __assign(__assign(__assign({}, (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.ServiceId !== undefined && input.ServiceId !== null && { ServiceId: input.ServiceId })), (input.Status !== undefined && input.Status !== null && { Status: input.Status }));
2247
+ return __assign(__assign(__assign({}, (input.InstanceId != null && { InstanceId: input.InstanceId })), (input.ServiceId != null && { ServiceId: input.ServiceId })), (input.Status != null && { Status: input.Status }));
2251
2248
  };
2252
2249
  var serializeAws_json1_1UpdatePrivateDnsNamespaceRequest = function (input, context) {
2253
2250
  var _a;
2254
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Namespace !== undefined &&
2255
- input.Namespace !== null && {
2251
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Namespace != null && {
2256
2252
  Namespace: serializeAws_json1_1PrivateDnsNamespaceChange(input.Namespace, context),
2257
2253
  })), { UpdaterRequestId: (_a = input.UpdaterRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() });
2258
2254
  };
2259
2255
  var serializeAws_json1_1UpdatePublicDnsNamespaceRequest = function (input, context) {
2260
2256
  var _a;
2261
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Namespace !== undefined &&
2262
- input.Namespace !== null && {
2257
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Namespace != null && {
2263
2258
  Namespace: serializeAws_json1_1PublicDnsNamespaceChange(input.Namespace, context),
2264
2259
  })), { UpdaterRequestId: (_a = input.UpdaterRequestId) !== null && _a !== void 0 ? _a : generateIdempotencyToken() });
2265
2260
  };
2266
2261
  var serializeAws_json1_1UpdateServiceRequest = function (input, context) {
2267
- return __assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Service !== undefined &&
2268
- input.Service !== null && { Service: serializeAws_json1_1ServiceChange(input.Service, context) }));
2262
+ return __assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Service != null && { Service: serializeAws_json1_1ServiceChange(input.Service, context) }));
2269
2263
  };
2270
2264
  var deserializeAws_json1_1Attributes = function (output, context) {
2271
2265
  return Object.entries(output).reduce(function (acc, _a) {
@@ -2294,9 +2288,7 @@ var deserializeAws_json1_1CreatePublicDnsNamespaceResponse = function (output, c
2294
2288
  };
2295
2289
  var deserializeAws_json1_1CreateServiceResponse = function (output, context) {
2296
2290
  return {
2297
- Service: output.Service !== undefined && output.Service !== null
2298
- ? deserializeAws_json1_1Service(output.Service, context)
2299
- : undefined,
2291
+ Service: output.Service != null ? deserializeAws_json1_1Service(output.Service, context) : undefined,
2300
2292
  };
2301
2293
  };
2302
2294
  var deserializeAws_json1_1CustomHealthNotFound = function (output, context) {
@@ -2319,16 +2311,12 @@ var deserializeAws_json1_1DeregisterInstanceResponse = function (output, context
2319
2311
  };
2320
2312
  var deserializeAws_json1_1DiscoverInstancesResponse = function (output, context) {
2321
2313
  return {
2322
- Instances: output.Instances !== undefined && output.Instances !== null
2323
- ? deserializeAws_json1_1HttpInstanceSummaryList(output.Instances, context)
2324
- : undefined,
2314
+ Instances: output.Instances != null ? deserializeAws_json1_1HttpInstanceSummaryList(output.Instances, context) : undefined,
2325
2315
  };
2326
2316
  };
2327
2317
  var deserializeAws_json1_1DnsConfig = function (output, context) {
2328
2318
  return {
2329
- DnsRecords: output.DnsRecords !== undefined && output.DnsRecords !== null
2330
- ? deserializeAws_json1_1DnsRecordList(output.DnsRecords, context)
2331
- : undefined,
2319
+ DnsRecords: output.DnsRecords != null ? deserializeAws_json1_1DnsRecordList(output.DnsRecords, context) : undefined,
2332
2320
  NamespaceId: __expectString(output.NamespaceId),
2333
2321
  RoutingPolicy: __expectString(output.RoutingPolicy),
2334
2322
  };
@@ -2336,7 +2324,7 @@ var deserializeAws_json1_1DnsConfig = function (output, context) {
2336
2324
  var deserializeAws_json1_1DnsProperties = function (output, context) {
2337
2325
  return {
2338
2326
  HostedZoneId: __expectString(output.HostedZoneId),
2339
- SOA: output.SOA !== undefined && output.SOA !== null ? deserializeAws_json1_1SOA(output.SOA, context) : undefined,
2327
+ SOA: output.SOA != null ? deserializeAws_json1_1SOA(output.SOA, context) : undefined,
2340
2328
  };
2341
2329
  };
2342
2330
  var deserializeAws_json1_1DnsRecord = function (output, context) {
@@ -2364,38 +2352,28 @@ var deserializeAws_json1_1DuplicateRequest = function (output, context) {
2364
2352
  };
2365
2353
  var deserializeAws_json1_1GetInstanceResponse = function (output, context) {
2366
2354
  return {
2367
- Instance: output.Instance !== undefined && output.Instance !== null
2368
- ? deserializeAws_json1_1Instance(output.Instance, context)
2369
- : undefined,
2355
+ Instance: output.Instance != null ? deserializeAws_json1_1Instance(output.Instance, context) : undefined,
2370
2356
  };
2371
2357
  };
2372
2358
  var deserializeAws_json1_1GetInstancesHealthStatusResponse = function (output, context) {
2373
2359
  return {
2374
2360
  NextToken: __expectString(output.NextToken),
2375
- Status: output.Status !== undefined && output.Status !== null
2376
- ? deserializeAws_json1_1InstanceHealthStatusMap(output.Status, context)
2377
- : undefined,
2361
+ Status: output.Status != null ? deserializeAws_json1_1InstanceHealthStatusMap(output.Status, context) : undefined,
2378
2362
  };
2379
2363
  };
2380
2364
  var deserializeAws_json1_1GetNamespaceResponse = function (output, context) {
2381
2365
  return {
2382
- Namespace: output.Namespace !== undefined && output.Namespace !== null
2383
- ? deserializeAws_json1_1Namespace(output.Namespace, context)
2384
- : undefined,
2366
+ Namespace: output.Namespace != null ? deserializeAws_json1_1Namespace(output.Namespace, context) : undefined,
2385
2367
  };
2386
2368
  };
2387
2369
  var deserializeAws_json1_1GetOperationResponse = function (output, context) {
2388
2370
  return {
2389
- Operation: output.Operation !== undefined && output.Operation !== null
2390
- ? deserializeAws_json1_1Operation(output.Operation, context)
2391
- : undefined,
2371
+ Operation: output.Operation != null ? deserializeAws_json1_1Operation(output.Operation, context) : undefined,
2392
2372
  };
2393
2373
  };
2394
2374
  var deserializeAws_json1_1GetServiceResponse = function (output, context) {
2395
2375
  return {
2396
- Service: output.Service !== undefined && output.Service !== null
2397
- ? deserializeAws_json1_1Service(output.Service, context)
2398
- : undefined,
2376
+ Service: output.Service != null ? deserializeAws_json1_1Service(output.Service, context) : undefined,
2399
2377
  };
2400
2378
  };
2401
2379
  var deserializeAws_json1_1HealthCheckConfig = function (output, context) {
@@ -2412,9 +2390,7 @@ var deserializeAws_json1_1HealthCheckCustomConfig = function (output, context) {
2412
2390
  };
2413
2391
  var deserializeAws_json1_1HttpInstanceSummary = function (output, context) {
2414
2392
  return {
2415
- Attributes: output.Attributes !== undefined && output.Attributes !== null
2416
- ? deserializeAws_json1_1Attributes(output.Attributes, context)
2417
- : undefined,
2393
+ Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
2418
2394
  HealthStatus: __expectString(output.HealthStatus),
2419
2395
  InstanceId: __expectString(output.InstanceId),
2420
2396
  NamespaceName: __expectString(output.NamespaceName),
@@ -2439,9 +2415,7 @@ var deserializeAws_json1_1HttpProperties = function (output, context) {
2439
2415
  };
2440
2416
  var deserializeAws_json1_1Instance = function (output, context) {
2441
2417
  return {
2442
- Attributes: output.Attributes !== undefined && output.Attributes !== null
2443
- ? deserializeAws_json1_1Attributes(output.Attributes, context)
2444
- : undefined,
2418
+ Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
2445
2419
  CreatorRequestId: __expectString(output.CreatorRequestId),
2446
2420
  Id: __expectString(output.Id),
2447
2421
  };
@@ -2463,9 +2437,7 @@ var deserializeAws_json1_1InstanceNotFound = function (output, context) {
2463
2437
  };
2464
2438
  var deserializeAws_json1_1InstanceSummary = function (output, context) {
2465
2439
  return {
2466
- Attributes: output.Attributes !== undefined && output.Attributes !== null
2467
- ? deserializeAws_json1_1Attributes(output.Attributes, context)
2468
- : undefined,
2440
+ Attributes: output.Attributes != null ? deserializeAws_json1_1Attributes(output.Attributes, context) : undefined,
2469
2441
  Id: __expectString(output.Id),
2470
2442
  };
2471
2443
  };
@@ -2487,56 +2459,42 @@ var deserializeAws_json1_1InvalidInput = function (output, context) {
2487
2459
  };
2488
2460
  var deserializeAws_json1_1ListInstancesResponse = function (output, context) {
2489
2461
  return {
2490
- Instances: output.Instances !== undefined && output.Instances !== null
2491
- ? deserializeAws_json1_1InstanceSummaryList(output.Instances, context)
2492
- : undefined,
2462
+ Instances: output.Instances != null ? deserializeAws_json1_1InstanceSummaryList(output.Instances, context) : undefined,
2493
2463
  NextToken: __expectString(output.NextToken),
2494
2464
  };
2495
2465
  };
2496
2466
  var deserializeAws_json1_1ListNamespacesResponse = function (output, context) {
2497
2467
  return {
2498
- Namespaces: output.Namespaces !== undefined && output.Namespaces !== null
2499
- ? deserializeAws_json1_1NamespaceSummariesList(output.Namespaces, context)
2500
- : undefined,
2468
+ Namespaces: output.Namespaces != null ? deserializeAws_json1_1NamespaceSummariesList(output.Namespaces, context) : undefined,
2501
2469
  NextToken: __expectString(output.NextToken),
2502
2470
  };
2503
2471
  };
2504
2472
  var deserializeAws_json1_1ListOperationsResponse = function (output, context) {
2505
2473
  return {
2506
2474
  NextToken: __expectString(output.NextToken),
2507
- Operations: output.Operations !== undefined && output.Operations !== null
2508
- ? deserializeAws_json1_1OperationSummaryList(output.Operations, context)
2509
- : undefined,
2475
+ Operations: output.Operations != null ? deserializeAws_json1_1OperationSummaryList(output.Operations, context) : undefined,
2510
2476
  };
2511
2477
  };
2512
2478
  var deserializeAws_json1_1ListServicesResponse = function (output, context) {
2513
2479
  return {
2514
2480
  NextToken: __expectString(output.NextToken),
2515
- Services: output.Services !== undefined && output.Services !== null
2516
- ? deserializeAws_json1_1ServiceSummariesList(output.Services, context)
2517
- : undefined,
2481
+ Services: output.Services != null ? deserializeAws_json1_1ServiceSummariesList(output.Services, context) : undefined,
2518
2482
  };
2519
2483
  };
2520
2484
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
2521
2485
  return {
2522
- Tags: output.Tags !== undefined && output.Tags !== null
2523
- ? deserializeAws_json1_1TagList(output.Tags, context)
2524
- : undefined,
2486
+ Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
2525
2487
  };
2526
2488
  };
2527
2489
  var deserializeAws_json1_1Namespace = function (output, context) {
2528
2490
  return {
2529
2491
  Arn: __expectString(output.Arn),
2530
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2531
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2532
- : undefined,
2492
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2533
2493
  CreatorRequestId: __expectString(output.CreatorRequestId),
2534
2494
  Description: __expectString(output.Description),
2535
2495
  Id: __expectString(output.Id),
2536
2496
  Name: __expectString(output.Name),
2537
- Properties: output.Properties !== undefined && output.Properties !== null
2538
- ? deserializeAws_json1_1NamespaceProperties(output.Properties, context)
2539
- : undefined,
2497
+ Properties: output.Properties != null ? deserializeAws_json1_1NamespaceProperties(output.Properties, context) : undefined,
2540
2498
  ServiceCount: __expectInt32(output.ServiceCount),
2541
2499
  Type: __expectString(output.Type),
2542
2500
  };
@@ -2555,12 +2513,8 @@ var deserializeAws_json1_1NamespaceNotFound = function (output, context) {
2555
2513
  };
2556
2514
  var deserializeAws_json1_1NamespaceProperties = function (output, context) {
2557
2515
  return {
2558
- DnsProperties: output.DnsProperties !== undefined && output.DnsProperties !== null
2559
- ? deserializeAws_json1_1DnsProperties(output.DnsProperties, context)
2560
- : undefined,
2561
- HttpProperties: output.HttpProperties !== undefined && output.HttpProperties !== null
2562
- ? deserializeAws_json1_1HttpProperties(output.HttpProperties, context)
2563
- : undefined,
2516
+ DnsProperties: output.DnsProperties != null ? deserializeAws_json1_1DnsProperties(output.DnsProperties, context) : undefined,
2517
+ HttpProperties: output.HttpProperties != null ? deserializeAws_json1_1HttpProperties(output.HttpProperties, context) : undefined,
2564
2518
  };
2565
2519
  };
2566
2520
  var deserializeAws_json1_1NamespaceSummariesList = function (output, context) {
@@ -2577,35 +2531,25 @@ var deserializeAws_json1_1NamespaceSummariesList = function (output, context) {
2577
2531
  var deserializeAws_json1_1NamespaceSummary = function (output, context) {
2578
2532
  return {
2579
2533
  Arn: __expectString(output.Arn),
2580
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2581
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2582
- : undefined,
2534
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2583
2535
  Description: __expectString(output.Description),
2584
2536
  Id: __expectString(output.Id),
2585
2537
  Name: __expectString(output.Name),
2586
- Properties: output.Properties !== undefined && output.Properties !== null
2587
- ? deserializeAws_json1_1NamespaceProperties(output.Properties, context)
2588
- : undefined,
2538
+ Properties: output.Properties != null ? deserializeAws_json1_1NamespaceProperties(output.Properties, context) : undefined,
2589
2539
  ServiceCount: __expectInt32(output.ServiceCount),
2590
2540
  Type: __expectString(output.Type),
2591
2541
  };
2592
2542
  };
2593
2543
  var deserializeAws_json1_1Operation = function (output, context) {
2594
2544
  return {
2595
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2596
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2597
- : undefined,
2545
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2598
2546
  ErrorCode: __expectString(output.ErrorCode),
2599
2547
  ErrorMessage: __expectString(output.ErrorMessage),
2600
2548
  Id: __expectString(output.Id),
2601
2549
  Status: __expectString(output.Status),
2602
- Targets: output.Targets !== undefined && output.Targets !== null
2603
- ? deserializeAws_json1_1OperationTargetsMap(output.Targets, context)
2604
- : undefined,
2550
+ Targets: output.Targets != null ? deserializeAws_json1_1OperationTargetsMap(output.Targets, context) : undefined,
2605
2551
  Type: __expectString(output.Type),
2606
- UpdateDate: output.UpdateDate !== undefined && output.UpdateDate !== null
2607
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate)))
2608
- : undefined,
2552
+ UpdateDate: output.UpdateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate))) : undefined,
2609
2553
  };
2610
2554
  };
2611
2555
  var deserializeAws_json1_1OperationNotFound = function (output, context) {
@@ -2668,18 +2612,14 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
2668
2612
  var deserializeAws_json1_1Service = function (output, context) {
2669
2613
  return {
2670
2614
  Arn: __expectString(output.Arn),
2671
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2672
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2673
- : undefined,
2615
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2674
2616
  CreatorRequestId: __expectString(output.CreatorRequestId),
2675
2617
  Description: __expectString(output.Description),
2676
- DnsConfig: output.DnsConfig !== undefined && output.DnsConfig !== null
2677
- ? deserializeAws_json1_1DnsConfig(output.DnsConfig, context)
2678
- : undefined,
2679
- HealthCheckConfig: output.HealthCheckConfig !== undefined && output.HealthCheckConfig !== null
2618
+ DnsConfig: output.DnsConfig != null ? deserializeAws_json1_1DnsConfig(output.DnsConfig, context) : undefined,
2619
+ HealthCheckConfig: output.HealthCheckConfig != null
2680
2620
  ? deserializeAws_json1_1HealthCheckConfig(output.HealthCheckConfig, context)
2681
2621
  : undefined,
2682
- HealthCheckCustomConfig: output.HealthCheckCustomConfig !== undefined && output.HealthCheckCustomConfig !== null
2622
+ HealthCheckCustomConfig: output.HealthCheckCustomConfig != null
2683
2623
  ? deserializeAws_json1_1HealthCheckCustomConfig(output.HealthCheckCustomConfig, context)
2684
2624
  : undefined,
2685
2625
  Id: __expectString(output.Id),
@@ -2715,17 +2655,13 @@ var deserializeAws_json1_1ServiceSummariesList = function (output, context) {
2715
2655
  var deserializeAws_json1_1ServiceSummary = function (output, context) {
2716
2656
  return {
2717
2657
  Arn: __expectString(output.Arn),
2718
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
2719
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
2720
- : undefined,
2658
+ CreateDate: output.CreateDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate))) : undefined,
2721
2659
  Description: __expectString(output.Description),
2722
- DnsConfig: output.DnsConfig !== undefined && output.DnsConfig !== null
2723
- ? deserializeAws_json1_1DnsConfig(output.DnsConfig, context)
2724
- : undefined,
2725
- HealthCheckConfig: output.HealthCheckConfig !== undefined && output.HealthCheckConfig !== null
2660
+ DnsConfig: output.DnsConfig != null ? deserializeAws_json1_1DnsConfig(output.DnsConfig, context) : undefined,
2661
+ HealthCheckConfig: output.HealthCheckConfig != null
2726
2662
  ? deserializeAws_json1_1HealthCheckConfig(output.HealthCheckConfig, context)
2727
2663
  : undefined,
2728
- HealthCheckCustomConfig: output.HealthCheckCustomConfig !== undefined && output.HealthCheckCustomConfig !== null
2664
+ HealthCheckCustomConfig: output.HealthCheckCustomConfig != null
2729
2665
  ? deserializeAws_json1_1HealthCheckCustomConfig(output.HealthCheckCustomConfig, context)
2730
2666
  : undefined,
2731
2667
  Id: __expectString(output.Id),
@@ -2862,5 +2798,4 @@ var loadRestJsonErrorCode = function (output, data) {
2862
2798
  if (data["__type"] !== undefined) {
2863
2799
  return sanitizeErrorCode(data["__type"]);
2864
2800
  }
2865
- return "";
2866
2801
  };