@aws-sdk/client-neptune 3.131.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 (147) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/commands/AddRoleToDBClusterCommand.js +1 -1
  4. package/dist-cjs/commands/AddSourceIdentifierToSubscriptionCommand.js +2 -2
  5. package/dist-cjs/commands/AddTagsToResourceCommand.js +1 -1
  6. package/dist-cjs/commands/ApplyPendingMaintenanceActionCommand.js +2 -2
  7. package/dist-cjs/commands/CopyDBClusterParameterGroupCommand.js +2 -2
  8. package/dist-cjs/commands/CopyDBClusterSnapshotCommand.js +2 -2
  9. package/dist-cjs/commands/CopyDBParameterGroupCommand.js +2 -2
  10. package/dist-cjs/commands/CreateDBClusterCommand.js +2 -2
  11. package/dist-cjs/commands/CreateDBClusterEndpointCommand.js +2 -2
  12. package/dist-cjs/commands/CreateDBClusterParameterGroupCommand.js +2 -2
  13. package/dist-cjs/commands/CreateDBClusterSnapshotCommand.js +2 -2
  14. package/dist-cjs/commands/CreateDBInstanceCommand.js +2 -2
  15. package/dist-cjs/commands/CreateDBParameterGroupCommand.js +2 -2
  16. package/dist-cjs/commands/CreateDBSubnetGroupCommand.js +2 -2
  17. package/dist-cjs/commands/CreateEventSubscriptionCommand.js +2 -2
  18. package/dist-cjs/commands/CreateGlobalClusterCommand.js +2 -2
  19. package/dist-cjs/commands/DeleteDBClusterCommand.js +2 -2
  20. package/dist-cjs/commands/DeleteDBClusterEndpointCommand.js +2 -2
  21. package/dist-cjs/commands/DeleteDBClusterParameterGroupCommand.js +1 -1
  22. package/dist-cjs/commands/DeleteDBClusterSnapshotCommand.js +2 -2
  23. package/dist-cjs/commands/DeleteDBInstanceCommand.js +2 -2
  24. package/dist-cjs/commands/DeleteDBParameterGroupCommand.js +1 -1
  25. package/dist-cjs/commands/DeleteDBSubnetGroupCommand.js +1 -1
  26. package/dist-cjs/commands/DeleteEventSubscriptionCommand.js +2 -2
  27. package/dist-cjs/commands/DeleteGlobalClusterCommand.js +2 -2
  28. package/dist-cjs/commands/DescribeDBClusterEndpointsCommand.js +2 -2
  29. package/dist-cjs/commands/DescribeDBClusterParameterGroupsCommand.js +2 -2
  30. package/dist-cjs/commands/DescribeDBClusterParametersCommand.js +2 -2
  31. package/dist-cjs/commands/DescribeDBClusterSnapshotAttributesCommand.js +2 -2
  32. package/dist-cjs/commands/DescribeDBClusterSnapshotsCommand.js +2 -2
  33. package/dist-cjs/commands/DescribeDBClustersCommand.js +2 -2
  34. package/dist-cjs/commands/DescribeDBEngineVersionsCommand.js +2 -2
  35. package/dist-cjs/commands/DescribeDBInstancesCommand.js +2 -2
  36. package/dist-cjs/commands/DescribeDBParameterGroupsCommand.js +2 -2
  37. package/dist-cjs/commands/DescribeDBParametersCommand.js +2 -2
  38. package/dist-cjs/commands/DescribeDBSubnetGroupsCommand.js +2 -2
  39. package/dist-cjs/commands/DescribeEngineDefaultClusterParametersCommand.js +2 -2
  40. package/dist-cjs/commands/DescribeEngineDefaultParametersCommand.js +2 -2
  41. package/dist-cjs/commands/DescribeEventCategoriesCommand.js +2 -2
  42. package/dist-cjs/commands/DescribeEventSubscriptionsCommand.js +2 -2
  43. package/dist-cjs/commands/DescribeEventsCommand.js +2 -2
  44. package/dist-cjs/commands/DescribeGlobalClustersCommand.js +2 -2
  45. package/dist-cjs/commands/DescribeOrderableDBInstanceOptionsCommand.js +2 -2
  46. package/dist-cjs/commands/DescribePendingMaintenanceActionsCommand.js +2 -2
  47. package/dist-cjs/commands/DescribeValidDBInstanceModificationsCommand.js +2 -2
  48. package/dist-cjs/commands/FailoverDBClusterCommand.js +2 -2
  49. package/dist-cjs/commands/FailoverGlobalClusterCommand.js +2 -2
  50. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  51. package/dist-cjs/commands/ModifyDBClusterCommand.js +2 -2
  52. package/dist-cjs/commands/ModifyDBClusterEndpointCommand.js +2 -2
  53. package/dist-cjs/commands/ModifyDBClusterParameterGroupCommand.js +2 -2
  54. package/dist-cjs/commands/ModifyDBClusterSnapshotAttributeCommand.js +2 -2
  55. package/dist-cjs/commands/ModifyDBInstanceCommand.js +2 -2
  56. package/dist-cjs/commands/ModifyDBParameterGroupCommand.js +2 -2
  57. package/dist-cjs/commands/ModifyDBSubnetGroupCommand.js +2 -2
  58. package/dist-cjs/commands/ModifyEventSubscriptionCommand.js +2 -2
  59. package/dist-cjs/commands/ModifyGlobalClusterCommand.js +2 -2
  60. package/dist-cjs/commands/PromoteReadReplicaDBClusterCommand.js +2 -2
  61. package/dist-cjs/commands/RebootDBInstanceCommand.js +2 -2
  62. package/dist-cjs/commands/RemoveFromGlobalClusterCommand.js +2 -2
  63. package/dist-cjs/commands/RemoveRoleFromDBClusterCommand.js +1 -1
  64. package/dist-cjs/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +2 -2
  65. package/dist-cjs/commands/RemoveTagsFromResourceCommand.js +1 -1
  66. package/dist-cjs/commands/ResetDBClusterParameterGroupCommand.js +2 -2
  67. package/dist-cjs/commands/ResetDBParameterGroupCommand.js +2 -2
  68. package/dist-cjs/commands/RestoreDBClusterFromSnapshotCommand.js +2 -2
  69. package/dist-cjs/commands/RestoreDBClusterToPointInTimeCommand.js +2 -2
  70. package/dist-cjs/commands/StartDBClusterCommand.js +2 -2
  71. package/dist-cjs/commands/StopDBClusterCommand.js +2 -2
  72. package/dist-cjs/models/models_0.js +697 -1043
  73. package/dist-cjs/protocols/Aws_query.js +743 -1109
  74. package/dist-es/commands/AddRoleToDBClusterCommand.js +2 -2
  75. package/dist-es/commands/AddSourceIdentifierToSubscriptionCommand.js +3 -3
  76. package/dist-es/commands/AddTagsToResourceCommand.js +2 -2
  77. package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +3 -3
  78. package/dist-es/commands/CopyDBClusterParameterGroupCommand.js +3 -3
  79. package/dist-es/commands/CopyDBClusterSnapshotCommand.js +3 -3
  80. package/dist-es/commands/CopyDBParameterGroupCommand.js +3 -3
  81. package/dist-es/commands/CreateDBClusterCommand.js +3 -3
  82. package/dist-es/commands/CreateDBClusterEndpointCommand.js +3 -3
  83. package/dist-es/commands/CreateDBClusterParameterGroupCommand.js +3 -3
  84. package/dist-es/commands/CreateDBClusterSnapshotCommand.js +3 -3
  85. package/dist-es/commands/CreateDBInstanceCommand.js +3 -3
  86. package/dist-es/commands/CreateDBParameterGroupCommand.js +3 -3
  87. package/dist-es/commands/CreateDBSubnetGroupCommand.js +3 -3
  88. package/dist-es/commands/CreateEventSubscriptionCommand.js +3 -3
  89. package/dist-es/commands/CreateGlobalClusterCommand.js +3 -3
  90. package/dist-es/commands/DeleteDBClusterCommand.js +3 -3
  91. package/dist-es/commands/DeleteDBClusterEndpointCommand.js +3 -3
  92. package/dist-es/commands/DeleteDBClusterParameterGroupCommand.js +2 -2
  93. package/dist-es/commands/DeleteDBClusterSnapshotCommand.js +3 -3
  94. package/dist-es/commands/DeleteDBInstanceCommand.js +3 -3
  95. package/dist-es/commands/DeleteDBParameterGroupCommand.js +2 -2
  96. package/dist-es/commands/DeleteDBSubnetGroupCommand.js +2 -2
  97. package/dist-es/commands/DeleteEventSubscriptionCommand.js +3 -3
  98. package/dist-es/commands/DeleteGlobalClusterCommand.js +3 -3
  99. package/dist-es/commands/DescribeDBClusterEndpointsCommand.js +3 -3
  100. package/dist-es/commands/DescribeDBClusterParameterGroupsCommand.js +3 -3
  101. package/dist-es/commands/DescribeDBClusterParametersCommand.js +3 -3
  102. package/dist-es/commands/DescribeDBClusterSnapshotAttributesCommand.js +3 -3
  103. package/dist-es/commands/DescribeDBClusterSnapshotsCommand.js +3 -3
  104. package/dist-es/commands/DescribeDBClustersCommand.js +3 -3
  105. package/dist-es/commands/DescribeDBEngineVersionsCommand.js +3 -3
  106. package/dist-es/commands/DescribeDBInstancesCommand.js +3 -3
  107. package/dist-es/commands/DescribeDBParameterGroupsCommand.js +3 -3
  108. package/dist-es/commands/DescribeDBParametersCommand.js +3 -3
  109. package/dist-es/commands/DescribeDBSubnetGroupsCommand.js +3 -3
  110. package/dist-es/commands/DescribeEngineDefaultClusterParametersCommand.js +3 -3
  111. package/dist-es/commands/DescribeEngineDefaultParametersCommand.js +3 -3
  112. package/dist-es/commands/DescribeEventCategoriesCommand.js +3 -3
  113. package/dist-es/commands/DescribeEventSubscriptionsCommand.js +3 -3
  114. package/dist-es/commands/DescribeEventsCommand.js +3 -3
  115. package/dist-es/commands/DescribeGlobalClustersCommand.js +3 -3
  116. package/dist-es/commands/DescribeOrderableDBInstanceOptionsCommand.js +3 -3
  117. package/dist-es/commands/DescribePendingMaintenanceActionsCommand.js +3 -3
  118. package/dist-es/commands/DescribeValidDBInstanceModificationsCommand.js +3 -3
  119. package/dist-es/commands/FailoverDBClusterCommand.js +3 -3
  120. package/dist-es/commands/FailoverGlobalClusterCommand.js +3 -3
  121. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  122. package/dist-es/commands/ModifyDBClusterCommand.js +3 -3
  123. package/dist-es/commands/ModifyDBClusterEndpointCommand.js +3 -3
  124. package/dist-es/commands/ModifyDBClusterParameterGroupCommand.js +3 -3
  125. package/dist-es/commands/ModifyDBClusterSnapshotAttributeCommand.js +3 -3
  126. package/dist-es/commands/ModifyDBInstanceCommand.js +3 -3
  127. package/dist-es/commands/ModifyDBParameterGroupCommand.js +3 -3
  128. package/dist-es/commands/ModifyDBSubnetGroupCommand.js +3 -3
  129. package/dist-es/commands/ModifyEventSubscriptionCommand.js +3 -3
  130. package/dist-es/commands/ModifyGlobalClusterCommand.js +3 -3
  131. package/dist-es/commands/PromoteReadReplicaDBClusterCommand.js +3 -3
  132. package/dist-es/commands/RebootDBInstanceCommand.js +3 -3
  133. package/dist-es/commands/RemoveFromGlobalClusterCommand.js +3 -3
  134. package/dist-es/commands/RemoveRoleFromDBClusterCommand.js +2 -2
  135. package/dist-es/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +3 -3
  136. package/dist-es/commands/RemoveTagsFromResourceCommand.js +2 -2
  137. package/dist-es/commands/ResetDBClusterParameterGroupCommand.js +3 -3
  138. package/dist-es/commands/ResetDBParameterGroupCommand.js +3 -3
  139. package/dist-es/commands/RestoreDBClusterFromSnapshotCommand.js +3 -3
  140. package/dist-es/commands/RestoreDBClusterToPointInTimeCommand.js +3 -3
  141. package/dist-es/commands/StartDBClusterCommand.js +3 -3
  142. package/dist-es/commands/StopDBClusterCommand.js +3 -3
  143. package/dist-es/models/models_0.js +173 -692
  144. package/dist-es/protocols/Aws_query.js +939 -1110
  145. package/dist-types/models/models_0.d.ts +692 -1038
  146. package/dist-types/ts3.4/models/models_0.d.ts +346 -692
  147. package/package.json +6 -6
@@ -922,7 +922,6 @@ const deserializeAws_queryAddRoleToDBClusterCommandError = async (output, contex
922
922
  ...output,
923
923
  body: await parseBody(output.body, context),
924
924
  };
