@aws-sdk/client-neptune 3.141.0 → 3.150.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read, __values } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { decodeHTML } from "entities";
5
5
  import { parse as xmlParse } from "fast-xml-parser";
6
6
  import { AuthorizationNotFoundFault, CertificateNotFoundFault, DBClusterAlreadyExistsFault, DBClusterEndpointAlreadyExistsFault, DBClusterEndpointNotFoundFault, DBClusterEndpointQuotaExceededFault, DBClusterNotFoundFault, DBClusterParameterGroupNotFoundFault, DBClusterQuotaExceededFault, DBClusterRoleAlreadyExistsFault, DBClusterRoleNotFoundFault, DBClusterRoleQuotaExceededFault, DBClusterSnapshotAlreadyExistsFault, DBClusterSnapshotNotFoundFault, DBInstanceAlreadyExistsFault, DBInstanceNotFoundFault, DBParameterGroupAlreadyExistsFault, DBParameterGroupNotFoundFault, DBParameterGroupQuotaExceededFault, DBSecurityGroupNotFoundFault, DBSnapshotAlreadyExistsFault, DBSnapshotNotFoundFault, DBSubnetGroupAlreadyExistsFault, DBSubnetGroupDoesNotCoverEnoughAZs, DBSubnetGroupNotFoundFault, DBSubnetGroupQuotaExceededFault, DBSubnetQuotaExceededFault, DBUpgradeDependencyFailureFault, DomainNotFoundFault, EventSubscriptionQuotaExceededFault, GlobalClusterAlreadyExistsFault, GlobalClusterNotFoundFault, GlobalClusterQuotaExceededFault, InstanceQuotaExceededFault, InsufficientDBClusterCapacityFault, InsufficientDBInstanceCapacityFault, InsufficientStorageClusterCapacityFault, InvalidDBClusterEndpointStateFault, InvalidDBClusterSnapshotStateFault, InvalidDBClusterStateFault, InvalidDBInstanceStateFault, InvalidDBParameterGroupStateFault, InvalidDBSecurityGroupStateFault, InvalidDBSnapshotStateFault, InvalidDBSubnetGroupStateFault, InvalidDBSubnetStateFault, InvalidEventSubscriptionStateFault, InvalidGlobalClusterStateFault, InvalidRestoreFault, InvalidSubnet, InvalidVPCNetworkStateFault, KMSKeyNotAccessibleFault, OptionGroupNotFoundFault, ProvisionedIopsNotAvailableInAZFault, ResourceNotFoundFault, SharedSnapshotQuotaExceededFault, SnapshotQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, StorageQuotaExceededFault, StorageTypeNotSupportedFault, SubnetAlreadyInUse, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionNotFoundFault, } from "../models/models_0";
@@ -714,7 +714,7 @@ export var deserializeAws_queryAddRoleToDBClusterCommand = function (output, con
714
714
  });
715
715
  }); };
716
716
  var deserializeAws_queryAddRoleToDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
717
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
717
+ var parsedOutput, _a, errorCode, _b, parsedBody;
718
718
  var _c;
719
719
  return __generator(this, function (_d) {
720
720
  switch (_d.label) {
@@ -747,14 +747,14 @@ var deserializeAws_queryAddRoleToDBClusterCommandError = function (output, conte
747
747
  case 9: throw _d.sent();
748
748
  case 10:
749
749
  parsedBody = parsedOutput.body;
750
- $metadata = deserializeMetadata(output);
751
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
752
- response = new __BaseException({
753
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
754
- $fault: "client",
755
- $metadata: $metadata,
750
+ throwDefaultError({
751
+ output: output,
752
+ parsedBody: parsedBody.Error,
753
+ exceptionCtor: __BaseException,
754
+ errorCode: errorCode,
756
755
  });
757
- throw __decorateServiceException(response, parsedBody.Error);
756
+ _d.label = 11;
757
+ case 11: return [2];
758
758
  }
759
759
  });
760
760
  }); };
@@ -777,7 +777,7 @@ export var deserializeAws_queryAddSourceIdentifierToSubscriptionCommand = functi
777
777
  });
778
778
  }); };
779
779
  var deserializeAws_queryAddSourceIdentifierToSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
780
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
780
+ var parsedOutput, _a, errorCode, _b, parsedBody;
781
781
  var _c;
782
782
  return __generator(this, function (_d) {
783
783
  switch (_d.label) {
@@ -802,14 +802,14 @@ var deserializeAws_queryAddSourceIdentifierToSubscriptionCommandError = function
802
802
  case 5: throw _d.sent();
803
803
  case 6:
804
804
  parsedBody = parsedOutput.body;
805
- $metadata = deserializeMetadata(output);
806
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
807
- response = new __BaseException({
808
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
809
- $fault: "client",
810
- $metadata: $metadata,
805
+ throwDefaultError({
806
+ output: output,
807
+ parsedBody: parsedBody.Error,
808
+ exceptionCtor: __BaseException,
809
+ errorCode: errorCode,
811
810
  });
812
- throw __decorateServiceException(response, parsedBody.Error);
811
+ _d.label = 7;
812
+ case 7: return [2];
813
813
  }
814
814
  });
815
815
  }); };
@@ -832,7 +832,7 @@ export var deserializeAws_queryAddTagsToResourceCommand = function (output, cont
832
832
  });
833
833
  }); };
834
834
  var deserializeAws_queryAddTagsToResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
835
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
835
+ var parsedOutput, _a, errorCode, _b, parsedBody;
836
836
  var _c;
837
837
  return __generator(this, function (_d) {
838
838
  switch (_d.label) {
@@ -861,14 +861,14 @@ var deserializeAws_queryAddTagsToResourceCommandError = function (output, contex
861
861
  case 7: throw _d.sent();
862
862
  case 8:
863
863
  parsedBody = parsedOutput.body;
864
- $metadata = deserializeMetadata(output);
865
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
866
- response = new __BaseException({
867
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
868
- $fault: "client",
869
- $metadata: $metadata,
864
+ throwDefaultError({
865
+ output: output,
866
+ parsedBody: parsedBody.Error,
867
+ exceptionCtor: __BaseException,
868
+ errorCode: errorCode,
870
869
  });
871
- throw __decorateServiceException(response, parsedBody.Error);
870
+ _d.label = 9;
871
+ case 9: return [2];
872
872
  }
873
873
  });
874
874
  }); };
@@ -891,7 +891,7 @@ export var deserializeAws_queryApplyPendingMaintenanceActionCommand = function (
891
891
  });
892
892
  }); };
893
893
  var deserializeAws_queryApplyPendingMaintenanceActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
894
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
894
+ var parsedOutput, _a, errorCode, _b, parsedBody;
895
895
  var _c;
896
896
  return __generator(this, function (_d) {
897
897
  switch (_d.label) {
@@ -912,14 +912,14 @@ var deserializeAws_queryApplyPendingMaintenanceActionCommandError = function (ou
912
912
  case 3: throw _d.sent();
913
913
  case 4:
914
914
  parsedBody = parsedOutput.body;
915
- $metadata = deserializeMetadata(output);
916
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
917
- response = new __BaseException({
918
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
919
- $fault: "client",
920
- $metadata: $metadata,
915
+ throwDefaultError({
916
+ output: output,
917
+ parsedBody: parsedBody.Error,
918
+ exceptionCtor: __BaseException,
919
+ errorCode: errorCode,
921
920
  });
922
- throw __decorateServiceException(response, parsedBody.Error);
921
+ _d.label = 5;
922
+ case 5: return [2];
923
923
  }
924
924
  });
925
925
  }); };
@@ -942,7 +942,7 @@ export var deserializeAws_queryCopyDBClusterParameterGroupCommand = function (ou
942
942
  });
943
943
  }); };
944
944
  var deserializeAws_queryCopyDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
945
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
945
+ var parsedOutput, _a, errorCode, _b, parsedBody;
946
946
  var _c;
947
947
  return __generator(this, function (_d) {
948
948
  switch (_d.label) {
@@ -971,14 +971,14 @@ var deserializeAws_queryCopyDBClusterParameterGroupCommandError = function (outp
971
971
  case 7: throw _d.sent();
972
972
  case 8:
973
973
  parsedBody = parsedOutput.body;
974
- $metadata = deserializeMetadata(output);
975
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
976
- response = new __BaseException({
977
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
978
- $fault: "client",
979
- $metadata: $metadata,
974
+ throwDefaultError({
975
+ output: output,
976
+ parsedBody: parsedBody.Error,
977
+ exceptionCtor: __BaseException,
978
+ errorCode: errorCode,
980
979
  });
981
- throw __decorateServiceException(response, parsedBody.Error);
980
+ _d.label = 9;
981
+ case 9: return [2];
982
982
  }
983
983
  });
984
984
  }); };
@@ -1001,7 +1001,7 @@ export var deserializeAws_queryCopyDBClusterSnapshotCommand = function (output,
1001
1001
  });
1002
1002
  }); };
1003
1003
  var deserializeAws_queryCopyDBClusterSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1004
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1004
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1005
1005
  var _c;
1006
1006
  return __generator(this, function (_d) {
1007
1007
  switch (_d.label) {
@@ -1042,14 +1042,14 @@ var deserializeAws_queryCopyDBClusterSnapshotCommandError = function (output, co
1042
1042
  case 13: throw _d.sent();
1043
1043
  case 14:
1044
1044
  parsedBody = parsedOutput.body;
1045
- $metadata = deserializeMetadata(output);
1046
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1047
- response = new __BaseException({
1048
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1049
- $fault: "client",
1050
- $metadata: $metadata,
1045
+ throwDefaultError({
1046
+ output: output,
1047
+ parsedBody: parsedBody.Error,
1048
+ exceptionCtor: __BaseException,
1049
+ errorCode: errorCode,
1051
1050
  });
1052
- throw __decorateServiceException(response, parsedBody.Error);
1051
+ _d.label = 15;
1052
+ case 15: return [2];
1053
1053
  }
1054
1054
  });
1055
1055
  }); };
@@ -1072,7 +1072,7 @@ export var deserializeAws_queryCopyDBParameterGroupCommand = function (output, c
1072
1072
  });
1073
1073
  }); };
1074
1074
  var deserializeAws_queryCopyDBParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1075
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1075
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1076
1076
  var _c;
1077
1077
  return __generator(this, function (_d) {
1078
1078
  switch (_d.label) {
@@ -1101,14 +1101,14 @@ var deserializeAws_queryCopyDBParameterGroupCommandError = function (output, con
1101
1101
  case 7: throw _d.sent();
1102
1102
  case 8:
1103
1103
  parsedBody = parsedOutput.body;
1104
- $metadata = deserializeMetadata(output);
1105
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1106
- response = new __BaseException({
1107
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1108
- $fault: "client",
1109
- $metadata: $metadata,
1104
+ throwDefaultError({
1105
+ output: output,
1106
+ parsedBody: parsedBody.Error,
1107
+ exceptionCtor: __BaseException,
1108
+ errorCode: errorCode,
1110
1109
  });
1111
- throw __decorateServiceException(response, parsedBody.Error);
1110
+ _d.label = 9;
1111
+ case 9: return [2];
1112
1112
  }
1113
1113
  });
1114
1114
  }); };
@@ -1131,7 +1131,7 @@ export var deserializeAws_queryCreateDBClusterCommand = function (output, contex
1131
1131
  });
1132
1132
  }); };
1133
1133
  var deserializeAws_queryCreateDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1134
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1134
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1135
1135
  var _c;
1136
1136
  return __generator(this, function (_d) {
1137
1137
  switch (_d.label) {
@@ -1216,14 +1216,14 @@ var deserializeAws_queryCreateDBClusterCommandError = function (output, context)
1216
1216
  case 35: throw _d.sent();
1217
1217
  case 36:
1218
1218
  parsedBody = parsedOutput.body;
1219
- $metadata = deserializeMetadata(output);
1220
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1221
- response = new __BaseException({
1222
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1223
- $fault: "client",
1224
- $metadata: $metadata,
1219
+ throwDefaultError({
1220
+ output: output,
1221
+ parsedBody: parsedBody.Error,
1222
+ exceptionCtor: __BaseException,
1223
+ errorCode: errorCode,
1225
1224
  });
1226
- throw __decorateServiceException(response, parsedBody.Error);
1225
+ _d.label = 37;
1226
+ case 37: return [2];
1227
1227
  }
1228
1228
  });
1229
1229
  }); };
@@ -1246,7 +1246,7 @@ export var deserializeAws_queryCreateDBClusterEndpointCommand = function (output
1246
1246
  });
1247
1247
  }); };
1248
1248
  var deserializeAws_queryCreateDBClusterEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1249
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1249
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1250
1250
  var _c;
1251
1251
  return __generator(this, function (_d) {
1252
1252
  switch (_d.label) {
@@ -1287,14 +1287,14 @@ var deserializeAws_queryCreateDBClusterEndpointCommandError = function (output,
1287
1287
  case 13: throw _d.sent();
1288
1288
  case 14:
1289
1289
  parsedBody = parsedOutput.body;
1290
- $metadata = deserializeMetadata(output);
1291
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1292
- response = new __BaseException({
1293
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1294
- $fault: "client",
1295
- $metadata: $metadata,
1290
+ throwDefaultError({
1291
+ output: output,
1292
+ parsedBody: parsedBody.Error,
1293
+ exceptionCtor: __BaseException,
1294
+ errorCode: errorCode,
1296
1295
  });
1297
- throw __decorateServiceException(response, parsedBody.Error);
1296
+ _d.label = 15;
1297
+ case 15: return [2];
1298
1298
  }
1299
1299
  });
1300
1300
  }); };
@@ -1317,7 +1317,7 @@ export var deserializeAws_queryCreateDBClusterParameterGroupCommand = function (
1317
1317
  });
1318
1318
  }); };
1319
1319
  var deserializeAws_queryCreateDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1320
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1320
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1321
1321
  var _c;
1322
1322
  return __generator(this, function (_d) {
1323
1323
  switch (_d.label) {
@@ -1342,14 +1342,14 @@ var deserializeAws_queryCreateDBClusterParameterGroupCommandError = function (ou
1342
1342
  case 5: throw _d.sent();
1343
1343
  case 6:
1344
1344
  parsedBody = parsedOutput.body;
1345
- $metadata = deserializeMetadata(output);
1346
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1347
- response = new __BaseException({
1348
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1349
- $fault: "client",
1350
- $metadata: $metadata,
1345
+ throwDefaultError({
1346
+ output: output,
1347
+ parsedBody: parsedBody.Error,
1348
+ exceptionCtor: __BaseException,
1349
+ errorCode: errorCode,
1351
1350
  });
1352
- throw __decorateServiceException(response, parsedBody.Error);
1351
+ _d.label = 7;
1352
+ case 7: return [2];
1353
1353
  }
1354
1354
  });
1355
1355
  }); };
@@ -1372,7 +1372,7 @@ export var deserializeAws_queryCreateDBClusterSnapshotCommand = function (output
1372
1372
  });
1373
1373
  }); };
1374
1374
  var deserializeAws_queryCreateDBClusterSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1375
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1375
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1376
1376
  var _c;
1377
1377
  return __generator(this, function (_d) {
1378
1378
  switch (_d.label) {
@@ -1409,14 +1409,14 @@ var deserializeAws_queryCreateDBClusterSnapshotCommandError = function (output,
1409
1409
  case 11: throw _d.sent();
1410
1410
  case 12:
1411
1411
  parsedBody = parsedOutput.body;
1412
- $metadata = deserializeMetadata(output);
1413
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1414
- response = new __BaseException({
1415
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1416
- $fault: "client",
1417
- $metadata: $metadata,
1412
+ throwDefaultError({
1413
+ output: output,
1414
+ parsedBody: parsedBody.Error,
1415
+ exceptionCtor: __BaseException,
1416
+ errorCode: errorCode,
1418
1417
  });
1419
- throw __decorateServiceException(response, parsedBody.Error);
1418
+ _d.label = 13;
1419
+ case 13: return [2];
1420
1420
  }
1421
1421
  });
1422
1422
  }); };
@@ -1439,7 +1439,7 @@ export var deserializeAws_queryCreateDBInstanceCommand = function (output, conte
1439
1439
  });
1440
1440
  }); };
1441
1441
  var deserializeAws_queryCreateDBInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1442
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1442
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1443
1443
  var _c;
1444
1444
  return __generator(this, function (_d) {
1445
1445
  switch (_d.label) {
@@ -1528,14 +1528,14 @@ var deserializeAws_queryCreateDBInstanceCommandError = function (output, context
1528
1528
  case 37: throw _d.sent();
1529
1529
  case 38:
1530
1530
  parsedBody = parsedOutput.body;
1531
- $metadata = deserializeMetadata(output);
1532
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1533
- response = new __BaseException({
1534
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1535
- $fault: "client",
1536
- $metadata: $metadata,
1531
+ throwDefaultError({
1532
+ output: output,
1533
+ parsedBody: parsedBody.Error,
1534
+ exceptionCtor: __BaseException,
1535
+ errorCode: errorCode,
1537
1536
  });
1538
- throw __decorateServiceException(response, parsedBody.Error);
1537
+ _d.label = 39;
1538
+ case 39: return [2];
1539
1539
  }
1540
1540
  });
1541
1541
  }); };
@@ -1558,7 +1558,7 @@ export var deserializeAws_queryCreateDBParameterGroupCommand = function (output,
1558
1558
  });
1559
1559
  }); };
1560
1560
  var deserializeAws_queryCreateDBParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1561
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1561
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1562
1562
  var _c;
1563
1563
  return __generator(this, function (_d) {
1564
1564
  switch (_d.label) {
@@ -1583,14 +1583,14 @@ var deserializeAws_queryCreateDBParameterGroupCommandError = function (output, c
1583
1583
  case 5: throw _d.sent();
1584
1584
  case 6:
1585
1585
  parsedBody = parsedOutput.body;
1586
- $metadata = deserializeMetadata(output);
1587
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1588
- response = new __BaseException({
1589
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1590
- $fault: "client",
1591
- $metadata: $metadata,
1586
+ throwDefaultError({
1587
+ output: output,
1588
+ parsedBody: parsedBody.Error,
1589
+ exceptionCtor: __BaseException,
1590
+ errorCode: errorCode,
1592
1591
  });
1593
- throw __decorateServiceException(response, parsedBody.Error);
1592
+ _d.label = 7;
1593
+ case 7: return [2];
1594
1594
  }
1595
1595
  });
1596
1596
  }); };
@@ -1613,7 +1613,7 @@ export var deserializeAws_queryCreateDBSubnetGroupCommand = function (output, co
1613
1613
  });
1614
1614
  }); };
1615
1615
  var deserializeAws_queryCreateDBSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1616
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1616
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1617
1617
  var _c;
1618
1618
  return __generator(this, function (_d) {
1619
1619
  switch (_d.label) {
@@ -1650,14 +1650,14 @@ var deserializeAws_queryCreateDBSubnetGroupCommandError = function (output, cont
1650
1650
  case 11: throw _d.sent();
1651
1651
  case 12:
1652
1652
  parsedBody = parsedOutput.body;
1653
- $metadata = deserializeMetadata(output);
1654
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1655
- response = new __BaseException({
1656
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1657
- $fault: "client",
1658
- $metadata: $metadata,
1653
+ throwDefaultError({
1654
+ output: output,
1655
+ parsedBody: parsedBody.Error,
1656
+ exceptionCtor: __BaseException,
1657
+ errorCode: errorCode,
1659
1658
  });
1660
- throw __decorateServiceException(response, parsedBody.Error);
1659
+ _d.label = 13;
1660
+ case 13: return [2];
1661
1661
  }
1662
1662
  });
1663
1663
  }); };
@@ -1680,7 +1680,7 @@ export var deserializeAws_queryCreateEventSubscriptionCommand = function (output
1680
1680
  });
1681
1681
  }); };
1682
1682
  var deserializeAws_queryCreateEventSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1683
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1683
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1684
1684
  var _c;
1685
1685
  return __generator(this, function (_d) {
1686
1686
  switch (_d.label) {
@@ -1725,14 +1725,14 @@ var deserializeAws_queryCreateEventSubscriptionCommandError = function (output,
1725
1725
  case 15: throw _d.sent();
1726
1726
  case 16:
1727
1727
  parsedBody = parsedOutput.body;
1728
- $metadata = deserializeMetadata(output);
1729
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1730
- response = new __BaseException({
1731
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1732
- $fault: "client",
1733
- $metadata: $metadata,
1728
+ throwDefaultError({
1729
+ output: output,
1730
+ parsedBody: parsedBody.Error,
1731
+ exceptionCtor: __BaseException,
1732
+ errorCode: errorCode,
1734
1733
  });
1735
- throw __decorateServiceException(response, parsedBody.Error);
1734
+ _d.label = 17;
1735
+ case 17: return [2];
1736
1736
  }
1737
1737
  });
1738
1738
  }); };
@@ -1755,7 +1755,7 @@ export var deserializeAws_queryCreateGlobalClusterCommand = function (output, co
1755
1755
  });
1756
1756
  }); };
1757
1757
  var deserializeAws_queryCreateGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1758
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1758
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1759
1759
  var _c;
1760
1760
  return __generator(this, function (_d) {
1761
1761
  switch (_d.label) {
@@ -1788,14 +1788,14 @@ var deserializeAws_queryCreateGlobalClusterCommandError = function (output, cont
1788
1788
  case 9: throw _d.sent();
1789
1789
  case 10:
1790
1790
  parsedBody = parsedOutput.body;
1791
- $metadata = deserializeMetadata(output);
1792
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1793
- response = new __BaseException({
1794
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1795
- $fault: "client",
1796
- $metadata: $metadata,
1791
+ throwDefaultError({
1792
+ output: output,
1793
+ parsedBody: parsedBody.Error,
1794
+ exceptionCtor: __BaseException,
1795
+ errorCode: errorCode,
1797
1796
  });
1798
- throw __decorateServiceException(response, parsedBody.Error);
1797
+ _d.label = 11;
1798
+ case 11: return [2];
1799
1799
  }
1800
1800
  });
1801
1801
  }); };
@@ -1818,7 +1818,7 @@ export var deserializeAws_queryDeleteDBClusterCommand = function (output, contex
1818
1818
  });
1819
1819
  }); };
1820
1820
  var deserializeAws_queryDeleteDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1821
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1821
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1822
1822
  var _c;
1823
1823
  return __generator(this, function (_d) {
1824
1824
  switch (_d.label) {
@@ -1855,14 +1855,14 @@ var deserializeAws_queryDeleteDBClusterCommandError = function (output, context)
1855
1855
  case 11: throw _d.sent();
1856
1856
  case 12:
1857
1857
  parsedBody = parsedOutput.body;
1858
- $metadata = deserializeMetadata(output);
1859
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1860
- response = new __BaseException({
1861
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1862
- $fault: "client",
1863
- $metadata: $metadata,
1858
+ throwDefaultError({
1859
+ output: output,
1860
+ parsedBody: parsedBody.Error,
1861
+ exceptionCtor: __BaseException,
1862
+ errorCode: errorCode,
1864
1863
  });
1865
- throw __decorateServiceException(response, parsedBody.Error);
1864
+ _d.label = 13;
1865
+ case 13: return [2];
1866
1866
  }
1867
1867
  });
1868
1868
  }); };
@@ -1885,7 +1885,7 @@ export var deserializeAws_queryDeleteDBClusterEndpointCommand = function (output
1885
1885
  });
1886
1886
  }); };
1887
1887
  var deserializeAws_queryDeleteDBClusterEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1888
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1888
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1889
1889
  var _c;
1890
1890
  return __generator(this, function (_d) {
1891
1891
  switch (_d.label) {
@@ -1914,14 +1914,14 @@ var deserializeAws_queryDeleteDBClusterEndpointCommandError = function (output,
1914
1914
  case 7: throw _d.sent();
1915
1915
  case 8:
1916
1916
  parsedBody = parsedOutput.body;
1917
- $metadata = deserializeMetadata(output);
1918
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1919
- response = new __BaseException({
1920
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1921
- $fault: "client",
1922
- $metadata: $metadata,
1917
+ throwDefaultError({
1918
+ output: output,
1919
+ parsedBody: parsedBody.Error,
1920
+ exceptionCtor: __BaseException,
1921
+ errorCode: errorCode,
1923
1922
  });
1924
- throw __decorateServiceException(response, parsedBody.Error);
1923
+ _d.label = 9;
1924
+ case 9: return [2];
1925
1925
  }
1926
1926
  });
1927
1927
  }); };
@@ -1944,7 +1944,7 @@ export var deserializeAws_queryDeleteDBClusterParameterGroupCommand = function (
1944
1944
  });
1945
1945
  }); };
1946
1946
  var deserializeAws_queryDeleteDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1947
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1947
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1948
1948
  var _c;
1949
1949
  return __generator(this, function (_d) {
1950
1950
  switch (_d.label) {
@@ -1969,14 +1969,14 @@ var deserializeAws_queryDeleteDBClusterParameterGroupCommandError = function (ou
1969
1969
  case 5: throw _d.sent();
1970
1970
  case 6:
1971
1971
  parsedBody = parsedOutput.body;
1972
- $metadata = deserializeMetadata(output);
1973
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1974
- response = new __BaseException({
1975
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1976
- $fault: "client",
1977
- $metadata: $metadata,
1972
+ throwDefaultError({
1973
+ output: output,
1974
+ parsedBody: parsedBody.Error,
1975
+ exceptionCtor: __BaseException,
1976
+ errorCode: errorCode,
1978
1977
  });
1979
- throw __decorateServiceException(response, parsedBody.Error);
1978
+ _d.label = 7;
1979
+ case 7: return [2];
1980
1980
  }
1981
1981
  });
1982
1982
  }); };
@@ -1999,7 +1999,7 @@ export var deserializeAws_queryDeleteDBClusterSnapshotCommand = function (output
1999
1999
  });
2000
2000
  }); };
2001
2001
  var deserializeAws_queryDeleteDBClusterSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2002
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2002
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2003
2003
  var _c;
