@aws-sdk/client-docdb 3.135.0 → 3.142.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.
Files changed (115) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/commands/AddSourceIdentifierToSubscriptionCommand.js +2 -2
  4. package/dist-cjs/commands/AddTagsToResourceCommand.js +1 -1
  5. package/dist-cjs/commands/ApplyPendingMaintenanceActionCommand.js +2 -2
  6. package/dist-cjs/commands/CopyDBClusterParameterGroupCommand.js +2 -2
  7. package/dist-cjs/commands/CopyDBClusterSnapshotCommand.js +2 -2
  8. package/dist-cjs/commands/CreateDBClusterCommand.js +2 -2
  9. package/dist-cjs/commands/CreateDBClusterParameterGroupCommand.js +2 -2
  10. package/dist-cjs/commands/CreateDBClusterSnapshotCommand.js +2 -2
  11. package/dist-cjs/commands/CreateDBInstanceCommand.js +2 -2
  12. package/dist-cjs/commands/CreateDBSubnetGroupCommand.js +2 -2
  13. package/dist-cjs/commands/CreateEventSubscriptionCommand.js +2 -2
  14. package/dist-cjs/commands/CreateGlobalClusterCommand.js +2 -2
  15. package/dist-cjs/commands/DeleteDBClusterCommand.js +2 -2
  16. package/dist-cjs/commands/DeleteDBClusterParameterGroupCommand.js +1 -1
  17. package/dist-cjs/commands/DeleteDBClusterSnapshotCommand.js +2 -2
  18. package/dist-cjs/commands/DeleteDBInstanceCommand.js +2 -2
  19. package/dist-cjs/commands/DeleteDBSubnetGroupCommand.js +1 -1
  20. package/dist-cjs/commands/DeleteEventSubscriptionCommand.js +2 -2
  21. package/dist-cjs/commands/DeleteGlobalClusterCommand.js +2 -2
  22. package/dist-cjs/commands/DescribeCertificatesCommand.js +2 -2
  23. package/dist-cjs/commands/DescribeDBClusterParameterGroupsCommand.js +2 -2
  24. package/dist-cjs/commands/DescribeDBClusterParametersCommand.js +2 -2
  25. package/dist-cjs/commands/DescribeDBClusterSnapshotAttributesCommand.js +2 -2
  26. package/dist-cjs/commands/DescribeDBClusterSnapshotsCommand.js +2 -2
  27. package/dist-cjs/commands/DescribeDBClustersCommand.js +2 -2
  28. package/dist-cjs/commands/DescribeDBEngineVersionsCommand.js +2 -2
  29. package/dist-cjs/commands/DescribeDBInstancesCommand.js +2 -2
  30. package/dist-cjs/commands/DescribeDBSubnetGroupsCommand.js +2 -2
  31. package/dist-cjs/commands/DescribeEngineDefaultClusterParametersCommand.js +2 -2
  32. package/dist-cjs/commands/DescribeEventCategoriesCommand.js +2 -2
  33. package/dist-cjs/commands/DescribeEventSubscriptionsCommand.js +2 -2
  34. package/dist-cjs/commands/DescribeEventsCommand.js +2 -2
  35. package/dist-cjs/commands/DescribeGlobalClustersCommand.js +2 -2
  36. package/dist-cjs/commands/DescribeOrderableDBInstanceOptionsCommand.js +2 -2
  37. package/dist-cjs/commands/DescribePendingMaintenanceActionsCommand.js +2 -2
  38. package/dist-cjs/commands/FailoverDBClusterCommand.js +2 -2
  39. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  40. package/dist-cjs/commands/ModifyDBClusterCommand.js +2 -2
  41. package/dist-cjs/commands/ModifyDBClusterParameterGroupCommand.js +2 -2
  42. package/dist-cjs/commands/ModifyDBClusterSnapshotAttributeCommand.js +2 -2
  43. package/dist-cjs/commands/ModifyDBInstanceCommand.js +2 -2
  44. package/dist-cjs/commands/ModifyDBSubnetGroupCommand.js +2 -2
  45. package/dist-cjs/commands/ModifyEventSubscriptionCommand.js +2 -2
  46. package/dist-cjs/commands/ModifyGlobalClusterCommand.js +2 -2
  47. package/dist-cjs/commands/RebootDBInstanceCommand.js +2 -2
  48. package/dist-cjs/commands/RemoveFromGlobalClusterCommand.js +2 -2
  49. package/dist-cjs/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +2 -2
  50. package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +1 -1
  51. package/dist-cjs/commands/ResetDBClusterParameterGroupCommand.js +2 -2
  52. package/dist-cjs/commands/RestoreDBClusterFromSnapshotCommand.js +2 -2
  53. package/dist-cjs/commands/RestoreDBClusterToPointInTimeCommand.js +2 -2
  54. package/dist-cjs/commands/StartDBClusterCommand.js +2 -2
  55. package/dist-cjs/commands/StopDBClusterCommand.js +2 -2
  56. package/dist-cjs/models/models_0.js +536 -802
  57. package/dist-cjs/protocols/Aws_query.js +534 -807
  58. package/dist-es/commands/AddSourceIdentifierToSubscriptionCommand.js +3 -3
  59. package/dist-es/commands/AddTagsToResourceCommand.js +2 -2
  60. package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +3 -3
  61. package/dist-es/commands/CopyDBClusterParameterGroupCommand.js +3 -3
  62. package/dist-es/commands/CopyDBClusterSnapshotCommand.js +3 -3
  63. package/dist-es/commands/CreateDBClusterCommand.js +3 -3
  64. package/dist-es/commands/CreateDBClusterParameterGroupCommand.js +3 -3
  65. package/dist-es/commands/CreateDBClusterSnapshotCommand.js +3 -3
  66. package/dist-es/commands/CreateDBInstanceCommand.js +3 -3
  67. package/dist-es/commands/CreateDBSubnetGroupCommand.js +3 -3
  68. package/dist-es/commands/CreateEventSubscriptionCommand.js +3 -3
  69. package/dist-es/commands/CreateGlobalClusterCommand.js +3 -3
  70. package/dist-es/commands/DeleteDBClusterCommand.js +3 -3
  71. package/dist-es/commands/DeleteDBClusterParameterGroupCommand.js +2 -2
  72. package/dist-es/commands/DeleteDBClusterSnapshotCommand.js +3 -3
  73. package/dist-es/commands/DeleteDBInstanceCommand.js +3 -3
  74. package/dist-es/commands/DeleteDBSubnetGroupCommand.js +2 -2
  75. package/dist-es/commands/DeleteEventSubscriptionCommand.js +3 -3
  76. package/dist-es/commands/DeleteGlobalClusterCommand.js +3 -3
  77. package/dist-es/commands/DescribeCertificatesCommand.js +3 -3
  78. package/dist-es/commands/DescribeDBClusterParameterGroupsCommand.js +3 -3
  79. package/dist-es/commands/DescribeDBClusterParametersCommand.js +3 -3
  80. package/dist-es/commands/DescribeDBClusterSnapshotAttributesCommand.js +3 -3
  81. package/dist-es/commands/DescribeDBClusterSnapshotsCommand.js +3 -3
  82. package/dist-es/commands/DescribeDBClustersCommand.js +3 -3
  83. package/dist-es/commands/DescribeDBEngineVersionsCommand.js +3 -3
  84. package/dist-es/commands/DescribeDBInstancesCommand.js +3 -3
  85. package/dist-es/commands/DescribeDBSubnetGroupsCommand.js +3 -3
  86. package/dist-es/commands/DescribeEngineDefaultClusterParametersCommand.js +3 -3
  87. package/dist-es/commands/DescribeEventCategoriesCommand.js +3 -3
  88. package/dist-es/commands/DescribeEventSubscriptionsCommand.js +3 -3
  89. package/dist-es/commands/DescribeEventsCommand.js +3 -3
  90. package/dist-es/commands/DescribeGlobalClustersCommand.js +3 -3
  91. package/dist-es/commands/DescribeOrderableDBInstanceOptionsCommand.js +3 -3
  92. package/dist-es/commands/DescribePendingMaintenanceActionsCommand.js +3 -3
  93. package/dist-es/commands/FailoverDBClusterCommand.js +3 -3
  94. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  95. package/dist-es/commands/ModifyDBClusterCommand.js +3 -3
  96. package/dist-es/commands/ModifyDBClusterParameterGroupCommand.js +3 -3
  97. package/dist-es/commands/ModifyDBClusterSnapshotAttributeCommand.js +3 -3
  98. package/dist-es/commands/ModifyDBInstanceCommand.js +3 -3
  99. package/dist-es/commands/ModifyDBSubnetGroupCommand.js +3 -3
  100. package/dist-es/commands/ModifyEventSubscriptionCommand.js +3 -3
  101. package/dist-es/commands/ModifyGlobalClusterCommand.js +3 -3
  102. package/dist-es/commands/RebootDBInstanceCommand.js +3 -3
  103. package/dist-es/commands/RemoveFromGlobalClusterCommand.js +3 -3
  104. package/dist-es/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +3 -3
  105. package/dist-es/commands/RemoveTagsFromResourceCommand.js +2 -2
  106. package/dist-es/commands/ResetDBClusterParameterGroupCommand.js +3 -3
  107. package/dist-es/commands/RestoreDBClusterFromSnapshotCommand.js +3 -3
  108. package/dist-es/commands/RestoreDBClusterToPointInTimeCommand.js +3 -3
  109. package/dist-es/commands/StartDBClusterCommand.js +3 -3
  110. package/dist-es/commands/StopDBClusterCommand.js +3 -3
  111. package/dist-es/models/models_0.js +133 -532
  112. package/dist-es/protocols/Aws_query.js +684 -808
  113. package/dist-types/models/models_0.d.ts +532 -798
  114. package/dist-types/ts3.4/models/models_0.d.ts +266 -532
  115. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read, __values } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { decodeHTML } from "entities";
5
5
  import { parse as xmlParse } from "fast-xml-parser";
6
6
  import { DocDBServiceException as __BaseException } from "../models/DocDBServiceException";
@@ -554,7 +554,7 @@ export var deserializeAws_queryAddSourceIdentifierToSubscriptionCommand = functi
554
554
  });
555
555
  }); };
556
556
  var deserializeAws_queryAddSourceIdentifierToSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
557
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
557
+ var parsedOutput, _a, errorCode, _b, parsedBody;
558
558
  var _c;
559
559
  return __generator(this, function (_d) {
560
560
  switch (_d.label) {
@@ -579,14 +579,14 @@ var deserializeAws_queryAddSourceIdentifierToSubscriptionCommandError = function
579
579
  case 5: throw _d.sent();
580
580
  case 6:
581
581
  parsedBody = parsedOutput.body;
582
- $metadata = deserializeMetadata(output);
583
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
584
- response = new __BaseException({
585
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
586
- $fault: "client",
587
- $metadata: $metadata,
582
+ throwDefaultError({
583
+ output: output,
584
+ parsedBody: parsedBody.Error,
585
+ exceptionCtor: __BaseException,
586
+ errorCode: errorCode,
588
587
  });
589
- throw __decorateServiceException(response, parsedBody.Error);
588
+ _d.label = 7;
589
+ case 7: return [2];
590
590
  }
591
591
  });
592
592
  }); };
@@ -609,7 +609,7 @@ export var deserializeAws_queryAddTagsToResourceCommand = function (output, cont
609
609
  });
610
610
  }); };
611
611
  var deserializeAws_queryAddTagsToResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
612
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
612
+ var parsedOutput, _a, errorCode, _b, parsedBody;
613
613
  var _c;
614
614
  return __generator(this, function (_d) {
615
615
  switch (_d.label) {
@@ -638,14 +638,14 @@ var deserializeAws_queryAddTagsToResourceCommandError = function (output, contex
638
638
  case 7: throw _d.sent();
639
639
  case 8:
640
640
  parsedBody = parsedOutput.body;
641
- $metadata = deserializeMetadata(output);
642
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
643
- response = new __BaseException({
644
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
645
- $fault: "client",
646
- $metadata: $metadata,
641
+ throwDefaultError({
642
+ output: output,
643
+ parsedBody: parsedBody.Error,
644
+ exceptionCtor: __BaseException,
645
+ errorCode: errorCode,
647
646
  });
648
- throw __decorateServiceException(response, parsedBody.Error);
647
+ _d.label = 9;
648
+ case 9: return [2];
649
649
  }
650
650
  });
651
651
  }); };
@@ -668,7 +668,7 @@ export var deserializeAws_queryApplyPendingMaintenanceActionCommand = function (
668
668
  });
669
669
  }); };
670
670
  var deserializeAws_queryApplyPendingMaintenanceActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
671
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
671
+ var parsedOutput, _a, errorCode, _b, parsedBody;
672
672
  var _c;
673
673
  return __generator(this, function (_d) {
674
674
  switch (_d.label) {
@@ -697,14 +697,14 @@ var deserializeAws_queryApplyPendingMaintenanceActionCommandError = function (ou
697
697
  case 7: throw _d.sent();
698
698
  case 8:
699
699
  parsedBody = parsedOutput.body;
700
- $metadata = deserializeMetadata(output);
701
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
702
- response = new __BaseException({
703
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
704
- $fault: "client",
705
- $metadata: $metadata,
700
+ throwDefaultError({
701
+ output: output,
702
+ parsedBody: parsedBody.Error,
703
+ exceptionCtor: __BaseException,
704
+ errorCode: errorCode,
706
705
  });
707
- throw __decorateServiceException(response, parsedBody.Error);
706
+ _d.label = 9;
707
+ case 9: return [2];
708
708
  }
709
709
  });
710
710
  }); };
@@ -727,7 +727,7 @@ export var deserializeAws_queryCopyDBClusterParameterGroupCommand = function (ou
727
727
  });
728
728
  }); };
729
729
  var deserializeAws_queryCopyDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
730
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
730
+ var parsedOutput, _a, errorCode, _b, parsedBody;
731
731
  var _c;
732
732
  return __generator(this, function (_d) {
733
733
  switch (_d.label) {
@@ -756,14 +756,14 @@ var deserializeAws_queryCopyDBClusterParameterGroupCommandError = function (outp
756
756
  case 7: throw _d.sent();
757
757
  case 8:
758
758
  parsedBody = parsedOutput.body;
759
- $metadata = deserializeMetadata(output);
760
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
761
- response = new __BaseException({
762
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
763
- $fault: "client",
764
- $metadata: $metadata,
759
+ throwDefaultError({
760
+ output: output,
761
+ parsedBody: parsedBody.Error,
762
+ exceptionCtor: __BaseException,
763
+ errorCode: errorCode,
765
764
  });
766
- throw __decorateServiceException(response, parsedBody.Error);
765
+ _d.label = 9;
766
+ case 9: return [2];
767
767
  }
768
768
  });
769
769
  }); };
@@ -786,7 +786,7 @@ export var deserializeAws_queryCopyDBClusterSnapshotCommand = function (output,
786
786
  });
787
787
  }); };
788
788
  var deserializeAws_queryCopyDBClusterSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
789
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
789
+ var parsedOutput, _a, errorCode, _b, parsedBody;
790
790
  var _c;
791
791
  return __generator(this, function (_d) {
792
792
  switch (_d.label) {
@@ -827,14 +827,14 @@ var deserializeAws_queryCopyDBClusterSnapshotCommandError = function (output, co
827
827
  case 13: throw _d.sent();
828
828
  case 14:
829
829
  parsedBody = parsedOutput.body;
830
- $metadata = deserializeMetadata(output);
831
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
832
- response = new __BaseException({
833
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
834
- $fault: "client",
835
- $metadata: $metadata,
830
+ throwDefaultError({
831
+ output: output,
832
+ parsedBody: parsedBody.Error,
833
+ exceptionCtor: __BaseException,
834
+ errorCode: errorCode,
836
835
  });
837
- throw __decorateServiceException(response, parsedBody.Error);
836
+ _d.label = 15;
837
+ case 15: return [2];
838
838
  }
839
839
  });
840
840
  }); };
@@ -857,7 +857,7 @@ export var deserializeAws_queryCreateDBClusterCommand = function (output, contex
857
857
  });
858
858
  }); };
859
859
  var deserializeAws_queryCreateDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
860
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
860
+ var parsedOutput, _a, errorCode, _b, parsedBody;
861
861
  var _c;
862
862
  return __generator(this, function (_d) {
863
863
  switch (_d.label) {
@@ -942,14 +942,14 @@ var deserializeAws_queryCreateDBClusterCommandError = function (output, context)
942
942
  case 35: throw _d.sent();
943
943
  case 36:
944
944
  parsedBody = parsedOutput.body;
945
- $metadata = deserializeMetadata(output);
946
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
947
- response = new __BaseException({
948
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
949
- $fault: "client",
950
- $metadata: $metadata,
945
+ throwDefaultError({
946
+ output: output,
947
+ parsedBody: parsedBody.Error,
948
+ exceptionCtor: __BaseException,
949
+ errorCode: errorCode,
951
950
  });
952
- throw __decorateServiceException(response, parsedBody.Error);
951
+ _d.label = 37;
952
+ case 37: return [2];
953
953
  }
954
954
  });
955
955
  }); };
@@ -972,7 +972,7 @@ export var deserializeAws_queryCreateDBClusterParameterGroupCommand = function (
972
972
  });
973
973
  }); };
974
974
  var deserializeAws_queryCreateDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
975
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
975
+ var parsedOutput, _a, errorCode, _b, parsedBody;
976
976
  var _c;
977
977
  return __generator(this, function (_d) {
978
978
  switch (_d.label) {
@@ -997,14 +997,14 @@ var deserializeAws_queryCreateDBClusterParameterGroupCommandError = function (ou
997
997
  case 5: throw _d.sent();
998
998
  case 6:
999
999
  parsedBody = parsedOutput.body;
1000
- $metadata = deserializeMetadata(output);
1001
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1002
- response = new __BaseException({
1003
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1004
- $fault: "client",
1005
- $metadata: $metadata,
1000
+ throwDefaultError({
1001
+ output: output,
1002
+ parsedBody: parsedBody.Error,
1003
+ exceptionCtor: __BaseException,
1004
+ errorCode: errorCode,
1006
1005
  });
1007
- throw __decorateServiceException(response, parsedBody.Error);
1006
+ _d.label = 7;
1007
+ case 7: return [2];
1008
1008
  }
1009
1009
  });
1010
1010
  }); };
@@ -1027,7 +1027,7 @@ export var deserializeAws_queryCreateDBClusterSnapshotCommand = function (output
1027
1027
  });
1028
1028
  }); };
1029
1029
  var deserializeAws_queryCreateDBClusterSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1030
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1030
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1031
1031
  var _c;
1032
1032
  return __generator(this, function (_d) {
1033
1033
  switch (_d.label) {
@@ -1064,14 +1064,14 @@ var deserializeAws_queryCreateDBClusterSnapshotCommandError = function (output,
1064
1064
  case 11: throw _d.sent();
1065
1065
  case 12:
1066
1066
  parsedBody = parsedOutput.body;
1067
- $metadata = deserializeMetadata(output);
1068
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1069
- response = new __BaseException({
1070
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1071
- $fault: "client",
1072
- $metadata: $metadata,
1067
+ throwDefaultError({
1068
+ output: output,
1069
+ parsedBody: parsedBody.Error,
1070
+ exceptionCtor: __BaseException,
1071
+ errorCode: errorCode,
1073
1072
  });
1074
- throw __decorateServiceException(response, parsedBody.Error);
1073
+ _d.label = 13;
1074
+ case 13: return [2];
1075
1075
  }
1076
1076
  });
1077
1077
  }); };