925
- let response;
926
925
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
927
926
  switch (errorCode) {
928
927
  case "DBClusterNotFoundFault":
@@ -939,14 +938,12 @@ const deserializeAws_queryAddRoleToDBClusterCommandError = async (output, contex
939
938
  throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
940
939
  default:
941
940
  const parsedBody = parsedOutput.body;
942
- const $metadata = deserializeMetadata(output);
943
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
944
- response = new NeptuneServiceException_1.NeptuneServiceException({
945
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
946
- $fault: "client",
947
- $metadata,
941
+ (0, smithy_client_1.throwDefaultError)({
942
+ output,
943
+ parsedBody: parsedBody.Error,
944
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
945
+ errorCode,
948
946
  });
949
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
950
947
  }
951
948
  };
952
949
  const deserializeAws_queryAddSourceIdentifierToSubscriptionCommand = async (output, context) => {
@@ -968,7 +965,6 @@ const deserializeAws_queryAddSourceIdentifierToSubscriptionCommandError = async
968
965
  ...output,
969
966
  body: await parseBody(output.body, context),
970
967
  };
971
- let response;
972
968
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
973
969
  switch (errorCode) {
974
970
  case "SourceNotFoundFault":
@@ -979,14 +975,12 @@ const deserializeAws_queryAddSourceIdentifierToSubscriptionCommandError = async
979
975
  throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
980
976
  default:
981
977
  const parsedBody = parsedOutput.body;
982
- const $metadata = deserializeMetadata(output);
983
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
984
- response = new NeptuneServiceException_1.NeptuneServiceException({
985
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
986
- $fault: "client",
987
- $metadata,
978
+ (0, smithy_client_1.throwDefaultError)({
979
+ output,
980
+ parsedBody: parsedBody.Error,
981
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
982
+ errorCode,
988
983
  });
989
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
990
984
  }
991
985
  };
992
986
  const deserializeAws_queryAddTagsToResourceCommand = async (output, context) => {
@@ -1005,7 +999,6 @@ const deserializeAws_queryAddTagsToResourceCommandError = async (output, context
1005
999
  ...output,
1006
1000
  body: await parseBody(output.body, context),
1007
1001
  };
1008
- let response;
1009
1002
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1010
1003
  switch (errorCode) {
1011
1004
  case "DBClusterNotFoundFault":
@@ -1019,14 +1012,12 @@ const deserializeAws_queryAddTagsToResourceCommandError = async (output, context
1019
1012
  throw await deserializeAws_queryDBSnapshotNotFoundFaultResponse(parsedOutput, context);
1020
1013
  default:
1021
1014
  const parsedBody = parsedOutput.body;
1022
- const $metadata = deserializeMetadata(output);
1023
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1024
- response = new NeptuneServiceException_1.NeptuneServiceException({
1025
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1026
- $fault: "client",
1027
- $metadata,
1015
+ (0, smithy_client_1.throwDefaultError)({
1016
+ output,
1017
+ parsedBody: parsedBody.Error,
1018
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1019
+ errorCode,
1028
1020
  });
1029
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1030
1021
  }
1031
1022
  };
1032
1023
  const deserializeAws_queryApplyPendingMaintenanceActionCommand = async (output, context) => {
@@ -1048,7 +1039,6 @@ const deserializeAws_queryApplyPendingMaintenanceActionCommandError = async (out
1048
1039
  ...output,
1049
1040
  body: await parseBody(output.body, context),
1050
1041
  };
1051
- let response;
1052
1042
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1053
1043
  switch (errorCode) {
1054
1044
  case "ResourceNotFoundFault":
@@ -1056,14 +1046,12 @@ const deserializeAws_queryApplyPendingMaintenanceActionCommandError = async (out
1056
1046
  throw await deserializeAws_queryResourceNotFoundFaultResponse(parsedOutput, context);
1057
1047
  default:
1058
1048
  const parsedBody = parsedOutput.body;
1059
- const $metadata = deserializeMetadata(output);
1060
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1061
- response = new NeptuneServiceException_1.NeptuneServiceException({
1062
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1063
- $fault: "client",
1064
- $metadata,
1049
+ (0, smithy_client_1.throwDefaultError)({
1050
+ output,
1051
+ parsedBody: parsedBody.Error,
1052
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1053
+ errorCode,
1065
1054
  });
1066
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1067
1055
  }
1068
1056
  };
1069
1057
  const deserializeAws_queryCopyDBClusterParameterGroupCommand = async (output, context) => {
@@ -1085,7 +1073,6 @@ const deserializeAws_queryCopyDBClusterParameterGroupCommandError = async (outpu
1085
1073
  ...output,
1086
1074
  body: await parseBody(output.body, context),
1087
1075
  };
1088
- let response;
1089
1076
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1090
1077
  switch (errorCode) {
1091
1078
  case "DBParameterGroupAlreadyExistsFault":
@@ -1099,14 +1086,12 @@ const deserializeAws_queryCopyDBClusterParameterGroupCommandError = async (outpu
1099
1086
  throw await deserializeAws_queryDBParameterGroupQuotaExceededFaultResponse(parsedOutput, context);
1100
1087
  default:
1101
1088
  const parsedBody = parsedOutput.body;
1102
- const $metadata = deserializeMetadata(output);
1103
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1104
- response = new NeptuneServiceException_1.NeptuneServiceException({
1105
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1106
- $fault: "client",
1107
- $metadata,
1089
+ (0, smithy_client_1.throwDefaultError)({
1090
+ output,
1091
+ parsedBody: parsedBody.Error,
1092
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1093
+ errorCode,
1108
1094
  });
1109
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1110
1095
  }
1111
1096
  };
1112
1097
  const deserializeAws_queryCopyDBClusterSnapshotCommand = async (output, context) => {
@@ -1128,7 +1113,6 @@ const deserializeAws_queryCopyDBClusterSnapshotCommandError = async (output, con
1128
1113
  ...output,
1129
1114
  body: await parseBody(output.body, context),
1130
1115
  };
1131
- let response;
1132
1116
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1133
1117
  switch (errorCode) {
1134
1118
  case "DBClusterSnapshotAlreadyExistsFault":
@@ -1151,14 +1135,12 @@ const deserializeAws_queryCopyDBClusterSnapshotCommandError = async (output, con
1151
1135
  throw await deserializeAws_querySnapshotQuotaExceededFaultResponse(parsedOutput, context);
1152
1136
  default:
1153
1137
  const parsedBody = parsedOutput.body;
1154
- const $metadata = deserializeMetadata(output);
1155
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1156
- response = new NeptuneServiceException_1.NeptuneServiceException({
1157
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1158
- $fault: "client",
1159
- $metadata,
1138
+ (0, smithy_client_1.throwDefaultError)({
1139
+ output,
1140
+ parsedBody: parsedBody.Error,
1141
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1142
+ errorCode,
1160
1143
  });
1161
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1162
1144
  }
1163
1145
  };
1164
1146
  const deserializeAws_queryCopyDBParameterGroupCommand = async (output, context) => {
@@ -1180,7 +1162,6 @@ const deserializeAws_queryCopyDBParameterGroupCommandError = async (output, cont
1180
1162
  ...output,
1181
1163
  body: await parseBody(output.body, context),
1182
1164
  };
1183
- let response;
1184
1165
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1185
1166
  switch (errorCode) {
1186
1167
  case "DBParameterGroupAlreadyExistsFault":
@@ -1194,14 +1175,12 @@ const deserializeAws_queryCopyDBParameterGroupCommandError = async (output, cont
1194
1175
  throw await deserializeAws_queryDBParameterGroupQuotaExceededFaultResponse(parsedOutput, context);
1195
1176
  default:
1196
1177
  const parsedBody = parsedOutput.body;
1197
- const $metadata = deserializeMetadata(output);
1198
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1199
- response = new NeptuneServiceException_1.NeptuneServiceException({
1200
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1201
- $fault: "client",
1202
- $metadata,
1178
+ (0, smithy_client_1.throwDefaultError)({
1179
+ output,
1180
+ parsedBody: parsedBody.Error,
1181
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1182
+ errorCode,
1203
1183
  });
1204
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1205
1184
  }
1206
1185
  };
1207
1186
  const deserializeAws_queryCreateDBClusterCommand = async (output, context) => {
@@ -1223,7 +1202,6 @@ const deserializeAws_queryCreateDBClusterCommandError = async (output, context)
1223
1202
  ...output,
1224
1203
  body: await parseBody(output.body, context),
1225
1204
  };
1226
- let response;
1227
1205
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1228
1206
  switch (errorCode) {
1229
1207
  case "DBClusterAlreadyExistsFault":
@@ -1279,14 +1257,12 @@ const deserializeAws_queryCreateDBClusterCommandError = async (output, context)
1279
1257
  throw await deserializeAws_queryStorageQuotaExceededFaultResponse(parsedOutput, context);
1280
1258
  default:
1281
1259
  const parsedBody = parsedOutput.body;
1282
- const $metadata = deserializeMetadata(output);
1283
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1284
- response = new NeptuneServiceException_1.NeptuneServiceException({
1285
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1286
- $fault: "client",
1287
- $metadata,
1260
+ (0, smithy_client_1.throwDefaultError)({
1261
+ output,
1262
+ parsedBody: parsedBody.Error,
1263
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1264
+ errorCode,
1288
1265
  });
1289
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1290
1266
  }
1291
1267
  };
1292
1268
  const deserializeAws_queryCreateDBClusterEndpointCommand = async (output, context) => {
@@ -1308,7 +1284,6 @@ const deserializeAws_queryCreateDBClusterEndpointCommandError = async (output, c
1308
1284
  ...output,
1309
1285
  body: await parseBody(output.body, context),
1310
1286
  };
1311
- let response;
1312
1287
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1313
1288
  switch (errorCode) {
1314
1289
  case "DBClusterEndpointAlreadyExistsFault":
@@ -1331,14 +1306,12 @@ const deserializeAws_queryCreateDBClusterEndpointCommandError = async (output, c
1331
1306
  throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
1332
1307
  default:
1333
1308
  const parsedBody = parsedOutput.body;
1334
- const $metadata = deserializeMetadata(output);
1335
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1336
- response = new NeptuneServiceException_1.NeptuneServiceException({
1337
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1338
- $fault: "client",
1339
- $metadata,
1309
+ (0, smithy_client_1.throwDefaultError)({
1310
+ output,
1311
+ parsedBody: parsedBody.Error,
1312
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1313
+ errorCode,
1340
1314
  });
1341
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1342
1315
  }
1343
1316
  };
1344
1317
  const deserializeAws_queryCreateDBClusterParameterGroupCommand = async (output, context) => {
@@ -1360,7 +1333,6 @@ const deserializeAws_queryCreateDBClusterParameterGroupCommandError = async (out
1360
1333
  ...output,
1361
1334
  body: await parseBody(output.body, context),
1362
1335
  };
1363
- let response;
1364
1336
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1365
1337
  switch (errorCode) {
1366
1338
  case "DBParameterGroupAlreadyExistsFault":
@@ -1371,14 +1343,12 @@ const deserializeAws_queryCreateDBClusterParameterGroupCommandError = async (out
1371
1343
  throw await deserializeAws_queryDBParameterGroupQuotaExceededFaultResponse(parsedOutput, context);
1372
1344
  default:
1373
1345
  const parsedBody = parsedOutput.body;
1374
- const $metadata = deserializeMetadata(output);
1375
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1376
- response = new NeptuneServiceException_1.NeptuneServiceException({
1377
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1378
- $fault: "client",
1379
- $metadata,
1346
+ (0, smithy_client_1.throwDefaultError)({
1347
+ output,
1348
+ parsedBody: parsedBody.Error,
1349
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1350
+ errorCode,
1380
1351
  });
1381
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1382
1352
  }
1383
1353
  };
1384
1354
  const deserializeAws_queryCreateDBClusterSnapshotCommand = async (output, context) => {
@@ -1400,7 +1370,6 @@ const deserializeAws_queryCreateDBClusterSnapshotCommandError = async (output, c
1400
1370
  ...output,
1401
1371
  body: await parseBody(output.body, context),
1402
1372
  };
1403
- let response;
1404
1373
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1405
1374
  switch (errorCode) {
1406
1375
  case "DBClusterNotFoundFault":
@@ -1420,14 +1389,12 @@ const deserializeAws_queryCreateDBClusterSnapshotCommandError = async (output, c
1420
1389
  throw await deserializeAws_querySnapshotQuotaExceededFaultResponse(parsedOutput, context);
1421
1390
  default:
1422
1391
  const parsedBody = parsedOutput.body;
1423
- const $metadata = deserializeMetadata(output);
1424
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1425
- response = new NeptuneServiceException_1.NeptuneServiceException({
1426
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1427
- $fault: "client",
1428
- $metadata,
1392
+ (0, smithy_client_1.throwDefaultError)({
1393
+ output,
1394
+ parsedBody: parsedBody.Error,
1395
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1396
+ errorCode,
1429
1397
  });
1430
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1431
1398
  }
1432
1399
  };
1433
1400
  const deserializeAws_queryCreateDBInstanceCommand = async (output, context) => {
@@ -1449,7 +1416,6 @@ const deserializeAws_queryCreateDBInstanceCommandError = async (output, context)
1449
1416
  ...output,
1450
1417
  body: await parseBody(output.body, context),
1451
1418
  };
1452
- let response;
1453
1419
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1454
1420
  switch (errorCode) {
1455
1421
  case "AuthorizationNotFoundFault":
@@ -1508,14 +1474,12 @@ const deserializeAws_queryCreateDBInstanceCommandError = async (output, context)
1508
1474
  throw await deserializeAws_queryStorageTypeNotSupportedFaultResponse(parsedOutput, context);
1509
1475
  default:
1510
1476
  const parsedBody = parsedOutput.body;
1511
- const $metadata = deserializeMetadata(output);
1512
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1513
- response = new NeptuneServiceException_1.NeptuneServiceException({
1514
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1515
- $fault: "client",
1516
- $metadata,
1477
+ (0, smithy_client_1.throwDefaultError)({
1478
+ output,
1479
+ parsedBody: parsedBody.Error,
1480
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1481
+ errorCode,
1517
1482
  });
1518
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1519
1483
  }
1520
1484
  };
1521
1485
  const deserializeAws_queryCreateDBParameterGroupCommand = async (output, context) => {
@@ -1537,7 +1501,6 @@ const deserializeAws_queryCreateDBParameterGroupCommandError = async (output, co
1537
1501
  ...output,
1538
1502
  body: await parseBody(output.body, context),
1539
1503
  };
1540
- let response;
1541
1504
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1542
1505
  switch (errorCode) {
1543
1506
  case "DBParameterGroupAlreadyExistsFault":
@@ -1548,14 +1511,12 @@ const deserializeAws_queryCreateDBParameterGroupCommandError = async (output, co
1548
1511
  throw await deserializeAws_queryDBParameterGroupQuotaExceededFaultResponse(parsedOutput, context);
1549
1512
  default:
1550
1513
  const parsedBody = parsedOutput.body;
1551
- const $metadata = deserializeMetadata(output);
1552
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1553
- response = new NeptuneServiceException_1.NeptuneServiceException({
1554
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1555
- $fault: "client",
1556
- $metadata,
1514
+ (0, smithy_client_1.throwDefaultError)({
1515
+ output,
1516
+ parsedBody: parsedBody.Error,
1517
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1518
+ errorCode,
1557
1519
  });
1558
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1559
1520
  }
1560
1521
  };
1561
1522
  const deserializeAws_queryCreateDBSubnetGroupCommand = async (output, context) => {
@@ -1577,7 +1538,6 @@ const deserializeAws_queryCreateDBSubnetGroupCommandError = async (output, conte
1577
1538
  ...output,
1578
1539
  body: await parseBody(output.body, context),
1579
1540
  };
1580
- let response;
1581
1541
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1582
1542
  switch (errorCode) {
1583
1543
  case "DBSubnetGroupAlreadyExistsFault":
@@ -1597,14 +1557,12 @@ const deserializeAws_queryCreateDBSubnetGroupCommandError = async (output, conte
1597
1557
  throw await deserializeAws_queryInvalidSubnetResponse(parsedOutput, context);
1598
1558
  default:
1599
1559
  const parsedBody = parsedOutput.body;
1600
- const $metadata = deserializeMetadata(output);
1601
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1602
- response = new NeptuneServiceException_1.NeptuneServiceException({
1603
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1604
- $fault: "client",
1605
- $metadata,
1560
+ (0, smithy_client_1.throwDefaultError)({
1561
+ output,
1562
+ parsedBody: parsedBody.Error,
1563
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1564
+ errorCode,
1606
1565
  });
1607
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1608
1566
  }
1609
1567
  };
1610
1568
  const deserializeAws_queryCreateEventSubscriptionCommand = async (output, context) => {
@@ -1626,7 +1584,6 @@ const deserializeAws_queryCreateEventSubscriptionCommandError = async (output, c
1626
1584
  ...output,
1627
1585
  body: await parseBody(output.body, context),
1628
1586
  };
1629
- let response;
1630
1587
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1631
1588
  switch (errorCode) {
1632
1589
  case "EventSubscriptionQuotaExceededFault":
@@ -1652,14 +1609,12 @@ const deserializeAws_queryCreateEventSubscriptionCommandError = async (output, c
1652
1609
  throw await deserializeAws_querySubscriptionCategoryNotFoundFaultResponse(parsedOutput, context);
1653
1610
  default:
1654
1611
  const parsedBody = parsedOutput.body;
1655
- const $metadata = deserializeMetadata(output);
1656
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1657
- response = new NeptuneServiceException_1.NeptuneServiceException({
1658
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1659
- $fault: "client",
1660
- $metadata,
1612
+ (0, smithy_client_1.throwDefaultError)({
1613
+ output,
1614
+ parsedBody: parsedBody.Error,
1615
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1616
+ errorCode,
1661
1617
  });
1662
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1663
1618
  }
1664
1619
  };
1665
1620
  const deserializeAws_queryCreateGlobalClusterCommand = async (output, context) => {
@@ -1681,7 +1636,6 @@ const deserializeAws_queryCreateGlobalClusterCommandError = async (output, conte
1681
1636
  ...output,
1682
1637
  body: await parseBody(output.body, context),
1683
1638
  };
1684
- let response;
1685
1639
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1686
1640
  switch (errorCode) {
1687
1641
  case "DBClusterNotFoundFault":
@@ -1698,14 +1652,12 @@ const deserializeAws_queryCreateGlobalClusterCommandError = async (output, conte
1698
1652
  throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
1699
1653
  default:
1700
1654
  const parsedBody = parsedOutput.body;
1701
- const $metadata = deserializeMetadata(output);
1702
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1703
- response = new NeptuneServiceException_1.NeptuneServiceException({
1704
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1705
- $fault: "client",
1706
- $metadata,
1655
+ (0, smithy_client_1.throwDefaultError)({
1656
+ output,
1657
+ parsedBody: parsedBody.Error,
1658
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1659
+ errorCode,
1707
1660
  });
1708
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1709
1661
  }
1710
1662
  };
1711
1663
  const deserializeAws_queryDeleteDBClusterCommand = async (output, context) => {
@@ -1727,7 +1679,6 @@ const deserializeAws_queryDeleteDBClusterCommandError = async (output, context)
1727
1679
  ...output,
1728
1680
  body: await parseBody(output.body, context),
1729
1681
  };
1730
- let response;
1731
1682
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1732
1683
  switch (errorCode) {
1733
1684
  case "DBClusterNotFoundFault":
@@ -1747,14 +1698,12 @@ const deserializeAws_queryDeleteDBClusterCommandError = async (output, context)
1747
1698
  throw await deserializeAws_querySnapshotQuotaExceededFaultResponse(parsedOutput, context);
1748
1699
  default:
1749
1700
  const parsedBody = parsedOutput.body;
1750
- const $metadata = deserializeMetadata(output);
1751
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1752
- response = new NeptuneServiceException_1.NeptuneServiceException({
1753
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1754
- $fault: "client",
1755
- $metadata,
1701
+ (0, smithy_client_1.throwDefaultError)({
1702
+ output,
1703
+ parsedBody: parsedBody.Error,
1704
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1705
+ errorCode,
1756
1706
  });
1757
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1758
1707
  }
1759
1708
  };
1760
1709
  const deserializeAws_queryDeleteDBClusterEndpointCommand = async (output, context) => {
@@ -1776,7 +1725,6 @@ const deserializeAws_queryDeleteDBClusterEndpointCommandError = async (output, c
1776
1725
  ...output,
1777
1726
  body: await parseBody(output.body, context),
1778
1727
  };
1779
- let response;
1780
1728
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1781
1729
  switch (errorCode) {
1782
1730
  case "DBClusterEndpointNotFoundFault":
@@ -1790,14 +1738,12 @@ const deserializeAws_queryDeleteDBClusterEndpointCommandError = async (output, c
1790
1738
  throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
1791
1739
  default:
1792
1740
  const parsedBody = parsedOutput.body;
1793
- const $metadata = deserializeMetadata(output);
1794
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1795
- response = new NeptuneServiceException_1.NeptuneServiceException({
1796
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1797
- $fault: "client",
1798
- $metadata,
1741
+ (0, smithy_client_1.throwDefaultError)({
1742
+ output,
1743
+ parsedBody: parsedBody.Error,
1744
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1745
+ errorCode,
1799
1746
  });
1800
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1801
1747
  }
1802
1748
  };
1803
1749
  const deserializeAws_queryDeleteDBClusterParameterGroupCommand = async (output, context) => {
@@ -1816,7 +1762,6 @@ const deserializeAws_queryDeleteDBClusterParameterGroupCommandError = async (out
1816
1762
  ...output,
1817
1763
  body: await parseBody(output.body, context),
1818
1764
  };
1819
- let response;
1820
1765
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1821
1766
  switch (errorCode) {
1822
1767
  case "DBParameterGroupNotFoundFault":
@@ -1827,14 +1772,12 @@ const deserializeAws_queryDeleteDBClusterParameterGroupCommandError = async (out
1827
1772
  throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
1828
1773
  default:
1829
1774
  const parsedBody = parsedOutput.body;
1830
- const $metadata = deserializeMetadata(output);
1831
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1832
- response = new NeptuneServiceException_1.NeptuneServiceException({
1833
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1834
- $fault: "client",
1835
- $metadata,
1775
+ (0, smithy_client_1.throwDefaultError)({
1776
+ output,
1777
+ parsedBody: parsedBody.Error,
1778
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1779
+ errorCode,
1836
1780
  });
1837
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1838
1781
  }
1839
1782
  };
1840
1783
  const deserializeAws_queryDeleteDBClusterSnapshotCommand = async (output, context) => {
@@ -1856,7 +1799,6 @@ const deserializeAws_queryDeleteDBClusterSnapshotCommandError = async (output, c
1856
1799
  ...output,
1857
1800
  body: await parseBody(output.body, context),
1858
1801
  };
1859
- let response;
1860
1802
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1861
1803
  switch (errorCode) {
1862
1804
  case "DBClusterSnapshotNotFoundFault":
@@ -1867,14 +1809,12 @@ const deserializeAws_queryDeleteDBClusterSnapshotCommandError = async (output, c
1867
1809
  throw await deserializeAws_queryInvalidDBClusterSnapshotStateFaultResponse(parsedOutput, context);
1868
1810
  default:
1869
1811
  const parsedBody = parsedOutput.body;
1870
- const $metadata = deserializeMetadata(output);
1871
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1872
- response = new NeptuneServiceException_1.NeptuneServiceException({
1873
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1874
- $fault: "client",
1875
- $metadata,
1812
+ (0, smithy_client_1.throwDefaultError)({
1813
+ output,
1814
+ parsedBody: parsedBody.Error,
1815
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1816
+ errorCode,
1876
1817
  });
1877
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1878
1818
  }
1879
1819
  };
1880
1820
  const deserializeAws_queryDeleteDBInstanceCommand = async (output, context) => {
@@ -1896,7 +1836,6 @@ const deserializeAws_queryDeleteDBInstanceCommandError = async (output, context)
1896
1836
  ...output,
1897
1837
  body: await parseBody(output.body, context),
1898
1838
  };
1899
- let response;
1900
1839
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1901
1840
  switch (errorCode) {
1902
1841
  case "DBInstanceNotFoundFault":
@@ -1916,14 +1855,12 @@ const deserializeAws_queryDeleteDBInstanceCommandError = async (output, context)
1916
1855
  throw await deserializeAws_querySnapshotQuotaExceededFaultResponse(parsedOutput, context);
1917
1856
  default:
1918
1857
  const parsedBody = parsedOutput.body;
1919
- const $metadata = deserializeMetadata(output);
1920
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1921
- response = new NeptuneServiceException_1.NeptuneServiceException({
1922
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1923
- $fault: "client",
1924
- $metadata,
1858
+ (0, smithy_client_1.throwDefaultError)({
1859
+ output,
1860
+ parsedBody: parsedBody.Error,
1861
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1862
+ errorCode,
1925
1863
  });
1926
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1927
1864
  }
1928
1865
  };
1929
1866
  const deserializeAws_queryDeleteDBParameterGroupCommand = async (output, context) => {
@@ -1942,7 +1879,6 @@ const deserializeAws_queryDeleteDBParameterGroupCommandError = async (output, co
1942
1879
  ...output,
1943
1880
  body: await parseBody(output.body, context),
1944
1881
  };
1945
- let response;
1946
1882
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1947
1883
  switch (errorCode) {
1948
1884
  case "DBParameterGroupNotFoundFault":
@@ -1953,14 +1889,12 @@ const deserializeAws_queryDeleteDBParameterGroupCommandError = async (output, co
1953
1889
  throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
1954
1890
  default:
1955
1891
  const parsedBody = parsedOutput.body;
1956
- const $metadata = deserializeMetadata(output);
1957
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1958
- response = new NeptuneServiceException_1.NeptuneServiceException({
1959
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1960
- $fault: "client",
1961
- $metadata,
1892
+ (0, smithy_client_1.throwDefaultError)({
1893
+ output,
1894
+ parsedBody: parsedBody.Error,
1895
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1896
+ errorCode,
1962
1897
  });
1963
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
1964
1898
  }
1965
1899
  };
1966
1900
  const deserializeAws_queryDeleteDBSubnetGroupCommand = async (output, context) => {
@@ -1979,7 +1913,6 @@ const deserializeAws_queryDeleteDBSubnetGroupCommandError = async (output, conte
1979
1913
  ...output,
1980
1914
  body: await parseBody(output.body, context),
1981
1915
  };
1982
- let response;
1983
1916
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1984
1917
  switch (errorCode) {
1985
1918
  case "DBSubnetGroupNotFoundFault":
@@ -1993,14 +1926,12 @@ const deserializeAws_queryDeleteDBSubnetGroupCommandError = async (output, conte
1993
1926
  throw await deserializeAws_queryInvalidDBSubnetStateFaultResponse(parsedOutput, context);
1994
1927
  default:
1995
1928
  const parsedBody = parsedOutput.body;
1996
- const $metadata = deserializeMetadata(output);
1997
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1998
- response = new NeptuneServiceException_1.NeptuneServiceException({
1999
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2000
- $fault: "client",
2001
- $metadata,
1929
+ (0, smithy_client_1.throwDefaultError)({
1930
+ output,
1931
+ parsedBody: parsedBody.Error,
1932
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1933
+ errorCode,
2002
1934
  });
2003
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2004
1935
  }
2005
1936
  };
2006
1937
  const deserializeAws_queryDeleteEventSubscriptionCommand = async (output, context) => {
@@ -2022,7 +1953,6 @@ const deserializeAws_queryDeleteEventSubscriptionCommandError = async (output, c
2022
1953
  ...output,
2023
1954
  body: await parseBody(output.body, context),
2024
1955
  };
2025
- let response;
2026
1956
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2027
1957
  switch (errorCode) {
2028
1958
  case "InvalidEventSubscriptionStateFault":
@@ -2033,14 +1963,12 @@ const deserializeAws_queryDeleteEventSubscriptionCommandError = async (output, c
2033
1963
  throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
2034
1964
  default:
2035
1965
  const parsedBody = parsedOutput.body;
2036
- const $metadata = deserializeMetadata(output);
2037
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2038
- response = new NeptuneServiceException_1.NeptuneServiceException({
2039
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2040
- $fault: "client",
2041
- $metadata,
1966
+ (0, smithy_client_1.throwDefaultError)({
1967
+ output,
1968
+ parsedBody: parsedBody.Error,
1969
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
1970
+ errorCode,
2042
1971
  });
2043
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2044
1972
  }
2045
1973
  };
2046
1974
  const deserializeAws_queryDeleteGlobalClusterCommand = async (output, context) => {
@@ -2062,7 +1990,6 @@ const deserializeAws_queryDeleteGlobalClusterCommandError = async (output, conte
2062
1990
  ...output,
2063
1991
  body: await parseBody(output.body, context),
2064
1992
  };
2065
- let response;
2066
1993
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2067
1994
  switch (errorCode) {
2068
1995
  case "GlobalClusterNotFoundFault":
@@ -2073,14 +2000,12 @@ const deserializeAws_queryDeleteGlobalClusterCommandError = async (output, conte
2073
2000
  throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
2074
2001
  default:
2075
2002
  const parsedBody = parsedOutput.body;
2076
- const $metadata = deserializeMetadata(output);
2077
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2078
- response = new NeptuneServiceException_1.NeptuneServiceException({
2079
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2080
- $fault: "client",
2081
- $metadata,
2003
+ (0, smithy_client_1.throwDefaultError)({
2004
+ output,
2005
+ parsedBody: parsedBody.Error,
2006
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2007
+ errorCode,
2082
2008
  });
2083
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2084
2009
  }
2085
2010
  };
2086
2011
  const deserializeAws_queryDescribeDBClusterEndpointsCommand = async (output, context) => {
@@ -2102,7 +2027,6 @@ const deserializeAws_queryDescribeDBClusterEndpointsCommandError = async (output
2102
2027
  ...output,
2103
2028
  body: await parseBody(output.body, context),
2104
2029
  };
2105
- let response;
2106
2030
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2107
2031
  switch (errorCode) {
2108
2032
  case "DBClusterNotFoundFault":
@@ -2110,14 +2034,12 @@ const deserializeAws_queryDescribeDBClusterEndpointsCommandError = async (output
2110
2034
  throw await deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context);
2111
2035
  default:
2112
2036
  const parsedBody = parsedOutput.body;
2113
- const $metadata = deserializeMetadata(output);
2114
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2115
- response = new NeptuneServiceException_1.NeptuneServiceException({
2116
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2117
- $fault: "client",
2118
- $metadata,
2037
+ (0, smithy_client_1.throwDefaultError)({
2038
+ output,
2039
+ parsedBody: parsedBody.Error,
2040
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2041
+ errorCode,
2119
2042
  });
2120
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2121
2043
  }
2122
2044
  };
2123
2045
  const deserializeAws_queryDescribeDBClusterParameterGroupsCommand = async (output, context) => {
@@ -2139,7 +2061,6 @@ const deserializeAws_queryDescribeDBClusterParameterGroupsCommandError = async (
2139
2061
  ...output,
2140
2062
  body: await parseBody(output.body, context),
2141
2063
  };
2142
- let response;
2143
2064
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2144
2065
  switch (errorCode) {
2145
2066
  case "DBParameterGroupNotFoundFault":
@@ -2147,14 +2068,12 @@ const deserializeAws_queryDescribeDBClusterParameterGroupsCommandError = async (
2147
2068
  throw await deserializeAws_queryDBParameterGroupNotFoundFaultResponse(parsedOutput, context);
2148
2069
  default:
2149
2070
  const parsedBody = parsedOutput.body;
2150
- const $metadata = deserializeMetadata(output);
2151
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2152
- response = new NeptuneServiceException_1.NeptuneServiceException({
2153
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2154
- $fault: "client",
2155
- $metadata,
2071
+ (0, smithy_client_1.throwDefaultError)({
2072
+ output,
2073
+ parsedBody: parsedBody.Error,
2074
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2075
+ errorCode,
2156
2076
  });
2157
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2158
2077
  }
2159
2078
  };
2160
2079
  const deserializeAws_queryDescribeDBClusterParametersCommand = async (output, context) => {
@@ -2176,7 +2095,6 @@ const deserializeAws_queryDescribeDBClusterParametersCommandError = async (outpu
2176
2095
  ...output,
2177
2096
  body: await parseBody(output.body, context),
2178
2097
  };
2179
- let response;
2180
2098
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2181
2099
  switch (errorCode) {
2182
2100
  case "DBParameterGroupNotFoundFault":
@@ -2184,14 +2102,12 @@ const deserializeAws_queryDescribeDBClusterParametersCommandError = async (outpu
2184
2102
  throw await deserializeAws_queryDBParameterGroupNotFoundFaultResponse(parsedOutput, context);
2185
2103
  default:
2186
2104
  const parsedBody = parsedOutput.body;
2187
- const $metadata = deserializeMetadata(output);
2188
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2189
- response = new NeptuneServiceException_1.NeptuneServiceException({
2190
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2191
- $fault: "client",
2192
- $metadata,
2105
+ (0, smithy_client_1.throwDefaultError)({
2106
+ output,
2107
+ parsedBody: parsedBody.Error,
2108
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2109
+ errorCode,
2193
2110
  });
2194
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2195
2111
  }
2196
2112
  };
2197
2113
  const deserializeAws_queryDescribeDBClustersCommand = async (output, context) => {
@@ -2213,7 +2129,6 @@ const deserializeAws_queryDescribeDBClustersCommandError = async (output, contex
2213
2129
  ...output,
2214
2130
  body: await parseBody(output.body, context),
2215
2131
  };
2216
- let response;
2217
2132
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2218
2133
  switch (errorCode) {
2219
2134
  case "DBClusterNotFoundFault":
@@ -2221,14 +2136,12 @@ const deserializeAws_queryDescribeDBClustersCommandError = async (output, contex
2221
2136
  throw await deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context);
2222
2137
  default:
2223
2138
  const parsedBody = parsedOutput.body;
2224
- const $metadata = deserializeMetadata(output);
2225
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2226
- response = new NeptuneServiceException_1.NeptuneServiceException({
2227
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2228
- $fault: "client",
2229
- $metadata,
2139
+ (0, smithy_client_1.throwDefaultError)({
2140
+ output,
2141
+ parsedBody: parsedBody.Error,
2142
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2143
+ errorCode,
2230
2144
  });
2231
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2232
2145
  }
2233
2146
  };
2234
2147
  const deserializeAws_queryDescribeDBClusterSnapshotAttributesCommand = async (output, context) => {
@@ -2250,7 +2163,6 @@ const deserializeAws_queryDescribeDBClusterSnapshotAttributesCommandError = asyn
2250
2163
  ...output,
2251
2164
  body: await parseBody(output.body, context),
2252
2165
  };
2253
- let response;
2254
2166
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2255
2167
  switch (errorCode) {
2256
2168
  case "DBClusterSnapshotNotFoundFault":
@@ -2258,14 +2170,12 @@ const deserializeAws_queryDescribeDBClusterSnapshotAttributesCommandError = asyn
2258
2170
  throw await deserializeAws_queryDBClusterSnapshotNotFoundFaultResponse(parsedOutput, context);
2259
2171
  default:
2260
2172
  const parsedBody = parsedOutput.body;
2261
- const $metadata = deserializeMetadata(output);
2262
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2263
- response = new NeptuneServiceException_1.NeptuneServiceException({
2264
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2265
- $fault: "client",
2266
- $metadata,
2173
+ (0, smithy_client_1.throwDefaultError)({
2174
+ output,
2175
+ parsedBody: parsedBody.Error,
2176
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2177
+ errorCode,
2267
2178
  });
2268
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2269
2179
  }
2270
2180
  };
2271
2181
  const deserializeAws_queryDescribeDBClusterSnapshotsCommand = async (output, context) => {
@@ -2287,7 +2197,6 @@ const deserializeAws_queryDescribeDBClusterSnapshotsCommandError = async (output
2287
2197
  ...output,
2288
2198
  body: await parseBody(output.body, context),
2289
2199
  };
2290
- let response;
2291
2200
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2292
2201
  switch (errorCode) {
2293
2202
  case "DBClusterSnapshotNotFoundFault":
@@ -2295,14 +2204,12 @@ const deserializeAws_queryDescribeDBClusterSnapshotsCommandError = async (output
2295
2204
  throw await deserializeAws_queryDBClusterSnapshotNotFoundFaultResponse(parsedOutput, context);
2296
2205
  default:
2297
2206
  const parsedBody = parsedOutput.body;
2298
- const $metadata = deserializeMetadata(output);
2299
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2300
- response = new NeptuneServiceException_1.NeptuneServiceException({
2301
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2302
- $fault: "client",
2303
- $metadata,
2207
+ (0, smithy_client_1.throwDefaultError)({
2208
+ output,
2209
+ parsedBody: parsedBody.Error,
2210
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2211
+ errorCode,
2304
2212
  });
2305
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2306
2213
  }
2307
2214
  };
2308
2215
  const deserializeAws_queryDescribeDBEngineVersionsCommand = async (output, context) => {
@@ -2324,20 +2231,14 @@ const deserializeAws_queryDescribeDBEngineVersionsCommandError = async (output,
2324
2231
  ...output,
2325
2232
  body: await parseBody(output.body, context),
2326
2233
  };
2327
- let response;
2328
2234
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2329
- switch (errorCode) {
2330
- default:
2331
- const parsedBody = parsedOutput.body;
2332
- const $metadata = deserializeMetadata(output);
2333
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2334
- response = new NeptuneServiceException_1.NeptuneServiceException({
2335
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2336
- $fault: "client",
2337
- $metadata,
2338
- });
2339
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2340
- }
2235
+ const parsedBody = parsedOutput.body;
2236
+ (0, smithy_client_1.throwDefaultError)({
2237
+ output,
2238
+ parsedBody: parsedBody.Error,
2239
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2240
+ errorCode,
2241
+ });
2341
2242
  };
2342
2243
  const deserializeAws_queryDescribeDBInstancesCommand = async (output, context) => {
2343
2244
  if (output.statusCode >= 300) {
@@ -2358,7 +2259,6 @@ const deserializeAws_queryDescribeDBInstancesCommandError = async (output, conte
2358
2259
  ...output,
2359
2260
  body: await parseBody(output.body, context),
2360
2261
  };
2361
- let response;
2362
2262
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2363
2263
  switch (errorCode) {
2364
2264
  case "DBInstanceNotFoundFault":
@@ -2366,14 +2266,12 @@ const deserializeAws_queryDescribeDBInstancesCommandError = async (output, conte
2366
2266
  throw await deserializeAws_queryDBInstanceNotFoundFaultResponse(parsedOutput, context);
2367
2267
  default:
2368
2268
  const parsedBody = parsedOutput.body;
2369
- const $metadata = deserializeMetadata(output);
2370
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2371
- response = new NeptuneServiceException_1.NeptuneServiceException({
2372
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2373
- $fault: "client",
2374
- $metadata,
2269
+ (0, smithy_client_1.throwDefaultError)({
2270
+ output,
2271
+ parsedBody: parsedBody.Error,
2272
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2273
+ errorCode,
2375
2274
  });
2376
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2377
2275
  }
2378
2276
  };
2379
2277
  const deserializeAws_queryDescribeDBParameterGroupsCommand = async (output, context) => {
@@ -2395,7 +2293,6 @@ const deserializeAws_queryDescribeDBParameterGroupsCommandError = async (output,
2395
2293
  ...output,
2396
2294
  body: await parseBody(output.body, context),
2397
2295
  };
2398
- let response;
2399
2296
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2400
2297
  switch (errorCode) {
2401
2298
  case "DBParameterGroupNotFoundFault":
@@ -2403,14 +2300,12 @@ const deserializeAws_queryDescribeDBParameterGroupsCommandError = async (output,
2403
2300
  throw await deserializeAws_queryDBParameterGroupNotFoundFaultResponse(parsedOutput, context);
2404
2301
  default:
2405
2302
  const parsedBody = parsedOutput.body;
2406
- const $metadata = deserializeMetadata(output);
2407
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2408
- response = new NeptuneServiceException_1.NeptuneServiceException({
2409
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2410
- $fault: "client",
2411
- $metadata,
2303
+ (0, smithy_client_1.throwDefaultError)({
2304
+ output,
2305
+ parsedBody: parsedBody.Error,
2306
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2307
+ errorCode,
2412
2308
  });
2413
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2414
2309
  }
2415
2310
  };
2416
2311
  const deserializeAws_queryDescribeDBParametersCommand = async (output, context) => {
@@ -2432,7 +2327,6 @@ const deserializeAws_queryDescribeDBParametersCommandError = async (output, cont
2432
2327
  ...output,
2433
2328
  body: await parseBody(output.body, context),
2434
2329
  };
2435
- let response;
2436
2330
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2437
2331
  switch (errorCode) {
2438
2332
  case "DBParameterGroupNotFoundFault":
@@ -2440,14 +2334,12 @@ const deserializeAws_queryDescribeDBParametersCommandError = async (output, cont
2440
2334
  throw await deserializeAws_queryDBParameterGroupNotFoundFaultResponse(parsedOutput, context);
2441
2335
  default:
2442
2336
  const parsedBody = parsedOutput.body;
2443
- const $metadata = deserializeMetadata(output);
2444
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2445
- response = new NeptuneServiceException_1.NeptuneServiceException({
2446
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2447
- $fault: "client",
2448
- $metadata,
2337
+ (0, smithy_client_1.throwDefaultError)({
2338
+ output,
2339
+ parsedBody: parsedBody.Error,
2340
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2341
+ errorCode,
2449
2342
  });
2450
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2451
2343
  }
2452
2344
  };
2453
2345
  const deserializeAws_queryDescribeDBSubnetGroupsCommand = async (output, context) => {
@@ -2469,7 +2361,6 @@ const deserializeAws_queryDescribeDBSubnetGroupsCommandError = async (output, co
2469
2361
  ...output,
2470
2362
  body: await parseBody(output.body, context),
2471
2363
  };
2472
- let response;
2473
2364
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2474
2365
  switch (errorCode) {
2475
2366
  case "DBSubnetGroupNotFoundFault":
@@ -2477,14 +2368,12 @@ const deserializeAws_queryDescribeDBSubnetGroupsCommandError = async (output, co
2477
2368
  throw await deserializeAws_queryDBSubnetGroupNotFoundFaultResponse(parsedOutput, context);
2478
2369
  default:
2479
2370
  const parsedBody = parsedOutput.body;
2480
- const $metadata = deserializeMetadata(output);
2481
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2482
- response = new NeptuneServiceException_1.NeptuneServiceException({
2483
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2484
- $fault: "client",
2485
- $metadata,
2371
+ (0, smithy_client_1.throwDefaultError)({
2372
+ output,
2373
+ parsedBody: parsedBody.Error,
2374
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2375
+ errorCode,
2486
2376
  });
2487
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2488
2377
  }
2489
2378
  };
2490
2379
  const deserializeAws_queryDescribeEngineDefaultClusterParametersCommand = async (output, context) => {
@@ -2506,20 +2395,14 @@ const deserializeAws_queryDescribeEngineDefaultClusterParametersCommandError = a
2506
2395
  ...output,
2507
2396
  body: await parseBody(output.body, context),
2508
2397
  };
2509
- let response;
2510
2398
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2511
- switch (errorCode) {
2512
- default:
2513
- const parsedBody = parsedOutput.body;
2514
- const $metadata = deserializeMetadata(output);
2515
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2516
- response = new NeptuneServiceException_1.NeptuneServiceException({
2517
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2518
- $fault: "client",
2519
- $metadata,
2520
- });
2521
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2522
- }
2399
+ const parsedBody = parsedOutput.body;
2400
+ (0, smithy_client_1.throwDefaultError)({
2401
+ output,
2402
+ parsedBody: parsedBody.Error,
2403
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2404
+ errorCode,
2405
+ });
2523
2406
  };
2524
2407
  const deserializeAws_queryDescribeEngineDefaultParametersCommand = async (output, context) => {
2525
2408
  if (output.statusCode >= 300) {
@@ -2540,20 +2423,14 @@ const deserializeAws_queryDescribeEngineDefaultParametersCommandError = async (o
2540
2423
  ...output,
2541
2424
  body: await parseBody(output.body, context),
2542
2425
  };
2543
- let response;
2544
2426
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2545
- switch (errorCode) {
2546
- default:
2547
- const parsedBody = parsedOutput.body;
2548
- const $metadata = deserializeMetadata(output);
2549
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2550
- response = new NeptuneServiceException_1.NeptuneServiceException({
2551
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2552
- $fault: "client",
2553
- $metadata,
2554
- });
2555
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2556
- }
2427
+ const parsedBody = parsedOutput.body;
2428
+ (0, smithy_client_1.throwDefaultError)({
2429
+ output,
2430
+ parsedBody: parsedBody.Error,
2431
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2432
+ errorCode,
2433
+ });
2557
2434
  };
2558
2435
  const deserializeAws_queryDescribeEventCategoriesCommand = async (output, context) => {
2559
2436
  if (output.statusCode >= 300) {
@@ -2574,20 +2451,14 @@ const deserializeAws_queryDescribeEventCategoriesCommandError = async (output, c
2574
2451
  ...output,
2575
2452
  body: await parseBody(output.body, context),
2576
2453
  };
2577
- let response;
2578
2454
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2579
- switch (errorCode) {
2580
- default:
2581
- const parsedBody = parsedOutput.body;
2582
- const $metadata = deserializeMetadata(output);
2583
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2584
- response = new NeptuneServiceException_1.NeptuneServiceException({
2585
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2586
- $fault: "client",
2587
- $metadata,
2588
- });
2589
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2590
- }
2455
+ const parsedBody = parsedOutput.body;
2456
+ (0, smithy_client_1.throwDefaultError)({
2457
+ output,
2458
+ parsedBody: parsedBody.Error,
2459
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2460
+ errorCode,
2461
+ });
2591
2462
  };
2592
2463
  const deserializeAws_queryDescribeEventsCommand = async (output, context) => {
2593
2464
  if (output.statusCode >= 300) {
@@ -2608,20 +2479,14 @@ const deserializeAws_queryDescribeEventsCommandError = async (output, context) =
2608
2479
  ...output,
2609
2480
  body: await parseBody(output.body, context),
2610
2481
  };
2611
- let response;
2612
2482
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2613
- switch (errorCode) {
2614
- default:
2615
- const parsedBody = parsedOutput.body;
2616
- const $metadata = deserializeMetadata(output);
2617
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2618
- response = new NeptuneServiceException_1.NeptuneServiceException({
2619
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2620
- $fault: "client",
2621
- $metadata,
2622
- });
2623
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2624
- }
2483
+ const parsedBody = parsedOutput.body;
2484
+ (0, smithy_client_1.throwDefaultError)({
2485
+ output,
2486
+ parsedBody: parsedBody.Error,
2487
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2488
+ errorCode,
2489
+ });
2625
2490
  };
2626
2491
  const deserializeAws_queryDescribeEventSubscriptionsCommand = async (output, context) => {
2627
2492
  if (output.statusCode >= 300) {
@@ -2642,7 +2507,6 @@ const deserializeAws_queryDescribeEventSubscriptionsCommandError = async (output
2642
2507
  ...output,
2643
2508
  body: await parseBody(output.body, context),
2644
2509
  };
2645
- let response;
2646
2510
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2647
2511
  switch (errorCode) {
2648
2512
  case "SubscriptionNotFoundFault":
@@ -2650,14 +2514,12 @@ const deserializeAws_queryDescribeEventSubscriptionsCommandError = async (output
2650
2514
  throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
2651
2515
  default:
2652
2516
  const parsedBody = parsedOutput.body;
2653
- const $metadata = deserializeMetadata(output);
2654
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2655
- response = new NeptuneServiceException_1.NeptuneServiceException({
2656
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2657
- $fault: "client",
2658
- $metadata,
2517
+ (0, smithy_client_1.throwDefaultError)({
2518
+ output,
2519
+ parsedBody: parsedBody.Error,
2520
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2521
+ errorCode,
2659
2522
  });
2660
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2661
2523
  }
2662
2524
  };
2663
2525
  const deserializeAws_queryDescribeGlobalClustersCommand = async (output, context) => {
@@ -2679,7 +2541,6 @@ const deserializeAws_queryDescribeGlobalClustersCommandError = async (output, co
2679
2541
  ...output,
2680
2542
  body: await parseBody(output.body, context),
2681
2543
  };
2682
- let response;
2683
2544
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2684
2545
  switch (errorCode) {
2685
2546
  case "GlobalClusterNotFoundFault":
@@ -2687,14 +2548,12 @@ const deserializeAws_queryDescribeGlobalClustersCommandError = async (output, co
2687
2548
  throw await deserializeAws_queryGlobalClusterNotFoundFaultResponse(parsedOutput, context);
2688
2549
  default:
2689
2550
  const parsedBody = parsedOutput.body;
2690
- const $metadata = deserializeMetadata(output);
2691
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2692
- response = new NeptuneServiceException_1.NeptuneServiceException({
2693
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2694
- $fault: "client",
2695
- $metadata,
2551
+ (0, smithy_client_1.throwDefaultError)({
2552
+ output,
2553
+ parsedBody: parsedBody.Error,
2554
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2555
+ errorCode,
2696
2556
  });
2697
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2698
2557
  }
2699
2558
  };
2700
2559
  const deserializeAws_queryDescribeOrderableDBInstanceOptionsCommand = async (output, context) => {
@@ -2716,20 +2575,14 @@ const deserializeAws_queryDescribeOrderableDBInstanceOptionsCommandError = async
2716
2575
  ...output,
2717
2576
  body: await parseBody(output.body, context),
2718
2577
  };
2719
- let response;
2720
2578
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2721
- switch (errorCode) {
2722
- default:
2723
- const parsedBody = parsedOutput.body;
2724
- const $metadata = deserializeMetadata(output);
2725
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2726
- response = new NeptuneServiceException_1.NeptuneServiceException({
2727
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2728
- $fault: "client",
2729
- $metadata,
2730
- });
2731
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2732
- }
2579
+ const parsedBody = parsedOutput.body;
2580
+ (0, smithy_client_1.throwDefaultError)({
2581
+ output,
2582
+ parsedBody: parsedBody.Error,
2583
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2584
+ errorCode,
2585
+ });
2733
2586
  };
2734
2587
  const deserializeAws_queryDescribePendingMaintenanceActionsCommand = async (output, context) => {
2735
2588
  if (output.statusCode >= 300) {
@@ -2750,7 +2603,6 @@ const deserializeAws_queryDescribePendingMaintenanceActionsCommandError = async
2750
2603
  ...output,
2751
2604
  body: await parseBody(output.body, context),
2752
2605
  };
2753
- let response;
2754
2606
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2755
2607
  switch (errorCode) {
2756
2608
  case "ResourceNotFoundFault":
@@ -2758,14 +2610,12 @@ const deserializeAws_queryDescribePendingMaintenanceActionsCommandError = async
2758
2610
  throw await deserializeAws_queryResourceNotFoundFaultResponse(parsedOutput, context);
2759
2611
  default:
2760
2612
  const parsedBody = parsedOutput.body;
2761
- const $metadata = deserializeMetadata(output);
2762
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2763
- response = new NeptuneServiceException_1.NeptuneServiceException({
2764
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2765
- $fault: "client",
2766
- $metadata,
2613
+ (0, smithy_client_1.throwDefaultError)({
2614
+ output,
2615
+ parsedBody: parsedBody.Error,
2616
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2617
+ errorCode,
2767
2618
  });
2768
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2769
2619
  }
2770
2620
  };
2771
2621
  const deserializeAws_queryDescribeValidDBInstanceModificationsCommand = async (output, context) => {
@@ -2787,7 +2637,6 @@ const deserializeAws_queryDescribeValidDBInstanceModificationsCommandError = asy
2787
2637
  ...output,
2788
2638
  body: await parseBody(output.body, context),
2789
2639
  };
2790
- let response;
2791
2640
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2792
2641
  switch (errorCode) {
2793
2642
  case "DBInstanceNotFoundFault":
@@ -2798,14 +2647,12 @@ const deserializeAws_queryDescribeValidDBInstanceModificationsCommandError = asy
2798
2647
  throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
2799
2648
  default:
2800
2649
  const parsedBody = parsedOutput.body;
2801
- const $metadata = deserializeMetadata(output);
2802
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2803
- response = new NeptuneServiceException_1.NeptuneServiceException({
2804
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2805
- $fault: "client",
2806
- $metadata,
2650
+ (0, smithy_client_1.throwDefaultError)({
2651
+ output,
2652
+ parsedBody: parsedBody.Error,
2653
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2654
+ errorCode,
2807
2655
  });
2808
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2809
2656
  }
2810
2657
  };
2811
2658
  const deserializeAws_queryFailoverDBClusterCommand = async (output, context) => {
@@ -2827,7 +2674,6 @@ const deserializeAws_queryFailoverDBClusterCommandError = async (output, context
2827
2674
  ...output,
2828
2675
  body: await parseBody(output.body, context),
2829
2676
  };
2830
- let response;
2831
2677
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2832
2678
  switch (errorCode) {
2833
2679
  case "DBClusterNotFoundFault":
@@ -2841,14 +2687,12 @@ const deserializeAws_queryFailoverDBClusterCommandError = async (output, context
2841
2687
  throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
2842
2688
  default:
2843
2689
  const parsedBody = parsedOutput.body;
2844
- const $metadata = deserializeMetadata(output);
2845
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2846
- response = new NeptuneServiceException_1.NeptuneServiceException({
2847
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2848
- $fault: "client",
2849
- $metadata,
2690
+ (0, smithy_client_1.throwDefaultError)({
2691
+ output,
2692
+ parsedBody: parsedBody.Error,
2693
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2694
+ errorCode,
2850
2695
  });
2851
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2852
2696
  }
2853
2697
  };
2854
2698
  const deserializeAws_queryFailoverGlobalClusterCommand = async (output, context) => {
@@ -2870,7 +2714,6 @@ const deserializeAws_queryFailoverGlobalClusterCommandError = async (output, con
2870
2714
  ...output,
2871
2715
  body: await parseBody(output.body, context),
2872
2716
  };
2873
- let response;
2874
2717
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2875
2718
  switch (errorCode) {
2876
2719
  case "DBClusterNotFoundFault":
@@ -2887,14 +2730,12 @@ const deserializeAws_queryFailoverGlobalClusterCommandError = async (output, con
2887
2730
  throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
2888
2731
  default:
2889
2732
  const parsedBody = parsedOutput.body;
2890
- const $metadata = deserializeMetadata(output);
2891
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2892
- response = new NeptuneServiceException_1.NeptuneServiceException({
2893
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2894
- $fault: "client",
2895
- $metadata,
2733
+ (0, smithy_client_1.throwDefaultError)({
2734
+ output,
2735
+ parsedBody: parsedBody.Error,
2736
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2737
+ errorCode,
2896
2738
  });
2897
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2898
2739
  }
2899
2740
  };
2900
2741
  const deserializeAws_queryListTagsForResourceCommand = async (output, context) => {
@@ -2916,7 +2757,6 @@ const deserializeAws_queryListTagsForResourceCommandError = async (output, conte
2916
2757
  ...output,
2917
2758
  body: await parseBody(output.body, context),
2918
2759
  };
2919
- let response;
2920
2760
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2921
2761
  switch (errorCode) {
2922
2762
  case "DBClusterNotFoundFault":
@@ -2930,14 +2770,12 @@ const deserializeAws_queryListTagsForResourceCommandError = async (output, conte
2930
2770
  throw await deserializeAws_queryDBSnapshotNotFoundFaultResponse(parsedOutput, context);
2931
2771
  default:
2932
2772
  const parsedBody = parsedOutput.body;
2933
- const $metadata = deserializeMetadata(output);
2934
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2935
- response = new NeptuneServiceException_1.NeptuneServiceException({
2936
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2937
- $fault: "client",
2938
- $metadata,
2773
+ (0, smithy_client_1.throwDefaultError)({
2774
+ output,
2775
+ parsedBody: parsedBody.Error,
2776
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2777
+ errorCode,
2939
2778
  });
2940
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
2941
2779
  }
2942
2780
  };
2943
2781
  const deserializeAws_queryModifyDBClusterCommand = async (output, context) => {
@@ -2959,7 +2797,6 @@ const deserializeAws_queryModifyDBClusterCommandError = async (output, context)
2959
2797
  ...output,
2960
2798
  body: await parseBody(output.body, context),
2961
2799
  };
2962
- let response;
2963
2800
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2964
2801
  switch (errorCode) {
2965
2802
  case "DBClusterAlreadyExistsFault":
@@ -2997,14 +2834,12 @@ const deserializeAws_queryModifyDBClusterCommandError = async (output, context)
2997
2834
  throw await deserializeAws_queryStorageQuotaExceededFaultResponse(parsedOutput, context);
2998
2835
  default:
2999
2836
  const parsedBody = parsedOutput.body;
3000
- const $metadata = deserializeMetadata(output);
3001
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3002
- response = new NeptuneServiceException_1.NeptuneServiceException({
3003
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3004
- $fault: "client",
3005
- $metadata,
2837
+ (0, smithy_client_1.throwDefaultError)({
2838
+ output,
2839
+ parsedBody: parsedBody.Error,
2840
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2841
+ errorCode,
3006
2842
  });
3007
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3008
2843
  }
3009
2844
  };
3010
2845
  const deserializeAws_queryModifyDBClusterEndpointCommand = async (output, context) => {
@@ -3026,7 +2861,6 @@ const deserializeAws_queryModifyDBClusterEndpointCommandError = async (output, c
3026
2861
  ...output,
3027
2862
  body: await parseBody(output.body, context),
3028
2863
  };
3029
- let response;
3030
2864
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3031
2865
  switch (errorCode) {
3032
2866
  case "DBClusterEndpointNotFoundFault":
@@ -3046,14 +2880,12 @@ const deserializeAws_queryModifyDBClusterEndpointCommandError = async (output, c
3046
2880
  throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
3047
2881
  default:
3048
2882
  const parsedBody = parsedOutput.body;
3049
- const $metadata = deserializeMetadata(output);
3050
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3051
- response = new NeptuneServiceException_1.NeptuneServiceException({
3052
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3053
- $fault: "client",
3054
- $metadata,
2883
+ (0, smithy_client_1.throwDefaultError)({
2884
+ output,
2885
+ parsedBody: parsedBody.Error,
2886
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2887
+ errorCode,
3055
2888
  });
3056
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3057
2889
  }
3058
2890
  };
3059
2891
  const deserializeAws_queryModifyDBClusterParameterGroupCommand = async (output, context) => {
@@ -3075,7 +2907,6 @@ const deserializeAws_queryModifyDBClusterParameterGroupCommandError = async (out
3075
2907
  ...output,
3076
2908
  body: await parseBody(output.body, context),
3077
2909
  };
3078
- let response;
3079
2910
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3080
2911
  switch (errorCode) {
3081
2912
  case "DBParameterGroupNotFoundFault":
@@ -3086,14 +2917,12 @@ const deserializeAws_queryModifyDBClusterParameterGroupCommandError = async (out
3086
2917
  throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
3087
2918
  default:
3088
2919
  const parsedBody = parsedOutput.body;
3089
- const $metadata = deserializeMetadata(output);
3090
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3091
- response = new NeptuneServiceException_1.NeptuneServiceException({
3092
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3093
- $fault: "client",
3094
- $metadata,
2920
+ (0, smithy_client_1.throwDefaultError)({
2921
+ output,
2922
+ parsedBody: parsedBody.Error,
2923
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2924
+ errorCode,
3095
2925
  });
3096
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3097
2926
  }
3098
2927
  };
3099
2928
  const deserializeAws_queryModifyDBClusterSnapshotAttributeCommand = async (output, context) => {
@@ -3115,7 +2944,6 @@ const deserializeAws_queryModifyDBClusterSnapshotAttributeCommandError = async (
3115
2944
  ...output,
3116
2945
  body: await parseBody(output.body, context),
3117
2946
  };
3118
- let response;
3119
2947
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3120
2948
  switch (errorCode) {
3121
2949
  case "DBClusterSnapshotNotFoundFault":
@@ -3129,14 +2957,12 @@ const deserializeAws_queryModifyDBClusterSnapshotAttributeCommandError = async (
3129
2957
  throw await deserializeAws_querySharedSnapshotQuotaExceededFaultResponse(parsedOutput, context);
3130
2958
  default:
3131
2959
  const parsedBody = parsedOutput.body;
3132
- const $metadata = deserializeMetadata(output);
3133
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3134
- response = new NeptuneServiceException_1.NeptuneServiceException({
3135
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3136
- $fault: "client",
3137
- $metadata,
2960
+ (0, smithy_client_1.throwDefaultError)({
2961
+ output,
2962
+ parsedBody: parsedBody.Error,
2963
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
2964
+ errorCode,
3138
2965
  });
3139
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3140
2966
  }
3141
2967
  };
3142
2968
  const deserializeAws_queryModifyDBInstanceCommand = async (output, context) => {
@@ -3158,7 +2984,6 @@ const deserializeAws_queryModifyDBInstanceCommandError = async (output, context)
3158
2984
  ...output,
3159
2985
  body: await parseBody(output.body, context),
3160
2986
  };
3161
- let response;
3162
2987
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3163
2988
  switch (errorCode) {
3164
2989
  case "AuthorizationNotFoundFault":
@@ -3211,14 +3036,12 @@ const deserializeAws_queryModifyDBInstanceCommandError = async (output, context)
3211
3036
  throw await deserializeAws_queryStorageTypeNotSupportedFaultResponse(parsedOutput, context);
3212
3037
  default:
3213
3038
  const parsedBody = parsedOutput.body;
3214
- const $metadata = deserializeMetadata(output);
3215
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3216
- response = new NeptuneServiceException_1.NeptuneServiceException({
3217
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3218
- $fault: "client",
3219
- $metadata,
3039
+ (0, smithy_client_1.throwDefaultError)({
3040
+ output,
3041
+ parsedBody: parsedBody.Error,
3042
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3043
+ errorCode,
3220
3044
  });
3221
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3222
3045
  }
3223
3046
  };
3224
3047
  const deserializeAws_queryModifyDBParameterGroupCommand = async (output, context) => {
@@ -3240,7 +3063,6 @@ const deserializeAws_queryModifyDBParameterGroupCommandError = async (output, co
3240
3063
  ...output,
3241
3064
  body: await parseBody(output.body, context),
3242
3065
  };
3243
- let response;
3244
3066
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3245
3067
  switch (errorCode) {
3246
3068
  case "DBParameterGroupNotFoundFault":
@@ -3251,14 +3073,12 @@ const deserializeAws_queryModifyDBParameterGroupCommandError = async (output, co
3251
3073
  throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
3252
3074
  default:
3253
3075
  const parsedBody = parsedOutput.body;
3254
- const $metadata = deserializeMetadata(output);
3255
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3256
- response = new NeptuneServiceException_1.NeptuneServiceException({
3257
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3258
- $fault: "client",
3259
- $metadata,
3076
+ (0, smithy_client_1.throwDefaultError)({
3077
+ output,
3078
+ parsedBody: parsedBody.Error,
3079
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3080
+ errorCode,
3260
3081
  });
3261
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3262
3082
  }
3263
3083
  };
3264
3084
  const deserializeAws_queryModifyDBSubnetGroupCommand = async (output, context) => {
@@ -3280,7 +3100,6 @@ const deserializeAws_queryModifyDBSubnetGroupCommandError = async (output, conte
3280
3100
  ...output,
3281
3101
  body: await parseBody(output.body, context),
3282
3102
  };
3283
- let response;
3284
3103
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3285
3104
  switch (errorCode) {
3286
3105
  case "DBSubnetGroupDoesNotCoverEnoughAZs":
@@ -3300,14 +3119,12 @@ const deserializeAws_queryModifyDBSubnetGroupCommandError = async (output, conte
3300
3119
  throw await deserializeAws_querySubnetAlreadyInUseResponse(parsedOutput, context);
3301
3120
  default:
3302
3121
  const parsedBody = parsedOutput.body;
3303
- const $metadata = deserializeMetadata(output);
3304
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3305
- response = new NeptuneServiceException_1.NeptuneServiceException({
3306
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3307
- $fault: "client",
3308
- $metadata,
3122
+ (0, smithy_client_1.throwDefaultError)({
3123
+ output,
3124
+ parsedBody: parsedBody.Error,
3125
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3126
+ errorCode,
3309
3127
  });
3310
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3311
3128
  }
3312
3129
  };
3313
3130
  const deserializeAws_queryModifyEventSubscriptionCommand = async (output, context) => {
@@ -3329,7 +3146,6 @@ const deserializeAws_queryModifyEventSubscriptionCommandError = async (output, c
3329
3146
  ...output,
3330
3147
  body: await parseBody(output.body, context),
3331
3148
  };
3332
- let response;
3333
3149
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3334
3150
  switch (errorCode) {
3335
3151
  case "EventSubscriptionQuotaExceededFault":
@@ -3352,14 +3168,12 @@ const deserializeAws_queryModifyEventSubscriptionCommandError = async (output, c
3352
3168
  throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
3353
3169
  default:
3354
3170
  const parsedBody = parsedOutput.body;
3355
- const $metadata = deserializeMetadata(output);
3356
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3357
- response = new NeptuneServiceException_1.NeptuneServiceException({
3358
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3359
- $fault: "client",
3360
- $metadata,
3171
+ (0, smithy_client_1.throwDefaultError)({
3172
+ output,
3173
+ parsedBody: parsedBody.Error,
3174
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3175
+ errorCode,
3361
3176
  });
3362
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3363
3177
  }
3364
3178
  };
3365
3179
  const deserializeAws_queryModifyGlobalClusterCommand = async (output, context) => {
@@ -3381,7 +3195,6 @@ const deserializeAws_queryModifyGlobalClusterCommandError = async (output, conte
3381
3195
  ...output,
3382
3196
  body: await parseBody(output.body, context),
3383
3197
  };
3384
- let response;
3385
3198
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3386
3199
  switch (errorCode) {
3387
3200
  case "GlobalClusterNotFoundFault":
@@ -3392,14 +3205,12 @@ const deserializeAws_queryModifyGlobalClusterCommandError = async (output, conte
3392
3205
  throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
3393
3206
  default:
3394
3207
  const parsedBody = parsedOutput.body;
3395
- const $metadata = deserializeMetadata(output);
3396
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3397
- response = new NeptuneServiceException_1.NeptuneServiceException({
3398
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3399
- $fault: "client",
3400
- $metadata,
3208
+ (0, smithy_client_1.throwDefaultError)({
3209
+ output,
3210
+ parsedBody: parsedBody.Error,
3211
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3212
+ errorCode,
3401
3213
  });
3402
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3403
3214
  }
3404
3215
  };
3405
3216
  const deserializeAws_queryPromoteReadReplicaDBClusterCommand = async (output, context) => {
@@ -3421,7 +3232,6 @@ const deserializeAws_queryPromoteReadReplicaDBClusterCommandError = async (outpu
3421
3232
  ...output,
3422
3233
  body: await parseBody(output.body, context),
3423
3234
  };
3424
- let response;
3425
3235
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3426
3236
  switch (errorCode) {
3427
3237
  case "DBClusterNotFoundFault":
@@ -3432,14 +3242,12 @@ const deserializeAws_queryPromoteReadReplicaDBClusterCommandError = async (outpu
3432
3242
  throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
3433
3243
  default:
3434
3244
  const parsedBody = parsedOutput.body;
3435
- const $metadata = deserializeMetadata(output);
3436
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3437
- response = new NeptuneServiceException_1.NeptuneServiceException({
3438
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3439
- $fault: "client",
3440
- $metadata,
3245
+ (0, smithy_client_1.throwDefaultError)({
3246
+ output,
3247
+ parsedBody: parsedBody.Error,
3248
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3249
+ errorCode,
3441
3250
  });
3442
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3443
3251
  }
3444
3252
  };
3445
3253
  const deserializeAws_queryRebootDBInstanceCommand = async (output, context) => {
@@ -3461,7 +3269,6 @@ const deserializeAws_queryRebootDBInstanceCommandError = async (output, context)
3461
3269
  ...output,
3462
3270
  body: await parseBody(output.body, context),
3463
3271
  };
3464
- let response;
3465
3272
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3466
3273
  switch (errorCode) {
3467
3274
  case "DBInstanceNotFoundFault":
@@ -3472,14 +3279,12 @@ const deserializeAws_queryRebootDBInstanceCommandError = async (output, context)
3472
3279
  throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
3473
3280
  default:
3474
3281
  const parsedBody = parsedOutput.body;
3475
- const $metadata = deserializeMetadata(output);
3476
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3477
- response = new NeptuneServiceException_1.NeptuneServiceException({
3478
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3479
- $fault: "client",
3480
- $metadata,
3282
+ (0, smithy_client_1.throwDefaultError)({
3283
+ output,
3284
+ parsedBody: parsedBody.Error,
3285
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3286
+ errorCode,
3481
3287
  });
3482
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3483
3288
  }
3484
3289
  };
3485
3290
  const deserializeAws_queryRemoveFromGlobalClusterCommand = async (output, context) => {
@@ -3501,7 +3306,6 @@ const deserializeAws_queryRemoveFromGlobalClusterCommandError = async (output, c
3501
3306
  ...output,
3502
3307
  body: await parseBody(output.body, context),
3503
3308
  };
3504
- let response;
3505
3309
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3506
3310
  switch (errorCode) {
3507
3311
  case "DBClusterNotFoundFault":
@@ -3515,14 +3319,12 @@ const deserializeAws_queryRemoveFromGlobalClusterCommandError = async (output, c
3515
3319
  throw await deserializeAws_queryInvalidGlobalClusterStateFaultResponse(parsedOutput, context);
3516
3320
  default:
3517
3321
  const parsedBody = parsedOutput.body;
3518
- const $metadata = deserializeMetadata(output);
3519
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3520
- response = new NeptuneServiceException_1.NeptuneServiceException({
3521
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3522
- $fault: "client",
3523
- $metadata,
3322
+ (0, smithy_client_1.throwDefaultError)({
3323
+ output,
3324
+ parsedBody: parsedBody.Error,
3325
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3326
+ errorCode,
3524
3327
  });
3525
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3526
3328
  }
3527
3329
  };
3528
3330
  const deserializeAws_queryRemoveRoleFromDBClusterCommand = async (output, context) => {
@@ -3541,7 +3343,6 @@ const deserializeAws_queryRemoveRoleFromDBClusterCommandError = async (output, c
3541
3343
  ...output,
3542
3344
  body: await parseBody(output.body, context),
3543
3345
  };
3544
- let response;
3545
3346
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3546
3347
  switch (errorCode) {
3547
3348
  case "DBClusterNotFoundFault":
@@ -3555,14 +3356,12 @@ const deserializeAws_queryRemoveRoleFromDBClusterCommandError = async (output, c
3555
3356
  throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
3556
3357
  default:
3557
3358
  const parsedBody = parsedOutput.body;
3558
- const $metadata = deserializeMetadata(output);
3559
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3560
- response = new NeptuneServiceException_1.NeptuneServiceException({
3561
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3562
- $fault: "client",
3563
- $metadata,
3359
+ (0, smithy_client_1.throwDefaultError)({
3360
+ output,
3361
+ parsedBody: parsedBody.Error,
3362
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3363
+ errorCode,
3564
3364
  });
3565
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3566
3365
  }
3567
3366
  };
3568
3367
  const deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommand = async (output, context) => {
@@ -3584,7 +3383,6 @@ const deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommandError = a
3584
3383
  ...output,
3585
3384
  body: await parseBody(output.body, context),
3586
3385
  };
3587
- let response;
3588
3386
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3589
3387
  switch (errorCode) {
3590
3388
  case "SourceNotFoundFault":
@@ -3595,14 +3393,12 @@ const deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommandError = a
3595
3393
  throw await deserializeAws_querySubscriptionNotFoundFaultResponse(parsedOutput, context);
3596
3394
  default:
3597
3395
  const parsedBody = parsedOutput.body;
3598
- const $metadata = deserializeMetadata(output);
3599
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3600
- response = new NeptuneServiceException_1.NeptuneServiceException({
3601
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3602
- $fault: "client",
3603
- $metadata,
3396
+ (0, smithy_client_1.throwDefaultError)({
3397
+ output,
3398
+ parsedBody: parsedBody.Error,
3399
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3400
+ errorCode,
3604
3401
  });
3605
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3606
3402
  }
3607
3403
  };
3608
3404
  const deserializeAws_queryRemoveTagsFromResourceCommand = async (output, context) => {
@@ -3621,7 +3417,6 @@ const deserializeAws_queryRemoveTagsFromResourceCommandError = async (output, co
3621
3417
  ...output,
3622
3418
  body: await parseBody(output.body, context),
3623
3419
  };
3624
- let response;
3625
3420
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3626
3421
  switch (errorCode) {
3627
3422
  case "DBClusterNotFoundFault":
@@ -3635,14 +3430,12 @@ const deserializeAws_queryRemoveTagsFromResourceCommandError = async (output, co
3635
3430
  throw await deserializeAws_queryDBSnapshotNotFoundFaultResponse(parsedOutput, context);
3636
3431
  default:
3637
3432
  const parsedBody = parsedOutput.body;
3638
- const $metadata = deserializeMetadata(output);
3639
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3640
- response = new NeptuneServiceException_1.NeptuneServiceException({
3641
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3642
- $fault: "client",
3643
- $metadata,
3433
+ (0, smithy_client_1.throwDefaultError)({
3434
+ output,
3435
+ parsedBody: parsedBody.Error,
3436
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3437
+ errorCode,
3644
3438
  });
3645
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3646
3439
  }
3647
3440
  };
3648
3441
  const deserializeAws_queryResetDBClusterParameterGroupCommand = async (output, context) => {
@@ -3664,7 +3457,6 @@ const deserializeAws_queryResetDBClusterParameterGroupCommandError = async (outp
3664
3457
  ...output,
3665
3458
  body: await parseBody(output.body, context),
3666
3459
  };
3667
- let response;
3668
3460
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3669
3461
  switch (errorCode) {
3670
3462
  case "DBParameterGroupNotFoundFault":
@@ -3675,14 +3467,12 @@ const deserializeAws_queryResetDBClusterParameterGroupCommandError = async (outp
3675
3467
  throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
3676
3468
  default:
3677
3469
  const parsedBody = parsedOutput.body;
3678
- const $metadata = deserializeMetadata(output);
3679
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3680
- response = new NeptuneServiceException_1.NeptuneServiceException({
3681
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3682
- $fault: "client",
3683
- $metadata,
3470
+ (0, smithy_client_1.throwDefaultError)({
3471
+ output,
3472
+ parsedBody: parsedBody.Error,
3473
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3474
+ errorCode,
3684
3475
  });
3685
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3686
3476
  }
3687
3477
  };
3688
3478
  const deserializeAws_queryResetDBParameterGroupCommand = async (output, context) => {
@@ -3704,7 +3494,6 @@ const deserializeAws_queryResetDBParameterGroupCommandError = async (output, con
3704
3494
  ...output,
3705
3495
  body: await parseBody(output.body, context),
3706
3496
  };
3707
- let response;
3708
3497
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3709
3498
  switch (errorCode) {
3710
3499
  case "DBParameterGroupNotFoundFault":
@@ -3715,14 +3504,12 @@ const deserializeAws_queryResetDBParameterGroupCommandError = async (output, con
3715
3504
  throw await deserializeAws_queryInvalidDBParameterGroupStateFaultResponse(parsedOutput, context);
3716
3505
  default:
3717
3506
  const parsedBody = parsedOutput.body;
3718
- const $metadata = deserializeMetadata(output);
3719
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3720
- response = new NeptuneServiceException_1.NeptuneServiceException({
3721
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3722
- $fault: "client",
3723
- $metadata,
3507
+ (0, smithy_client_1.throwDefaultError)({
3508
+ output,
3509
+ parsedBody: parsedBody.Error,
3510
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3511
+ errorCode,
3724
3512
  });
3725
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3726
3513
  }
3727
3514
  };
3728
3515
  const deserializeAws_queryRestoreDBClusterFromSnapshotCommand = async (output, context) => {
@@ -3744,7 +3531,6 @@ const deserializeAws_queryRestoreDBClusterFromSnapshotCommandError = async (outp
3744
3531
  ...output,
3745
3532
  body: await parseBody(output.body, context),
3746
3533
  };
3747
- let response;
3748
3534
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3749
3535
  switch (errorCode) {
3750
3536
  case "DBClusterAlreadyExistsFault":
@@ -3797,14 +3583,12 @@ const deserializeAws_queryRestoreDBClusterFromSnapshotCommandError = async (outp
3797
3583
  throw await deserializeAws_queryStorageQuotaExceededFaultResponse(parsedOutput, context);
3798
3584
  default:
3799
3585
  const parsedBody = parsedOutput.body;
3800
- const $metadata = deserializeMetadata(output);
3801
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3802
- response = new NeptuneServiceException_1.NeptuneServiceException({
3803
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3804
- $fault: "client",
3805
- $metadata,
3586
+ (0, smithy_client_1.throwDefaultError)({
3587
+ output,
3588
+ parsedBody: parsedBody.Error,
3589
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3590
+ errorCode,
3806
3591
  });
3807
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3808
3592
  }
3809
3593
  };
3810
3594
  const deserializeAws_queryRestoreDBClusterToPointInTimeCommand = async (output, context) => {
@@ -3826,7 +3610,6 @@ const deserializeAws_queryRestoreDBClusterToPointInTimeCommandError = async (out
3826
3610
  ...output,
3827
3611
  body: await parseBody(output.body, context),
3828
3612
  };
3829
- let response;
3830
3613
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3831
3614
  switch (errorCode) {
3832
3615
  case "DBClusterAlreadyExistsFault":
@@ -3882,14 +3665,12 @@ const deserializeAws_queryRestoreDBClusterToPointInTimeCommandError = async (out
3882
3665
  throw await deserializeAws_queryStorageQuotaExceededFaultResponse(parsedOutput, context);
3883
3666
  default:
3884
3667
  const parsedBody = parsedOutput.body;
3885
- const $metadata = deserializeMetadata(output);
3886
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3887
- response = new NeptuneServiceException_1.NeptuneServiceException({
3888
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3889
- $fault: "client",
3890
- $metadata,
3668
+ (0, smithy_client_1.throwDefaultError)({
3669
+ output,
3670
+ parsedBody: parsedBody.Error,
3671
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3672
+ errorCode,
3891
3673
  });
3892
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3893
3674
  }
3894
3675
  };
3895
3676
  const deserializeAws_queryStartDBClusterCommand = async (output, context) => {
@@ -3911,7 +3692,6 @@ const deserializeAws_queryStartDBClusterCommandError = async (output, context) =
3911
3692
  ...output,
3912
3693
  body: await parseBody(output.body, context),
3913
3694
  };
3914
- let response;
3915
3695
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3916
3696
  switch (errorCode) {
3917
3697
  case "DBClusterNotFoundFault":
@@ -3925,14 +3705,12 @@ const deserializeAws_queryStartDBClusterCommandError = async (output, context) =
3925
3705
  throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
3926
3706
  default:
3927
3707
  const parsedBody = parsedOutput.body;
3928
- const $metadata = deserializeMetadata(output);
3929
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3930
- response = new NeptuneServiceException_1.NeptuneServiceException({
3931
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3932
- $fault: "client",
3933
- $metadata,
3708
+ (0, smithy_client_1.throwDefaultError)({
3709
+ output,
3710
+ parsedBody: parsedBody.Error,
3711
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3712
+ errorCode,
3934
3713
  });
3935
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3936
3714
  }
3937
3715
  };
3938
3716
  const deserializeAws_queryStopDBClusterCommand = async (output, context) => {
@@ -3954,7 +3732,6 @@ const deserializeAws_queryStopDBClusterCommandError = async (output, context) =>
3954
3732
  ...output,
3955
3733
  body: await parseBody(output.body, context),
3956
3734
  };
3957
- let response;
3958
3735
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3959
3736
  switch (errorCode) {
3960
3737
  case "DBClusterNotFoundFault":
@@ -3968,14 +3745,12 @@ const deserializeAws_queryStopDBClusterCommandError = async (output, context) =>
3968
3745
  throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
3969
3746
  default:
3970
3747
  const parsedBody = parsedOutput.body;
3971
- const $metadata = deserializeMetadata(output);
3972
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3973
- response = new NeptuneServiceException_1.NeptuneServiceException({
3974
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3975
- $fault: "client",
3976
- $metadata,
3748
+ (0, smithy_client_1.throwDefaultError)({
3749
+ output,
3750
+ parsedBody: parsedBody.Error,
3751
+ exceptionCtor: NeptuneServiceException_1.NeptuneServiceException,
3752
+ errorCode,
3977
3753
  });
3978
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
3979
3754
  }
3980
3755
  };
3981
3756
  const deserializeAws_queryAuthorizationNotFoundFaultResponse = async (parsedOutput, context) => {
@@ -4583,33 +4358,33 @@ const deserializeAws_querySubscriptionNotFoundFaultResponse = async (parsedOutpu
4583
4358
  };
4584
4359
  const serializeAws_queryAddRoleToDBClusterMessage = (input, context) => {
4585
4360
  const entries = {};
4586
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4361
+ if (input.DBClusterIdentifier != null) {
4587
4362
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4588
4363
  }
4589
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
4364
+ if (input.RoleArn != null) {
4590
4365
  entries["RoleArn"] = input.RoleArn;
4591
4366
  }
4592
- if (input.FeatureName !== undefined && input.FeatureName !== null) {
4367
+ if (input.FeatureName != null) {
4593
4368
  entries["FeatureName"] = input.FeatureName;
4594
4369
  }
4595
4370
  return entries;
4596
4371
  };
4597
4372
  const serializeAws_queryAddSourceIdentifierToSubscriptionMessage = (input, context) => {
4598
4373
  const entries = {};
4599
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
4374
+ if (input.SubscriptionName != null) {
4600
4375
  entries["SubscriptionName"] = input.SubscriptionName;
4601
4376
  }
4602
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
4377
+ if (input.SourceIdentifier != null) {
4603
4378
  entries["SourceIdentifier"] = input.SourceIdentifier;
4604
4379
  }
4605
4380
  return entries;
4606
4381
  };
4607
4382
  const serializeAws_queryAddTagsToResourceMessage = (input, context) => {
4608
4383
  const entries = {};
4609
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
4384
+ if (input.ResourceName != null) {
4610
4385
  entries["ResourceName"] = input.ResourceName;
4611
4386
  }
4612
- if (input.Tags !== undefined && input.Tags !== null) {
4387
+ if (input.Tags != null) {
4613
4388
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
4614
4389
  Object.entries(memberEntries).forEach(([key, value]) => {
4615
4390
  const loc = `Tags.${key}`;
@@ -4620,13 +4395,13 @@ const serializeAws_queryAddTagsToResourceMessage = (input, context) => {
4620
4395
  };
4621
4396
  const serializeAws_queryApplyPendingMaintenanceActionMessage = (input, context) => {
4622
4397
  const entries = {};
4623
- if (input.ResourceIdentifier !== undefined && input.ResourceIdentifier !== null) {
4398
+ if (input.ResourceIdentifier != null) {
4624
4399
  entries["ResourceIdentifier"] = input.ResourceIdentifier;
4625
4400
  }
4626
- if (input.ApplyAction !== undefined && input.ApplyAction !== null) {
4401
+ if (input.ApplyAction != null) {
4627
4402
  entries["ApplyAction"] = input.ApplyAction;
4628
4403
  }
4629
- if (input.OptInType !== undefined && input.OptInType !== null) {
4404
+ if (input.OptInType != null) {
4630
4405
  entries["OptInType"] = input.OptInType;
4631
4406
  }
4632
4407
  return entries;
@@ -4657,14 +4432,14 @@ const serializeAws_queryAvailabilityZones = (input, context) => {
4657
4432
  };
4658
4433
  const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) => {
4659
4434
  const entries = {};
4660
- if (input.EnableLogTypes !== undefined && input.EnableLogTypes !== null) {
4435
+ if (input.EnableLogTypes != null) {
4661
4436
  const memberEntries = serializeAws_queryLogTypeList(input.EnableLogTypes, context);
4662
4437
  Object.entries(memberEntries).forEach(([key, value]) => {
4663
4438
  const loc = `EnableLogTypes.${key}`;
4664
4439
  entries[loc] = value;
4665
4440
  });
4666
4441
  }
4667
- if (input.DisableLogTypes !== undefined && input.DisableLogTypes !== null) {
4442
+ if (input.DisableLogTypes != null) {
4668
4443
  const memberEntries = serializeAws_queryLogTypeList(input.DisableLogTypes, context);
4669
4444
  Object.entries(memberEntries).forEach(([key, value]) => {
4670
4445
  const loc = `DisableLogTypes.${key}`;
@@ -4675,19 +4450,16 @@ const serializeAws_queryCloudwatchLogsExportConfiguration = (input, context) =>
4675
4450
  };
4676
4451
  const serializeAws_queryCopyDBClusterParameterGroupMessage = (input, context) => {
4677
4452
  const entries = {};
4678
- if (input.SourceDBClusterParameterGroupIdentifier !== undefined &&
4679
- input.SourceDBClusterParameterGroupIdentifier !== null) {
4453
+ if (input.SourceDBClusterParameterGroupIdentifier != null) {
4680
4454
  entries["SourceDBClusterParameterGroupIdentifier"] = input.SourceDBClusterParameterGroupIdentifier;
4681
4455
  }
4682
- if (input.TargetDBClusterParameterGroupIdentifier !== undefined &&
4683
- input.TargetDBClusterParameterGroupIdentifier !== null) {
4456
+ if (input.TargetDBClusterParameterGroupIdentifier != null) {
4684
4457
  entries["TargetDBClusterParameterGroupIdentifier"] = input.TargetDBClusterParameterGroupIdentifier;
4685
4458
  }
4686
- if (input.TargetDBClusterParameterGroupDescription !== undefined &&
4687
- input.TargetDBClusterParameterGroupDescription !== null) {
4459
+ if (input.TargetDBClusterParameterGroupDescription != null) {
4688
4460
  entries["TargetDBClusterParameterGroupDescription"] = input.TargetDBClusterParameterGroupDescription;
4689
4461
  }
4690
- if (input.Tags !== undefined && input.Tags !== null) {
4462
+ if (input.Tags != null) {
4691
4463
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
4692
4464
  Object.entries(memberEntries).forEach(([key, value]) => {
4693
4465
  const loc = `Tags.${key}`;
@@ -4698,22 +4470,22 @@ const serializeAws_queryCopyDBClusterParameterGroupMessage = (input, context) =>
4698
4470
  };
4699
4471
  const serializeAws_queryCopyDBClusterSnapshotMessage = (input, context) => {
4700
4472
  const entries = {};
4701
- if (input.SourceDBClusterSnapshotIdentifier !== undefined && input.SourceDBClusterSnapshotIdentifier !== null) {
4473
+ if (input.SourceDBClusterSnapshotIdentifier != null) {
4702
4474
  entries["SourceDBClusterSnapshotIdentifier"] = input.SourceDBClusterSnapshotIdentifier;
4703
4475
  }
4704
- if (input.TargetDBClusterSnapshotIdentifier !== undefined && input.TargetDBClusterSnapshotIdentifier !== null) {
4476
+ if (input.TargetDBClusterSnapshotIdentifier != null) {
4705
4477
  entries["TargetDBClusterSnapshotIdentifier"] = input.TargetDBClusterSnapshotIdentifier;
4706
4478
  }
4707
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
4479
+ if (input.KmsKeyId != null) {
4708
4480
  entries["KmsKeyId"] = input.KmsKeyId;
4709
4481
  }
4710
- if (input.PreSignedUrl !== undefined && input.PreSignedUrl !== null) {
4482
+ if (input.PreSignedUrl != null) {
4711
4483
  entries["PreSignedUrl"] = input.PreSignedUrl;
4712
4484
  }
4713
- if (input.CopyTags !== undefined && input.CopyTags !== null) {
4485
+ if (input.CopyTags != null) {
4714
4486
  entries["CopyTags"] = input.CopyTags;
4715
4487
  }
4716
- if (input.Tags !== undefined && input.Tags !== null) {
4488
+ if (input.Tags != null) {
4717
4489
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
4718
4490
  Object.entries(memberEntries).forEach(([key, value]) => {
4719
4491
  const loc = `Tags.${key}`;
@@ -4724,16 +4496,16 @@ const serializeAws_queryCopyDBClusterSnapshotMessage = (input, context) => {
4724
4496
  };
4725
4497
  const serializeAws_queryCopyDBParameterGroupMessage = (input, context) => {
4726
4498
  const entries = {};
4727
- if (input.SourceDBParameterGroupIdentifier !== undefined && input.SourceDBParameterGroupIdentifier !== null) {
4499
+ if (input.SourceDBParameterGroupIdentifier != null) {
4728
4500
  entries["SourceDBParameterGroupIdentifier"] = input.SourceDBParameterGroupIdentifier;
4729
4501
  }
4730
- if (input.TargetDBParameterGroupIdentifier !== undefined && input.TargetDBParameterGroupIdentifier !== null) {
4502
+ if (input.TargetDBParameterGroupIdentifier != null) {
4731
4503
  entries["TargetDBParameterGroupIdentifier"] = input.TargetDBParameterGroupIdentifier;
4732
4504
  }
4733
- if (input.TargetDBParameterGroupDescription !== undefined && input.TargetDBParameterGroupDescription !== null) {
4505
+ if (input.TargetDBParameterGroupDescription != null) {
4734
4506
  entries["TargetDBParameterGroupDescription"] = input.TargetDBParameterGroupDescription;
4735
4507
  }
4736
- if (input.Tags !== undefined && input.Tags !== null) {
4508
+ if (input.Tags != null) {
4737
4509
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
4738
4510
  Object.entries(memberEntries).forEach(([key, value]) => {
4739
4511
  const loc = `Tags.${key}`;
@@ -4744,30 +4516,30 @@ const serializeAws_queryCopyDBParameterGroupMessage = (input, context) => {
4744
4516
  };
4745
4517
  const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
4746
4518
  const entries = {};
4747
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4519
+ if (input.DBClusterIdentifier != null) {
4748
4520
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4749
4521
  }
4750
- if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
4522
+ if (input.DBClusterEndpointIdentifier != null) {
4751
4523
  entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier;
4752
4524
  }
4753
- if (input.EndpointType !== undefined && input.EndpointType !== null) {
4525
+ if (input.EndpointType != null) {
4754
4526
  entries["EndpointType"] = input.EndpointType;
4755
4527
  }
4756
- if (input.StaticMembers !== undefined && input.StaticMembers !== null) {
4528
+ if (input.StaticMembers != null) {
4757
4529
  const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
4758
4530
  Object.entries(memberEntries).forEach(([key, value]) => {
4759
4531
  const loc = `StaticMembers.${key}`;
4760
4532
  entries[loc] = value;
4761
4533
  });
4762
4534
  }
4763
- if (input.ExcludedMembers !== undefined && input.ExcludedMembers !== null) {
4535
+ if (input.ExcludedMembers != null) {
4764
4536
  const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
4765
4537
  Object.entries(memberEntries).forEach(([key, value]) => {
4766
4538
  const loc = `ExcludedMembers.${key}`;
4767
4539
  entries[loc] = value;
4768
4540
  });
4769
4541
  }
4770
- if (input.Tags !== undefined && input.Tags !== null) {
4542
+ if (input.Tags != null) {
4771
4543
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
4772
4544
  Object.entries(memberEntries).forEach(([key, value]) => {
4773
4545
  const loc = `Tags.${key}`;
@@ -4778,114 +4550,114 @@ const serializeAws_queryCreateDBClusterEndpointMessage = (input, context) => {
4778
4550
  };
4779
4551
  const serializeAws_queryCreateDBClusterMessage = (input, context) => {
4780
4552
  const entries = {};
4781
- if (input.AvailabilityZones !== undefined && input.AvailabilityZones !== null) {
4553
+ if (input.AvailabilityZones != null) {
4782
4554
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
4783
4555
  Object.entries(memberEntries).forEach(([key, value]) => {
4784
4556
  const loc = `AvailabilityZones.${key}`;
4785
4557
  entries[loc] = value;
4786
4558
  });
4787
4559
  }
4788
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
4560
+ if (input.BackupRetentionPeriod != null) {
4789
4561
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
4790
4562
  }
4791
- if (input.CharacterSetName !== undefined && input.CharacterSetName !== null) {
4563
+ if (input.CharacterSetName != null) {
4792
4564
  entries["CharacterSetName"] = input.CharacterSetName;
4793
4565
  }
4794
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
4566
+ if (input.CopyTagsToSnapshot != null) {
4795
4567
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
4796
4568
  }
4797
- if (input.DatabaseName !== undefined && input.DatabaseName !== null) {
4569
+ if (input.DatabaseName != null) {
4798
4570
  entries["DatabaseName"] = input.DatabaseName;
4799
4571
  }
4800
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4572
+ if (input.DBClusterIdentifier != null) {
4801
4573
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4802
4574
  }
4803
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
4575
+ if (input.DBClusterParameterGroupName != null) {
4804
4576
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
4805
4577
  }
4806
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
4578
+ if (input.VpcSecurityGroupIds != null) {
4807
4579
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
4808
4580
  Object.entries(memberEntries).forEach(([key, value]) => {
4809
4581
  const loc = `VpcSecurityGroupIds.${key}`;
4810
4582
  entries[loc] = value;
4811
4583
  });
4812
4584
  }
4813
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
4585
+ if (input.DBSubnetGroupName != null) {
4814
4586
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
4815
4587
  }
4816
- if (input.Engine !== undefined && input.Engine !== null) {
4588
+ if (input.Engine != null) {
4817
4589
  entries["Engine"] = input.Engine;
4818
4590
  }
4819
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
4591
+ if (input.EngineVersion != null) {
4820
4592
  entries["EngineVersion"] = input.EngineVersion;
4821
4593
  }
4822
- if (input.Port !== undefined && input.Port !== null) {
4594
+ if (input.Port != null) {
4823
4595
  entries["Port"] = input.Port;
4824
4596
  }
4825
- if (input.MasterUsername !== undefined && input.MasterUsername !== null) {
4597
+ if (input.MasterUsername != null) {
4826
4598
  entries["MasterUsername"] = input.MasterUsername;
4827
4599
  }
4828
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
4600
+ if (input.MasterUserPassword != null) {
4829
4601
  entries["MasterUserPassword"] = input.MasterUserPassword;
4830
4602
  }
4831
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
4603
+ if (input.OptionGroupName != null) {
4832
4604
  entries["OptionGroupName"] = input.OptionGroupName;
4833
4605
  }
4834
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
4606
+ if (input.PreferredBackupWindow != null) {
4835
4607
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
4836
4608
  }
4837
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
4609
+ if (input.PreferredMaintenanceWindow != null) {
4838
4610
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
4839
4611
  }
4840
- if (input.ReplicationSourceIdentifier !== undefined && input.ReplicationSourceIdentifier !== null) {
4612
+ if (input.ReplicationSourceIdentifier != null) {
4841
4613
  entries["ReplicationSourceIdentifier"] = input.ReplicationSourceIdentifier;
4842
4614
  }
4843
- if (input.Tags !== undefined && input.Tags !== null) {
4615
+ if (input.Tags != null) {
4844
4616
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
4845
4617
  Object.entries(memberEntries).forEach(([key, value]) => {
4846
4618
  const loc = `Tags.${key}`;
4847
4619
  entries[loc] = value;
4848
4620
  });
4849
4621
  }
4850
- if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
4622
+ if (input.StorageEncrypted != null) {
4851
4623
  entries["StorageEncrypted"] = input.StorageEncrypted;
4852
4624
  }
4853
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
4625
+ if (input.KmsKeyId != null) {
4854
4626
  entries["KmsKeyId"] = input.KmsKeyId;
4855
4627
  }
4856
- if (input.PreSignedUrl !== undefined && input.PreSignedUrl !== null) {
4628
+ if (input.PreSignedUrl != null) {
4857
4629
  entries["PreSignedUrl"] = input.PreSignedUrl;
4858
4630
  }
4859
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
4631
+ if (input.EnableIAMDatabaseAuthentication != null) {
4860
4632
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
4861
4633
  }
4862
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
4634
+ if (input.EnableCloudwatchLogsExports != null) {
4863
4635
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
4864
4636
  Object.entries(memberEntries).forEach(([key, value]) => {
4865
4637
  const loc = `EnableCloudwatchLogsExports.${key}`;
4866
4638
  entries[loc] = value;
4867
4639
  });
4868
4640
  }
4869
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
4641
+ if (input.DeletionProtection != null) {
4870
4642
  entries["DeletionProtection"] = input.DeletionProtection;
4871
4643
  }
4872
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
4644
+ if (input.GlobalClusterIdentifier != null) {
4873
4645
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
4874
4646
  }
4875
4647
  return entries;
4876
4648
  };
4877
4649
  const serializeAws_queryCreateDBClusterParameterGroupMessage = (input, context) => {
4878
4650
  const entries = {};
4879
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
4651
+ if (input.DBClusterParameterGroupName != null) {
4880
4652
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
4881
4653
  }
4882
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
4654
+ if (input.DBParameterGroupFamily != null) {
4883
4655
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
4884
4656
  }
4885
- if (input.Description !== undefined && input.Description !== null) {
4657
+ if (input.Description != null) {
4886
4658
  entries["Description"] = input.Description;
4887
4659
  }
4888
- if (input.Tags !== undefined && input.Tags !== null) {
4660
+ if (input.Tags != null) {
4889
4661
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
4890
4662
  Object.entries(memberEntries).forEach(([key, value]) => {
4891
4663
  const loc = `Tags.${key}`;
@@ -4896,13 +4668,13 @@ const serializeAws_queryCreateDBClusterParameterGroupMessage = (input, context)
4896
4668
  };
4897
4669
  const serializeAws_queryCreateDBClusterSnapshotMessage = (input, context) => {
4898
4670
  const entries = {};
4899
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
4671
+ if (input.DBClusterSnapshotIdentifier != null) {
4900
4672
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
4901
4673
  }
4902
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4674
+ if (input.DBClusterIdentifier != null) {
4903
4675
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
4904
4676
  }
4905
- if (input.Tags !== undefined && input.Tags !== null) {
4677
+ if (input.Tags != null) {
4906
4678
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
4907
4679
  Object.entries(memberEntries).forEach(([key, value]) => {
4908
4680
  const loc = `Tags.${key}`;
@@ -4913,165 +4685,165 @@ const serializeAws_queryCreateDBClusterSnapshotMessage = (input, context) => {
4913
4685
  };
4914
4686
  const serializeAws_queryCreateDBInstanceMessage = (input, context) => {
4915
4687
  const entries = {};
4916
- if (input.DBName !== undefined && input.DBName !== null) {
4688
+ if (input.DBName != null) {
4917
4689
  entries["DBName"] = input.DBName;
4918
4690
  }
4919
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
4691
+ if (input.DBInstanceIdentifier != null) {
4920
4692
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
4921
4693
  }
4922
- if (input.AllocatedStorage !== undefined && input.AllocatedStorage !== null) {
4694
+ if (input.AllocatedStorage != null) {
4923
4695
  entries["AllocatedStorage"] = input.AllocatedStorage;
4924
4696
  }
4925
- if (input.DBInstanceClass !== undefined && input.DBInstanceClass !== null) {
4697
+ if (input.DBInstanceClass != null) {
4926
4698
  entries["DBInstanceClass"] = input.DBInstanceClass;
4927
4699
  }
4928
- if (input.Engine !== undefined && input.Engine !== null) {
4700
+ if (input.Engine != null) {
4929
4701
  entries["Engine"] = input.Engine;
4930
4702
  }
4931
- if (input.MasterUsername !== undefined && input.MasterUsername !== null) {
4703
+ if (input.MasterUsername != null) {
4932
4704
  entries["MasterUsername"] = input.MasterUsername;
4933
4705
  }
4934
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
4706
+ if (input.MasterUserPassword != null) {
4935
4707
  entries["MasterUserPassword"] = input.MasterUserPassword;
4936
4708
  }
4937
- if (input.DBSecurityGroups !== undefined && input.DBSecurityGroups !== null) {
4709
+ if (input.DBSecurityGroups != null) {
4938
4710
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
4939
4711
  Object.entries(memberEntries).forEach(([key, value]) => {
4940
4712
  const loc = `DBSecurityGroups.${key}`;
4941
4713
  entries[loc] = value;
4942
4714
  });
4943
4715
  }
4944
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
4716
+ if (input.VpcSecurityGroupIds != null) {
4945
4717
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
4946
4718
  Object.entries(memberEntries).forEach(([key, value]) => {
4947
4719
  const loc = `VpcSecurityGroupIds.${key}`;
4948
4720
  entries[loc] = value;
4949
4721
  });
4950
4722
  }
4951
- if (input.AvailabilityZone !== undefined && input.AvailabilityZone !== null) {
4723
+ if (input.AvailabilityZone != null) {
4952
4724
  entries["AvailabilityZone"] = input.AvailabilityZone;
4953
4725
  }
4954
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
4726
+ if (input.DBSubnetGroupName != null) {
4955
4727
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
4956
4728
  }
4957
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
4729
+ if (input.PreferredMaintenanceWindow != null) {
4958
4730
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
4959
4731
  }
4960
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
4732
+ if (input.DBParameterGroupName != null) {
4961
4733
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
4962
4734
  }
4963
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
4735
+ if (input.BackupRetentionPeriod != null) {
4964
4736
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
4965
4737
  }
4966
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
4738
+ if (input.PreferredBackupWindow != null) {
4967
4739
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
4968
4740
  }
4969
- if (input.Port !== undefined && input.Port !== null) {
4741
+ if (input.Port != null) {
4970
4742
  entries["Port"] = input.Port;
4971
4743
  }
4972
- if (input.MultiAZ !== undefined && input.MultiAZ !== null) {
4744
+ if (input.MultiAZ != null) {
4973
4745
  entries["MultiAZ"] = input.MultiAZ;
4974
4746
  }
4975
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
4747
+ if (input.EngineVersion != null) {
4976
4748
  entries["EngineVersion"] = input.EngineVersion;
4977
4749
  }
4978
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
4750
+ if (input.AutoMinorVersionUpgrade != null) {
4979
4751
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
4980
4752
  }
4981
- if (input.LicenseModel !== undefined && input.LicenseModel !== null) {
4753
+ if (input.LicenseModel != null) {
4982
4754
  entries["LicenseModel"] = input.LicenseModel;
4983
4755
  }
4984
- if (input.Iops !== undefined && input.Iops !== null) {
4756
+ if (input.Iops != null) {
4985
4757
  entries["Iops"] = input.Iops;
4986
4758
  }
4987
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
4759
+ if (input.OptionGroupName != null) {
4988
4760
  entries["OptionGroupName"] = input.OptionGroupName;
4989
4761
  }
4990
- if (input.CharacterSetName !== undefined && input.CharacterSetName !== null) {
4762
+ if (input.CharacterSetName != null) {
4991
4763
  entries["CharacterSetName"] = input.CharacterSetName;
4992
4764
  }
4993
- if (input.PubliclyAccessible !== undefined && input.PubliclyAccessible !== null) {
4765
+ if (input.PubliclyAccessible != null) {
4994
4766
  entries["PubliclyAccessible"] = input.PubliclyAccessible;
4995
4767
  }
4996
- if (input.Tags !== undefined && input.Tags !== null) {
4768
+ if (input.Tags != null) {
4997
4769
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
4998
4770
  Object.entries(memberEntries).forEach(([key, value]) => {
4999
4771
  const loc = `Tags.${key}`;
5000
4772
  entries[loc] = value;
5001
4773
  });
5002
4774
  }
5003
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4775
+ if (input.DBClusterIdentifier != null) {
5004
4776
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5005
4777
  }
5006
- if (input.StorageType !== undefined && input.StorageType !== null) {
4778
+ if (input.StorageType != null) {
5007
4779
  entries["StorageType"] = input.StorageType;
5008
4780
  }
5009
- if (input.TdeCredentialArn !== undefined && input.TdeCredentialArn !== null) {
4781
+ if (input.TdeCredentialArn != null) {
5010
4782
  entries["TdeCredentialArn"] = input.TdeCredentialArn;
5011
4783
  }
5012
- if (input.TdeCredentialPassword !== undefined && input.TdeCredentialPassword !== null) {
4784
+ if (input.TdeCredentialPassword != null) {
5013
4785
  entries["TdeCredentialPassword"] = input.TdeCredentialPassword;
5014
4786
  }
5015
- if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
4787
+ if (input.StorageEncrypted != null) {
5016
4788
  entries["StorageEncrypted"] = input.StorageEncrypted;
5017
4789
  }
5018
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
4790
+ if (input.KmsKeyId != null) {
5019
4791
  entries["KmsKeyId"] = input.KmsKeyId;
5020
4792
  }
5021
- if (input.Domain !== undefined && input.Domain !== null) {
4793
+ if (input.Domain != null) {
5022
4794
  entries["Domain"] = input.Domain;
5023
4795
  }
5024
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
4796
+ if (input.CopyTagsToSnapshot != null) {
5025
4797
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
5026
4798
  }
5027
- if (input.MonitoringInterval !== undefined && input.MonitoringInterval !== null) {
4799
+ if (input.MonitoringInterval != null) {
5028
4800
  entries["MonitoringInterval"] = input.MonitoringInterval;
5029
4801
  }
5030
- if (input.MonitoringRoleArn !== undefined && input.MonitoringRoleArn !== null) {
4802
+ if (input.MonitoringRoleArn != null) {
5031
4803
  entries["MonitoringRoleArn"] = input.MonitoringRoleArn;
5032
4804
  }
5033
- if (input.DomainIAMRoleName !== undefined && input.DomainIAMRoleName !== null) {
4805
+ if (input.DomainIAMRoleName != null) {
5034
4806
  entries["DomainIAMRoleName"] = input.DomainIAMRoleName;
5035
4807
  }
5036
- if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
4808
+ if (input.PromotionTier != null) {
5037
4809
  entries["PromotionTier"] = input.PromotionTier;
5038
4810
  }
5039
- if (input.Timezone !== undefined && input.Timezone !== null) {
4811
+ if (input.Timezone != null) {
5040
4812
  entries["Timezone"] = input.Timezone;
5041
4813
  }
5042
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
4814
+ if (input.EnableIAMDatabaseAuthentication != null) {
5043
4815
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
5044
4816
  }
5045
- if (input.EnablePerformanceInsights !== undefined && input.EnablePerformanceInsights !== null) {
4817
+ if (input.EnablePerformanceInsights != null) {
5046
4818
  entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights;
5047
4819
  }
5048
- if (input.PerformanceInsightsKMSKeyId !== undefined && input.PerformanceInsightsKMSKeyId !== null) {
4820
+ if (input.PerformanceInsightsKMSKeyId != null) {
5049
4821
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
5050
4822
  }
5051
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
4823
+ if (input.EnableCloudwatchLogsExports != null) {
5052
4824
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
5053
4825
  Object.entries(memberEntries).forEach(([key, value]) => {
5054
4826
  const loc = `EnableCloudwatchLogsExports.${key}`;
5055
4827
  entries[loc] = value;
5056
4828
  });
5057
4829
  }
5058
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
4830
+ if (input.DeletionProtection != null) {
5059
4831
  entries["DeletionProtection"] = input.DeletionProtection;
5060
4832
  }
5061
4833
  return entries;
5062
4834
  };
5063
4835
  const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
5064
4836
  const entries = {};
5065
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
4837
+ if (input.DBParameterGroupName != null) {
5066
4838
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
5067
4839
  }
5068
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
4840
+ if (input.DBParameterGroupFamily != null) {
5069
4841
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
5070
4842
  }
5071
- if (input.Description !== undefined && input.Description !== null) {
4843
+ if (input.Description != null) {
5072
4844
  entries["Description"] = input.Description;
5073
4845
  }
5074
- if (input.Tags !== undefined && input.Tags !== null) {
4846
+ if (input.Tags != null) {
5075
4847
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
5076
4848
  Object.entries(memberEntries).forEach(([key, value]) => {
5077
4849
  const loc = `Tags.${key}`;
@@ -5082,20 +4854,20 @@ const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
5082
4854
  };
5083
4855
  const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
5084
4856
  const entries = {};
5085
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
4857
+ if (input.DBSubnetGroupName != null) {
5086
4858
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
5087
4859
  }
5088
- if (input.DBSubnetGroupDescription !== undefined && input.DBSubnetGroupDescription !== null) {
4860
+ if (input.DBSubnetGroupDescription != null) {
5089
4861
  entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription;
5090
4862
  }
5091
- if (input.SubnetIds !== undefined && input.SubnetIds !== null) {
4863
+ if (input.SubnetIds != null) {
5092
4864
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
5093
4865
  Object.entries(memberEntries).forEach(([key, value]) => {
5094
4866
  const loc = `SubnetIds.${key}`;
5095
4867
  entries[loc] = value;
5096
4868
  });
5097
4869
  }
5098
- if (input.Tags !== undefined && input.Tags !== null) {
4870
+ if (input.Tags != null) {
5099
4871
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
5100
4872
  Object.entries(memberEntries).forEach(([key, value]) => {
5101
4873
  const loc = `Tags.${key}`;
@@ -5106,33 +4878,33 @@ const serializeAws_queryCreateDBSubnetGroupMessage = (input, context) => {
5106
4878
  };
5107
4879
  const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
5108
4880
  const entries = {};
5109
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
4881
+ if (input.SubscriptionName != null) {
5110
4882
  entries["SubscriptionName"] = input.SubscriptionName;
5111
4883
  }
5112
- if (input.SnsTopicArn !== undefined && input.SnsTopicArn !== null) {
4884
+ if (input.SnsTopicArn != null) {
5113
4885
  entries["SnsTopicArn"] = input.SnsTopicArn;
5114
4886
  }
5115
- if (input.SourceType !== undefined && input.SourceType !== null) {
4887
+ if (input.SourceType != null) {
5116
4888
  entries["SourceType"] = input.SourceType;
5117
4889
  }
5118
- if (input.EventCategories !== undefined && input.EventCategories !== null) {
4890
+ if (input.EventCategories != null) {
5119
4891
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
5120
4892
  Object.entries(memberEntries).forEach(([key, value]) => {
5121
4893
  const loc = `EventCategories.${key}`;
5122
4894
  entries[loc] = value;
5123
4895
  });
5124
4896
  }
5125
- if (input.SourceIds !== undefined && input.SourceIds !== null) {
4897
+ if (input.SourceIds != null) {
5126
4898
  const memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
5127
4899
  Object.entries(memberEntries).forEach(([key, value]) => {
5128
4900
  const loc = `SourceIds.${key}`;
5129
4901
  entries[loc] = value;
5130
4902
  });
5131
4903
  }
5132
- if (input.Enabled !== undefined && input.Enabled !== null) {
4904
+ if (input.Enabled != null) {
5133
4905
  entries["Enabled"] = input.Enabled;
5134
4906
  }
5135
- if (input.Tags !== undefined && input.Tags !== null) {
4907
+ if (input.Tags != null) {
5136
4908
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
5137
4909
  Object.entries(memberEntries).forEach(([key, value]) => {
5138
4910
  const loc = `Tags.${key}`;
@@ -5143,22 +4915,22 @@ const serializeAws_queryCreateEventSubscriptionMessage = (input, context) => {
5143
4915
  };
5144
4916
  const serializeAws_queryCreateGlobalClusterMessage = (input, context) => {
5145
4917
  const entries = {};
5146
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
4918
+ if (input.GlobalClusterIdentifier != null) {
5147
4919
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
5148
4920
  }
5149
- if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
4921
+ if (input.SourceDBClusterIdentifier != null) {
5150
4922
  entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
5151
4923
  }
5152
- if (input.Engine !== undefined && input.Engine !== null) {
4924
+ if (input.Engine != null) {
5153
4925
  entries["Engine"] = input.Engine;
5154
4926
  }
5155
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
4927
+ if (input.EngineVersion != null) {
5156
4928
  entries["EngineVersion"] = input.EngineVersion;
5157
4929
  }
5158
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
4930
+ if (input.DeletionProtection != null) {
5159
4931
  entries["DeletionProtection"] = input.DeletionProtection;
5160
4932
  }
5161
- if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
4933
+ if (input.StorageEncrypted != null) {
5162
4934
  entries["StorageEncrypted"] = input.StorageEncrypted;
5163
4935
  }
5164
4936
  return entries;
@@ -5177,368 +4949,368 @@ const serializeAws_queryDBSecurityGroupNameList = (input, context) => {
5177
4949
  };
5178
4950
  const serializeAws_queryDeleteDBClusterEndpointMessage = (input, context) => {
5179
4951
  const entries = {};
5180
- if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
4952
+ if (input.DBClusterEndpointIdentifier != null) {
5181
4953
  entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier;
5182
4954
  }
5183
4955
  return entries;
5184
4956
  };
5185
4957
  const serializeAws_queryDeleteDBClusterMessage = (input, context) => {
5186
4958
  const entries = {};
5187
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
4959
+ if (input.DBClusterIdentifier != null) {
5188
4960
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5189
4961
  }
5190
- if (input.SkipFinalSnapshot !== undefined && input.SkipFinalSnapshot !== null) {
4962
+ if (input.SkipFinalSnapshot != null) {
5191
4963
  entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot;
5192
4964
  }
5193
- if (input.FinalDBSnapshotIdentifier !== undefined && input.FinalDBSnapshotIdentifier !== null) {
4965
+ if (input.FinalDBSnapshotIdentifier != null) {
5194
4966
  entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier;
5195
4967
  }
5196
4968
  return entries;
5197
4969
  };
5198
4970
  const serializeAws_queryDeleteDBClusterParameterGroupMessage = (input, context) => {
5199
4971
  const entries = {};
5200
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
4972
+ if (input.DBClusterParameterGroupName != null) {
5201
4973
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5202
4974
  }
5203
4975
  return entries;
5204
4976
  };
5205
4977
  const serializeAws_queryDeleteDBClusterSnapshotMessage = (input, context) => {
5206
4978
  const entries = {};
5207
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
4979
+ if (input.DBClusterSnapshotIdentifier != null) {
5208
4980
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
5209
4981
  }
5210
4982
  return entries;
5211
4983
  };
5212
4984
  const serializeAws_queryDeleteDBInstanceMessage = (input, context) => {
5213
4985
  const entries = {};
5214
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
4986
+ if (input.DBInstanceIdentifier != null) {
5215
4987
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
5216
4988
  }
5217
- if (input.SkipFinalSnapshot !== undefined && input.SkipFinalSnapshot !== null) {
4989
+ if (input.SkipFinalSnapshot != null) {
5218
4990
  entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot;
5219
4991
  }
5220
- if (input.FinalDBSnapshotIdentifier !== undefined && input.FinalDBSnapshotIdentifier !== null) {
4992
+ if (input.FinalDBSnapshotIdentifier != null) {
5221
4993
  entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier;
5222
4994
  }
5223
4995
  return entries;
5224
4996
  };
5225
4997
  const serializeAws_queryDeleteDBParameterGroupMessage = (input, context) => {
5226
4998
  const entries = {};
5227
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
4999
+ if (input.DBParameterGroupName != null) {
5228
5000
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
5229
5001
  }
5230
5002
  return entries;
5231
5003
  };
5232
5004
  const serializeAws_queryDeleteDBSubnetGroupMessage = (input, context) => {
5233
5005
  const entries = {};
5234
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
5006
+ if (input.DBSubnetGroupName != null) {
5235
5007
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
5236
5008
  }
5237
5009
  return entries;
5238
5010
  };
5239
5011
  const serializeAws_queryDeleteEventSubscriptionMessage = (input, context) => {
5240
5012
  const entries = {};
5241
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
5013
+ if (input.SubscriptionName != null) {
5242
5014
  entries["SubscriptionName"] = input.SubscriptionName;
5243
5015
  }
5244
5016
  return entries;
5245
5017
  };
5246
5018
  const serializeAws_queryDeleteGlobalClusterMessage = (input, context) => {
5247
5019
  const entries = {};
5248
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
5020
+ if (input.GlobalClusterIdentifier != null) {
5249
5021
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
5250
5022
  }
5251
5023
  return entries;
5252
5024
  };
5253
5025
  const serializeAws_queryDescribeDBClusterEndpointsMessage = (input, context) => {
5254
5026
  const entries = {};
5255
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5027
+ if (input.DBClusterIdentifier != null) {
5256
5028
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5257
5029
  }
5258
- if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
5030
+ if (input.DBClusterEndpointIdentifier != null) {
5259
5031
  entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier;
5260
5032
  }
5261
- if (input.Filters !== undefined && input.Filters !== null) {
5033
+ if (input.Filters != null) {
5262
5034
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5263
5035
  Object.entries(memberEntries).forEach(([key, value]) => {
5264
5036
  const loc = `Filters.${key}`;
5265
5037
  entries[loc] = value;
5266
5038
  });
5267
5039
  }
5268
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5040
+ if (input.MaxRecords != null) {
5269
5041
  entries["MaxRecords"] = input.MaxRecords;
5270
5042
  }
5271
- if (input.Marker !== undefined && input.Marker !== null) {
5043
+ if (input.Marker != null) {
5272
5044
  entries["Marker"] = input.Marker;
5273
5045
  }
5274
5046
  return entries;
5275
5047
  };
5276
5048
  const serializeAws_queryDescribeDBClusterParameterGroupsMessage = (input, context) => {
5277
5049
  const entries = {};
5278
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
5050
+ if (input.DBClusterParameterGroupName != null) {
5279
5051
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5280
5052
  }
5281
- if (input.Filters !== undefined && input.Filters !== null) {
5053
+ if (input.Filters != null) {
5282
5054
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5283
5055
  Object.entries(memberEntries).forEach(([key, value]) => {
5284
5056
  const loc = `Filters.${key}`;
5285
5057
  entries[loc] = value;
5286
5058
  });
5287
5059
  }
5288
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5060
+ if (input.MaxRecords != null) {
5289
5061
  entries["MaxRecords"] = input.MaxRecords;
5290
5062
  }
5291
- if (input.Marker !== undefined && input.Marker !== null) {
5063
+ if (input.Marker != null) {
5292
5064
  entries["Marker"] = input.Marker;
5293
5065
  }
5294
5066
  return entries;
5295
5067
  };
5296
5068
  const serializeAws_queryDescribeDBClusterParametersMessage = (input, context) => {
5297
5069
  const entries = {};
5298
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
5070
+ if (input.DBClusterParameterGroupName != null) {
5299
5071
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5300
5072
  }
5301
- if (input.Source !== undefined && input.Source !== null) {
5073
+ if (input.Source != null) {
5302
5074
  entries["Source"] = input.Source;
5303
5075
  }
5304
- if (input.Filters !== undefined && input.Filters !== null) {
5076
+ if (input.Filters != null) {
5305
5077
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5306
5078
  Object.entries(memberEntries).forEach(([key, value]) => {
5307
5079
  const loc = `Filters.${key}`;
5308
5080
  entries[loc] = value;
5309
5081
  });
5310
5082
  }
5311
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5083
+ if (input.MaxRecords != null) {
5312
5084
  entries["MaxRecords"] = input.MaxRecords;
5313
5085
  }
5314
- if (input.Marker !== undefined && input.Marker !== null) {
5086
+ if (input.Marker != null) {
5315
5087
  entries["Marker"] = input.Marker;
5316
5088
  }
5317
5089
  return entries;
5318
5090
  };
5319
5091
  const serializeAws_queryDescribeDBClustersMessage = (input, context) => {
5320
5092
  const entries = {};
5321
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5093
+ if (input.DBClusterIdentifier != null) {
5322
5094
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5323
5095
  }
5324
- if (input.Filters !== undefined && input.Filters !== null) {
5096
+ if (input.Filters != null) {
5325
5097
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5326
5098
  Object.entries(memberEntries).forEach(([key, value]) => {
5327
5099
  const loc = `Filters.${key}`;
5328
5100
  entries[loc] = value;
5329
5101
  });
5330
5102
  }
5331
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5103
+ if (input.MaxRecords != null) {
5332
5104
  entries["MaxRecords"] = input.MaxRecords;
5333
5105
  }
5334
- if (input.Marker !== undefined && input.Marker !== null) {
5106
+ if (input.Marker != null) {
5335
5107
  entries["Marker"] = input.Marker;
5336
5108
  }
5337
5109
  return entries;
5338
5110
  };
5339
5111
  const serializeAws_queryDescribeDBClusterSnapshotAttributesMessage = (input, context) => {
5340
5112
  const entries = {};
5341
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
5113
+ if (input.DBClusterSnapshotIdentifier != null) {
5342
5114
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
5343
5115
  }
5344
5116
  return entries;
5345
5117
  };
5346
5118
  const serializeAws_queryDescribeDBClusterSnapshotsMessage = (input, context) => {
5347
5119
  const entries = {};
5348
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5120
+ if (input.DBClusterIdentifier != null) {
5349
5121
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5350
5122
  }
5351
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
5123
+ if (input.DBClusterSnapshotIdentifier != null) {
5352
5124
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
5353
5125
  }
5354
- if (input.SnapshotType !== undefined && input.SnapshotType !== null) {
5126
+ if (input.SnapshotType != null) {
5355
5127
  entries["SnapshotType"] = input.SnapshotType;
5356
5128
  }
5357
- if (input.Filters !== undefined && input.Filters !== null) {
5129
+ if (input.Filters != null) {
5358
5130
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5359
5131
  Object.entries(memberEntries).forEach(([key, value]) => {
5360
5132
  const loc = `Filters.${key}`;
5361
5133
  entries[loc] = value;
5362
5134
  });
5363
5135
  }
5364
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5136
+ if (input.MaxRecords != null) {
5365
5137
  entries["MaxRecords"] = input.MaxRecords;
5366
5138
  }
5367
- if (input.Marker !== undefined && input.Marker !== null) {
5139
+ if (input.Marker != null) {
5368
5140
  entries["Marker"] = input.Marker;
5369
5141
  }
5370
- if (input.IncludeShared !== undefined && input.IncludeShared !== null) {
5142
+ if (input.IncludeShared != null) {
5371
5143
  entries["IncludeShared"] = input.IncludeShared;
5372
5144
  }
5373
- if (input.IncludePublic !== undefined && input.IncludePublic !== null) {
5145
+ if (input.IncludePublic != null) {
5374
5146
  entries["IncludePublic"] = input.IncludePublic;
5375
5147
  }
5376
5148
  return entries;
5377
5149
  };
5378
5150
  const serializeAws_queryDescribeDBEngineVersionsMessage = (input, context) => {
5379
5151
  const entries = {};
5380
- if (input.Engine !== undefined && input.Engine !== null) {
5152
+ if (input.Engine != null) {
5381
5153
  entries["Engine"] = input.Engine;
5382
5154
  }
5383
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5155
+ if (input.EngineVersion != null) {
5384
5156
  entries["EngineVersion"] = input.EngineVersion;
5385
5157
  }
5386
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
5158
+ if (input.DBParameterGroupFamily != null) {
5387
5159
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
5388
5160
  }
5389
- if (input.Filters !== undefined && input.Filters !== null) {
5161
+ if (input.Filters != null) {
5390
5162
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5391
5163
  Object.entries(memberEntries).forEach(([key, value]) => {
5392
5164
  const loc = `Filters.${key}`;
5393
5165
  entries[loc] = value;
5394
5166
  });
5395
5167
  }
5396
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5168
+ if (input.MaxRecords != null) {
5397
5169
  entries["MaxRecords"] = input.MaxRecords;
5398
5170
  }
5399
- if (input.Marker !== undefined && input.Marker !== null) {
5171
+ if (input.Marker != null) {
5400
5172
  entries["Marker"] = input.Marker;
5401
5173
  }
5402
- if (input.DefaultOnly !== undefined && input.DefaultOnly !== null) {
5174
+ if (input.DefaultOnly != null) {
5403
5175
  entries["DefaultOnly"] = input.DefaultOnly;
5404
5176
  }
5405
- if (input.ListSupportedCharacterSets !== undefined && input.ListSupportedCharacterSets !== null) {
5177
+ if (input.ListSupportedCharacterSets != null) {
5406
5178
  entries["ListSupportedCharacterSets"] = input.ListSupportedCharacterSets;
5407
5179
  }
5408
- if (input.ListSupportedTimezones !== undefined && input.ListSupportedTimezones !== null) {
5180
+ if (input.ListSupportedTimezones != null) {
5409
5181
  entries["ListSupportedTimezones"] = input.ListSupportedTimezones;
5410
5182
  }
5411
5183
  return entries;
5412
5184
  };
5413
5185
  const serializeAws_queryDescribeDBInstancesMessage = (input, context) => {
5414
5186
  const entries = {};
5415
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
5187
+ if (input.DBInstanceIdentifier != null) {
5416
5188
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
5417
5189
  }
5418
- if (input.Filters !== undefined && input.Filters !== null) {
5190
+ if (input.Filters != null) {
5419
5191
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5420
5192
  Object.entries(memberEntries).forEach(([key, value]) => {
5421
5193
  const loc = `Filters.${key}`;
5422
5194
  entries[loc] = value;
5423
5195
  });
5424
5196
  }
5425
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5197
+ if (input.MaxRecords != null) {
5426
5198
  entries["MaxRecords"] = input.MaxRecords;
5427
5199
  }
5428
- if (input.Marker !== undefined && input.Marker !== null) {
5200
+ if (input.Marker != null) {
5429
5201
  entries["Marker"] = input.Marker;
5430
5202
  }
5431
5203
  return entries;
5432
5204
  };
5433
5205
  const serializeAws_queryDescribeDBParameterGroupsMessage = (input, context) => {
5434
5206
  const entries = {};
5435
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
5207
+ if (input.DBParameterGroupName != null) {
5436
5208
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
5437
5209
  }
5438
- if (input.Filters !== undefined && input.Filters !== null) {
5210
+ if (input.Filters != null) {
5439
5211
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5440
5212
  Object.entries(memberEntries).forEach(([key, value]) => {
5441
5213
  const loc = `Filters.${key}`;
5442
5214
  entries[loc] = value;
5443
5215
  });
5444
5216
  }
5445
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5217
+ if (input.MaxRecords != null) {
5446
5218
  entries["MaxRecords"] = input.MaxRecords;
5447
5219
  }
5448
- if (input.Marker !== undefined && input.Marker !== null) {
5220
+ if (input.Marker != null) {
5449
5221
  entries["Marker"] = input.Marker;
5450
5222
  }
5451
5223
  return entries;
5452
5224
  };
5453
5225
  const serializeAws_queryDescribeDBParametersMessage = (input, context) => {
5454
5226
  const entries = {};
5455
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
5227
+ if (input.DBParameterGroupName != null) {
5456
5228
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
5457
5229
  }
5458
- if (input.Source !== undefined && input.Source !== null) {
5230
+ if (input.Source != null) {
5459
5231
  entries["Source"] = input.Source;
5460
5232
  }
5461
- if (input.Filters !== undefined && input.Filters !== null) {
5233
+ if (input.Filters != null) {
5462
5234
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5463
5235
  Object.entries(memberEntries).forEach(([key, value]) => {
5464
5236
  const loc = `Filters.${key}`;
5465
5237
  entries[loc] = value;
5466
5238
  });
5467
5239
  }
5468
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5240
+ if (input.MaxRecords != null) {
5469
5241
  entries["MaxRecords"] = input.MaxRecords;
5470
5242
  }
5471
- if (input.Marker !== undefined && input.Marker !== null) {
5243
+ if (input.Marker != null) {
5472
5244
  entries["Marker"] = input.Marker;
5473
5245
  }
5474
5246
  return entries;
5475
5247
  };
5476
5248
  const serializeAws_queryDescribeDBSubnetGroupsMessage = (input, context) => {
5477
5249
  const entries = {};
5478
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
5250
+ if (input.DBSubnetGroupName != null) {
5479
5251
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
5480
5252
  }
5481
- if (input.Filters !== undefined && input.Filters !== null) {
5253
+ if (input.Filters != null) {
5482
5254
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5483
5255
  Object.entries(memberEntries).forEach(([key, value]) => {
5484
5256
  const loc = `Filters.${key}`;
5485
5257
  entries[loc] = value;
5486
5258
  });
5487
5259
  }
5488
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5260
+ if (input.MaxRecords != null) {
5489
5261
  entries["MaxRecords"] = input.MaxRecords;
5490
5262
  }
5491
- if (input.Marker !== undefined && input.Marker !== null) {
5263
+ if (input.Marker != null) {
5492
5264
  entries["Marker"] = input.Marker;
5493
5265
  }
5494
5266
  return entries;
5495
5267
  };
5496
5268
  const serializeAws_queryDescribeEngineDefaultClusterParametersMessage = (input, context) => {
5497
5269
  const entries = {};
5498
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
5270
+ if (input.DBParameterGroupFamily != null) {
5499
5271
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
5500
5272
  }
5501
- if (input.Filters !== undefined && input.Filters !== null) {
5273
+ if (input.Filters != null) {
5502
5274
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5503
5275
  Object.entries(memberEntries).forEach(([key, value]) => {
5504
5276
  const loc = `Filters.${key}`;
5505
5277
  entries[loc] = value;
5506
5278
  });
5507
5279
  }
5508
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5280
+ if (input.MaxRecords != null) {
5509
5281
  entries["MaxRecords"] = input.MaxRecords;
5510
5282
  }
5511
- if (input.Marker !== undefined && input.Marker !== null) {
5283
+ if (input.Marker != null) {
5512
5284
  entries["Marker"] = input.Marker;
5513
5285
  }
5514
5286
  return entries;
5515
5287
  };
5516
5288
  const serializeAws_queryDescribeEngineDefaultParametersMessage = (input, context) => {
5517
5289
  const entries = {};
5518
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
5290
+ if (input.DBParameterGroupFamily != null) {
5519
5291
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
5520
5292
  }
5521
- if (input.Filters !== undefined && input.Filters !== null) {
5293
+ if (input.Filters != null) {
5522
5294
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5523
5295
  Object.entries(memberEntries).forEach(([key, value]) => {
5524
5296
  const loc = `Filters.${key}`;
5525
5297
  entries[loc] = value;
5526
5298
  });
5527
5299
  }
5528
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5300
+ if (input.MaxRecords != null) {
5529
5301
  entries["MaxRecords"] = input.MaxRecords;
5530
5302
  }
5531
- if (input.Marker !== undefined && input.Marker !== null) {
5303
+ if (input.Marker != null) {
5532
5304
  entries["Marker"] = input.Marker;
5533
5305
  }
5534
5306
  return entries;
5535
5307
  };
5536
5308
  const serializeAws_queryDescribeEventCategoriesMessage = (input, context) => {
5537
5309
  const entries = {};
5538
- if (input.SourceType !== undefined && input.SourceType !== null) {
5310
+ if (input.SourceType != null) {
5539
5311
  entries["SourceType"] = input.SourceType;
5540
5312
  }
5541
- if (input.Filters !== undefined && input.Filters !== null) {
5313
+ if (input.Filters != null) {
5542
5314
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5543
5315
  Object.entries(memberEntries).forEach(([key, value]) => {
5544
5316
  const loc = `Filters.${key}`;
@@ -5549,131 +5321,131 @@ const serializeAws_queryDescribeEventCategoriesMessage = (input, context) => {
5549
5321
  };
5550
5322
  const serializeAws_queryDescribeEventsMessage = (input, context) => {
5551
5323
  const entries = {};
5552
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
5324
+ if (input.SourceIdentifier != null) {
5553
5325
  entries["SourceIdentifier"] = input.SourceIdentifier;
5554
5326
  }
5555
- if (input.SourceType !== undefined && input.SourceType !== null) {
5327
+ if (input.SourceType != null) {
5556
5328
  entries["SourceType"] = input.SourceType;
5557
5329
  }
5558
- if (input.StartTime !== undefined && input.StartTime !== null) {
5330
+ if (input.StartTime != null) {
5559
5331
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
5560
5332
  }
5561
- if (input.EndTime !== undefined && input.EndTime !== null) {
5333
+ if (input.EndTime != null) {
5562
5334
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
5563
5335
  }
5564
- if (input.Duration !== undefined && input.Duration !== null) {
5336
+ if (input.Duration != null) {
5565
5337
  entries["Duration"] = input.Duration;
5566
5338
  }
5567
- if (input.EventCategories !== undefined && input.EventCategories !== null) {
5339
+ if (input.EventCategories != null) {
5568
5340
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
5569
5341
  Object.entries(memberEntries).forEach(([key, value]) => {
5570
5342
  const loc = `EventCategories.${key}`;
5571
5343
  entries[loc] = value;
5572
5344
  });
5573
5345
  }
5574
- if (input.Filters !== undefined && input.Filters !== null) {
5346
+ if (input.Filters != null) {
5575
5347
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5576
5348
  Object.entries(memberEntries).forEach(([key, value]) => {
5577
5349
  const loc = `Filters.${key}`;
5578
5350
  entries[loc] = value;
5579
5351
  });
5580
5352
  }
5581
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5353
+ if (input.MaxRecords != null) {
5582
5354
  entries["MaxRecords"] = input.MaxRecords;
5583
5355
  }
5584
- if (input.Marker !== undefined && input.Marker !== null) {
5356
+ if (input.Marker != null) {
5585
5357
  entries["Marker"] = input.Marker;
5586
5358
  }
5587
5359
  return entries;
5588
5360
  };
5589
5361
  const serializeAws_queryDescribeEventSubscriptionsMessage = (input, context) => {
5590
5362
  const entries = {};
5591
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
5363
+ if (input.SubscriptionName != null) {
5592
5364
  entries["SubscriptionName"] = input.SubscriptionName;
5593
5365
  }
5594
- if (input.Filters !== undefined && input.Filters !== null) {
5366
+ if (input.Filters != null) {
5595
5367
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5596
5368
  Object.entries(memberEntries).forEach(([key, value]) => {
5597
5369
  const loc = `Filters.${key}`;
5598
5370
  entries[loc] = value;
5599
5371
  });
5600
5372
  }
5601
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5373
+ if (input.MaxRecords != null) {
5602
5374
  entries["MaxRecords"] = input.MaxRecords;
5603
5375
  }
5604
- if (input.Marker !== undefined && input.Marker !== null) {
5376
+ if (input.Marker != null) {
5605
5377
  entries["Marker"] = input.Marker;
5606
5378
  }
5607
5379
  return entries;
5608
5380
  };
5609
5381
  const serializeAws_queryDescribeGlobalClustersMessage = (input, context) => {
5610
5382
  const entries = {};
5611
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
5383
+ if (input.GlobalClusterIdentifier != null) {
5612
5384
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
5613
5385
  }
5614
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5386
+ if (input.MaxRecords != null) {
5615
5387
  entries["MaxRecords"] = input.MaxRecords;
5616
5388
  }
5617
- if (input.Marker !== undefined && input.Marker !== null) {
5389
+ if (input.Marker != null) {
5618
5390
  entries["Marker"] = input.Marker;
5619
5391
  }
5620
5392
  return entries;
5621
5393
  };
5622
5394
  const serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = (input, context) => {
5623
5395
  const entries = {};
5624
- if (input.Engine !== undefined && input.Engine !== null) {
5396
+ if (input.Engine != null) {
5625
5397
  entries["Engine"] = input.Engine;
5626
5398
  }
5627
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5399
+ if (input.EngineVersion != null) {
5628
5400
  entries["EngineVersion"] = input.EngineVersion;
5629
5401
  }
5630
- if (input.DBInstanceClass !== undefined && input.DBInstanceClass !== null) {
5402
+ if (input.DBInstanceClass != null) {
5631
5403
  entries["DBInstanceClass"] = input.DBInstanceClass;
5632
5404
  }
5633
- if (input.LicenseModel !== undefined && input.LicenseModel !== null) {
5405
+ if (input.LicenseModel != null) {
5634
5406
  entries["LicenseModel"] = input.LicenseModel;
5635
5407
  }
5636
- if (input.Vpc !== undefined && input.Vpc !== null) {
5408
+ if (input.Vpc != null) {
5637
5409
  entries["Vpc"] = input.Vpc;
5638
5410
  }
5639
- if (input.Filters !== undefined && input.Filters !== null) {
5411
+ if (input.Filters != null) {
5640
5412
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5641
5413
  Object.entries(memberEntries).forEach(([key, value]) => {
5642
5414
  const loc = `Filters.${key}`;
5643
5415
  entries[loc] = value;
5644
5416
  });
5645
5417
  }
5646
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5418
+ if (input.MaxRecords != null) {
5647
5419
  entries["MaxRecords"] = input.MaxRecords;
5648
5420
  }
5649
- if (input.Marker !== undefined && input.Marker !== null) {
5421
+ if (input.Marker != null) {
5650
5422
  entries["Marker"] = input.Marker;
5651
5423
  }
5652
5424
  return entries;
5653
5425
  };
5654
5426
  const serializeAws_queryDescribePendingMaintenanceActionsMessage = (input, context) => {
5655
5427
  const entries = {};
5656
- if (input.ResourceIdentifier !== undefined && input.ResourceIdentifier !== null) {
5428
+ if (input.ResourceIdentifier != null) {
5657
5429
  entries["ResourceIdentifier"] = input.ResourceIdentifier;
5658
5430
  }
5659
- if (input.Filters !== undefined && input.Filters !== null) {
5431
+ if (input.Filters != null) {
5660
5432
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5661
5433
  Object.entries(memberEntries).forEach(([key, value]) => {
5662
5434
  const loc = `Filters.${key}`;
5663
5435
  entries[loc] = value;
5664
5436
  });
5665
5437
  }
5666
- if (input.Marker !== undefined && input.Marker !== null) {
5438
+ if (input.Marker != null) {
5667
5439
  entries["Marker"] = input.Marker;
5668
5440
  }
5669
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
5441
+ if (input.MaxRecords != null) {
5670
5442
  entries["MaxRecords"] = input.MaxRecords;
5671
5443
  }
5672
5444
  return entries;
5673
5445
  };
5674
5446
  const serializeAws_queryDescribeValidDBInstanceModificationsMessage = (input, context) => {
5675
5447
  const entries = {};
5676
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
5448
+ if (input.DBInstanceIdentifier != null) {
5677
5449
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
5678
5450
  }
5679
5451
  return entries;
@@ -5692,30 +5464,30 @@ const serializeAws_queryEventCategoriesList = (input, context) => {
5692
5464
  };
5693
5465
  const serializeAws_queryFailoverDBClusterMessage = (input, context) => {
5694
5466
  const entries = {};
5695
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5467
+ if (input.DBClusterIdentifier != null) {
5696
5468
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5697
5469
  }
5698
- if (input.TargetDBInstanceIdentifier !== undefined && input.TargetDBInstanceIdentifier !== null) {
5470
+ if (input.TargetDBInstanceIdentifier != null) {
5699
5471
  entries["TargetDBInstanceIdentifier"] = input.TargetDBInstanceIdentifier;
5700
5472
  }
5701
5473
  return entries;
5702
5474
  };
5703
5475
  const serializeAws_queryFailoverGlobalClusterMessage = (input, context) => {
5704
5476
  const entries = {};
5705
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
5477
+ if (input.GlobalClusterIdentifier != null) {
5706
5478
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
5707
5479
  }
5708
- if (input.TargetDbClusterIdentifier !== undefined && input.TargetDbClusterIdentifier !== null) {
5480
+ if (input.TargetDbClusterIdentifier != null) {
5709
5481
  entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier;
5710
5482
  }
5711
5483
  return entries;
5712
5484
  };
5713
5485
  const serializeAws_queryFilter = (input, context) => {
5714
5486
  const entries = {};
5715
- if (input.Name !== undefined && input.Name !== null) {
5487
+ if (input.Name != null) {
5716
5488
  entries["Name"] = input.Name;
5717
5489
  }
5718
- if (input.Values !== undefined && input.Values !== null) {
5490
+ if (input.Values != null) {
5719
5491
  const memberEntries = serializeAws_queryFilterValueList(input.Values, context);
5720
5492
  Object.entries(memberEntries).forEach(([key, value]) => {
5721
5493
  const loc = `Values.${key}`;
@@ -5765,10 +5537,10 @@ const serializeAws_queryKeyList = (input, context) => {
5765
5537
  };
5766
5538
  const serializeAws_queryListTagsForResourceMessage = (input, context) => {
5767
5539
  const entries = {};
5768
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
5540
+ if (input.ResourceName != null) {
5769
5541
  entries["ResourceName"] = input.ResourceName;
5770
5542
  }
5771
- if (input.Filters !== undefined && input.Filters !== null) {
5543
+ if (input.Filters != null) {
5772
5544
  const memberEntries = serializeAws_queryFilterList(input.Filters, context);
5773
5545
  Object.entries(memberEntries).forEach(([key, value]) => {
5774
5546
  const loc = `Filters.${key}`;
@@ -5791,20 +5563,20 @@ const serializeAws_queryLogTypeList = (input, context) => {
5791
5563
  };
5792
5564
  const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
5793
5565
  const entries = {};
5794
- if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
5566
+ if (input.DBClusterEndpointIdentifier != null) {
5795
5567
  entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier;
5796
5568
  }
5797
- if (input.EndpointType !== undefined && input.EndpointType !== null) {
5569
+ if (input.EndpointType != null) {
5798
5570
  entries["EndpointType"] = input.EndpointType;
5799
5571
  }
5800
- if (input.StaticMembers !== undefined && input.StaticMembers !== null) {
5572
+ if (input.StaticMembers != null) {
5801
5573
  const memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
5802
5574
  Object.entries(memberEntries).forEach(([key, value]) => {
5803
5575
  const loc = `StaticMembers.${key}`;
5804
5576
  entries[loc] = value;
5805
5577
  });
5806
5578
  }
5807
- if (input.ExcludedMembers !== undefined && input.ExcludedMembers !== null) {
5579
+ if (input.ExcludedMembers != null) {
5808
5580
  const memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
5809
5581
  Object.entries(memberEntries).forEach(([key, value]) => {
5810
5582
  const loc = `ExcludedMembers.${key}`;
@@ -5815,76 +5587,76 @@ const serializeAws_queryModifyDBClusterEndpointMessage = (input, context) => {
5815
5587
  };
5816
5588
  const serializeAws_queryModifyDBClusterMessage = (input, context) => {
5817
5589
  const entries = {};
5818
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5590
+ if (input.DBClusterIdentifier != null) {
5819
5591
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5820
5592
  }
5821
- if (input.NewDBClusterIdentifier !== undefined && input.NewDBClusterIdentifier !== null) {
5593
+ if (input.NewDBClusterIdentifier != null) {
5822
5594
  entries["NewDBClusterIdentifier"] = input.NewDBClusterIdentifier;
5823
5595
  }
5824
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
5596
+ if (input.ApplyImmediately != null) {
5825
5597
  entries["ApplyImmediately"] = input.ApplyImmediately;
5826
5598
  }
5827
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
5599
+ if (input.BackupRetentionPeriod != null) {
5828
5600
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
5829
5601
  }
5830
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
5602
+ if (input.DBClusterParameterGroupName != null) {
5831
5603
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5832
5604
  }
5833
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
5605
+ if (input.VpcSecurityGroupIds != null) {
5834
5606
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
5835
5607
  Object.entries(memberEntries).forEach(([key, value]) => {
5836
5608
  const loc = `VpcSecurityGroupIds.${key}`;
5837
5609
  entries[loc] = value;
5838
5610
  });
5839
5611
  }
5840
- if (input.Port !== undefined && input.Port !== null) {
5612
+ if (input.Port != null) {
5841
5613
  entries["Port"] = input.Port;
5842
5614
  }
5843
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
5615
+ if (input.MasterUserPassword != null) {
5844
5616
  entries["MasterUserPassword"] = input.MasterUserPassword;
5845
5617
  }
5846
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
5618
+ if (input.OptionGroupName != null) {
5847
5619
  entries["OptionGroupName"] = input.OptionGroupName;
5848
5620
  }
5849
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
5621
+ if (input.PreferredBackupWindow != null) {
5850
5622
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
5851
5623
  }
5852
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
5624
+ if (input.PreferredMaintenanceWindow != null) {
5853
5625
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
5854
5626
  }
5855
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
5627
+ if (input.EnableIAMDatabaseAuthentication != null) {
5856
5628
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
5857
5629
  }
5858
- if (input.CloudwatchLogsExportConfiguration !== undefined && input.CloudwatchLogsExportConfiguration !== null) {
5630
+ if (input.CloudwatchLogsExportConfiguration != null) {
5859
5631
  const memberEntries = serializeAws_queryCloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context);
5860
5632
  Object.entries(memberEntries).forEach(([key, value]) => {
5861
5633
  const loc = `CloudwatchLogsExportConfiguration.${key}`;
5862
5634
  entries[loc] = value;
5863
5635
  });
5864
5636
  }
5865
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5637
+ if (input.EngineVersion != null) {
5866
5638
  entries["EngineVersion"] = input.EngineVersion;
5867
5639
  }
5868
- if (input.AllowMajorVersionUpgrade !== undefined && input.AllowMajorVersionUpgrade !== null) {
5640
+ if (input.AllowMajorVersionUpgrade != null) {
5869
5641
  entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade;
5870
5642
  }
5871
- if (input.DBInstanceParameterGroupName !== undefined && input.DBInstanceParameterGroupName !== null) {
5643
+ if (input.DBInstanceParameterGroupName != null) {
5872
5644
  entries["DBInstanceParameterGroupName"] = input.DBInstanceParameterGroupName;
5873
5645
  }
5874
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
5646
+ if (input.DeletionProtection != null) {
5875
5647
  entries["DeletionProtection"] = input.DeletionProtection;
5876
5648
  }
5877
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
5649
+ if (input.CopyTagsToSnapshot != null) {
5878
5650
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
5879
5651
  }
5880
5652
  return entries;
5881
5653
  };
5882
5654
  const serializeAws_queryModifyDBClusterParameterGroupMessage = (input, context) => {
5883
5655
  const entries = {};
5884
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
5656
+ if (input.DBClusterParameterGroupName != null) {
5885
5657
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5886
5658
  }
5887
- if (input.Parameters !== undefined && input.Parameters !== null) {
5659
+ if (input.Parameters != null) {
5888
5660
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
5889
5661
  Object.entries(memberEntries).forEach(([key, value]) => {
5890
5662
  const loc = `Parameters.${key}`;
@@ -5895,20 +5667,20 @@ const serializeAws_queryModifyDBClusterParameterGroupMessage = (input, context)
5895
5667
  };
5896
5668
  const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, context) => {
5897
5669
  const entries = {};
5898
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
5670
+ if (input.DBClusterSnapshotIdentifier != null) {
5899
5671
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
5900
5672
  }
5901
- if (input.AttributeName !== undefined && input.AttributeName !== null) {
5673
+ if (input.AttributeName != null) {
5902
5674
  entries["AttributeName"] = input.AttributeName;
5903
5675
  }
5904
- if (input.ValuesToAdd !== undefined && input.ValuesToAdd !== null) {
5676
+ if (input.ValuesToAdd != null) {
5905
5677
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
5906
5678
  Object.entries(memberEntries).forEach(([key, value]) => {
5907
5679
  const loc = `ValuesToAdd.${key}`;
5908
5680
  entries[loc] = value;
5909
5681
  });
5910
5682
  }
5911
- if (input.ValuesToRemove !== undefined && input.ValuesToRemove !== null) {
5683
+ if (input.ValuesToRemove != null) {
5912
5684
  const memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
5913
5685
  Object.entries(memberEntries).forEach(([key, value]) => {
5914
5686
  const loc = `ValuesToRemove.${key}`;
@@ -5919,137 +5691,137 @@ const serializeAws_queryModifyDBClusterSnapshotAttributeMessage = (input, contex
5919
5691
  };
5920
5692
  const serializeAws_queryModifyDBInstanceMessage = (input, context) => {
5921
5693
  const entries = {};
5922
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
5694
+ if (input.DBInstanceIdentifier != null) {
5923
5695
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
5924
5696
  }
5925
- if (input.AllocatedStorage !== undefined && input.AllocatedStorage !== null) {
5697
+ if (input.AllocatedStorage != null) {
5926
5698
  entries["AllocatedStorage"] = input.AllocatedStorage;
5927
5699
  }
5928
- if (input.DBInstanceClass !== undefined && input.DBInstanceClass !== null) {
5700
+ if (input.DBInstanceClass != null) {
5929
5701
  entries["DBInstanceClass"] = input.DBInstanceClass;
5930
5702
  }
5931
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
5703
+ if (input.DBSubnetGroupName != null) {
5932
5704
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
5933
5705
  }
5934
- if (input.DBSecurityGroups !== undefined && input.DBSecurityGroups !== null) {
5706
+ if (input.DBSecurityGroups != null) {
5935
5707
  const memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
5936
5708
  Object.entries(memberEntries).forEach(([key, value]) => {
5937
5709
  const loc = `DBSecurityGroups.${key}`;
5938
5710
  entries[loc] = value;
5939
5711
  });
5940
5712
  }
5941
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
5713
+ if (input.VpcSecurityGroupIds != null) {
5942
5714
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
5943
5715
  Object.entries(memberEntries).forEach(([key, value]) => {
5944
5716
  const loc = `VpcSecurityGroupIds.${key}`;
5945
5717
  entries[loc] = value;
5946
5718
  });
5947
5719
  }
5948
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
5720
+ if (input.ApplyImmediately != null) {
5949
5721
  entries["ApplyImmediately"] = input.ApplyImmediately;
5950
5722
  }
5951
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
5723
+ if (input.MasterUserPassword != null) {
5952
5724
  entries["MasterUserPassword"] = input.MasterUserPassword;
5953
5725
  }
5954
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
5726
+ if (input.DBParameterGroupName != null) {
5955
5727
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
5956
5728
  }
5957
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
5729
+ if (input.BackupRetentionPeriod != null) {
5958
5730
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
5959
5731
  }
5960
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
5732
+ if (input.PreferredBackupWindow != null) {
5961
5733
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
5962
5734
  }
5963
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
5735
+ if (input.PreferredMaintenanceWindow != null) {
5964
5736
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
5965
5737
  }
5966
- if (input.MultiAZ !== undefined && input.MultiAZ !== null) {
5738
+ if (input.MultiAZ != null) {
5967
5739
  entries["MultiAZ"] = input.MultiAZ;
5968
5740
  }
5969
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5741
+ if (input.EngineVersion != null) {
5970
5742
  entries["EngineVersion"] = input.EngineVersion;
5971
5743
  }
5972
- if (input.AllowMajorVersionUpgrade !== undefined && input.AllowMajorVersionUpgrade !== null) {
5744
+ if (input.AllowMajorVersionUpgrade != null) {
5973
5745
  entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade;
5974
5746
  }
5975
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
5747
+ if (input.AutoMinorVersionUpgrade != null) {
5976
5748
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
5977
5749
  }
5978
- if (input.LicenseModel !== undefined && input.LicenseModel !== null) {
5750
+ if (input.LicenseModel != null) {
5979
5751
  entries["LicenseModel"] = input.LicenseModel;
5980
5752
  }
5981
- if (input.Iops !== undefined && input.Iops !== null) {
5753
+ if (input.Iops != null) {
5982
5754
  entries["Iops"] = input.Iops;
5983
5755
  }
5984
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
5756
+ if (input.OptionGroupName != null) {
5985
5757
  entries["OptionGroupName"] = input.OptionGroupName;
5986
5758
  }
5987
- if (input.NewDBInstanceIdentifier !== undefined && input.NewDBInstanceIdentifier !== null) {
5759
+ if (input.NewDBInstanceIdentifier != null) {
5988
5760
  entries["NewDBInstanceIdentifier"] = input.NewDBInstanceIdentifier;
5989
5761
  }
5990
- if (input.StorageType !== undefined && input.StorageType !== null) {
5762
+ if (input.StorageType != null) {
5991
5763
  entries["StorageType"] = input.StorageType;
5992
5764
  }
5993
- if (input.TdeCredentialArn !== undefined && input.TdeCredentialArn !== null) {
5765
+ if (input.TdeCredentialArn != null) {
5994
5766
  entries["TdeCredentialArn"] = input.TdeCredentialArn;
5995
5767
  }
5996
- if (input.TdeCredentialPassword !== undefined && input.TdeCredentialPassword !== null) {
5768
+ if (input.TdeCredentialPassword != null) {
5997
5769
  entries["TdeCredentialPassword"] = input.TdeCredentialPassword;
5998
5770
  }
5999
- if (input.CACertificateIdentifier !== undefined && input.CACertificateIdentifier !== null) {
5771
+ if (input.CACertificateIdentifier != null) {
6000
5772
  entries["CACertificateIdentifier"] = input.CACertificateIdentifier;
6001
5773
  }
6002
- if (input.Domain !== undefined && input.Domain !== null) {
5774
+ if (input.Domain != null) {
6003
5775
  entries["Domain"] = input.Domain;
6004
5776
  }
6005
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
5777
+ if (input.CopyTagsToSnapshot != null) {
6006
5778
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
6007
5779
  }
6008
- if (input.MonitoringInterval !== undefined && input.MonitoringInterval !== null) {
5780
+ if (input.MonitoringInterval != null) {
6009
5781
  entries["MonitoringInterval"] = input.MonitoringInterval;
6010
5782
  }
6011
- if (input.DBPortNumber !== undefined && input.DBPortNumber !== null) {
5783
+ if (input.DBPortNumber != null) {
6012
5784
  entries["DBPortNumber"] = input.DBPortNumber;
6013
5785
  }
6014
- if (input.PubliclyAccessible !== undefined && input.PubliclyAccessible !== null) {
5786
+ if (input.PubliclyAccessible != null) {
6015
5787
  entries["PubliclyAccessible"] = input.PubliclyAccessible;
6016
5788
  }
6017
- if (input.MonitoringRoleArn !== undefined && input.MonitoringRoleArn !== null) {
5789
+ if (input.MonitoringRoleArn != null) {
6018
5790
  entries["MonitoringRoleArn"] = input.MonitoringRoleArn;
6019
5791
  }
6020
- if (input.DomainIAMRoleName !== undefined && input.DomainIAMRoleName !== null) {
5792
+ if (input.DomainIAMRoleName != null) {
6021
5793
  entries["DomainIAMRoleName"] = input.DomainIAMRoleName;
6022
5794
  }
6023
- if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
5795
+ if (input.PromotionTier != null) {
6024
5796
  entries["PromotionTier"] = input.PromotionTier;
6025
5797
  }
6026
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
5798
+ if (input.EnableIAMDatabaseAuthentication != null) {
6027
5799
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
6028
5800
  }
6029
- if (input.EnablePerformanceInsights !== undefined && input.EnablePerformanceInsights !== null) {
5801
+ if (input.EnablePerformanceInsights != null) {
6030
5802
  entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights;
6031
5803
  }
6032
- if (input.PerformanceInsightsKMSKeyId !== undefined && input.PerformanceInsightsKMSKeyId !== null) {
5804
+ if (input.PerformanceInsightsKMSKeyId != null) {
6033
5805
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
6034
5806
  }
6035
- if (input.CloudwatchLogsExportConfiguration !== undefined && input.CloudwatchLogsExportConfiguration !== null) {
5807
+ if (input.CloudwatchLogsExportConfiguration != null) {
6036
5808
  const memberEntries = serializeAws_queryCloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context);
6037
5809
  Object.entries(memberEntries).forEach(([key, value]) => {
6038
5810
  const loc = `CloudwatchLogsExportConfiguration.${key}`;
6039
5811
  entries[loc] = value;
6040
5812
  });
6041
5813
  }
6042
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
5814
+ if (input.DeletionProtection != null) {
6043
5815
  entries["DeletionProtection"] = input.DeletionProtection;
6044
5816
  }
6045
5817
  return entries;
6046
5818
  };
6047
5819
  const serializeAws_queryModifyDBParameterGroupMessage = (input, context) => {
6048
5820
  const entries = {};
6049
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
5821
+ if (input.DBParameterGroupName != null) {
6050
5822
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
6051
5823
  }
6052
- if (input.Parameters !== undefined && input.Parameters !== null) {
5824
+ if (input.Parameters != null) {
6053
5825
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
6054
5826
  Object.entries(memberEntries).forEach(([key, value]) => {
6055
5827
  const loc = `Parameters.${key}`;
@@ -6060,13 +5832,13 @@ const serializeAws_queryModifyDBParameterGroupMessage = (input, context) => {
6060
5832
  };
6061
5833
  const serializeAws_queryModifyDBSubnetGroupMessage = (input, context) => {
6062
5834
  const entries = {};
6063
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
5835
+ if (input.DBSubnetGroupName != null) {
6064
5836
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
6065
5837
  }
6066
- if (input.DBSubnetGroupDescription !== undefined && input.DBSubnetGroupDescription !== null) {
5838
+ if (input.DBSubnetGroupDescription != null) {
6067
5839
  entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription;
6068
5840
  }
6069
- if (input.SubnetIds !== undefined && input.SubnetIds !== null) {
5841
+ if (input.SubnetIds != null) {
6070
5842
  const memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
6071
5843
  Object.entries(memberEntries).forEach(([key, value]) => {
6072
5844
  const loc = `SubnetIds.${key}`;
@@ -6077,76 +5849,76 @@ const serializeAws_queryModifyDBSubnetGroupMessage = (input, context) => {
6077
5849
  };
6078
5850
  const serializeAws_queryModifyEventSubscriptionMessage = (input, context) => {
6079
5851
  const entries = {};
6080
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
5852
+ if (input.SubscriptionName != null) {
6081
5853
  entries["SubscriptionName"] = input.SubscriptionName;
6082
5854
  }
6083
- if (input.SnsTopicArn !== undefined && input.SnsTopicArn !== null) {
5855
+ if (input.SnsTopicArn != null) {
6084
5856
  entries["SnsTopicArn"] = input.SnsTopicArn;
6085
5857
  }
6086
- if (input.SourceType !== undefined && input.SourceType !== null) {
5858
+ if (input.SourceType != null) {
6087
5859
  entries["SourceType"] = input.SourceType;
6088
5860
  }
6089
- if (input.EventCategories !== undefined && input.EventCategories !== null) {
5861
+ if (input.EventCategories != null) {
6090
5862
  const memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
6091
5863
  Object.entries(memberEntries).forEach(([key, value]) => {
6092
5864
  const loc = `EventCategories.${key}`;
6093
5865
  entries[loc] = value;
6094
5866
  });
6095
5867
  }
6096
- if (input.Enabled !== undefined && input.Enabled !== null) {
5868
+ if (input.Enabled != null) {
6097
5869
  entries["Enabled"] = input.Enabled;
6098
5870
  }
6099
5871
  return entries;
6100
5872
  };
6101
5873
  const serializeAws_queryModifyGlobalClusterMessage = (input, context) => {
6102
5874
  const entries = {};
6103
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
5875
+ if (input.GlobalClusterIdentifier != null) {
6104
5876
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
6105
5877
  }
6106
- if (input.NewGlobalClusterIdentifier !== undefined && input.NewGlobalClusterIdentifier !== null) {
5878
+ if (input.NewGlobalClusterIdentifier != null) {
6107
5879
  entries["NewGlobalClusterIdentifier"] = input.NewGlobalClusterIdentifier;
6108
5880
  }
6109
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
5881
+ if (input.DeletionProtection != null) {
6110
5882
  entries["DeletionProtection"] = input.DeletionProtection;
6111
5883
  }
6112
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5884
+ if (input.EngineVersion != null) {
6113
5885
  entries["EngineVersion"] = input.EngineVersion;
6114
5886
  }
6115
- if (input.AllowMajorVersionUpgrade !== undefined && input.AllowMajorVersionUpgrade !== null) {
5887
+ if (input.AllowMajorVersionUpgrade != null) {
6116
5888
  entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade;
6117
5889
  }
6118
5890
  return entries;
6119
5891
  };
6120
5892
  const serializeAws_queryParameter = (input, context) => {
6121
5893
  const entries = {};
6122
- if (input.ParameterName !== undefined && input.ParameterName !== null) {
5894
+ if (input.ParameterName != null) {
6123
5895
  entries["ParameterName"] = input.ParameterName;
6124
5896
  }
6125
- if (input.ParameterValue !== undefined && input.ParameterValue !== null) {
5897
+ if (input.ParameterValue != null) {
6126
5898
  entries["ParameterValue"] = input.ParameterValue;
6127
5899
  }
6128
- if (input.Description !== undefined && input.Description !== null) {
5900
+ if (input.Description != null) {
6129
5901
  entries["Description"] = input.Description;
6130
5902
  }
6131
- if (input.Source !== undefined && input.Source !== null) {
5903
+ if (input.Source != null) {
6132
5904
  entries["Source"] = input.Source;
6133
5905
  }
6134
- if (input.ApplyType !== undefined && input.ApplyType !== null) {
5906
+ if (input.ApplyType != null) {
6135
5907
  entries["ApplyType"] = input.ApplyType;
6136
5908
  }
6137
- if (input.DataType !== undefined && input.DataType !== null) {
5909
+ if (input.DataType != null) {
6138
5910
  entries["DataType"] = input.DataType;
6139
5911
  }
6140
- if (input.AllowedValues !== undefined && input.AllowedValues !== null) {
5912
+ if (input.AllowedValues != null) {
6141
5913
  entries["AllowedValues"] = input.AllowedValues;
6142
5914
  }
6143
- if (input.IsModifiable !== undefined && input.IsModifiable !== null) {
5915
+ if (input.IsModifiable != null) {
6144
5916
  entries["IsModifiable"] = input.IsModifiable;
6145
5917
  }
6146
- if (input.MinimumEngineVersion !== undefined && input.MinimumEngineVersion !== null) {
5918
+ if (input.MinimumEngineVersion != null) {
6147
5919
  entries["MinimumEngineVersion"] = input.MinimumEngineVersion;
6148
5920
  }
6149
- if (input.ApplyMethod !== undefined && input.ApplyMethod !== null) {
5921
+ if (input.ApplyMethod != null) {
6150
5922
  entries["ApplyMethod"] = input.ApplyMethod;
6151
5923
  }
6152
5924
  return entries;
@@ -6168,60 +5940,60 @@ const serializeAws_queryParametersList = (input, context) => {
6168
5940
  };
6169
5941
  const serializeAws_queryPromoteReadReplicaDBClusterMessage = (input, context) => {
6170
5942
  const entries = {};
6171
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5943
+ if (input.DBClusterIdentifier != null) {
6172
5944
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6173
5945
  }
6174
5946
  return entries;
6175
5947
  };
6176
5948
  const serializeAws_queryRebootDBInstanceMessage = (input, context) => {
6177
5949
  const entries = {};
6178
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
5950
+ if (input.DBInstanceIdentifier != null) {
6179
5951
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
6180
5952
  }
6181
- if (input.ForceFailover !== undefined && input.ForceFailover !== null) {
5953
+ if (input.ForceFailover != null) {
6182
5954
  entries["ForceFailover"] = input.ForceFailover;
6183
5955
  }
6184
5956
  return entries;
6185
5957
  };
6186
5958
  const serializeAws_queryRemoveFromGlobalClusterMessage = (input, context) => {
6187
5959
  const entries = {};
6188
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
5960
+ if (input.GlobalClusterIdentifier != null) {
6189
5961
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
6190
5962
  }
6191
- if (input.DbClusterIdentifier !== undefined && input.DbClusterIdentifier !== null) {
5963
+ if (input.DbClusterIdentifier != null) {
6192
5964
  entries["DbClusterIdentifier"] = input.DbClusterIdentifier;
6193
5965
  }
6194
5966
  return entries;
6195
5967
  };
6196
5968
  const serializeAws_queryRemoveRoleFromDBClusterMessage = (input, context) => {
6197
5969
  const entries = {};
6198
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5970
+ if (input.DBClusterIdentifier != null) {
6199
5971
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6200
5972
  }
6201
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
5973
+ if (input.RoleArn != null) {
6202
5974
  entries["RoleArn"] = input.RoleArn;
6203
5975
  }
6204
- if (input.FeatureName !== undefined && input.FeatureName !== null) {
5976
+ if (input.FeatureName != null) {
6205
5977
  entries["FeatureName"] = input.FeatureName;
6206
5978
  }
6207
5979
  return entries;
6208
5980
  };
6209
5981
  const serializeAws_queryRemoveSourceIdentifierFromSubscriptionMessage = (input, context) => {
6210
5982
  const entries = {};
6211
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
5983
+ if (input.SubscriptionName != null) {
6212
5984
  entries["SubscriptionName"] = input.SubscriptionName;
6213
5985
  }
6214
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
5986
+ if (input.SourceIdentifier != null) {
6215
5987
  entries["SourceIdentifier"] = input.SourceIdentifier;
6216
5988
  }
6217
5989
  return entries;
6218
5990
  };
6219
5991
  const serializeAws_queryRemoveTagsFromResourceMessage = (input, context) => {
6220
5992
  const entries = {};
6221
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
5993
+ if (input.ResourceName != null) {
6222
5994
  entries["ResourceName"] = input.ResourceName;
6223
5995
  }
6224
- if (input.TagKeys !== undefined && input.TagKeys !== null) {
5996
+ if (input.TagKeys != null) {
6225
5997
  const memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
6226
5998
  Object.entries(memberEntries).forEach(([key, value]) => {
6227
5999
  const loc = `TagKeys.${key}`;
@@ -6232,13 +6004,13 @@ const serializeAws_queryRemoveTagsFromResourceMessage = (input, context) => {
6232
6004
  };
6233
6005
  const serializeAws_queryResetDBClusterParameterGroupMessage = (input, context) => {
6234
6006
  const entries = {};
6235
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
6007
+ if (input.DBClusterParameterGroupName != null) {
6236
6008
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
6237
6009
  }
6238
- if (input.ResetAllParameters !== undefined && input.ResetAllParameters !== null) {
6010
+ if (input.ResetAllParameters != null) {
6239
6011
  entries["ResetAllParameters"] = input.ResetAllParameters;
6240
6012
  }
6241
- if (input.Parameters !== undefined && input.Parameters !== null) {
6013
+ if (input.Parameters != null) {
6242
6014
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
6243
6015
  Object.entries(memberEntries).forEach(([key, value]) => {
6244
6016
  const loc = `Parameters.${key}`;
@@ -6249,13 +6021,13 @@ const serializeAws_queryResetDBClusterParameterGroupMessage = (input, context) =
6249
6021
  };
6250
6022
  const serializeAws_queryResetDBParameterGroupMessage = (input, context) => {
6251
6023
  const entries = {};
6252
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
6024
+ if (input.DBParameterGroupName != null) {
6253
6025
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
6254
6026
  }
6255
- if (input.ResetAllParameters !== undefined && input.ResetAllParameters !== null) {
6027
+ if (input.ResetAllParameters != null) {
6256
6028
  entries["ResetAllParameters"] = input.ResetAllParameters;
6257
6029
  }
6258
- if (input.Parameters !== undefined && input.Parameters !== null) {
6030
+ if (input.Parameters != null) {
6259
6031
  const memberEntries = serializeAws_queryParametersList(input.Parameters, context);
6260
6032
  Object.entries(memberEntries).forEach(([key, value]) => {
6261
6033
  const loc = `Parameters.${key}`;
@@ -6266,132 +6038,132 @@ const serializeAws_queryResetDBParameterGroupMessage = (input, context) => {
6266
6038
  };
6267
6039
  const serializeAws_queryRestoreDBClusterFromSnapshotMessage = (input, context) => {
6268
6040
  const entries = {};
6269
- if (input.AvailabilityZones !== undefined && input.AvailabilityZones !== null) {
6041
+ if (input.AvailabilityZones != null) {
6270
6042
  const memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
6271
6043
  Object.entries(memberEntries).forEach(([key, value]) => {
6272
6044
  const loc = `AvailabilityZones.${key}`;
6273
6045
  entries[loc] = value;
6274
6046
  });
6275
6047
  }
6276
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6048
+ if (input.DBClusterIdentifier != null) {
6277
6049
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6278
6050
  }
6279
- if (input.SnapshotIdentifier !== undefined && input.SnapshotIdentifier !== null) {
6051
+ if (input.SnapshotIdentifier != null) {
6280
6052
  entries["SnapshotIdentifier"] = input.SnapshotIdentifier;
6281
6053
  }
6282
- if (input.Engine !== undefined && input.Engine !== null) {
6054
+ if (input.Engine != null) {
6283
6055
  entries["Engine"] = input.Engine;
6284
6056
  }
6285
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
6057
+ if (input.EngineVersion != null) {
6286
6058
  entries["EngineVersion"] = input.EngineVersion;
6287
6059
  }
6288
- if (input.Port !== undefined && input.Port !== null) {
6060
+ if (input.Port != null) {
6289
6061
  entries["Port"] = input.Port;
6290
6062
  }
6291
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
6063
+ if (input.DBSubnetGroupName != null) {
6292
6064
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
6293
6065
  }
6294
- if (input.DatabaseName !== undefined && input.DatabaseName !== null) {
6066
+ if (input.DatabaseName != null) {
6295
6067
  entries["DatabaseName"] = input.DatabaseName;
6296
6068
  }
6297
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
6069
+ if (input.OptionGroupName != null) {
6298
6070
  entries["OptionGroupName"] = input.OptionGroupName;
6299
6071
  }
6300
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
6072
+ if (input.VpcSecurityGroupIds != null) {
6301
6073
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
6302
6074
  Object.entries(memberEntries).forEach(([key, value]) => {
6303
6075
  const loc = `VpcSecurityGroupIds.${key}`;
6304
6076
  entries[loc] = value;
6305
6077
  });
6306
6078
  }
6307
- if (input.Tags !== undefined && input.Tags !== null) {
6079
+ if (input.Tags != null) {
6308
6080
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
6309
6081
  Object.entries(memberEntries).forEach(([key, value]) => {
6310
6082
  const loc = `Tags.${key}`;
6311
6083
  entries[loc] = value;
6312
6084
  });
6313
6085
  }
6314
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
6086
+ if (input.KmsKeyId != null) {
6315
6087
  entries["KmsKeyId"] = input.KmsKeyId;
6316
6088
  }
6317
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
6089
+ if (input.EnableIAMDatabaseAuthentication != null) {
6318
6090
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
6319
6091
  }
6320
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
6092
+ if (input.EnableCloudwatchLogsExports != null) {
6321
6093
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
6322
6094
  Object.entries(memberEntries).forEach(([key, value]) => {
6323
6095
  const loc = `EnableCloudwatchLogsExports.${key}`;
6324
6096
  entries[loc] = value;
6325
6097
  });
6326
6098
  }
6327
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
6099
+ if (input.DBClusterParameterGroupName != null) {
6328
6100
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
6329
6101
  }
6330
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
6102
+ if (input.DeletionProtection != null) {
6331
6103
  entries["DeletionProtection"] = input.DeletionProtection;
6332
6104
  }
6333
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
6105
+ if (input.CopyTagsToSnapshot != null) {
6334
6106
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
6335
6107
  }
6336
6108
  return entries;
6337
6109
  };
6338
6110
  const serializeAws_queryRestoreDBClusterToPointInTimeMessage = (input, context) => {
6339
6111
  const entries = {};
6340
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6112
+ if (input.DBClusterIdentifier != null) {
6341
6113
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6342
6114
  }
6343
- if (input.RestoreType !== undefined && input.RestoreType !== null) {
6115
+ if (input.RestoreType != null) {
6344
6116
  entries["RestoreType"] = input.RestoreType;
6345
6117
  }
6346
- if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
6118
+ if (input.SourceDBClusterIdentifier != null) {
6347
6119
  entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
6348
6120
  }
6349
- if (input.RestoreToTime !== undefined && input.RestoreToTime !== null) {
6121
+ if (input.RestoreToTime != null) {
6350
6122
  entries["RestoreToTime"] = input.RestoreToTime.toISOString().split(".")[0] + "Z";
6351
6123
  }
6352
- if (input.UseLatestRestorableTime !== undefined && input.UseLatestRestorableTime !== null) {
6124
+ if (input.UseLatestRestorableTime != null) {
6353
6125
  entries["UseLatestRestorableTime"] = input.UseLatestRestorableTime;
6354
6126
  }
6355
- if (input.Port !== undefined && input.Port !== null) {
6127
+ if (input.Port != null) {
6356
6128
  entries["Port"] = input.Port;
6357
6129
  }
6358
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
6130
+ if (input.DBSubnetGroupName != null) {
6359
6131
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
6360
6132
  }
6361
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
6133
+ if (input.OptionGroupName != null) {
6362
6134
  entries["OptionGroupName"] = input.OptionGroupName;
6363
6135
  }
6364
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
6136
+ if (input.VpcSecurityGroupIds != null) {
6365
6137
  const memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
6366
6138
  Object.entries(memberEntries).forEach(([key, value]) => {
6367
6139
  const loc = `VpcSecurityGroupIds.${key}`;
6368
6140
  entries[loc] = value;
6369
6141
  });
6370
6142
  }
6371
- if (input.Tags !== undefined && input.Tags !== null) {
6143
+ if (input.Tags != null) {
6372
6144
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
6373
6145
  Object.entries(memberEntries).forEach(([key, value]) => {
6374
6146
  const loc = `Tags.${key}`;
6375
6147
  entries[loc] = value;
6376
6148
  });
6377
6149
  }
6378
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
6150
+ if (input.KmsKeyId != null) {
6379
6151
  entries["KmsKeyId"] = input.KmsKeyId;
6380
6152
  }
6381
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
6153
+ if (input.EnableIAMDatabaseAuthentication != null) {
6382
6154
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
6383
6155
  }
6384
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
6156
+ if (input.EnableCloudwatchLogsExports != null) {
6385
6157
  const memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
6386
6158
  Object.entries(memberEntries).forEach(([key, value]) => {
6387
6159
  const loc = `EnableCloudwatchLogsExports.${key}`;
6388
6160
  entries[loc] = value;
6389
6161
  });
6390
6162
  }
6391
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
6163
+ if (input.DBClusterParameterGroupName != null) {
6392
6164
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
6393
6165
  }
6394
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
6166
+ if (input.DeletionProtection != null) {
6395
6167
  entries["DeletionProtection"] = input.DeletionProtection;
6396
6168
  }
6397
6169
  return entries;
@@ -6410,14 +6182,14 @@ const serializeAws_querySourceIdsList = (input, context) => {
6410
6182
  };
6411
6183
  const serializeAws_queryStartDBClusterMessage = (input, context) => {
6412
6184
  const entries = {};
6413
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6185
+ if (input.DBClusterIdentifier != null) {
6414
6186
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6415
6187
  }
6416
6188
  return entries;
6417
6189
  };
6418
6190
  const serializeAws_queryStopDBClusterMessage = (input, context) => {
6419
6191
  const entries = {};
6420
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6192
+ if (input.DBClusterIdentifier != null) {
6421
6193
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6422
6194
  }
6423
6195
  return entries;
@@ -6448,10 +6220,10 @@ const serializeAws_querySubnetIdentifierList = (input, context) => {
6448
6220
  };
6449
6221
  const serializeAws_queryTag = (input, context) => {
6450
6222
  const entries = {};
6451
- if (input.Key !== undefined && input.Key !== null) {
6223
+ if (input.Key != null) {
6452
6224
  entries["Key"] = input.Key;
6453
6225
  }
6454
- if (input.Value !== undefined && input.Value !== null) {
6226
+ if (input.Value != null) {
6455
6227
  entries["Value"] = input.Value;
6456
6228
  }
6457
6229
  return entries;
@@ -6505,9 +6277,6 @@ const deserializeAws_queryAttributeValueList = (output, context) => {
6505
6277
  return (output || [])
6506
6278
  .filter((e) => e != null)
6507
6279
  .map((entry) => {
6508
- if (entry === null) {
6509
- return null;
6510
- }
6511
6280
  return (0, smithy_client_1.expectString)(entry);
6512
6281
  });
6513
6282
  };
@@ -6533,9 +6302,6 @@ const deserializeAws_queryAvailabilityZoneList = (output, context) => {
6533
6302
  return (output || [])
6534
6303
  .filter((e) => e != null)
6535
6304
  .map((entry) => {
6536
- if (entry === null) {
6537
- return null;
6538
- }
6539
6305
  return deserializeAws_queryAvailabilityZone(entry, context);
6540
6306
  });
6541
6307
  };
@@ -6543,9 +6309,6 @@ const deserializeAws_queryAvailabilityZones = (output, context) => {
6543
6309
  return (output || [])
6544
6310
  .filter((e) => e != null)
6545
6311
  .map((entry) => {
6546
- if (entry === null) {
6547
- return null;
6548
- }
6549
6312
  return (0, smithy_client_1.expectString)(entry);
6550
6313
  });
6551
6314
  };
@@ -6985,9 +6748,6 @@ const deserializeAws_queryDBClusterEndpointList = (output, context) => {
6985
6748
  return (output || [])
6986
6749
  .filter((e) => e != null)
6987
6750
  .map((entry) => {
6988
- if (entry === null) {
6989
- return null;
6990
- }
6991
6751
  return deserializeAws_queryDBClusterEndpoint(entry, context);
6992
6752
  });
6993
6753
  };
@@ -7030,9 +6790,6 @@ const deserializeAws_queryDBClusterList = (output, context) => {
7030
6790
  return (output || [])
7031
6791
  .filter((e) => e != null)
7032
6792
  .map((entry) => {
7033
- if (entry === null) {
7034
- return null;
7035
- }
7036
6793
  return deserializeAws_queryDBCluster(entry, context);
7037
6794
  });
7038
6795
  };
@@ -7061,9 +6818,6 @@ const deserializeAws_queryDBClusterMemberList = (output, context) => {
7061
6818
  return (output || [])
7062
6819
  .filter((e) => e != null)
7063
6820
  .map((entry) => {
7064
- if (entry === null) {
7065
- return null;
7066
- }
7067
6821
  return deserializeAws_queryDBClusterMember(entry, context);
7068
6822
  });
7069
6823
  };
@@ -7096,9 +6850,6 @@ const deserializeAws_queryDBClusterOptionGroupMemberships = (output, context) =>
7096
6850
  return (output || [])
7097
6851
  .filter((e) => e != null)
7098
6852
  .map((entry) => {
7099
- if (entry === null) {
7100
- return null;
7101
- }
7102
6853
  return deserializeAws_queryDBClusterOptionGroupStatus(entry, context);
7103
6854
  });
7104
6855
  };
@@ -7156,9 +6907,6 @@ const deserializeAws_queryDBClusterParameterGroupList = (output, context) => {
7156
6907
  return (output || [])
7157
6908
  .filter((e) => e != null)
7158
6909
  .map((entry) => {
7159
- if (entry === null) {
7160
- return null;
7161
- }
7162
6910
  return deserializeAws_queryDBClusterParameterGroup(entry, context);
7163
6911
  });
7164
6912
  };
@@ -7254,9 +7002,6 @@ const deserializeAws_queryDBClusterRoles = (output, context) => {
7254
7002
  return (output || [])
7255
7003
  .filter((e) => e != null)
7256
7004
  .map((entry) => {
7257
- if (entry === null) {
7258
- return null;
7259
- }
7260
7005
  return deserializeAws_queryDBClusterRole(entry, context);
7261
7006
  });
7262
7007
  };
@@ -7378,9 +7123,6 @@ const deserializeAws_queryDBClusterSnapshotAttributeList = (output, context) =>
7378
7123
  return (output || [])
7379
7124
  .filter((e) => e != null)
7380
7125
  .map((entry) => {
7381
- if (entry === null) {
7382
- return null;
7383
- }
7384
7126
  return deserializeAws_queryDBClusterSnapshotAttribute(entry, context);
7385
7127
  });
7386
7128
  };
@@ -7405,9 +7147,6 @@ const deserializeAws_queryDBClusterSnapshotList = (output, context) => {
7405
7147
  return (output || [])
7406
7148
  .filter((e) => e != null)
7407
7149
  .map((entry) => {
7408
- if (entry === null) {
7409
- return null;
7410
- }
7411
7150
  return deserializeAws_queryDBClusterSnapshot(entry, context);
7412
7151
  });
7413
7152
  };
@@ -7512,9 +7251,6 @@ const deserializeAws_queryDBEngineVersionList = (output, context) => {
7512
7251
  return (output || [])
7513
7252
  .filter((e) => e != null)
7514
7253
  .map((entry) => {
7515
- if (entry === null) {
7516
- return null;
7517
- }
7518
7254
  return deserializeAws_queryDBEngineVersion(entry, context);
7519
7255
  });
7520
7256
  };
@@ -7798,9 +7534,6 @@ const deserializeAws_queryDBInstanceList = (output, context) => {
7798
7534
  return (output || [])
7799
7535
  .filter((e) => e != null)
7800
7536
  .map((entry) => {
7801
- if (entry === null) {
7802
- return null;
7803
- }
7804
7537
  return deserializeAws_queryDBInstance(entry, context);
7805
7538
  });
7806
7539
  };
@@ -7854,9 +7587,6 @@ const deserializeAws_queryDBInstanceStatusInfoList = (output, context) => {
7854
7587
  return (output || [])
7855
7588
  .filter((e) => e != null)
7856
7589
  .map((entry) => {
7857
- if (entry === null) {
7858
- return null;
7859
- }
7860
7590
  return deserializeAws_queryDBInstanceStatusInfo(entry, context);
7861
7591
  });
7862
7592
  };
@@ -7910,9 +7640,6 @@ const deserializeAws_queryDBParameterGroupList = (output, context) => {
7910
7640
  return (output || [])
7911
7641
  .filter((e) => e != null)
7912
7642
  .map((entry) => {
7913
- if (entry === null) {
7914
- return null;
7915
- }
7916
7643
  return deserializeAws_queryDBParameterGroup(entry, context);
7917
7644
  });
7918
7645
  };
@@ -7977,9 +7704,6 @@ const deserializeAws_queryDBParameterGroupStatusList = (output, context) => {
7977
7704
  return (output || [])
7978
7705
  .filter((e) => e != null)
7979
7706
  .map((entry) => {
7980
- if (entry === null) {
7981
- return null;
7982
- }
7983
7707
  return deserializeAws_queryDBParameterGroupStatus(entry, context);
7984
7708
  });
7985
7709
  };
@@ -8000,9 +7724,6 @@ const deserializeAws_queryDBSecurityGroupMembershipList = (output, context) => {
8000
7724
  return (output || [])
8001
7725
  .filter((e) => e != null)
8002
7726
  .map((entry) => {
8003
- if (entry === null) {
8004
- return null;
8005
- }
8006
7727
  return deserializeAws_queryDBSecurityGroupMembership(entry, context);
8007
7728
  });
8008
7729
  };
@@ -8121,9 +7842,6 @@ const deserializeAws_queryDBSubnetGroups = (output, context) => {
8121
7842
  return (output || [])
8122
7843
  .filter((e) => e != null)
8123
7844
  .map((entry) => {
8124
- if (entry === null) {
8125
- return null;
8126
- }
8127
7845
  return deserializeAws_queryDBSubnetGroup(entry, context);
8128
7846
  });
8129
7847
  };
@@ -8302,9 +8020,6 @@ const deserializeAws_queryDomainMembershipList = (output, context) => {
8302
8020
  return (output || [])
8303
8021
  .filter((e) => e != null)
8304
8022
  .map((entry) => {
8305
- if (entry === null) {
8306
- return null;
8307
- }
8308
8023
  return deserializeAws_queryDomainMembership(entry, context);
8309
8024
  });
8310
8025
  };
@@ -8334,9 +8049,6 @@ const deserializeAws_queryDoubleRangeList = (output, context) => {
8334
8049
  return (output || [])
8335
8050
  .filter((e) => e != null)
8336
8051
  .map((entry) => {
8337
- if (entry === null) {
8338
- return null;
8339
- }
8340
8052
  return deserializeAws_queryDoubleRange(entry, context);
8341
8053
  });
8342
8054
  };
@@ -8413,9 +8125,6 @@ const deserializeAws_queryEventCategoriesList = (output, context) => {
8413
8125
  return (output || [])
8414
8126
  .filter((e) => e != null)
8415
8127
  .map((entry) => {
8416
- if (entry === null) {
8417
- return null;
8418
- }
8419
8128
  return (0, smithy_client_1.expectString)(entry);
8420
8129
  });
8421
8130
  };
@@ -8439,9 +8148,6 @@ const deserializeAws_queryEventCategoriesMapList = (output, context) => {
8439
8148
  return (output || [])
8440
8149
  .filter((e) => e != null)
8441
8150
  .map((entry) => {
8442
- if (entry === null) {
8443
- return null;
8444
- }
8445
8151
  return deserializeAws_queryEventCategoriesMap(entry, context);
8446
8152
  });
8447
8153
  };
@@ -8462,9 +8168,6 @@ const deserializeAws_queryEventList = (output, context) => {
8462
8168
  return (output || [])
8463
8169
  .filter((e) => e != null)
8464
8170
  .map((entry) => {
8465
- if (entry === null) {
8466
- return null;
8467
- }
8468
8171
  return deserializeAws_queryEvent(entry, context);
8469
8172
  });
8470
8173
  };
@@ -8549,9 +8252,6 @@ const deserializeAws_queryEventSubscriptionsList = (output, context) => {
8549
8252
  return (output || [])
8550
8253
  .filter((e) => e != null)
8551
8254
  .map((entry) => {
8552
- if (entry === null) {
8553
- return null;
8554
- }
8555
8255
  return deserializeAws_queryEventSubscription(entry, context);
8556
8256
  });
8557
8257
  };
@@ -8648,9 +8348,6 @@ const deserializeAws_queryGlobalClusterList = (output, context) => {
8648
8348
  return (output || [])
8649
8349
  .filter((e) => e != null)
8650
8350
  .map((entry) => {
8651
- if (entry === null) {
8652
- return null;
8653
- }
8654
8351
  return deserializeAws_queryGlobalCluster(entry, context);
8655
8352
  });
8656
8353
  };
@@ -8678,9 +8375,6 @@ const deserializeAws_queryGlobalClusterMemberList = (output, context) => {
8678
8375
  return (output || [])
8679
8376
  .filter((e) => e != null)
8680
8377
  .map((entry) => {
8681
- if (entry === null) {
8682
- return null;
8683
- }
8684
8378
  return deserializeAws_queryGlobalClusterMember(entry, context);
8685
8379
  });
8686
8380
  };
@@ -8893,9 +8587,6 @@ const deserializeAws_queryLogTypeList = (output, context) => {
8893
8587
  return (output || [])
8894
8588
  .filter((e) => e != null)
8895
8589
  .map((entry) => {
8896
- if (entry === null) {
8897
- return null;
8898
- }
8899
8590
  return (0, smithy_client_1.expectString)(entry);
8900
8591
  });
8901
8592
  };
@@ -9021,9 +8712,6 @@ const deserializeAws_queryOptionGroupMembershipList = (output, context) => {
9021
8712
  return (output || [])
9022
8713
  .filter((e) => e != null)
9023
8714
  .map((entry) => {
9024
- if (entry === null) {
9025
- return null;
9026
- }
9027
8715
  return deserializeAws_queryOptionGroupMembership(entry, context);
9028
8716
  });
9029
8717
  };
@@ -9133,9 +8821,6 @@ const deserializeAws_queryOrderableDBInstanceOptionsList = (output, context) =>
9133
8821
  return (output || [])
9134
8822
  .filter((e) => e != null)
9135
8823
  .map((entry) => {
9136
- if (entry === null) {
9137
- return null;
9138
- }
9139
8824
  return deserializeAws_queryOrderableDBInstanceOption(entry, context);
9140
8825
  });
9141
8826
  };
@@ -9205,9 +8890,6 @@ const deserializeAws_queryParametersList = (output, context) => {
9205
8890
  return (output || [])
9206
8891
  .filter((e) => e != null)
9207
8892
  .map((entry) => {
9208
- if (entry === null) {
9209
- return null;
9210
- }
9211
8893
  return deserializeAws_queryParameter(entry, context);
9212
8894
  });
9213
8895
  };
@@ -9263,9 +8945,6 @@ const deserializeAws_queryPendingMaintenanceActionDetails = (output, context) =>
9263
8945
  return (output || [])
9264
8946
  .filter((e) => e != null)
9265
8947
  .map((entry) => {
9266
- if (entry === null) {
9267
- return null;
9268
- }
9269
8948
  return deserializeAws_queryPendingMaintenanceAction(entry, context);
9270
8949
  });
9271
8950
  };
@@ -9273,9 +8952,6 @@ const deserializeAws_queryPendingMaintenanceActions = (output, context) => {
9273
8952
  return (output || [])
9274
8953
  .filter((e) => e != null)
9275
8954
  .map((entry) => {
9276
- if (entry === null) {
9277
- return null;
9278
- }
9279
8955
  return deserializeAws_queryResourcePendingMaintenanceActions(entry, context);
9280
8956
  });
9281
8957
  };
@@ -9396,9 +9072,6 @@ const deserializeAws_queryRangeList = (output, context) => {
9396
9072
  return (output || [])
9397
9073
  .filter((e) => e != null)
9398
9074
  .map((entry) => {
9399
- if (entry === null) {
9400
- return null;
9401
- }
9402
9075
  return deserializeAws_queryRange(entry, context);
9403
9076
  });
9404
9077
  };
@@ -9406,9 +9079,6 @@ const deserializeAws_queryReadersArnList = (output, context) => {
9406
9079
  return (output || [])
9407
9080
  .filter((e) => e != null)
9408
9081
  .map((entry) => {
9409
- if (entry === null) {
9410
- return null;
9411
- }
9412
9082
  return (0, smithy_client_1.expectString)(entry);
9413
9083
  });
9414
9084
  };
@@ -9416,9 +9086,6 @@ const deserializeAws_queryReadReplicaDBClusterIdentifierList = (output, context)
9416
9086
  return (output || [])
9417
9087
  .filter((e) => e != null)
9418
9088
  .map((entry) => {
9419
- if (entry === null) {
9420
- return null;
9421
- }
9422
9089
  return (0, smithy_client_1.expectString)(entry);
9423
9090
  });
9424
9091
  };
@@ -9426,9 +9093,6 @@ const deserializeAws_queryReadReplicaDBInstanceIdentifierList = (output, context
9426
9093
  return (output || [])
9427
9094
  .filter((e) => e != null)
9428
9095
  .map((entry) => {
9429
- if (entry === null) {
9430
- return null;
9431
- }
9432
9096
  return (0, smithy_client_1.expectString)(entry);
9433
9097
  });
9434
9098
  };
@@ -9436,9 +9100,6 @@ const deserializeAws_queryReadReplicaIdentifierList = (output, context) => {
9436
9100
  return (output || [])
9437
9101
  .filter((e) => e != null)
9438
9102
  .map((entry) => {
9439
- if (entry === null) {
9440
- return null;
9441
- }
9442
9103
  return (0, smithy_client_1.expectString)(entry);
9443
9104
  });
9444
9105
  };
@@ -9562,9 +9223,6 @@ const deserializeAws_querySourceIdsList = (output, context) => {
9562
9223
  return (output || [])
9563
9224
  .filter((e) => e != null)
9564
9225
  .map((entry) => {
9565
- if (entry === null) {
9566
- return null;
9567
- }
9568
9226
  return (0, smithy_client_1.expectString)(entry);
9569
9227
  });
9570
9228
  };
@@ -9617,9 +9275,6 @@ const deserializeAws_queryStringList = (output, context) => {
9617
9275
  return (output || [])
9618
9276
  .filter((e) => e != null)
9619
9277
  .map((entry) => {
9620
- if (entry === null) {
9621
- return null;
9622
- }
9623
9278
  return (0, smithy_client_1.expectString)(entry);
9624
9279
  });
9625
9280
  };
@@ -9653,9 +9308,6 @@ const deserializeAws_querySubnetList = (output, context) => {
9653
9308
  return (output || [])
9654
9309
  .filter((e) => e != null)
9655
9310
  .map((entry) => {
9656
- if (entry === null) {
9657
- return null;
9658
- }
9659
9311
  return deserializeAws_querySubnet(entry, context);
9660
9312
  });
9661
9313
  };
@@ -9690,9 +9342,6 @@ const deserializeAws_querySupportedCharacterSetsList = (output, context) => {
9690
9342
  return (output || [])
9691
9343
  .filter((e) => e != null)
9692
9344
  .map((entry) => {
9693
- if (entry === null) {
9694
- return null;
9695
- }
9696
9345
  return deserializeAws_queryCharacterSet(entry, context);
9697
9346
  });
9698
9347
  };
@@ -9700,9 +9349,6 @@ const deserializeAws_querySupportedTimezonesList = (output, context) => {
9700
9349
  return (output || [])
9701
9350
  .filter((e) => e != null)
9702
9351
  .map((entry) => {
9703
- if (entry === null) {
9704
- return null;
9705
- }
9706
9352
  return deserializeAws_queryTimezone(entry, context);
9707
9353
  });
9708
9354
  };
@@ -9723,9 +9369,6 @@ const deserializeAws_queryTagList = (output, context) => {
9723
9369
  return (output || [])
9724
9370
  .filter((e) => e != null)
9725
9371
  .map((entry) => {
9726
- if (entry === null) {
9727
- return null;
9728
- }
9729
9372
  return deserializeAws_queryTag(entry, context);
9730
9373
  });
9731
9374
  };
@@ -9825,9 +9468,6 @@ const deserializeAws_queryValidStorageOptionsList = (output, context) => {
9825
9468
  return (output || [])
9826
9469
  .filter((e) => e != null)
9827
9470
  .map((entry) => {
9828
- if (entry === null) {
9829
- return null;
9830
- }
9831
9471
  return deserializeAws_queryValidStorageOptions(entry, context);
9832
9472
  });
9833
9473
  };
@@ -9835,9 +9475,6 @@ const deserializeAws_queryValidUpgradeTargetList = (output, context) => {
9835
9475
  return (output || [])
9836
9476
  .filter((e) => e != null)
9837
9477
  .map((entry) => {
9838
- if (entry === null) {
9839
- return null;
9840
- }
9841
9478
  return deserializeAws_queryUpgradeTarget(entry, context);
9842
9479
  });
9843
9480
  };
@@ -9858,9 +9495,6 @@ const deserializeAws_queryVpcSecurityGroupMembershipList = (output, context) =>
9858
9495
  return (output || [])
9859
9496
  .filter((e) => e != null)
9860
9497
  .map((entry) => {
9861
- if (entry === null) {
9862
- return null;
9863
- }
9864
9498
  return deserializeAws_queryVpcSecurityGroupMembership(entry, context);
9865
9499
  });
9866
9500
  };