2004
2004
  return __generator(this, function (_d) {
2005
2005
  switch (_d.label) {
@@ -2024,14 +2024,14 @@ var deserializeAws_queryDeleteDBClusterSnapshotCommandError = function (output,
2024
2024
  case 5: throw _d.sent();
2025
2025
  case 6:
2026
2026
  parsedBody = parsedOutput.body;
2027
- $metadata = deserializeMetadata(output);
2028
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2029
- response = new __BaseException({
2030
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2031
- $fault: "client",
2032
- $metadata: $metadata,
2027
+ throwDefaultError({
2028
+ output: output,
2029
+ parsedBody: parsedBody.Error,
2030
+ exceptionCtor: __BaseException,
2031
+ errorCode: errorCode,
2033
2032
  });
2034
- throw __decorateServiceException(response, parsedBody.Error);
2033
+ _d.label = 7;
2034
+ case 7: return [2];
2035
2035
  }
2036
2036
  });
2037
2037
  }); };
@@ -2054,7 +2054,7 @@ export var deserializeAws_queryDeleteDBInstanceCommand = function (output, conte
2054
2054
  });
2055
2055
  }); };
2056
2056
  var deserializeAws_queryDeleteDBInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2057
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2057
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2058
2058
  var _c;
2059
2059
  return __generator(this, function (_d) {
2060
2060
  switch (_d.label) {
@@ -2091,14 +2091,14 @@ var deserializeAws_queryDeleteDBInstanceCommandError = function (output, context
2091
2091
  case 11: throw _d.sent();
2092
2092
  case 12:
2093
2093
  parsedBody = parsedOutput.body;
2094
- $metadata = deserializeMetadata(output);
2095
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2096
- response = new __BaseException({
2097
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2098
- $fault: "client",
2099
- $metadata: $metadata,
2094
+ throwDefaultError({
2095
+ output: output,
2096
+ parsedBody: parsedBody.Error,
2097
+ exceptionCtor: __BaseException,
2098
+ errorCode: errorCode,
2100
2099
  });
2101
- throw __decorateServiceException(response, parsedBody.Error);
2100
+ _d.label = 13;
2101
+ case 13: return [2];
2102
2102
  }
2103
2103
  });
2104
2104
  }); };
@@ -2121,7 +2121,7 @@ export var deserializeAws_queryDeleteDBParameterGroupCommand = function (output,
2121
2121
  });
2122
2122
  }); };
2123
2123
  var deserializeAws_queryDeleteDBParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2124
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2124
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2125
2125
  var _c;
2126
2126
  return __generator(this, function (_d) {
2127
2127
  switch (_d.label) {
@@ -2146,14 +2146,14 @@ var deserializeAws_queryDeleteDBParameterGroupCommandError = function (output, c
2146
2146
  case 5: throw _d.sent();
2147
2147
  case 6:
2148
2148
  parsedBody = parsedOutput.body;
2149
- $metadata = deserializeMetadata(output);
2150
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2151
- response = new __BaseException({
2152
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2153
- $fault: "client",
2154
- $metadata: $metadata,
2149
+ throwDefaultError({
2150
+ output: output,
2151
+ parsedBody: parsedBody.Error,
2152
+ exceptionCtor: __BaseException,
2153
+ errorCode: errorCode,
2155
2154
  });
2156
- throw __decorateServiceException(response, parsedBody.Error);
2155
+ _d.label = 7;
2156
+ case 7: return [2];
2157
2157
  }
2158
2158
  });
2159
2159
  }); };
@@ -2176,7 +2176,7 @@ export var deserializeAws_queryDeleteDBSubnetGroupCommand = function (output, co
2176
2176
  });
2177
2177
  }); };
2178
2178
  var deserializeAws_queryDeleteDBSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2179
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2179
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2180
2180
  var _c;
2181
2181
  return __generator(this, function (_d) {
2182
2182
  switch (_d.label) {
@@ -2205,14 +2205,14 @@ var deserializeAws_queryDeleteDBSubnetGroupCommandError = function (output, cont
2205
2205
  case 7: throw _d.sent();
2206
2206
  case 8:
2207
2207
  parsedBody = parsedOutput.body;
2208
- $metadata = deserializeMetadata(output);
2209
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2210
- response = new __BaseException({
2211
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2212
- $fault: "client",
2213
- $metadata: $metadata,
2208
+ throwDefaultError({
2209
+ output: output,
2210
+ parsedBody: parsedBody.Error,
2211
+ exceptionCtor: __BaseException,
2212
+ errorCode: errorCode,
2214
2213
  });
2215
- throw __decorateServiceException(response, parsedBody.Error);
2214
+ _d.label = 9;
2215
+ case 9: return [2];
2216
2216
  }
2217
2217
  });
2218
2218
  }); };
@@ -2235,7 +2235,7 @@ export var deserializeAws_queryDeleteEventSubscriptionCommand = function (output
2235
2235
  });
2236
2236
  }); };
2237
2237
  var deserializeAws_queryDeleteEventSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2238
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2238
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2239
2239
  var _c;
2240
2240
  return __generator(this, function (_d) {
2241
2241
  switch (_d.label) {
@@ -2260,14 +2260,14 @@ var deserializeAws_queryDeleteEventSubscriptionCommandError = function (output,
2260
2260
  case 5: throw _d.sent();
2261
2261
  case 6:
2262
2262
  parsedBody = parsedOutput.body;
2263
- $metadata = deserializeMetadata(output);
2264
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2265
- response = new __BaseException({
2266
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2267
- $fault: "client",
2268
- $metadata: $metadata,
2263
+ throwDefaultError({
2264
+ output: output,
2265
+ parsedBody: parsedBody.Error,
2266
+ exceptionCtor: __BaseException,
2267
+ errorCode: errorCode,
2269
2268
  });
2270
- throw __decorateServiceException(response, parsedBody.Error);
2269
+ _d.label = 7;
2270
+ case 7: return [2];
2271
2271
  }
2272
2272
  });
2273
2273
  }); };
@@ -2290,7 +2290,7 @@ export var deserializeAws_queryDeleteGlobalClusterCommand = function (output, co
2290
2290
  });
2291
2291
  }); };
2292
2292
  var deserializeAws_queryDeleteGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2293
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2293
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2294
2294
  var _c;
2295
2295
  return __generator(this, function (_d) {
2296
2296
  switch (_d.label) {
@@ -2315,14 +2315,14 @@ var deserializeAws_queryDeleteGlobalClusterCommandError = function (output, cont
2315
2315
  case 5: throw _d.sent();
2316
2316
  case 6:
2317
2317
  parsedBody = parsedOutput.body;
2318
- $metadata = deserializeMetadata(output);
2319
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2320
- response = new __BaseException({
2321
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2322
- $fault: "client",
2323
- $metadata: $metadata,
2318
+ throwDefaultError({
2319
+ output: output,
2320
+ parsedBody: parsedBody.Error,
2321
+ exceptionCtor: __BaseException,
2322
+ errorCode: errorCode,
2324
2323
  });
2325
- throw __decorateServiceException(response, parsedBody.Error);
2324
+ _d.label = 7;
2325
+ case 7: return [2];
2326
2326
  }
2327
2327
  });
2328
2328
  }); };
@@ -2345,7 +2345,7 @@ export var deserializeAws_queryDescribeDBClusterEndpointsCommand = function (out
2345
2345
  });
2346
2346
  }); };
2347
2347
  var deserializeAws_queryDescribeDBClusterEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2348
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2348
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2349
2349
  var _c;
2350
2350
  return __generator(this, function (_d) {
2351
2351
  switch (_d.label) {
@@ -2366,14 +2366,14 @@ var deserializeAws_queryDescribeDBClusterEndpointsCommandError = function (outpu
2366
2366
  case 3: throw _d.sent();
2367
2367
  case 4:
2368
2368
  parsedBody = parsedOutput.body;
2369
- $metadata = deserializeMetadata(output);
2370
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2371
- response = new __BaseException({
2372
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2373
- $fault: "client",
2374
- $metadata: $metadata,
2369
+ throwDefaultError({
2370
+ output: output,
2371
+ parsedBody: parsedBody.Error,
2372
+ exceptionCtor: __BaseException,
2373
+ errorCode: errorCode,
2375
2374
  });
2376
- throw __decorateServiceException(response, parsedBody.Error);
2375
+ _d.label = 5;
2376
+ case 5: return [2];
2377
2377
  }
2378
2378
  });
2379
2379
  }); };
@@ -2396,7 +2396,7 @@ export var deserializeAws_queryDescribeDBClusterParameterGroupsCommand = functio
2396
2396
  });
2397
2397
  }); };
2398
2398
  var deserializeAws_queryDescribeDBClusterParameterGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2399
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2399
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2400
2400
  var _c;
2401
2401
  return __generator(this, function (_d) {
2402
2402
  switch (_d.label) {
@@ -2417,14 +2417,14 @@ var deserializeAws_queryDescribeDBClusterParameterGroupsCommandError = function
2417
2417
  case 3: throw _d.sent();
2418
2418
  case 4:
2419
2419
  parsedBody = parsedOutput.body;
2420
- $metadata = deserializeMetadata(output);
2421
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2422
- response = new __BaseException({
2423
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2424
- $fault: "client",
2425
- $metadata: $metadata,
2420
+ throwDefaultError({
2421
+ output: output,
2422
+ parsedBody: parsedBody.Error,
2423
+ exceptionCtor: __BaseException,
2424
+ errorCode: errorCode,
2426
2425
  });
2427
- throw __decorateServiceException(response, parsedBody.Error);
2426
+ _d.label = 5;
2427
+ case 5: return [2];
2428
2428
  }
2429
2429
  });
2430
2430
  }); };
@@ -2447,7 +2447,7 @@ export var deserializeAws_queryDescribeDBClusterParametersCommand = function (ou
2447
2447
  });
2448
2448
  }); };
2449
2449
  var deserializeAws_queryDescribeDBClusterParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2450
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2450
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2451
2451
  var _c;
2452
2452
  return __generator(this, function (_d) {
2453
2453
  switch (_d.label) {
@@ -2468,14 +2468,14 @@ var deserializeAws_queryDescribeDBClusterParametersCommandError = function (outp
2468
2468
  case 3: throw _d.sent();
2469
2469
  case 4:
2470
2470
  parsedBody = parsedOutput.body;
2471
- $metadata = deserializeMetadata(output);
2472
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2473
- response = new __BaseException({
2474
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2475
- $fault: "client",
2476
- $metadata: $metadata,
2471
+ throwDefaultError({
2472
+ output: output,
2473
+ parsedBody: parsedBody.Error,
2474
+ exceptionCtor: __BaseException,
2475
+ errorCode: errorCode,
2477
2476
  });
2478
- throw __decorateServiceException(response, parsedBody.Error);
2477
+ _d.label = 5;
2478
+ case 5: return [2];
2479
2479
  }
2480
2480
  });
2481
2481
  }); };
@@ -2498,7 +2498,7 @@ export var deserializeAws_queryDescribeDBClustersCommand = function (output, con
2498
2498
  });
2499
2499
  }); };
2500
2500
  var deserializeAws_queryDescribeDBClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2501
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2501
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2502
2502
  var _c;
2503
2503
  return __generator(this, function (_d) {
2504
2504
  switch (_d.label) {
@@ -2519,14 +2519,14 @@ var deserializeAws_queryDescribeDBClustersCommandError = function (output, conte
2519
2519
  case 3: throw _d.sent();
2520
2520
  case 4:
2521
2521
  parsedBody = parsedOutput.body;
2522
- $metadata = deserializeMetadata(output);
2523
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2524
- response = new __BaseException({
2525
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2526
- $fault: "client",
2527
- $metadata: $metadata,
2522
+ throwDefaultError({
2523
+ output: output,
2524
+ parsedBody: parsedBody.Error,
2525
+ exceptionCtor: __BaseException,
2526
+ errorCode: errorCode,
2528
2527
  });
2529
- throw __decorateServiceException(response, parsedBody.Error);
2528
+ _d.label = 5;
2529
+ case 5: return [2];
2530
2530
  }
2531
2531
  });
2532
2532
  }); };
@@ -2549,7 +2549,7 @@ export var deserializeAws_queryDescribeDBClusterSnapshotAttributesCommand = func
2549
2549
  });
2550
2550
  }); };
2551
2551
  var deserializeAws_queryDescribeDBClusterSnapshotAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2552
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2552
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2553
2553
  var _c;
2554
2554
  return __generator(this, function (_d) {
2555
2555
  switch (_d.label) {
@@ -2570,14 +2570,14 @@ var deserializeAws_queryDescribeDBClusterSnapshotAttributesCommandError = functi
2570
2570
  case 3: throw _d.sent();
2571
2571
  case 4:
2572
2572
  parsedBody = parsedOutput.body;
2573
- $metadata = deserializeMetadata(output);
2574
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2575
- response = new __BaseException({
2576
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2577
- $fault: "client",
2578
- $metadata: $metadata,
2573
+ throwDefaultError({
2574
+ output: output,
2575
+ parsedBody: parsedBody.Error,
2576
+ exceptionCtor: __BaseException,
2577
+ errorCode: errorCode,
2579
2578
  });
2580
- throw __decorateServiceException(response, parsedBody.Error);
2579
+ _d.label = 5;
2580
+ case 5: return [2];
2581
2581
  }
2582
2582
  });
2583
2583
  }); };
@@ -2600,7 +2600,7 @@ export var deserializeAws_queryDescribeDBClusterSnapshotsCommand = function (out
2600
2600
  });
2601
2601
  }); };
2602
2602
  var deserializeAws_queryDescribeDBClusterSnapshotsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2603
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2603
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2604
2604
  var _c;
2605
2605
  return __generator(this, function (_d) {
2606
2606
  switch (_d.label) {
@@ -2621,14 +2621,14 @@ var deserializeAws_queryDescribeDBClusterSnapshotsCommandError = function (outpu
2621
2621
  case 3: throw _d.sent();
2622
2622
  case 4:
2623
2623
  parsedBody = parsedOutput.body;
2624
- $metadata = deserializeMetadata(output);
2625
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2626
- response = new __BaseException({
2627
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2628
- $fault: "client",
2629
- $metadata: $metadata,
2624
+ throwDefaultError({
2625
+ output: output,
2626
+ parsedBody: parsedBody.Error,
2627
+ exceptionCtor: __BaseException,
2628
+ errorCode: errorCode,
2630
2629
  });
2631
- throw __decorateServiceException(response, parsedBody.Error);
2630
+ _d.label = 5;
2631
+ case 5: return [2];
2632
2632
  }
2633
2633
  });
2634
2634
  }); };
@@ -2651,7 +2651,7 @@ export var deserializeAws_queryDescribeDBEngineVersionsCommand = function (outpu
2651
2651
  });
2652
2652
  }); };
2653
2653
  var deserializeAws_queryDescribeDBEngineVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2654
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2654
+ var parsedOutput, _a, errorCode, parsedBody;
2655
2655
  var _b;
2656
2656
  return __generator(this, function (_c) {
2657
2657
  switch (_c.label) {
@@ -2662,18 +2662,13 @@ var deserializeAws_queryDescribeDBEngineVersionsCommandError = function (output,
2662
2662
  case 1:
2663
2663
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2664
2664
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2665
- switch (errorCode) {
2666
- default:
2667
- parsedBody = parsedOutput.body;
2668
- $metadata = deserializeMetadata(output);
2669
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2670
- response = new __BaseException({
2671
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2672
- $fault: "client",
2673
- $metadata: $metadata,
2674
- });
2675
- throw __decorateServiceException(response, parsedBody.Error);
2676
- }
2665
+ parsedBody = parsedOutput.body;
2666
+ throwDefaultError({
2667
+ output: output,
2668
+ parsedBody: parsedBody.Error,
2669
+ exceptionCtor: __BaseException,
2670
+ errorCode: errorCode,
2671
+ });
2677
2672
  return [2];
2678
2673
  }
2679
2674
  });
@@ -2697,7 +2692,7 @@ export var deserializeAws_queryDescribeDBInstancesCommand = function (output, co
2697
2692
  });
2698
2693
  }); };
2699
2694
  var deserializeAws_queryDescribeDBInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2700
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2695
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2701
2696
  var _c;
2702
2697
  return __generator(this, function (_d) {
2703
2698
  switch (_d.label) {
@@ -2718,14 +2713,14 @@ var deserializeAws_queryDescribeDBInstancesCommandError = function (output, cont
2718
2713
  case 3: throw _d.sent();
2719
2714
  case 4:
2720
2715
  parsedBody = parsedOutput.body;
2721
- $metadata = deserializeMetadata(output);
2722
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2723
- response = new __BaseException({
2724
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2725
- $fault: "client",
2726
- $metadata: $metadata,
2716
+ throwDefaultError({
2717
+ output: output,
2718
+ parsedBody: parsedBody.Error,
2719
+ exceptionCtor: __BaseException,
2720
+ errorCode: errorCode,
2727
2721
  });
2728
- throw __decorateServiceException(response, parsedBody.Error);
2722
+ _d.label = 5;
2723
+ case 5: return [2];
2729
2724
  }
2730
2725
  });
2731
2726
  }); };
@@ -2748,7 +2743,7 @@ export var deserializeAws_queryDescribeDBParameterGroupsCommand = function (outp
2748
2743
  });
2749
2744
  }); };
2750
2745
  var deserializeAws_queryDescribeDBParameterGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2751
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2746
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2752
2747
  var _c;
2753
2748
  return __generator(this, function (_d) {
2754
2749
  switch (_d.label) {
@@ -2769,14 +2764,14 @@ var deserializeAws_queryDescribeDBParameterGroupsCommandError = function (output
2769
2764
  case 3: throw _d.sent();
2770
2765
  case 4:
2771
2766
  parsedBody = parsedOutput.body;
2772
- $metadata = deserializeMetadata(output);
2773
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2774
- response = new __BaseException({
2775
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2776
- $fault: "client",
2777
- $metadata: $metadata,
2767
+ throwDefaultError({
2768
+ output: output,
2769
+ parsedBody: parsedBody.Error,
2770
+ exceptionCtor: __BaseException,
2771
+ errorCode: errorCode,
2778
2772
  });
2779
- throw __decorateServiceException(response, parsedBody.Error);
2773
+ _d.label = 5;
2774
+ case 5: return [2];
2780
2775
  }
2781
2776
  });
2782
2777
  }); };
@@ -2799,7 +2794,7 @@ export var deserializeAws_queryDescribeDBParametersCommand = function (output, c
2799
2794
  });
2800
2795
  }); };
2801
2796
  var deserializeAws_queryDescribeDBParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2802
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2797
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2803
2798
  var _c;
2804
2799
  return __generator(this, function (_d) {
2805
2800
  switch (_d.label) {
@@ -2820,14 +2815,14 @@ var deserializeAws_queryDescribeDBParametersCommandError = function (output, con
2820
2815
  case 3: throw _d.sent();
2821
2816
  case 4:
2822
2817
  parsedBody = parsedOutput.body;
2823
- $metadata = deserializeMetadata(output);
2824
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2825
- response = new __BaseException({
2826
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2827
- $fault: "client",
2828
- $metadata: $metadata,
2818
+ throwDefaultError({
2819
+ output: output,
2820
+ parsedBody: parsedBody.Error,
2821
+ exceptionCtor: __BaseException,
2822
+ errorCode: errorCode,
2829
2823
  });
2830
- throw __decorateServiceException(response, parsedBody.Error);
2824
+ _d.label = 5;
2825
+ case 5: return [2];
2831
2826
  }
2832
2827
  });
2833
2828
  }); };
@@ -2850,7 +2845,7 @@ export var deserializeAws_queryDescribeDBSubnetGroupsCommand = function (output,
2850
2845
  });
2851
2846
  }); };
2852
2847
  var deserializeAws_queryDescribeDBSubnetGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2853
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2848
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2854
2849
  var _c;
2855
2850
  return __generator(this, function (_d) {
2856
2851
  switch (_d.label) {
@@ -2871,14 +2866,14 @@ var deserializeAws_queryDescribeDBSubnetGroupsCommandError = function (output, c
2871
2866
  case 3: throw _d.sent();
2872
2867
  case 4:
2873
2868
  parsedBody = parsedOutput.body;
2874
- $metadata = deserializeMetadata(output);
2875
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2876
- response = new __BaseException({
2877
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2878
- $fault: "client",
2879
- $metadata: $metadata,
2869
+ throwDefaultError({
2870
+ output: output,
2871
+ parsedBody: parsedBody.Error,
2872
+ exceptionCtor: __BaseException,
2873
+ errorCode: errorCode,
2880
2874
  });
2881
- throw __decorateServiceException(response, parsedBody.Error);
2875
+ _d.label = 5;
2876
+ case 5: return [2];
2882
2877
  }
2883
2878
  });
2884
2879
  }); };
@@ -2901,7 +2896,7 @@ export var deserializeAws_queryDescribeEngineDefaultClusterParametersCommand = f
2901
2896
  });
2902
2897
  }); };
2903
2898
  var deserializeAws_queryDescribeEngineDefaultClusterParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2904
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2899
+ var parsedOutput, _a, errorCode, parsedBody;
2905
2900
  var _b;
2906
2901
  return __generator(this, function (_c) {
2907
2902
  switch (_c.label) {
@@ -2912,18 +2907,13 @@ var deserializeAws_queryDescribeEngineDefaultClusterParametersCommandError = fun
2912
2907
  case 1:
2913
2908
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2914
2909
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2915
- switch (errorCode) {
2916
- default:
2917
- parsedBody = parsedOutput.body;
2918
- $metadata = deserializeMetadata(output);
2919
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2920
- response = new __BaseException({
2921
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2922
- $fault: "client",
2923
- $metadata: $metadata,
2924
- });
2925
- throw __decorateServiceException(response, parsedBody.Error);
2926
- }
2910
+ parsedBody = parsedOutput.body;
2911
+ throwDefaultError({
2912
+ output: output,
2913
+ parsedBody: parsedBody.Error,
2914
+ exceptionCtor: __BaseException,
2915
+ errorCode: errorCode,
2916
+ });
2927
2917
  return [2];
2928
2918
  }
2929
2919
  });
@@ -2947,7 +2937,7 @@ export var deserializeAws_queryDescribeEngineDefaultParametersCommand = function
2947
2937
  });
2948
2938
  }); };
2949
2939
  var deserializeAws_queryDescribeEngineDefaultParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2950
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2940
+ var parsedOutput, _a, errorCode, parsedBody;
2951
2941
  var _b;
2952
2942
  return __generator(this, function (_c) {
2953
2943
  switch (_c.label) {
@@ -2958,18 +2948,13 @@ var deserializeAws_queryDescribeEngineDefaultParametersCommandError = function (
2958
2948
  case 1:
2959
2949
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2960
2950
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2961
- switch (errorCode) {
2962
- default:
2963
- parsedBody = parsedOutput.body;
2964
- $metadata = deserializeMetadata(output);
2965
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2966
- response = new __BaseException({
2967
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2968
- $fault: "client",
2969
- $metadata: $metadata,
2970
- });
2971
- throw __decorateServiceException(response, parsedBody.Error);
2972
- }
2951
+ parsedBody = parsedOutput.body;
2952
+ throwDefaultError({
2953
+ output: output,
2954
+ parsedBody: parsedBody.Error,
2955
+ exceptionCtor: __BaseException,
2956
+ errorCode: errorCode,
2957
+ });
2973
2958
  return [2];
2974
2959
  }
2975
2960
  });
@@ -2993,7 +2978,7 @@ export var deserializeAws_queryDescribeEventCategoriesCommand = function (output
2993
2978
  });
2994
2979
  }); };
2995
2980
  var deserializeAws_queryDescribeEventCategoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2996
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2981
+ var parsedOutput, _a, errorCode, parsedBody;
2997
2982
  var _b;
2998
2983
  return __generator(this, function (_c) {
2999
2984
  switch (_c.label) {
@@ -3004,18 +2989,13 @@ var deserializeAws_queryDescribeEventCategoriesCommandError = function (output,
3004
2989
  case 1:
3005
2990
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
3006
2991
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3007
- switch (errorCode) {
3008
- default:
3009
- parsedBody = parsedOutput.body;
3010
- $metadata = deserializeMetadata(output);
3011
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3012
- response = new __BaseException({
3013
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3014
- $fault: "client",
3015
- $metadata: $metadata,
3016
- });
3017
- throw __decorateServiceException(response, parsedBody.Error);
3018
- }
2992
+ parsedBody = parsedOutput.body;
2993
+ throwDefaultError({
2994
+ output: output,
2995
+ parsedBody: parsedBody.Error,
2996
+ exceptionCtor: __BaseException,
2997
+ errorCode: errorCode,
2998
+ });
3019
2999
  return [2];
3020
3000
  }
3021
3001
  });
@@ -3039,7 +3019,7 @@ export var deserializeAws_queryDescribeEventsCommand = function (output, context
3039
3019
  });
3040
3020
  }); };
3041
3021
  var deserializeAws_queryDescribeEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3042
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
3022
+ var parsedOutput, _a, errorCode, parsedBody;
3043
3023
  var _b;
3044
3024
  return __generator(this, function (_c) {
3045
3025
  switch (_c.label) {
@@ -3050,18 +3030,13 @@ var deserializeAws_queryDescribeEventsCommandError = function (output, context)
3050
3030
  case 1:
3051
3031
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
3052
3032
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3053
- switch (errorCode) {
3054
- default:
3055
- parsedBody = parsedOutput.body;
3056
- $metadata = deserializeMetadata(output);
3057
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3058
- response = new __BaseException({
3059
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3060
- $fault: "client",
3061
- $metadata: $metadata,
3062
- });
3063
- throw __decorateServiceException(response, parsedBody.Error);
3064
- }
3033
+ parsedBody = parsedOutput.body;
3034
+ throwDefaultError({
3035
+ output: output,
3036
+ parsedBody: parsedBody.Error,
3037
+ exceptionCtor: __BaseException,
3038
+ errorCode: errorCode,
3039
+ });
3065
3040
  return [2];
3066
3041
  }
3067
3042
  });