@@ -1094,7 +1094,7 @@ export var deserializeAws_queryCreateDBInstanceCommand = function (output, conte
1094
1094
  });
1095
1095
  }); };
1096
1096
  var deserializeAws_queryCreateDBInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1097
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1097
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1098
1098
  var _c;
1099
1099
  return __generator(this, function (_d) {
1100
1100
  switch (_d.label) {
@@ -1171,14 +1171,14 @@ var deserializeAws_queryCreateDBInstanceCommandError = function (output, context
1171
1171
  case 31: throw _d.sent();
1172
1172
  case 32:
1173
1173
  parsedBody = parsedOutput.body;
1174
- $metadata = deserializeMetadata(output);
1175
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1176
- response = new __BaseException({
1177
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1178
- $fault: "client",
1179
- $metadata: $metadata,
1174
+ throwDefaultError({
1175
+ output: output,
1176
+ parsedBody: parsedBody.Error,
1177
+ exceptionCtor: __BaseException,
1178
+ errorCode: errorCode,
1180
1179
  });
1181
- throw __decorateServiceException(response, parsedBody.Error);
1180
+ _d.label = 33;
1181
+ case 33: return [2];
1182
1182
  }
1183
1183
  });
1184
1184
  }); };
@@ -1201,7 +1201,7 @@ export var deserializeAws_queryCreateDBSubnetGroupCommand = function (output, co
1201
1201
  });
1202
1202
  }); };
1203
1203
  var deserializeAws_queryCreateDBSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1204
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1204
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1205
1205
  var _c;
1206
1206
  return __generator(this, function (_d) {
1207
1207
  switch (_d.label) {
@@ -1238,14 +1238,14 @@ var deserializeAws_queryCreateDBSubnetGroupCommandError = function (output, cont
1238
1238
  case 11: throw _d.sent();
1239
1239
  case 12:
1240
1240
  parsedBody = parsedOutput.body;
1241
- $metadata = deserializeMetadata(output);
1242
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1243
- response = new __BaseException({
1244
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1245
- $fault: "client",
1246
- $metadata: $metadata,
1241
+ throwDefaultError({
1242
+ output: output,
1243
+ parsedBody: parsedBody.Error,
1244
+ exceptionCtor: __BaseException,
1245
+ errorCode: errorCode,
1247
1246
  });
1248
- throw __decorateServiceException(response, parsedBody.Error);
1247
+ _d.label = 13;
1248
+ case 13: return [2];
1249
1249
  }
1250
1250
  });
1251
1251
  }); };
@@ -1268,7 +1268,7 @@ export var deserializeAws_queryCreateEventSubscriptionCommand = function (output
1268
1268
  });
1269
1269
  }); };
1270
1270
  var deserializeAws_queryCreateEventSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1271
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1271
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1272
1272
  var _c;
1273
1273
  return __generator(this, function (_d) {
1274
1274
  switch (_d.label) {
@@ -1313,14 +1313,14 @@ var deserializeAws_queryCreateEventSubscriptionCommandError = function (output,
1313
1313
  case 15: throw _d.sent();
1314
1314
  case 16:
1315
1315
  parsedBody = parsedOutput.body;
1316
- $metadata = deserializeMetadata(output);
1317
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1318
- response = new __BaseException({
1319
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1320
- $fault: "client",
1321
- $metadata: $metadata,
1316
+ throwDefaultError({
1317
+ output: output,
1318
+ parsedBody: parsedBody.Error,
1319
+ exceptionCtor: __BaseException,
1320
+ errorCode: errorCode,
1322
1321
  });
1323
- throw __decorateServiceException(response, parsedBody.Error);
1322
+ _d.label = 17;
1323
+ case 17: return [2];
1324
1324
  }
1325
1325
  });
1326
1326
  }); };
@@ -1343,7 +1343,7 @@ export var deserializeAws_queryCreateGlobalClusterCommand = function (output, co
1343
1343
  });
1344
1344
  }); };
1345
1345
  var deserializeAws_queryCreateGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1346
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1346
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1347
1347
  var _c;
1348
1348
  return __generator(this, function (_d) {
1349
1349
  switch (_d.label) {
@@ -1376,14 +1376,14 @@ var deserializeAws_queryCreateGlobalClusterCommandError = function (output, cont
1376
1376
  case 9: throw _d.sent();
1377
1377
  case 10:
1378
1378
  parsedBody = parsedOutput.body;
1379
- $metadata = deserializeMetadata(output);
1380
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1381
- response = new __BaseException({
1382
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1383
- $fault: "client",
1384
- $metadata: $metadata,
1379
+ throwDefaultError({
1380
+ output: output,
1381
+ parsedBody: parsedBody.Error,
1382
+ exceptionCtor: __BaseException,
1383
+ errorCode: errorCode,
1385
1384
  });
1386
- throw __decorateServiceException(response, parsedBody.Error);
1385
+ _d.label = 11;
1386
+ case 11: return [2];
1387
1387
  }
1388
1388
  });
1389
1389
  }); };
@@ -1406,7 +1406,7 @@ export var deserializeAws_queryDeleteDBClusterCommand = function (output, contex
1406
1406
  });
1407
1407
  }); };
1408
1408
  var deserializeAws_queryDeleteDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1409
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1409
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1410
1410
  var _c;
1411
1411
  return __generator(this, function (_d) {
1412
1412
  switch (_d.label) {
@@ -1443,14 +1443,14 @@ var deserializeAws_queryDeleteDBClusterCommandError = function (output, context)
1443
1443
  case 11: throw _d.sent();
1444
1444
  case 12:
1445
1445
  parsedBody = parsedOutput.body;
1446
- $metadata = deserializeMetadata(output);
1447
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1448
- response = new __BaseException({
1449
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1450
- $fault: "client",
1451
- $metadata: $metadata,
1446
+ throwDefaultError({
1447
+ output: output,
1448
+ parsedBody: parsedBody.Error,
1449
+ exceptionCtor: __BaseException,
1450
+ errorCode: errorCode,
1452
1451
  });
1453
- throw __decorateServiceException(response, parsedBody.Error);
1452
+ _d.label = 13;
1453
+ case 13: return [2];
1454
1454
  }
1455
1455
  });
1456
1456
  }); };
@@ -1473,7 +1473,7 @@ export var deserializeAws_queryDeleteDBClusterParameterGroupCommand = function (
1473
1473
  });
1474
1474
  }); };
1475
1475
  var deserializeAws_queryDeleteDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1476
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1476
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1477
1477
  var _c;
1478
1478
  return __generator(this, function (_d) {
1479
1479
  switch (_d.label) {
@@ -1498,14 +1498,14 @@ var deserializeAws_queryDeleteDBClusterParameterGroupCommandError = function (ou
1498
1498
  case 5: throw _d.sent();
1499
1499
  case 6:
1500
1500
  parsedBody = parsedOutput.body;
1501
- $metadata = deserializeMetadata(output);
1502
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1503
- response = new __BaseException({
1504
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1505
- $fault: "client",
1506
- $metadata: $metadata,
1501
+ throwDefaultError({
1502
+ output: output,
1503
+ parsedBody: parsedBody.Error,
1504
+ exceptionCtor: __BaseException,
1505
+ errorCode: errorCode,
1507
1506
  });
1508
- throw __decorateServiceException(response, parsedBody.Error);
1507
+ _d.label = 7;
1508
+ case 7: return [2];
1509
1509
  }
1510
1510
  });
1511
1511
  }); };
@@ -1528,7 +1528,7 @@ export var deserializeAws_queryDeleteDBClusterSnapshotCommand = function (output
1528
1528
  });
1529
1529
  }); };
1530
1530
  var deserializeAws_queryDeleteDBClusterSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1531
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1531
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1532
1532
  var _c;
1533
1533
  return __generator(this, function (_d) {
1534
1534
  switch (_d.label) {
@@ -1553,14 +1553,14 @@ var deserializeAws_queryDeleteDBClusterSnapshotCommandError = function (output,
1553
1553
  case 5: throw _d.sent();
1554
1554
  case 6:
1555
1555
  parsedBody = parsedOutput.body;
1556
- $metadata = deserializeMetadata(output);
1557
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1558
- response = new __BaseException({
1559
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1560
- $fault: "client",
1561
- $metadata: $metadata,
1556
+ throwDefaultError({
1557
+ output: output,
1558
+ parsedBody: parsedBody.Error,
1559
+ exceptionCtor: __BaseException,
1560
+ errorCode: errorCode,
1562
1561
  });
1563
- throw __decorateServiceException(response, parsedBody.Error);
1562
+ _d.label = 7;
1563
+ case 7: return [2];
1564
1564
  }
1565
1565
  });
1566
1566
  }); };
@@ -1583,7 +1583,7 @@ export var deserializeAws_queryDeleteDBInstanceCommand = function (output, conte
1583
1583
  });
1584
1584
  }); };
1585
1585
  var deserializeAws_queryDeleteDBInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1586
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1586
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1587
1587
  var _c;
1588
1588
  return __generator(this, function (_d) {
1589
1589
  switch (_d.label) {
@@ -1620,14 +1620,14 @@ var deserializeAws_queryDeleteDBInstanceCommandError = function (output, context
1620
1620
  case 11: throw _d.sent();
1621
1621
  case 12:
1622
1622
  parsedBody = parsedOutput.body;
1623
- $metadata = deserializeMetadata(output);
1624
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1625
- response = new __BaseException({
1626
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1627
- $fault: "client",
1628
- $metadata: $metadata,
1623
+ throwDefaultError({
1624
+ output: output,
1625
+ parsedBody: parsedBody.Error,
1626
+ exceptionCtor: __BaseException,
1627
+ errorCode: errorCode,
1629
1628
  });
1630
- throw __decorateServiceException(response, parsedBody.Error);
1629
+ _d.label = 13;
1630
+ case 13: return [2];
1631
1631
  }
1632
1632
  });
1633
1633
  }); };
@@ -1650,7 +1650,7 @@ export var deserializeAws_queryDeleteDBSubnetGroupCommand = function (output, co
1650
1650
  });
1651
1651
  }); };
1652
1652
  var deserializeAws_queryDeleteDBSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1653
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1653
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1654
1654
  var _c;
1655
1655
  return __generator(this, function (_d) {
1656
1656
  switch (_d.label) {
@@ -1679,14 +1679,14 @@ var deserializeAws_queryDeleteDBSubnetGroupCommandError = function (output, cont
1679
1679
  case 7: throw _d.sent();
1680
1680
  case 8:
1681
1681
  parsedBody = parsedOutput.body;
1682
- $metadata = deserializeMetadata(output);
1683
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1684
- response = new __BaseException({
1685
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1686
- $fault: "client",
1687
- $metadata: $metadata,
1682
+ throwDefaultError({
1683
+ output: output,
1684
+ parsedBody: parsedBody.Error,
1685
+ exceptionCtor: __BaseException,
1686
+ errorCode: errorCode,
1688
1687
  });
1689
- throw __decorateServiceException(response, parsedBody.Error);
1688
+ _d.label = 9;
1689
+ case 9: return [2];
1690
1690
  }
1691
1691
  });
1692
1692
  }); };
@@ -1709,7 +1709,7 @@ export var deserializeAws_queryDeleteEventSubscriptionCommand = function (output
1709
1709
  });
1710
1710
  }); };
1711
1711
  var deserializeAws_queryDeleteEventSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1712
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1712
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1713
1713
  var _c;
1714
1714
  return __generator(this, function (_d) {
1715
1715
  switch (_d.label) {
@@ -1734,14 +1734,14 @@ var deserializeAws_queryDeleteEventSubscriptionCommandError = function (output,
1734
1734
  case 5: throw _d.sent();
1735
1735
  case 6:
1736
1736
  parsedBody = parsedOutput.body;
1737
- $metadata = deserializeMetadata(output);
1738
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1739
- response = new __BaseException({
1740
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1741
- $fault: "client",
1742
- $metadata: $metadata,
1737
+ throwDefaultError({
1738
+ output: output,
1739
+ parsedBody: parsedBody.Error,
1740
+ exceptionCtor: __BaseException,
1741
+ errorCode: errorCode,
1743
1742
  });
1744
- throw __decorateServiceException(response, parsedBody.Error);
1743
+ _d.label = 7;
1744
+ case 7: return [2];
1745
1745
  }
1746
1746
  });
1747
1747
  }); };
@@ -1764,7 +1764,7 @@ export var deserializeAws_queryDeleteGlobalClusterCommand = function (output, co
1764
1764
  });
1765
1765
  }); };
1766
1766
  var deserializeAws_queryDeleteGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1767
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1767
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1768
1768
  var _c;
1769
1769
  return __generator(this, function (_d) {
1770
1770
  switch (_d.label) {
@@ -1789,14 +1789,14 @@ var deserializeAws_queryDeleteGlobalClusterCommandError = function (output, cont
1789
1789
  case 5: throw _d.sent();
1790
1790
  case 6:
1791
1791
  parsedBody = parsedOutput.body;
1792
- $metadata = deserializeMetadata(output);
1793
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1794
- response = new __BaseException({
1795
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1796
- $fault: "client",
1797
- $metadata: $metadata,
1792
+ throwDefaultError({
1793
+ output: output,
1794
+ parsedBody: parsedBody.Error,
1795
+ exceptionCtor: __BaseException,
1796
+ errorCode: errorCode,
1798
1797
  });
1799
- throw __decorateServiceException(response, parsedBody.Error);
1798
+ _d.label = 7;
1799
+ case 7: return [2];
1800
1800
  }
1801
1801
  });
1802
1802
  }); };
@@ -1819,7 +1819,7 @@ export var deserializeAws_queryDescribeCertificatesCommand = function (output, c
1819
1819
  });
1820
1820
  }); };
1821
1821
  var deserializeAws_queryDescribeCertificatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1822
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1822
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1823
1823
  var _c;
1824
1824
  return __generator(this, function (_d) {
1825
1825
  switch (_d.label) {
@@ -1840,14 +1840,14 @@ var deserializeAws_queryDescribeCertificatesCommandError = function (output, con
1840
1840
  case 3: throw _d.sent();
1841
1841
  case 4:
1842
1842
  parsedBody = parsedOutput.body;
1843
- $metadata = deserializeMetadata(output);
1844
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1845
- response = new __BaseException({
1846
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1847
- $fault: "client",
1848
- $metadata: $metadata,
1843
+ throwDefaultError({
1844
+ output: output,
1845
+ parsedBody: parsedBody.Error,
1846
+ exceptionCtor: __BaseException,
1847
+ errorCode: errorCode,
1849
1848
  });
1850
- throw __decorateServiceException(response, parsedBody.Error);
1849
+ _d.label = 5;
1850
+ case 5: return [2];
1851
1851
  }
1852
1852
  });
1853
1853
  }); };
@@ -1870,7 +1870,7 @@ export var deserializeAws_queryDescribeDBClusterParameterGroupsCommand = functio
1870
1870
  });
1871
1871
  }); };
1872
1872
  var deserializeAws_queryDescribeDBClusterParameterGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1873
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1873
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1874
1874
  var _c;
1875
1875
  return __generator(this, function (_d) {
1876
1876
  switch (_d.label) {
@@ -1891,14 +1891,14 @@ var deserializeAws_queryDescribeDBClusterParameterGroupsCommandError = function
1891
1891
  case 3: throw _d.sent();
1892
1892
  case 4:
1893
1893
  parsedBody = parsedOutput.body;
1894
- $metadata = deserializeMetadata(output);
1895
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1896
- response = new __BaseException({
1897
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1898
- $fault: "client",
1899
- $metadata: $metadata,
1894
+ throwDefaultError({
1895
+ output: output,
1896
+ parsedBody: parsedBody.Error,
1897
+ exceptionCtor: __BaseException,
1898
+ errorCode: errorCode,
1900
1899
  });
1901
- throw __decorateServiceException(response, parsedBody.Error);
1900
+ _d.label = 5;
1901
+ case 5: return [2];
1902
1902
  }
1903
1903
  });
1904
1904
  }); };
@@ -1921,7 +1921,7 @@ export var deserializeAws_queryDescribeDBClusterParametersCommand = function (ou
1921
1921
  });
1922
1922
  }); };
1923
1923
  var deserializeAws_queryDescribeDBClusterParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1924
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1924
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1925
1925
  var _c;
1926
1926
  return __generator(this, function (_d) {
1927
1927
  switch (_d.label) {
@@ -1942,14 +1942,14 @@ var deserializeAws_queryDescribeDBClusterParametersCommandError = function (outp
1942
1942
  case 3: throw _d.sent();
1943
1943
  case 4:
1944
1944
  parsedBody = parsedOutput.body;
1945
- $metadata = deserializeMetadata(output);
1946
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1947
- response = new __BaseException({
1948
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1949
- $fault: "client",
1950
- $metadata: $metadata,
1945
+ throwDefaultError({
1946
+ output: output,
1947
+ parsedBody: parsedBody.Error,
1948
+ exceptionCtor: __BaseException,
1949
+ errorCode: errorCode,
1951
1950
  });
1952
- throw __decorateServiceException(response, parsedBody.Error);
1951
+ _d.label = 5;
1952
+ case 5: return [2];
1953
1953
  }
1954
1954
  });
1955
1955
  }); };
@@ -1972,7 +1972,7 @@ export var deserializeAws_queryDescribeDBClustersCommand = function (output, con
1972
1972
  });
1973
1973
  }); };
1974
1974
  var deserializeAws_queryDescribeDBClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1975
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1975
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1976
1976
  var _c;
1977
1977
  return __generator(this, function (_d) {
1978
1978
  switch (_d.label) {
@@ -1993,14 +1993,14 @@ var deserializeAws_queryDescribeDBClustersCommandError = function (output, conte
1993
1993
  case 3: throw _d.sent();
1994
1994
  case 4:
1995
1995
  parsedBody = parsedOutput.body;
1996
- $metadata = deserializeMetadata(output);
1997
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1998
- response = new __BaseException({
1999
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2000
- $fault: "client",
2001
- $metadata: $metadata,
1996
+ throwDefaultError({
1997
+ output: output,
1998
+ parsedBody: parsedBody.Error,
1999
+ exceptionCtor: __BaseException,
2000
+ errorCode: errorCode,
2002
2001
  });
2003
- throw __decorateServiceException(response, parsedBody.Error);
2002
+ _d.label = 5;
2003
+ case 5: return [2];
2004
2004
  }
2005
2005
  });
2006
2006
  }); };
@@ -2023,7 +2023,7 @@ export var deserializeAws_queryDescribeDBClusterSnapshotAttributesCommand = func
2023
2023
  });
2024
2024
  }); };
2025
2025
  var deserializeAws_queryDescribeDBClusterSnapshotAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2026
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2026
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2027
2027
  var _c;
2028
2028
  return __generator(this, function (_d) {
2029
2029
  switch (_d.label) {
@@ -2044,14 +2044,14 @@ var deserializeAws_queryDescribeDBClusterSnapshotAttributesCommandError = functi
2044
2044
  case 3: throw _d.sent();
2045
2045
  case 4:
2046
2046
  parsedBody = parsedOutput.body;
2047
- $metadata = deserializeMetadata(output);
2048
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2049
- response = new __BaseException({
2050
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2051
- $fault: "client",
2052
- $metadata: $metadata,
2047
+ throwDefaultError({
2048
+ output: output,
2049
+ parsedBody: parsedBody.Error,
2050
+ exceptionCtor: __BaseException,
2051
+ errorCode: errorCode,
2053
2052
  });
2054
- throw __decorateServiceException(response, parsedBody.Error);
2053
+ _d.label = 5;
2054
+ case 5: return [2];
2055
2055
  }
2056
2056
  });
2057
2057
  }); };
@@ -2074,7 +2074,7 @@ export var deserializeAws_queryDescribeDBClusterSnapshotsCommand = function (out
2074
2074
  });
2075
2075
  }); };
2076
2076
  var deserializeAws_queryDescribeDBClusterSnapshotsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2077
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2077
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2078
2078
  var _c;
2079
2079
  return __generator(this, function (_d) {
2080
2080
  switch (_d.label) {
@@ -2095,14 +2095,14 @@ var deserializeAws_queryDescribeDBClusterSnapshotsCommandError = function (outpu
2095
2095
  case 3: throw _d.sent();
2096
2096
  case 4:
2097
2097
  parsedBody = parsedOutput.body;
2098
- $metadata = deserializeMetadata(output);
2099
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2100
- response = new __BaseException({
2101
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2102
- $fault: "client",
2103
- $metadata: $metadata,
2098
+ throwDefaultError({
2099
+ output: output,
2100
+ parsedBody: parsedBody.Error,
2101
+ exceptionCtor: __BaseException,
2102
+ errorCode: errorCode,
2104
2103
  });
2105
- throw __decorateServiceException(response, parsedBody.Error);
2104
+ _d.label = 5;
2105
+ case 5: return [2];
2106
2106
  }
2107
2107
  });
2108
2108
  }); };
@@ -2125,7 +2125,7 @@ export var deserializeAws_queryDescribeDBEngineVersionsCommand = function (outpu
2125
2125
  });
2126
2126
  }); };
2127
2127
  var deserializeAws_queryDescribeDBEngineVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2128
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2128
+ var parsedOutput, _a, errorCode, parsedBody;
2129
2129
  var _b;
2130
2130
  return __generator(this, function (_c) {
2131
2131
  switch (_c.label) {
@@ -2136,18 +2136,13 @@ var deserializeAws_queryDescribeDBEngineVersionsCommandError = function (output,
2136
2136
  case 1:
2137
2137
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2138
2138
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2139
- switch (errorCode) {
2140
- default:
2141
- parsedBody = parsedOutput.body;
2142
- $metadata = deserializeMetadata(output);
2143
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2144
- response = new __BaseException({
2145
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2146
- $fault: "client",
2147
- $metadata: $metadata,
2148
- });
2149
- throw __decorateServiceException(response, parsedBody.Error);
2150
- }
2139
+ parsedBody = parsedOutput.body;
2140
+ throwDefaultError({
2141
+ output: output,
2142
+ parsedBody: parsedBody.Error,
2143
+ exceptionCtor: __BaseException,
2144
+ errorCode: errorCode,
2145
+ });
2151
2146
  return [2];
2152
2147
  }
2153
2148
  });
@@ -2171,7 +2166,7 @@ export var deserializeAws_queryDescribeDBInstancesCommand = function (output, co
2171
2166
  });
2172
2167
  }); };
2173
2168
  var deserializeAws_queryDescribeDBInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2174
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2169
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2175
2170
  var _c;
2176
2171
  return __generator(this, function (_d) {
2177
2172
  switch (_d.label) {
@@ -2192,14 +2187,14 @@ var deserializeAws_queryDescribeDBInstancesCommandError = function (output, cont
2192
2187
  case 3: throw _d.sent();
2193
2188
  case 4:
2194
2189
  parsedBody = parsedOutput.body;
2195
- $metadata = deserializeMetadata(output);
2196
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2197
- response = new __BaseException({
2198
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2199
- $fault: "client",
2200
- $metadata: $metadata,
2190
+ throwDefaultError({
2191
+ output: output,
2192
+ parsedBody: parsedBody.Error,
2193
+ exceptionCtor: __BaseException,
2194
+ errorCode: errorCode,
2201
2195
  });
2202
- throw __decorateServiceException(response, parsedBody.Error);
2196
+ _d.label = 5;
2197
+ case 5: return [2];
2203
2198
  }
2204
2199
  });
2205
2200
  }); };
@@ -2222,7 +2217,7 @@ export var deserializeAws_queryDescribeDBSubnetGroupsCommand = function (output,
2222
2217
  });
2223
2218
  }); };
2224
2219
  var deserializeAws_queryDescribeDBSubnetGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2225
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2220
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2226
2221
  var _c;
2227
2222
  return __generator(this, function (_d) {
2228
2223
  switch (_d.label) {
@@ -2243,14 +2238,14 @@ var deserializeAws_queryDescribeDBSubnetGroupsCommandError = function (output, c
2243
2238
  case 3: throw _d.sent();
2244
2239
  case 4:
2245
2240
  parsedBody = parsedOutput.body;
2246
- $metadata = deserializeMetadata(output);
2247
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2248
- response = new __BaseException({
2249
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2250
- $fault: "client",
2251
- $metadata: $metadata,
2241
+ throwDefaultError({
2242
+ output: output,
2243
+ parsedBody: parsedBody.Error,
2244
+ exceptionCtor: __BaseException,
2245
+ errorCode: errorCode,
2252
2246
  });
2253
- throw __decorateServiceException(response, parsedBody.Error);
2247
+ _d.label = 5;
2248
+ case 5: return [2];
2254
2249
  }
2255
2250
  });
2256
2251
  }); };
@@ -2273,7 +2268,7 @@ export var deserializeAws_queryDescribeEngineDefaultClusterParametersCommand = f
2273
2268
  });
2274
2269
  }); };
2275
2270
  var deserializeAws_queryDescribeEngineDefaultClusterParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2276
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2271
+ var parsedOutput, _a, errorCode, parsedBody;
2277
2272
  var _b;
2278
2273
  return __generator(this, function (_c) {
2279
2274
  switch (_c.label) {
@@ -2284,18 +2279,13 @@ var deserializeAws_queryDescribeEngineDefaultClusterParametersCommandError = fun
2284
2279
  case 1:
2285
2280
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2286
2281
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2287
- switch (errorCode) {
2288
- default:
2289
- parsedBody = parsedOutput.body;
2290
- $metadata = deserializeMetadata(output);
2291
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2292
- response = new __BaseException({
2293
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2294
- $fault: "client",
2295
- $metadata: $metadata,
2296
- });
2297
- throw __decorateServiceException(response, parsedBody.Error);
2298
- }
2282
+ parsedBody = parsedOutput.body;
2283
+ throwDefaultError({
2284
+ output: output,
2285
+ parsedBody: parsedBody.Error,
2286
+ exceptionCtor: __BaseException,
2287
+ errorCode: errorCode,
2288
+ });
2299
2289
  return [2];
2300
2290
  }
2301
2291
  });
@@ -2319,7 +2309,7 @@ export var deserializeAws_queryDescribeEventCategoriesCommand = function (output
2319
2309
  });
2320
2310
  }); };
2321
2311
  var deserializeAws_queryDescribeEventCategoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2322
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2312
+ var parsedOutput, _a, errorCode, parsedBody;
2323
2313
  var _b;
2324
2314
  return __generator(this, function (_c) {
2325
2315
  switch (_c.label) {
@@ -2330,18 +2320,13 @@ var deserializeAws_queryDescribeEventCategoriesCommandError = function (output,
2330
2320
  case 1:
2331
2321
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2332
2322
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2333
- switch (errorCode) {
2334
- default:
2335
- parsedBody = parsedOutput.body;
2336
- $metadata = deserializeMetadata(output);
2337
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2338
- response = new __BaseException({
2339
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2340
- $fault: "client",
2341
- $metadata: $metadata,
2342
- });
2343
- throw __decorateServiceException(response, parsedBody.Error);
2344
- }
2323
+ parsedBody = parsedOutput.body;
2324
+ throwDefaultError({
2325
+ output: output,
2326
+ parsedBody: parsedBody.Error,
2327
+ exceptionCtor: __BaseException,
2328
+ errorCode: errorCode,
2329
+ });
2345
2330
  return [2];
2346
2331
  }
2347
2332
  });
@@ -2365,7 +2350,7 @@ export var deserializeAws_queryDescribeEventsCommand = function (output, context
2365
2350
  });
2366
2351
  }); };
2367
2352
  var deserializeAws_queryDescribeEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2368
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2353
+ var parsedOutput, _a, errorCode, parsedBody;
2369
2354
  var _b;
2370
2355
  return __generator(this, function (_c) {
2371
2356
  switch (_c.label) {
@@ -2376,18 +2361,13 @@ var deserializeAws_queryDescribeEventsCommandError = function (output, context)
2376
2361
  case 1:
2377
2362
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2378
2363
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2379
- switch (errorCode) {
2380
- default:
2381
- parsedBody = parsedOutput.body;
2382
- $metadata = deserializeMetadata(output);
2383
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2384
- response = new __BaseException({
2385
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2386
- $fault: "client",
2387
- $metadata: $metadata,
2388
- });
2389
- throw __decorateServiceException(response, parsedBody.Error);
2390
- }
2364
+ parsedBody = parsedOutput.body;
2365
+ throwDefaultError({
2366
+ output: output,
2367
+ parsedBody: parsedBody.Error,
2368
+ exceptionCtor: __BaseException,
2369
+ errorCode: errorCode,
2370
+ });
2391
2371
  return [2];
2392
2372
  }
2393
2373
  });
@@ -2411,7 +2391,7 @@ export var deserializeAws_queryDescribeEventSubscriptionsCommand = function (out
2411
2391
  });
2412
2392
  }); };
2413
2393
  var deserializeAws_queryDescribeEventSubscriptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2414
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2394
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2415
2395
  var _c;
2416
2396
  return __generator(this, function (_d) {
2417
2397
  switch (_d.label) {
@@ -2432,14 +2412,14 @@ var deserializeAws_queryDescribeEventSubscriptionsCommandError = function (outpu
2432
2412
  case 3: throw _d.sent();
2433
2413
  case 4:
2434
2414
  parsedBody = parsedOutput.body;
2435
- $metadata = deserializeMetadata(output);
2436
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2437
- response = new __BaseException({
2438
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2439
- $fault: "client",
2440
- $metadata: $metadata,
2415
+ throwDefaultError({
2416
+ output: output,
2417
+ parsedBody: parsedBody.Error,
2418
+ exceptionCtor: __BaseException,
2419
+ errorCode: errorCode,
2441
2420
  });
2442
- throw __decorateServiceException(response, parsedBody.Error);
2421
+ _d.label = 5;
2422
+ case 5: return [2];
2443
2423
  }
2444
2424
  });
2445
2425
  }); };
@@ -2462,7 +2442,7 @@ export var deserializeAws_queryDescribeGlobalClustersCommand = function (output,
2462
2442
  });
2463
2443
  }); };
2464
2444
  var deserializeAws_queryDescribeGlobalClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2465
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2445
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2466
2446
  var _c;
2467
2447
  return __generator(this, function (_d) {
2468
2448
  switch (_d.label) {
@@ -2483,14 +2463,14 @@ var deserializeAws_queryDescribeGlobalClustersCommandError = function (output, c
2483
2463
  case 3: throw _d.sent();
2484
2464
  case 4:
2485
2465
  parsedBody = parsedOutput.body;
2486
- $metadata = deserializeMetadata(output);
2487
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2488
- response = new __BaseException({
2489
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2490
- $fault: "client",
2491
- $metadata: $metadata,
2466
+ throwDefaultError({
2467
+ output: output,
2468
+ parsedBody: parsedBody.Error,
2469
+ exceptionCtor: __BaseException,
2470
+ errorCode: errorCode,
2492
2471
  });
2493
- throw __decorateServiceException(response, parsedBody.Error);
2472
+ _d.label = 5;
2473
+ case 5: return [2];
2494
2474
  }
2495
2475
  });
2496
2476
  }); };
@@ -2513,7 +2493,7 @@ export var deserializeAws_queryDescribeOrderableDBInstanceOptionsCommand = funct
2513
2493
  });
2514
2494
  }); };
2515
2495
  var deserializeAws_queryDescribeOrderableDBInstanceOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2516
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2496
+ var parsedOutput, _a, errorCode, parsedBody;
2517
2497
  var _b;
2518
2498
  return __generator(this, function (_c) {
2519
2499
  switch (_c.label) {
@@ -2524,18 +2504,13 @@ var deserializeAws_queryDescribeOrderableDBInstanceOptionsCommandError = functio
2524
2504
  case 1:
2525
2505
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2526
2506
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2527
- switch (errorCode) {
2528
- default:
2529
- parsedBody = parsedOutput.body;
2530
- $metadata = deserializeMetadata(output);
2531
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2532
- response = new __BaseException({
2533
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2534
- $fault: "client",
2535
- $metadata: $metadata,
2536
- });
2537
- throw __decorateServiceException(response, parsedBody.Error);
2538
- }
2507
+ parsedBody = parsedOutput.body;
2508
+ throwDefaultError({
2509
+ output: output,
2510
+ parsedBody: parsedBody.Error,
2511
+ exceptionCtor: __BaseException,
2512
+ errorCode: errorCode,
2513
+ });
2539
2514
  return [2];
2540
2515
  }
2541
2516
  });
@@ -2559,7 +2534,7 @@ export var deserializeAws_queryDescribePendingMaintenanceActionsCommand = functi
2559
2534
  });
2560
2535
  }); };
2561
2536
  var deserializeAws_queryDescribePendingMaintenanceActionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2562
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2537
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2563
2538
  var _c;
2564
2539
  return __generator(this, function (_d) {
2565
2540
  switch (_d.label) {
@@ -2580,14 +2555,14 @@ var deserializeAws_queryDescribePendingMaintenanceActionsCommandError = function
2580
2555
  case 3: throw _d.sent();
2581
2556
  case 4:
2582
2557
  parsedBody = parsedOutput.body;
2583
- $metadata = deserializeMetadata(output);
2584
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2585
- response = new __BaseException({
2586
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2587
- $fault: "client",
2588
- $metadata: $metadata,
2558
+ throwDefaultError({
2559
+ output: output,
2560
+ parsedBody: parsedBody.Error,
2561
+ exceptionCtor: __BaseException,
2562
+ errorCode: errorCode,
2589
2563
  });
2590
- throw __decorateServiceException(response, parsedBody.Error);
2564
+ _d.label = 5;
2565
+ case 5: return [2];
2591
2566
  }
2592
2567
  });
2593
2568
  }); };
@@ -2610,7 +2585,7 @@ export var deserializeAws_queryFailoverDBClusterCommand = function (output, cont
2610
2585
  });
2611
2586
  }); };
2612
2587
  var deserializeAws_queryFailoverDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2613
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2588
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2614
2589
  var _c;
2615
2590
  return __generator(this, function (_d) {
2616
2591
  switch (_d.label) {
@@ -2639,14 +2614,14 @@ var deserializeAws_queryFailoverDBClusterCommandError = function (output, contex
2639
2614
  case 7: throw _d.sent();
2640
2615
  case 8:
2641
2616
  parsedBody = parsedOutput.body;
2642
- $metadata = deserializeMetadata(output);
2643
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2644
- response = new __BaseException({
2645
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2646
- $fault: "client",
2647
- $metadata: $metadata,
2617
+ throwDefaultError({
2618
+ output: output,
2619
+ parsedBody: parsedBody.Error,
2620
+ exceptionCtor: __BaseException,
2621
+ errorCode: errorCode,
2648
2622
  });
2649
- throw __decorateServiceException(response, parsedBody.Error);
2623
+ _d.label = 9;
2624
+ case 9: return [2];
2650
2625
  }
2651
2626
  });
2652
2627
  }); };
@@ -2669,7 +2644,7 @@ export var deserializeAws_queryListTagsForResourceCommand = function (output, co
2669
2644
  });
2670
2645
  }); };
2671
2646
  var deserializeAws_queryListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2672
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2647
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2673
2648
  var _c;
2674
2649
  return __generator(this, function (_d) {
2675
2650
  switch (_d.label) {
@@ -2698,14 +2673,14 @@ var deserializeAws_queryListTagsForResourceCommandError = function (output, cont
2698
2673
  case 7: throw _d.sent();
2699
2674
  case 8:
2700
2675
  parsedBody = parsedOutput.body;
2701
- $metadata = deserializeMetadata(output);
2702
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2703
- response = new __BaseException({
2704
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2705
- $fault: "client",
2706
- $metadata: $metadata,
2676
+ throwDefaultError({
2677
+ output: output,
2678
+ parsedBody: parsedBody.Error,
2679
+ exceptionCtor: __BaseException,
2680
+ errorCode: errorCode,
2707
2681
  });
2708
- throw __decorateServiceException(response, parsedBody.Error);
2682
+ _d.label = 9;
2683
+ case 9: return [2];
2709
2684
  }
2710
2685
  });
2711
2686
  }); };
@@ -2728,7 +2703,7 @@ export var deserializeAws_queryModifyDBClusterCommand = function (output, contex
2728
2703
  });
2729
2704
  }); };
2730
2705
  var deserializeAws_queryModifyDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2731
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2706
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2732
2707
  var _c;
2733
2708
  return __generator(this, function (_d) {
2734
2709
  switch (_d.label) {
@@ -2789,14 +2764,14 @@ var deserializeAws_queryModifyDBClusterCommandError = function (output, context)
2789
2764
  case 23: throw _d.sent();
2790
2765
  case 24:
2791
2766
  parsedBody = parsedOutput.body;
2792
- $metadata = deserializeMetadata(output);
2793
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2794
- response = new __BaseException({
2795
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2796
- $fault: "client",
2797
- $metadata: $metadata,
2767
+ throwDefaultError({
2768
+ output: output,
2769
+ parsedBody: parsedBody.Error,
2770
+ exceptionCtor: __BaseException,
2771
+ errorCode: errorCode,
2798
2772
  });
2799
- throw __decorateServiceException(response, parsedBody.Error);
2773
+ _d.label = 25;
2774
+ case 25: return [2];
2800
2775
  }
2801
2776
  });
2802
2777
  }); };
@@ -2819,7 +2794,7 @@ export var deserializeAws_queryModifyDBClusterParameterGroupCommand = function (
2819
2794
  });
2820
2795
  }); };
2821
2796
  var deserializeAws_queryModifyDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2822
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2797
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2823
2798
  var _c;
2824
2799
  return __generator(this, function (_d) {
2825
2800
  switch (_d.label) {
@@ -2844,14 +2819,14 @@ var deserializeAws_queryModifyDBClusterParameterGroupCommandError = function (ou
2844
2819
  case 5: throw _d.sent();
2845
2820
  case 6:
2846
2821
  parsedBody = parsedOutput.body;
2847
- $metadata = deserializeMetadata(output);
2848
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2849
- response = new __BaseException({
2850
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2851
- $fault: "client",
2852
- $metadata: $metadata,
2822
+ throwDefaultError({
2823
+ output: output,
2824
+ parsedBody: parsedBody.Error,
2825
+ exceptionCtor: __BaseException,
2826
+ errorCode: errorCode,
2853
2827
  });
2854
- throw __decorateServiceException(response, parsedBody.Error);
2828
+ _d.label = 7;
2829
+ case 7: return [2];
2855
2830
  }
2856
2831
  });
2857
2832
  }); };
@@ -2874,7 +2849,7 @@ export var deserializeAws_queryModifyDBClusterSnapshotAttributeCommand = functio
2874
2849
  });
2875
2850
  }); };
2876
2851
  var deserializeAws_queryModifyDBClusterSnapshotAttributeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2877
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2852
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2878
2853
  var _c;