@@ -3085,7 +3060,7 @@ export var deserializeAws_queryDescribeEventSubscriptionsCommand = function (out
3085
3060
  });
3086
3061
  }); };
3087
3062
  var deserializeAws_queryDescribeEventSubscriptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3088
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3063
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3089
3064
  var _c;
3090
3065
  return __generator(this, function (_d) {
3091
3066
  switch (_d.label) {
@@ -3106,14 +3081,14 @@ var deserializeAws_queryDescribeEventSubscriptionsCommandError = function (outpu
3106
3081
  case 3: throw _d.sent();
3107
3082
  case 4:
3108
3083
  parsedBody = parsedOutput.body;
3109
- $metadata = deserializeMetadata(output);
3110
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3111
- response = new __BaseException({
3112
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3113
- $fault: "client",
3114
- $metadata: $metadata,
3084
+ throwDefaultError({
3085
+ output: output,
3086
+ parsedBody: parsedBody.Error,
3087
+ exceptionCtor: __BaseException,
3088
+ errorCode: errorCode,
3115
3089
  });
3116
- throw __decorateServiceException(response, parsedBody.Error);
3090
+ _d.label = 5;
3091
+ case 5: return [2];
3117
3092
  }
3118
3093
  });
3119
3094
  }); };
@@ -3136,7 +3111,7 @@ export var deserializeAws_queryDescribeGlobalClustersCommand = function (output,
3136
3111
  });
3137
3112
  }); };
3138
3113
  var deserializeAws_queryDescribeGlobalClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3139
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3114
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3140
3115
  var _c;
3141
3116
  return __generator(this, function (_d) {
3142
3117
  switch (_d.label) {
@@ -3157,14 +3132,14 @@ var deserializeAws_queryDescribeGlobalClustersCommandError = function (output, c
3157
3132
  case 3: throw _d.sent();
3158
3133
  case 4:
3159
3134
  parsedBody = parsedOutput.body;
3160
- $metadata = deserializeMetadata(output);
3161
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3162
- response = new __BaseException({
3163
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3164
- $fault: "client",
3165
- $metadata: $metadata,
3135
+ throwDefaultError({
3136
+ output: output,
3137
+ parsedBody: parsedBody.Error,
3138
+ exceptionCtor: __BaseException,
3139
+ errorCode: errorCode,
3166
3140
  });
3167
- throw __decorateServiceException(response, parsedBody.Error);
3141
+ _d.label = 5;
3142
+ case 5: return [2];
3168
3143
  }
3169
3144
  });
3170
3145
  }); };
@@ -3187,7 +3162,7 @@ export var deserializeAws_queryDescribeOrderableDBInstanceOptionsCommand = funct
3187
3162
  });
3188
3163
  }); };
3189
3164
  var deserializeAws_queryDescribeOrderableDBInstanceOptionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3190
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
3165
+ var parsedOutput, _a, errorCode, parsedBody;
3191
3166
  var _b;
3192
3167
  return __generator(this, function (_c) {
3193
3168
  switch (_c.label) {
@@ -3198,18 +3173,13 @@ var deserializeAws_queryDescribeOrderableDBInstanceOptionsCommandError = functio
3198
3173
  case 1:
3199
3174
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
3200
3175
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3201
- switch (errorCode) {
3202
- default:
3203
- parsedBody = parsedOutput.body;
3204
- $metadata = deserializeMetadata(output);
3205
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3206
- response = new __BaseException({
3207
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3208
- $fault: "client",
3209
- $metadata: $metadata,
3210
- });
3211
- throw __decorateServiceException(response, parsedBody.Error);
3212
- }
3176
+ parsedBody = parsedOutput.body;
3177
+ throwDefaultError({
3178
+ output: output,
3179
+ parsedBody: parsedBody.Error,
3180
+ exceptionCtor: __BaseException,
3181
+ errorCode: errorCode,
3182
+ });
3213
3183
  return [2];
3214
3184
  }
3215
3185
  });
@@ -3233,7 +3203,7 @@ export var deserializeAws_queryDescribePendingMaintenanceActionsCommand = functi
3233
3203
  });
3234
3204
  }); };
3235
3205
  var deserializeAws_queryDescribePendingMaintenanceActionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3236
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3206
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3237
3207
  var _c;
3238
3208
  return __generator(this, function (_d) {
3239
3209
  switch (_d.label) {
@@ -3254,14 +3224,14 @@ var deserializeAws_queryDescribePendingMaintenanceActionsCommandError = function
3254
3224
  case 3: throw _d.sent();
3255
3225
  case 4:
3256
3226
  parsedBody = parsedOutput.body;
3257
- $metadata = deserializeMetadata(output);
3258
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3259
- response = new __BaseException({
3260
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3261
- $fault: "client",
3262
- $metadata: $metadata,
3227
+ throwDefaultError({
3228
+ output: output,
3229
+ parsedBody: parsedBody.Error,
3230
+ exceptionCtor: __BaseException,
3231
+ errorCode: errorCode,
3263
3232
  });
3264
- throw __decorateServiceException(response, parsedBody.Error);
3233
+ _d.label = 5;
3234
+ case 5: return [2];
3265
3235
  }
3266
3236
  });
3267
3237
  }); };
@@ -3284,7 +3254,7 @@ export var deserializeAws_queryDescribeValidDBInstanceModificationsCommand = fun
3284
3254
  });
3285
3255
  }); };
3286
3256
  var deserializeAws_queryDescribeValidDBInstanceModificationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3287
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3257
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3288
3258
  var _c;
3289
3259
  return __generator(this, function (_d) {
3290
3260
  switch (_d.label) {
@@ -3309,14 +3279,14 @@ var deserializeAws_queryDescribeValidDBInstanceModificationsCommandError = funct
3309
3279
  case 5: throw _d.sent();
3310
3280
  case 6:
3311
3281
  parsedBody = parsedOutput.body;
3312
- $metadata = deserializeMetadata(output);
3313
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3314
- response = new __BaseException({
3315
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3316
- $fault: "client",
3317
- $metadata: $metadata,
3282
+ throwDefaultError({
3283
+ output: output,
3284
+ parsedBody: parsedBody.Error,
3285
+ exceptionCtor: __BaseException,
3286
+ errorCode: errorCode,
3318
3287
  });
3319
- throw __decorateServiceException(response, parsedBody.Error);
3288
+ _d.label = 7;
3289
+ case 7: return [2];
3320
3290
  }
3321
3291
  });
3322
3292
  }); };
@@ -3339,7 +3309,7 @@ export var deserializeAws_queryFailoverDBClusterCommand = function (output, cont
3339
3309
  });
3340
3310
  }); };
3341
3311
  var deserializeAws_queryFailoverDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3342
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3312
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3343
3313
  var _c;
3344
3314
  return __generator(this, function (_d) {
3345
3315
  switch (_d.label) {
@@ -3368,14 +3338,14 @@ var deserializeAws_queryFailoverDBClusterCommandError = function (output, contex
3368
3338
  case 7: throw _d.sent();
3369
3339
  case 8:
3370
3340
  parsedBody = parsedOutput.body;
3371
- $metadata = deserializeMetadata(output);
3372
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3373
- response = new __BaseException({
3374
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3375
- $fault: "client",
3376
- $metadata: $metadata,
3341
+ throwDefaultError({
3342
+ output: output,
3343
+ parsedBody: parsedBody.Error,
3344
+ exceptionCtor: __BaseException,
3345
+ errorCode: errorCode,
3377
3346
  });
3378
- throw __decorateServiceException(response, parsedBody.Error);
3347
+ _d.label = 9;
3348
+ case 9: return [2];
3379
3349
  }
3380
3350
  });
3381
3351
  }); };
@@ -3398,7 +3368,7 @@ export var deserializeAws_queryFailoverGlobalClusterCommand = function (output,
3398
3368
  });
3399
3369
  }); };
3400
3370
  var deserializeAws_queryFailoverGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3401
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3371
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3402
3372
  var _c;
3403
3373
  return __generator(this, function (_d) {
3404
3374
  switch (_d.label) {
@@ -3431,14 +3401,14 @@ var deserializeAws_queryFailoverGlobalClusterCommandError = function (output, co
3431
3401
  case 9: throw _d.sent();
3432
3402
  case 10:
3433
3403
  parsedBody = parsedOutput.body;
3434
- $metadata = deserializeMetadata(output);
3435
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3436
- response = new __BaseException({
3437
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3438
- $fault: "client",
3439
- $metadata: $metadata,
3404
+ throwDefaultError({
3405
+ output: output,
3406
+ parsedBody: parsedBody.Error,
3407
+ exceptionCtor: __BaseException,
3408
+ errorCode: errorCode,
3440
3409
  });
3441
- throw __decorateServiceException(response, parsedBody.Error);
3410
+ _d.label = 11;
3411
+ case 11: return [2];
3442
3412
  }
3443
3413
  });
3444
3414
  }); };
@@ -3461,7 +3431,7 @@ export var deserializeAws_queryListTagsForResourceCommand = function (output, co
3461
3431
  });
3462
3432
  }); };
3463
3433
  var deserializeAws_queryListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3464
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3434
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3465
3435
  var _c;
3466
3436
  return __generator(this, function (_d) {
3467
3437
  switch (_d.label) {
@@ -3490,14 +3460,14 @@ var deserializeAws_queryListTagsForResourceCommandError = function (output, cont
3490
3460
  case 7: throw _d.sent();
3491
3461
  case 8:
3492
3462
  parsedBody = parsedOutput.body;
3493
- $metadata = deserializeMetadata(output);
3494
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3495
- response = new __BaseException({
3496
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3497
- $fault: "client",
3498
- $metadata: $metadata,
3463
+ throwDefaultError({
3464
+ output: output,
3465
+ parsedBody: parsedBody.Error,
3466
+ exceptionCtor: __BaseException,
3467
+ errorCode: errorCode,
3499
3468
  });
3500
- throw __decorateServiceException(response, parsedBody.Error);
3469
+ _d.label = 9;
3470
+ case 9: return [2];
3501
3471
  }
3502
3472
  });
3503
3473
  }); };
@@ -3520,7 +3490,7 @@ export var deserializeAws_queryModifyDBClusterCommand = function (output, contex
3520
3490
  });
3521
3491
  }); };
3522
3492
  var deserializeAws_queryModifyDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3523
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3493
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3524
3494
  var _c;
3525
3495
  return __generator(this, function (_d) {
3526
3496
  switch (_d.label) {
@@ -3581,14 +3551,14 @@ var deserializeAws_queryModifyDBClusterCommandError = function (output, context)
3581
3551
  case 23: throw _d.sent();
3582
3552
  case 24:
3583
3553
  parsedBody = parsedOutput.body;
3584
- $metadata = deserializeMetadata(output);
3585
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3586
- response = new __BaseException({
3587
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3588
- $fault: "client",
3589
- $metadata: $metadata,
3554
+ throwDefaultError({
3555
+ output: output,
3556
+ parsedBody: parsedBody.Error,
3557
+ exceptionCtor: __BaseException,
3558
+ errorCode: errorCode,
3590
3559
  });
3591
- throw __decorateServiceException(response, parsedBody.Error);
3560
+ _d.label = 25;
3561
+ case 25: return [2];
3592
3562
  }
3593
3563
  });
3594
3564
  }); };
@@ -3611,7 +3581,7 @@ export var deserializeAws_queryModifyDBClusterEndpointCommand = function (output
3611
3581
  });
3612
3582
  }); };
3613
3583
  var deserializeAws_queryModifyDBClusterEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3614
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3584
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3615
3585
  var _c;
3616
3586
  return __generator(this, function (_d) {
3617
3587
  switch (_d.label) {
@@ -3648,14 +3618,14 @@ var deserializeAws_queryModifyDBClusterEndpointCommandError = function (output,
3648
3618
  case 11: throw _d.sent();
3649
3619
  case 12:
3650
3620
  parsedBody = parsedOutput.body;
3651
- $metadata = deserializeMetadata(output);
3652
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3653
- response = new __BaseException({
3654
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3655
- $fault: "client",
3656
- $metadata: $metadata,
3621
+ throwDefaultError({
3622
+ output: output,
3623
+ parsedBody: parsedBody.Error,
3624
+ exceptionCtor: __BaseException,
3625
+ errorCode: errorCode,
3657
3626
  });
3658
- throw __decorateServiceException(response, parsedBody.Error);
3627
+ _d.label = 13;
3628
+ case 13: return [2];
3659
3629
  }
3660
3630
  });
3661
3631
  }); };
@@ -3678,7 +3648,7 @@ export var deserializeAws_queryModifyDBClusterParameterGroupCommand = function (
3678
3648
  });
3679
3649
  }); };
3680
3650
  var deserializeAws_queryModifyDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3681
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3651
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3682
3652
  var _c;
3683
3653
  return __generator(this, function (_d) {
3684
3654
  switch (_d.label) {
@@ -3703,14 +3673,14 @@ var deserializeAws_queryModifyDBClusterParameterGroupCommandError = function (ou
3703
3673
  case 5: throw _d.sent();
3704
3674
  case 6:
3705
3675
  parsedBody = parsedOutput.body;
3706
- $metadata = deserializeMetadata(output);
3707
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3708
- response = new __BaseException({
3709
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3710
- $fault: "client",
3711
- $metadata: $metadata,
3676
+ throwDefaultError({
3677
+ output: output,
3678
+ parsedBody: parsedBody.Error,
3679
+ exceptionCtor: __BaseException,
3680
+ errorCode: errorCode,
3712
3681
  });
3713
- throw __decorateServiceException(response, parsedBody.Error);
3682
+ _d.label = 7;
3683
+ case 7: return [2];
3714
3684
  }
3715
3685
  });
3716
3686
  }); };
@@ -3733,7 +3703,7 @@ export var deserializeAws_queryModifyDBClusterSnapshotAttributeCommand = functio
3733
3703
  });
3734
3704
  }); };
3735
3705
  var deserializeAws_queryModifyDBClusterSnapshotAttributeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3736
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3706
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3737
3707
  var _c;
3738
3708
  return __generator(this, function (_d) {
3739
3709
  switch (_d.label) {
@@ -3762,14 +3732,14 @@ var deserializeAws_queryModifyDBClusterSnapshotAttributeCommandError = function
3762
3732
  case 7: throw _d.sent();
3763
3733
  case 8:
3764
3734
  parsedBody = parsedOutput.body;
3765
- $metadata = deserializeMetadata(output);
3766
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3767
- response = new __BaseException({
3768
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3769
- $fault: "client",
3770
- $metadata: $metadata,
3735
+ throwDefaultError({
3736
+ output: output,
3737
+ parsedBody: parsedBody.Error,
3738
+ exceptionCtor: __BaseException,
3739
+ errorCode: errorCode,
3771
3740
  });
3772
- throw __decorateServiceException(response, parsedBody.Error);
3741
+ _d.label = 9;
3742
+ case 9: return [2];
3773
3743
  }
3774
3744
  });
3775
3745
  }); };
@@ -3792,7 +3762,7 @@ export var deserializeAws_queryModifyDBInstanceCommand = function (output, conte
3792
3762
  });
3793
3763
  }); };
3794
3764
  var deserializeAws_queryModifyDBInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3795
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3765
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3796
3766
  var _c;
3797
3767
  return __generator(this, function (_d) {
3798
3768
  switch (_d.label) {
@@ -3873,14 +3843,14 @@ var deserializeAws_queryModifyDBInstanceCommandError = function (output, context
3873
3843
  case 33: throw _d.sent();
3874
3844
  case 34:
3875
3845
  parsedBody = parsedOutput.body;
3876
- $metadata = deserializeMetadata(output);
3877
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3878
- response = new __BaseException({
3879
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3880
- $fault: "client",
3881
- $metadata: $metadata,
3846
+ throwDefaultError({
3847
+ output: output,
3848
+ parsedBody: parsedBody.Error,
3849
+ exceptionCtor: __BaseException,
3850
+ errorCode: errorCode,
3882
3851
  });
3883
- throw __decorateServiceException(response, parsedBody.Error);
3852
+ _d.label = 35;
3853
+ case 35: return [2];
3884
3854
  }
3885
3855
  });
3886
3856
  }); };
@@ -3903,7 +3873,7 @@ export var deserializeAws_queryModifyDBParameterGroupCommand = function (output,
3903
3873
  });
3904
3874
  }); };
3905
3875
  var deserializeAws_queryModifyDBParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3906
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3876
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3907
3877
  var _c;
3908
3878
  return __generator(this, function (_d) {
3909
3879
  switch (_d.label) {
@@ -3928,14 +3898,14 @@ var deserializeAws_queryModifyDBParameterGroupCommandError = function (output, c
3928
3898
  case 5: throw _d.sent();
3929
3899
  case 6:
3930
3900
  parsedBody = parsedOutput.body;
3931
- $metadata = deserializeMetadata(output);
3932
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3933
- response = new __BaseException({
3934
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3935
- $fault: "client",
3936
- $metadata: $metadata,
3901
+ throwDefaultError({
3902
+ output: output,
3903
+ parsedBody: parsedBody.Error,
3904
+ exceptionCtor: __BaseException,
3905
+ errorCode: errorCode,
3937
3906
  });
3938
- throw __decorateServiceException(response, parsedBody.Error);
3907
+ _d.label = 7;
3908
+ case 7: return [2];
3939
3909
  }
3940
3910
  });
3941
3911
  }); };
@@ -3958,7 +3928,7 @@ export var deserializeAws_queryModifyDBSubnetGroupCommand = function (output, co
3958
3928
  });
3959
3929
  }); };
3960
3930
  var deserializeAws_queryModifyDBSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3961
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3931
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3962
3932
  var _c;
3963
3933
  return __generator(this, function (_d) {
3964
3934
  switch (_d.label) {
@@ -3995,14 +3965,14 @@ var deserializeAws_queryModifyDBSubnetGroupCommandError = function (output, cont
3995
3965
  case 11: throw _d.sent();
3996
3966
  case 12:
3997
3967
  parsedBody = parsedOutput.body;
3998
- $metadata = deserializeMetadata(output);
3999
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4000
- response = new __BaseException({
4001
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4002
- $fault: "client",
4003
- $metadata: $metadata,
3968
+ throwDefaultError({
3969
+ output: output,
3970
+ parsedBody: parsedBody.Error,
3971
+ exceptionCtor: __BaseException,
3972
+ errorCode: errorCode,
4004
3973
  });
4005
- throw __decorateServiceException(response, parsedBody.Error);
3974
+ _d.label = 13;
3975
+ case 13: return [2];
4006
3976
  }
4007
3977
  });
4008
3978
  }); };
@@ -4025,7 +3995,7 @@ export var deserializeAws_queryModifyEventSubscriptionCommand = function (output
4025
3995
  });
4026
3996
  }); };
4027
3997
  var deserializeAws_queryModifyEventSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4028
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3998
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4029
3999
  var _c;
4030
4000
  return __generator(this, function (_d) {
4031
4001
  switch (_d.label) {
@@ -4066,14 +4036,14 @@ var deserializeAws_queryModifyEventSubscriptionCommandError = function (output,
4066
4036
  case 13: throw _d.sent();
4067
4037
  case 14:
4068
4038
  parsedBody = parsedOutput.body;
4069
- $metadata = deserializeMetadata(output);
4070
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4071
- response = new __BaseException({
4072
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4073
- $fault: "client",
4074
- $metadata: $metadata,
4039
+ throwDefaultError({
4040
+ output: output,
4041
+ parsedBody: parsedBody.Error,
4042
+ exceptionCtor: __BaseException,
4043
+ errorCode: errorCode,
4075
4044
  });
4076
- throw __decorateServiceException(response, parsedBody.Error);
4045
+ _d.label = 15;
4046
+ case 15: return [2];
4077
4047
  }
4078
4048
  });
4079
4049
  }); };
@@ -4096,7 +4066,7 @@ export var deserializeAws_queryModifyGlobalClusterCommand = function (output, co
4096
4066
  });
4097
4067
  }); };
4098
4068
  var deserializeAws_queryModifyGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4099
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4069
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4100
4070
  var _c;
4101
4071
  return __generator(this, function (_d) {
4102
4072
  switch (_d.label) {
@@ -4121,14 +4091,14 @@ var deserializeAws_queryModifyGlobalClusterCommandError = function (output, cont
4121
4091
  case 5: throw _d.sent();
4122
4092
  case 6:
4123
4093
  parsedBody = parsedOutput.body;
4124
- $metadata = deserializeMetadata(output);
4125
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4126
- response = new __BaseException({
4127
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4128
- $fault: "client",
4129
- $metadata: $metadata,
4094
+ throwDefaultError({
4095
+ output: output,
4096
+ parsedBody: parsedBody.Error,
4097
+ exceptionCtor: __BaseException,
4098
+ errorCode: errorCode,
4130
4099
  });
4131
- throw __decorateServiceException(response, parsedBody.Error);
4100
+ _d.label = 7;
4101
+ case 7: return [2];
4132
4102
  }
4133
4103
  });
4134
4104
  }); };
@@ -4151,7 +4121,7 @@ export var deserializeAws_queryPromoteReadReplicaDBClusterCommand = function (ou
4151
4121
  });
4152
4122
  }); };
4153
4123
  var deserializeAws_queryPromoteReadReplicaDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4154
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4124
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4155
4125
  var _c;
4156
4126
  return __generator(this, function (_d) {
4157
4127
  switch (_d.label) {
@@ -4176,14 +4146,14 @@ var deserializeAws_queryPromoteReadReplicaDBClusterCommandError = function (outp
4176
4146
  case 5: throw _d.sent();
4177
4147
  case 6:
4178
4148
  parsedBody = parsedOutput.body;
4179
- $metadata = deserializeMetadata(output);
4180
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4181
- response = new __BaseException({
4182
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4183
- $fault: "client",
4184
- $metadata: $metadata,
4149
+ throwDefaultError({
4150
+ output: output,
4151
+ parsedBody: parsedBody.Error,
4152
+ exceptionCtor: __BaseException,
4153
+ errorCode: errorCode,
4185
4154
  });
4186
- throw __decorateServiceException(response, parsedBody.Error);
4155
+ _d.label = 7;
4156
+ case 7: return [2];
4187
4157
  }
4188
4158
  });
4189
4159
  }); };
@@ -4206,7 +4176,7 @@ export var deserializeAws_queryRebootDBInstanceCommand = function (output, conte
4206
4176
  });
4207
4177
  }); };
4208
4178
  var deserializeAws_queryRebootDBInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4209
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4179
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4210
4180
  var _c;
4211
4181
  return __generator(this, function (_d) {
4212
4182
  switch (_d.label) {
@@ -4231,14 +4201,14 @@ var deserializeAws_queryRebootDBInstanceCommandError = function (output, context
4231
4201
  case 5: throw _d.sent();
4232
4202
  case 6:
4233
4203
  parsedBody = parsedOutput.body;
4234
- $metadata = deserializeMetadata(output);
4235
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4236
- response = new __BaseException({
4237
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4238
- $fault: "client",
4239
- $metadata: $metadata,
4204
+ throwDefaultError({
4205
+ output: output,
4206
+ parsedBody: parsedBody.Error,
4207
+ exceptionCtor: __BaseException,
4208
+ errorCode: errorCode,
4240
4209
  });
4241
- throw __decorateServiceException(response, parsedBody.Error);
4210
+ _d.label = 7;
4211
+ case 7: return [2];
4242
4212
  }
4243
4213
  });
4244
4214
  }); };
@@ -4261,7 +4231,7 @@ export var deserializeAws_queryRemoveFromGlobalClusterCommand = function (output
4261
4231
  });
4262
4232
  }); };
4263
4233
  var deserializeAws_queryRemoveFromGlobalClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4264
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4234
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4265
4235
  var _c;
4266
4236
  return __generator(this, function (_d) {
4267
4237
  switch (_d.label) {
@@ -4290,14 +4260,14 @@ var deserializeAws_queryRemoveFromGlobalClusterCommandError = function (output,
4290
4260
  case 7: throw _d.sent();
4291
4261
  case 8:
4292
4262
  parsedBody = parsedOutput.body;
4293
- $metadata = deserializeMetadata(output);
4294
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4295
- response = new __BaseException({
4296
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4297
- $fault: "client",
4298
- $metadata: $metadata,
4263
+ throwDefaultError({
4264
+ output: output,
4265
+ parsedBody: parsedBody.Error,
4266
+ exceptionCtor: __BaseException,
4267
+ errorCode: errorCode,
4299
4268
  });
4300
- throw __decorateServiceException(response, parsedBody.Error);
4269
+ _d.label = 9;
4270
+ case 9: return [2];
4301
4271
  }
4302
4272
  });
4303
4273
  }); };
@@ -4320,7 +4290,7 @@ export var deserializeAws_queryRemoveRoleFromDBClusterCommand = function (output
4320
4290
  });
4321
4291
  }); };
4322
4292
  var deserializeAws_queryRemoveRoleFromDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4323
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4293
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4324
4294
  var _c;
4325
4295
  return __generator(this, function (_d) {
4326
4296
  switch (_d.label) {
@@ -4349,14 +4319,14 @@ var deserializeAws_queryRemoveRoleFromDBClusterCommandError = function (output,
4349
4319
  case 7: throw _d.sent();
4350
4320
  case 8:
4351
4321
  parsedBody = parsedOutput.body;
4352
- $metadata = deserializeMetadata(output);
4353
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4354
- response = new __BaseException({
4355
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4356
- $fault: "client",
4357
- $metadata: $metadata,
4322
+ throwDefaultError({
4323
+ output: output,
4324
+ parsedBody: parsedBody.Error,
4325
+ exceptionCtor: __BaseException,
4326
+ errorCode: errorCode,
4358
4327
  });
4359
- throw __decorateServiceException(response, parsedBody.Error);
4328
+ _d.label = 9;
4329
+ case 9: return [2];
4360
4330
  }
4361
4331
  });
4362
4332
  }); };
@@ -4379,7 +4349,7 @@ export var deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommand = f
4379
4349
  });
4380
4350
  }); };
4381
4351
  var deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4382
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4352
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4383
4353
  var _c;