2879
2854
  return __generator(this, function (_d) {
2880
2855
  switch (_d.label) {
@@ -2903,14 +2878,14 @@ var deserializeAws_queryModifyDBClusterSnapshotAttributeCommandError = function
2903
2878
  case 7: throw _d.sent();
2904
2879
  case 8:
2905
2880
  parsedBody = parsedOutput.body;
2906
- $metadata = deserializeMetadata(output);
2907
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2908
- response = new __BaseException({
2909
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2910
- $fault: "client",
2911
- $metadata: $metadata,
2881
+ throwDefaultError({
2882
+ output: output,
2883
+ parsedBody: parsedBody.Error,
2884
+ exceptionCtor: __BaseException,
2885
+ errorCode: errorCode,
2912
2886
  });
2913
- throw __decorateServiceException(response, parsedBody.Error);
2887
+ _d.label = 9;
2888
+ case 9: return [2];
2914
2889
  }
2915
2890
  });
2916
2891
  }); };
@@ -2933,7 +2908,7 @@ export var deserializeAws_queryModifyDBInstanceCommand = function (output, conte
2933
2908
  });
2934
2909
  }); };
2935
2910
  var deserializeAws_queryModifyDBInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2936
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2911
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2937
2912
  var _c;
2938
2913
  return __generator(this, function (_d) {
2939
2914
  switch (_d.label) {
@@ -3002,14 +2977,14 @@ var deserializeAws_queryModifyDBInstanceCommandError = function (output, context
3002
2977
  case 27: throw _d.sent();
3003
2978
  case 28:
3004
2979
  parsedBody = parsedOutput.body;
3005
- $metadata = deserializeMetadata(output);
3006
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3007
- response = new __BaseException({
3008
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3009
- $fault: "client",
3010
- $metadata: $metadata,
2980
+ throwDefaultError({
2981
+ output: output,
2982
+ parsedBody: parsedBody.Error,
2983
+ exceptionCtor: __BaseException,
2984
+ errorCode: errorCode,
3011
2985
  });
3012
- throw __decorateServiceException(response, parsedBody.Error);
2986
+ _d.label = 29;
2987
+ case 29: return [2];
3013
2988
  }
3014
2989
  });
3015
2990
  }); };
@@ -3032,7 +3007,7 @@ export var deserializeAws_queryModifyDBSubnetGroupCommand = function (output, co
3032
3007
  });
3033
3008
  }); };
3034
3009
  var deserializeAws_queryModifyDBSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3035
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3010
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3036
3011
  var _c;
3037
3012
  return __generator(this, function (_d) {
3038
3013
  switch (_d.label) {
@@ -3069,14 +3044,14 @@ var deserializeAws_queryModifyDBSubnetGroupCommandError = function (output, cont
3069
3044
  case 11: throw _d.sent();
3070
3045
  case 12:
3071
3046
  parsedBody = parsedOutput.body;
3072
- $metadata = deserializeMetadata(output);
3073
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3074
- response = new __BaseException({
3075
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3076
- $fault: "client",
3077
- $metadata: $metadata,
3047
+ throwDefaultError({
3048
+ output: output,
3049
+ parsedBody: parsedBody.Error,
3050
+ exceptionCtor: __BaseException,
3051
+ errorCode: errorCode,
3078
3052
  });
3079
- throw __decorateServiceException(response, parsedBody.Error);
3053
+ _d.label = 13;
3054
+ case 13: return [2];
3080
3055
  }
3081
3056
  });
3082
3057
  }); };
@@ -3099,7 +3074,7 @@ export var deserializeAws_queryModifyEventSubscriptionCommand = function (output
3099
3074
  });
3100
3075
  }); };
3101
3076
  var deserializeAws_queryModifyEventSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3102
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3077
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3103
3078
  var _c;
3104
3079
  return __generator(this, function (_d) {
3105
3080
  switch (_d.label) {
@@ -3140,14 +3115,14 @@ var deserializeAws_queryModifyEventSubscriptionCommandError = function (output,
3140
3115
  case 13: throw _d.sent();
3141
3116
  case 14:
3142
3117
  parsedBody = parsedOutput.body;
3143
- $metadata = deserializeMetadata(output);
3144
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3145
- response = new __BaseException({
3146
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3147
- $fault: "client",
3148
- $metadata: $metadata,
3118
+ throwDefaultError({
3119
+ output: output,
3120
+ parsedBody: parsedBody.Error,
3121
+ exceptionCtor: __BaseException,
3122
+ errorCode: errorCode,
3149
3123
  });
3150
- throw __decorateServiceException(response, parsedBody.Error);
3124
+ _d.label = 15;
3125
+ case 15: return [2];
3151
3126
  }
3152
3127
  });
3153
3128
  }); };
@@ -3170,7 +3145,7 @@ export var deserializeAws_queryModifyGlobalClusterCommand = function (output, co
3170
3145
  });
3171
3146
  }); };
3172
3147
  var deserializeAws_queryModifyGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3173
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3148
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3174
3149
  var _c;
3175
3150
  return __generator(this, function (_d) {
3176
3151
  switch (_d.label) {
@@ -3195,14 +3170,14 @@ var deserializeAws_queryModifyGlobalClusterCommandError = function (output, cont
3195
3170
  case 5: throw _d.sent();
3196
3171
  case 6:
3197
3172
  parsedBody = parsedOutput.body;
3198
- $metadata = deserializeMetadata(output);
3199
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3200
- response = new __BaseException({
3201
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3202
- $fault: "client",
3203
- $metadata: $metadata,
3173
+ throwDefaultError({
3174
+ output: output,
3175
+ parsedBody: parsedBody.Error,
3176
+ exceptionCtor: __BaseException,
3177
+ errorCode: errorCode,
3204
3178
  });
3205
- throw __decorateServiceException(response, parsedBody.Error);
3179
+ _d.label = 7;
3180
+ case 7: return [2];
3206
3181
  }
3207
3182
  });
3208
3183
  }); };
@@ -3225,7 +3200,7 @@ export var deserializeAws_queryRebootDBInstanceCommand = function (output, conte
3225
3200
  });
3226
3201
  }); };
3227
3202
  var deserializeAws_queryRebootDBInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3228
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3203
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3229
3204
  var _c;
3230
3205
  return __generator(this, function (_d) {
3231
3206
  switch (_d.label) {
@@ -3250,14 +3225,14 @@ var deserializeAws_queryRebootDBInstanceCommandError = function (output, context
3250
3225
  case 5: throw _d.sent();
3251
3226
  case 6:
3252
3227
  parsedBody = parsedOutput.body;
3253
- $metadata = deserializeMetadata(output);
3254
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3255
- response = new __BaseException({
3256
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3257
- $fault: "client",
3258
- $metadata: $metadata,
3228
+ throwDefaultError({
3229
+ output: output,
3230
+ parsedBody: parsedBody.Error,
3231
+ exceptionCtor: __BaseException,
3232
+ errorCode: errorCode,
3259
3233
  });
3260
- throw __decorateServiceException(response, parsedBody.Error);
3234
+ _d.label = 7;
3235
+ case 7: return [2];
3261
3236
  }
3262
3237
  });
3263
3238
  }); };
@@ -3280,7 +3255,7 @@ export var deserializeAws_queryRemoveFromGlobalClusterCommand = function (output
3280
3255
  });
3281
3256
  }); };
3282
3257
  var deserializeAws_queryRemoveFromGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3283
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3258
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3284
3259
  var _c;
3285
3260
  return __generator(this, function (_d) {
3286
3261
  switch (_d.label) {
@@ -3309,14 +3284,14 @@ var deserializeAws_queryRemoveFromGlobalClusterCommandError = function (output,
3309
3284
  case 7: throw _d.sent();
3310
3285
  case 8:
3311
3286
  parsedBody = parsedOutput.body;
3312
- $metadata = deserializeMetadata(output);
3313
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3314
- response = new __BaseException({
3315
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3316
- $fault: "client",
3317
- $metadata: $metadata,
3287
+ throwDefaultError({
3288
+ output: output,
3289
+ parsedBody: parsedBody.Error,
3290
+ exceptionCtor: __BaseException,
3291
+ errorCode: errorCode,
3318
3292
  });
3319
- throw __decorateServiceException(response, parsedBody.Error);
3293
+ _d.label = 9;
3294
+ case 9: return [2];
3320
3295
  }
3321
3296
  });
3322
3297
  }); };
@@ -3339,7 +3314,7 @@ export var deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommand = f
3339
3314
  });
3340
3315
  }); };
3341
3316
  var deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3342
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3317
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3343
3318
  var _c;
3344
3319
  return __generator(this, function (_d) {
3345
3320
  switch (_d.label) {
@@ -3364,14 +3339,14 @@ var deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommandError = fun
3364
3339
  case 5: throw _d.sent();
3365
3340
  case 6:
3366
3341
  parsedBody = parsedOutput.body;
3367
- $metadata = deserializeMetadata(output);
3368
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3369
- response = new __BaseException({
3370
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3371
- $fault: "client",
3372
- $metadata: $metadata,
3342
+ throwDefaultError({
3343
+ output: output,
3344
+ parsedBody: parsedBody.Error,
3345
+ exceptionCtor: __BaseException,
3346
+ errorCode: errorCode,
3373
3347
  });
3374
- throw __decorateServiceException(response, parsedBody.Error);
3348
+ _d.label = 7;
3349
+ case 7: return [2];
3375
3350
  }
3376
3351
  });
3377
3352
  }); };
@@ -3394,7 +3369,7 @@ export var deserializeAws_queryRemoveTagsFromResourceCommand = function (output,
3394
3369
  });
3395
3370
  }); };
3396
3371
  var deserializeAws_queryRemoveTagsFromResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3397
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3372
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3398
3373
  var _c;
3399
3374
  return __generator(this, function (_d) {
3400
3375
  switch (_d.label) {
@@ -3423,14 +3398,14 @@ var deserializeAws_queryRemoveTagsFromResourceCommandError = function (output, c
3423
3398
  case 7: throw _d.sent();
3424
3399
  case 8:
3425
3400
  parsedBody = parsedOutput.body;
3426
- $metadata = deserializeMetadata(output);
3427
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3428
- response = new __BaseException({
3429
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3430
- $fault: "client",
3431
- $metadata: $metadata,
3401
+ throwDefaultError({
3402
+ output: output,
3403
+ parsedBody: parsedBody.Error,
3404
+ exceptionCtor: __BaseException,
3405
+ errorCode: errorCode,
3432
3406
  });
3433
- throw __decorateServiceException(response, parsedBody.Error);
3407
+ _d.label = 9;
3408
+ case 9: return [2];
3434
3409
  }
3435
3410
  });
3436
3411
  }); };
@@ -3453,7 +3428,7 @@ export var deserializeAws_queryResetDBClusterParameterGroupCommand = function (o
3453
3428
  });
3454
3429
  }); };
3455
3430
  var deserializeAws_queryResetDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3456
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3431
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3457
3432
  var _c;
3458
3433
  return __generator(this, function (_d) {
3459
3434
  switch (_d.label) {
@@ -3478,14 +3453,14 @@ var deserializeAws_queryResetDBClusterParameterGroupCommandError = function (out
3478
3453
  case 5: throw _d.sent();
3479
3454
  case 6:
3480
3455
  parsedBody = parsedOutput.body;
3481
- $metadata = deserializeMetadata(output);
3482
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3483
- response = new __BaseException({
3484
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3485
- $fault: "client",
3486
- $metadata: $metadata,
3456
+ throwDefaultError({
3457
+ output: output,
3458
+ parsedBody: parsedBody.Error,
3459
+ exceptionCtor: __BaseException,
3460
+ errorCode: errorCode,
3487
3461
  });
3488
- throw __decorateServiceException(response, parsedBody.Error);
3462
+ _d.label = 7;
3463
+ case 7: return [2];
3489
3464
  }
3490
3465
  });
3491
3466
  }); };
@@ -3508,7 +3483,7 @@ export var deserializeAws_queryRestoreDBClusterFromSnapshotCommand = function (o
3508
3483
  });
3509
3484
  }); };
3510
3485
  var deserializeAws_queryRestoreDBClusterFromSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3511
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3486
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3512
3487
  var _c;
3513
3488
  return __generator(this, function (_d) {
3514
3489
  switch (_d.label) {
@@ -3581,14 +3556,14 @@ var deserializeAws_queryRestoreDBClusterFromSnapshotCommandError = function (out
3581
3556
  case 29: throw _d.sent();
3582
3557
  case 30:
3583
3558
  parsedBody = parsedOutput.body;
3584
- $metadata = deserializeMetadata(output);
3585
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3586
- response = new __BaseException({
3587
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3588
- $fault: "client",
3589
- $metadata: $metadata,
3559
+ throwDefaultError({
3560
+ output: output,
3561
+ parsedBody: parsedBody.Error,
3562
+ exceptionCtor: __BaseException,
3563
+ errorCode: errorCode,
3590
3564
  });
3591
- throw __decorateServiceException(response, parsedBody.Error);
3565
+ _d.label = 31;
3566
+ case 31: return [2];
3592
3567
  }
3593
3568
  });
3594
3569
  }); };
@@ -3611,7 +3586,7 @@ export var deserializeAws_queryRestoreDBClusterToPointInTimeCommand = function (
3611
3586
  });
3612
3587
  }); };
3613
3588
  var deserializeAws_queryRestoreDBClusterToPointInTimeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3614
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3589
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3615
3590
  var _c;
3616
3591
  return __generator(this, function (_d) {
3617
3592
  switch (_d.label) {
@@ -3688,14 +3663,14 @@ var deserializeAws_queryRestoreDBClusterToPointInTimeCommandError = function (ou
3688
3663
  case 31: throw _d.sent();
3689
3664
  case 32:
3690
3665
  parsedBody = parsedOutput.body;
3691
- $metadata = deserializeMetadata(output);
3692
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3693
- response = new __BaseException({
3694
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3695
- $fault: "client",
3696
- $metadata: $metadata,
3666
+ throwDefaultError({
3667
+ output: output,
3668
+ parsedBody: parsedBody.Error,
3669
+ exceptionCtor: __BaseException,
3670
+ errorCode: errorCode,
3697
3671
  });
3698
- throw __decorateServiceException(response, parsedBody.Error);
3672
+ _d.label = 33;
3673
+ case 33: return [2];
3699
3674
  }
3700
3675
  });
3701
3676
  }); };
@@ -3718,7 +3693,7 @@ export var deserializeAws_queryStartDBClusterCommand = function (output, context
3718
3693
  });
3719
3694
  }); };
3720
3695
  var deserializeAws_queryStartDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3721
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3696
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3722
3697
  var _c;
3723
3698
  return __generator(this, function (_d) {
3724
3699
  switch (_d.label) {
@@ -3747,14 +3722,14 @@ var deserializeAws_queryStartDBClusterCommandError = function (output, context)
3747
3722
  case 7: throw _d.sent();
3748
3723
  case 8:
3749
3724
  parsedBody = parsedOutput.body;
3750
- $metadata = deserializeMetadata(output);
3751
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3752
- response = new __BaseException({
3753
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3754
- $fault: "client",
3755
- $metadata: $metadata,
3725
+ throwDefaultError({
3726
+ output: output,
3727
+ parsedBody: parsedBody.Error,
3728
+ exceptionCtor: __BaseException,
3729
+ errorCode: errorCode,
3756
3730
  });
3757
- throw __decorateServiceException(response, parsedBody.Error);
3731
+ _d.label = 9;
3732
+ case 9: return [2];
3758
3733
  }
3759
3734
  });
3760
3735
  }); };
@@ -3777,7 +3752,7 @@ export var deserializeAws_queryStopDBClusterCommand = function (output, context)
3777
3752
  });
3778
3753
  }); };
3779
3754
  var deserializeAws_queryStopDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3780
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3755
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3781
3756
  var _c;
3782
3757
  return __generator(this, function (_d) {
3783
3758
  switch (_d.label) {
@@ -3806,14 +3781,14 @@ var deserializeAws_queryStopDBClusterCommandError = function (output, context) {
3806
3781
  case 7: throw _d.sent();
3807
3782
  case 8:
3808
3783
  parsedBody = parsedOutput.body;
3809
- $metadata = deserializeMetadata(output);
3810
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3811
- response = new __BaseException({
3812
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3813
- $fault: "client",
3814
- $metadata: $metadata,
3784
+ throwDefaultError({
3785
+ output: output,
3786
+ parsedBody: parsedBody.Error,
3787
+ exceptionCtor: __BaseException,
3788
+ errorCode: errorCode,
3815
3789
  });
3816
- throw __decorateServiceException(response, parsedBody.Error);
3790
+ _d.label = 9;
3791
+ case 9: return [2];
3817
3792
  }
3818
3793
  });
3819
3794
  }); };
@@ -4332,20 +4307,20 @@ var deserializeAws_querySubscriptionNotFoundFaultResponse = function (parsedOutp
4332
4307
  }); };
4333
4308
  var serializeAws_queryAddSourceIdentifierToSubscriptionMessage = function (input, context) {
4334
4309
  var entries = {};
4335
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
4310
+ if (input.SubscriptionName != null) {
4336
4311
  entries["SubscriptionName"] = input.SubscriptionName;
4337
4312
  }
4338
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
4313
+ if (input.SourceIdentifier != null) {
4339
4314
  entries["SourceIdentifier"] = input.SourceIdentifier;
4340
4315
  }
4341
4316
  return entries;
4342
4317
  };
4343
4318
  var serializeAws_queryAddTagsToResourceMessage = function (input, context) {
4344
4319
  var entries = {};
4345
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
4320
+ if (input.ResourceName != null) {
4346
4321
  entries["ResourceName"] = input.ResourceName;
4347
4322
  }
4348
- if (input.Tags !== undefined && input.Tags !== null) {
4323
+ if (input.Tags != null) {
4349
4324
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
4350
4325
  Object.entries(memberEntries).forEach(function (_a) {
4351
4326
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4357,13 +4332,13 @@ var serializeAws_queryAddTagsToResourceMessage = function (input, context) {
4357
4332
  };
4358
4333
  var serializeAws_queryApplyPendingMaintenanceActionMessage = function (input, context) {
4359
4334
  var entries = {};
4360
- if (input.ResourceIdentifier !== undefined && input.ResourceIdentifier !== null) {
4335
+ if (input.ResourceIdentifier != null) {
4361
4336
  entries["ResourceIdentifier"] = input.ResourceIdentifier;
4362
4337
  }
4363
- if (input.ApplyAction !== undefined && input.ApplyAction !== null) {
4338
+ if (input.ApplyAction != null) {
4364
4339
  entries["ApplyAction"] = input.ApplyAction;
4365
4340
  }
4366
- if (input.OptInType !== undefined && input.OptInType !== null) {
4341
+ if (input.OptInType != null) {
4367
4342
  entries["OptInType"] = input.OptInType;
4368
4343
  }
4369
4344
  return entries;
@@ -4416,7 +4391,7 @@ var serializeAws_queryAvailabilityZones = function (input, context) {
4416
4391
  };
4417
4392
  var serializeAws_queryCloudwatchLogsExportConfiguration = function (input, context) {
4418
4393
  var entries = {};
4419
- if (input.EnableLogTypes !== undefined && input.EnableLogTypes !== null) {
4394
+ if (input.EnableLogTypes != null) {
4420
4395
  var memberEntries = serializeAws_queryLogTypeList(input.EnableLogTypes, context);
4421
4396
  Object.entries(memberEntries).forEach(function (_a) {
4422
4397
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4424,7 +4399,7 @@ var serializeAws_queryCloudwatchLogsExportConfiguration = function (input, conte
4424
4399
  entries[loc] = value;
4425
4400
  });
4426
4401
  }
4427
- if (input.DisableLogTypes !== undefined && input.DisableLogTypes !== null) {
4402
+ if (input.DisableLogTypes != null) {
4428
4403
  var memberEntries = serializeAws_queryLogTypeList(input.DisableLogTypes, context);
4429
4404
  Object.entries(memberEntries).forEach(function (_a) {
4430
4405
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4436,19 +4411,16 @@ var serializeAws_queryCloudwatchLogsExportConfiguration = function (input, conte
4436
4411
  };
4437
4412
  var serializeAws_queryCopyDBClusterParameterGroupMessage = function (input, context) {
4438
4413
  var entries = {};
4439
- if (input.SourceDBClusterParameterGroupIdentifier !== undefined &&
4440
- input.SourceDBClusterParameterGroupIdentifier !== null) {
4414
+ if (input.SourceDBClusterParameterGroupIdentifier != null) {
4441
4415
  entries["SourceDBClusterParameterGroupIdentifier"] = input.SourceDBClusterParameterGroupIdentifier;
4442
4416
  }
4443
- if (input.TargetDBClusterParameterGroupIdentifier !== undefined &&
4444
- input.TargetDBClusterParameterGroupIdentifier !== null) {
4417
+ if (input.TargetDBClusterParameterGroupIdentifier != null) {
4445
4418
  entries["TargetDBClusterParameterGroupIdentifier"] = input.TargetDBClusterParameterGroupIdentifier;
4446
4419
  }
4447
- if (input.TargetDBClusterParameterGroupDescription !== undefined &&
4448
- input.TargetDBClusterParameterGroupDescription !== null) {
4420
+ if (input.TargetDBClusterParameterGroupDescription != null) {
4449
4421
  entries["TargetDBClusterParameterGroupDescription"] = input.TargetDBClusterParameterGroupDescription;
4450
4422
  }
4451
- if (input.Tags !== undefined && input.Tags !== null) {
4423
+ if (input.Tags != null) {
4452
4424
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
4453
4425
  Object.entries(memberEntries).forEach(function (_a) {
4454
4426
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4460,22 +4432,22 @@ var serializeAws_queryCopyDBClusterParameterGroupMessage = function (input, cont
4460
4432
  };
4461
4433
  var serializeAws_queryCopyDBClusterSnapshotMessage = function (input, context) {
4462
4434
  var entries = {};
4463
- if (input.SourceDBClusterSnapshotIdentifier !== undefined && input.SourceDBClusterSnapshotIdentifier !== null) {
4435
+ if (input.SourceDBClusterSnapshotIdentifier != null) {
4464
4436
  entries["SourceDBClusterSnapshotIdentifier"] = input.SourceDBClusterSnapshotIdentifier;
4465
4437
  }
4466
- if (input.TargetDBClusterSnapshotIdentifier !== undefined && input.TargetDBClusterSnapshotIdentifier !== null) {
4438
+ if (input.TargetDBClusterSnapshotIdentifier != null) {
4467
4439
  entries["TargetDBClusterSnapshotIdentifier"] = input.TargetDBClusterSnapshotIdentifier;
4468
4440
  }
4469
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
4441
+ if (input.KmsKeyId != null) {
4470
4442
  entries["KmsKeyId"] = input.KmsKeyId;
4471
4443
  }
4472
- if (input.PreSignedUrl !== undefined && input.PreSignedUrl !== null) {
4444
+ if (input.PreSignedUrl != null) {
4473
4445
  entries["PreSignedUrl"] = input.PreSignedUrl;
4474
4446
  }
4475
- if (input.CopyTags !== undefined && input.CopyTags !== null) {
4447
+ if (input.CopyTags != null) {
4476
4448
  entries["CopyTags"] = input.CopyTags;
4477
4449
  }
4478
- if (input.Tags !== undefined && input.Tags !== null) {
4450
+ if (input.Tags != null) {
4479
4451
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
4480
4452
  Object.entries(memberEntries).forEach(function (_a) {
4481
4453
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4487,7 +4459,7 @@ var serializeAws_queryCopyDBClusterSnapshotMessage = function (input, context) {
4487
4459
  };
4488
4460
  var serializeAws_queryCreateDBClusterMessage = function (input, context) {
4489
4461
  var entries = {};
4490
- if (input.AvailabilityZones !== undefined && input.AvailabilityZones !== null) {
4462
+ if (input.AvailabilityZones != null) {
4491
4463
  var memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
4492
4464
  Object.entries(memberEntries).forEach(function (_a) {
4493
4465
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4495,16 +4467,16 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
4495
4467
  entries[loc] = value;
4496
4468
  });
4497
4469
  }
4498
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
4470
+ if (input.BackupRetentionPeriod != null) {
4499
4471
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
4500
4472
  }
4501
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4473
+ if (input.DBClusterIdentifier != null) {
4502
4474
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4503
4475
  }
4504
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
4476
+ if (input.DBClusterParameterGroupName != null) {
4505
4477
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
4506
4478
  }
4507
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
4479
+ if (input.VpcSecurityGroupIds != null) {
4508
4480
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
4509
4481
  Object.entries(memberEntries).forEach(function (_a) {
4510
4482
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4512,31 +4484,31 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
4512
4484
  entries[loc] = value;
4513
4485
  });
4514
4486
  }
4515
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
4487
+ if (input.DBSubnetGroupName != null) {
4516
4488
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
4517
4489
  }
4518
- if (input.Engine !== undefined && input.Engine !== null) {
4490
+ if (input.Engine != null) {
4519
4491
  entries["Engine"] = input.Engine;
4520
4492
  }
4521
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
4493
+ if (input.EngineVersion != null) {
4522
4494
  entries["EngineVersion"] = input.EngineVersion;
4523
4495
  }
4524
- if (input.Port !== undefined && input.Port !== null) {
4496
+ if (input.Port != null) {
4525
4497
  entries["Port"] = input.Port;
4526
4498
  }
4527
- if (input.MasterUsername !== undefined && input.MasterUsername !== null) {
4499
+ if (input.MasterUsername != null) {
4528
4500
  entries["MasterUsername"] = input.MasterUsername;
4529
4501
  }
4530
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
4502
+ if (input.MasterUserPassword != null) {
4531
4503
  entries["MasterUserPassword"] = input.MasterUserPassword;
4532
4504
  }
4533
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
4505
+ if (input.PreferredBackupWindow != null) {
4534
4506
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
4535
4507
  }
4536
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
4508
+ if (input.PreferredMaintenanceWindow != null) {
4537
4509
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
4538
4510
  }
4539
- if (input.Tags !== undefined && input.Tags !== null) {
4511
+ if (input.Tags != null) {
4540
4512
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
4541
4513
  Object.entries(memberEntries).forEach(function (_a) {
4542
4514
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4544,16 +4516,16 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
4544
4516
  entries[loc] = value;
4545
4517
  });
4546
4518
  }
4547
- if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
4519
+ if (input.StorageEncrypted != null) {
4548
4520
  entries["StorageEncrypted"] = input.StorageEncrypted;
4549
4521
  }
4550
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
4522
+ if (input.KmsKeyId != null) {
4551
4523
  entries["KmsKeyId"] = input.KmsKeyId;
4552
4524
  }
4553
- if (input.PreSignedUrl !== undefined && input.PreSignedUrl !== null) {
4525
+ if (input.PreSignedUrl != null) {
4554
4526
  entries["PreSignedUrl"] = input.PreSignedUrl;
4555
4527
  }
4556
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
4528
+ if (input.EnableCloudwatchLogsExports != null) {
4557
4529
  var memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
4558
4530
  Object.entries(memberEntries).forEach(function (_a) {
4559
4531
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4561,26 +4533,26 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
4561
4533
  entries[loc] = value;
4562
4534
  });
4563
4535
  }
4564
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
4536
+ if (input.DeletionProtection != null) {
4565
4537
  entries["DeletionProtection"] = input.DeletionProtection;
4566
4538
  }
4567
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
4539
+ if (input.GlobalClusterIdentifier != null) {
4568
4540
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
4569
4541
  }
4570
4542
  return entries;
4571
4543
  };
4572
4544
  var serializeAws_queryCreateDBClusterParameterGroupMessage = function (input, context) {
4573
4545
  var entries = {};
4574
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
4546
+ if (input.DBClusterParameterGroupName != null) {
4575
4547
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
4576
4548
  }
4577
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
4549
+ if (input.DBParameterGroupFamily != null) {
4578
4550
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
4579
4551
  }
4580
- if (input.Description !== undefined && input.Description !== null) {
4552
+ if (input.Description != null) {
4581
4553
  entries["Description"] = input.Description;
4582
4554
  }
4583
- if (input.Tags !== undefined && input.Tags !== null) {
4555
+ if (input.Tags != null) {
4584
4556
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
4585
4557
  Object.entries(memberEntries).forEach(function (_a) {
4586
4558
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4592,13 +4564,13 @@ var serializeAws_queryCreateDBClusterParameterGroupMessage = function (input, co
4592
4564
  };
4593
4565
  var serializeAws_queryCreateDBClusterSnapshotMessage = function (input, context) {
4594
4566
  var entries = {};
4595
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
4567
+ if (input.DBClusterSnapshotIdentifier != null) {
4596
4568
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
4597
4569
  }
4598
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4570
+ if (input.DBClusterIdentifier != null) {
4599
4571
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4600
4572
  }
4601
- if (input.Tags !== undefined && input.Tags !== null) {
4573
+ if (input.Tags != null) {
4602
4574
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
4603
4575
  Object.entries(memberEntries).forEach(function (_a) {
4604
4576
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4610,25 +4582,25 @@ var serializeAws_queryCreateDBClusterSnapshotMessage = function (input, context)
4610
4582
  };
4611
4583
  var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
4612
4584
  var entries = {};
4613
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
4585
+ if (input.DBInstanceIdentifier != null) {
4614
4586
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
4615
4587
  }
4616
- if (input.DBInstanceClass !== undefined && input.DBInstanceClass !== null) {
4588
+ if (input.DBInstanceClass != null) {
4617
4589
  entries["DBInstanceClass"] = input.DBInstanceClass;
4618
4590
  }
4619
- if (input.Engine !== undefined && input.Engine !== null) {
4591
+ if (input.Engine != null) {
4620
4592
  entries["Engine"] = input.Engine;
4621
4593
  }
4622
- if (input.AvailabilityZone !== undefined && input.AvailabilityZone !== null) {
4594
+ if (input.AvailabilityZone != null) {
4623
4595
  entries["AvailabilityZone"] = input.AvailabilityZone;
4624
4596
  }
4625
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
4597
+ if (input.PreferredMaintenanceWindow != null) {
4626
4598
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
4627
4599
  }
4628
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
4600
+ if (input.AutoMinorVersionUpgrade != null) {
4629
4601
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
4630
4602
  }
4631
- if (input.Tags !== undefined && input.Tags !== null) {
4603
+ if (input.Tags != null) {
4632
4604
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
4633
4605
  Object.entries(memberEntries).forEach(function (_a) {
4634
4606
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4636,32 +4608,32 @@ var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
4636
4608
  entries[loc] = value;
4637
4609
  });
4638
4610
  }
4639
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4611
+ if (input.DBClusterIdentifier != null) {
4640
4612
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4641
4613
  }
4642
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
4614
+ if (input.CopyTagsToSnapshot != null) {
4643
4615
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
4644
4616
  }
4645
- if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
4617
+ if (input.PromotionTier != null) {
4646
4618
  entries["PromotionTier"] = input.PromotionTier;
4647
4619
  }
4648
- if (input.EnablePerformanceInsights !== undefined && input.EnablePerformanceInsights !== null) {
4620
+ if (input.EnablePerformanceInsights != null) {
4649
4621
  entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights;
4650
4622
  }
4651
- if (input.PerformanceInsightsKMSKeyId !== undefined && input.PerformanceInsightsKMSKeyId !== null) {
4623
+ if (input.PerformanceInsightsKMSKeyId != null) {
4652
4624
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
4653
4625
  }
4654
4626
  return entries;
4655
4627
  };
4656
4628
  var serializeAws_queryCreateDBSubnetGroupMessage = function (input, context) {
4657
4629
  var entries = {};
4658
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
4630
+ if (input.DBSubnetGroupName != null) {
4659
4631
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
4660
4632
  }
4661
- if (input.DBSubnetGroupDescription !== undefined && input.DBSubnetGroupDescription !== null) {
4633
+ if (input.DBSubnetGroupDescription != null) {
4662
4634
  entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription;
4663
4635
  }
4664
- if (input.SubnetIds !== undefined && input.SubnetIds !== null) {
4636
+ if (input.SubnetIds != null) {
4665
4637
  var memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
4666
4638
  Object.entries(memberEntries).forEach(function (_a) {
4667
4639
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4669,7 +4641,7 @@ var serializeAws_queryCreateDBSubnetGroupMessage = function (input, context) {
4669
4641
  entries[loc] = value;
4670
4642
  });
4671
4643
  }
4672
- if (input.Tags !== undefined && input.Tags !== null) {
4644
+ if (input.Tags != null) {
4673
4645
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
4674
4646
  Object.entries(memberEntries).forEach(function (_a) {
4675
4647
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4681,16 +4653,16 @@ var serializeAws_queryCreateDBSubnetGroupMessage = function (input, context) {
4681
4653
  };
4682
4654
  var serializeAws_queryCreateEventSubscriptionMessage = function (input, context) {
4683
4655
  var entries = {};
4684
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
4656
+ if (input.SubscriptionName != null) {
4685
4657
  entries["SubscriptionName"] = input.SubscriptionName;
4686
4658
  }
4687
- if (input.SnsTopicArn !== undefined && input.SnsTopicArn !== null) {
4659
+ if (input.SnsTopicArn != null) {
4688
4660
  entries["SnsTopicArn"] = input.SnsTopicArn;
4689
4661
  }
4690
- if (input.SourceType !== undefined && input.SourceType !== null) {
4662
+ if (input.SourceType != null) {
4691
4663
  entries["SourceType"] = input.SourceType;
4692
4664
  }
4693
- if (input.EventCategories !== undefined && input.EventCategories !== null) {
4665
+ if (input.EventCategories != null) {
4694
4666
  var memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
4695
4667
  Object.entries(memberEntries).forEach(function (_a) {
4696
4668
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4698,7 +4670,7 @@ var serializeAws_queryCreateEventSubscriptionMessage = function (input, context)
4698
4670
  entries[loc] = value;
4699
4671
  });
4700
4672
  }
4701
- if (input.SourceIds !== undefined && input.SourceIds !== null) {
4673
+ if (input.SourceIds != null) {
4702
4674
  var memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
4703
4675
  Object.entries(memberEntries).forEach(function (_a) {
4704
4676
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4706,10 +4678,10 @@ var serializeAws_queryCreateEventSubscriptionMessage = function (input, context)
4706
4678
  entries[loc] = value;
4707
4679
  });
4708
4680
  }
4709
- if (input.Enabled !== undefined && input.Enabled !== null) {
4681
+ if (input.Enabled != null) {
4710
4682
  entries["Enabled"] = input.Enabled;
4711
4683
  }
4712
- if (input.Tags !== undefined && input.Tags !== null) {
4684
+ if (input.Tags != null) {
4713
4685
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
4714
4686
  Object.entries(memberEntries).forEach(function (_a) {
4715
4687
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4721,90 +4693,90 @@ var serializeAws_queryCreateEventSubscriptionMessage = function (input, context)
4721
4693
  };
4722
4694
  var serializeAws_queryCreateGlobalClusterMessage = function (input, context) {
4723
4695
  var entries = {};
4724
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
4696
+ if (input.GlobalClusterIdentifier != null) {
4725
4697
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
4726
4698
  }
4727
- if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
4699
+ if (input.SourceDBClusterIdentifier != null) {
4728
4700
  entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
4729
4701
  }
4730
- if (input.Engine !== undefined && input.Engine !== null) {
4702
+ if (input.Engine != null) {
4731
4703
  entries["Engine"] = input.Engine;
4732
4704
  }
4733
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
4705
+ if (input.EngineVersion != null) {
4734
4706
  entries["EngineVersion"] = input.EngineVersion;
4735
4707
  }
4736
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
4708
+ if (input.DeletionProtection != null) {
4737
4709
  entries["DeletionProtection"] = input.DeletionProtection;
4738
4710
  }
4739
- if (input.DatabaseName !== undefined && input.DatabaseName !== null) {
4711
+ if (input.DatabaseName != null) {
4740
4712
  entries["DatabaseName"] = input.DatabaseName;
4741
4713
  }
4742
- if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
4714
+ if (input.StorageEncrypted != null) {
4743
4715
  entries["StorageEncrypted"] = input.StorageEncrypted;
4744
4716
  }
4745
4717
  return entries;
4746
4718
  };
4747
4719
  var serializeAws_queryDeleteDBClusterMessage = function (input, context) {
4748
4720
  var entries = {};
4749
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4721
+ if (input.DBClusterIdentifier != null) {
4750
4722
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4751
4723
  }
4752
- if (input.SkipFinalSnapshot !== undefined && input.SkipFinalSnapshot !== null) {
4724
+ if (input.SkipFinalSnapshot != null) {
4753
4725
  entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot;
4754
4726
  }
4755
- if (input.FinalDBSnapshotIdentifier !== undefined && input.FinalDBSnapshotIdentifier !== null) {
4727
+ if (input.FinalDBSnapshotIdentifier != null) {
4756
4728
  entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier;
4757
4729
  }
4758
4730
  return entries;
4759
4731
  };
4760
4732
  var serializeAws_queryDeleteDBClusterParameterGroupMessage = function (input, context) {
4761
4733
  var entries = {};
4762
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
4734
+ if (input.DBClusterParameterGroupName != null) {
4763
4735
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
4764
4736
  }
4765
4737
  return entries;
4766
4738
  };
4767
4739
  var serializeAws_queryDeleteDBClusterSnapshotMessage = function (input, context) {
4768
4740
  var entries = {};
4769
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
4741
+ if (input.DBClusterSnapshotIdentifier != null) {
4770
4742
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
4771
4743
  }
4772
4744
  return entries;
4773
4745
  };
4774
4746
  var serializeAws_queryDeleteDBInstanceMessage = function (input, context) {
4775
4747
  var entries = {};
4776
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
4748
+ if (input.DBInstanceIdentifier != null) {
4777
4749
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
4778
4750
  }
4779
4751
  return entries;
4780
4752
  };
4781
4753
  var serializeAws_queryDeleteDBSubnetGroupMessage = function (input, context) {
4782
4754
  var entries = {};
4783
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
4755
+ if (input.DBSubnetGroupName != null) {
4784
4756
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
4785
4757
  }
4786
4758
  return entries;
4787
4759
  };
4788
4760
  var serializeAws_queryDeleteEventSubscriptionMessage = function (input, context) {
4789
4761
  var entries = {};
4790
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
4762
+ if (input.SubscriptionName != null) {
4791
4763
  entries["SubscriptionName"] = input.SubscriptionName;
4792
4764
  }
4793
4765
  return entries;
4794
4766
  };
4795
4767
  var serializeAws_queryDeleteGlobalClusterMessage = function (input, context) {
4796
4768
  var entries = {};
4797
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
4769
+ if (input.GlobalClusterIdentifier != null) {
4798
4770
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
4799
4771
  }
4800
4772
  return entries;
4801
4773
  };
4802
4774
  var serializeAws_queryDescribeCertificatesMessage = function (input, context) {
4803
4775
  var entries = {};
4804
- if (input.CertificateIdentifier !== undefined && input.CertificateIdentifier !== null) {
4776
+ if (input.CertificateIdentifier != null) {
4805
4777
  entries["CertificateIdentifier"] = input.CertificateIdentifier;
4806
4778
  }
4807
- if (input.Filters !== undefined && input.Filters !== null) {
4779
+ if (input.Filters != null) {
4808
4780
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
4809
4781
  Object.entries(memberEntries).forEach(function (_a) {
4810
4782
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4812,20 +4784,20 @@ var serializeAws_queryDescribeCertificatesMessage = function (input, context) {
4812
4784
  entries[loc] = value;
4813
4785
  });
4814
4786
  }
4815
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4787
+ if (input.MaxRecords != null) {
4816
4788
  entries["MaxRecords"] = input.MaxRecords;
4817
4789
  }
4818
- if (input.Marker !== undefined && input.Marker !== null) {
4790
+ if (input.Marker != null) {
4819
4791
  entries["Marker"] = input.Marker;
4820
4792
  }
4821
4793
  return entries;
4822
4794
  };
4823
4795
  var serializeAws_queryDescribeDBClusterParameterGroupsMessage = function (input, context) {
4824
4796
  var entries = {};
4825
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
4797
+ if (input.DBClusterParameterGroupName != null) {
4826
4798
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
4827
4799
  }
4828
- if (input.Filters !== undefined && input.Filters !== null) {
4800
+ if (input.Filters != null) {
4829
4801
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
4830
4802
  Object.entries(memberEntries).forEach(function (_a) {
4831
4803
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4833,23 +4805,23 @@ var serializeAws_queryDescribeDBClusterParameterGroupsMessage = function (input,
4833
4805
  entries[loc] = value;
4834
4806
  });
4835
4807
  }
4836
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4808
+ if (input.MaxRecords != null) {
4837
4809
  entries["MaxRecords"] = input.MaxRecords;
4838
4810
  }
4839
- if (input.Marker !== undefined && input.Marker !== null) {
4811
+ if (input.Marker != null) {
4840
4812
  entries["Marker"] = input.Marker;
4841
4813
  }
4842
4814
  return entries;
4843
4815
  };
4844
4816
  var serializeAws_queryDescribeDBClusterParametersMessage = function (input, context) {
4845
4817
  var entries = {};
4846
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
4818
+ if (input.DBClusterParameterGroupName != null) {
4847
4819
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
4848
4820
  }
4849
- if (input.Source !== undefined && input.Source !== null) {
4821
+ if (input.Source != null) {
4850
4822
  entries["Source"] = input.Source;
4851
4823
  }
4852
- if (input.Filters !== undefined && input.Filters !== null) {
4824
+ if (input.Filters != null) {
4853
4825
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
4854
4826
  Object.entries(memberEntries).forEach(function (_a) {
4855
4827
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4857,20 +4829,20 @@ var serializeAws_queryDescribeDBClusterParametersMessage = function (input, cont
4857
4829
  entries[loc] = value;
4858
4830
  });
4859
4831
  }
4860
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4832
+ if (input.MaxRecords != null) {
4861
4833
  entries["MaxRecords"] = input.MaxRecords;
4862
4834
  }
4863
- if (input.Marker !== undefined && input.Marker !== null) {
4835
+ if (input.Marker != null) {
4864
4836
  entries["Marker"] = input.Marker;
4865
4837
  }
4866
4838
  return entries;
4867
4839
  };
4868
4840
  var serializeAws_queryDescribeDBClustersMessage = function (input, context) {
4869
4841
  var entries = {};
4870
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4842
+ if (input.DBClusterIdentifier != null) {
4871
4843
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4872
4844
  }
4873
- if (input.Filters !== undefined && input.Filters !== null) {
4845
+ if (input.Filters != null) {
4874
4846
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
4875
4847
  Object.entries(memberEntries).forEach(function (_a) {
4876
4848
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4878,33 +4850,33 @@ var serializeAws_queryDescribeDBClustersMessage = function (input, context) {
4878
4850
  entries[loc] = value;
4879
4851
  });
4880
4852
  }
4881
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4853
+ if (input.MaxRecords != null) {
4882
4854
  entries["MaxRecords"] = input.MaxRecords;
4883
4855
  }
4884
- if (input.Marker !== undefined && input.Marker !== null) {
4856
+ if (input.Marker != null) {
4885
4857
  entries["Marker"] = input.Marker;
4886
4858
  }
4887
4859
  return entries;
4888
4860
  };
4889
4861
  var serializeAws_queryDescribeDBClusterSnapshotAttributesMessage = function (input, context) {
4890
4862
  var entries = {};
4891
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
4863
+ if (input.DBClusterSnapshotIdentifier != null) {
4892
4864
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
4893
4865
  }
4894
4866
  return entries;
4895
4867
  };
4896
4868
  var serializeAws_queryDescribeDBClusterSnapshotsMessage = function (input, context) {
4897
4869
  var entries = {};
4898
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4870
+ if (input.DBClusterIdentifier != null) {
4899
4871
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4900
4872
  }
4901
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
4873
+ if (input.DBClusterSnapshotIdentifier != null) {
4902
4874
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
4903
4875
  }
4904
- if (input.SnapshotType !== undefined && input.SnapshotType !== null) {
4876
+ if (input.SnapshotType != null) {
4905
4877
  entries["SnapshotType"] = input.SnapshotType;
4906
4878
  }
4907
- if (input.Filters !== undefined && input.Filters !== null) {
4879
+ if (input.Filters != null) {
4908
4880
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
4909
4881
  Object.entries(memberEntries).forEach(function (_a) {
4910
4882
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4912,32 +4884,32 @@ var serializeAws_queryDescribeDBClusterSnapshotsMessage = function (input, conte
4912
4884
  entries[loc] = value;
4913
4885
  });
4914
4886
  }
4915
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4887
+ if (input.MaxRecords != null) {
4916
4888
  entries["MaxRecords"] = input.MaxRecords;
4917
4889
  }
4918
- if (input.Marker !== undefined && input.Marker !== null) {
4890
+ if (input.Marker != null) {
4919
4891
  entries["Marker"] = input.Marker;
4920
4892
  }
4921
- if (input.IncludeShared !== undefined && input.IncludeShared !== null) {
4893
+ if (input.IncludeShared != null) {
4922
4894
  entries["IncludeShared"] = input.IncludeShared;
4923
4895
  }
4924
- if (input.IncludePublic !== undefined && input.IncludePublic !== null) {
4896
+ if (input.IncludePublic != null) {
4925
4897
  entries["IncludePublic"] = input.IncludePublic;
4926
4898
  }
4927
4899
  return entries;
4928
4900
  };
4929
4901
  var serializeAws_queryDescribeDBEngineVersionsMessage = function (input, context) {
4930
4902
  var entries = {};
4931
- if (input.Engine !== undefined && input.Engine !== null) {
4903
+ if (input.Engine != null) {
4932
4904
  entries["Engine"] = input.Engine;
4933
4905
  }
4934
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
4906
+ if (input.EngineVersion != null) {
4935
4907
  entries["EngineVersion"] = input.EngineVersion;
4936
4908
  }
4937
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
4909
+ if (input.DBParameterGroupFamily != null) {
4938
4910
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
4939
4911
  }
4940
- if (input.Filters !== undefined && input.Filters !== null) {
4912
+ if (input.Filters != null) {
4941
4913
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
4942
4914
  Object.entries(memberEntries).forEach(function (_a) {
4943
4915
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4945,29 +4917,29 @@ var serializeAws_queryDescribeDBEngineVersionsMessage = function (input, context
4945
4917
  entries[loc] = value;
4946
4918
  });
4947
4919
  }
4948
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4920
+ if (input.MaxRecords != null) {
4949
4921
  entries["MaxRecords"] = input.MaxRecords;
4950
4922
  }
4951
- if (input.Marker !== undefined && input.Marker !== null) {
4923
+ if (input.Marker != null) {
4952
4924
  entries["Marker"] = input.Marker;
4953
4925
  }
4954
- if (input.DefaultOnly !== undefined && input.DefaultOnly !== null) {
4926
+ if (input.DefaultOnly != null) {
4955
4927
  entries["DefaultOnly"] = input.DefaultOnly;
4956
4928
  }
4957
- if (input.ListSupportedCharacterSets !== undefined && input.ListSupportedCharacterSets !== null) {
4929
+ if (input.ListSupportedCharacterSets != null) {
4958
4930
  entries["ListSupportedCharacterSets"] = input.ListSupportedCharacterSets;
4959
4931
  }
4960
- if (input.ListSupportedTimezones !== undefined && input.ListSupportedTimezones !== null) {
4932
+ if (input.ListSupportedTimezones != null) {
4961
4933
  entries["ListSupportedTimezones"] = input.ListSupportedTimezones;
4962
4934
  }
4963
4935
  return entries;
4964
4936
  };
4965
4937
  var serializeAws_queryDescribeDBInstancesMessage = function (input, context) {
4966
4938
  var entries = {};
4967
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
4939
+ if (input.DBInstanceIdentifier != null) {
4968
4940
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
4969
4941
  }
4970
- if (input.Filters !== undefined && input.Filters !== null) {
4942
+ if (input.Filters != null) {
4971
4943
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
4972
4944
  Object.entries(memberEntries).forEach(function (_a) {
4973
4945
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4975,20 +4947,20 @@ var serializeAws_queryDescribeDBInstancesMessage = function (input, context) {
4975
4947
  entries[loc] = value;
4976
4948
  });
4977
4949
  }
4978
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4950
+ if (input.MaxRecords != null) {
4979
4951
  entries["MaxRecords"] = input.MaxRecords;
4980
4952
  }
4981
- if (input.Marker !== undefined && input.Marker !== null) {
4953
+ if (input.Marker != null) {
4982
4954
  entries["Marker"] = input.Marker;
4983
4955
  }
4984
4956
  return entries;
4985
4957
  };
4986
4958
  var serializeAws_queryDescribeDBSubnetGroupsMessage = function (input, context) {
4987
4959
  var entries = {};
4988
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
4960
+ if (input.DBSubnetGroupName != null) {
4989
4961
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
4990
4962
  }
4991
- if (input.Filters !== undefined && input.Filters !== null) {
4963
+ if (input.Filters != null) {
4992
4964
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
4993
4965
  Object.entries(memberEntries).forEach(function (_a) {
4994
4966
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4996,20 +4968,20 @@ var serializeAws_queryDescribeDBSubnetGroupsMessage = function (input, context)
4996
4968
  entries[loc] = value;
4997
4969
  });
4998
4970
  }
4999
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4971
+ if (input.MaxRecords != null) {
5000
4972
  entries["MaxRecords"] = input.MaxRecords;
5001
4973
  }
5002
- if (input.Marker !== undefined && input.Marker !== null) {
4974
+ if (input.Marker != null) {
5003
4975
  entries["Marker"] = input.Marker;
5004
4976
  }
5005
4977
  return entries;
5006
4978
  };
5007
4979
  var serializeAws_queryDescribeEngineDefaultClusterParametersMessage = function (input, context) {
5008
4980
  var entries = {};
5009
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
4981
+ if (input.DBParameterGroupFamily != null) {
5010
4982
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
5011
4983
  }
5012
- if (input.Filters !== undefined && input.Filters !== null) {
4984
+ if (input.Filters != null) {
5013
4985
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
5014
4986
  Object.entries(memberEntries).forEach(function (_a) {
5015
4987
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5017,20 +4989,20 @@ var serializeAws_queryDescribeEngineDefaultClusterParametersMessage = function (
5017
4989
  entries[loc] = value;
5018
4990
  });
5019
4991
  }
5020
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
4992
+ if (input.MaxRecords != null) {
5021
4993
  entries["MaxRecords"] = input.MaxRecords;
5022
4994
  }
5023
- if (input.Marker !== undefined && input.Marker !== null) {
4995
+ if (input.Marker != null) {
5024
4996
  entries["Marker"] = input.Marker;
5025
4997
  }
5026
4998
  return entries;
5027
4999
  };
5028
5000
  var serializeAws_queryDescribeEventCategoriesMessage = function (input, context) {
5029
5001
  var entries = {};
5030
- if (input.SourceType !== undefined && input.SourceType !== null) {
5002
+ if (input.SourceType != null) {
5031
5003
  entries["SourceType"] = input.SourceType;
5032
5004
  }
5033
- if (input.Filters !== undefined && input.Filters !== null) {
5005
+ if (input.Filters != null) {
5034
5006
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
5035
5007
  Object.entries(memberEntries).forEach(function (_a) {
5036
5008
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5042,22 +5014,22 @@ var serializeAws_queryDescribeEventCategoriesMessage = function (input, context)
5042
5014
  };
5043
5015
  var serializeAws_queryDescribeEventsMessage = function (input, context) {
5044
5016
  var entries = {};
5045
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
5017
+ if (input.SourceIdentifier != null) {
5046
5018
  entries["SourceIdentifier"] = input.SourceIdentifier;
5047
5019
  }
5048
- if (input.SourceType !== undefined && input.SourceType !== null) {
5020
+ if (input.SourceType != null) {
5049
5021
  entries["SourceType"] = input.SourceType;
5050
5022
  }
5051
- if (input.StartTime !== undefined && input.StartTime !== null) {
5023
+ if (input.StartTime != null) {
5052
5024
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
5053
5025
  }
5054
- if (input.EndTime !== undefined && input.EndTime !== null) {
5026
+ if (input.EndTime != null) {
5055
5027
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
5056
5028
  }
5057
- if (input.Duration !== undefined && input.Duration !== null) {
5029
+ if (input.Duration != null) {
5058
5030
  entries["Duration"] = input.Duration;
5059
5031
  }
5060
- if (input.EventCategories !== undefined && input.EventCategories !== null) {
5032
+ if (input.EventCategories != null) {
5061
5033
  var memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
5062
5034
  Object.entries(memberEntries).forEach(function (_a) {
5063
5035
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5065,7 +5037,7 @@ var serializeAws_queryDescribeEventsMessage = function (input, context) {
5065
5037
  entries[loc] = value;
5066
5038
  });
5067
5039
  }
5068
- if (input.Filters !== undefined && input.Filters !== null) {
5040
+ if (input.Filters != null) {
5069
5041
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
5070
5042
  Object.entries(memberEntries).forEach(function (_a) {
5071
5043
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5073,20 +5045,20 @@ var serializeAws_queryDescribeEventsMessage = function (input, context) {
5073
5045
  entries[loc] = value;
5074
5046
  });
5075
5047
  }
5076
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5048
+ if (input.MaxRecords != null) {
5077
5049
  entries["MaxRecords"] = input.MaxRecords;
5078
5050
  }
5079
- if (input.Marker !== undefined && input.Marker !== null) {
5051
+ if (input.Marker != null) {
5080
5052
  entries["Marker"] = input.Marker;
5081
5053
  }
5082
5054
  return entries;
5083
5055
  };
5084
5056
  var serializeAws_queryDescribeEventSubscriptionsMessage = function (input, context) {
5085
5057
  var entries = {};
5086
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
5058
+ if (input.SubscriptionName != null) {
5087
5059
  entries["SubscriptionName"] = input.SubscriptionName;
5088
5060
  }
5089
- if (input.Filters !== undefined && input.Filters !== null) {
5061
+ if (input.Filters != null) {
5090
5062
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
5091
5063
  Object.entries(memberEntries).forEach(function (_a) {
5092
5064
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5094,20 +5066,20 @@ var serializeAws_queryDescribeEventSubscriptionsMessage = function (input, conte
5094
5066
  entries[loc] = value;
5095
5067
  });
5096
5068
  }
5097
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5069
+ if (input.MaxRecords != null) {
5098
5070
  entries["MaxRecords"] = input.MaxRecords;
5099
5071
  }
5100
- if (input.Marker !== undefined && input.Marker !== null) {
5072
+ if (input.Marker != null) {
5101
5073
  entries["Marker"] = input.Marker;
5102
5074
  }
5103
5075
  return entries;
5104
5076
  };
5105
5077
  var serializeAws_queryDescribeGlobalClustersMessage = function (input, context) {
5106
5078
  var entries = {};
5107
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
5079
+ if (input.GlobalClusterIdentifier != null) {
5108
5080
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
5109
5081
  }
5110
- if (input.Filters !== undefined && input.Filters !== null) {
5082
+ if (input.Filters != null) {
5111
5083
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
5112
5084
  Object.entries(memberEntries).forEach(function (_a) {
5113
5085
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5115,32 +5087,32 @@ var serializeAws_queryDescribeGlobalClustersMessage = function (input, context)
5115
5087
  entries[loc] = value;
5116
5088
  });
5117
5089
  }
5118
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5090
+ if (input.MaxRecords != null) {
5119
5091
  entries["MaxRecords"] = input.MaxRecords;
5120
5092
  }
5121
- if (input.Marker !== undefined && input.Marker !== null) {
5093
+ if (input.Marker != null) {
5122
5094
  entries["Marker"] = input.Marker;
5123
5095
  }
5124
5096
  return entries;
5125
5097
  };
5126
5098
  var serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = function (input, context) {
5127
5099
  var entries = {};
5128
- if (input.Engine !== undefined && input.Engine !== null) {
5100
+ if (input.Engine != null) {
5129
5101
  entries["Engine"] = input.Engine;
5130
5102
  }
5131
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5103
+ if (input.EngineVersion != null) {
5132
5104
  entries["EngineVersion"] = input.EngineVersion;
5133
5105
  }
5134
- if (input.DBInstanceClass !== undefined && input.DBInstanceClass !== null) {
5106
+ if (input.DBInstanceClass != null) {
5135
5107
  entries["DBInstanceClass"] = input.DBInstanceClass;
5136
5108
  }
5137
- if (input.LicenseModel !== undefined && input.LicenseModel !== null) {
5109
+ if (input.LicenseModel != null) {
5138
5110
  entries["LicenseModel"] = input.LicenseModel;
5139
5111
  }
5140
- if (input.Vpc !== undefined && input.Vpc !== null) {
5112
+ if (input.Vpc != null) {
5141
5113
  entries["Vpc"] = input.Vpc;
5142
5114
  }
5143
- if (input.Filters !== undefined && input.Filters !== null) {
5115
+ if (input.Filters != null) {
5144
5116
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
5145
5117
  Object.entries(memberEntries).forEach(function (_a) {
5146
5118
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5148,20 +5120,20 @@ var serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = function (inpu
5148
5120
  entries[loc] = value;
5149
5121
  });
5150
5122
  }
5151
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5123
+ if (input.MaxRecords != null) {
5152
5124
  entries["MaxRecords"] = input.MaxRecords;
5153
5125
  }
5154
- if (input.Marker !== undefined && input.Marker !== null) {
5126
+ if (input.Marker != null) {
5155
5127
  entries["Marker"] = input.Marker;
5156
5128
  }
5157
5129
  return entries;
5158
5130
  };
5159
5131
  var serializeAws_queryDescribePendingMaintenanceActionsMessage = function (input, context) {
5160
5132
  var entries = {};
5161
- if (input.ResourceIdentifier !== undefined && input.ResourceIdentifier !== null) {
5133
+ if (input.ResourceIdentifier != null) {
5162
5134
  entries["ResourceIdentifier"] = input.ResourceIdentifier;
5163
5135
  }
5164
- if (input.Filters !== undefined && input.Filters !== null) {
5136
+ if (input.Filters != null) {
5165
5137
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
5166
5138
  Object.entries(memberEntries).forEach(function (_a) {
5167
5139
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5169,10 +5141,10 @@ var serializeAws_queryDescribePendingMaintenanceActionsMessage = function (input
5169
5141
  entries[loc] = value;
5170
5142
  });
5171
5143
  }
5172
- if (input.Marker !== undefined && input.Marker !== null) {
5144
+ if (input.Marker != null) {
5173
5145
  entries["Marker"] = input.Marker;
5174
5146
  }
5175
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5147
+ if (input.MaxRecords != null) {
5176
5148
  entries["MaxRecords"] = input.MaxRecords;
5177
5149
  }
5178
5150
  return entries;
@@ -5202,20 +5174,20 @@ var serializeAws_queryEventCategoriesList = function (input, context) {
5202
5174
  };
5203
5175
  var serializeAws_queryFailoverDBClusterMessage = function (input, context) {
5204
5176
  var entries = {};
5205
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5177
+ if (input.DBClusterIdentifier != null) {
5206
5178
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5207
5179
  }
5208
- if (input.TargetDBInstanceIdentifier !== undefined && input.TargetDBInstanceIdentifier !== null) {
5180
+ if (input.TargetDBInstanceIdentifier != null) {
5209
5181
  entries["TargetDBInstanceIdentifier"] = input.TargetDBInstanceIdentifier;
5210
5182
  }
5211
5183
  return entries;
5212
5184
  };
5213
5185
  var serializeAws_queryFilter = function (input, context) {
5214
5186
  var entries = {};
5215
- if (input.Name !== undefined && input.Name !== null) {
5187
+ if (input.Name != null) {
5216
5188
  entries["Name"] = input.Name;
5217
5189
  }
5218
- if (input.Values !== undefined && input.Values !== null) {
5190
+ if (input.Values != null) {
5219
5191
  var memberEntries = serializeAws_queryFilterValueList(input.Values, context);
5220
5192
  Object.entries(memberEntries).forEach(function (_a) {
5221
5193
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5300,10 +5272,10 @@ var serializeAws_queryKeyList = function (input, context) {
5300
5272
  };
5301
5273
  var serializeAws_queryListTagsForResourceMessage = function (input, context) {
5302
5274
  var entries = {};
5303
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
5275
+ if (input.ResourceName != null) {
5304
5276
  entries["ResourceName"] = input.ResourceName;
5305
5277
  }
5306
- if (input.Filters !== undefined && input.Filters !== null) {
5278
+ if (input.Filters != null) {
5307
5279
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
5308
5280
  Object.entries(memberEntries).forEach(function (_a) {
5309
5281
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5338,22 +5310,22 @@ var serializeAws_queryLogTypeList = function (input, context) {
5338
5310
  };
5339
5311
  var serializeAws_queryModifyDBClusterMessage = function (input, context) {
5340
5312
  var entries = {};
5341
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5313
+ if (input.DBClusterIdentifier != null) {
5342
5314
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5343
5315
  }
5344
- if (input.NewDBClusterIdentifier !== undefined && input.NewDBClusterIdentifier !== null) {
5316
+ if (input.NewDBClusterIdentifier != null) {
5345
5317
  entries["NewDBClusterIdentifier"] = input.NewDBClusterIdentifier;
5346
5318
  }
5347
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
5319
+ if (input.ApplyImmediately != null) {
5348
5320
  entries["ApplyImmediately"] = input.ApplyImmediately;
5349
5321
  }
5350
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
5322
+ if (input.BackupRetentionPeriod != null) {
5351
5323
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
5352
5324
  }
5353
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
5325
+ if (input.DBClusterParameterGroupName != null) {
5354
5326
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5355
5327
  }
5356
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
5328
+ if (input.VpcSecurityGroupIds != null) {
5357
5329
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
5358
5330
  Object.entries(memberEntries).forEach(function (_a) {
5359
5331
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5361,19 +5333,19 @@ var serializeAws_queryModifyDBClusterMessage = function (input, context) {
5361
5333
  entries[loc] = value;
5362
5334
  });
5363
5335
  }
5364
- if (input.Port !== undefined && input.Port !== null) {
5336
+ if (input.Port != null) {
5365
5337
  entries["Port"] = input.Port;
5366
5338
  }
5367
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
5339
+ if (input.MasterUserPassword != null) {
5368
5340
  entries["MasterUserPassword"] = input.MasterUserPassword;
5369
5341
  }
5370
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
5342
+ if (input.PreferredBackupWindow != null) {
5371
5343
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
5372
5344
  }
5373
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
5345
+ if (input.PreferredMaintenanceWindow != null) {
5374
5346
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
5375
5347
  }
5376
- if (input.CloudwatchLogsExportConfiguration !== undefined && input.CloudwatchLogsExportConfiguration !== null) {
5348
+ if (input.CloudwatchLogsExportConfiguration != null) {
5377
5349
  var memberEntries = serializeAws_queryCloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context);
5378
5350
  Object.entries(memberEntries).forEach(function (_a) {
5379
5351
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5381,20 +5353,20 @@ var serializeAws_queryModifyDBClusterMessage = function (input, context) {
5381
5353
  entries[loc] = value;
5382
5354
  });
5383
5355
  }
5384
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5356
+ if (input.EngineVersion != null) {
5385
5357
  entries["EngineVersion"] = input.EngineVersion;
5386
5358
  }
5387
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
5359
+ if (input.DeletionProtection != null) {
5388
5360
  entries["DeletionProtection"] = input.DeletionProtection;
5389
5361
  }
5390
5362
  return entries;
5391
5363
  };
5392
5364
  var serializeAws_queryModifyDBClusterParameterGroupMessage = function (input, context) {
5393
5365
  var entries = {};
5394
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
5366
+ if (input.DBClusterParameterGroupName != null) {
5395
5367
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5396
5368
  }
5397
- if (input.Parameters !== undefined && input.Parameters !== null) {
5369
+ if (input.Parameters != null) {
5398
5370
  var memberEntries = serializeAws_queryParametersList(input.Parameters, context);
5399
5371
  Object.entries(memberEntries).forEach(function (_a) {
5400
5372
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5406,13 +5378,13 @@ var serializeAws_queryModifyDBClusterParameterGroupMessage = function (input, co
5406
5378
  };
5407
5379
  var serializeAws_queryModifyDBClusterSnapshotAttributeMessage = function (input, context) {
5408
5380
  var entries = {};
5409
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
5381
+ if (input.DBClusterSnapshotIdentifier != null) {
5410
5382
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
5411
5383
  }
5412
- if (input.AttributeName !== undefined && input.AttributeName !== null) {
5384
+ if (input.AttributeName != null) {
5413
5385
  entries["AttributeName"] = input.AttributeName;
5414
5386
  }
5415
- if (input.ValuesToAdd !== undefined && input.ValuesToAdd !== null) {
5387
+ if (input.ValuesToAdd != null) {
5416
5388
  var memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
5417
5389
  Object.entries(memberEntries).forEach(function (_a) {
5418
5390
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5420,7 +5392,7 @@ var serializeAws_queryModifyDBClusterSnapshotAttributeMessage = function (input,
5420
5392
  entries[loc] = value;
5421
5393
  });
5422
5394
  }
5423
- if (input.ValuesToRemove !== undefined && input.ValuesToRemove !== null) {
5395
+ if (input.ValuesToRemove != null) {
5424
5396
  var memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
5425
5397
  Object.entries(memberEntries).forEach(function (_a) {
5426
5398
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5432,50 +5404,50 @@ var serializeAws_queryModifyDBClusterSnapshotAttributeMessage = function (input,
5432
5404
  };
5433
5405
  var serializeAws_queryModifyDBInstanceMessage = function (input, context) {
5434
5406
  var entries = {};
5435
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
5407
+ if (input.DBInstanceIdentifier != null) {
5436
5408
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
5437
5409
  }
5438
- if (input.DBInstanceClass !== undefined && input.DBInstanceClass !== null) {
5410
+ if (input.DBInstanceClass != null) {
5439
5411
  entries["DBInstanceClass"] = input.DBInstanceClass;
5440
5412
  }
5441
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
5413
+ if (input.ApplyImmediately != null) {
5442
5414
  entries["ApplyImmediately"] = input.ApplyImmediately;
5443
5415
  }
5444
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
5416
+ if (input.PreferredMaintenanceWindow != null) {
5445
5417
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
5446
5418
  }
5447
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
5419
+ if (input.AutoMinorVersionUpgrade != null) {
5448
5420
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
5449
5421
  }
5450
- if (input.NewDBInstanceIdentifier !== undefined && input.NewDBInstanceIdentifier !== null) {
5422
+ if (input.NewDBInstanceIdentifier != null) {
5451
5423
  entries["NewDBInstanceIdentifier"] = input.NewDBInstanceIdentifier;
5452
5424
  }
5453
- if (input.CACertificateIdentifier !== undefined && input.CACertificateIdentifier !== null) {
5425
+ if (input.CACertificateIdentifier != null) {
5454
5426
  entries["CACertificateIdentifier"] = input.CACertificateIdentifier;
5455
5427
  }
5456
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
5428
+ if (input.CopyTagsToSnapshot != null) {
5457
5429
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
5458
5430
  }
5459
- if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
5431
+ if (input.PromotionTier != null) {
5460
5432
  entries["PromotionTier"] = input.PromotionTier;
5461
5433
  }
5462
- if (input.EnablePerformanceInsights !== undefined && input.EnablePerformanceInsights !== null) {
5434
+ if (input.EnablePerformanceInsights != null) {
5463
5435
  entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights;
5464
5436
  }
5465
- if (input.PerformanceInsightsKMSKeyId !== undefined && input.PerformanceInsightsKMSKeyId !== null) {
5437
+ if (input.PerformanceInsightsKMSKeyId != null) {
5466
5438
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
5467
5439
  }
5468
5440
  return entries;
5469
5441
  };
5470
5442
  var serializeAws_queryModifyDBSubnetGroupMessage = function (input, context) {
5471
5443
  var entries = {};
5472
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
5444
+ if (input.DBSubnetGroupName != null) {
5473
5445
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
5474
5446
  }
5475
- if (input.DBSubnetGroupDescription !== undefined && input.DBSubnetGroupDescription !== null) {
5447
+ if (input.DBSubnetGroupDescription != null) {
5476
5448
  entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription;
5477
5449
  }
5478
- if (input.SubnetIds !== undefined && input.SubnetIds !== null) {
5450
+ if (input.SubnetIds != null) {
5479
5451
  var memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
5480
5452
  Object.entries(memberEntries).forEach(function (_a) {
5481
5453
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5487,16 +5459,16 @@ var serializeAws_queryModifyDBSubnetGroupMessage = function (input, context) {
5487
5459
  };
5488
5460
  var serializeAws_queryModifyEventSubscriptionMessage = function (input, context) {
5489
5461
  var entries = {};
5490
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
5462
+ if (input.SubscriptionName != null) {
5491
5463
  entries["SubscriptionName"] = input.SubscriptionName;
5492
5464
  }
5493
- if (input.SnsTopicArn !== undefined && input.SnsTopicArn !== null) {
5465
+ if (input.SnsTopicArn != null) {
5494
5466
  entries["SnsTopicArn"] = input.SnsTopicArn;
5495
5467
  }
5496
- if (input.SourceType !== undefined && input.SourceType !== null) {
5468
+ if (input.SourceType != null) {
5497
5469
  entries["SourceType"] = input.SourceType;
5498
5470
  }
5499
- if (input.EventCategories !== undefined && input.EventCategories !== null) {
5471
+ if (input.EventCategories != null) {
5500
5472
  var memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
5501
5473
  Object.entries(memberEntries).forEach(function (_a) {
5502
5474
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5504,54 +5476,54 @@ var serializeAws_queryModifyEventSubscriptionMessage = function (input, context)
5504
5476
  entries[loc] = value;
5505
5477
  });
5506
5478
  }
5507
- if (input.Enabled !== undefined && input.Enabled !== null) {
5479
+ if (input.Enabled != null) {
5508
5480
  entries["Enabled"] = input.Enabled;
5509
5481
  }
5510
5482
  return entries;
5511
5483
  };
5512
5484
  var serializeAws_queryModifyGlobalClusterMessage = function (input, context) {
5513
5485
  var entries = {};
5514
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
5486
+ if (input.GlobalClusterIdentifier != null) {
5515
5487
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
5516
5488
  }
5517
- if (input.NewGlobalClusterIdentifier !== undefined && input.NewGlobalClusterIdentifier !== null) {
5489
+ if (input.NewGlobalClusterIdentifier != null) {
5518
5490
  entries["NewGlobalClusterIdentifier"] = input.NewGlobalClusterIdentifier;
5519
5491
  }
5520
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
5492
+ if (input.DeletionProtection != null) {
5521
5493
  entries["DeletionProtection"] = input.DeletionProtection;
5522
5494
  }
5523
5495
  return entries;
5524
5496
  };
5525
5497
  var serializeAws_queryParameter = function (input, context) {
5526
5498
  var entries = {};
5527
- if (input.ParameterName !== undefined && input.ParameterName !== null) {
5499
+ if (input.ParameterName != null) {
5528
5500
  entries["ParameterName"] = input.ParameterName;
5529
5501
  }
5530
- if (input.ParameterValue !== undefined && input.ParameterValue !== null) {
5502
+ if (input.ParameterValue != null) {
5531
5503
  entries["ParameterValue"] = input.ParameterValue;
5532
5504
  }
5533
- if (input.Description !== undefined && input.Description !== null) {
5505
+ if (input.Description != null) {
5534
5506
  entries["Description"] = input.Description;
5535
5507
  }
5536
- if (input.Source !== undefined && input.Source !== null) {
5508
+ if (input.Source != null) {
5537
5509
  entries["Source"] = input.Source;
5538
5510
  }
5539
- if (input.ApplyType !== undefined && input.ApplyType !== null) {
5511
+ if (input.ApplyType != null) {
5540
5512
  entries["ApplyType"] = input.ApplyType;
5541
5513
  }
5542
- if (input.DataType !== undefined && input.DataType !== null) {
5514
+ if (input.DataType != null) {
5543
5515
  entries["DataType"] = input.DataType;
5544
5516
  }
5545
- if (input.AllowedValues !== undefined && input.AllowedValues !== null) {
5517
+ if (input.AllowedValues != null) {
5546
5518
  entries["AllowedValues"] = input.AllowedValues;
5547
5519
  }
5548
- if (input.IsModifiable !== undefined && input.IsModifiable !== null) {
5520
+ if (input.IsModifiable != null) {
5549
5521
  entries["IsModifiable"] = input.IsModifiable;
5550
5522
  }
5551
- if (input.MinimumEngineVersion !== undefined && input.MinimumEngineVersion !== null) {
5523
+ if (input.MinimumEngineVersion != null) {
5552
5524
  entries["MinimumEngineVersion"] = input.MinimumEngineVersion;
5553
5525
  }
5554
- if (input.ApplyMethod !== undefined && input.ApplyMethod !== null) {
5526
+ if (input.ApplyMethod != null) {
5555
5527
  entries["ApplyMethod"] = input.ApplyMethod;
5556
5528
  }
5557
5529
  return entries;
@@ -5585,40 +5557,40 @@ var serializeAws_queryParametersList = function (input, context) {
5585
5557
  };
5586
5558
  var serializeAws_queryRebootDBInstanceMessage = function (input, context) {
5587
5559
  var entries = {};
5588
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
5560
+ if (input.DBInstanceIdentifier != null) {
5589
5561
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
5590
5562
  }
5591
- if (input.ForceFailover !== undefined && input.ForceFailover !== null) {
5563
+ if (input.ForceFailover != null) {
5592
5564
  entries["ForceFailover"] = input.ForceFailover;
5593
5565
  }
5594
5566
  return entries;
5595
5567
  };
5596
5568
  var serializeAws_queryRemoveFromGlobalClusterMessage = function (input, context) {
5597
5569
  var entries = {};
5598
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
5570
+ if (input.GlobalClusterIdentifier != null) {
5599
5571
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
5600
5572
  }
5601
- if (input.DbClusterIdentifier !== undefined && input.DbClusterIdentifier !== null) {
5573
+ if (input.DbClusterIdentifier != null) {
5602
5574
  entries["DbClusterIdentifier"] = input.DbClusterIdentifier;
5603
5575
  }
5604
5576
  return entries;
5605
5577
  };
5606
5578
  var serializeAws_queryRemoveSourceIdentifierFromSubscriptionMessage = function (input, context) {
5607
5579
  var entries = {};
5608
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
5580
+ if (input.SubscriptionName != null) {
5609
5581
  entries["SubscriptionName"] = input.SubscriptionName;
5610
5582
  }
5611
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
5583
+ if (input.SourceIdentifier != null) {
5612
5584
  entries["SourceIdentifier"] = input.SourceIdentifier;
5613
5585
  }
5614
5586
  return entries;
5615
5587
  };
5616
5588
  var serializeAws_queryRemoveTagsFromResourceMessage = function (input, context) {
5617
5589
  var entries = {};
5618
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
5590
+ if (input.ResourceName != null) {
5619
5591
  entries["ResourceName"] = input.ResourceName;
5620
5592
  }
5621
- if (input.TagKeys !== undefined && input.TagKeys !== null) {
5593
+ if (input.TagKeys != null) {
5622
5594
  var memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
5623
5595
  Object.entries(memberEntries).forEach(function (_a) {
5624
5596
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5630,13 +5602,13 @@ var serializeAws_queryRemoveTagsFromResourceMessage = function (input, context)
5630
5602
  };
5631
5603
  var serializeAws_queryResetDBClusterParameterGroupMessage = function (input, context) {
5632
5604
  var entries = {};
5633
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
5605
+ if (input.DBClusterParameterGroupName != null) {
5634
5606
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5635
5607
  }
5636
- if (input.ResetAllParameters !== undefined && input.ResetAllParameters !== null) {
5608
+ if (input.ResetAllParameters != null) {
5637
5609
  entries["ResetAllParameters"] = input.ResetAllParameters;
5638
5610
  }
5639
- if (input.Parameters !== undefined && input.Parameters !== null) {
5611
+ if (input.Parameters != null) {
5640
5612
  var memberEntries = serializeAws_queryParametersList(input.Parameters, context);
5641
5613
  Object.entries(memberEntries).forEach(function (_a) {
5642
5614
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5648,7 +5620,7 @@ var serializeAws_queryResetDBClusterParameterGroupMessage = function (input, con
5648
5620
  };
5649
5621
  var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, context) {
5650
5622
  var entries = {};
5651
- if (input.AvailabilityZones !== undefined && input.AvailabilityZones !== null) {
5623
+ if (input.AvailabilityZones != null) {
5652
5624
  var memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
5653
5625
  Object.entries(memberEntries).forEach(function (_a) {
5654
5626
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5656,25 +5628,25 @@ var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, con
5656
5628
  entries[loc] = value;
5657
5629
  });
5658
5630
  }
5659
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5631
+ if (input.DBClusterIdentifier != null) {
5660
5632
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5661
5633
  }
5662
- if (input.SnapshotIdentifier !== undefined && input.SnapshotIdentifier !== null) {
5634
+ if (input.SnapshotIdentifier != null) {
5663
5635
  entries["SnapshotIdentifier"] = input.SnapshotIdentifier;
5664
5636
  }
5665
- if (input.Engine !== undefined && input.Engine !== null) {
5637
+ if (input.Engine != null) {
5666
5638
  entries["Engine"] = input.Engine;
5667
5639
  }
5668
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5640
+ if (input.EngineVersion != null) {
5669
5641
  entries["EngineVersion"] = input.EngineVersion;
5670
5642
  }
5671
- if (input.Port !== undefined && input.Port !== null) {
5643
+ if (input.Port != null) {
5672
5644
  entries["Port"] = input.Port;
5673
5645
  }
5674
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
5646
+ if (input.DBSubnetGroupName != null) {
5675
5647
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
5676
5648
  }
5677
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
5649
+ if (input.VpcSecurityGroupIds != null) {
5678
5650
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
5679
5651
  Object.entries(memberEntries).forEach(function (_a) {
5680
5652
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5682,7 +5654,7 @@ var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, con
5682
5654
  entries[loc] = value;
5683
5655
  });
5684
5656
  }
5685
- if (input.Tags !== undefined && input.Tags !== null) {
5657
+ if (input.Tags != null) {
5686
5658
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5687
5659
  Object.entries(memberEntries).forEach(function (_a) {
5688
5660
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5690,10 +5662,10 @@ var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, con
5690
5662
  entries[loc] = value;
5691
5663
  });
5692
5664
  }
5693
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
5665
+ if (input.KmsKeyId != null) {
5694
5666
  entries["KmsKeyId"] = input.KmsKeyId;
5695
5667
  }
5696
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
5668
+ if (input.EnableCloudwatchLogsExports != null) {
5697
5669
  var memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
5698
5670
  Object.entries(memberEntries).forEach(function (_a) {
5699
5671
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5701,35 +5673,35 @@ var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, con
5701
5673
  entries[loc] = value;
5702
5674
  });
5703
5675
  }
5704
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
5676
+ if (input.DeletionProtection != null) {
5705
5677
  entries["DeletionProtection"] = input.DeletionProtection;
5706
5678
  }
5707
5679
  return entries;
5708
5680
  };
5709
5681
  var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, context) {
5710
5682
  var entries = {};
5711
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5683
+ if (input.DBClusterIdentifier != null) {
5712
5684
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5713
5685
  }
5714
- if (input.RestoreType !== undefined && input.RestoreType !== null) {
5686
+ if (input.RestoreType != null) {
5715
5687
  entries["RestoreType"] = input.RestoreType;
5716
5688
  }
5717
- if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
5689
+ if (input.SourceDBClusterIdentifier != null) {
5718
5690
  entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
5719
5691
  }
5720
- if (input.RestoreToTime !== undefined && input.RestoreToTime !== null) {
5692
+ if (input.RestoreToTime != null) {
5721
5693
  entries["RestoreToTime"] = input.RestoreToTime.toISOString().split(".")[0] + "Z";
5722
5694
  }
5723
- if (input.UseLatestRestorableTime !== undefined && input.UseLatestRestorableTime !== null) {
5695
+ if (input.UseLatestRestorableTime != null) {
5724
5696
  entries["UseLatestRestorableTime"] = input.UseLatestRestorableTime;
5725
5697
  }
5726
- if (input.Port !== undefined && input.Port !== null) {
5698
+ if (input.Port != null) {
5727
5699
  entries["Port"] = input.Port;
5728
5700
  }
5729
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
5701
+ if (input.DBSubnetGroupName != null) {
5730
5702
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
5731
5703
  }
5732
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
5704
+ if (input.VpcSecurityGroupIds != null) {
5733
5705
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
5734
5706
  Object.entries(memberEntries).forEach(function (_a) {
5735
5707
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5737,7 +5709,7 @@ var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, co
5737
5709
  entries[loc] = value;
5738
5710
  });
5739
5711
  }
5740
- if (input.Tags !== undefined && input.Tags !== null) {
5712
+ if (input.Tags != null) {
5741
5713
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5742
5714
  Object.entries(memberEntries).forEach(function (_a) {
5743
5715
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5745,10 +5717,10 @@ var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, co
5745
5717
  entries[loc] = value;
5746
5718
  });
5747
5719
  }
5748
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
5720
+ if (input.KmsKeyId != null) {
5749
5721
  entries["KmsKeyId"] = input.KmsKeyId;
5750
5722
  }
5751
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
5723
+ if (input.EnableCloudwatchLogsExports != null) {
5752
5724
  var memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
5753
5725
  Object.entries(memberEntries).forEach(function (_a) {
5754
5726
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5756,7 +5728,7 @@ var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, co
5756
5728
  entries[loc] = value;
5757
5729
  });
5758
5730
  }
5759
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
5731
+ if (input.DeletionProtection != null) {
5760
5732
  entries["DeletionProtection"] = input.DeletionProtection;
5761
5733
  }
5762
5734
  return entries;
@@ -5786,14 +5758,14 @@ var serializeAws_querySourceIdsList = function (input, context) {
5786
5758
  };
5787
5759
  var serializeAws_queryStartDBClusterMessage = function (input, context) {
5788
5760
  var entries = {};
5789
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5761
+ if (input.DBClusterIdentifier != null) {
5790
5762
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5791
5763
  }
5792
5764
  return entries;
5793
5765
  };
5794
5766
  var serializeAws_queryStopDBClusterMessage = function (input, context) {
5795
5767
  var entries = {};
5796
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5768
+ if (input.DBClusterIdentifier != null) {
5797
5769
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5798
5770
  }
5799
5771
  return entries;
@@ -5823,10 +5795,10 @@ var serializeAws_querySubnetIdentifierList = function (input, context) {
5823
5795
  };
5824
5796
  var serializeAws_queryTag = function (input, context) {
5825
5797
  var entries = {};
5826
- if (input.Key !== undefined && input.Key !== null) {
5798
+ if (input.Key != null) {
5827
5799
  entries["Key"] = input.Key;
5828
5800
  }
5829
- if (input.Value !== undefined && input.Value !== null) {
5801
+ if (input.Value != null) {
5830
5802
  entries["Value"] = input.Value;
5831
5803
  }
5832
5804
  return entries;
@@ -5903,9 +5875,6 @@ var deserializeAws_queryAttributeValueList = function (output, context) {
5903
5875
  return (output || [])
5904
5876
  .filter(function (e) { return e != null; })
5905
5877
  .map(function (entry) {
5906
- if (entry === null) {
5907
- return null;
5908
- }
5909
5878
  return __expectString(entry);
5910
5879
  });
5911
5880
  };
@@ -5931,9 +5900,6 @@ var deserializeAws_queryAvailabilityZoneList = function (output, context) {
5931
5900
  return (output || [])
5932
5901
  .filter(function (e) { return e != null; })
5933
5902
  .map(function (entry) {
5934
- if (entry === null) {
5935
- return null;
5936
- }
5937
5903
  return deserializeAws_queryAvailabilityZone(entry, context);
5938
5904
  });
5939
5905
  };
@@ -5941,9 +5907,6 @@ var deserializeAws_queryAvailabilityZones = function (output, context) {
5941
5907
  return (output || [])
5942
5908
  .filter(function (e) { return e != null; })
5943
5909
  .map(function (entry) {
5944
- if (entry === null) {
5945
- return null;
5946
- }
5947
5910
  return __expectString(entry);
5948
5911
  });
5949
5912
  };
@@ -5980,9 +5943,6 @@ var deserializeAws_queryCertificateList = function (output, context) {
5980
5943
  return (output || [])
5981
5944
  .filter(function (e) { return e != null; })
5982
5945
  .map(function (entry) {
5983
- if (entry === null) {
5984
- return null;
5985
- }
5986
5946
  return deserializeAws_queryCertificate(entry, context);
5987
5947
  });
5988
5948
  };
@@ -6260,9 +6220,6 @@ var deserializeAws_queryDBClusterList = function (output, context) {
6260
6220
  return (output || [])
6261
6221
  .filter(function (e) { return e != null; })
6262
6222
  .map(function (entry) {
6263
- if (entry === null) {
6264
- return null;
6265
- }
6266
6223
  return deserializeAws_queryDBCluster(entry, context);
6267
6224
  });
6268
6225
  };
@@ -6291,9 +6248,6 @@ var deserializeAws_queryDBClusterMemberList = function (output, context) {
6291
6248
  return (output || [])
6292
6249
  .filter(function (e) { return e != null; })
6293
6250
  .map(function (entry) {
6294
- if (entry === null) {
6295
- return null;
6296
- }
6297
6251
  return deserializeAws_queryDBClusterMember(entry, context);
6298
6252
  });
6299
6253
  };
@@ -6363,9 +6317,6 @@ var deserializeAws_queryDBClusterParameterGroupList = function (output, context)
6363
6317
  return (output || [])
6364
6318
  .filter(function (e) { return e != null; })
6365
6319
  .map(function (entry) {
6366
- if (entry === null) {
6367
- return null;
6368
- }
6369
6320
  return deserializeAws_queryDBClusterParameterGroup(entry, context);
6370
6321
  });
6371
6322
  };
@@ -6430,9 +6381,6 @@ var deserializeAws_queryDBClusterRoles = function (output, context) {
6430
6381
  return (output || [])
6431
6382
  .filter(function (e) { return e != null; })
6432
6383
  .map(function (entry) {
6433
- if (entry === null) {
6434
- return null;
6435
- }
6436
6384
  return deserializeAws_queryDBClusterRole(entry, context);
6437
6385
  });
6438
6386
  };
@@ -6542,9 +6490,6 @@ var deserializeAws_queryDBClusterSnapshotAttributeList = function (output, conte
6542
6490
  return (output || [])
6543
6491
  .filter(function (e) { return e != null; })
6544
6492
  .map(function (entry) {
6545
- if (entry === null) {
6546
- return null;
6547
- }
6548
6493
  return deserializeAws_queryDBClusterSnapshotAttribute(entry, context);
6549
6494
  });
6550
6495
  };
@@ -6569,9 +6514,6 @@ var deserializeAws_queryDBClusterSnapshotList = function (output, context) {
6569
6514
  return (output || [])
6570
6515
  .filter(function (e) { return e != null; })
6571
6516
  .map(function (entry) {
6572
- if (entry === null) {
6573
- return null;
6574
- }
6575
6517
  return deserializeAws_queryDBClusterSnapshot(entry, context);
6576
6518
  });
6577
6519
  };
@@ -6649,9 +6591,6 @@ var deserializeAws_queryDBEngineVersionList = function (output, context) {
6649
6591
  return (output || [])
6650
6592
  .filter(function (e) { return e != null; })
6651
6593
  .map(function (entry) {
6652
- if (entry === null) {
6653
- return null;
6654
- }
6655
6594
  return deserializeAws_queryDBEngineVersion(entry, context);
6656
6595
  });
6657
6596
  };
@@ -6808,9 +6747,6 @@ var deserializeAws_queryDBInstanceList = function (output, context) {
6808
6747
  return (output || [])
6809
6748
  .filter(function (e) { return e != null; })
6810
6749
  .map(function (entry) {
6811
- if (entry === null) {
6812
- return null;
6813
- }
6814
6750
  return deserializeAws_queryDBInstance(entry, context);
6815
6751
  });
6816
6752
  };
@@ -6864,9 +6800,6 @@ var deserializeAws_queryDBInstanceStatusInfoList = function (output, context) {
6864
6800
  return (output || [])
6865
6801
  .filter(function (e) { return e != null; })
6866
6802
  .map(function (entry) {
6867
- if (entry === null) {
6868
- return null;
6869
- }
6870
6803
  return deserializeAws_queryDBInstanceStatusInfo(entry, context);
6871
6804
  });
6872
6805
  };
@@ -7012,9 +6945,6 @@ var deserializeAws_queryDBSubnetGroups = function (output, context) {
7012
6945
  return (output || [])
7013
6946
  .filter(function (e) { return e != null; })
7014
6947
  .map(function (entry) {
7015
- if (entry === null) {
7016
- return null;
7017
- }
7018
6948
  return deserializeAws_queryDBSubnetGroup(entry, context);
7019
6949
  });
7020
6950
  };
@@ -7172,9 +7102,6 @@ var deserializeAws_queryEventCategoriesList = function (output, context) {
7172
7102
  return (output || [])
7173
7103
  .filter(function (e) { return e != null; })
7174
7104
  .map(function (entry) {
7175
- if (entry === null) {
7176
- return null;
7177
- }
7178
7105
  return __expectString(entry);
7179
7106
  });
7180
7107
  };
@@ -7198,9 +7125,6 @@ var deserializeAws_queryEventCategoriesMapList = function (output, context) {
7198
7125
  return (output || [])
7199
7126
  .filter(function (e) { return e != null; })
7200
7127
  .map(function (entry) {
7201
- if (entry === null) {
7202
- return null;
7203
- }
7204
7128
  return deserializeAws_queryEventCategoriesMap(entry, context);
7205
7129
  });
7206
7130
  };
@@ -7221,9 +7145,6 @@ var deserializeAws_queryEventList = function (output, context) {
7221
7145
  return (output || [])
7222
7146
  .filter(function (e) { return e != null; })
7223
7147
  .map(function (entry) {
7224
- if (entry === null) {
7225
- return null;
7226
- }
7227
7148
  return deserializeAws_queryEvent(entry, context);
7228
7149
  });
7229
7150
  };
@@ -7308,9 +7229,6 @@ var deserializeAws_queryEventSubscriptionsList = function (output, context) {
7308
7229
  return (output || [])
7309
7230
  .filter(function (e) { return e != null; })
7310
7231
  .map(function (entry) {
7311
- if (entry === null) {
7312
- return null;
7313
- }
7314
7232
  return deserializeAws_queryEventSubscription(entry, context);
7315
7233
  });
7316
7234
  };
@@ -7402,9 +7320,6 @@ var deserializeAws_queryGlobalClusterList = function (output, context) {
7402
7320
  return (output || [])
7403
7321
  .filter(function (e) { return e != null; })
7404
7322
  .map(function (entry) {
7405
- if (entry === null) {
7406
- return null;
7407
- }
7408
7323
  return deserializeAws_queryGlobalCluster(entry, context);
7409
7324
  });
7410
7325
  };
@@ -7432,9 +7347,6 @@ var deserializeAws_queryGlobalClusterMemberList = function (output, context) {
7432
7347
  return (output || [])
7433
7348
  .filter(function (e) { return e != null; })
7434
7349
  .map(function (entry) {
7435
- if (entry === null) {
7436
- return null;
7437
- }
7438
7350
  return deserializeAws_queryGlobalClusterMember(entry, context);
7439
7351
  });
7440
7352
  };
@@ -7638,9 +7550,6 @@ var deserializeAws_queryLogTypeList = function (output, context) {
7638
7550
  return (output || [])
7639
7551
  .filter(function (e) { return e != null; })
7640
7552
  .map(function (entry) {
7641
- if (entry === null) {
7642
- return null;
7643
- }
7644
7553
  return __expectString(entry);
7645
7554
  });
7646
7555
  };
@@ -7735,9 +7644,6 @@ var deserializeAws_queryOrderableDBInstanceOptionsList = function (output, conte
7735
7644
  return (output || [])
7736
7645
  .filter(function (e) { return e != null; })
7737
7646
  .map(function (entry) {
7738
- if (entry === null) {
7739
- return null;
7740
- }
7741
7647
  return deserializeAws_queryOrderableDBInstanceOption(entry, context);
7742
7648
  });
7743
7649
  };
@@ -7807,9 +7713,6 @@ var deserializeAws_queryParametersList = function (output, context) {
7807
7713
  return (output || [])
7808
7714
  .filter(function (e) { return e != null; })
7809
7715
  .map(function (entry) {
7810
- if (entry === null) {
7811
- return null;
7812
- }
7813
7716
  return deserializeAws_queryParameter(entry, context);
7814
7717
  });
7815
7718
  };
@@ -7865,9 +7768,6 @@ var deserializeAws_queryPendingMaintenanceActionDetails = function (output, cont
7865
7768
  return (output || [])
7866
7769
  .filter(function (e) { return e != null; })
7867
7770
  .map(function (entry) {
7868
- if (entry === null) {
7869
- return null;
7870
- }
7871
7771
  return deserializeAws_queryPendingMaintenanceAction(entry, context);
7872
7772
  });
7873
7773
  };
@@ -7875,9 +7775,6 @@ var deserializeAws_queryPendingMaintenanceActions = function (output, context) {
7875
7775
  return (output || [])
7876
7776
  .filter(function (e) { return e != null; })
7877
7777
  .map(function (entry) {
7878
- if (entry === null) {
7879
- return null;
7880
- }
7881
7778
  return deserializeAws_queryResourcePendingMaintenanceActions(entry, context);
7882
7779
  });
7883
7780
  };
@@ -7963,9 +7860,6 @@ var deserializeAws_queryReadersArnList = function (output, context) {
7963
7860
  return (output || [])
7964
7861
  .filter(function (e) { return e != null; })
7965
7862
  .map(function (entry) {
7966
- if (entry === null) {
7967
- return null;
7968
- }
7969
7863
  return __expectString(entry);
7970
7864
  });
7971
7865
  };
@@ -7973,9 +7867,6 @@ var deserializeAws_queryReadReplicaIdentifierList = function (output, context) {
7973
7867
  return (output || [])
7974
7868
  .filter(function (e) { return e != null; })
7975
7869
  .map(function (entry) {
7976
- if (entry === null) {
7977
- return null;
7978
- }
7979
7870
  return __expectString(entry);
7980
7871
  });
7981
7872
  };
@@ -8099,9 +7990,6 @@ var deserializeAws_querySourceIdsList = function (output, context) {
8099
7990
  return (output || [])
8100
7991
  .filter(function (e) { return e != null; })
8101
7992
  .map(function (entry) {
8102
- if (entry === null) {
8103
- return null;
8104
- }
8105
7993
  return __expectString(entry);
8106
7994
  });
8107
7995
  };
@@ -8180,9 +8068,6 @@ var deserializeAws_querySubnetList = function (output, context) {
8180
8068
  return (output || [])
8181
8069
  .filter(function (e) { return e != null; })
8182
8070
  .map(function (entry) {
8183
- if (entry === null) {
8184
- return null;
8185
- }
8186
8071
  return deserializeAws_querySubnet(entry, context);
8187
8072
  });
8188
8073
  };
@@ -8230,9 +8115,6 @@ var deserializeAws_queryTagList = function (output, context) {
8230
8115
  return (output || [])
8231
8116
  .filter(function (e) { return e != null; })
8232
8117
  .map(function (entry) {
8233
- if (entry === null) {
8234
- return null;
8235
- }
8236
8118
  return deserializeAws_queryTag(entry, context);
8237
8119
  });
8238
8120
  };
@@ -8277,9 +8159,6 @@ var deserializeAws_queryValidUpgradeTargetList = function (output, context) {
8277
8159
  return (output || [])
8278
8160
  .filter(function (e) { return e != null; })
8279
8161
  .map(function (entry) {
8280
- if (entry === null) {
8281
- return null;
8282
- }
8283
8162
  return deserializeAws_queryUpgradeTarget(entry, context);
8284
8163
  });
8285
8164
  };
@@ -8300,9 +8179,6 @@ var deserializeAws_queryVpcSecurityGroupMembershipList = function (output, conte
8300
8179
  return (output || [])
8301
8180
  .filter(function (e) { return e != null; })
8302
8181
  .map(function (entry) {
8303
- if (entry === null) {
8304
- return null;
8305
- }
8306
8182
  return deserializeAws_queryVpcSecurityGroupMembership(entry, context);
8307
8183
  });
8308
8184
  };