4384
4354
  return __generator(this, function (_d) {
4385
4355
  switch (_d.label) {
@@ -4404,14 +4374,14 @@ var deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommandError = fun
4404
4374
  case 5: throw _d.sent();
4405
4375
  case 6:
4406
4376
  parsedBody = parsedOutput.body;
4407
- $metadata = deserializeMetadata(output);
4408
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4409
- response = new __BaseException({
4410
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4411
- $fault: "client",
4412
- $metadata: $metadata,
4377
+ throwDefaultError({
4378
+ output: output,
4379
+ parsedBody: parsedBody.Error,
4380
+ exceptionCtor: __BaseException,
4381
+ errorCode: errorCode,
4413
4382
  });
4414
- throw __decorateServiceException(response, parsedBody.Error);
4383
+ _d.label = 7;
4384
+ case 7: return [2];
4415
4385
  }
4416
4386
  });
4417
4387
  }); };
@@ -4434,7 +4404,7 @@ export var deserializeAws_queryRemoveTagsFromResourceCommand = function (output,
4434
4404
  });
4435
4405
  }); };
4436
4406
  var deserializeAws_queryRemoveTagsFromResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4437
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4407
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4438
4408
  var _c;
4439
4409
  return __generator(this, function (_d) {
4440
4410
  switch (_d.label) {
@@ -4463,14 +4433,14 @@ var deserializeAws_queryRemoveTagsFromResourceCommandError = function (output, c
4463
4433
  case 7: throw _d.sent();
4464
4434
  case 8:
4465
4435
  parsedBody = parsedOutput.body;
4466
- $metadata = deserializeMetadata(output);
4467
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4468
- response = new __BaseException({
4469
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4470
- $fault: "client",
4471
- $metadata: $metadata,
4436
+ throwDefaultError({
4437
+ output: output,
4438
+ parsedBody: parsedBody.Error,
4439
+ exceptionCtor: __BaseException,
4440
+ errorCode: errorCode,
4472
4441
  });
4473
- throw __decorateServiceException(response, parsedBody.Error);
4442
+ _d.label = 9;
4443
+ case 9: return [2];
4474
4444
  }
4475
4445
  });
4476
4446
  }); };
@@ -4493,7 +4463,7 @@ export var deserializeAws_queryResetDBClusterParameterGroupCommand = function (o
4493
4463
  });
4494
4464
  }); };
4495
4465
  var deserializeAws_queryResetDBClusterParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4496
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4466
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4497
4467
  var _c;
4498
4468
  return __generator(this, function (_d) {
4499
4469
  switch (_d.label) {
@@ -4518,14 +4488,14 @@ var deserializeAws_queryResetDBClusterParameterGroupCommandError = function (out
4518
4488
  case 5: throw _d.sent();
4519
4489
  case 6:
4520
4490
  parsedBody = parsedOutput.body;
4521
- $metadata = deserializeMetadata(output);
4522
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4523
- response = new __BaseException({
4524
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4525
- $fault: "client",
4526
- $metadata: $metadata,
4491
+ throwDefaultError({
4492
+ output: output,
4493
+ parsedBody: parsedBody.Error,
4494
+ exceptionCtor: __BaseException,
4495
+ errorCode: errorCode,
4527
4496
  });
4528
- throw __decorateServiceException(response, parsedBody.Error);
4497
+ _d.label = 7;
4498
+ case 7: return [2];
4529
4499
  }
4530
4500
  });
4531
4501
  }); };
@@ -4548,7 +4518,7 @@ export var deserializeAws_queryResetDBParameterGroupCommand = function (output,
4548
4518
  });
4549
4519
  }); };
4550
4520
  var deserializeAws_queryResetDBParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4551
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4521
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4552
4522
  var _c;
4553
4523
  return __generator(this, function (_d) {
4554
4524
  switch (_d.label) {
@@ -4573,14 +4543,14 @@ var deserializeAws_queryResetDBParameterGroupCommandError = function (output, co
4573
4543
  case 5: throw _d.sent();
4574
4544
  case 6:
4575
4545
  parsedBody = parsedOutput.body;
4576
- $metadata = deserializeMetadata(output);
4577
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4578
- response = new __BaseException({
4579
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4580
- $fault: "client",
4581
- $metadata: $metadata,
4546
+ throwDefaultError({
4547
+ output: output,
4548
+ parsedBody: parsedBody.Error,
4549
+ exceptionCtor: __BaseException,
4550
+ errorCode: errorCode,
4582
4551
  });
4583
- throw __decorateServiceException(response, parsedBody.Error);
4552
+ _d.label = 7;
4553
+ case 7: return [2];
4584
4554
  }
4585
4555
  });
4586
4556
  }); };
@@ -4603,7 +4573,7 @@ export var deserializeAws_queryRestoreDBClusterFromSnapshotCommand = function (o
4603
4573
  });
4604
4574
  }); };
4605
4575
  var deserializeAws_queryRestoreDBClusterFromSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4606
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4576
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4607
4577
  var _c;
4608
4578
  return __generator(this, function (_d) {
4609
4579
  switch (_d.label) {
@@ -4684,14 +4654,14 @@ var deserializeAws_queryRestoreDBClusterFromSnapshotCommandError = function (out
4684
4654
  case 33: throw _d.sent();
4685
4655
  case 34:
4686
4656
  parsedBody = parsedOutput.body;
4687
- $metadata = deserializeMetadata(output);
4688
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4689
- response = new __BaseException({
4690
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4691
- $fault: "client",
4692
- $metadata: $metadata,
4657
+ throwDefaultError({
4658
+ output: output,
4659
+ parsedBody: parsedBody.Error,
4660
+ exceptionCtor: __BaseException,
4661
+ errorCode: errorCode,
4693
4662
  });
4694
- throw __decorateServiceException(response, parsedBody.Error);
4663
+ _d.label = 35;
4664
+ case 35: return [2];
4695
4665
  }
4696
4666
  });
4697
4667
  }); };
@@ -4714,7 +4684,7 @@ export var deserializeAws_queryRestoreDBClusterToPointInTimeCommand = function (
4714
4684
  });
4715
4685
  }); };
4716
4686
  var deserializeAws_queryRestoreDBClusterToPointInTimeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4717
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4687
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4718
4688
  var _c;
4719
4689
  return __generator(this, function (_d) {
4720
4690
  switch (_d.label) {
@@ -4799,14 +4769,14 @@ var deserializeAws_queryRestoreDBClusterToPointInTimeCommandError = function (ou
4799
4769
  case 35: throw _d.sent();
4800
4770
  case 36:
4801
4771
  parsedBody = parsedOutput.body;
4802
- $metadata = deserializeMetadata(output);
4803
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4804
- response = new __BaseException({
4805
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4806
- $fault: "client",
4807
- $metadata: $metadata,
4772
+ throwDefaultError({
4773
+ output: output,
4774
+ parsedBody: parsedBody.Error,
4775
+ exceptionCtor: __BaseException,
4776
+ errorCode: errorCode,
4808
4777
  });
4809
- throw __decorateServiceException(response, parsedBody.Error);
4778
+ _d.label = 37;
4779
+ case 37: return [2];
4810
4780
  }
4811
4781
  });
4812
4782
  }); };
@@ -4829,7 +4799,7 @@ export var deserializeAws_queryStartDBClusterCommand = function (output, context
4829
4799
  });
4830
4800
  }); };
4831
4801
  var deserializeAws_queryStartDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4832
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4802
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4833
4803
  var _c;
4834
4804
  return __generator(this, function (_d) {
4835
4805
  switch (_d.label) {
@@ -4858,14 +4828,14 @@ var deserializeAws_queryStartDBClusterCommandError = function (output, context)
4858
4828
  case 7: throw _d.sent();
4859
4829
  case 8:
4860
4830
  parsedBody = parsedOutput.body;
4861
- $metadata = deserializeMetadata(output);
4862
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4863
- response = new __BaseException({
4864
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4865
- $fault: "client",
4866
- $metadata: $metadata,
4831
+ throwDefaultError({
4832
+ output: output,
4833
+ parsedBody: parsedBody.Error,
4834
+ exceptionCtor: __BaseException,
4835
+ errorCode: errorCode,
4867
4836
  });
4868
- throw __decorateServiceException(response, parsedBody.Error);
4837
+ _d.label = 9;
4838
+ case 9: return [2];
4869
4839
  }
4870
4840
  });
4871
4841
  }); };
@@ -4888,7 +4858,7 @@ export var deserializeAws_queryStopDBClusterCommand = function (output, context)
4888
4858
  });
4889
4859
  }); };
4890
4860
  var deserializeAws_queryStopDBClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4891
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4861
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4892
4862
  var _c;
4893
4863
  return __generator(this, function (_d) {
4894
4864
  switch (_d.label) {
@@ -4917,14 +4887,14 @@ var deserializeAws_queryStopDBClusterCommandError = function (output, context) {
4917
4887
  case 7: throw _d.sent();
4918
4888
  case 8:
4919
4889
  parsedBody = parsedOutput.body;
4920
- $metadata = deserializeMetadata(output);
4921
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4922
- response = new __BaseException({
4923
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4924
- $fault: "client",
4925
- $metadata: $metadata,
4890
+ throwDefaultError({
4891
+ output: output,
4892
+ parsedBody: parsedBody.Error,
4893
+ exceptionCtor: __BaseException,
4894
+ errorCode: errorCode,
4926
4895
  });
4927
- throw __decorateServiceException(response, parsedBody.Error);
4896
+ _d.label = 9;
4897
+ case 9: return [2];
4928
4898
  }
4929
4899
  });
4930
4900
  }); };
@@ -5533,33 +5503,33 @@ var deserializeAws_querySubscriptionNotFoundFaultResponse = function (parsedOutp
5533
5503
  }); };
5534
5504
  var serializeAws_queryAddRoleToDBClusterMessage = function (input, context) {
5535
5505
  var entries = {};
5536
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5506
+ if (input.DBClusterIdentifier != null) {
5537
5507
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5538
5508
  }
5539
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
5509
+ if (input.RoleArn != null) {
5540
5510
  entries["RoleArn"] = input.RoleArn;
5541
5511
  }
5542
- if (input.FeatureName !== undefined && input.FeatureName !== null) {
5512
+ if (input.FeatureName != null) {
5543
5513
  entries["FeatureName"] = input.FeatureName;
5544
5514
  }
5545
5515
  return entries;
5546
5516
  };
5547
5517
  var serializeAws_queryAddSourceIdentifierToSubscriptionMessage = function (input, context) {
5548
5518
  var entries = {};
5549
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
5519
+ if (input.SubscriptionName != null) {
5550
5520
  entries["SubscriptionName"] = input.SubscriptionName;
5551
5521
  }
5552
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
5522
+ if (input.SourceIdentifier != null) {
5553
5523
  entries["SourceIdentifier"] = input.SourceIdentifier;
5554
5524
  }
5555
5525
  return entries;
5556
5526
  };
5557
5527
  var serializeAws_queryAddTagsToResourceMessage = function (input, context) {
5558
5528
  var entries = {};
5559
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
5529
+ if (input.ResourceName != null) {
5560
5530
  entries["ResourceName"] = input.ResourceName;
5561
5531
  }
5562
- if (input.Tags !== undefined && input.Tags !== null) {
5532
+ if (input.Tags != null) {
5563
5533
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5564
5534
  Object.entries(memberEntries).forEach(function (_a) {
5565
5535
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5571,13 +5541,13 @@ var serializeAws_queryAddTagsToResourceMessage = function (input, context) {
5571
5541
  };
5572
5542
  var serializeAws_queryApplyPendingMaintenanceActionMessage = function (input, context) {
5573
5543
  var entries = {};
5574
- if (input.ResourceIdentifier !== undefined && input.ResourceIdentifier !== null) {
5544
+ if (input.ResourceIdentifier != null) {
5575
5545
  entries["ResourceIdentifier"] = input.ResourceIdentifier;
5576
5546
  }
5577
- if (input.ApplyAction !== undefined && input.ApplyAction !== null) {
5547
+ if (input.ApplyAction != null) {
5578
5548
  entries["ApplyAction"] = input.ApplyAction;
5579
5549
  }
5580
- if (input.OptInType !== undefined && input.OptInType !== null) {
5550
+ if (input.OptInType != null) {
5581
5551
  entries["OptInType"] = input.OptInType;
5582
5552
  }
5583
5553
  return entries;
@@ -5630,7 +5600,7 @@ var serializeAws_queryAvailabilityZones = function (input, context) {
5630
5600
  };
5631
5601
  var serializeAws_queryCloudwatchLogsExportConfiguration = function (input, context) {
5632
5602
  var entries = {};
5633
- if (input.EnableLogTypes !== undefined && input.EnableLogTypes !== null) {
5603
+ if (input.EnableLogTypes != null) {
5634
5604
  var memberEntries = serializeAws_queryLogTypeList(input.EnableLogTypes, context);
5635
5605
  Object.entries(memberEntries).forEach(function (_a) {
5636
5606
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5638,7 +5608,7 @@ var serializeAws_queryCloudwatchLogsExportConfiguration = function (input, conte
5638
5608
  entries[loc] = value;
5639
5609
  });
5640
5610
  }
5641
- if (input.DisableLogTypes !== undefined && input.DisableLogTypes !== null) {
5611
+ if (input.DisableLogTypes != null) {
5642
5612
  var memberEntries = serializeAws_queryLogTypeList(input.DisableLogTypes, context);
5643
5613
  Object.entries(memberEntries).forEach(function (_a) {
5644
5614
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5650,19 +5620,16 @@ var serializeAws_queryCloudwatchLogsExportConfiguration = function (input, conte
5650
5620
  };
5651
5621
  var serializeAws_queryCopyDBClusterParameterGroupMessage = function (input, context) {
5652
5622
  var entries = {};
5653
- if (input.SourceDBClusterParameterGroupIdentifier !== undefined &&
5654
- input.SourceDBClusterParameterGroupIdentifier !== null) {
5623
+ if (input.SourceDBClusterParameterGroupIdentifier != null) {
5655
5624
  entries["SourceDBClusterParameterGroupIdentifier"] = input.SourceDBClusterParameterGroupIdentifier;
5656
5625
  }
5657
- if (input.TargetDBClusterParameterGroupIdentifier !== undefined &&
5658
- input.TargetDBClusterParameterGroupIdentifier !== null) {
5626
+ if (input.TargetDBClusterParameterGroupIdentifier != null) {
5659
5627
  entries["TargetDBClusterParameterGroupIdentifier"] = input.TargetDBClusterParameterGroupIdentifier;
5660
5628
  }
5661
- if (input.TargetDBClusterParameterGroupDescription !== undefined &&
5662
- input.TargetDBClusterParameterGroupDescription !== null) {
5629
+ if (input.TargetDBClusterParameterGroupDescription != null) {
5663
5630
  entries["TargetDBClusterParameterGroupDescription"] = input.TargetDBClusterParameterGroupDescription;
5664
5631
  }
5665
- if (input.Tags !== undefined && input.Tags !== null) {
5632
+ if (input.Tags != null) {
5666
5633
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5667
5634
  Object.entries(memberEntries).forEach(function (_a) {
5668
5635
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5674,22 +5641,22 @@ var serializeAws_queryCopyDBClusterParameterGroupMessage = function (input, cont
5674
5641
  };
5675
5642
  var serializeAws_queryCopyDBClusterSnapshotMessage = function (input, context) {
5676
5643
  var entries = {};
5677
- if (input.SourceDBClusterSnapshotIdentifier !== undefined && input.SourceDBClusterSnapshotIdentifier !== null) {
5644
+ if (input.SourceDBClusterSnapshotIdentifier != null) {
5678
5645
  entries["SourceDBClusterSnapshotIdentifier"] = input.SourceDBClusterSnapshotIdentifier;
5679
5646
  }
5680
- if (input.TargetDBClusterSnapshotIdentifier !== undefined && input.TargetDBClusterSnapshotIdentifier !== null) {
5647
+ if (input.TargetDBClusterSnapshotIdentifier != null) {
5681
5648
  entries["TargetDBClusterSnapshotIdentifier"] = input.TargetDBClusterSnapshotIdentifier;
5682
5649
  }
5683
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
5650
+ if (input.KmsKeyId != null) {
5684
5651
  entries["KmsKeyId"] = input.KmsKeyId;
5685
5652
  }
5686
- if (input.PreSignedUrl !== undefined && input.PreSignedUrl !== null) {
5653
+ if (input.PreSignedUrl != null) {
5687
5654
  entries["PreSignedUrl"] = input.PreSignedUrl;
5688
5655
  }
5689
- if (input.CopyTags !== undefined && input.CopyTags !== null) {
5656
+ if (input.CopyTags != null) {
5690
5657
  entries["CopyTags"] = input.CopyTags;
5691
5658
  }
5692
- if (input.Tags !== undefined && input.Tags !== null) {
5659
+ if (input.Tags != null) {
5693
5660
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5694
5661
  Object.entries(memberEntries).forEach(function (_a) {
5695
5662
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5701,16 +5668,16 @@ var serializeAws_queryCopyDBClusterSnapshotMessage = function (input, context) {
5701
5668
  };
5702
5669
  var serializeAws_queryCopyDBParameterGroupMessage = function (input, context) {
5703
5670
  var entries = {};
5704
- if (input.SourceDBParameterGroupIdentifier !== undefined && input.SourceDBParameterGroupIdentifier !== null) {
5671
+ if (input.SourceDBParameterGroupIdentifier != null) {
5705
5672
  entries["SourceDBParameterGroupIdentifier"] = input.SourceDBParameterGroupIdentifier;
5706
5673
  }
5707
- if (input.TargetDBParameterGroupIdentifier !== undefined && input.TargetDBParameterGroupIdentifier !== null) {
5674
+ if (input.TargetDBParameterGroupIdentifier != null) {
5708
5675
  entries["TargetDBParameterGroupIdentifier"] = input.TargetDBParameterGroupIdentifier;
5709
5676
  }
5710
- if (input.TargetDBParameterGroupDescription !== undefined && input.TargetDBParameterGroupDescription !== null) {
5677
+ if (input.TargetDBParameterGroupDescription != null) {
5711
5678
  entries["TargetDBParameterGroupDescription"] = input.TargetDBParameterGroupDescription;
5712
5679
  }
5713
- if (input.Tags !== undefined && input.Tags !== null) {
5680
+ if (input.Tags != null) {
5714
5681
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5715
5682
  Object.entries(memberEntries).forEach(function (_a) {
5716
5683
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5722,16 +5689,16 @@ var serializeAws_queryCopyDBParameterGroupMessage = function (input, context) {
5722
5689
  };
5723
5690
  var serializeAws_queryCreateDBClusterEndpointMessage = function (input, context) {
5724
5691
  var entries = {};
5725
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5692
+ if (input.DBClusterIdentifier != null) {
5726
5693
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5727
5694
  }
5728
- if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
5695
+ if (input.DBClusterEndpointIdentifier != null) {
5729
5696
  entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier;
5730
5697
  }
5731
- if (input.EndpointType !== undefined && input.EndpointType !== null) {
5698
+ if (input.EndpointType != null) {
5732
5699
  entries["EndpointType"] = input.EndpointType;
5733
5700
  }
5734
- if (input.StaticMembers !== undefined && input.StaticMembers !== null) {
5701
+ if (input.StaticMembers != null) {
5735
5702
  var memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
5736
5703
  Object.entries(memberEntries).forEach(function (_a) {
5737
5704
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5739,7 +5706,7 @@ var serializeAws_queryCreateDBClusterEndpointMessage = function (input, context)
5739
5706
  entries[loc] = value;
5740
5707
  });
5741
5708
  }
5742
- if (input.ExcludedMembers !== undefined && input.ExcludedMembers !== null) {
5709
+ if (input.ExcludedMembers != null) {
5743
5710
  var memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
5744
5711
  Object.entries(memberEntries).forEach(function (_a) {
5745
5712
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5747,7 +5714,7 @@ var serializeAws_queryCreateDBClusterEndpointMessage = function (input, context)
5747
5714
  entries[loc] = value;
5748
5715
  });
5749
5716
  }
5750
- if (input.Tags !== undefined && input.Tags !== null) {
5717
+ if (input.Tags != null) {
5751
5718
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5752
5719
  Object.entries(memberEntries).forEach(function (_a) {
5753
5720
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5759,7 +5726,7 @@ var serializeAws_queryCreateDBClusterEndpointMessage = function (input, context)
5759
5726
  };
5760
5727
  var serializeAws_queryCreateDBClusterMessage = function (input, context) {
5761
5728
  var entries = {};
5762
- if (input.AvailabilityZones !== undefined && input.AvailabilityZones !== null) {
5729
+ if (input.AvailabilityZones != null) {
5763
5730
  var memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
5764
5731
  Object.entries(memberEntries).forEach(function (_a) {
5765
5732
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5767,25 +5734,25 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
5767
5734
  entries[loc] = value;
5768
5735
  });
5769
5736
  }
5770
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
5737
+ if (input.BackupRetentionPeriod != null) {
5771
5738
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
5772
5739
  }
5773
- if (input.CharacterSetName !== undefined && input.CharacterSetName !== null) {
5740
+ if (input.CharacterSetName != null) {
5774
5741
  entries["CharacterSetName"] = input.CharacterSetName;
5775
5742
  }
5776
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
5743
+ if (input.CopyTagsToSnapshot != null) {
5777
5744
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
5778
5745
  }
5779
- if (input.DatabaseName !== undefined && input.DatabaseName !== null) {
5746
+ if (input.DatabaseName != null) {
5780
5747
  entries["DatabaseName"] = input.DatabaseName;
5781
5748
  }
5782
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5749
+ if (input.DBClusterIdentifier != null) {
5783
5750
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5784
5751
  }
5785
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
5752
+ if (input.DBClusterParameterGroupName != null) {
5786
5753
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5787
5754
  }
5788
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
5755
+ if (input.VpcSecurityGroupIds != null) {
5789
5756
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
5790
5757
  Object.entries(memberEntries).forEach(function (_a) {
5791
5758
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5793,37 +5760,37 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
5793
5760
  entries[loc] = value;
5794
5761
  });
5795
5762
  }
5796
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
5763
+ if (input.DBSubnetGroupName != null) {
5797
5764
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
5798
5765
  }
5799
- if (input.Engine !== undefined && input.Engine !== null) {
5766
+ if (input.Engine != null) {
5800
5767
  entries["Engine"] = input.Engine;
5801
5768
  }
5802
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5769
+ if (input.EngineVersion != null) {
5803
5770
  entries["EngineVersion"] = input.EngineVersion;
5804
5771
  }
5805
- if (input.Port !== undefined && input.Port !== null) {
5772
+ if (input.Port != null) {
5806
5773
  entries["Port"] = input.Port;
5807
5774
  }
5808
- if (input.MasterUsername !== undefined && input.MasterUsername !== null) {
5775
+ if (input.MasterUsername != null) {
5809
5776
  entries["MasterUsername"] = input.MasterUsername;
5810
5777
  }
5811
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
5778
+ if (input.MasterUserPassword != null) {
5812
5779
  entries["MasterUserPassword"] = input.MasterUserPassword;
5813
5780
  }
5814
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
5781
+ if (input.OptionGroupName != null) {
5815
5782
  entries["OptionGroupName"] = input.OptionGroupName;
5816
5783
  }
5817
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
5784
+ if (input.PreferredBackupWindow != null) {
5818
5785
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
5819
5786
  }
5820
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
5787
+ if (input.PreferredMaintenanceWindow != null) {
5821
5788
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
5822
5789
  }
5823
- if (input.ReplicationSourceIdentifier !== undefined && input.ReplicationSourceIdentifier !== null) {
5790
+ if (input.ReplicationSourceIdentifier != null) {
5824
5791
  entries["ReplicationSourceIdentifier"] = input.ReplicationSourceIdentifier;
5825
5792
  }
5826
- if (input.Tags !== undefined && input.Tags !== null) {
5793
+ if (input.Tags != null) {
5827
5794
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5828
5795
  Object.entries(memberEntries).forEach(function (_a) {
5829
5796
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5831,19 +5798,19 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
5831
5798
  entries[loc] = value;
5832
5799
  });
5833
5800
  }
5834
- if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
5801
+ if (input.StorageEncrypted != null) {
5835
5802
  entries["StorageEncrypted"] = input.StorageEncrypted;
5836
5803
  }
5837
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
5804
+ if (input.KmsKeyId != null) {
5838
5805
  entries["KmsKeyId"] = input.KmsKeyId;
5839
5806
  }
5840
- if (input.PreSignedUrl !== undefined && input.PreSignedUrl !== null) {
5807
+ if (input.PreSignedUrl != null) {
5841
5808
  entries["PreSignedUrl"] = input.PreSignedUrl;
5842
5809
  }
5843
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
5810
+ if (input.EnableIAMDatabaseAuthentication != null) {
5844
5811
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
5845
5812
  }
5846
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
5813
+ if (input.EnableCloudwatchLogsExports != null) {
5847
5814
  var memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
5848
5815
  Object.entries(memberEntries).forEach(function (_a) {
5849
5816
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5851,26 +5818,26 @@ var serializeAws_queryCreateDBClusterMessage = function (input, context) {
5851
5818
  entries[loc] = value;
5852
5819
  });
5853
5820
  }
5854
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
5821
+ if (input.DeletionProtection != null) {
5855
5822
  entries["DeletionProtection"] = input.DeletionProtection;
5856
5823
  }
5857
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
5824
+ if (input.GlobalClusterIdentifier != null) {
5858
5825
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
5859
5826
  }
5860
5827
  return entries;
5861
5828
  };
5862
5829
  var serializeAws_queryCreateDBClusterParameterGroupMessage = function (input, context) {
5863
5830
  var entries = {};
5864
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
5831
+ if (input.DBClusterParameterGroupName != null) {
5865
5832
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
5866
5833
  }
5867
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
5834
+ if (input.DBParameterGroupFamily != null) {
5868
5835
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
5869
5836
  }
5870
- if (input.Description !== undefined && input.Description !== null) {
5837
+ if (input.Description != null) {
5871
5838
  entries["Description"] = input.Description;
5872
5839
  }
5873
- if (input.Tags !== undefined && input.Tags !== null) {
5840
+ if (input.Tags != null) {
5874
5841
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5875
5842
  Object.entries(memberEntries).forEach(function (_a) {
5876
5843
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5882,13 +5849,13 @@ var serializeAws_queryCreateDBClusterParameterGroupMessage = function (input, co
5882
5849
  };
5883
5850
  var serializeAws_queryCreateDBClusterSnapshotMessage = function (input, context) {
5884
5851
  var entries = {};
5885
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
5852
+ if (input.DBClusterSnapshotIdentifier != null) {
5886
5853
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
5887
5854
  }
5888
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5855
+ if (input.DBClusterIdentifier != null) {
5889
5856
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5890
5857
  }
5891
- if (input.Tags !== undefined && input.Tags !== null) {
5858
+ if (input.Tags != null) {
5892
5859
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5893
5860
  Object.entries(memberEntries).forEach(function (_a) {
5894
5861
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5900,28 +5867,28 @@ var serializeAws_queryCreateDBClusterSnapshotMessage = function (input, context)
5900
5867
  };
5901
5868
  var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
5902
5869
  var entries = {};
5903
- if (input.DBName !== undefined && input.DBName !== null) {
5870
+ if (input.DBName != null) {
5904
5871
  entries["DBName"] = input.DBName;
5905
5872
  }
5906
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
5873
+ if (input.DBInstanceIdentifier != null) {
5907
5874
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
5908
5875
  }
5909
- if (input.AllocatedStorage !== undefined && input.AllocatedStorage !== null) {
5876
+ if (input.AllocatedStorage != null) {
5910
5877
  entries["AllocatedStorage"] = input.AllocatedStorage;
5911
5878
  }
5912
- if (input.DBInstanceClass !== undefined && input.DBInstanceClass !== null) {
5879
+ if (input.DBInstanceClass != null) {
5913
5880
  entries["DBInstanceClass"] = input.DBInstanceClass;
5914
5881
  }
5915
- if (input.Engine !== undefined && input.Engine !== null) {
5882
+ if (input.Engine != null) {
5916
5883
  entries["Engine"] = input.Engine;
5917
5884
  }
5918
- if (input.MasterUsername !== undefined && input.MasterUsername !== null) {
5885
+ if (input.MasterUsername != null) {
5919
5886
  entries["MasterUsername"] = input.MasterUsername;
5920
5887
  }
5921
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
5888
+ if (input.MasterUserPassword != null) {
5922
5889
  entries["MasterUserPassword"] = input.MasterUserPassword;
5923
5890
  }
5924
- if (input.DBSecurityGroups !== undefined && input.DBSecurityGroups !== null) {
5891
+ if (input.DBSecurityGroups != null) {
5925
5892
  var memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
5926
5893
  Object.entries(memberEntries).forEach(function (_a) {
5927
5894
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5929,7 +5896,7 @@ var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
5929
5896
  entries[loc] = value;
5930
5897
  });
5931
5898
  }
5932
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
5899
+ if (input.VpcSecurityGroupIds != null) {
5933
5900
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
5934
5901
  Object.entries(memberEntries).forEach(function (_a) {
5935
5902
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5937,52 +5904,52 @@ var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
5937
5904
  entries[loc] = value;
5938
5905
  });
5939
5906
  }
5940
- if (input.AvailabilityZone !== undefined && input.AvailabilityZone !== null) {
5907
+ if (input.AvailabilityZone != null) {
5941
5908
  entries["AvailabilityZone"] = input.AvailabilityZone;
5942
5909
  }
5943
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
5910
+ if (input.DBSubnetGroupName != null) {
5944
5911
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
5945
5912
  }
5946
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
5913
+ if (input.PreferredMaintenanceWindow != null) {
5947
5914
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
5948
5915
  }
5949
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
5916
+ if (input.DBParameterGroupName != null) {
5950
5917
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
5951
5918
  }
5952
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
5919
+ if (input.BackupRetentionPeriod != null) {
5953
5920
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
5954
5921
  }
5955
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
5922
+ if (input.PreferredBackupWindow != null) {
5956
5923
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
5957
5924
  }
5958
- if (input.Port !== undefined && input.Port !== null) {
5925
+ if (input.Port != null) {
5959
5926
  entries["Port"] = input.Port;
5960
5927
  }
5961
- if (input.MultiAZ !== undefined && input.MultiAZ !== null) {
5928
+ if (input.MultiAZ != null) {
5962
5929
  entries["MultiAZ"] = input.MultiAZ;
5963
5930
  }
5964
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
5931
+ if (input.EngineVersion != null) {
5965
5932
  entries["EngineVersion"] = input.EngineVersion;
5966
5933
  }
5967
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
5934
+ if (input.AutoMinorVersionUpgrade != null) {
5968
5935
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
5969
5936
  }
5970
- if (input.LicenseModel !== undefined && input.LicenseModel !== null) {
5937
+ if (input.LicenseModel != null) {
5971
5938
  entries["LicenseModel"] = input.LicenseModel;
5972
5939
  }
5973
- if (input.Iops !== undefined && input.Iops !== null) {
5940
+ if (input.Iops != null) {
5974
5941
  entries["Iops"] = input.Iops;
5975
5942
  }
5976
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
5943
+ if (input.OptionGroupName != null) {
5977
5944
  entries["OptionGroupName"] = input.OptionGroupName;
5978
5945
  }
5979
- if (input.CharacterSetName !== undefined && input.CharacterSetName !== null) {
5946
+ if (input.CharacterSetName != null) {
5980
5947
  entries["CharacterSetName"] = input.CharacterSetName;
5981
5948
  }
5982
- if (input.PubliclyAccessible !== undefined && input.PubliclyAccessible !== null) {
5949
+ if (input.PubliclyAccessible != null) {
5983
5950
  entries["PubliclyAccessible"] = input.PubliclyAccessible;
5984
5951
  }
5985
- if (input.Tags !== undefined && input.Tags !== null) {
5952
+ if (input.Tags != null) {
5986
5953
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5987
5954
  Object.entries(memberEntries).forEach(function (_a) {
5988
5955
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5990,55 +5957,55 @@ var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
5990
5957
  entries[loc] = value;
5991
5958
  });
5992
5959
  }
5993
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
5960
+ if (input.DBClusterIdentifier != null) {
5994
5961
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
5995
5962
  }
5996
- if (input.StorageType !== undefined && input.StorageType !== null) {
5963
+ if (input.StorageType != null) {
5997
5964
  entries["StorageType"] = input.StorageType;
5998
5965
  }
5999
- if (input.TdeCredentialArn !== undefined && input.TdeCredentialArn !== null) {
5966
+ if (input.TdeCredentialArn != null) {
6000
5967
  entries["TdeCredentialArn"] = input.TdeCredentialArn;
6001
5968
  }
6002
- if (input.TdeCredentialPassword !== undefined && input.TdeCredentialPassword !== null) {
5969
+ if (input.TdeCredentialPassword != null) {
6003
5970
  entries["TdeCredentialPassword"] = input.TdeCredentialPassword;
6004
5971
  }
6005
- if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
5972
+ if (input.StorageEncrypted != null) {
6006
5973
  entries["StorageEncrypted"] = input.StorageEncrypted;
6007
5974
  }
6008
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
5975
+ if (input.KmsKeyId != null) {
6009
5976
  entries["KmsKeyId"] = input.KmsKeyId;
6010
5977
  }
6011
- if (input.Domain !== undefined && input.Domain !== null) {
5978
+ if (input.Domain != null) {
6012
5979
  entries["Domain"] = input.Domain;
6013
5980
  }
6014
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
5981
+ if (input.CopyTagsToSnapshot != null) {
6015
5982
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
6016
5983
  }
6017
- if (input.MonitoringInterval !== undefined && input.MonitoringInterval !== null) {
5984
+ if (input.MonitoringInterval != null) {
6018
5985
  entries["MonitoringInterval"] = input.MonitoringInterval;
6019
5986
  }
6020
- if (input.MonitoringRoleArn !== undefined && input.MonitoringRoleArn !== null) {
5987
+ if (input.MonitoringRoleArn != null) {
6021
5988
  entries["MonitoringRoleArn"] = input.MonitoringRoleArn;
6022
5989
  }
6023
- if (input.DomainIAMRoleName !== undefined && input.DomainIAMRoleName !== null) {
5990
+ if (input.DomainIAMRoleName != null) {
6024
5991
  entries["DomainIAMRoleName"] = input.DomainIAMRoleName;
6025
5992
  }
6026
- if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
5993
+ if (input.PromotionTier != null) {
6027
5994
  entries["PromotionTier"] = input.PromotionTier;
6028
5995
  }
6029
- if (input.Timezone !== undefined && input.Timezone !== null) {
5996
+ if (input.Timezone != null) {
6030
5997
  entries["Timezone"] = input.Timezone;
6031
5998
  }
6032
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
5999
+ if (input.EnableIAMDatabaseAuthentication != null) {
6033
6000
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
6034
6001
  }
6035
- if (input.EnablePerformanceInsights !== undefined && input.EnablePerformanceInsights !== null) {
6002
+ if (input.EnablePerformanceInsights != null) {
6036
6003
  entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights;
6037
6004
  }
6038
- if (input.PerformanceInsightsKMSKeyId !== undefined && input.PerformanceInsightsKMSKeyId !== null) {
6005
+ if (input.PerformanceInsightsKMSKeyId != null) {
6039
6006
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
6040
6007
  }
6041
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
6008
+ if (input.EnableCloudwatchLogsExports != null) {
6042
6009
  var memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
6043
6010
  Object.entries(memberEntries).forEach(function (_a) {
6044
6011
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6046,23 +6013,23 @@ var serializeAws_queryCreateDBInstanceMessage = function (input, context) {
6046
6013
  entries[loc] = value;
6047
6014
  });
6048
6015
  }
6049
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
6016
+ if (input.DeletionProtection != null) {
6050
6017
  entries["DeletionProtection"] = input.DeletionProtection;
6051
6018
  }
6052
6019
  return entries;
6053
6020
  };
6054
6021
  var serializeAws_queryCreateDBParameterGroupMessage = function (input, context) {
6055
6022
  var entries = {};
6056
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
6023
+ if (input.DBParameterGroupName != null) {
6057
6024
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
6058
6025
  }
6059
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
6026
+ if (input.DBParameterGroupFamily != null) {
6060
6027
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
6061
6028
  }
6062
- if (input.Description !== undefined && input.Description !== null) {
6029
+ if (input.Description != null) {
6063
6030
  entries["Description"] = input.Description;
6064
6031
  }
6065
- if (input.Tags !== undefined && input.Tags !== null) {
6032
+ if (input.Tags != null) {
6066
6033
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6067
6034
  Object.entries(memberEntries).forEach(function (_a) {
6068
6035
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6074,13 +6041,13 @@ var serializeAws_queryCreateDBParameterGroupMessage = function (input, context)
6074
6041
  };
6075
6042
  var serializeAws_queryCreateDBSubnetGroupMessage = function (input, context) {
6076
6043
  var entries = {};
6077
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
6044
+ if (input.DBSubnetGroupName != null) {
6078
6045
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
6079
6046
  }
6080
- if (input.DBSubnetGroupDescription !== undefined && input.DBSubnetGroupDescription !== null) {
6047
+ if (input.DBSubnetGroupDescription != null) {
6081
6048
  entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription;
6082
6049
  }
6083
- if (input.SubnetIds !== undefined && input.SubnetIds !== null) {
6050
+ if (input.SubnetIds != null) {
6084
6051
  var memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
6085
6052
  Object.entries(memberEntries).forEach(function (_a) {
6086
6053
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6088,7 +6055,7 @@ var serializeAws_queryCreateDBSubnetGroupMessage = function (input, context) {
6088
6055
  entries[loc] = value;
6089
6056
  });
6090
6057
  }
6091
- if (input.Tags !== undefined && input.Tags !== null) {
6058
+ if (input.Tags != null) {
6092
6059
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6093
6060
  Object.entries(memberEntries).forEach(function (_a) {
6094
6061
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6100,16 +6067,16 @@ var serializeAws_queryCreateDBSubnetGroupMessage = function (input, context) {
6100
6067
  };
6101
6068
  var serializeAws_queryCreateEventSubscriptionMessage = function (input, context) {
6102
6069
  var entries = {};
6103
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
6070
+ if (input.SubscriptionName != null) {
6104
6071
  entries["SubscriptionName"] = input.SubscriptionName;
6105
6072
  }
6106
- if (input.SnsTopicArn !== undefined && input.SnsTopicArn !== null) {
6073
+ if (input.SnsTopicArn != null) {
6107
6074
  entries["SnsTopicArn"] = input.SnsTopicArn;
6108
6075
  }
6109
- if (input.SourceType !== undefined && input.SourceType !== null) {
6076
+ if (input.SourceType != null) {
6110
6077
  entries["SourceType"] = input.SourceType;
6111
6078
  }
6112
- if (input.EventCategories !== undefined && input.EventCategories !== null) {
6079
+ if (input.EventCategories != null) {
6113
6080
  var memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
6114
6081
  Object.entries(memberEntries).forEach(function (_a) {
6115
6082
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6117,7 +6084,7 @@ var serializeAws_queryCreateEventSubscriptionMessage = function (input, context)
6117
6084
  entries[loc] = value;
6118
6085
  });
6119
6086
  }
6120
- if (input.SourceIds !== undefined && input.SourceIds !== null) {
6087
+ if (input.SourceIds != null) {
6121
6088
  var memberEntries = serializeAws_querySourceIdsList(input.SourceIds, context);
6122
6089
  Object.entries(memberEntries).forEach(function (_a) {
6123
6090
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6125,10 +6092,10 @@ var serializeAws_queryCreateEventSubscriptionMessage = function (input, context)
6125
6092
  entries[loc] = value;
6126
6093
  });
6127
6094
  }
6128
- if (input.Enabled !== undefined && input.Enabled !== null) {
6095
+ if (input.Enabled != null) {
6129
6096
  entries["Enabled"] = input.Enabled;
6130
6097
  }
6131
- if (input.Tags !== undefined && input.Tags !== null) {
6098
+ if (input.Tags != null) {
6132
6099
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6133
6100
  Object.entries(memberEntries).forEach(function (_a) {
6134
6101
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6140,22 +6107,22 @@ var serializeAws_queryCreateEventSubscriptionMessage = function (input, context)
6140
6107
  };
6141
6108
  var serializeAws_queryCreateGlobalClusterMessage = function (input, context) {
6142
6109
  var entries = {};
6143
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
6110
+ if (input.GlobalClusterIdentifier != null) {
6144
6111
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
6145
6112
  }
6146
- if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
6113
+ if (input.SourceDBClusterIdentifier != null) {
6147
6114
  entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
6148
6115
  }
6149
- if (input.Engine !== undefined && input.Engine !== null) {
6116
+ if (input.Engine != null) {
6150
6117
  entries["Engine"] = input.Engine;
6151
6118
  }
6152
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
6119
+ if (input.EngineVersion != null) {
6153
6120
  entries["EngineVersion"] = input.EngineVersion;
6154
6121
  }
6155
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
6122
+ if (input.DeletionProtection != null) {
6156
6123
  entries["DeletionProtection"] = input.DeletionProtection;
6157
6124
  }
6158
- if (input.StorageEncrypted !== undefined && input.StorageEncrypted !== null) {
6125
+ if (input.StorageEncrypted != null) {
6159
6126
  entries["StorageEncrypted"] = input.StorageEncrypted;
6160
6127
  }
6161
6128
  return entries;
@@ -6185,88 +6152,88 @@ var serializeAws_queryDBSecurityGroupNameList = function (input, context) {
6185
6152
  };
6186
6153
  var serializeAws_queryDeleteDBClusterEndpointMessage = function (input, context) {
6187
6154
  var entries = {};
6188
- if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
6155
+ if (input.DBClusterEndpointIdentifier != null) {
6189
6156
  entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier;
6190
6157
  }
6191
6158
  return entries;
6192
6159
  };
6193
6160
  var serializeAws_queryDeleteDBClusterMessage = function (input, context) {
6194
6161
  var entries = {};
6195
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6162
+ if (input.DBClusterIdentifier != null) {
6196
6163
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6197
6164
  }
6198
- if (input.SkipFinalSnapshot !== undefined && input.SkipFinalSnapshot !== null) {
6165
+ if (input.SkipFinalSnapshot != null) {
6199
6166
  entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot;
6200
6167
  }
6201
- if (input.FinalDBSnapshotIdentifier !== undefined && input.FinalDBSnapshotIdentifier !== null) {
6168
+ if (input.FinalDBSnapshotIdentifier != null) {
6202
6169
  entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier;
6203
6170
  }
6204
6171
  return entries;
6205
6172
  };
6206
6173
  var serializeAws_queryDeleteDBClusterParameterGroupMessage = function (input, context) {
6207
6174
  var entries = {};
6208
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
6175
+ if (input.DBClusterParameterGroupName != null) {
6209
6176
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
6210
6177
  }
6211
6178
  return entries;
6212
6179
  };
6213
6180
  var serializeAws_queryDeleteDBClusterSnapshotMessage = function (input, context) {
6214
6181
  var entries = {};
6215
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
6182
+ if (input.DBClusterSnapshotIdentifier != null) {
6216
6183
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
6217
6184
  }
6218
6185
  return entries;
6219
6186
  };
6220
6187
  var serializeAws_queryDeleteDBInstanceMessage = function (input, context) {
6221
6188
  var entries = {};
6222
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
6189
+ if (input.DBInstanceIdentifier != null) {
6223
6190
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
6224
6191
  }
6225
- if (input.SkipFinalSnapshot !== undefined && input.SkipFinalSnapshot !== null) {
6192
+ if (input.SkipFinalSnapshot != null) {
6226
6193
  entries["SkipFinalSnapshot"] = input.SkipFinalSnapshot;
6227
6194
  }
6228
- if (input.FinalDBSnapshotIdentifier !== undefined && input.FinalDBSnapshotIdentifier !== null) {
6195
+ if (input.FinalDBSnapshotIdentifier != null) {
6229
6196
  entries["FinalDBSnapshotIdentifier"] = input.FinalDBSnapshotIdentifier;
6230
6197
  }
6231
6198
  return entries;
6232
6199
  };
6233
6200
  var serializeAws_queryDeleteDBParameterGroupMessage = function (input, context) {
6234
6201
  var entries = {};
6235
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
6202
+ if (input.DBParameterGroupName != null) {
6236
6203
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
6237
6204
  }
6238
6205
  return entries;
6239
6206
  };
6240
6207
  var serializeAws_queryDeleteDBSubnetGroupMessage = function (input, context) {
6241
6208
  var entries = {};
6242
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
6209
+ if (input.DBSubnetGroupName != null) {
6243
6210
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
6244
6211
  }
6245
6212
  return entries;
6246
6213
  };
6247
6214
  var serializeAws_queryDeleteEventSubscriptionMessage = function (input, context) {
6248
6215
  var entries = {};
6249
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
6216
+ if (input.SubscriptionName != null) {
6250
6217
  entries["SubscriptionName"] = input.SubscriptionName;
6251
6218
  }
6252
6219
  return entries;
6253
6220
  };
6254
6221
  var serializeAws_queryDeleteGlobalClusterMessage = function (input, context) {
6255
6222
  var entries = {};
6256
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
6223
+ if (input.GlobalClusterIdentifier != null) {
6257
6224
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
6258
6225
  }
6259
6226
  return entries;
6260
6227
  };
6261
6228
  var serializeAws_queryDescribeDBClusterEndpointsMessage = function (input, context) {
6262
6229
  var entries = {};
6263
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6230
+ if (input.DBClusterIdentifier != null) {
6264
6231
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6265
6232
  }
6266
- if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
6233
+ if (input.DBClusterEndpointIdentifier != null) {
6267
6234
  entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier;
6268
6235
  }
6269
- if (input.Filters !== undefined && input.Filters !== null) {
6236
+ if (input.Filters != null) {
6270
6237
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6271
6238
  Object.entries(memberEntries).forEach(function (_a) {
6272
6239
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6274,20 +6241,20 @@ var serializeAws_queryDescribeDBClusterEndpointsMessage = function (input, conte
6274
6241
  entries[loc] = value;
6275
6242
  });
6276
6243
  }
6277
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6244
+ if (input.MaxRecords != null) {
6278
6245
  entries["MaxRecords"] = input.MaxRecords;
6279
6246
  }
6280
- if (input.Marker !== undefined && input.Marker !== null) {
6247
+ if (input.Marker != null) {
6281
6248
  entries["Marker"] = input.Marker;
6282
6249
  }
6283
6250
  return entries;
6284
6251
  };
6285
6252
  var serializeAws_queryDescribeDBClusterParameterGroupsMessage = function (input, context) {
6286
6253
  var entries = {};
6287
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
6254
+ if (input.DBClusterParameterGroupName != null) {
6288
6255
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
6289
6256
  }
6290
- if (input.Filters !== undefined && input.Filters !== null) {
6257
+ if (input.Filters != null) {
6291
6258
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6292
6259
  Object.entries(memberEntries).forEach(function (_a) {
6293
6260
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6295,23 +6262,23 @@ var serializeAws_queryDescribeDBClusterParameterGroupsMessage = function (input,
6295
6262
  entries[loc] = value;
6296
6263
  });
6297
6264
  }
6298
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6265
+ if (input.MaxRecords != null) {
6299
6266
  entries["MaxRecords"] = input.MaxRecords;
6300
6267
  }
6301
- if (input.Marker !== undefined && input.Marker !== null) {
6268
+ if (input.Marker != null) {
6302
6269
  entries["Marker"] = input.Marker;
6303
6270
  }
6304
6271
  return entries;
6305
6272
  };
6306
6273
  var serializeAws_queryDescribeDBClusterParametersMessage = function (input, context) {
6307
6274
  var entries = {};
6308
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
6275
+ if (input.DBClusterParameterGroupName != null) {
6309
6276
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
6310
6277
  }
6311
- if (input.Source !== undefined && input.Source !== null) {
6278
+ if (input.Source != null) {
6312
6279
  entries["Source"] = input.Source;
6313
6280
  }
6314
- if (input.Filters !== undefined && input.Filters !== null) {
6281
+ if (input.Filters != null) {
6315
6282
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6316
6283
  Object.entries(memberEntries).forEach(function (_a) {
6317
6284
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6319,20 +6286,20 @@ var serializeAws_queryDescribeDBClusterParametersMessage = function (input, cont
6319
6286
  entries[loc] = value;
6320
6287
  });
6321
6288
  }
6322
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6289
+ if (input.MaxRecords != null) {
6323
6290
  entries["MaxRecords"] = input.MaxRecords;
6324
6291
  }
6325
- if (input.Marker !== undefined && input.Marker !== null) {
6292
+ if (input.Marker != null) {
6326
6293
  entries["Marker"] = input.Marker;
6327
6294
  }
6328
6295
  return entries;
6329
6296
  };
6330
6297
  var serializeAws_queryDescribeDBClustersMessage = function (input, context) {
6331
6298
  var entries = {};
6332
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6299
+ if (input.DBClusterIdentifier != null) {
6333
6300
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6334
6301
  }
6335
- if (input.Filters !== undefined && input.Filters !== null) {
6302
+ if (input.Filters != null) {
6336
6303
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6337
6304
  Object.entries(memberEntries).forEach(function (_a) {
6338
6305
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6340,33 +6307,33 @@ var serializeAws_queryDescribeDBClustersMessage = function (input, context) {
6340
6307
  entries[loc] = value;
6341
6308
  });
6342
6309
  }
6343
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6310
+ if (input.MaxRecords != null) {
6344
6311
  entries["MaxRecords"] = input.MaxRecords;
6345
6312
  }
6346
- if (input.Marker !== undefined && input.Marker !== null) {
6313
+ if (input.Marker != null) {
6347
6314
  entries["Marker"] = input.Marker;
6348
6315
  }
6349
6316
  return entries;
6350
6317
  };
6351
6318
  var serializeAws_queryDescribeDBClusterSnapshotAttributesMessage = function (input, context) {
6352
6319
  var entries = {};
6353
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
6320
+ if (input.DBClusterSnapshotIdentifier != null) {
6354
6321
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
6355
6322
  }
6356
6323
  return entries;
6357
6324
  };
6358
6325
  var serializeAws_queryDescribeDBClusterSnapshotsMessage = function (input, context) {
6359
6326
  var entries = {};
6360
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6327
+ if (input.DBClusterIdentifier != null) {
6361
6328
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6362
6329
  }
6363
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
6330
+ if (input.DBClusterSnapshotIdentifier != null) {
6364
6331
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
6365
6332
  }
6366
- if (input.SnapshotType !== undefined && input.SnapshotType !== null) {
6333
+ if (input.SnapshotType != null) {
6367
6334
  entries["SnapshotType"] = input.SnapshotType;
6368
6335
  }
6369
- if (input.Filters !== undefined && input.Filters !== null) {
6336
+ if (input.Filters != null) {
6370
6337
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6371
6338
  Object.entries(memberEntries).forEach(function (_a) {
6372
6339
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6374,32 +6341,32 @@ var serializeAws_queryDescribeDBClusterSnapshotsMessage = function (input, conte
6374
6341
  entries[loc] = value;
6375
6342
  });
6376
6343
  }
6377
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6344
+ if (input.MaxRecords != null) {
6378
6345
  entries["MaxRecords"] = input.MaxRecords;
6379
6346
  }
6380
- if (input.Marker !== undefined && input.Marker !== null) {
6347
+ if (input.Marker != null) {
6381
6348
  entries["Marker"] = input.Marker;
6382
6349
  }
6383
- if (input.IncludeShared !== undefined && input.IncludeShared !== null) {
6350
+ if (input.IncludeShared != null) {
6384
6351
  entries["IncludeShared"] = input.IncludeShared;
6385
6352
  }
6386
- if (input.IncludePublic !== undefined && input.IncludePublic !== null) {
6353
+ if (input.IncludePublic != null) {
6387
6354
  entries["IncludePublic"] = input.IncludePublic;
6388
6355
  }
6389
6356
  return entries;
6390
6357
  };
6391
6358
  var serializeAws_queryDescribeDBEngineVersionsMessage = function (input, context) {
6392
6359
  var entries = {};
6393
- if (input.Engine !== undefined && input.Engine !== null) {
6360
+ if (input.Engine != null) {
6394
6361
  entries["Engine"] = input.Engine;
6395
6362
  }
6396
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
6363
+ if (input.EngineVersion != null) {
6397
6364
  entries["EngineVersion"] = input.EngineVersion;
6398
6365
  }
6399
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
6366
+ if (input.DBParameterGroupFamily != null) {
6400
6367
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
6401
6368
  }
6402
- if (input.Filters !== undefined && input.Filters !== null) {
6369
+ if (input.Filters != null) {
6403
6370
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6404
6371
  Object.entries(memberEntries).forEach(function (_a) {
6405
6372
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6407,29 +6374,29 @@ var serializeAws_queryDescribeDBEngineVersionsMessage = function (input, context
6407
6374
  entries[loc] = value;
6408
6375
  });
6409
6376
  }
6410
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6377
+ if (input.MaxRecords != null) {
6411
6378
  entries["MaxRecords"] = input.MaxRecords;
6412
6379
  }
6413
- if (input.Marker !== undefined && input.Marker !== null) {
6380
+ if (input.Marker != null) {
6414
6381
  entries["Marker"] = input.Marker;
6415
6382
  }
6416
- if (input.DefaultOnly !== undefined && input.DefaultOnly !== null) {
6383
+ if (input.DefaultOnly != null) {
6417
6384
  entries["DefaultOnly"] = input.DefaultOnly;
6418
6385
  }
6419
- if (input.ListSupportedCharacterSets !== undefined && input.ListSupportedCharacterSets !== null) {
6386
+ if (input.ListSupportedCharacterSets != null) {
6420
6387
  entries["ListSupportedCharacterSets"] = input.ListSupportedCharacterSets;
6421
6388
  }
6422
- if (input.ListSupportedTimezones !== undefined && input.ListSupportedTimezones !== null) {
6389
+ if (input.ListSupportedTimezones != null) {
6423
6390
  entries["ListSupportedTimezones"] = input.ListSupportedTimezones;
6424
6391
  }
6425
6392
  return entries;
6426
6393
  };
6427
6394
  var serializeAws_queryDescribeDBInstancesMessage = function (input, context) {
6428
6395
  var entries = {};
6429
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
6396
+ if (input.DBInstanceIdentifier != null) {
6430
6397
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
6431
6398
  }
6432
- if (input.Filters !== undefined && input.Filters !== null) {
6399
+ if (input.Filters != null) {
6433
6400
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6434
6401
  Object.entries(memberEntries).forEach(function (_a) {
6435
6402
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6437,20 +6404,20 @@ var serializeAws_queryDescribeDBInstancesMessage = function (input, context) {
6437
6404
  entries[loc] = value;
6438
6405
  });
6439
6406
  }
6440
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6407
+ if (input.MaxRecords != null) {
6441
6408
  entries["MaxRecords"] = input.MaxRecords;
6442
6409
  }
6443
- if (input.Marker !== undefined && input.Marker !== null) {
6410
+ if (input.Marker != null) {
6444
6411
  entries["Marker"] = input.Marker;
6445
6412
  }
6446
6413
  return entries;
6447
6414
  };
6448
6415
  var serializeAws_queryDescribeDBParameterGroupsMessage = function (input, context) {
6449
6416
  var entries = {};
6450
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
6417
+ if (input.DBParameterGroupName != null) {
6451
6418
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
6452
6419
  }
6453
- if (input.Filters !== undefined && input.Filters !== null) {
6420
+ if (input.Filters != null) {
6454
6421
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6455
6422
  Object.entries(memberEntries).forEach(function (_a) {
6456
6423
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6458,23 +6425,23 @@ var serializeAws_queryDescribeDBParameterGroupsMessage = function (input, contex
6458
6425
  entries[loc] = value;
6459
6426
  });
6460
6427
  }
6461
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6428
+ if (input.MaxRecords != null) {
6462
6429
  entries["MaxRecords"] = input.MaxRecords;
6463
6430
  }
6464
- if (input.Marker !== undefined && input.Marker !== null) {
6431
+ if (input.Marker != null) {
6465
6432
  entries["Marker"] = input.Marker;
6466
6433
  }
6467
6434
  return entries;
6468
6435
  };
6469
6436
  var serializeAws_queryDescribeDBParametersMessage = function (input, context) {
6470
6437
  var entries = {};
6471
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
6438
+ if (input.DBParameterGroupName != null) {
6472
6439
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
6473
6440
  }
6474
- if (input.Source !== undefined && input.Source !== null) {
6441
+ if (input.Source != null) {
6475
6442
  entries["Source"] = input.Source;
6476
6443
  }
6477
- if (input.Filters !== undefined && input.Filters !== null) {
6444
+ if (input.Filters != null) {
6478
6445
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6479
6446
  Object.entries(memberEntries).forEach(function (_a) {
6480
6447
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6482,20 +6449,20 @@ var serializeAws_queryDescribeDBParametersMessage = function (input, context) {
6482
6449
  entries[loc] = value;
6483
6450
  });
6484
6451
  }
6485
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6452
+ if (input.MaxRecords != null) {
6486
6453
  entries["MaxRecords"] = input.MaxRecords;
6487
6454
  }
6488
- if (input.Marker !== undefined && input.Marker !== null) {
6455
+ if (input.Marker != null) {
6489
6456
  entries["Marker"] = input.Marker;
6490
6457
  }
6491
6458
  return entries;
6492
6459
  };
6493
6460
  var serializeAws_queryDescribeDBSubnetGroupsMessage = function (input, context) {
6494
6461
  var entries = {};
6495
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
6462
+ if (input.DBSubnetGroupName != null) {
6496
6463
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
6497
6464
  }
6498
- if (input.Filters !== undefined && input.Filters !== null) {
6465
+ if (input.Filters != null) {
6499
6466
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6500
6467
  Object.entries(memberEntries).forEach(function (_a) {
6501
6468
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6503,20 +6470,20 @@ var serializeAws_queryDescribeDBSubnetGroupsMessage = function (input, context)
6503
6470
  entries[loc] = value;
6504
6471
  });
6505
6472
  }
6506
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6473
+ if (input.MaxRecords != null) {
6507
6474
  entries["MaxRecords"] = input.MaxRecords;
6508
6475
  }
6509
- if (input.Marker !== undefined && input.Marker !== null) {
6476
+ if (input.Marker != null) {
6510
6477
  entries["Marker"] = input.Marker;
6511
6478
  }
6512
6479
  return entries;
6513
6480
  };
6514
6481
  var serializeAws_queryDescribeEngineDefaultClusterParametersMessage = function (input, context) {
6515
6482
  var entries = {};
6516
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
6483
+ if (input.DBParameterGroupFamily != null) {
6517
6484
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
6518
6485
  }
6519
- if (input.Filters !== undefined && input.Filters !== null) {
6486
+ if (input.Filters != null) {
6520
6487
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6521
6488
  Object.entries(memberEntries).forEach(function (_a) {
6522
6489
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6524,20 +6491,20 @@ var serializeAws_queryDescribeEngineDefaultClusterParametersMessage = function (
6524
6491
  entries[loc] = value;
6525
6492
  });
6526
6493
  }
6527
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6494
+ if (input.MaxRecords != null) {
6528
6495
  entries["MaxRecords"] = input.MaxRecords;
6529
6496
  }
6530
- if (input.Marker !== undefined && input.Marker !== null) {
6497
+ if (input.Marker != null) {
6531
6498
  entries["Marker"] = input.Marker;
6532
6499
  }
6533
6500
  return entries;
6534
6501
  };
6535
6502
  var serializeAws_queryDescribeEngineDefaultParametersMessage = function (input, context) {
6536
6503
  var entries = {};
6537
- if (input.DBParameterGroupFamily !== undefined && input.DBParameterGroupFamily !== null) {
6504
+ if (input.DBParameterGroupFamily != null) {
6538
6505
  entries["DBParameterGroupFamily"] = input.DBParameterGroupFamily;
6539
6506
  }
6540
- if (input.Filters !== undefined && input.Filters !== null) {
6507
+ if (input.Filters != null) {
6541
6508
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6542
6509
  Object.entries(memberEntries).forEach(function (_a) {
6543
6510
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6545,20 +6512,20 @@ var serializeAws_queryDescribeEngineDefaultParametersMessage = function (input,
6545
6512
  entries[loc] = value;
6546
6513
  });
6547
6514
  }
6548
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6515
+ if (input.MaxRecords != null) {
6549
6516
  entries["MaxRecords"] = input.MaxRecords;
6550
6517
  }
6551
- if (input.Marker !== undefined && input.Marker !== null) {
6518
+ if (input.Marker != null) {
6552
6519
  entries["Marker"] = input.Marker;
6553
6520
  }
6554
6521
  return entries;
6555
6522
  };
6556
6523
  var serializeAws_queryDescribeEventCategoriesMessage = function (input, context) {
6557
6524
  var entries = {};
6558
- if (input.SourceType !== undefined && input.SourceType !== null) {
6525
+ if (input.SourceType != null) {
6559
6526
  entries["SourceType"] = input.SourceType;
6560
6527
  }
6561
- if (input.Filters !== undefined && input.Filters !== null) {
6528
+ if (input.Filters != null) {
6562
6529
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6563
6530
  Object.entries(memberEntries).forEach(function (_a) {
6564
6531
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6570,22 +6537,22 @@ var serializeAws_queryDescribeEventCategoriesMessage = function (input, context)
6570
6537
  };
6571
6538
  var serializeAws_queryDescribeEventsMessage = function (input, context) {
6572
6539
  var entries = {};
6573
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
6540
+ if (input.SourceIdentifier != null) {
6574
6541
  entries["SourceIdentifier"] = input.SourceIdentifier;
6575
6542
  }
6576
- if (input.SourceType !== undefined && input.SourceType !== null) {
6543
+ if (input.SourceType != null) {
6577
6544
  entries["SourceType"] = input.SourceType;
6578
6545
  }
6579
- if (input.StartTime !== undefined && input.StartTime !== null) {
6546
+ if (input.StartTime != null) {
6580
6547
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
6581
6548
  }
6582
- if (input.EndTime !== undefined && input.EndTime !== null) {
6549
+ if (input.EndTime != null) {
6583
6550
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
6584
6551
  }
6585
- if (input.Duration !== undefined && input.Duration !== null) {
6552
+ if (input.Duration != null) {
6586
6553
  entries["Duration"] = input.Duration;
6587
6554
  }
6588
- if (input.EventCategories !== undefined && input.EventCategories !== null) {
6555
+ if (input.EventCategories != null) {
6589
6556
  var memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
6590
6557
  Object.entries(memberEntries).forEach(function (_a) {
6591
6558
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6593,7 +6560,7 @@ var serializeAws_queryDescribeEventsMessage = function (input, context) {
6593
6560
  entries[loc] = value;
6594
6561
  });
6595
6562
  }
6596
- if (input.Filters !== undefined && input.Filters !== null) {
6563
+ if (input.Filters != null) {
6597
6564
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6598
6565
  Object.entries(memberEntries).forEach(function (_a) {
6599
6566
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6601,20 +6568,20 @@ var serializeAws_queryDescribeEventsMessage = function (input, context) {
6601
6568
  entries[loc] = value;
6602
6569
  });
6603
6570
  }
6604
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6571
+ if (input.MaxRecords != null) {
6605
6572
  entries["MaxRecords"] = input.MaxRecords;
6606
6573
  }
6607
- if (input.Marker !== undefined && input.Marker !== null) {
6574
+ if (input.Marker != null) {
6608
6575
  entries["Marker"] = input.Marker;
6609
6576
  }
6610
6577
  return entries;
6611
6578
  };
6612
6579
  var serializeAws_queryDescribeEventSubscriptionsMessage = function (input, context) {
6613
6580
  var entries = {};
6614
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
6581
+ if (input.SubscriptionName != null) {
6615
6582
  entries["SubscriptionName"] = input.SubscriptionName;
6616
6583
  }
6617
- if (input.Filters !== undefined && input.Filters !== null) {
6584
+ if (input.Filters != null) {
6618
6585
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6619
6586
  Object.entries(memberEntries).forEach(function (_a) {
6620
6587
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6622,45 +6589,45 @@ var serializeAws_queryDescribeEventSubscriptionsMessage = function (input, conte
6622
6589
  entries[loc] = value;
6623
6590
  });
6624
6591
  }
6625
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6592
+ if (input.MaxRecords != null) {
6626
6593
  entries["MaxRecords"] = input.MaxRecords;
6627
6594
  }
6628
- if (input.Marker !== undefined && input.Marker !== null) {
6595
+ if (input.Marker != null) {
6629
6596
  entries["Marker"] = input.Marker;
6630
6597
  }
6631
6598
  return entries;
6632
6599
  };
6633
6600
  var serializeAws_queryDescribeGlobalClustersMessage = function (input, context) {
6634
6601
  var entries = {};
6635
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
6602
+ if (input.GlobalClusterIdentifier != null) {
6636
6603
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
6637
6604
  }
6638
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6605
+ if (input.MaxRecords != null) {
6639
6606
  entries["MaxRecords"] = input.MaxRecords;
6640
6607
  }
6641
- if (input.Marker !== undefined && input.Marker !== null) {
6608
+ if (input.Marker != null) {
6642
6609
  entries["Marker"] = input.Marker;
6643
6610
  }
6644
6611
  return entries;
6645
6612
  };
6646
6613
  var serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = function (input, context) {
6647
6614
  var entries = {};
6648
- if (input.Engine !== undefined && input.Engine !== null) {
6615
+ if (input.Engine != null) {
6649
6616
  entries["Engine"] = input.Engine;
6650
6617
  }
6651
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
6618
+ if (input.EngineVersion != null) {
6652
6619
  entries["EngineVersion"] = input.EngineVersion;
6653
6620
  }
6654
- if (input.DBInstanceClass !== undefined && input.DBInstanceClass !== null) {
6621
+ if (input.DBInstanceClass != null) {
6655
6622
  entries["DBInstanceClass"] = input.DBInstanceClass;
6656
6623
  }
6657
- if (input.LicenseModel !== undefined && input.LicenseModel !== null) {
6624
+ if (input.LicenseModel != null) {
6658
6625
  entries["LicenseModel"] = input.LicenseModel;
6659
6626
  }
6660
- if (input.Vpc !== undefined && input.Vpc !== null) {
6627
+ if (input.Vpc != null) {
6661
6628
  entries["Vpc"] = input.Vpc;
6662
6629
  }
6663
- if (input.Filters !== undefined && input.Filters !== null) {
6630
+ if (input.Filters != null) {
6664
6631
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6665
6632
  Object.entries(memberEntries).forEach(function (_a) {
6666
6633
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6668,20 +6635,20 @@ var serializeAws_queryDescribeOrderableDBInstanceOptionsMessage = function (inpu
6668
6635
  entries[loc] = value;
6669
6636
  });
6670
6637
  }
6671
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6638
+ if (input.MaxRecords != null) {
6672
6639
  entries["MaxRecords"] = input.MaxRecords;
6673
6640
  }
6674
- if (input.Marker !== undefined && input.Marker !== null) {
6641
+ if (input.Marker != null) {
6675
6642
  entries["Marker"] = input.Marker;
6676
6643
  }
6677
6644
  return entries;
6678
6645
  };
6679
6646
  var serializeAws_queryDescribePendingMaintenanceActionsMessage = function (input, context) {
6680
6647
  var entries = {};
6681
- if (input.ResourceIdentifier !== undefined && input.ResourceIdentifier !== null) {
6648
+ if (input.ResourceIdentifier != null) {
6682
6649
  entries["ResourceIdentifier"] = input.ResourceIdentifier;
6683
6650
  }
6684
- if (input.Filters !== undefined && input.Filters !== null) {
6651
+ if (input.Filters != null) {
6685
6652
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6686
6653
  Object.entries(memberEntries).forEach(function (_a) {
6687
6654
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6689,17 +6656,17 @@ var serializeAws_queryDescribePendingMaintenanceActionsMessage = function (input
6689
6656
  entries[loc] = value;
6690
6657
  });
6691
6658
  }
6692
- if (input.Marker !== undefined && input.Marker !== null) {
6659
+ if (input.Marker != null) {
6693
6660
  entries["Marker"] = input.Marker;
6694
6661
  }
6695
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6662
+ if (input.MaxRecords != null) {
6696
6663
  entries["MaxRecords"] = input.MaxRecords;
6697
6664
  }
6698
6665
  return entries;
6699
6666
  };
6700
6667
  var serializeAws_queryDescribeValidDBInstanceModificationsMessage = function (input, context) {
6701
6668
  var entries = {};
6702
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
6669
+ if (input.DBInstanceIdentifier != null) {
6703
6670
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
6704
6671
  }
6705
6672
  return entries;
@@ -6729,30 +6696,30 @@ var serializeAws_queryEventCategoriesList = function (input, context) {
6729
6696
  };
6730
6697
  var serializeAws_queryFailoverDBClusterMessage = function (input, context) {
6731
6698
  var entries = {};
6732
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6699
+ if (input.DBClusterIdentifier != null) {
6733
6700
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6734
6701
  }
6735
- if (input.TargetDBInstanceIdentifier !== undefined && input.TargetDBInstanceIdentifier !== null) {
6702
+ if (input.TargetDBInstanceIdentifier != null) {
6736
6703
  entries["TargetDBInstanceIdentifier"] = input.TargetDBInstanceIdentifier;
6737
6704
  }
6738
6705
  return entries;
6739
6706
  };
6740
6707
  var serializeAws_queryFailoverGlobalClusterMessage = function (input, context) {
6741
6708
  var entries = {};
6742
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
6709
+ if (input.GlobalClusterIdentifier != null) {
6743
6710
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
6744
6711
  }
6745
- if (input.TargetDbClusterIdentifier !== undefined && input.TargetDbClusterIdentifier !== null) {
6712
+ if (input.TargetDbClusterIdentifier != null) {
6746
6713
  entries["TargetDbClusterIdentifier"] = input.TargetDbClusterIdentifier;
6747
6714
  }
6748
6715
  return entries;
6749
6716
  };
6750
6717
  var serializeAws_queryFilter = function (input, context) {
6751
6718
  var entries = {};
6752
- if (input.Name !== undefined && input.Name !== null) {
6719
+ if (input.Name != null) {
6753
6720
  entries["Name"] = input.Name;
6754
6721
  }
6755
- if (input.Values !== undefined && input.Values !== null) {
6722
+ if (input.Values != null) {
6756
6723
  var memberEntries = serializeAws_queryFilterValueList(input.Values, context);
6757
6724
  Object.entries(memberEntries).forEach(function (_a) {
6758
6725
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6837,10 +6804,10 @@ var serializeAws_queryKeyList = function (input, context) {
6837
6804
  };
6838
6805
  var serializeAws_queryListTagsForResourceMessage = function (input, context) {
6839
6806
  var entries = {};
6840
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
6807
+ if (input.ResourceName != null) {
6841
6808
  entries["ResourceName"] = input.ResourceName;
6842
6809
  }
6843
- if (input.Filters !== undefined && input.Filters !== null) {
6810
+ if (input.Filters != null) {
6844
6811
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6845
6812
  Object.entries(memberEntries).forEach(function (_a) {
6846
6813
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6875,13 +6842,13 @@ var serializeAws_queryLogTypeList = function (input, context) {
6875
6842
  };
6876
6843
  var serializeAws_queryModifyDBClusterEndpointMessage = function (input, context) {
6877
6844
  var entries = {};
6878
- if (input.DBClusterEndpointIdentifier !== undefined && input.DBClusterEndpointIdentifier !== null) {
6845
+ if (input.DBClusterEndpointIdentifier != null) {
6879
6846
  entries["DBClusterEndpointIdentifier"] = input.DBClusterEndpointIdentifier;
6880
6847
  }
6881
- if (input.EndpointType !== undefined && input.EndpointType !== null) {
6848
+ if (input.EndpointType != null) {
6882
6849
  entries["EndpointType"] = input.EndpointType;
6883
6850
  }
6884
- if (input.StaticMembers !== undefined && input.StaticMembers !== null) {
6851
+ if (input.StaticMembers != null) {
6885
6852
  var memberEntries = serializeAws_queryStringList(input.StaticMembers, context);
6886
6853
  Object.entries(memberEntries).forEach(function (_a) {
6887
6854
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6889,7 +6856,7 @@ var serializeAws_queryModifyDBClusterEndpointMessage = function (input, context)
6889
6856
  entries[loc] = value;
6890
6857
  });
6891
6858
  }
6892
- if (input.ExcludedMembers !== undefined && input.ExcludedMembers !== null) {
6859
+ if (input.ExcludedMembers != null) {
6893
6860
  var memberEntries = serializeAws_queryStringList(input.ExcludedMembers, context);
6894
6861
  Object.entries(memberEntries).forEach(function (_a) {
6895
6862
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6901,22 +6868,22 @@ var serializeAws_queryModifyDBClusterEndpointMessage = function (input, context)
6901
6868
  };
6902
6869
  var serializeAws_queryModifyDBClusterMessage = function (input, context) {
6903
6870
  var entries = {};
6904
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
6871
+ if (input.DBClusterIdentifier != null) {
6905
6872
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
6906
6873
  }
6907
- if (input.NewDBClusterIdentifier !== undefined && input.NewDBClusterIdentifier !== null) {
6874
+ if (input.NewDBClusterIdentifier != null) {
6908
6875
  entries["NewDBClusterIdentifier"] = input.NewDBClusterIdentifier;
6909
6876
  }
6910
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
6877
+ if (input.ApplyImmediately != null) {
6911
6878
  entries["ApplyImmediately"] = input.ApplyImmediately;
6912
6879
  }
6913
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
6880
+ if (input.BackupRetentionPeriod != null) {
6914
6881
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
6915
6882
  }
6916
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
6883
+ if (input.DBClusterParameterGroupName != null) {
6917
6884
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
6918
6885
  }
6919
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
6886
+ if (input.VpcSecurityGroupIds != null) {
6920
6887
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
6921
6888
  Object.entries(memberEntries).forEach(function (_a) {
6922
6889
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6924,25 +6891,25 @@ var serializeAws_queryModifyDBClusterMessage = function (input, context) {
6924
6891
  entries[loc] = value;
6925
6892
  });
6926
6893
  }
6927
- if (input.Port !== undefined && input.Port !== null) {
6894
+ if (input.Port != null) {
6928
6895
  entries["Port"] = input.Port;
6929
6896
  }
6930
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
6897
+ if (input.MasterUserPassword != null) {
6931
6898
  entries["MasterUserPassword"] = input.MasterUserPassword;
6932
6899
  }
6933
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
6900
+ if (input.OptionGroupName != null) {
6934
6901
  entries["OptionGroupName"] = input.OptionGroupName;
6935
6902
  }
6936
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
6903
+ if (input.PreferredBackupWindow != null) {
6937
6904
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
6938
6905
  }
6939
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
6906
+ if (input.PreferredMaintenanceWindow != null) {
6940
6907
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
6941
6908
  }
6942
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
6909
+ if (input.EnableIAMDatabaseAuthentication != null) {
6943
6910
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
6944
6911
  }
6945
- if (input.CloudwatchLogsExportConfiguration !== undefined && input.CloudwatchLogsExportConfiguration !== null) {
6912
+ if (input.CloudwatchLogsExportConfiguration != null) {
6946
6913
  var memberEntries = serializeAws_queryCloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context);
6947
6914
  Object.entries(memberEntries).forEach(function (_a) {
6948
6915
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6950,29 +6917,29 @@ var serializeAws_queryModifyDBClusterMessage = function (input, context) {
6950
6917
  entries[loc] = value;
6951
6918
  });
6952
6919
  }
6953
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
6920
+ if (input.EngineVersion != null) {
6954
6921
  entries["EngineVersion"] = input.EngineVersion;
6955
6922
  }
6956
- if (input.AllowMajorVersionUpgrade !== undefined && input.AllowMajorVersionUpgrade !== null) {
6923
+ if (input.AllowMajorVersionUpgrade != null) {
6957
6924
  entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade;
6958
6925
  }
6959
- if (input.DBInstanceParameterGroupName !== undefined && input.DBInstanceParameterGroupName !== null) {
6926
+ if (input.DBInstanceParameterGroupName != null) {
6960
6927
  entries["DBInstanceParameterGroupName"] = input.DBInstanceParameterGroupName;
6961
6928
  }
6962
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
6929
+ if (input.DeletionProtection != null) {
6963
6930
  entries["DeletionProtection"] = input.DeletionProtection;
6964
6931
  }
6965
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
6932
+ if (input.CopyTagsToSnapshot != null) {
6966
6933
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
6967
6934
  }
6968
6935
  return entries;
6969
6936
  };
6970
6937
  var serializeAws_queryModifyDBClusterParameterGroupMessage = function (input, context) {
6971
6938
  var entries = {};
6972
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
6939
+ if (input.DBClusterParameterGroupName != null) {
6973
6940
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
6974
6941
  }
6975
- if (input.Parameters !== undefined && input.Parameters !== null) {
6942
+ if (input.Parameters != null) {
6976
6943
  var memberEntries = serializeAws_queryParametersList(input.Parameters, context);
6977
6944
  Object.entries(memberEntries).forEach(function (_a) {
6978
6945
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6984,13 +6951,13 @@ var serializeAws_queryModifyDBClusterParameterGroupMessage = function (input, co
6984
6951
  };
6985
6952
  var serializeAws_queryModifyDBClusterSnapshotAttributeMessage = function (input, context) {
6986
6953
  var entries = {};
6987
- if (input.DBClusterSnapshotIdentifier !== undefined && input.DBClusterSnapshotIdentifier !== null) {
6954
+ if (input.DBClusterSnapshotIdentifier != null) {
6988
6955
  entries["DBClusterSnapshotIdentifier"] = input.DBClusterSnapshotIdentifier;
6989
6956
  }
6990
- if (input.AttributeName !== undefined && input.AttributeName !== null) {
6957
+ if (input.AttributeName != null) {
6991
6958
  entries["AttributeName"] = input.AttributeName;
6992
6959
  }
6993
- if (input.ValuesToAdd !== undefined && input.ValuesToAdd !== null) {
6960
+ if (input.ValuesToAdd != null) {
6994
6961
  var memberEntries = serializeAws_queryAttributeValueList(input.ValuesToAdd, context);
6995
6962
  Object.entries(memberEntries).forEach(function (_a) {
6996
6963
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6998,7 +6965,7 @@ var serializeAws_queryModifyDBClusterSnapshotAttributeMessage = function (input,
6998
6965
  entries[loc] = value;
6999
6966
  });
7000
6967
  }
7001
- if (input.ValuesToRemove !== undefined && input.ValuesToRemove !== null) {
6968
+ if (input.ValuesToRemove != null) {
7002
6969
  var memberEntries = serializeAws_queryAttributeValueList(input.ValuesToRemove, context);
7003
6970
  Object.entries(memberEntries).forEach(function (_a) {
7004
6971
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7010,19 +6977,19 @@ var serializeAws_queryModifyDBClusterSnapshotAttributeMessage = function (input,
7010
6977
  };
7011
6978
  var serializeAws_queryModifyDBInstanceMessage = function (input, context) {
7012
6979
  var entries = {};
7013
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
6980
+ if (input.DBInstanceIdentifier != null) {
7014
6981
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
7015
6982
  }
7016
- if (input.AllocatedStorage !== undefined && input.AllocatedStorage !== null) {
6983
+ if (input.AllocatedStorage != null) {
7017
6984
  entries["AllocatedStorage"] = input.AllocatedStorage;
7018
6985
  }
7019
- if (input.DBInstanceClass !== undefined && input.DBInstanceClass !== null) {
6986
+ if (input.DBInstanceClass != null) {
7020
6987
  entries["DBInstanceClass"] = input.DBInstanceClass;
7021
6988
  }
7022
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
6989
+ if (input.DBSubnetGroupName != null) {
7023
6990
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
7024
6991
  }
7025
- if (input.DBSecurityGroups !== undefined && input.DBSecurityGroups !== null) {
6992
+ if (input.DBSecurityGroups != null) {
7026
6993
  var memberEntries = serializeAws_queryDBSecurityGroupNameList(input.DBSecurityGroups, context);
7027
6994
  Object.entries(memberEntries).forEach(function (_a) {
7028
6995
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7030,7 +6997,7 @@ var serializeAws_queryModifyDBInstanceMessage = function (input, context) {
7030
6997
  entries[loc] = value;
7031
6998
  });
7032
6999
  }
7033
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
7000
+ if (input.VpcSecurityGroupIds != null) {
7034
7001
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
7035
7002
  Object.entries(memberEntries).forEach(function (_a) {
7036
7003
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7038,94 +7005,94 @@ var serializeAws_queryModifyDBInstanceMessage = function (input, context) {
7038
7005
  entries[loc] = value;
7039
7006
  });
7040
7007
  }
7041
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
7008
+ if (input.ApplyImmediately != null) {
7042
7009
  entries["ApplyImmediately"] = input.ApplyImmediately;
7043
7010
  }
7044
- if (input.MasterUserPassword !== undefined && input.MasterUserPassword !== null) {
7011
+ if (input.MasterUserPassword != null) {
7045
7012
  entries["MasterUserPassword"] = input.MasterUserPassword;
7046
7013
  }
7047
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
7014
+ if (input.DBParameterGroupName != null) {
7048
7015
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
7049
7016
  }
7050
- if (input.BackupRetentionPeriod !== undefined && input.BackupRetentionPeriod !== null) {
7017
+ if (input.BackupRetentionPeriod != null) {
7051
7018
  entries["BackupRetentionPeriod"] = input.BackupRetentionPeriod;
7052
7019
  }
7053
- if (input.PreferredBackupWindow !== undefined && input.PreferredBackupWindow !== null) {
7020
+ if (input.PreferredBackupWindow != null) {
7054
7021
  entries["PreferredBackupWindow"] = input.PreferredBackupWindow;
7055
7022
  }
7056
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
7023
+ if (input.PreferredMaintenanceWindow != null) {
7057
7024
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
7058
7025
  }
7059
- if (input.MultiAZ !== undefined && input.MultiAZ !== null) {
7026
+ if (input.MultiAZ != null) {
7060
7027
  entries["MultiAZ"] = input.MultiAZ;
7061
7028
  }
7062
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
7029
+ if (input.EngineVersion != null) {
7063
7030
  entries["EngineVersion"] = input.EngineVersion;
7064
7031
  }
7065
- if (input.AllowMajorVersionUpgrade !== undefined && input.AllowMajorVersionUpgrade !== null) {
7032
+ if (input.AllowMajorVersionUpgrade != null) {
7066
7033
  entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade;
7067
7034
  }
7068
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
7035
+ if (input.AutoMinorVersionUpgrade != null) {
7069
7036
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
7070
7037
  }
7071
- if (input.LicenseModel !== undefined && input.LicenseModel !== null) {
7038
+ if (input.LicenseModel != null) {
7072
7039
  entries["LicenseModel"] = input.LicenseModel;
7073
7040
  }
7074
- if (input.Iops !== undefined && input.Iops !== null) {
7041
+ if (input.Iops != null) {
7075
7042
  entries["Iops"] = input.Iops;
7076
7043
  }
7077
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
7044
+ if (input.OptionGroupName != null) {
7078
7045
  entries["OptionGroupName"] = input.OptionGroupName;
7079
7046
  }
7080
- if (input.NewDBInstanceIdentifier !== undefined && input.NewDBInstanceIdentifier !== null) {
7047
+ if (input.NewDBInstanceIdentifier != null) {
7081
7048
  entries["NewDBInstanceIdentifier"] = input.NewDBInstanceIdentifier;
7082
7049
  }
7083
- if (input.StorageType !== undefined && input.StorageType !== null) {
7050
+ if (input.StorageType != null) {
7084
7051
  entries["StorageType"] = input.StorageType;
7085
7052
  }
7086
- if (input.TdeCredentialArn !== undefined && input.TdeCredentialArn !== null) {
7053
+ if (input.TdeCredentialArn != null) {
7087
7054
  entries["TdeCredentialArn"] = input.TdeCredentialArn;
7088
7055
  }
7089
- if (input.TdeCredentialPassword !== undefined && input.TdeCredentialPassword !== null) {
7056
+ if (input.TdeCredentialPassword != null) {
7090
7057
  entries["TdeCredentialPassword"] = input.TdeCredentialPassword;
7091
7058
  }
7092
- if (input.CACertificateIdentifier !== undefined && input.CACertificateIdentifier !== null) {
7059
+ if (input.CACertificateIdentifier != null) {
7093
7060
  entries["CACertificateIdentifier"] = input.CACertificateIdentifier;
7094
7061
  }
7095
- if (input.Domain !== undefined && input.Domain !== null) {
7062
+ if (input.Domain != null) {
7096
7063
  entries["Domain"] = input.Domain;
7097
7064
  }
7098
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
7065
+ if (input.CopyTagsToSnapshot != null) {
7099
7066
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
7100
7067
  }
7101
- if (input.MonitoringInterval !== undefined && input.MonitoringInterval !== null) {
7068
+ if (input.MonitoringInterval != null) {
7102
7069
  entries["MonitoringInterval"] = input.MonitoringInterval;
7103
7070
  }
7104
- if (input.DBPortNumber !== undefined && input.DBPortNumber !== null) {
7071
+ if (input.DBPortNumber != null) {
7105
7072
  entries["DBPortNumber"] = input.DBPortNumber;
7106
7073
  }
7107
- if (input.PubliclyAccessible !== undefined && input.PubliclyAccessible !== null) {
7074
+ if (input.PubliclyAccessible != null) {
7108
7075
  entries["PubliclyAccessible"] = input.PubliclyAccessible;
7109
7076
  }
7110
- if (input.MonitoringRoleArn !== undefined && input.MonitoringRoleArn !== null) {
7077
+ if (input.MonitoringRoleArn != null) {
7111
7078
  entries["MonitoringRoleArn"] = input.MonitoringRoleArn;
7112
7079
  }
7113
- if (input.DomainIAMRoleName !== undefined && input.DomainIAMRoleName !== null) {
7080
+ if (input.DomainIAMRoleName != null) {
7114
7081
  entries["DomainIAMRoleName"] = input.DomainIAMRoleName;
7115
7082
  }
7116
- if (input.PromotionTier !== undefined && input.PromotionTier !== null) {
7083
+ if (input.PromotionTier != null) {
7117
7084
  entries["PromotionTier"] = input.PromotionTier;
7118
7085
  }
7119
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
7086
+ if (input.EnableIAMDatabaseAuthentication != null) {
7120
7087
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
7121
7088
  }
7122
- if (input.EnablePerformanceInsights !== undefined && input.EnablePerformanceInsights !== null) {
7089
+ if (input.EnablePerformanceInsights != null) {
7123
7090
  entries["EnablePerformanceInsights"] = input.EnablePerformanceInsights;
7124
7091
  }
7125
- if (input.PerformanceInsightsKMSKeyId !== undefined && input.PerformanceInsightsKMSKeyId !== null) {
7092
+ if (input.PerformanceInsightsKMSKeyId != null) {
7126
7093
  entries["PerformanceInsightsKMSKeyId"] = input.PerformanceInsightsKMSKeyId;
7127
7094
  }
7128
- if (input.CloudwatchLogsExportConfiguration !== undefined && input.CloudwatchLogsExportConfiguration !== null) {
7095
+ if (input.CloudwatchLogsExportConfiguration != null) {
7129
7096
  var memberEntries = serializeAws_queryCloudwatchLogsExportConfiguration(input.CloudwatchLogsExportConfiguration, context);
7130
7097
  Object.entries(memberEntries).forEach(function (_a) {
7131
7098
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7133,17 +7100,17 @@ var serializeAws_queryModifyDBInstanceMessage = function (input, context) {
7133
7100
  entries[loc] = value;
7134
7101
  });
7135
7102
  }
7136
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
7103
+ if (input.DeletionProtection != null) {
7137
7104
  entries["DeletionProtection"] = input.DeletionProtection;
7138
7105
  }
7139
7106
  return entries;
7140
7107
  };
7141
7108
  var serializeAws_queryModifyDBParameterGroupMessage = function (input, context) {
7142
7109
  var entries = {};
7143
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
7110
+ if (input.DBParameterGroupName != null) {
7144
7111
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
7145
7112
  }
7146
- if (input.Parameters !== undefined && input.Parameters !== null) {
7113
+ if (input.Parameters != null) {
7147
7114
  var memberEntries = serializeAws_queryParametersList(input.Parameters, context);
7148
7115
  Object.entries(memberEntries).forEach(function (_a) {
7149
7116
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7155,13 +7122,13 @@ var serializeAws_queryModifyDBParameterGroupMessage = function (input, context)
7155
7122
  };
7156
7123
  var serializeAws_queryModifyDBSubnetGroupMessage = function (input, context) {
7157
7124
  var entries = {};
7158
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
7125
+ if (input.DBSubnetGroupName != null) {
7159
7126
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
7160
7127
  }
7161
- if (input.DBSubnetGroupDescription !== undefined && input.DBSubnetGroupDescription !== null) {
7128
+ if (input.DBSubnetGroupDescription != null) {
7162
7129
  entries["DBSubnetGroupDescription"] = input.DBSubnetGroupDescription;
7163
7130
  }
7164
- if (input.SubnetIds !== undefined && input.SubnetIds !== null) {
7131
+ if (input.SubnetIds != null) {
7165
7132
  var memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
7166
7133
  Object.entries(memberEntries).forEach(function (_a) {
7167
7134
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7173,16 +7140,16 @@ var serializeAws_queryModifyDBSubnetGroupMessage = function (input, context) {
7173
7140
  };
7174
7141
  var serializeAws_queryModifyEventSubscriptionMessage = function (input, context) {
7175
7142
  var entries = {};
7176
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
7143
+ if (input.SubscriptionName != null) {
7177
7144
  entries["SubscriptionName"] = input.SubscriptionName;
7178
7145
  }
7179
- if (input.SnsTopicArn !== undefined && input.SnsTopicArn !== null) {
7146
+ if (input.SnsTopicArn != null) {
7180
7147
  entries["SnsTopicArn"] = input.SnsTopicArn;
7181
7148
  }
7182
- if (input.SourceType !== undefined && input.SourceType !== null) {
7149
+ if (input.SourceType != null) {
7183
7150
  entries["SourceType"] = input.SourceType;
7184
7151
  }
7185
- if (input.EventCategories !== undefined && input.EventCategories !== null) {
7152
+ if (input.EventCategories != null) {
7186
7153
  var memberEntries = serializeAws_queryEventCategoriesList(input.EventCategories, context);
7187
7154
  Object.entries(memberEntries).forEach(function (_a) {
7188
7155
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7190,60 +7157,60 @@ var serializeAws_queryModifyEventSubscriptionMessage = function (input, context)
7190
7157
  entries[loc] = value;
7191
7158
  });
7192
7159
  }
7193
- if (input.Enabled !== undefined && input.Enabled !== null) {
7160
+ if (input.Enabled != null) {
7194
7161
  entries["Enabled"] = input.Enabled;
7195
7162
  }
7196
7163
  return entries;
7197
7164
  };
7198
7165
  var serializeAws_queryModifyGlobalClusterMessage = function (input, context) {
7199
7166
  var entries = {};
7200
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
7167
+ if (input.GlobalClusterIdentifier != null) {
7201
7168
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
7202
7169
  }
7203
- if (input.NewGlobalClusterIdentifier !== undefined && input.NewGlobalClusterIdentifier !== null) {
7170
+ if (input.NewGlobalClusterIdentifier != null) {
7204
7171
  entries["NewGlobalClusterIdentifier"] = input.NewGlobalClusterIdentifier;
7205
7172
  }
7206
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
7173
+ if (input.DeletionProtection != null) {
7207
7174
  entries["DeletionProtection"] = input.DeletionProtection;
7208
7175
  }
7209
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
7176
+ if (input.EngineVersion != null) {
7210
7177
  entries["EngineVersion"] = input.EngineVersion;
7211
7178
  }
7212
- if (input.AllowMajorVersionUpgrade !== undefined && input.AllowMajorVersionUpgrade !== null) {
7179
+ if (input.AllowMajorVersionUpgrade != null) {
7213
7180
  entries["AllowMajorVersionUpgrade"] = input.AllowMajorVersionUpgrade;
7214
7181
  }
7215
7182
  return entries;
7216
7183
  };
7217
7184
  var serializeAws_queryParameter = function (input, context) {
7218
7185
  var entries = {};
7219
- if (input.ParameterName !== undefined && input.ParameterName !== null) {
7186
+ if (input.ParameterName != null) {
7220
7187
  entries["ParameterName"] = input.ParameterName;
7221
7188
  }
7222
- if (input.ParameterValue !== undefined && input.ParameterValue !== null) {
7189
+ if (input.ParameterValue != null) {
7223
7190
  entries["ParameterValue"] = input.ParameterValue;
7224
7191
  }
7225
- if (input.Description !== undefined && input.Description !== null) {
7192
+ if (input.Description != null) {
7226
7193
  entries["Description"] = input.Description;
7227
7194
  }
7228
- if (input.Source !== undefined && input.Source !== null) {
7195
+ if (input.Source != null) {
7229
7196
  entries["Source"] = input.Source;
7230
7197
  }
7231
- if (input.ApplyType !== undefined && input.ApplyType !== null) {
7198
+ if (input.ApplyType != null) {
7232
7199
  entries["ApplyType"] = input.ApplyType;
7233
7200
  }
7234
- if (input.DataType !== undefined && input.DataType !== null) {
7201
+ if (input.DataType != null) {
7235
7202
  entries["DataType"] = input.DataType;
7236
7203
  }
7237
- if (input.AllowedValues !== undefined && input.AllowedValues !== null) {
7204
+ if (input.AllowedValues != null) {
7238
7205
  entries["AllowedValues"] = input.AllowedValues;
7239
7206
  }
7240
- if (input.IsModifiable !== undefined && input.IsModifiable !== null) {
7207
+ if (input.IsModifiable != null) {
7241
7208
  entries["IsModifiable"] = input.IsModifiable;
7242
7209
  }
7243
- if (input.MinimumEngineVersion !== undefined && input.MinimumEngineVersion !== null) {
7210
+ if (input.MinimumEngineVersion != null) {
7244
7211
  entries["MinimumEngineVersion"] = input.MinimumEngineVersion;
7245
7212
  }
7246
- if (input.ApplyMethod !== undefined && input.ApplyMethod !== null) {
7213
+ if (input.ApplyMethod != null) {
7247
7214
  entries["ApplyMethod"] = input.ApplyMethod;
7248
7215
  }
7249
7216
  return entries;
@@ -7277,60 +7244,60 @@ var serializeAws_queryParametersList = function (input, context) {
7277
7244
  };
7278
7245
  var serializeAws_queryPromoteReadReplicaDBClusterMessage = function (input, context) {
7279
7246
  var entries = {};
7280
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
7247
+ if (input.DBClusterIdentifier != null) {
7281
7248
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
7282
7249
  }
7283
7250
  return entries;
7284
7251
  };
7285
7252
  var serializeAws_queryRebootDBInstanceMessage = function (input, context) {
7286
7253
  var entries = {};
7287
- if (input.DBInstanceIdentifier !== undefined && input.DBInstanceIdentifier !== null) {
7254
+ if (input.DBInstanceIdentifier != null) {
7288
7255
  entries["DBInstanceIdentifier"] = input.DBInstanceIdentifier;
7289
7256
  }
7290
- if (input.ForceFailover !== undefined && input.ForceFailover !== null) {
7257
+ if (input.ForceFailover != null) {
7291
7258
  entries["ForceFailover"] = input.ForceFailover;
7292
7259
  }
7293
7260
  return entries;
7294
7261
  };
7295
7262
  var serializeAws_queryRemoveFromGlobalClusterMessage = function (input, context) {
7296
7263
  var entries = {};
7297
- if (input.GlobalClusterIdentifier !== undefined && input.GlobalClusterIdentifier !== null) {
7264
+ if (input.GlobalClusterIdentifier != null) {
7298
7265
  entries["GlobalClusterIdentifier"] = input.GlobalClusterIdentifier;
7299
7266
  }
7300
- if (input.DbClusterIdentifier !== undefined && input.DbClusterIdentifier !== null) {
7267
+ if (input.DbClusterIdentifier != null) {
7301
7268
  entries["DbClusterIdentifier"] = input.DbClusterIdentifier;
7302
7269
  }
7303
7270
  return entries;
7304
7271
  };
7305
7272
  var serializeAws_queryRemoveRoleFromDBClusterMessage = function (input, context) {
7306
7273
  var entries = {};
7307
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
7274
+ if (input.DBClusterIdentifier != null) {
7308
7275
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
7309
7276
  }
7310
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
7277
+ if (input.RoleArn != null) {
7311
7278
  entries["RoleArn"] = input.RoleArn;
7312
7279
  }
7313
- if (input.FeatureName !== undefined && input.FeatureName !== null) {
7280
+ if (input.FeatureName != null) {
7314
7281
  entries["FeatureName"] = input.FeatureName;
7315
7282
  }
7316
7283
  return entries;
7317
7284
  };
7318
7285
  var serializeAws_queryRemoveSourceIdentifierFromSubscriptionMessage = function (input, context) {
7319
7286
  var entries = {};
7320
- if (input.SubscriptionName !== undefined && input.SubscriptionName !== null) {
7287
+ if (input.SubscriptionName != null) {
7321
7288
  entries["SubscriptionName"] = input.SubscriptionName;
7322
7289
  }
7323
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
7290
+ if (input.SourceIdentifier != null) {
7324
7291
  entries["SourceIdentifier"] = input.SourceIdentifier;
7325
7292
  }
7326
7293
  return entries;
7327
7294
  };
7328
7295
  var serializeAws_queryRemoveTagsFromResourceMessage = function (input, context) {
7329
7296
  var entries = {};
7330
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
7297
+ if (input.ResourceName != null) {
7331
7298
  entries["ResourceName"] = input.ResourceName;
7332
7299
  }
7333
- if (input.TagKeys !== undefined && input.TagKeys !== null) {
7300
+ if (input.TagKeys != null) {
7334
7301
  var memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
7335
7302
  Object.entries(memberEntries).forEach(function (_a) {
7336
7303
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7342,13 +7309,13 @@ var serializeAws_queryRemoveTagsFromResourceMessage = function (input, context)
7342
7309
  };
7343
7310
  var serializeAws_queryResetDBClusterParameterGroupMessage = function (input, context) {
7344
7311
  var entries = {};
7345
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
7312
+ if (input.DBClusterParameterGroupName != null) {
7346
7313
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
7347
7314
  }
7348
- if (input.ResetAllParameters !== undefined && input.ResetAllParameters !== null) {
7315
+ if (input.ResetAllParameters != null) {
7349
7316
  entries["ResetAllParameters"] = input.ResetAllParameters;
7350
7317
  }
7351
- if (input.Parameters !== undefined && input.Parameters !== null) {
7318
+ if (input.Parameters != null) {
7352
7319
  var memberEntries = serializeAws_queryParametersList(input.Parameters, context);
7353
7320
  Object.entries(memberEntries).forEach(function (_a) {
7354
7321
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7360,13 +7327,13 @@ var serializeAws_queryResetDBClusterParameterGroupMessage = function (input, con
7360
7327
  };
7361
7328
  var serializeAws_queryResetDBParameterGroupMessage = function (input, context) {
7362
7329
  var entries = {};
7363
- if (input.DBParameterGroupName !== undefined && input.DBParameterGroupName !== null) {
7330
+ if (input.DBParameterGroupName != null) {
7364
7331
  entries["DBParameterGroupName"] = input.DBParameterGroupName;
7365
7332
  }
7366
- if (input.ResetAllParameters !== undefined && input.ResetAllParameters !== null) {
7333
+ if (input.ResetAllParameters != null) {
7367
7334
  entries["ResetAllParameters"] = input.ResetAllParameters;
7368
7335
  }
7369
- if (input.Parameters !== undefined && input.Parameters !== null) {
7336
+ if (input.Parameters != null) {
7370
7337
  var memberEntries = serializeAws_queryParametersList(input.Parameters, context);
7371
7338
  Object.entries(memberEntries).forEach(function (_a) {
7372
7339
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7378,7 +7345,7 @@ var serializeAws_queryResetDBParameterGroupMessage = function (input, context) {
7378
7345
  };
7379
7346
  var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, context) {
7380
7347
  var entries = {};
7381
- if (input.AvailabilityZones !== undefined && input.AvailabilityZones !== null) {
7348
+ if (input.AvailabilityZones != null) {
7382
7349
  var memberEntries = serializeAws_queryAvailabilityZones(input.AvailabilityZones, context);
7383
7350
  Object.entries(memberEntries).forEach(function (_a) {
7384
7351
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7386,31 +7353,31 @@ var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, con
7386
7353
  entries[loc] = value;
7387
7354
  });
7388
7355
  }
7389
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
7356
+ if (input.DBClusterIdentifier != null) {
7390
7357
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
7391
7358
  }
7392
- if (input.SnapshotIdentifier !== undefined && input.SnapshotIdentifier !== null) {
7359
+ if (input.SnapshotIdentifier != null) {
7393
7360
  entries["SnapshotIdentifier"] = input.SnapshotIdentifier;
7394
7361
  }
7395
- if (input.Engine !== undefined && input.Engine !== null) {
7362
+ if (input.Engine != null) {
7396
7363
  entries["Engine"] = input.Engine;
7397
7364
  }
7398
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
7365
+ if (input.EngineVersion != null) {
7399
7366
  entries["EngineVersion"] = input.EngineVersion;
7400
7367
  }
7401
- if (input.Port !== undefined && input.Port !== null) {
7368
+ if (input.Port != null) {
7402
7369
  entries["Port"] = input.Port;
7403
7370
  }
7404
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
7371
+ if (input.DBSubnetGroupName != null) {
7405
7372
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
7406
7373
  }
7407
- if (input.DatabaseName !== undefined && input.DatabaseName !== null) {
7374
+ if (input.DatabaseName != null) {
7408
7375
  entries["DatabaseName"] = input.DatabaseName;
7409
7376
  }
7410
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
7377
+ if (input.OptionGroupName != null) {
7411
7378
  entries["OptionGroupName"] = input.OptionGroupName;
7412
7379
  }
7413
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
7380
+ if (input.VpcSecurityGroupIds != null) {
7414
7381
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
7415
7382
  Object.entries(memberEntries).forEach(function (_a) {
7416
7383
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7418,7 +7385,7 @@ var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, con
7418
7385
  entries[loc] = value;
7419
7386
  });
7420
7387
  }
7421
- if (input.Tags !== undefined && input.Tags !== null) {
7388
+ if (input.Tags != null) {
7422
7389
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
7423
7390
  Object.entries(memberEntries).forEach(function (_a) {
7424
7391
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7426,13 +7393,13 @@ var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, con
7426
7393
  entries[loc] = value;
7427
7394
  });
7428
7395
  }
7429
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
7396
+ if (input.KmsKeyId != null) {
7430
7397
  entries["KmsKeyId"] = input.KmsKeyId;
7431
7398
  }
7432
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
7399
+ if (input.EnableIAMDatabaseAuthentication != null) {
7433
7400
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
7434
7401
  }
7435
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
7402
+ if (input.EnableCloudwatchLogsExports != null) {
7436
7403
  var memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
7437
7404
  Object.entries(memberEntries).forEach(function (_a) {
7438
7405
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7440,44 +7407,44 @@ var serializeAws_queryRestoreDBClusterFromSnapshotMessage = function (input, con
7440
7407
  entries[loc] = value;
7441
7408
  });
7442
7409
  }
7443
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
7410
+ if (input.DBClusterParameterGroupName != null) {
7444
7411
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
7445
7412
  }
7446
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
7413
+ if (input.DeletionProtection != null) {
7447
7414
  entries["DeletionProtection"] = input.DeletionProtection;
7448
7415
  }
7449
- if (input.CopyTagsToSnapshot !== undefined && input.CopyTagsToSnapshot !== null) {
7416
+ if (input.CopyTagsToSnapshot != null) {
7450
7417
  entries["CopyTagsToSnapshot"] = input.CopyTagsToSnapshot;
7451
7418
  }
7452
7419
  return entries;
7453
7420
  };
7454
7421
  var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, context) {
7455
7422
  var entries = {};
7456
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
7423
+ if (input.DBClusterIdentifier != null) {
7457
7424
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
7458
7425
  }
7459
- if (input.RestoreType !== undefined && input.RestoreType !== null) {
7426
+ if (input.RestoreType != null) {
7460
7427
  entries["RestoreType"] = input.RestoreType;
7461
7428
  }
7462
- if (input.SourceDBClusterIdentifier !== undefined && input.SourceDBClusterIdentifier !== null) {
7429
+ if (input.SourceDBClusterIdentifier != null) {
7463
7430
  entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
7464
7431
  }
7465
- if (input.RestoreToTime !== undefined && input.RestoreToTime !== null) {
7432
+ if (input.RestoreToTime != null) {
7466
7433
  entries["RestoreToTime"] = input.RestoreToTime.toISOString().split(".")[0] + "Z";
7467
7434
  }
7468
- if (input.UseLatestRestorableTime !== undefined && input.UseLatestRestorableTime !== null) {
7435
+ if (input.UseLatestRestorableTime != null) {
7469
7436
  entries["UseLatestRestorableTime"] = input.UseLatestRestorableTime;
7470
7437
  }
7471
- if (input.Port !== undefined && input.Port !== null) {
7438
+ if (input.Port != null) {
7472
7439
  entries["Port"] = input.Port;
7473
7440
  }
7474
- if (input.DBSubnetGroupName !== undefined && input.DBSubnetGroupName !== null) {
7441
+ if (input.DBSubnetGroupName != null) {
7475
7442
  entries["DBSubnetGroupName"] = input.DBSubnetGroupName;
7476
7443
  }
7477
- if (input.OptionGroupName !== undefined && input.OptionGroupName !== null) {
7444
+ if (input.OptionGroupName != null) {
7478
7445
  entries["OptionGroupName"] = input.OptionGroupName;
7479
7446
  }
7480
- if (input.VpcSecurityGroupIds !== undefined && input.VpcSecurityGroupIds !== null) {
7447
+ if (input.VpcSecurityGroupIds != null) {
7481
7448
  var memberEntries = serializeAws_queryVpcSecurityGroupIdList(input.VpcSecurityGroupIds, context);
7482
7449
  Object.entries(memberEntries).forEach(function (_a) {
7483
7450
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7485,7 +7452,7 @@ var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, co
7485
7452
  entries[loc] = value;
7486
7453
  });
7487
7454
  }
7488
- if (input.Tags !== undefined && input.Tags !== null) {
7455
+ if (input.Tags != null) {
7489
7456
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
7490
7457
  Object.entries(memberEntries).forEach(function (_a) {
7491
7458
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7493,13 +7460,13 @@ var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, co
7493
7460
  entries[loc] = value;
7494
7461
  });
7495
7462
  }
7496
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
7463
+ if (input.KmsKeyId != null) {
7497
7464
  entries["KmsKeyId"] = input.KmsKeyId;
7498
7465
  }
7499
- if (input.EnableIAMDatabaseAuthentication !== undefined && input.EnableIAMDatabaseAuthentication !== null) {
7466
+ if (input.EnableIAMDatabaseAuthentication != null) {
7500
7467
  entries["EnableIAMDatabaseAuthentication"] = input.EnableIAMDatabaseAuthentication;
7501
7468
  }
7502
- if (input.EnableCloudwatchLogsExports !== undefined && input.EnableCloudwatchLogsExports !== null) {
7469
+ if (input.EnableCloudwatchLogsExports != null) {
7503
7470
  var memberEntries = serializeAws_queryLogTypeList(input.EnableCloudwatchLogsExports, context);
7504
7471
  Object.entries(memberEntries).forEach(function (_a) {
7505
7472
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7507,10 +7474,10 @@ var serializeAws_queryRestoreDBClusterToPointInTimeMessage = function (input, co
7507
7474
  entries[loc] = value;
7508
7475
  });
7509
7476
  }
7510
- if (input.DBClusterParameterGroupName !== undefined && input.DBClusterParameterGroupName !== null) {
7477
+ if (input.DBClusterParameterGroupName != null) {
7511
7478
  entries["DBClusterParameterGroupName"] = input.DBClusterParameterGroupName;
7512
7479
  }
7513
- if (input.DeletionProtection !== undefined && input.DeletionProtection !== null) {
7480
+ if (input.DeletionProtection != null) {
7514
7481
  entries["DeletionProtection"] = input.DeletionProtection;
7515
7482
  }
7516
7483
  return entries;
@@ -7540,14 +7507,14 @@ var serializeAws_querySourceIdsList = function (input, context) {
7540
7507
  };
7541
7508
  var serializeAws_queryStartDBClusterMessage = function (input, context) {
7542
7509
  var entries = {};
7543
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
7510
+ if (input.DBClusterIdentifier != null) {
7544
7511
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
7545
7512
  }
7546
7513
  return entries;
7547
7514
  };
7548
7515
  var serializeAws_queryStopDBClusterMessage = function (input, context) {
7549
7516
  var entries = {};
7550
- if (input.DBClusterIdentifier !== undefined && input.DBClusterIdentifier !== null) {
7517
+ if (input.DBClusterIdentifier != null) {
7551
7518
  entries["DBClusterIdentifier"] = input.DBClusterIdentifier;
7552
7519
  }
7553
7520
  return entries;
@@ -7600,10 +7567,10 @@ var serializeAws_querySubnetIdentifierList = function (input, context) {
7600
7567
  };
7601
7568
  var serializeAws_queryTag = function (input, context) {
7602
7569
  var entries = {};
7603
- if (input.Key !== undefined && input.Key !== null) {
7570
+ if (input.Key != null) {
7604
7571
  entries["Key"] = input.Key;
7605
7572
  }
7606
- if (input.Value !== undefined && input.Value !== null) {
7573
+ if (input.Value != null) {
7607
7574
  entries["Value"] = input.Value;
7608
7575
  }
7609
7576
  return entries;
@@ -7680,9 +7647,6 @@ var deserializeAws_queryAttributeValueList = function (output, context) {
7680
7647
  return (output || [])
7681
7648
  .filter(function (e) { return e != null; })
7682
7649
  .map(function (entry) {
7683
- if (entry === null) {
7684
- return null;
7685
- }
7686
7650
  return __expectString(entry);
7687
7651
  });
7688
7652
  };
@@ -7708,9 +7672,6 @@ var deserializeAws_queryAvailabilityZoneList = function (output, context) {
7708
7672
  return (output || [])
7709
7673
  .filter(function (e) { return e != null; })
7710
7674
  .map(function (entry) {
7711
- if (entry === null) {
7712
- return null;
7713
- }
7714
7675
  return deserializeAws_queryAvailabilityZone(entry, context);
7715
7676
  });
7716
7677
  };
@@ -7718,9 +7679,6 @@ var deserializeAws_queryAvailabilityZones = function (output, context) {
7718
7679
  return (output || [])
7719
7680
  .filter(function (e) { return e != null; })
7720
7681
  .map(function (entry) {
7721
- if (entry === null) {
7722
- return null;
7723
- }
7724
7682
  return __expectString(entry);
7725
7683
  });
7726
7684
  };
@@ -8160,9 +8118,6 @@ var deserializeAws_queryDBClusterEndpointList = function (output, context) {
8160
8118
  return (output || [])
8161
8119
  .filter(function (e) { return e != null; })
8162
8120
  .map(function (entry) {
8163
- if (entry === null) {
8164
- return null;
8165
- }
8166
8121
  return deserializeAws_queryDBClusterEndpoint(entry, context);
8167
8122
  });
8168
8123
  };
@@ -8205,9 +8160,6 @@ var deserializeAws_queryDBClusterList = function (output, context) {
8205
8160
  return (output || [])
8206
8161
  .filter(function (e) { return e != null; })
8207
8162
  .map(function (entry) {
8208
- if (entry === null) {
8209
- return null;
8210
- }
8211
8163
  return deserializeAws_queryDBCluster(entry, context);
8212
8164
  });
8213
8165
  };
@@ -8236,9 +8188,6 @@ var deserializeAws_queryDBClusterMemberList = function (output, context) {
8236
8188
  return (output || [])
8237
8189
  .filter(function (e) { return e != null; })
8238
8190
  .map(function (entry) {
8239
- if (entry === null) {
8240
- return null;
8241
- }
8242
8191
  return deserializeAws_queryDBClusterMember(entry, context);
8243
8192
  });
8244
8193
  };
@@ -8271,9 +8220,6 @@ var deserializeAws_queryDBClusterOptionGroupMemberships = function (output, cont
8271
8220
  return (output || [])
8272
8221
  .filter(function (e) { return e != null; })
8273
8222
  .map(function (entry) {
8274
- if (entry === null) {
8275
- return null;
8276
- }
8277
8223
  return deserializeAws_queryDBClusterOptionGroupStatus(entry, context);
8278
8224
  });
8279
8225
  };
@@ -8331,9 +8277,6 @@ var deserializeAws_queryDBClusterParameterGroupList = function (output, context)
8331
8277
  return (output || [])
8332
8278
  .filter(function (e) { return e != null; })
8333
8279
  .map(function (entry) {
8334
- if (entry === null) {
8335
- return null;
8336
- }
8337
8280
  return deserializeAws_queryDBClusterParameterGroup(entry, context);
8338
8281
  });
8339
8282
  };
@@ -8429,9 +8372,6 @@ var deserializeAws_queryDBClusterRoles = function (output, context) {
8429
8372
  return (output || [])
8430
8373
  .filter(function (e) { return e != null; })
8431
8374
  .map(function (entry) {
8432
- if (entry === null) {
8433
- return null;
8434
- }
8435
8375
  return deserializeAws_queryDBClusterRole(entry, context);
8436
8376
  });
8437
8377
  };
@@ -8553,9 +8493,6 @@ var deserializeAws_queryDBClusterSnapshotAttributeList = function (output, conte
8553
8493
  return (output || [])
8554
8494
  .filter(function (e) { return e != null; })
8555
8495
  .map(function (entry) {
8556
- if (entry === null) {
8557
- return null;
8558
- }
8559
8496
  return deserializeAws_queryDBClusterSnapshotAttribute(entry, context);
8560
8497
  });
8561
8498
  };
@@ -8580,9 +8517,6 @@ var deserializeAws_queryDBClusterSnapshotList = function (output, context) {
8580
8517
  return (output || [])
8581
8518
  .filter(function (e) { return e != null; })
8582
8519
  .map(function (entry) {
8583
- if (entry === null) {
8584
- return null;
8585
- }
8586
8520
  return deserializeAws_queryDBClusterSnapshot(entry, context);
8587
8521
  });
8588
8522
  };
@@ -8687,9 +8621,6 @@ var deserializeAws_queryDBEngineVersionList = function (output, context) {
8687
8621
  return (output || [])
8688
8622
  .filter(function (e) { return e != null; })
8689
8623
  .map(function (entry) {
8690
- if (entry === null) {
8691
- return null;
8692
- }
8693
8624
  return deserializeAws_queryDBEngineVersion(entry, context);
8694
8625
  });
8695
8626
  };
@@ -8973,9 +8904,6 @@ var deserializeAws_queryDBInstanceList = function (output, context) {
8973
8904
  return (output || [])
8974
8905
  .filter(function (e) { return e != null; })
8975
8906
  .map(function (entry) {
8976
- if (entry === null) {
8977
- return null;
8978
- }
8979
8907
  return deserializeAws_queryDBInstance(entry, context);
8980
8908
  });
8981
8909
  };
@@ -9029,9 +8957,6 @@ var deserializeAws_queryDBInstanceStatusInfoList = function (output, context) {
9029
8957
  return (output || [])
9030
8958
  .filter(function (e) { return e != null; })
9031
8959
  .map(function (entry) {
9032
- if (entry === null) {
9033
- return null;
9034
- }
9035
8960
  return deserializeAws_queryDBInstanceStatusInfo(entry, context);
9036
8961
  });
9037
8962
  };
@@ -9085,9 +9010,6 @@ var deserializeAws_queryDBParameterGroupList = function (output, context) {
9085
9010
  return (output || [])
9086
9011
  .filter(function (e) { return e != null; })
9087
9012
  .map(function (entry) {
9088
- if (entry === null) {
9089
- return null;
9090
- }
9091
9013
  return deserializeAws_queryDBParameterGroup(entry, context);
9092
9014
  });
9093
9015
  };
@@ -9152,9 +9074,6 @@ var deserializeAws_queryDBParameterGroupStatusList = function (output, context)
9152
9074
  return (output || [])
9153
9075
  .filter(function (e) { return e != null; })
9154
9076
  .map(function (entry) {
9155
- if (entry === null) {
9156
- return null;
9157
- }
9158
9077
  return deserializeAws_queryDBParameterGroupStatus(entry, context);
9159
9078
  });
9160
9079
  };
@@ -9175,9 +9094,6 @@ var deserializeAws_queryDBSecurityGroupMembershipList = function (output, contex
9175
9094
  return (output || [])
9176
9095
  .filter(function (e) { return e != null; })
9177
9096
  .map(function (entry) {
9178
- if (entry === null) {
9179
- return null;
9180
- }
9181
9097
  return deserializeAws_queryDBSecurityGroupMembership(entry, context);
9182
9098
  });
9183
9099
  };
@@ -9296,9 +9212,6 @@ var deserializeAws_queryDBSubnetGroups = function (output, context) {
9296
9212
  return (output || [])
9297
9213
  .filter(function (e) { return e != null; })
9298
9214
  .map(function (entry) {
9299
- if (entry === null) {
9300
- return null;
9301
- }
9302
9215
  return deserializeAws_queryDBSubnetGroup(entry, context);
9303
9216
  });
9304
9217
  };
@@ -9477,9 +9390,6 @@ var deserializeAws_queryDomainMembershipList = function (output, context) {
9477
9390
  return (output || [])
9478
9391
  .filter(function (e) { return e != null; })
9479
9392
  .map(function (entry) {
9480
- if (entry === null) {
9481
- return null;
9482
- }
9483
9393
  return deserializeAws_queryDomainMembership(entry, context);
9484
9394
  });
9485
9395
  };
@@ -9509,9 +9419,6 @@ var deserializeAws_queryDoubleRangeList = function (output, context) {
9509
9419
  return (output || [])
9510
9420
  .filter(function (e) { return e != null; })
9511
9421
  .map(function (entry) {
9512
- if (entry === null) {
9513
- return null;
9514
- }
9515
9422
  return deserializeAws_queryDoubleRange(entry, context);
9516
9423
  });
9517
9424
  };
@@ -9588,9 +9495,6 @@ var deserializeAws_queryEventCategoriesList = function (output, context) {
9588
9495
  return (output || [])
9589
9496
  .filter(function (e) { return e != null; })
9590
9497
  .map(function (entry) {
9591
- if (entry === null) {
9592
- return null;
9593
- }
9594
9498
  return __expectString(entry);
9595
9499
  });
9596
9500
  };
@@ -9614,9 +9518,6 @@ var deserializeAws_queryEventCategoriesMapList = function (output, context) {
9614
9518
  return (output || [])
9615
9519
  .filter(function (e) { return e != null; })
9616
9520
  .map(function (entry) {
9617
- if (entry === null) {
9618
- return null;
9619
- }
9620
9521
  return deserializeAws_queryEventCategoriesMap(entry, context);
9621
9522
  });
9622
9523
  };
@@ -9637,9 +9538,6 @@ var deserializeAws_queryEventList = function (output, context) {
9637
9538
  return (output || [])
9638
9539
  .filter(function (e) { return e != null; })
9639
9540
  .map(function (entry) {
9640
- if (entry === null) {
9641
- return null;
9642
- }
9643
9541
  return deserializeAws_queryEvent(entry, context);
9644
9542
  });
9645
9543
  };
@@ -9724,9 +9622,6 @@ var deserializeAws_queryEventSubscriptionsList = function (output, context) {
9724
9622
  return (output || [])
9725
9623
  .filter(function (e) { return e != null; })
9726
9624
  .map(function (entry) {
9727
- if (entry === null) {
9728
- return null;
9729
- }
9730
9625
  return deserializeAws_queryEventSubscription(entry, context);
9731
9626
  });
9732
9627
  };
@@ -9823,9 +9718,6 @@ var deserializeAws_queryGlobalClusterList = function (output, context) {
9823
9718
  return (output || [])
9824
9719
  .filter(function (e) { return e != null; })
9825
9720
  .map(function (entry) {
9826
- if (entry === null) {
9827
- return null;
9828
- }
9829
9721
  return deserializeAws_queryGlobalCluster(entry, context);
9830
9722
  });
9831
9723
  };
@@ -9853,9 +9745,6 @@ var deserializeAws_queryGlobalClusterMemberList = function (output, context) {
9853
9745
  return (output || [])
9854
9746
  .filter(function (e) { return e != null; })
9855
9747
  .map(function (entry) {
9856
- if (entry === null) {
9857
- return null;
9858
- }
9859
9748
  return deserializeAws_queryGlobalClusterMember(entry, context);
9860
9749
  });
9861
9750
  };
@@ -10068,9 +9957,6 @@ var deserializeAws_queryLogTypeList = function (output, context) {
10068
9957
  return (output || [])
10069
9958
  .filter(function (e) { return e != null; })
10070
9959
  .map(function (entry) {
10071
- if (entry === null) {
10072
- return null;
10073
- }
10074
9960
  return __expectString(entry);
10075
9961
  });
10076
9962
  };
@@ -10196,9 +10082,6 @@ var deserializeAws_queryOptionGroupMembershipList = function (output, context) {
10196
10082
  return (output || [])
10197
10083
  .filter(function (e) { return e != null; })
10198
10084
  .map(function (entry) {
10199
- if (entry === null) {
10200
- return null;
10201
- }
10202
10085
  return deserializeAws_queryOptionGroupMembership(entry, context);
10203
10086
  });
10204
10087
  };
@@ -10308,9 +10191,6 @@ var deserializeAws_queryOrderableDBInstanceOptionsList = function (output, conte
10308
10191
  return (output || [])
10309
10192
  .filter(function (e) { return e != null; })
10310
10193
  .map(function (entry) {
10311
- if (entry === null) {
10312
- return null;
10313
- }
10314
10194
  return deserializeAws_queryOrderableDBInstanceOption(entry, context);
10315
10195
  });
10316
10196
  };
@@ -10380,9 +10260,6 @@ var deserializeAws_queryParametersList = function (output, context) {
10380
10260
  return (output || [])
10381
10261
  .filter(function (e) { return e != null; })
10382
10262
  .map(function (entry) {
10383
- if (entry === null) {
10384
- return null;
10385
- }
10386
10263
  return deserializeAws_queryParameter(entry, context);
10387
10264
  });
10388
10265
  };
@@ -10438,9 +10315,6 @@ var deserializeAws_queryPendingMaintenanceActionDetails = function (output, cont
10438
10315
  return (output || [])
10439
10316
  .filter(function (e) { return e != null; })
10440
10317
  .map(function (entry) {
10441
- if (entry === null) {
10442
- return null;
10443
- }
10444
10318
  return deserializeAws_queryPendingMaintenanceAction(entry, context);
10445
10319
  });
10446
10320
  };
@@ -10448,9 +10322,6 @@ var deserializeAws_queryPendingMaintenanceActions = function (output, context) {
10448
10322
  return (output || [])
10449
10323
  .filter(function (e) { return e != null; })
10450
10324
  .map(function (entry) {
10451
- if (entry === null) {
10452
- return null;
10453
- }
10454
10325
  return deserializeAws_queryResourcePendingMaintenanceActions(entry, context);
10455
10326
  });
10456
10327
  };
@@ -10571,9 +10442,6 @@ var deserializeAws_queryRangeList = function (output, context) {
10571
10442
  return (output || [])
10572
10443
  .filter(function (e) { return e != null; })
10573
10444
  .map(function (entry) {
10574
- if (entry === null) {
10575
- return null;
10576
- }
10577
10445
  return deserializeAws_queryRange(entry, context);
10578
10446
  });
10579
10447
  };
@@ -10581,9 +10449,6 @@ var deserializeAws_queryReadersArnList = function (output, context) {
10581
10449
  return (output || [])
10582
10450
  .filter(function (e) { return e != null; })
10583
10451
  .map(function (entry) {
10584
- if (entry === null) {
10585
- return null;
10586
- }
10587
10452
  return __expectString(entry);
10588
10453
  });
10589
10454
  };
@@ -10591,9 +10456,6 @@ var deserializeAws_queryReadReplicaDBClusterIdentifierList = function (output, c
10591
10456
  return (output || [])
10592
10457
  .filter(function (e) { return e != null; })
10593
10458
  .map(function (entry) {
10594
- if (entry === null) {
10595
- return null;
10596
- }
10597
10459
  return __expectString(entry);
10598
10460
  });
10599
10461
  };
@@ -10601,9 +10463,6 @@ var deserializeAws_queryReadReplicaDBInstanceIdentifierList = function (output,
10601
10463
  return (output || [])
10602
10464
  .filter(function (e) { return e != null; })
10603
10465
  .map(function (entry) {
10604
- if (entry === null) {
10605
- return null;
10606
- }
10607
10466
  return __expectString(entry);
10608
10467
  });
10609
10468
  };
@@ -10611,9 +10470,6 @@ var deserializeAws_queryReadReplicaIdentifierList = function (output, context) {
10611
10470
  return (output || [])
10612
10471
  .filter(function (e) { return e != null; })
10613
10472
  .map(function (entry) {
10614
- if (entry === null) {
10615
- return null;
10616
- }
10617
10473
  return __expectString(entry);
10618
10474
  });
10619
10475
  };
@@ -10737,9 +10593,6 @@ var deserializeAws_querySourceIdsList = function (output, context) {
10737
10593
  return (output || [])
10738
10594
  .filter(function (e) { return e != null; })
10739
10595
  .map(function (entry) {
10740
- if (entry === null) {
10741
- return null;
10742
- }
10743
10596
  return __expectString(entry);
10744
10597
  });
10745
10598
  };
@@ -10792,9 +10645,6 @@ var deserializeAws_queryStringList = function (output, context) {
10792
10645
  return (output || [])
10793
10646
  .filter(function (e) { return e != null; })
10794
10647
  .map(function (entry) {
10795
- if (entry === null) {
10796
- return null;
10797
- }
10798
10648
  return __expectString(entry);
10799
10649
  });
10800
10650
  };
@@ -10828,9 +10678,6 @@ var deserializeAws_querySubnetList = function (output, context) {
10828
10678
  return (output || [])
10829
10679
  .filter(function (e) { return e != null; })
10830
10680
  .map(function (entry) {
10831
- if (entry === null) {
10832
- return null;
10833
- }
10834
10681
  return deserializeAws_querySubnet(entry, context);
10835
10682
  });
10836
10683
  };
@@ -10865,9 +10712,6 @@ var deserializeAws_querySupportedCharacterSetsList = function (output, context)
10865
10712
  return (output || [])
10866
10713
  .filter(function (e) { return e != null; })
10867
10714
  .map(function (entry) {
10868
- if (entry === null) {
10869
- return null;
10870
- }
10871
10715
  return deserializeAws_queryCharacterSet(entry, context);
10872
10716
  });
10873
10717
  };
@@ -10875,9 +10719,6 @@ var deserializeAws_querySupportedTimezonesList = function (output, context) {
10875
10719
  return (output || [])
10876
10720
  .filter(function (e) { return e != null; })
10877
10721
  .map(function (entry) {
10878
- if (entry === null) {
10879
- return null;
10880
- }
10881
10722
  return deserializeAws_queryTimezone(entry, context);
10882
10723
  });
10883
10724
  };
@@ -10898,9 +10739,6 @@ var deserializeAws_queryTagList = function (output, context) {
10898
10739
  return (output || [])
10899
10740
  .filter(function (e) { return e != null; })
10900
10741
  .map(function (entry) {
10901
- if (entry === null) {
10902
- return null;
10903
- }
10904
10742
  return deserializeAws_queryTag(entry, context);
10905
10743
  });
10906
10744
  };
@@ -11000,9 +10838,6 @@ var deserializeAws_queryValidStorageOptionsList = function (output, context) {
11000
10838
  return (output || [])
11001
10839
  .filter(function (e) { return e != null; })
11002
10840
  .map(function (entry) {
11003
- if (entry === null) {
11004
- return null;
11005
- }
11006
10841
  return deserializeAws_queryValidStorageOptions(entry, context);
11007
10842
  });
11008
10843
  };
@@ -11010,9 +10845,6 @@ var deserializeAws_queryValidUpgradeTargetList = function (output, context) {
11010
10845
  return (output || [])
11011
10846
  .filter(function (e) { return e != null; })
11012
10847
  .map(function (entry) {
11013
- if (entry === null) {
11014
- return null;
11015
- }
11016
10848
  return deserializeAws_queryUpgradeTarget(entry, context);
11017
10849
  });
11018
10850
  };
@@ -11033,9 +10865,6 @@ var deserializeAws_queryVpcSecurityGroupMembershipList = function (output, conte
11033
10865
  return (output || [])
11034
10866
  .filter(function (e) { return e != null; })
11035
10867
  .map(function (entry) {
11036
- if (entry === null) {
11037
- return null;
11038
- }
11039
10868
  return deserializeAws_queryVpcSecurityGroupMembership(entry, context);
11040
10869
  });
11041
10870
  };