@aws-sdk/client-elasticache 3.137.0 → 3.145.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 { ElastiCacheServiceException as __BaseException } from "../models/ElastiCacheServiceException";
@@ -674,7 +674,7 @@ export var deserializeAws_queryAddTagsToResourceCommand = function (output, cont
674
674
  });
675
675
  }); };
676
676
  var deserializeAws_queryAddTagsToResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
677
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
677
+ var parsedOutput, _a, errorCode, _b, parsedBody;
678
678
  var _c;
679
679
  return __generator(this, function (_d) {
680
680
  switch (_d.label) {
@@ -739,14 +739,14 @@ var deserializeAws_queryAddTagsToResourceCommandError = function (output, contex
739
739
  case 25: throw _d.sent();
740
740
  case 26:
741
741
  parsedBody = parsedOutput.body;
742
- $metadata = deserializeMetadata(output);
743
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
744
- response = new __BaseException({
745
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
746
- $fault: "client",
747
- $metadata: $metadata,
742
+ throwDefaultError({
743
+ output: output,
744
+ parsedBody: parsedBody.Error,
745
+ exceptionCtor: __BaseException,
746
+ errorCode: errorCode,
748
747
  });
749
- throw __decorateServiceException(response, parsedBody.Error);
748
+ _d.label = 27;
749
+ case 27: return [2];
750
750
  }
751
751
  });
752
752
  }); };
@@ -769,7 +769,7 @@ export var deserializeAws_queryAuthorizeCacheSecurityGroupIngressCommand = funct
769
769
  });
770
770
  }); };
771
771
  var deserializeAws_queryAuthorizeCacheSecurityGroupIngressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
772
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
772
+ var parsedOutput, _a, errorCode, _b, parsedBody;
773
773
  var _c;
774
774
  return __generator(this, function (_d) {
775
775
  switch (_d.label) {
@@ -806,14 +806,14 @@ var deserializeAws_queryAuthorizeCacheSecurityGroupIngressCommandError = functio
806
806
  case 11: throw _d.sent();
807
807
  case 12:
808
808
  parsedBody = parsedOutput.body;
809
- $metadata = deserializeMetadata(output);
810
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
811
- response = new __BaseException({
812
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
813
- $fault: "client",
814
- $metadata: $metadata,
809
+ throwDefaultError({
810
+ output: output,
811
+ parsedBody: parsedBody.Error,
812
+ exceptionCtor: __BaseException,
813
+ errorCode: errorCode,
815
814
  });
816
- throw __decorateServiceException(response, parsedBody.Error);
815
+ _d.label = 13;
816
+ case 13: return [2];
817
817
  }
818
818
  });
819
819
  }); };
@@ -836,7 +836,7 @@ export var deserializeAws_queryBatchApplyUpdateActionCommand = function (output,
836
836
  });
837
837
  }); };
838
838
  var deserializeAws_queryBatchApplyUpdateActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
839
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
839
+ var parsedOutput, _a, errorCode, _b, parsedBody;
840
840
  var _c;
841
841
  return __generator(this, function (_d) {
842
842
  switch (_d.label) {
@@ -861,14 +861,14 @@ var deserializeAws_queryBatchApplyUpdateActionCommandError = function (output, c
861
861
  case 5: throw _d.sent();
862
862
  case 6:
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 = 7;
871
+ case 7: return [2];
872
872
  }
873
873
  });
874
874
  }); };
@@ -891,7 +891,7 @@ export var deserializeAws_queryBatchStopUpdateActionCommand = function (output,
891
891
  });
892
892
  }); };
893
893
  var deserializeAws_queryBatchStopUpdateActionCommandError = 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) {
@@ -916,14 +916,14 @@ var deserializeAws_queryBatchStopUpdateActionCommandError = function (output, co
916
916
  case 5: throw _d.sent();
917
917
  case 6:
918
918
  parsedBody = parsedOutput.body;
919
- $metadata = deserializeMetadata(output);
920
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
921
- response = new __BaseException({
922
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
923
- $fault: "client",
924
- $metadata: $metadata,
919
+ throwDefaultError({
920
+ output: output,
921
+ parsedBody: parsedBody.Error,
922
+ exceptionCtor: __BaseException,
923
+ errorCode: errorCode,
925
924
  });
926
- throw __decorateServiceException(response, parsedBody.Error);
925
+ _d.label = 7;
926
+ case 7: return [2];
927
927
  }
928
928
  });
929
929
  }); };
@@ -946,7 +946,7 @@ export var deserializeAws_queryCompleteMigrationCommand = function (output, cont
946
946
  });
947
947
  }); };
948
948
  var deserializeAws_queryCompleteMigrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
949
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
949
+ var parsedOutput, _a, errorCode, _b, parsedBody;
950
950
  var _c;
951
951
  return __generator(this, function (_d) {
952
952
  switch (_d.label) {
@@ -975,14 +975,14 @@ var deserializeAws_queryCompleteMigrationCommandError = function (output, contex
975
975
  case 7: throw _d.sent();
976
976
  case 8:
977
977
  parsedBody = parsedOutput.body;
978
- $metadata = deserializeMetadata(output);
979
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
980
- response = new __BaseException({
981
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
982
- $fault: "client",
983
- $metadata: $metadata,
978
+ throwDefaultError({
979
+ output: output,
980
+ parsedBody: parsedBody.Error,
981
+ exceptionCtor: __BaseException,
982
+ errorCode: errorCode,
984
983
  });
985
- throw __decorateServiceException(response, parsedBody.Error);
984
+ _d.label = 9;
985
+ case 9: return [2];
986
986
  }
987
987
  });
988
988
  }); };
@@ -1005,7 +1005,7 @@ export var deserializeAws_queryCopySnapshotCommand = function (output, context)
1005
1005
  });
1006
1006
  }); };
1007
1007
  var deserializeAws_queryCopySnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1008
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1008
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1009
1009
  var _c;
1010
1010
  return __generator(this, function (_d) {
1011
1011
  switch (_d.label) {
@@ -1050,14 +1050,14 @@ var deserializeAws_queryCopySnapshotCommandError = function (output, context) {
1050
1050
  case 15: throw _d.sent();
1051
1051
  case 16:
1052
1052
  parsedBody = parsedOutput.body;
1053
- $metadata = deserializeMetadata(output);
1054
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1055
- response = new __BaseException({
1056
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1057
- $fault: "client",
1058
- $metadata: $metadata,
1053
+ throwDefaultError({
1054
+ output: output,
1055
+ parsedBody: parsedBody.Error,
1056
+ exceptionCtor: __BaseException,
1057
+ errorCode: errorCode,
1059
1058
  });
1060
- throw __decorateServiceException(response, parsedBody.Error);
1059
+ _d.label = 17;
1060
+ case 17: return [2];
1061
1061
  }
1062
1062
  });
1063
1063
  }); };
@@ -1080,7 +1080,7 @@ export var deserializeAws_queryCreateCacheClusterCommand = function (output, con
1080
1080
  });
1081
1081
  }); };
1082
1082
  var deserializeAws_queryCreateCacheClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1083
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1083
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1084
1084
  var _c;
1085
1085
  return __generator(this, function (_d) {
1086
1086
  switch (_d.label) {
@@ -1153,14 +1153,14 @@ var deserializeAws_queryCreateCacheClusterCommandError = function (output, conte
1153
1153
  case 29: throw _d.sent();
1154
1154
  case 30:
1155
1155
  parsedBody = parsedOutput.body;
1156
- $metadata = deserializeMetadata(output);
1157
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1158
- response = new __BaseException({
1159
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1160
- $fault: "client",
1161
- $metadata: $metadata,
1156
+ throwDefaultError({
1157
+ output: output,
1158
+ parsedBody: parsedBody.Error,
1159
+ exceptionCtor: __BaseException,
1160
+ errorCode: errorCode,
1162
1161
  });
1163
- throw __decorateServiceException(response, parsedBody.Error);
1162
+ _d.label = 31;
1163
+ case 31: return [2];
1164
1164
  }
1165
1165
  });
1166
1166
  }); };
@@ -1183,7 +1183,7 @@ export var deserializeAws_queryCreateCacheParameterGroupCommand = function (outp
1183
1183
  });
1184
1184
  }); };
1185
1185
  var deserializeAws_queryCreateCacheParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1186
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1186
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1187
1187
  var _c;
1188
1188
  return __generator(this, function (_d) {
1189
1189
  switch (_d.label) {
@@ -1224,14 +1224,14 @@ var deserializeAws_queryCreateCacheParameterGroupCommandError = function (output
1224
1224
  case 13: throw _d.sent();
1225
1225
  case 14:
1226
1226
  parsedBody = parsedOutput.body;
1227
- $metadata = deserializeMetadata(output);
1228
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1229
- response = new __BaseException({
1230
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1231
- $fault: "client",
1232
- $metadata: $metadata,
1227
+ throwDefaultError({
1228
+ output: output,
1229
+ parsedBody: parsedBody.Error,
1230
+ exceptionCtor: __BaseException,
1231
+ errorCode: errorCode,
1233
1232
  });
1234
- throw __decorateServiceException(response, parsedBody.Error);
1233
+ _d.label = 15;
1234
+ case 15: return [2];
1235
1235
  }
1236
1236
  });
1237
1237
  }); };
@@ -1254,7 +1254,7 @@ export var deserializeAws_queryCreateCacheSecurityGroupCommand = function (outpu
1254
1254
  });
1255
1255
  }); };
1256
1256
  var deserializeAws_queryCreateCacheSecurityGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1257
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1257
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1258
1258
  var _c;
1259
1259
  return __generator(this, function (_d) {
1260
1260
  switch (_d.label) {
@@ -1291,14 +1291,14 @@ var deserializeAws_queryCreateCacheSecurityGroupCommandError = function (output,
1291
1291
  case 11: throw _d.sent();
1292
1292
  case 12:
1293
1293
  parsedBody = parsedOutput.body;
1294
- $metadata = deserializeMetadata(output);
1295
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1296
- response = new __BaseException({
1297
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1298
- $fault: "client",
1299
- $metadata: $metadata,
1294
+ throwDefaultError({
1295
+ output: output,
1296
+ parsedBody: parsedBody.Error,
1297
+ exceptionCtor: __BaseException,
1298
+ errorCode: errorCode,
1300
1299
  });
1301
- throw __decorateServiceException(response, parsedBody.Error);
1300
+ _d.label = 13;
1301
+ case 13: return [2];
1302
1302
  }
1303
1303
  });
1304
1304
  }); };
@@ -1321,7 +1321,7 @@ export var deserializeAws_queryCreateCacheSubnetGroupCommand = function (output,
1321
1321
  });
1322
1322
  }); };
1323
1323
  var deserializeAws_queryCreateCacheSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1324
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1324
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1325
1325
  var _c;
1326
1326
  return __generator(this, function (_d) {
1327
1327
  switch (_d.label) {
@@ -1362,14 +1362,14 @@ var deserializeAws_queryCreateCacheSubnetGroupCommandError = function (output, c
1362
1362
  case 13: throw _d.sent();
1363
1363
  case 14:
1364
1364
  parsedBody = parsedOutput.body;
1365
- $metadata = deserializeMetadata(output);
1366
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1367
- response = new __BaseException({
1368
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1369
- $fault: "client",
1370
- $metadata: $metadata,
1365
+ throwDefaultError({
1366
+ output: output,
1367
+ parsedBody: parsedBody.Error,
1368
+ exceptionCtor: __BaseException,
1369
+ errorCode: errorCode,
1371
1370
  });
1372
- throw __decorateServiceException(response, parsedBody.Error);
1371
+ _d.label = 15;
1372
+ case 15: return [2];
1373
1373
  }
1374
1374
  });
1375
1375
  }); };
@@ -1392,7 +1392,7 @@ export var deserializeAws_queryCreateGlobalReplicationGroupCommand = function (o
1392
1392
  });
1393
1393
  }); };
1394
1394
  var deserializeAws_queryCreateGlobalReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1395
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1395
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1396
1396
  var _c;
1397
1397
  return __generator(this, function (_d) {
1398
1398
  switch (_d.label) {
@@ -1429,14 +1429,14 @@ var deserializeAws_queryCreateGlobalReplicationGroupCommandError = function (out
1429
1429
  case 11: throw _d.sent();
1430
1430
  case 12:
1431
1431
  parsedBody = parsedOutput.body;
1432
- $metadata = deserializeMetadata(output);
1433
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1434
- response = new __BaseException({
1435
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1436
- $fault: "client",
1437
- $metadata: $metadata,
1432
+ throwDefaultError({
1433
+ output: output,
1434
+ parsedBody: parsedBody.Error,
1435
+ exceptionCtor: __BaseException,
1436
+ errorCode: errorCode,
1438
1437
  });
1439
- throw __decorateServiceException(response, parsedBody.Error);
1438
+ _d.label = 13;
1439
+ case 13: return [2];
1440
1440
  }
1441
1441
  });
1442
1442
  }); };
@@ -1459,7 +1459,7 @@ export var deserializeAws_queryCreateReplicationGroupCommand = function (output,
1459
1459
  });
1460
1460
  }); };
1461
1461
  var deserializeAws_queryCreateReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1462
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1462
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1463
1463
  var _c;
1464
1464
  return __generator(this, function (_d) {
1465
1465
  switch (_d.label) {
@@ -1552,14 +1552,14 @@ var deserializeAws_queryCreateReplicationGroupCommandError = function (output, c
1552
1552
  case 39: throw _d.sent();
1553
1553
  case 40:
1554
1554
  parsedBody = parsedOutput.body;
1555
- $metadata = deserializeMetadata(output);
1556
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1557
- response = new __BaseException({
1558
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1559
- $fault: "client",
1560
- $metadata: $metadata,
1555
+ throwDefaultError({
1556
+ output: output,
1557
+ parsedBody: parsedBody.Error,
1558
+ exceptionCtor: __BaseException,
1559
+ errorCode: errorCode,
1561
1560
  });
1562
- throw __decorateServiceException(response, parsedBody.Error);
1561
+ _d.label = 41;
1562
+ case 41: return [2];
1563
1563
  }
1564
1564
  });
1565
1565
  }); };
@@ -1582,7 +1582,7 @@ export var deserializeAws_queryCreateSnapshotCommand = function (output, context
1582
1582
  });
1583
1583
  }); };
1584
1584
  var deserializeAws_queryCreateSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1585
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1585
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1586
1586
  var _c;
1587
1587
  return __generator(this, function (_d) {
1588
1588
  switch (_d.label) {
@@ -1639,14 +1639,14 @@ var deserializeAws_queryCreateSnapshotCommandError = function (output, context)
1639
1639
  case 21: throw _d.sent();
1640
1640
  case 22:
1641
1641
  parsedBody = parsedOutput.body;
1642
- $metadata = deserializeMetadata(output);
1643
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1644
- response = new __BaseException({
1645
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1646
- $fault: "client",
1647
- $metadata: $metadata,
1642
+ throwDefaultError({
1643
+ output: output,
1644
+ parsedBody: parsedBody.Error,
1645
+ exceptionCtor: __BaseException,
1646
+ errorCode: errorCode,
1648
1647
  });
1649
- throw __decorateServiceException(response, parsedBody.Error);
1648
+ _d.label = 23;
1649
+ case 23: return [2];
1650
1650
  }
1651
1651
  });
1652
1652
  }); };
@@ -1669,7 +1669,7 @@ export var deserializeAws_queryCreateUserCommand = function (output, context) {
1669
1669
  });
1670
1670
  }); };
1671
1671
  var deserializeAws_queryCreateUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1672
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1672
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1673
1673
  var _c;
1674
1674
  return __generator(this, function (_d) {
1675
1675
  switch (_d.label) {
@@ -1714,14 +1714,14 @@ var deserializeAws_queryCreateUserCommandError = function (output, context) { re
1714
1714
  case 15: throw _d.sent();
1715
1715
  case 16:
1716
1716
  parsedBody = parsedOutput.body;
1717
- $metadata = deserializeMetadata(output);
1718
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1719
- response = new __BaseException({
1720
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1721
- $fault: "client",
1722
- $metadata: $metadata,
1717
+ throwDefaultError({
1718
+ output: output,
1719
+ parsedBody: parsedBody.Error,
1720
+ exceptionCtor: __BaseException,
1721
+ errorCode: errorCode,
1723
1722
  });
1724
- throw __decorateServiceException(response, parsedBody.Error);
1723
+ _d.label = 17;
1724
+ case 17: return [2];
1725
1725
  }
1726
1726
  });
1727
1727
  }); };
@@ -1744,7 +1744,7 @@ export var deserializeAws_queryCreateUserGroupCommand = function (output, contex
1744
1744
  });
1745
1745
  }); };
1746
1746
  var deserializeAws_queryCreateUserGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1747
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1747
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1748
1748
  var _c;
1749
1749
  return __generator(this, function (_d) {
1750
1750
  switch (_d.label) {
@@ -1793,14 +1793,14 @@ var deserializeAws_queryCreateUserGroupCommandError = function (output, context)
1793
1793
  case 17: throw _d.sent();
1794
1794
  case 18:
1795
1795
  parsedBody = parsedOutput.body;
1796
- $metadata = deserializeMetadata(output);
1797
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1798
- response = new __BaseException({
1799
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1800
- $fault: "client",
1801
- $metadata: $metadata,
1796
+ throwDefaultError({
1797
+ output: output,
1798
+ parsedBody: parsedBody.Error,
1799
+ exceptionCtor: __BaseException,
1800
+ errorCode: errorCode,
1802
1801
  });
1803
- throw __decorateServiceException(response, parsedBody.Error);
1802
+ _d.label = 19;
1803
+ case 19: return [2];
1804
1804
  }
1805
1805
  });
1806
1806
  }); };
@@ -1823,7 +1823,7 @@ export var deserializeAws_queryDecreaseNodeGroupsInGlobalReplicationGroupCommand
1823
1823
  });
1824
1824
  }); };
1825
1825
  var deserializeAws_queryDecreaseNodeGroupsInGlobalReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1826
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1826
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1827
1827
  var _c;
1828
1828
  return __generator(this, function (_d) {
1829
1829
  switch (_d.label) {
@@ -1856,14 +1856,14 @@ var deserializeAws_queryDecreaseNodeGroupsInGlobalReplicationGroupCommandError =
1856
1856
  case 9: throw _d.sent();
1857
1857
  case 10:
1858
1858
  parsedBody = parsedOutput.body;
1859
- $metadata = deserializeMetadata(output);
1860
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1861
- response = new __BaseException({
1862
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1863
- $fault: "client",
1864
- $metadata: $metadata,
1859
+ throwDefaultError({
1860
+ output: output,
1861
+ parsedBody: parsedBody.Error,
1862
+ exceptionCtor: __BaseException,
1863
+ errorCode: errorCode,
1865
1864
  });
1866
- throw __decorateServiceException(response, parsedBody.Error);
1865
+ _d.label = 11;
1866
+ case 11: return [2];
1867
1867
  }
1868
1868
  });
1869
1869
  }); };
@@ -1886,7 +1886,7 @@ export var deserializeAws_queryDecreaseReplicaCountCommand = function (output, c
1886
1886
  });
1887
1887
  }); };
1888
1888
  var deserializeAws_queryDecreaseReplicaCountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1889
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1889
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1890
1890
  var _c;
1891
1891
  return __generator(this, function (_d) {
1892
1892
  switch (_d.label) {
@@ -1951,14 +1951,14 @@ var deserializeAws_queryDecreaseReplicaCountCommandError = function (output, con
1951
1951
  case 25: throw _d.sent();
1952
1952
  case 26:
1953
1953
  parsedBody = parsedOutput.body;
1954
- $metadata = deserializeMetadata(output);
1955
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1956
- response = new __BaseException({
1957
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1958
- $fault: "client",
1959
- $metadata: $metadata,
1954
+ throwDefaultError({
1955
+ output: output,
1956
+ parsedBody: parsedBody.Error,
1957
+ exceptionCtor: __BaseException,
1958
+ errorCode: errorCode,
1960
1959
  });
1961
- throw __decorateServiceException(response, parsedBody.Error);
1960
+ _d.label = 27;
1961
+ case 27: return [2];
1962
1962
  }
1963
1963
  });
1964
1964
  }); };
@@ -1981,7 +1981,7 @@ export var deserializeAws_queryDeleteCacheClusterCommand = function (output, con
1981
1981
  });
1982
1982
  }); };
1983
1983
  var deserializeAws_queryDeleteCacheClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1984
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1984
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1985
1985
  var _c;
1986
1986
  return __generator(this, function (_d) {
1987
1987
  switch (_d.label) {
@@ -2026,14 +2026,14 @@ var deserializeAws_queryDeleteCacheClusterCommandError = function (output, conte
2026
2026
  case 15: throw _d.sent();
2027
2027
  case 16:
2028
2028
  parsedBody = parsedOutput.body;
2029
- $metadata = deserializeMetadata(output);
2030
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2031
- response = new __BaseException({
2032
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2033
- $fault: "client",
2034
- $metadata: $metadata,
2029
+ throwDefaultError({
2030
+ output: output,
2031
+ parsedBody: parsedBody.Error,
2032
+ exceptionCtor: __BaseException,
2033
+ errorCode: errorCode,
2035
2034
  });
2036
- throw __decorateServiceException(response, parsedBody.Error);
2035
+ _d.label = 17;
2036
+ case 17: return [2];
2037
2037
  }
2038
2038
  });
2039
2039
  }); };
@@ -2056,7 +2056,7 @@ export var deserializeAws_queryDeleteCacheParameterGroupCommand = function (outp
2056
2056
  });
2057
2057
  }); };
2058
2058
  var deserializeAws_queryDeleteCacheParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2059
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2059
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2060
2060
  var _c;
2061
2061
  return __generator(this, function (_d) {
2062
2062
  switch (_d.label) {
@@ -2089,14 +2089,14 @@ var deserializeAws_queryDeleteCacheParameterGroupCommandError = function (output
2089
2089
  case 9: throw _d.sent();
2090
2090
  case 10:
2091
2091
  parsedBody = parsedOutput.body;
2092
- $metadata = deserializeMetadata(output);
2093
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2094
- response = new __BaseException({
2095
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2096
- $fault: "client",
2097
- $metadata: $metadata,
2092
+ throwDefaultError({
2093
+ output: output,
2094
+ parsedBody: parsedBody.Error,
2095
+ exceptionCtor: __BaseException,
2096
+ errorCode: errorCode,
2098
2097
  });
2099
- throw __decorateServiceException(response, parsedBody.Error);
2098
+ _d.label = 11;
2099
+ case 11: return [2];
2100
2100
  }
2101
2101
  });
2102
2102
  }); };
@@ -2119,7 +2119,7 @@ export var deserializeAws_queryDeleteCacheSecurityGroupCommand = function (outpu
2119
2119
  });
2120
2120
  }); };
2121
2121
  var deserializeAws_queryDeleteCacheSecurityGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2122
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2122
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2123
2123
  var _c;
2124
2124
  return __generator(this, function (_d) {
2125
2125
  switch (_d.label) {
@@ -2152,14 +2152,14 @@ var deserializeAws_queryDeleteCacheSecurityGroupCommandError = function (output,
2152
2152
  case 9: throw _d.sent();
2153
2153
  case 10:
2154
2154
  parsedBody = parsedOutput.body;
2155
- $metadata = deserializeMetadata(output);
2156
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2157
- response = new __BaseException({
2158
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2159
- $fault: "client",
2160
- $metadata: $metadata,
2155
+ throwDefaultError({
2156
+ output: output,
2157
+ parsedBody: parsedBody.Error,
2158
+ exceptionCtor: __BaseException,
2159
+ errorCode: errorCode,
2161
2160
  });
2162
- throw __decorateServiceException(response, parsedBody.Error);
2161
+ _d.label = 11;
2162
+ case 11: return [2];
2163
2163
  }
2164
2164
  });
2165
2165
  }); };
@@ -2182,7 +2182,7 @@ export var deserializeAws_queryDeleteCacheSubnetGroupCommand = function (output,
2182
2182
  });
2183
2183
  }); };
2184
2184
  var deserializeAws_queryDeleteCacheSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2185
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2185
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2186
2186
  var _c;
2187
2187
  return __generator(this, function (_d) {
2188
2188
  switch (_d.label) {
@@ -2207,14 +2207,14 @@ var deserializeAws_queryDeleteCacheSubnetGroupCommandError = function (output, c
2207
2207
  case 5: throw _d.sent();
2208
2208
  case 6:
2209
2209
  parsedBody = parsedOutput.body;
2210
- $metadata = deserializeMetadata(output);
2211
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2212
- response = new __BaseException({
2213
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2214
- $fault: "client",
2215
- $metadata: $metadata,
2210
+ throwDefaultError({
2211
+ output: output,
2212
+ parsedBody: parsedBody.Error,
2213
+ exceptionCtor: __BaseException,
2214
+ errorCode: errorCode,
2216
2215
  });
2217
- throw __decorateServiceException(response, parsedBody.Error);
2216
+ _d.label = 7;
2217
+ case 7: return [2];
2218
2218
  }
2219
2219
  });
2220
2220
  }); };
@@ -2237,7 +2237,7 @@ export var deserializeAws_queryDeleteGlobalReplicationGroupCommand = function (o
2237
2237
  });
2238
2238
  }); };
2239
2239
  var deserializeAws_queryDeleteGlobalReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2240
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2240
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2241
2241
  var _c;
2242
2242
  return __generator(this, function (_d) {
2243
2243
  switch (_d.label) {
@@ -2266,14 +2266,14 @@ var deserializeAws_queryDeleteGlobalReplicationGroupCommandError = function (out
2266
2266
  case 7: throw _d.sent();
2267
2267
  case 8:
2268
2268
  parsedBody = parsedOutput.body;
2269
- $metadata = deserializeMetadata(output);
2270
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2271
- response = new __BaseException({
2272
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2273
- $fault: "client",
2274
- $metadata: $metadata,
2269
+ throwDefaultError({
2270
+ output: output,
2271
+ parsedBody: parsedBody.Error,
2272
+ exceptionCtor: __BaseException,
2273
+ errorCode: errorCode,
2275
2274
  });
2276
- throw __decorateServiceException(response, parsedBody.Error);
2275
+ _d.label = 9;
2276
+ case 9: return [2];
2277
2277
  }
2278
2278
  });
2279
2279
  }); };
@@ -2296,7 +2296,7 @@ export var deserializeAws_queryDeleteReplicationGroupCommand = function (output,
2296
2296
  });
2297
2297
  }); };
2298
2298
  var deserializeAws_queryDeleteReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2299
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2299
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2300
2300
  var _c;
2301
2301
  return __generator(this, function (_d) {
2302
2302
  switch (_d.label) {
@@ -2341,14 +2341,14 @@ var deserializeAws_queryDeleteReplicationGroupCommandError = function (output, c
2341
2341
  case 15: throw _d.sent();
2342
2342
  case 16:
2343
2343
  parsedBody = parsedOutput.body;
2344
- $metadata = deserializeMetadata(output);
2345
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2346
- response = new __BaseException({
2347
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2348
- $fault: "client",
2349
- $metadata: $metadata,
2344
+ throwDefaultError({
2345
+ output: output,
2346
+ parsedBody: parsedBody.Error,
2347
+ exceptionCtor: __BaseException,
2348
+ errorCode: errorCode,
2350
2349
  });
2351
- throw __decorateServiceException(response, parsedBody.Error);
2350
+ _d.label = 17;
2351
+ case 17: return [2];
2352
2352
  }
2353
2353
  });
2354
2354
  }); };
@@ -2371,7 +2371,7 @@ export var deserializeAws_queryDeleteSnapshotCommand = function (output, context
2371
2371
  });
2372
2372
  }); };
2373
2373
  var deserializeAws_queryDeleteSnapshotCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2374
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2374
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2375
2375
  var _c;
2376
2376
  return __generator(this, function (_d) {
2377
2377
  switch (_d.label) {
@@ -2404,14 +2404,14 @@ var deserializeAws_queryDeleteSnapshotCommandError = function (output, context)
2404
2404
  case 9: throw _d.sent();
2405
2405
  case 10:
2406
2406
  parsedBody = parsedOutput.body;
2407
- $metadata = deserializeMetadata(output);
2408
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2409
- response = new __BaseException({
2410
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2411
- $fault: "client",
2412
- $metadata: $metadata,
2407
+ throwDefaultError({
2408
+ output: output,
2409
+ parsedBody: parsedBody.Error,
2410
+ exceptionCtor: __BaseException,
2411
+ errorCode: errorCode,
2413
2412
  });
2414
- throw __decorateServiceException(response, parsedBody.Error);
2413
+ _d.label = 11;
2414
+ case 11: return [2];
2415
2415
  }
2416
2416
  });
2417
2417
  }); };
@@ -2434,7 +2434,7 @@ export var deserializeAws_queryDeleteUserCommand = function (output, context) {
2434
2434
  });
2435
2435
  }); };
2436
2436
  var deserializeAws_queryDeleteUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2437
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2437
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2438
2438
  var _c;
2439
2439
  return __generator(this, function (_d) {
2440
2440
  switch (_d.label) {
@@ -2471,14 +2471,14 @@ var deserializeAws_queryDeleteUserCommandError = function (output, context) { re
2471
2471
  case 11: throw _d.sent();
2472
2472
  case 12:
2473
2473
  parsedBody = parsedOutput.body;
2474
- $metadata = deserializeMetadata(output);
2475
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2476
- response = new __BaseException({
2477
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2478
- $fault: "client",
2479
- $metadata: $metadata,
2474
+ throwDefaultError({
2475
+ output: output,
2476
+ parsedBody: parsedBody.Error,
2477
+ exceptionCtor: __BaseException,
2478
+ errorCode: errorCode,
2480
2479
  });
2481
- throw __decorateServiceException(response, parsedBody.Error);
2480
+ _d.label = 13;
2481
+ case 13: return [2];
2482
2482
  }
2483
2483
  });
2484
2484
  }); };
@@ -2501,7 +2501,7 @@ export var deserializeAws_queryDeleteUserGroupCommand = function (output, contex
2501
2501
  });
2502
2502
  }); };
2503
2503
  var deserializeAws_queryDeleteUserGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2504
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2504
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2505
2505
  var _c;
2506
2506
  return __generator(this, function (_d) {
2507
2507
  switch (_d.label) {
@@ -2534,14 +2534,14 @@ var deserializeAws_queryDeleteUserGroupCommandError = function (output, context)
2534
2534
  case 9: throw _d.sent();
2535
2535
  case 10:
2536
2536
  parsedBody = parsedOutput.body;
2537
- $metadata = deserializeMetadata(output);
2538
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2539
- response = new __BaseException({
2540
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2541
- $fault: "client",
2542
- $metadata: $metadata,
2537
+ throwDefaultError({
2538
+ output: output,
2539
+ parsedBody: parsedBody.Error,
2540
+ exceptionCtor: __BaseException,
2541
+ errorCode: errorCode,
2543
2542
  });
2544
- throw __decorateServiceException(response, parsedBody.Error);
2543
+ _d.label = 11;
2544
+ case 11: return [2];
2545
2545
  }
2546
2546
  });
2547
2547
  }); };
@@ -2564,7 +2564,7 @@ export var deserializeAws_queryDescribeCacheClustersCommand = function (output,
2564
2564
  });
2565
2565
  }); };
2566
2566
  var deserializeAws_queryDescribeCacheClustersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2567
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2567
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2568
2568
  var _c;
2569
2569
  return __generator(this, function (_d) {
2570
2570
  switch (_d.label) {
@@ -2593,14 +2593,14 @@ var deserializeAws_queryDescribeCacheClustersCommandError = function (output, co
2593
2593
  case 7: throw _d.sent();
2594
2594
  case 8:
2595
2595
  parsedBody = parsedOutput.body;
2596
- $metadata = deserializeMetadata(output);
2597
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2598
- response = new __BaseException({
2599
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2600
- $fault: "client",
2601
- $metadata: $metadata,
2596
+ throwDefaultError({
2597
+ output: output,
2598
+ parsedBody: parsedBody.Error,
2599
+ exceptionCtor: __BaseException,
2600
+ errorCode: errorCode,
2602
2601
  });
2603
- throw __decorateServiceException(response, parsedBody.Error);
2602
+ _d.label = 9;
2603
+ case 9: return [2];
2604
2604
  }
2605
2605
  });
2606
2606
  }); };
@@ -2623,7 +2623,7 @@ export var deserializeAws_queryDescribeCacheEngineVersionsCommand = function (ou
2623
2623
  });
2624
2624
  }); };
2625
2625
  var deserializeAws_queryDescribeCacheEngineVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2626
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2626
+ var parsedOutput, _a, errorCode, parsedBody;
2627
2627
  var _b;
2628
2628
  return __generator(this, function (_c) {
2629
2629
  switch (_c.label) {
@@ -2634,18 +2634,13 @@ var deserializeAws_queryDescribeCacheEngineVersionsCommandError = function (outp
2634
2634
  case 1:
2635
2635
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2636
2636
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2637
- switch (errorCode) {
2638
- default:
2639
- parsedBody = parsedOutput.body;
2640
- $metadata = deserializeMetadata(output);
2641
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2642
- response = new __BaseException({
2643
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2644
- $fault: "client",
2645
- $metadata: $metadata,
2646
- });
2647
- throw __decorateServiceException(response, parsedBody.Error);
2648
- }
2637
+ parsedBody = parsedOutput.body;
2638
+ throwDefaultError({
2639
+ output: output,
2640
+ parsedBody: parsedBody.Error,
2641
+ exceptionCtor: __BaseException,
2642
+ errorCode: errorCode,
2643
+ });
2649
2644
  return [2];
2650
2645
  }
2651
2646
  });
@@ -2669,7 +2664,7 @@ export var deserializeAws_queryDescribeCacheParameterGroupsCommand = function (o
2669
2664
  });
2670
2665
  }); };
2671
2666
  var deserializeAws_queryDescribeCacheParameterGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2672
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2667
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2673
2668
  var _c;
2674
2669
  return __generator(this, function (_d) {
2675
2670
  switch (_d.label) {
@@ -2698,14 +2693,14 @@ var deserializeAws_queryDescribeCacheParameterGroupsCommandError = function (out
2698
2693
  case 7: throw _d.sent();
2699
2694
  case 8:
2700
2695
  parsedBody = parsedOutput.body;
2701
- $metadata = deserializeMetadata(output);
2702
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2703
- response = new __BaseException({
2704
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2705
- $fault: "client",
2706
- $metadata: $metadata,
2696
+ throwDefaultError({
2697
+ output: output,
2698
+ parsedBody: parsedBody.Error,
2699
+ exceptionCtor: __BaseException,
2700
+ errorCode: errorCode,
2707
2701
  });
2708
- throw __decorateServiceException(response, parsedBody.Error);
2702
+ _d.label = 9;
2703
+ case 9: return [2];
2709
2704
  }
2710
2705
  });
2711
2706
  }); };
@@ -2728,7 +2723,7 @@ export var deserializeAws_queryDescribeCacheParametersCommand = function (output
2728
2723
  });
2729
2724
  }); };
2730
2725
  var deserializeAws_queryDescribeCacheParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2731
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2726
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2732
2727
  var _c;
2733
2728
  return __generator(this, function (_d) {
2734
2729
  switch (_d.label) {
@@ -2757,14 +2752,14 @@ var deserializeAws_queryDescribeCacheParametersCommandError = function (output,
2757
2752
  case 7: throw _d.sent();
2758
2753
  case 8:
2759
2754
  parsedBody = parsedOutput.body;
2760
- $metadata = deserializeMetadata(output);
2761
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2762
- response = new __BaseException({
2763
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2764
- $fault: "client",
2765
- $metadata: $metadata,
2755
+ throwDefaultError({
2756
+ output: output,
2757
+ parsedBody: parsedBody.Error,
2758
+ exceptionCtor: __BaseException,
2759
+ errorCode: errorCode,
2766
2760
  });
2767
- throw __decorateServiceException(response, parsedBody.Error);
2761
+ _d.label = 9;
2762
+ case 9: return [2];
2768
2763
  }
2769
2764
  });
2770
2765
  }); };
@@ -2787,7 +2782,7 @@ export var deserializeAws_queryDescribeCacheSecurityGroupsCommand = function (ou
2787
2782
  });
2788
2783
  }); };
2789
2784
  var deserializeAws_queryDescribeCacheSecurityGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2790
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2785
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2791
2786
  var _c;
2792
2787
  return __generator(this, function (_d) {
2793
2788
  switch (_d.label) {
@@ -2816,14 +2811,14 @@ var deserializeAws_queryDescribeCacheSecurityGroupsCommandError = function (outp
2816
2811
  case 7: throw _d.sent();
2817
2812
  case 8:
2818
2813
  parsedBody = parsedOutput.body;
2819
- $metadata = deserializeMetadata(output);
2820
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2821
- response = new __BaseException({
2822
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2823
- $fault: "client",
2824
- $metadata: $metadata,
2814
+ throwDefaultError({
2815
+ output: output,
2816
+ parsedBody: parsedBody.Error,
2817
+ exceptionCtor: __BaseException,
2818
+ errorCode: errorCode,
2825
2819
  });
2826
- throw __decorateServiceException(response, parsedBody.Error);
2820
+ _d.label = 9;
2821
+ case 9: return [2];
2827
2822
  }
2828
2823
  });
2829
2824
  }); };
@@ -2846,7 +2841,7 @@ export var deserializeAws_queryDescribeCacheSubnetGroupsCommand = function (outp
2846
2841
  });
2847
2842
  }); };
2848
2843
  var deserializeAws_queryDescribeCacheSubnetGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2849
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2844
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2850
2845
  var _c;
2851
2846
  return __generator(this, function (_d) {
2852
2847
  switch (_d.label) {
@@ -2867,14 +2862,14 @@ var deserializeAws_queryDescribeCacheSubnetGroupsCommandError = function (output
2867
2862
  case 3: throw _d.sent();
2868
2863
  case 4:
2869
2864
  parsedBody = parsedOutput.body;
2870
- $metadata = deserializeMetadata(output);
2871
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2872
- response = new __BaseException({
2873
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2874
- $fault: "client",
2875
- $metadata: $metadata,
2865
+ throwDefaultError({
2866
+ output: output,
2867
+ parsedBody: parsedBody.Error,
2868
+ exceptionCtor: __BaseException,
2869
+ errorCode: errorCode,
2876
2870
  });
2877
- throw __decorateServiceException(response, parsedBody.Error);
2871
+ _d.label = 5;
2872
+ case 5: return [2];
2878
2873
  }
2879
2874
  });
2880
2875
  }); };
@@ -2897,7 +2892,7 @@ export var deserializeAws_queryDescribeEngineDefaultParametersCommand = function
2897
2892
  });
2898
2893
  }); };
2899
2894
  var deserializeAws_queryDescribeEngineDefaultParametersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2900
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2895
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2901
2896
  var _c;
2902
2897
  return __generator(this, function (_d) {
2903
2898
  switch (_d.label) {
@@ -2922,14 +2917,14 @@ var deserializeAws_queryDescribeEngineDefaultParametersCommandError = function (
2922
2917
  case 5: throw _d.sent();
2923
2918
  case 6:
2924
2919
  parsedBody = parsedOutput.body;
2925
- $metadata = deserializeMetadata(output);
2926
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2927
- response = new __BaseException({
2928
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2929
- $fault: "client",
2930
- $metadata: $metadata,
2920
+ throwDefaultError({
2921
+ output: output,
2922
+ parsedBody: parsedBody.Error,
2923
+ exceptionCtor: __BaseException,
2924
+ errorCode: errorCode,
2931
2925
  });
2932
- throw __decorateServiceException(response, parsedBody.Error);
2926
+ _d.label = 7;
2927
+ case 7: return [2];
2933
2928
  }
2934
2929
  });
2935
2930
  }); };
@@ -2952,7 +2947,7 @@ export var deserializeAws_queryDescribeEventsCommand = function (output, context
2952
2947
  });
2953
2948
  }); };
2954
2949
  var deserializeAws_queryDescribeEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2955
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2950
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2956
2951
  var _c;
2957
2952
  return __generator(this, function (_d) {
2958
2953
  switch (_d.label) {
@@ -2977,14 +2972,14 @@ var deserializeAws_queryDescribeEventsCommandError = function (output, context)
2977
2972
  case 5: throw _d.sent();
2978
2973
  case 6:
2979
2974
  parsedBody = parsedOutput.body;
2980
- $metadata = deserializeMetadata(output);
2981
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2982
- response = new __BaseException({
2983
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2984
- $fault: "client",
2985
- $metadata: $metadata,
2975
+ throwDefaultError({
2976
+ output: output,
2977
+ parsedBody: parsedBody.Error,
2978
+ exceptionCtor: __BaseException,
2979
+ errorCode: errorCode,
2986
2980
  });
2987
- throw __decorateServiceException(response, parsedBody.Error);
2981
+ _d.label = 7;
2982
+ case 7: return [2];
2988
2983
  }
2989
2984
  });
2990
2985
  }); };
@@ -3007,7 +3002,7 @@ export var deserializeAws_queryDescribeGlobalReplicationGroupsCommand = function
3007
3002
  });
3008
3003
  }); };
3009
3004
  var deserializeAws_queryDescribeGlobalReplicationGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3010
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3005
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3011
3006
  var _c;
3012
3007
  return __generator(this, function (_d) {
3013
3008
  switch (_d.label) {
@@ -3036,14 +3031,14 @@ var deserializeAws_queryDescribeGlobalReplicationGroupsCommandError = function (
3036
3031
  case 7: throw _d.sent();
3037
3032
  case 8:
3038
3033
  parsedBody = parsedOutput.body;
3039
- $metadata = deserializeMetadata(output);
3040
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3041
- response = new __BaseException({
3042
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3043
- $fault: "client",
3044
- $metadata: $metadata,
3034
+ throwDefaultError({
3035
+ output: output,
3036
+ parsedBody: parsedBody.Error,
3037
+ exceptionCtor: __BaseException,
3038
+ errorCode: errorCode,
3045
3039
  });
3046
- throw __decorateServiceException(response, parsedBody.Error);
3040
+ _d.label = 9;
3041
+ case 9: return [2];
3047
3042
  }
3048
3043
  });
3049
3044
  }); };
@@ -3066,7 +3061,7 @@ export var deserializeAws_queryDescribeReplicationGroupsCommand = function (outp
3066
3061
  });
3067
3062
  }); };
3068
3063
  var deserializeAws_queryDescribeReplicationGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3069
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3064
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3070
3065
  var _c;
3071
3066
  return __generator(this, function (_d) {
3072
3067
  switch (_d.label) {
@@ -3095,14 +3090,14 @@ var deserializeAws_queryDescribeReplicationGroupsCommandError = function (output
3095
3090
  case 7: throw _d.sent();
3096
3091
  case 8:
3097
3092
  parsedBody = parsedOutput.body;
3098
- $metadata = deserializeMetadata(output);
3099
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3100
- response = new __BaseException({
3101
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3102
- $fault: "client",
3103
- $metadata: $metadata,
3093
+ throwDefaultError({
3094
+ output: output,
3095
+ parsedBody: parsedBody.Error,
3096
+ exceptionCtor: __BaseException,
3097
+ errorCode: errorCode,
3104
3098
  });
3105
- throw __decorateServiceException(response, parsedBody.Error);
3099
+ _d.label = 9;
3100
+ case 9: return [2];
3106
3101
  }
3107
3102
  });
3108
3103
  }); };
@@ -3125,7 +3120,7 @@ export var deserializeAws_queryDescribeReservedCacheNodesCommand = function (out
3125
3120
  });
3126
3121
  }); };
3127
3122
  var deserializeAws_queryDescribeReservedCacheNodesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3128
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3123
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3129
3124
  var _c;
3130
3125
  return __generator(this, function (_d) {
3131
3126
  switch (_d.label) {
@@ -3154,14 +3149,14 @@ var deserializeAws_queryDescribeReservedCacheNodesCommandError = function (outpu
3154
3149
  case 7: throw _d.sent();
3155
3150
  case 8:
3156
3151
  parsedBody = parsedOutput.body;
3157
- $metadata = deserializeMetadata(output);
3158
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3159
- response = new __BaseException({
3160
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3161
- $fault: "client",
3162
- $metadata: $metadata,
3152
+ throwDefaultError({
3153
+ output: output,
3154
+ parsedBody: parsedBody.Error,
3155
+ exceptionCtor: __BaseException,
3156
+ errorCode: errorCode,
3163
3157
  });
3164
- throw __decorateServiceException(response, parsedBody.Error);
3158
+ _d.label = 9;
3159
+ case 9: return [2];
3165
3160
  }
3166
3161
  });
3167
3162
  }); };
@@ -3184,7 +3179,7 @@ export var deserializeAws_queryDescribeReservedCacheNodesOfferingsCommand = func
3184
3179
  });
3185
3180
  }); };
3186
3181
  var deserializeAws_queryDescribeReservedCacheNodesOfferingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3187
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3182
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3188
3183
  var _c;
3189
3184
  return __generator(this, function (_d) {
3190
3185
  switch (_d.label) {
@@ -3213,14 +3208,14 @@ var deserializeAws_queryDescribeReservedCacheNodesOfferingsCommandError = functi
3213
3208
  case 7: throw _d.sent();
3214
3209
  case 8:
3215
3210
  parsedBody = parsedOutput.body;
3216
- $metadata = deserializeMetadata(output);
3217
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3218
- response = new __BaseException({
3219
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3220
- $fault: "client",
3221
- $metadata: $metadata,
3211
+ throwDefaultError({
3212
+ output: output,
3213
+ parsedBody: parsedBody.Error,
3214
+ exceptionCtor: __BaseException,
3215
+ errorCode: errorCode,
3222
3216
  });
3223
- throw __decorateServiceException(response, parsedBody.Error);
3217
+ _d.label = 9;
3218
+ case 9: return [2];
3224
3219
  }
3225
3220
  });
3226
3221
  }); };
@@ -3243,7 +3238,7 @@ export var deserializeAws_queryDescribeServiceUpdatesCommand = function (output,
3243
3238
  });
3244
3239
  }); };
3245
3240
  var deserializeAws_queryDescribeServiceUpdatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3246
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3241
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3247
3242
  var _c;
3248
3243
  return __generator(this, function (_d) {
3249
3244
  switch (_d.label) {
@@ -3272,14 +3267,14 @@ var deserializeAws_queryDescribeServiceUpdatesCommandError = function (output, c
3272
3267
  case 7: throw _d.sent();
3273
3268
  case 8:
3274
3269
  parsedBody = parsedOutput.body;
3275
- $metadata = deserializeMetadata(output);
3276
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3277
- response = new __BaseException({
3278
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3279
- $fault: "client",
3280
- $metadata: $metadata,
3270
+ throwDefaultError({
3271
+ output: output,
3272
+ parsedBody: parsedBody.Error,
3273
+ exceptionCtor: __BaseException,
3274
+ errorCode: errorCode,
3281
3275
  });
3282
- throw __decorateServiceException(response, parsedBody.Error);
3276
+ _d.label = 9;
3277
+ case 9: return [2];
3283
3278
  }
3284
3279
  });
3285
3280
  }); };
@@ -3302,7 +3297,7 @@ export var deserializeAws_queryDescribeSnapshotsCommand = function (output, cont
3302
3297
  });
3303
3298
  }); };
3304
3299
  var deserializeAws_queryDescribeSnapshotsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3305
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3300
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3306
3301
  var _c;
3307
3302
  return __generator(this, function (_d) {
3308
3303
  switch (_d.label) {
@@ -3335,14 +3330,14 @@ var deserializeAws_queryDescribeSnapshotsCommandError = function (output, contex
3335
3330
  case 9: throw _d.sent();
3336
3331
  case 10:
3337
3332
  parsedBody = parsedOutput.body;
3338
- $metadata = deserializeMetadata(output);
3339
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3340
- response = new __BaseException({
3341
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3342
- $fault: "client",
3343
- $metadata: $metadata,
3333
+ throwDefaultError({
3334
+ output: output,
3335
+ parsedBody: parsedBody.Error,
3336
+ exceptionCtor: __BaseException,
3337
+ errorCode: errorCode,
3344
3338
  });
3345
- throw __decorateServiceException(response, parsedBody.Error);
3339
+ _d.label = 11;
3340
+ case 11: return [2];
3346
3341
  }
3347
3342
  });
3348
3343
  }); };
@@ -3365,7 +3360,7 @@ export var deserializeAws_queryDescribeUpdateActionsCommand = function (output,
3365
3360
  });
3366
3361
  }); };
3367
3362
  var deserializeAws_queryDescribeUpdateActionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3368
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3363
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3369
3364
  var _c;
3370
3365
  return __generator(this, function (_d) {
3371
3366
  switch (_d.label) {
@@ -3390,14 +3385,14 @@ var deserializeAws_queryDescribeUpdateActionsCommandError = function (output, co
3390
3385
  case 5: throw _d.sent();
3391
3386
  case 6:
3392
3387
  parsedBody = parsedOutput.body;
3393
- $metadata = deserializeMetadata(output);
3394
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3395
- response = new __BaseException({
3396
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3397
- $fault: "client",
3398
- $metadata: $metadata,
3388
+ throwDefaultError({
3389
+ output: output,
3390
+ parsedBody: parsedBody.Error,
3391
+ exceptionCtor: __BaseException,
3392
+ errorCode: errorCode,
3399
3393
  });
3400
- throw __decorateServiceException(response, parsedBody.Error);
3394
+ _d.label = 7;
3395
+ case 7: return [2];
3401
3396
  }
3402
3397
  });
3403
3398
  }); };
@@ -3420,7 +3415,7 @@ export var deserializeAws_queryDescribeUserGroupsCommand = function (output, con
3420
3415
  });
3421
3416
  }); };
3422
3417
  var deserializeAws_queryDescribeUserGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3423
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3418
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3424
3419
  var _c;
3425
3420
  return __generator(this, function (_d) {
3426
3421
  switch (_d.label) {
@@ -3449,14 +3444,14 @@ var deserializeAws_queryDescribeUserGroupsCommandError = function (output, conte
3449
3444
  case 7: throw _d.sent();
3450
3445
  case 8:
3451
3446
  parsedBody = parsedOutput.body;
3452
- $metadata = deserializeMetadata(output);
3453
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3454
- response = new __BaseException({
3455
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3456
- $fault: "client",
3457
- $metadata: $metadata,
3447
+ throwDefaultError({
3448
+ output: output,
3449
+ parsedBody: parsedBody.Error,
3450
+ exceptionCtor: __BaseException,
3451
+ errorCode: errorCode,
3458
3452
  });
3459
- throw __decorateServiceException(response, parsedBody.Error);
3453
+ _d.label = 9;
3454
+ case 9: return [2];
3460
3455
  }
3461
3456
  });
3462
3457
  }); };
@@ -3479,7 +3474,7 @@ export var deserializeAws_queryDescribeUsersCommand = function (output, context)
3479
3474
  });
3480
3475
  }); };
3481
3476
  var deserializeAws_queryDescribeUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3482
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3477
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3483
3478
  var _c;
3484
3479
  return __generator(this, function (_d) {
3485
3480
  switch (_d.label) {
@@ -3508,14 +3503,14 @@ var deserializeAws_queryDescribeUsersCommandError = function (output, context) {
3508
3503
  case 7: throw _d.sent();
3509
3504
  case 8:
3510
3505
  parsedBody = parsedOutput.body;
3511
- $metadata = deserializeMetadata(output);
3512
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3513
- response = new __BaseException({
3514
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3515
- $fault: "client",
3516
- $metadata: $metadata,
3506
+ throwDefaultError({
3507
+ output: output,
3508
+ parsedBody: parsedBody.Error,
3509
+ exceptionCtor: __BaseException,
3510
+ errorCode: errorCode,
3517
3511
  });
3518
- throw __decorateServiceException(response, parsedBody.Error);
3512
+ _d.label = 9;
3513
+ case 9: return [2];
3519
3514
  }
3520
3515
  });
3521
3516
  }); };
@@ -3538,7 +3533,7 @@ export var deserializeAws_queryDisassociateGlobalReplicationGroupCommand = funct
3538
3533
  });
3539
3534
  }); };
3540
3535
  var deserializeAws_queryDisassociateGlobalReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3541
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3536
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3542
3537
  var _c;
3543
3538
  return __generator(this, function (_d) {
3544
3539
  switch (_d.label) {
@@ -3571,14 +3566,14 @@ var deserializeAws_queryDisassociateGlobalReplicationGroupCommandError = functio
3571
3566
  case 9: throw _d.sent();
3572
3567
  case 10:
3573
3568
  parsedBody = parsedOutput.body;
3574
- $metadata = deserializeMetadata(output);
3575
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3576
- response = new __BaseException({
3577
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3578
- $fault: "client",
3579
- $metadata: $metadata,
3569
+ throwDefaultError({
3570
+ output: output,
3571
+ parsedBody: parsedBody.Error,
3572
+ exceptionCtor: __BaseException,
3573
+ errorCode: errorCode,
3580
3574
  });
3581
- throw __decorateServiceException(response, parsedBody.Error);
3575
+ _d.label = 11;
3576
+ case 11: return [2];
3582
3577
  }
3583
3578
  });
3584
3579
  }); };
@@ -3601,7 +3596,7 @@ export var deserializeAws_queryFailoverGlobalReplicationGroupCommand = function
3601
3596
  });
3602
3597
  }); };
3603
3598
  var deserializeAws_queryFailoverGlobalReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3604
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3599
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3605
3600
  var _c;
3606
3601
  return __generator(this, function (_d) {
3607
3602
  switch (_d.label) {
@@ -3634,14 +3629,14 @@ var deserializeAws_queryFailoverGlobalReplicationGroupCommandError = function (o
3634
3629
  case 9: throw _d.sent();
3635
3630
  case 10:
3636
3631
  parsedBody = parsedOutput.body;
3637
- $metadata = deserializeMetadata(output);
3638
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3639
- response = new __BaseException({
3640
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3641
- $fault: "client",
3642
- $metadata: $metadata,
3632
+ throwDefaultError({
3633
+ output: output,
3634
+ parsedBody: parsedBody.Error,
3635
+ exceptionCtor: __BaseException,
3636
+ errorCode: errorCode,
3643
3637
  });
3644
- throw __decorateServiceException(response, parsedBody.Error);
3638
+ _d.label = 11;
3639
+ case 11: return [2];
3645
3640
  }
3646
3641
  });
3647
3642
  }); };
@@ -3664,7 +3659,7 @@ export var deserializeAws_queryIncreaseNodeGroupsInGlobalReplicationGroupCommand
3664
3659
  });
3665
3660
  }); };
3666
3661
  var deserializeAws_queryIncreaseNodeGroupsInGlobalReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3667
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3662
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3668
3663
  var _c;
3669
3664
  return __generator(this, function (_d) {
3670
3665
  switch (_d.label) {
@@ -3693,14 +3688,14 @@ var deserializeAws_queryIncreaseNodeGroupsInGlobalReplicationGroupCommandError =
3693
3688
  case 7: throw _d.sent();
3694
3689
  case 8:
3695
3690
  parsedBody = parsedOutput.body;
3696
- $metadata = deserializeMetadata(output);
3697
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3698
- response = new __BaseException({
3699
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3700
- $fault: "client",
3701
- $metadata: $metadata,
3691
+ throwDefaultError({
3692
+ output: output,
3693
+ parsedBody: parsedBody.Error,
3694
+ exceptionCtor: __BaseException,
3695
+ errorCode: errorCode,
3702
3696
  });
3703
- throw __decorateServiceException(response, parsedBody.Error);
3697
+ _d.label = 9;
3698
+ case 9: return [2];
3704
3699
  }
3705
3700
  });
3706
3701
  }); };
@@ -3723,7 +3718,7 @@ export var deserializeAws_queryIncreaseReplicaCountCommand = function (output, c
3723
3718
  });
3724
3719
  }); };
3725
3720
  var deserializeAws_queryIncreaseReplicaCountCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3726
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3721
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3727
3722
  var _c;
3728
3723
  return __generator(this, function (_d) {
3729
3724
  switch (_d.label) {
@@ -3788,14 +3783,14 @@ var deserializeAws_queryIncreaseReplicaCountCommandError = function (output, con
3788
3783
  case 25: throw _d.sent();
3789
3784
  case 26:
3790
3785
  parsedBody = parsedOutput.body;
3791
- $metadata = deserializeMetadata(output);
3792
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3793
- response = new __BaseException({
3794
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3795
- $fault: "client",
3796
- $metadata: $metadata,
3786
+ throwDefaultError({
3787
+ output: output,
3788
+ parsedBody: parsedBody.Error,
3789
+ exceptionCtor: __BaseException,
3790
+ errorCode: errorCode,
3797
3791
  });
3798
- throw __decorateServiceException(response, parsedBody.Error);
3792
+ _d.label = 27;
3793
+ case 27: return [2];
3799
3794
  }
3800
3795
  });
3801
3796
  }); };
@@ -3818,7 +3813,7 @@ export var deserializeAws_queryListAllowedNodeTypeModificationsCommand = functio
3818
3813
  });
3819
3814
  }); };
3820
3815
  var deserializeAws_queryListAllowedNodeTypeModificationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3821
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3816
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3822
3817
  var _c;
3823
3818
  return __generator(this, function (_d) {
3824
3819
  switch (_d.label) {
@@ -3851,14 +3846,14 @@ var deserializeAws_queryListAllowedNodeTypeModificationsCommandError = function
3851
3846
  case 9: throw _d.sent();
3852
3847
  case 10:
3853
3848
  parsedBody = parsedOutput.body;
3854
- $metadata = deserializeMetadata(output);
3855
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3856
- response = new __BaseException({
3857
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3858
- $fault: "client",
3859
- $metadata: $metadata,
3849
+ throwDefaultError({
3850
+ output: output,
3851
+ parsedBody: parsedBody.Error,
3852
+ exceptionCtor: __BaseException,
3853
+ errorCode: errorCode,
3860
3854
  });
3861
- throw __decorateServiceException(response, parsedBody.Error);
3855
+ _d.label = 11;
3856
+ case 11: return [2];
3862
3857
  }
3863
3858
  });
3864
3859
  }); };
@@ -3881,7 +3876,7 @@ export var deserializeAws_queryListTagsForResourceCommand = function (output, co
3881
3876
  });
3882
3877
  }); };
3883
3878
  var deserializeAws_queryListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3884
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3879
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3885
3880
  var _c;
3886
3881
  return __generator(this, function (_d) {
3887
3882
  switch (_d.label) {
@@ -3942,14 +3937,14 @@ var deserializeAws_queryListTagsForResourceCommandError = function (output, cont
3942
3937
  case 23: throw _d.sent();
3943
3938
  case 24:
3944
3939
  parsedBody = parsedOutput.body;
3945
- $metadata = deserializeMetadata(output);
3946
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3947
- response = new __BaseException({
3948
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3949
- $fault: "client",
3950
- $metadata: $metadata,
3940
+ throwDefaultError({
3941
+ output: output,
3942
+ parsedBody: parsedBody.Error,
3943
+ exceptionCtor: __BaseException,
3944
+ errorCode: errorCode,
3951
3945
  });
3952
- throw __decorateServiceException(response, parsedBody.Error);
3946
+ _d.label = 25;
3947
+ case 25: return [2];
3953
3948
  }
3954
3949
  });
3955
3950
  }); };
@@ -3972,7 +3967,7 @@ export var deserializeAws_queryModifyCacheClusterCommand = function (output, con
3972
3967
  });
3973
3968
  }); };
3974
3969
  var deserializeAws_queryModifyCacheClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3975
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3970
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3976
3971
  var _c;
3977
3972
  return __generator(this, function (_d) {
3978
3973
  switch (_d.label) {
@@ -4033,14 +4028,14 @@ var deserializeAws_queryModifyCacheClusterCommandError = function (output, conte
4033
4028
  case 23: throw _d.sent();
4034
4029
  case 24:
4035
4030
  parsedBody = parsedOutput.body;
4036
- $metadata = deserializeMetadata(output);
4037
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4038
- response = new __BaseException({
4039
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4040
- $fault: "client",
4041
- $metadata: $metadata,
4031
+ throwDefaultError({
4032
+ output: output,
4033
+ parsedBody: parsedBody.Error,
4034
+ exceptionCtor: __BaseException,
4035
+ errorCode: errorCode,
4042
4036
  });
4043
- throw __decorateServiceException(response, parsedBody.Error);
4037
+ _d.label = 25;
4038
+ case 25: return [2];
4044
4039
  }
4045
4040
  });
4046
4041
  }); };
@@ -4063,7 +4058,7 @@ export var deserializeAws_queryModifyCacheParameterGroupCommand = function (outp
4063
4058
  });
4064
4059
  }); };
4065
4060
  var deserializeAws_queryModifyCacheParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4066
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4061
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4067
4062
  var _c;
4068
4063
  return __generator(this, function (_d) {
4069
4064
  switch (_d.label) {
@@ -4100,14 +4095,14 @@ var deserializeAws_queryModifyCacheParameterGroupCommandError = function (output
4100
4095
  case 11: throw _d.sent();
4101
4096
  case 12:
4102
4097
  parsedBody = parsedOutput.body;
4103
- $metadata = deserializeMetadata(output);
4104
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4105
- response = new __BaseException({
4106
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4107
- $fault: "client",
4108
- $metadata: $metadata,
4098
+ throwDefaultError({
4099
+ output: output,
4100
+ parsedBody: parsedBody.Error,
4101
+ exceptionCtor: __BaseException,
4102
+ errorCode: errorCode,
4109
4103
  });
4110
- throw __decorateServiceException(response, parsedBody.Error);
4104
+ _d.label = 13;
4105
+ case 13: return [2];
4111
4106
  }
4112
4107
  });
4113
4108
  }); };
@@ -4130,7 +4125,7 @@ export var deserializeAws_queryModifyCacheSubnetGroupCommand = function (output,
4130
4125
  });
4131
4126
  }); };
4132
4127
  var deserializeAws_queryModifyCacheSubnetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4133
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4128
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4134
4129
  var _c;
4135
4130
  return __generator(this, function (_d) {
4136
4131
  switch (_d.label) {
@@ -4167,14 +4162,14 @@ var deserializeAws_queryModifyCacheSubnetGroupCommandError = function (output, c
4167
4162
  case 11: throw _d.sent();
4168
4163
  case 12:
4169
4164
  parsedBody = parsedOutput.body;
4170
- $metadata = deserializeMetadata(output);
4171
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4172
- response = new __BaseException({
4173
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4174
- $fault: "client",
4175
- $metadata: $metadata,
4165
+ throwDefaultError({
4166
+ output: output,
4167
+ parsedBody: parsedBody.Error,
4168
+ exceptionCtor: __BaseException,
4169
+ errorCode: errorCode,
4176
4170
  });
4177
- throw __decorateServiceException(response, parsedBody.Error);
4171
+ _d.label = 13;
4172
+ case 13: return [2];
4178
4173
  }
4179
4174
  });
4180
4175
  }); };
@@ -4197,7 +4192,7 @@ export var deserializeAws_queryModifyGlobalReplicationGroupCommand = function (o
4197
4192
  });
4198
4193
  }); };
4199
4194
  var deserializeAws_queryModifyGlobalReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4200
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4195
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4201
4196
  var _c;
4202
4197
  return __generator(this, function (_d) {
4203
4198
  switch (_d.label) {
@@ -4226,14 +4221,14 @@ var deserializeAws_queryModifyGlobalReplicationGroupCommandError = function (out
4226
4221
  case 7: throw _d.sent();
4227
4222
  case 8:
4228
4223
  parsedBody = parsedOutput.body;
4229
- $metadata = deserializeMetadata(output);
4230
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4231
- response = new __BaseException({
4232
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4233
- $fault: "client",
4234
- $metadata: $metadata,
4224
+ throwDefaultError({
4225
+ output: output,
4226
+ parsedBody: parsedBody.Error,
4227
+ exceptionCtor: __BaseException,
4228
+ errorCode: errorCode,
4235
4229
  });
4236
- throw __decorateServiceException(response, parsedBody.Error);
4230
+ _d.label = 9;
4231
+ case 9: return [2];
4237
4232
  }
4238
4233
  });
4239
4234
  }); };
@@ -4256,7 +4251,7 @@ export var deserializeAws_queryModifyReplicationGroupCommand = function (output,
4256
4251
  });
4257
4252
  }); };
4258
4253
  var deserializeAws_queryModifyReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4259
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4254
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4260
4255
  var _c;
4261
4256
  return __generator(this, function (_d) {
4262
4257
  switch (_d.label) {
@@ -4337,14 +4332,14 @@ var deserializeAws_queryModifyReplicationGroupCommandError = function (output, c
4337
4332
  case 33: throw _d.sent();
4338
4333
  case 34:
4339
4334
  parsedBody = parsedOutput.body;
4340
- $metadata = deserializeMetadata(output);
4341
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4342
- response = new __BaseException({
4343
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4344
- $fault: "client",
4345
- $metadata: $metadata,
4335
+ throwDefaultError({
4336
+ output: output,
4337
+ parsedBody: parsedBody.Error,
4338
+ exceptionCtor: __BaseException,
4339
+ errorCode: errorCode,
4346
4340
  });
4347
- throw __decorateServiceException(response, parsedBody.Error);
4341
+ _d.label = 35;
4342
+ case 35: return [2];
4348
4343
  }
4349
4344
  });
4350
4345
  }); };
@@ -4367,7 +4362,7 @@ export var deserializeAws_queryModifyReplicationGroupShardConfigurationCommand =
4367
4362
  });
4368
4363
  }); };
4369
4364
  var deserializeAws_queryModifyReplicationGroupShardConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4370
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4365
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4371
4366
  var _c;
4372
4367
  return __generator(this, function (_d) {
4373
4368
  switch (_d.label) {
@@ -4424,14 +4419,14 @@ var deserializeAws_queryModifyReplicationGroupShardConfigurationCommandError = f
4424
4419
  case 21: throw _d.sent();
4425
4420
  case 22:
4426
4421
  parsedBody = parsedOutput.body;
4427
- $metadata = deserializeMetadata(output);
4428
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4429
- response = new __BaseException({
4430
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4431
- $fault: "client",
4432
- $metadata: $metadata,
4422
+ throwDefaultError({
4423
+ output: output,
4424
+ parsedBody: parsedBody.Error,
4425
+ exceptionCtor: __BaseException,
4426
+ errorCode: errorCode,
4433
4427
  });
4434
- throw __decorateServiceException(response, parsedBody.Error);
4428
+ _d.label = 23;
4429
+ case 23: return [2];
4435
4430
  }
4436
4431
  });
4437
4432
  }); };
@@ -4454,7 +4449,7 @@ export var deserializeAws_queryModifyUserCommand = function (output, context) {
4454
4449
  });
4455
4450
  }); };
4456
4451
  var deserializeAws_queryModifyUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4457
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4452
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4458
4453
  var _c;
4459
4454
  return __generator(this, function (_d) {
4460
4455
  switch (_d.label) {
@@ -4491,14 +4486,14 @@ var deserializeAws_queryModifyUserCommandError = function (output, context) { re
4491
4486
  case 11: throw _d.sent();
4492
4487
  case 12:
4493
4488
  parsedBody = parsedOutput.body;
4494
- $metadata = deserializeMetadata(output);
4495
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4496
- response = new __BaseException({
4497
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4498
- $fault: "client",
4499
- $metadata: $metadata,
4489
+ throwDefaultError({
4490
+ output: output,
4491
+ parsedBody: parsedBody.Error,
4492
+ exceptionCtor: __BaseException,
4493
+ errorCode: errorCode,
4500
4494
  });
4501
- throw __decorateServiceException(response, parsedBody.Error);
4495
+ _d.label = 13;
4496
+ case 13: return [2];
4502
4497
  }
4503
4498
  });
4504
4499
  }); };
@@ -4521,7 +4516,7 @@ export var deserializeAws_queryModifyUserGroupCommand = function (output, contex
4521
4516
  });
4522
4517
  }); };
4523
4518
  var deserializeAws_queryModifyUserGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4524
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4519
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4525
4520
  var _c;
4526
4521
  return __generator(this, function (_d) {
4527
4522
  switch (_d.label) {
@@ -4570,14 +4565,14 @@ var deserializeAws_queryModifyUserGroupCommandError = function (output, context)
4570
4565
  case 17: throw _d.sent();
4571
4566
  case 18:
4572
4567
  parsedBody = parsedOutput.body;
4573
- $metadata = deserializeMetadata(output);
4574
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4575
- response = new __BaseException({
4576
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4577
- $fault: "client",
4578
- $metadata: $metadata,
4568
+ throwDefaultError({
4569
+ output: output,
4570
+ parsedBody: parsedBody.Error,
4571
+ exceptionCtor: __BaseException,
4572
+ errorCode: errorCode,
4579
4573
  });
4580
- throw __decorateServiceException(response, parsedBody.Error);
4574
+ _d.label = 19;
4575
+ case 19: return [2];
4581
4576
  }
4582
4577
  });
4583
4578
  }); };
@@ -4600,7 +4595,7 @@ export var deserializeAws_queryPurchaseReservedCacheNodesOfferingCommand = funct
4600
4595
  });
4601
4596
  }); };
4602
4597
  var deserializeAws_queryPurchaseReservedCacheNodesOfferingCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4603
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4598
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4604
4599
  var _c;
4605
4600
  return __generator(this, function (_d) {
4606
4601
  switch (_d.label) {
@@ -4641,14 +4636,14 @@ var deserializeAws_queryPurchaseReservedCacheNodesOfferingCommandError = functio
4641
4636
  case 13: throw _d.sent();
4642
4637
  case 14:
4643
4638
  parsedBody = parsedOutput.body;
4644
- $metadata = deserializeMetadata(output);
4645
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4646
- response = new __BaseException({
4647
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4648
- $fault: "client",
4649
- $metadata: $metadata,
4639
+ throwDefaultError({
4640
+ output: output,
4641
+ parsedBody: parsedBody.Error,
4642
+ exceptionCtor: __BaseException,
4643
+ errorCode: errorCode,
4650
4644
  });
4651
- throw __decorateServiceException(response, parsedBody.Error);
4645
+ _d.label = 15;
4646
+ case 15: return [2];
4652
4647
  }
4653
4648
  });
4654
4649
  }); };
@@ -4671,7 +4666,7 @@ export var deserializeAws_queryRebalanceSlotsInGlobalReplicationGroupCommand = f
4671
4666
  });
4672
4667
  }); };
4673
4668
  var deserializeAws_queryRebalanceSlotsInGlobalReplicationGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4674
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4669
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4675
4670
  var _c;
4676
4671
  return __generator(this, function (_d) {
4677
4672
  switch (_d.label) {
@@ -4700,14 +4695,14 @@ var deserializeAws_queryRebalanceSlotsInGlobalReplicationGroupCommandError = fun
4700
4695
  case 7: throw _d.sent();
4701
4696
  case 8:
4702
4697
  parsedBody = parsedOutput.body;
4703
- $metadata = deserializeMetadata(output);
4704
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4705
- response = new __BaseException({
4706
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4707
- $fault: "client",
4708
- $metadata: $metadata,
4698
+ throwDefaultError({
4699
+ output: output,
4700
+ parsedBody: parsedBody.Error,
4701
+ exceptionCtor: __BaseException,
4702
+ errorCode: errorCode,
4709
4703
  });
4710
- throw __decorateServiceException(response, parsedBody.Error);
4704
+ _d.label = 9;
4705
+ case 9: return [2];
4711
4706
  }
4712
4707
  });
4713
4708
  }); };
@@ -4730,7 +4725,7 @@ export var deserializeAws_queryRebootCacheClusterCommand = function (output, con
4730
4725
  });
4731
4726
  }); };
4732
4727
  var deserializeAws_queryRebootCacheClusterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4733
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4728
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4734
4729
  var _c;
4735
4730
  return __generator(this, function (_d) {
4736
4731
  switch (_d.label) {
@@ -4755,14 +4750,14 @@ var deserializeAws_queryRebootCacheClusterCommandError = function (output, conte
4755
4750
  case 5: throw _d.sent();
4756
4751
  case 6:
4757
4752
  parsedBody = parsedOutput.body;
4758
- $metadata = deserializeMetadata(output);
4759
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4760
- response = new __BaseException({
4761
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4762
- $fault: "client",
4763
- $metadata: $metadata,
4753
+ throwDefaultError({
4754
+ output: output,
4755
+ parsedBody: parsedBody.Error,
4756
+ exceptionCtor: __BaseException,
4757
+ errorCode: errorCode,
4764
4758
  });
4765
- throw __decorateServiceException(response, parsedBody.Error);
4759
+ _d.label = 7;
4760
+ case 7: return [2];
4766
4761
  }
4767
4762
  });
4768
4763
  }); };
@@ -4785,7 +4780,7 @@ export var deserializeAws_queryRemoveTagsFromResourceCommand = function (output,
4785
4780
  });
4786
4781
  }); };
4787
4782
  var deserializeAws_queryRemoveTagsFromResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4788
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4783
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4789
4784
  var _c;
4790
4785
  return __generator(this, function (_d) {
4791
4786
  switch (_d.label) {
@@ -4850,14 +4845,14 @@ var deserializeAws_queryRemoveTagsFromResourceCommandError = function (output, c
4850
4845
  case 25: throw _d.sent();
4851
4846
  case 26:
4852
4847
  parsedBody = parsedOutput.body;
4853
- $metadata = deserializeMetadata(output);
4854
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4855
- response = new __BaseException({
4856
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4857
- $fault: "client",
4858
- $metadata: $metadata,
4848
+ throwDefaultError({
4849
+ output: output,
4850
+ parsedBody: parsedBody.Error,
4851
+ exceptionCtor: __BaseException,
4852
+ errorCode: errorCode,
4859
4853
  });
4860
- throw __decorateServiceException(response, parsedBody.Error);
4854
+ _d.label = 27;
4855
+ case 27: return [2];
4861
4856
  }
4862
4857
  });
4863
4858
  }); };
@@ -4880,7 +4875,7 @@ export var deserializeAws_queryResetCacheParameterGroupCommand = function (outpu
4880
4875
  });
4881
4876
  }); };
4882
4877
  var deserializeAws_queryResetCacheParameterGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4883
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4878
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4884
4879
  var _c;
4885
4880
  return __generator(this, function (_d) {
4886
4881
  switch (_d.label) {
@@ -4917,14 +4912,14 @@ var deserializeAws_queryResetCacheParameterGroupCommandError = function (output,
4917
4912
  case 11: throw _d.sent();
4918
4913
  case 12:
4919
4914
  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,
4915
+ throwDefaultError({
4916
+ output: output,
4917
+ parsedBody: parsedBody.Error,
4918
+ exceptionCtor: __BaseException,
4919
+ errorCode: errorCode,
4926
4920
  });
4927
- throw __decorateServiceException(response, parsedBody.Error);
4921
+ _d.label = 13;
4922
+ case 13: return [2];
4928
4923
  }
4929
4924
  });
4930
4925
  }); };
@@ -4947,7 +4942,7 @@ export var deserializeAws_queryRevokeCacheSecurityGroupIngressCommand = function
4947
4942
  });
4948
4943
  }); };
4949
4944
  var deserializeAws_queryRevokeCacheSecurityGroupIngressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4950
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
4945
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4951
4946
  var _c;
4952
4947
  return __generator(this, function (_d) {
4953
4948
  switch (_d.label) {
@@ -4984,14 +4979,14 @@ var deserializeAws_queryRevokeCacheSecurityGroupIngressCommandError = function (
4984
4979
  case 11: throw _d.sent();
4985
4980
  case 12:
4986
4981
  parsedBody = parsedOutput.body;
4987
- $metadata = deserializeMetadata(output);
4988
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4989
- response = new __BaseException({
4990
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4991
- $fault: "client",
4992
- $metadata: $metadata,
4982
+ throwDefaultError({
4983
+ output: output,
4984
+ parsedBody: parsedBody.Error,
4985
+ exceptionCtor: __BaseException,
4986
+ errorCode: errorCode,
4993
4987
  });
4994
- throw __decorateServiceException(response, parsedBody.Error);
4988
+ _d.label = 13;
4989
+ case 13: return [2];
4995
4990
  }
4996
4991
  });
4997
4992
  }); };
@@ -5014,7 +5009,7 @@ export var deserializeAws_queryStartMigrationCommand = function (output, context
5014
5009
  });
5015
5010
  }); };
5016
5011
  var deserializeAws_queryStartMigrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5017
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5012
+ var parsedOutput, _a, errorCode, _b, parsedBody;
5018
5013
  var _c;
5019
5014
  return __generator(this, function (_d) {
5020
5015
  switch (_d.label) {
@@ -5047,14 +5042,14 @@ var deserializeAws_queryStartMigrationCommandError = function (output, context)
5047
5042
  case 9: throw _d.sent();
5048
5043
  case 10:
5049
5044
  parsedBody = parsedOutput.body;
5050
- $metadata = deserializeMetadata(output);
5051
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5052
- response = new __BaseException({
5053
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
5054
- $fault: "client",
5055
- $metadata: $metadata,
5045
+ throwDefaultError({
5046
+ output: output,
5047
+ parsedBody: parsedBody.Error,
5048
+ exceptionCtor: __BaseException,
5049
+ errorCode: errorCode,
5056
5050
  });
5057
- throw __decorateServiceException(response, parsedBody.Error);
5051
+ _d.label = 11;
5052
+ case 11: return [2];
5058
5053
  }
5059
5054
  });
5060
5055
  }); };
@@ -5077,7 +5072,7 @@ export var deserializeAws_queryTestFailoverCommand = function (output, context)
5077
5072
  });
5078
5073
  }); };
5079
5074
  var deserializeAws_queryTestFailoverCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5080
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5075
+ var parsedOutput, _a, errorCode, _b, parsedBody;
5081
5076
  var _c;
5082
5077
  return __generator(this, function (_d) {
5083
5078
  switch (_d.label) {
@@ -5130,14 +5125,14 @@ var deserializeAws_queryTestFailoverCommandError = function (output, context) {
5130
5125
  case 19: throw _d.sent();
5131
5126
  case 20:
5132
5127
  parsedBody = parsedOutput.body;
5133
- $metadata = deserializeMetadata(output);
5134
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5135
- response = new __BaseException({
5136
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
5137
- $fault: "client",
5138
- $metadata: $metadata,
5128
+ throwDefaultError({
5129
+ output: output,
5130
+ parsedBody: parsedBody.Error,
5131
+ exceptionCtor: __BaseException,
5132
+ errorCode: errorCode,
5139
5133
  });
5140
- throw __decorateServiceException(response, parsedBody.Error);
5134
+ _d.label = 21;
5135
+ case 21: return [2];
5141
5136
  }
5142
5137
  });
5143
5138
  }); };
@@ -5746,10 +5741,10 @@ var deserializeAws_queryUserQuotaExceededFaultResponse = function (parsedOutput,
5746
5741
  }); };
5747
5742
  var serializeAws_queryAddTagsToResourceMessage = function (input, context) {
5748
5743
  var entries = {};
5749
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
5744
+ if (input.ResourceName != null) {
5750
5745
  entries["ResourceName"] = input.ResourceName;
5751
5746
  }
5752
- if (input.Tags !== undefined && input.Tags !== null) {
5747
+ if (input.Tags != null) {
5753
5748
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5754
5749
  Object.entries(memberEntries).forEach(function (_a) {
5755
5750
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5761,13 +5756,13 @@ var serializeAws_queryAddTagsToResourceMessage = function (input, context) {
5761
5756
  };
5762
5757
  var serializeAws_queryAuthorizeCacheSecurityGroupIngressMessage = function (input, context) {
5763
5758
  var entries = {};
5764
- if (input.CacheSecurityGroupName !== undefined && input.CacheSecurityGroupName !== null) {
5759
+ if (input.CacheSecurityGroupName != null) {
5765
5760
  entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName;
5766
5761
  }
5767
- if (input.EC2SecurityGroupName !== undefined && input.EC2SecurityGroupName !== null) {
5762
+ if (input.EC2SecurityGroupName != null) {
5768
5763
  entries["EC2SecurityGroupName"] = input.EC2SecurityGroupName;
5769
5764
  }
5770
- if (input.EC2SecurityGroupOwnerId !== undefined && input.EC2SecurityGroupOwnerId !== null) {
5765
+ if (input.EC2SecurityGroupOwnerId != null) {
5771
5766
  entries["EC2SecurityGroupOwnerId"] = input.EC2SecurityGroupOwnerId;
5772
5767
  }
5773
5768
  return entries;
@@ -5797,7 +5792,7 @@ var serializeAws_queryAvailabilityZonesList = function (input, context) {
5797
5792
  };
5798
5793
  var serializeAws_queryBatchApplyUpdateActionMessage = function (input, context) {
5799
5794
  var entries = {};
5800
- if (input.ReplicationGroupIds !== undefined && input.ReplicationGroupIds !== null) {
5795
+ if (input.ReplicationGroupIds != null) {
5801
5796
  var memberEntries = serializeAws_queryReplicationGroupIdList(input.ReplicationGroupIds, context);
5802
5797
  Object.entries(memberEntries).forEach(function (_a) {
5803
5798
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5805,7 +5800,7 @@ var serializeAws_queryBatchApplyUpdateActionMessage = function (input, context)
5805
5800
  entries[loc] = value;
5806
5801
  });
5807
5802
  }
5808
- if (input.CacheClusterIds !== undefined && input.CacheClusterIds !== null) {
5803
+ if (input.CacheClusterIds != null) {
5809
5804
  var memberEntries = serializeAws_queryCacheClusterIdList(input.CacheClusterIds, context);
5810
5805
  Object.entries(memberEntries).forEach(function (_a) {
5811
5806
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5813,14 +5808,14 @@ var serializeAws_queryBatchApplyUpdateActionMessage = function (input, context)
5813
5808
  entries[loc] = value;
5814
5809
  });
5815
5810
  }
5816
- if (input.ServiceUpdateName !== undefined && input.ServiceUpdateName !== null) {
5811
+ if (input.ServiceUpdateName != null) {
5817
5812
  entries["ServiceUpdateName"] = input.ServiceUpdateName;
5818
5813
  }
5819
5814
  return entries;
5820
5815
  };
5821
5816
  var serializeAws_queryBatchStopUpdateActionMessage = function (input, context) {
5822
5817
  var entries = {};
5823
- if (input.ReplicationGroupIds !== undefined && input.ReplicationGroupIds !== null) {
5818
+ if (input.ReplicationGroupIds != null) {
5824
5819
  var memberEntries = serializeAws_queryReplicationGroupIdList(input.ReplicationGroupIds, context);
5825
5820
  Object.entries(memberEntries).forEach(function (_a) {
5826
5821
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5828,7 +5823,7 @@ var serializeAws_queryBatchStopUpdateActionMessage = function (input, context) {
5828
5823
  entries[loc] = value;
5829
5824
  });
5830
5825
  }
5831
- if (input.CacheClusterIds !== undefined && input.CacheClusterIds !== null) {
5826
+ if (input.CacheClusterIds != null) {
5832
5827
  var memberEntries = serializeAws_queryCacheClusterIdList(input.CacheClusterIds, context);
5833
5828
  Object.entries(memberEntries).forEach(function (_a) {
5834
5829
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5836,7 +5831,7 @@ var serializeAws_queryBatchStopUpdateActionMessage = function (input, context) {
5836
5831
  entries[loc] = value;
5837
5832
  });
5838
5833
  }
5839
- if (input.ServiceUpdateName !== undefined && input.ServiceUpdateName !== null) {
5834
+ if (input.ServiceUpdateName != null) {
5840
5835
  entries["ServiceUpdateName"] = input.ServiceUpdateName;
5841
5836
  }
5842
5837
  return entries;
@@ -5912,30 +5907,30 @@ var serializeAws_queryCacheSecurityGroupNameList = function (input, context) {
5912
5907
  };
5913
5908
  var serializeAws_queryCloudWatchLogsDestinationDetails = function (input, context) {
5914
5909
  var entries = {};
5915
- if (input.LogGroup !== undefined && input.LogGroup !== null) {
5910
+ if (input.LogGroup != null) {
5916
5911
  entries["LogGroup"] = input.LogGroup;
5917
5912
  }
5918
5913
  return entries;
5919
5914
  };
5920
5915
  var serializeAws_queryCompleteMigrationMessage = function (input, context) {
5921
5916
  var entries = {};
5922
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
5917
+ if (input.ReplicationGroupId != null) {
5923
5918
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
5924
5919
  }
5925
- if (input.Force !== undefined && input.Force !== null) {
5920
+ if (input.Force != null) {
5926
5921
  entries["Force"] = input.Force;
5927
5922
  }
5928
5923
  return entries;
5929
5924
  };
5930
5925
  var serializeAws_queryConfigureShard = function (input, context) {
5931
5926
  var entries = {};
5932
- if (input.NodeGroupId !== undefined && input.NodeGroupId !== null) {
5927
+ if (input.NodeGroupId != null) {
5933
5928
  entries["NodeGroupId"] = input.NodeGroupId;
5934
5929
  }
5935
- if (input.NewReplicaCount !== undefined && input.NewReplicaCount !== null) {
5930
+ if (input.NewReplicaCount != null) {
5936
5931
  entries["NewReplicaCount"] = input.NewReplicaCount;
5937
5932
  }
5938
- if (input.PreferredAvailabilityZones !== undefined && input.PreferredAvailabilityZones !== null) {
5933
+ if (input.PreferredAvailabilityZones != null) {
5939
5934
  var memberEntries = serializeAws_queryPreferredAvailabilityZoneList(input.PreferredAvailabilityZones, context);
5940
5935
  Object.entries(memberEntries).forEach(function (_a) {
5941
5936
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5943,7 +5938,7 @@ var serializeAws_queryConfigureShard = function (input, context) {
5943
5938
  entries[loc] = value;
5944
5939
  });
5945
5940
  }
5946
- if (input.PreferredOutpostArns !== undefined && input.PreferredOutpostArns !== null) {
5941
+ if (input.PreferredOutpostArns != null) {
5947
5942
  var memberEntries = serializeAws_queryPreferredOutpostArnList(input.PreferredOutpostArns, context);
5948
5943
  Object.entries(memberEntries).forEach(function (_a) {
5949
5944
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5955,19 +5950,19 @@ var serializeAws_queryConfigureShard = function (input, context) {
5955
5950
  };
5956
5951
  var serializeAws_queryCopySnapshotMessage = function (input, context) {
5957
5952
  var entries = {};
5958
- if (input.SourceSnapshotName !== undefined && input.SourceSnapshotName !== null) {
5953
+ if (input.SourceSnapshotName != null) {
5959
5954
  entries["SourceSnapshotName"] = input.SourceSnapshotName;
5960
5955
  }
5961
- if (input.TargetSnapshotName !== undefined && input.TargetSnapshotName !== null) {
5956
+ if (input.TargetSnapshotName != null) {
5962
5957
  entries["TargetSnapshotName"] = input.TargetSnapshotName;
5963
5958
  }
5964
- if (input.TargetBucket !== undefined && input.TargetBucket !== null) {
5959
+ if (input.TargetBucket != null) {
5965
5960
  entries["TargetBucket"] = input.TargetBucket;
5966
5961
  }
5967
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
5962
+ if (input.KmsKeyId != null) {
5968
5963
  entries["KmsKeyId"] = input.KmsKeyId;
5969
5964
  }
5970
- if (input.Tags !== undefined && input.Tags !== null) {
5965
+ if (input.Tags != null) {
5971
5966
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
5972
5967
  Object.entries(memberEntries).forEach(function (_a) {
5973
5968
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5979,19 +5974,19 @@ var serializeAws_queryCopySnapshotMessage = function (input, context) {
5979
5974
  };
5980
5975
  var serializeAws_queryCreateCacheClusterMessage = function (input, context) {
5981
5976
  var entries = {};
5982
- if (input.CacheClusterId !== undefined && input.CacheClusterId !== null) {
5977
+ if (input.CacheClusterId != null) {
5983
5978
  entries["CacheClusterId"] = input.CacheClusterId;
5984
5979
  }
5985
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
5980
+ if (input.ReplicationGroupId != null) {
5986
5981
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
5987
5982
  }
5988
- if (input.AZMode !== undefined && input.AZMode !== null) {
5983
+ if (input.AZMode != null) {
5989
5984
  entries["AZMode"] = input.AZMode;
5990
5985
  }
5991
- if (input.PreferredAvailabilityZone !== undefined && input.PreferredAvailabilityZone !== null) {
5986
+ if (input.PreferredAvailabilityZone != null) {
5992
5987
  entries["PreferredAvailabilityZone"] = input.PreferredAvailabilityZone;
5993
5988
  }
5994
- if (input.PreferredAvailabilityZones !== undefined && input.PreferredAvailabilityZones !== null) {
5989
+ if (input.PreferredAvailabilityZones != null) {
5995
5990
  var memberEntries = serializeAws_queryPreferredAvailabilityZoneList(input.PreferredAvailabilityZones, context);
5996
5991
  Object.entries(memberEntries).forEach(function (_a) {
5997
5992
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5999,25 +5994,25 @@ var serializeAws_queryCreateCacheClusterMessage = function (input, context) {
5999
5994
  entries[loc] = value;
6000
5995
  });
6001
5996
  }
6002
- if (input.NumCacheNodes !== undefined && input.NumCacheNodes !== null) {
5997
+ if (input.NumCacheNodes != null) {
6003
5998
  entries["NumCacheNodes"] = input.NumCacheNodes;
6004
5999
  }
6005
- if (input.CacheNodeType !== undefined && input.CacheNodeType !== null) {
6000
+ if (input.CacheNodeType != null) {
6006
6001
  entries["CacheNodeType"] = input.CacheNodeType;
6007
6002
  }
6008
- if (input.Engine !== undefined && input.Engine !== null) {
6003
+ if (input.Engine != null) {
6009
6004
  entries["Engine"] = input.Engine;
6010
6005
  }
6011
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
6006
+ if (input.EngineVersion != null) {
6012
6007
  entries["EngineVersion"] = input.EngineVersion;
6013
6008
  }
6014
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
6009
+ if (input.CacheParameterGroupName != null) {
6015
6010
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
6016
6011
  }
6017
- if (input.CacheSubnetGroupName !== undefined && input.CacheSubnetGroupName !== null) {
6012
+ if (input.CacheSubnetGroupName != null) {
6018
6013
  entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName;
6019
6014
  }
6020
- if (input.CacheSecurityGroupNames !== undefined && input.CacheSecurityGroupNames !== null) {
6015
+ if (input.CacheSecurityGroupNames != null) {
6021
6016
  var memberEntries = serializeAws_queryCacheSecurityGroupNameList(input.CacheSecurityGroupNames, context);
6022
6017
  Object.entries(memberEntries).forEach(function (_a) {
6023
6018
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6025,7 +6020,7 @@ var serializeAws_queryCreateCacheClusterMessage = function (input, context) {
6025
6020
  entries[loc] = value;
6026
6021
  });
6027
6022
  }
6028
- if (input.SecurityGroupIds !== undefined && input.SecurityGroupIds !== null) {
6023
+ if (input.SecurityGroupIds != null) {
6029
6024
  var memberEntries = serializeAws_querySecurityGroupIdsList(input.SecurityGroupIds, context);
6030
6025
  Object.entries(memberEntries).forEach(function (_a) {
6031
6026
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6033,7 +6028,7 @@ var serializeAws_queryCreateCacheClusterMessage = function (input, context) {
6033
6028
  entries[loc] = value;
6034
6029
  });
6035
6030
  }
6036
- if (input.Tags !== undefined && input.Tags !== null) {
6031
+ if (input.Tags != null) {
6037
6032
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6038
6033
  Object.entries(memberEntries).forEach(function (_a) {
6039
6034
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6041,7 +6036,7 @@ var serializeAws_queryCreateCacheClusterMessage = function (input, context) {
6041
6036
  entries[loc] = value;
6042
6037
  });
6043
6038
  }
6044
- if (input.SnapshotArns !== undefined && input.SnapshotArns !== null) {
6039
+ if (input.SnapshotArns != null) {
6045
6040
  var memberEntries = serializeAws_querySnapshotArnsList(input.SnapshotArns, context);
6046
6041
  Object.entries(memberEntries).forEach(function (_a) {
6047
6042
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6049,37 +6044,37 @@ var serializeAws_queryCreateCacheClusterMessage = function (input, context) {
6049
6044
  entries[loc] = value;
6050
6045
  });
6051
6046
  }
6052
- if (input.SnapshotName !== undefined && input.SnapshotName !== null) {
6047
+ if (input.SnapshotName != null) {
6053
6048
  entries["SnapshotName"] = input.SnapshotName;
6054
6049
  }
6055
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
6050
+ if (input.PreferredMaintenanceWindow != null) {
6056
6051
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
6057
6052
  }
6058
- if (input.Port !== undefined && input.Port !== null) {
6053
+ if (input.Port != null) {
6059
6054
  entries["Port"] = input.Port;
6060
6055
  }
6061
- if (input.NotificationTopicArn !== undefined && input.NotificationTopicArn !== null) {
6056
+ if (input.NotificationTopicArn != null) {
6062
6057
  entries["NotificationTopicArn"] = input.NotificationTopicArn;
6063
6058
  }
6064
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
6059
+ if (input.AutoMinorVersionUpgrade != null) {
6065
6060
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
6066
6061
  }
6067
- if (input.SnapshotRetentionLimit !== undefined && input.SnapshotRetentionLimit !== null) {
6062
+ if (input.SnapshotRetentionLimit != null) {
6068
6063
  entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit;
6069
6064
  }
6070
- if (input.SnapshotWindow !== undefined && input.SnapshotWindow !== null) {
6065
+ if (input.SnapshotWindow != null) {
6071
6066
  entries["SnapshotWindow"] = input.SnapshotWindow;
6072
6067
  }
6073
- if (input.AuthToken !== undefined && input.AuthToken !== null) {
6068
+ if (input.AuthToken != null) {
6074
6069
  entries["AuthToken"] = input.AuthToken;
6075
6070
  }
6076
- if (input.OutpostMode !== undefined && input.OutpostMode !== null) {
6071
+ if (input.OutpostMode != null) {
6077
6072
  entries["OutpostMode"] = input.OutpostMode;
6078
6073
  }
6079
- if (input.PreferredOutpostArn !== undefined && input.PreferredOutpostArn !== null) {
6074
+ if (input.PreferredOutpostArn != null) {
6080
6075
  entries["PreferredOutpostArn"] = input.PreferredOutpostArn;
6081
6076
  }
6082
- if (input.PreferredOutpostArns !== undefined && input.PreferredOutpostArns !== null) {
6077
+ if (input.PreferredOutpostArns != null) {
6083
6078
  var memberEntries = serializeAws_queryPreferredOutpostArnList(input.PreferredOutpostArns, context);
6084
6079
  Object.entries(memberEntries).forEach(function (_a) {
6085
6080
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6087,7 +6082,7 @@ var serializeAws_queryCreateCacheClusterMessage = function (input, context) {
6087
6082
  entries[loc] = value;
6088
6083
  });
6089
6084
  }
6090
- if (input.LogDeliveryConfigurations !== undefined && input.LogDeliveryConfigurations !== null) {
6085
+ if (input.LogDeliveryConfigurations != null) {
6091
6086
  var memberEntries = serializeAws_queryLogDeliveryConfigurationRequestList(input.LogDeliveryConfigurations, context);
6092
6087
  Object.entries(memberEntries).forEach(function (_a) {
6093
6088
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6095,23 +6090,23 @@ var serializeAws_queryCreateCacheClusterMessage = function (input, context) {
6095
6090
  entries[loc] = value;
6096
6091
  });
6097
6092
  }
6098
- if (input.TransitEncryptionEnabled !== undefined && input.TransitEncryptionEnabled !== null) {
6093
+ if (input.TransitEncryptionEnabled != null) {
6099
6094
  entries["TransitEncryptionEnabled"] = input.TransitEncryptionEnabled;
6100
6095
  }
6101
6096
  return entries;
6102
6097
  };
6103
6098
  var serializeAws_queryCreateCacheParameterGroupMessage = function (input, context) {
6104
6099
  var entries = {};
6105
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
6100
+ if (input.CacheParameterGroupName != null) {
6106
6101
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
6107
6102
  }
6108
- if (input.CacheParameterGroupFamily !== undefined && input.CacheParameterGroupFamily !== null) {
6103
+ if (input.CacheParameterGroupFamily != null) {
6109
6104
  entries["CacheParameterGroupFamily"] = input.CacheParameterGroupFamily;
6110
6105
  }
6111
- if (input.Description !== undefined && input.Description !== null) {
6106
+ if (input.Description != null) {
6112
6107
  entries["Description"] = input.Description;
6113
6108
  }
6114
- if (input.Tags !== undefined && input.Tags !== null) {
6109
+ if (input.Tags != null) {
6115
6110
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6116
6111
  Object.entries(memberEntries).forEach(function (_a) {
6117
6112
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6123,13 +6118,13 @@ var serializeAws_queryCreateCacheParameterGroupMessage = function (input, contex
6123
6118
  };
6124
6119
  var serializeAws_queryCreateCacheSecurityGroupMessage = function (input, context) {
6125
6120
  var entries = {};
6126
- if (input.CacheSecurityGroupName !== undefined && input.CacheSecurityGroupName !== null) {
6121
+ if (input.CacheSecurityGroupName != null) {
6127
6122
  entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName;
6128
6123
  }
6129
- if (input.Description !== undefined && input.Description !== null) {
6124
+ if (input.Description != null) {
6130
6125
  entries["Description"] = input.Description;
6131
6126
  }
6132
- if (input.Tags !== undefined && input.Tags !== null) {
6127
+ if (input.Tags != null) {
6133
6128
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6134
6129
  Object.entries(memberEntries).forEach(function (_a) {
6135
6130
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6141,13 +6136,13 @@ var serializeAws_queryCreateCacheSecurityGroupMessage = function (input, context
6141
6136
  };
6142
6137
  var serializeAws_queryCreateCacheSubnetGroupMessage = function (input, context) {
6143
6138
  var entries = {};
6144
- if (input.CacheSubnetGroupName !== undefined && input.CacheSubnetGroupName !== null) {
6139
+ if (input.CacheSubnetGroupName != null) {
6145
6140
  entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName;
6146
6141
  }
6147
- if (input.CacheSubnetGroupDescription !== undefined && input.CacheSubnetGroupDescription !== null) {
6142
+ if (input.CacheSubnetGroupDescription != null) {
6148
6143
  entries["CacheSubnetGroupDescription"] = input.CacheSubnetGroupDescription;
6149
6144
  }
6150
- if (input.SubnetIds !== undefined && input.SubnetIds !== null) {
6145
+ if (input.SubnetIds != null) {
6151
6146
  var memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
6152
6147
  Object.entries(memberEntries).forEach(function (_a) {
6153
6148
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6155,7 +6150,7 @@ var serializeAws_queryCreateCacheSubnetGroupMessage = function (input, context)
6155
6150
  entries[loc] = value;
6156
6151
  });
6157
6152
  }
6158
- if (input.Tags !== undefined && input.Tags !== null) {
6153
+ if (input.Tags != null) {
6159
6154
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6160
6155
  Object.entries(memberEntries).forEach(function (_a) {
6161
6156
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6167,41 +6162,41 @@ var serializeAws_queryCreateCacheSubnetGroupMessage = function (input, context)
6167
6162
  };
6168
6163
  var serializeAws_queryCreateGlobalReplicationGroupMessage = function (input, context) {
6169
6164
  var entries = {};
6170
- if (input.GlobalReplicationGroupIdSuffix !== undefined && input.GlobalReplicationGroupIdSuffix !== null) {
6165
+ if (input.GlobalReplicationGroupIdSuffix != null) {
6171
6166
  entries["GlobalReplicationGroupIdSuffix"] = input.GlobalReplicationGroupIdSuffix;
6172
6167
  }
6173
- if (input.GlobalReplicationGroupDescription !== undefined && input.GlobalReplicationGroupDescription !== null) {
6168
+ if (input.GlobalReplicationGroupDescription != null) {
6174
6169
  entries["GlobalReplicationGroupDescription"] = input.GlobalReplicationGroupDescription;
6175
6170
  }
6176
- if (input.PrimaryReplicationGroupId !== undefined && input.PrimaryReplicationGroupId !== null) {
6171
+ if (input.PrimaryReplicationGroupId != null) {
6177
6172
  entries["PrimaryReplicationGroupId"] = input.PrimaryReplicationGroupId;
6178
6173
  }
6179
6174
  return entries;
6180
6175
  };
6181
6176
  var serializeAws_queryCreateReplicationGroupMessage = function (input, context) {
6182
6177
  var entries = {};
6183
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
6178
+ if (input.ReplicationGroupId != null) {
6184
6179
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
6185
6180
  }
6186
- if (input.ReplicationGroupDescription !== undefined && input.ReplicationGroupDescription !== null) {
6181
+ if (input.ReplicationGroupDescription != null) {
6187
6182
  entries["ReplicationGroupDescription"] = input.ReplicationGroupDescription;
6188
6183
  }
6189
- if (input.GlobalReplicationGroupId !== undefined && input.GlobalReplicationGroupId !== null) {
6184
+ if (input.GlobalReplicationGroupId != null) {
6190
6185
  entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId;
6191
6186
  }
6192
- if (input.PrimaryClusterId !== undefined && input.PrimaryClusterId !== null) {
6187
+ if (input.PrimaryClusterId != null) {
6193
6188
  entries["PrimaryClusterId"] = input.PrimaryClusterId;
6194
6189
  }
6195
- if (input.AutomaticFailoverEnabled !== undefined && input.AutomaticFailoverEnabled !== null) {
6190
+ if (input.AutomaticFailoverEnabled != null) {
6196
6191
  entries["AutomaticFailoverEnabled"] = input.AutomaticFailoverEnabled;
6197
6192
  }
6198
- if (input.MultiAZEnabled !== undefined && input.MultiAZEnabled !== null) {
6193
+ if (input.MultiAZEnabled != null) {
6199
6194
  entries["MultiAZEnabled"] = input.MultiAZEnabled;
6200
6195
  }
6201
- if (input.NumCacheClusters !== undefined && input.NumCacheClusters !== null) {
6196
+ if (input.NumCacheClusters != null) {
6202
6197
  entries["NumCacheClusters"] = input.NumCacheClusters;
6203
6198
  }
6204
- if (input.PreferredCacheClusterAZs !== undefined && input.PreferredCacheClusterAZs !== null) {
6199
+ if (input.PreferredCacheClusterAZs != null) {
6205
6200
  var memberEntries = serializeAws_queryAvailabilityZonesList(input.PreferredCacheClusterAZs, context);
6206
6201
  Object.entries(memberEntries).forEach(function (_a) {
6207
6202
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6209,13 +6204,13 @@ var serializeAws_queryCreateReplicationGroupMessage = function (input, context)
6209
6204
  entries[loc] = value;
6210
6205
  });
6211
6206
  }
6212
- if (input.NumNodeGroups !== undefined && input.NumNodeGroups !== null) {
6207
+ if (input.NumNodeGroups != null) {
6213
6208
  entries["NumNodeGroups"] = input.NumNodeGroups;
6214
6209
  }
6215
- if (input.ReplicasPerNodeGroup !== undefined && input.ReplicasPerNodeGroup !== null) {
6210
+ if (input.ReplicasPerNodeGroup != null) {
6216
6211
  entries["ReplicasPerNodeGroup"] = input.ReplicasPerNodeGroup;
6217
6212
  }
6218
- if (input.NodeGroupConfiguration !== undefined && input.NodeGroupConfiguration !== null) {
6213
+ if (input.NodeGroupConfiguration != null) {
6219
6214
  var memberEntries = serializeAws_queryNodeGroupConfigurationList(input.NodeGroupConfiguration, context);
6220
6215
  Object.entries(memberEntries).forEach(function (_a) {
6221
6216
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6223,22 +6218,22 @@ var serializeAws_queryCreateReplicationGroupMessage = function (input, context)
6223
6218
  entries[loc] = value;
6224
6219
  });
6225
6220
  }
6226
- if (input.CacheNodeType !== undefined && input.CacheNodeType !== null) {
6221
+ if (input.CacheNodeType != null) {
6227
6222
  entries["CacheNodeType"] = input.CacheNodeType;
6228
6223
  }
6229
- if (input.Engine !== undefined && input.Engine !== null) {
6224
+ if (input.Engine != null) {
6230
6225
  entries["Engine"] = input.Engine;
6231
6226
  }
6232
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
6227
+ if (input.EngineVersion != null) {
6233
6228
  entries["EngineVersion"] = input.EngineVersion;
6234
6229
  }
6235
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
6230
+ if (input.CacheParameterGroupName != null) {
6236
6231
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
6237
6232
  }
6238
- if (input.CacheSubnetGroupName !== undefined && input.CacheSubnetGroupName !== null) {
6233
+ if (input.CacheSubnetGroupName != null) {
6239
6234
  entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName;
6240
6235
  }
6241
- if (input.CacheSecurityGroupNames !== undefined && input.CacheSecurityGroupNames !== null) {
6236
+ if (input.CacheSecurityGroupNames != null) {
6242
6237
  var memberEntries = serializeAws_queryCacheSecurityGroupNameList(input.CacheSecurityGroupNames, context);
6243
6238
  Object.entries(memberEntries).forEach(function (_a) {
6244
6239
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6246,7 +6241,7 @@ var serializeAws_queryCreateReplicationGroupMessage = function (input, context)
6246
6241
  entries[loc] = value;
6247
6242
  });
6248
6243
  }
6249
- if (input.SecurityGroupIds !== undefined && input.SecurityGroupIds !== null) {
6244
+ if (input.SecurityGroupIds != null) {
6250
6245
  var memberEntries = serializeAws_querySecurityGroupIdsList(input.SecurityGroupIds, context);
6251
6246
  Object.entries(memberEntries).forEach(function (_a) {
6252
6247
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6254,7 +6249,7 @@ var serializeAws_queryCreateReplicationGroupMessage = function (input, context)
6254
6249
  entries[loc] = value;
6255
6250
  });
6256
6251
  }
6257
- if (input.Tags !== undefined && input.Tags !== null) {
6252
+ if (input.Tags != null) {
6258
6253
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6259
6254
  Object.entries(memberEntries).forEach(function (_a) {
6260
6255
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6262,7 +6257,7 @@ var serializeAws_queryCreateReplicationGroupMessage = function (input, context)
6262
6257
  entries[loc] = value;
6263
6258
  });
6264
6259
  }
6265
- if (input.SnapshotArns !== undefined && input.SnapshotArns !== null) {
6260
+ if (input.SnapshotArns != null) {
6266
6261
  var memberEntries = serializeAws_querySnapshotArnsList(input.SnapshotArns, context);
6267
6262
  Object.entries(memberEntries).forEach(function (_a) {
6268
6263
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6270,40 +6265,40 @@ var serializeAws_queryCreateReplicationGroupMessage = function (input, context)
6270
6265
  entries[loc] = value;
6271
6266
  });
6272
6267
  }
6273
- if (input.SnapshotName !== undefined && input.SnapshotName !== null) {
6268
+ if (input.SnapshotName != null) {
6274
6269
  entries["SnapshotName"] = input.SnapshotName;
6275
6270
  }
6276
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
6271
+ if (input.PreferredMaintenanceWindow != null) {
6277
6272
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
6278
6273
  }
6279
- if (input.Port !== undefined && input.Port !== null) {
6274
+ if (input.Port != null) {
6280
6275
  entries["Port"] = input.Port;
6281
6276
  }
6282
- if (input.NotificationTopicArn !== undefined && input.NotificationTopicArn !== null) {
6277
+ if (input.NotificationTopicArn != null) {
6283
6278
  entries["NotificationTopicArn"] = input.NotificationTopicArn;
6284
6279
  }
6285
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
6280
+ if (input.AutoMinorVersionUpgrade != null) {
6286
6281
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
6287
6282
  }
6288
- if (input.SnapshotRetentionLimit !== undefined && input.SnapshotRetentionLimit !== null) {
6283
+ if (input.SnapshotRetentionLimit != null) {
6289
6284
  entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit;
6290
6285
  }
6291
- if (input.SnapshotWindow !== undefined && input.SnapshotWindow !== null) {
6286
+ if (input.SnapshotWindow != null) {
6292
6287
  entries["SnapshotWindow"] = input.SnapshotWindow;
6293
6288
  }
6294
- if (input.AuthToken !== undefined && input.AuthToken !== null) {
6289
+ if (input.AuthToken != null) {
6295
6290
  entries["AuthToken"] = input.AuthToken;
6296
6291
  }
6297
- if (input.TransitEncryptionEnabled !== undefined && input.TransitEncryptionEnabled !== null) {
6292
+ if (input.TransitEncryptionEnabled != null) {
6298
6293
  entries["TransitEncryptionEnabled"] = input.TransitEncryptionEnabled;
6299
6294
  }
6300
- if (input.AtRestEncryptionEnabled !== undefined && input.AtRestEncryptionEnabled !== null) {
6295
+ if (input.AtRestEncryptionEnabled != null) {
6301
6296
  entries["AtRestEncryptionEnabled"] = input.AtRestEncryptionEnabled;
6302
6297
  }
6303
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
6298
+ if (input.KmsKeyId != null) {
6304
6299
  entries["KmsKeyId"] = input.KmsKeyId;
6305
6300
  }
6306
- if (input.UserGroupIds !== undefined && input.UserGroupIds !== null) {
6301
+ if (input.UserGroupIds != null) {
6307
6302
  var memberEntries = serializeAws_queryUserGroupIdListInput(input.UserGroupIds, context);
6308
6303
  Object.entries(memberEntries).forEach(function (_a) {
6309
6304
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6311,7 +6306,7 @@ var serializeAws_queryCreateReplicationGroupMessage = function (input, context)
6311
6306
  entries[loc] = value;
6312
6307
  });
6313
6308
  }
6314
- if (input.LogDeliveryConfigurations !== undefined && input.LogDeliveryConfigurations !== null) {
6309
+ if (input.LogDeliveryConfigurations != null) {
6315
6310
  var memberEntries = serializeAws_queryLogDeliveryConfigurationRequestList(input.LogDeliveryConfigurations, context);
6316
6311
  Object.entries(memberEntries).forEach(function (_a) {
6317
6312
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6319,26 +6314,26 @@ var serializeAws_queryCreateReplicationGroupMessage = function (input, context)
6319
6314
  entries[loc] = value;
6320
6315
  });
6321
6316
  }
6322
- if (input.DataTieringEnabled !== undefined && input.DataTieringEnabled !== null) {
6317
+ if (input.DataTieringEnabled != null) {
6323
6318
  entries["DataTieringEnabled"] = input.DataTieringEnabled;
6324
6319
  }
6325
6320
  return entries;
6326
6321
  };
6327
6322
  var serializeAws_queryCreateSnapshotMessage = function (input, context) {
6328
6323
  var entries = {};
6329
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
6324
+ if (input.ReplicationGroupId != null) {
6330
6325
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
6331
6326
  }
6332
- if (input.CacheClusterId !== undefined && input.CacheClusterId !== null) {
6327
+ if (input.CacheClusterId != null) {
6333
6328
  entries["CacheClusterId"] = input.CacheClusterId;
6334
6329
  }
6335
- if (input.SnapshotName !== undefined && input.SnapshotName !== null) {
6330
+ if (input.SnapshotName != null) {
6336
6331
  entries["SnapshotName"] = input.SnapshotName;
6337
6332
  }
6338
- if (input.KmsKeyId !== undefined && input.KmsKeyId !== null) {
6333
+ if (input.KmsKeyId != null) {
6339
6334
  entries["KmsKeyId"] = input.KmsKeyId;
6340
6335
  }
6341
- if (input.Tags !== undefined && input.Tags !== null) {
6336
+ if (input.Tags != null) {
6342
6337
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6343
6338
  Object.entries(memberEntries).forEach(function (_a) {
6344
6339
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6350,13 +6345,13 @@ var serializeAws_queryCreateSnapshotMessage = function (input, context) {
6350
6345
  };
6351
6346
  var serializeAws_queryCreateUserGroupMessage = function (input, context) {
6352
6347
  var entries = {};
6353
- if (input.UserGroupId !== undefined && input.UserGroupId !== null) {
6348
+ if (input.UserGroupId != null) {
6354
6349
  entries["UserGroupId"] = input.UserGroupId;
6355
6350
  }
6356
- if (input.Engine !== undefined && input.Engine !== null) {
6351
+ if (input.Engine != null) {
6357
6352
  entries["Engine"] = input.Engine;
6358
6353
  }
6359
- if (input.UserIds !== undefined && input.UserIds !== null) {
6354
+ if (input.UserIds != null) {
6360
6355
  var memberEntries = serializeAws_queryUserIdListInput(input.UserIds, context);
6361
6356
  Object.entries(memberEntries).forEach(function (_a) {
6362
6357
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6364,7 +6359,7 @@ var serializeAws_queryCreateUserGroupMessage = function (input, context) {
6364
6359
  entries[loc] = value;
6365
6360
  });
6366
6361
  }
6367
- if (input.Tags !== undefined && input.Tags !== null) {
6362
+ if (input.Tags != null) {
6368
6363
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6369
6364
  Object.entries(memberEntries).forEach(function (_a) {
6370
6365
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6376,16 +6371,16 @@ var serializeAws_queryCreateUserGroupMessage = function (input, context) {
6376
6371
  };
6377
6372
  var serializeAws_queryCreateUserMessage = function (input, context) {
6378
6373
  var entries = {};
6379
- if (input.UserId !== undefined && input.UserId !== null) {
6374
+ if (input.UserId != null) {
6380
6375
  entries["UserId"] = input.UserId;
6381
6376
  }
6382
- if (input.UserName !== undefined && input.UserName !== null) {
6377
+ if (input.UserName != null) {
6383
6378
  entries["UserName"] = input.UserName;
6384
6379
  }
6385
- if (input.Engine !== undefined && input.Engine !== null) {
6380
+ if (input.Engine != null) {
6386
6381
  entries["Engine"] = input.Engine;
6387
6382
  }
6388
- if (input.Passwords !== undefined && input.Passwords !== null) {
6383
+ if (input.Passwords != null) {
6389
6384
  var memberEntries = serializeAws_queryPasswordListInput(input.Passwords, context);
6390
6385
  Object.entries(memberEntries).forEach(function (_a) {
6391
6386
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6393,13 +6388,13 @@ var serializeAws_queryCreateUserMessage = function (input, context) {
6393
6388
  entries[loc] = value;
6394
6389
  });
6395
6390
  }
6396
- if (input.AccessString !== undefined && input.AccessString !== null) {
6391
+ if (input.AccessString != null) {
6397
6392
  entries["AccessString"] = input.AccessString;
6398
6393
  }
6399
- if (input.NoPasswordRequired !== undefined && input.NoPasswordRequired !== null) {
6394
+ if (input.NoPasswordRequired != null) {
6400
6395
  entries["NoPasswordRequired"] = input.NoPasswordRequired;
6401
6396
  }
6402
- if (input.Tags !== undefined && input.Tags !== null) {
6397
+ if (input.Tags != null) {
6403
6398
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
6404
6399
  Object.entries(memberEntries).forEach(function (_a) {
6405
6400
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6411,10 +6406,10 @@ var serializeAws_queryCreateUserMessage = function (input, context) {
6411
6406
  };
6412
6407
  var serializeAws_queryCustomerNodeEndpoint = function (input, context) {
6413
6408
  var entries = {};
6414
- if (input.Address !== undefined && input.Address !== null) {
6409
+ if (input.Address != null) {
6415
6410
  entries["Address"] = input.Address;
6416
6411
  }
6417
- if (input.Port !== undefined && input.Port !== null) {
6412
+ if (input.Port != null) {
6418
6413
  entries["Port"] = input.Port;
6419
6414
  }
6420
6415
  return entries;
@@ -6448,13 +6443,13 @@ var serializeAws_queryCustomerNodeEndpointList = function (input, context) {
6448
6443
  };
6449
6444
  var serializeAws_queryDecreaseNodeGroupsInGlobalReplicationGroupMessage = function (input, context) {
6450
6445
  var entries = {};
6451
- if (input.GlobalReplicationGroupId !== undefined && input.GlobalReplicationGroupId !== null) {
6446
+ if (input.GlobalReplicationGroupId != null) {
6452
6447
  entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId;
6453
6448
  }
6454
- if (input.NodeGroupCount !== undefined && input.NodeGroupCount !== null) {
6449
+ if (input.NodeGroupCount != null) {
6455
6450
  entries["NodeGroupCount"] = input.NodeGroupCount;
6456
6451
  }
6457
- if (input.GlobalNodeGroupsToRemove !== undefined && input.GlobalNodeGroupsToRemove !== null) {
6452
+ if (input.GlobalNodeGroupsToRemove != null) {
6458
6453
  var memberEntries = serializeAws_queryGlobalNodeGroupIdList(input.GlobalNodeGroupsToRemove, context);
6459
6454
  Object.entries(memberEntries).forEach(function (_a) {
6460
6455
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6462,7 +6457,7 @@ var serializeAws_queryDecreaseNodeGroupsInGlobalReplicationGroupMessage = functi
6462
6457
  entries[loc] = value;
6463
6458
  });
6464
6459
  }
6465
- if (input.GlobalNodeGroupsToRetain !== undefined && input.GlobalNodeGroupsToRetain !== null) {
6460
+ if (input.GlobalNodeGroupsToRetain != null) {
6466
6461
  var memberEntries = serializeAws_queryGlobalNodeGroupIdList(input.GlobalNodeGroupsToRetain, context);
6467
6462
  Object.entries(memberEntries).forEach(function (_a) {
6468
6463
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6470,20 +6465,20 @@ var serializeAws_queryDecreaseNodeGroupsInGlobalReplicationGroupMessage = functi
6470
6465
  entries[loc] = value;
6471
6466
  });
6472
6467
  }
6473
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
6468
+ if (input.ApplyImmediately != null) {
6474
6469
  entries["ApplyImmediately"] = input.ApplyImmediately;
6475
6470
  }
6476
6471
  return entries;
6477
6472
  };
6478
6473
  var serializeAws_queryDecreaseReplicaCountMessage = function (input, context) {
6479
6474
  var entries = {};
6480
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
6475
+ if (input.ReplicationGroupId != null) {
6481
6476
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
6482
6477
  }
6483
- if (input.NewReplicaCount !== undefined && input.NewReplicaCount !== null) {
6478
+ if (input.NewReplicaCount != null) {
6484
6479
  entries["NewReplicaCount"] = input.NewReplicaCount;
6485
6480
  }
6486
- if (input.ReplicaConfiguration !== undefined && input.ReplicaConfiguration !== null) {
6481
+ if (input.ReplicaConfiguration != null) {
6487
6482
  var memberEntries = serializeAws_queryReplicaConfigurationList(input.ReplicaConfiguration, context);
6488
6483
  Object.entries(memberEntries).forEach(function (_a) {
6489
6484
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6491,7 +6486,7 @@ var serializeAws_queryDecreaseReplicaCountMessage = function (input, context) {
6491
6486
  entries[loc] = value;
6492
6487
  });
6493
6488
  }
6494
- if (input.ReplicasToRemove !== undefined && input.ReplicasToRemove !== null) {
6489
+ if (input.ReplicasToRemove != null) {
6495
6490
  var memberEntries = serializeAws_queryRemoveReplicasList(input.ReplicasToRemove, context);
6496
6491
  Object.entries(memberEntries).forEach(function (_a) {
6497
6492
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6499,309 +6494,308 @@ var serializeAws_queryDecreaseReplicaCountMessage = function (input, context) {
6499
6494
  entries[loc] = value;
6500
6495
  });
6501
6496
  }
6502
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
6497
+ if (input.ApplyImmediately != null) {
6503
6498
  entries["ApplyImmediately"] = input.ApplyImmediately;
6504
6499
  }
6505
6500
  return entries;
6506
6501
  };
6507
6502
  var serializeAws_queryDeleteCacheClusterMessage = function (input, context) {
6508
6503
  var entries = {};
6509
- if (input.CacheClusterId !== undefined && input.CacheClusterId !== null) {
6504
+ if (input.CacheClusterId != null) {
6510
6505
  entries["CacheClusterId"] = input.CacheClusterId;
6511
6506
  }
6512
- if (input.FinalSnapshotIdentifier !== undefined && input.FinalSnapshotIdentifier !== null) {
6507
+ if (input.FinalSnapshotIdentifier != null) {
6513
6508
  entries["FinalSnapshotIdentifier"] = input.FinalSnapshotIdentifier;
6514
6509
  }
6515
6510
  return entries;
6516
6511
  };
6517
6512
  var serializeAws_queryDeleteCacheParameterGroupMessage = function (input, context) {
6518
6513
  var entries = {};
6519
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
6514
+ if (input.CacheParameterGroupName != null) {
6520
6515
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
6521
6516
  }
6522
6517
  return entries;
6523
6518
  };
6524
6519
  var serializeAws_queryDeleteCacheSecurityGroupMessage = function (input, context) {
6525
6520
  var entries = {};
6526
- if (input.CacheSecurityGroupName !== undefined && input.CacheSecurityGroupName !== null) {
6521
+ if (input.CacheSecurityGroupName != null) {
6527
6522
  entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName;
6528
6523
  }
6529
6524
  return entries;
6530
6525
  };
6531
6526
  var serializeAws_queryDeleteCacheSubnetGroupMessage = function (input, context) {
6532
6527
  var entries = {};
6533
- if (input.CacheSubnetGroupName !== undefined && input.CacheSubnetGroupName !== null) {
6528
+ if (input.CacheSubnetGroupName != null) {
6534
6529
  entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName;
6535
6530
  }
6536
6531
  return entries;
6537
6532
  };
6538
6533
  var serializeAws_queryDeleteGlobalReplicationGroupMessage = function (input, context) {
6539
6534
  var entries = {};
6540
- if (input.GlobalReplicationGroupId !== undefined && input.GlobalReplicationGroupId !== null) {
6535
+ if (input.GlobalReplicationGroupId != null) {
6541
6536
  entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId;
6542
6537
  }
6543
- if (input.RetainPrimaryReplicationGroup !== undefined && input.RetainPrimaryReplicationGroup !== null) {
6538
+ if (input.RetainPrimaryReplicationGroup != null) {
6544
6539
  entries["RetainPrimaryReplicationGroup"] = input.RetainPrimaryReplicationGroup;
6545
6540
  }
6546
6541
  return entries;
6547
6542
  };
6548
6543
  var serializeAws_queryDeleteReplicationGroupMessage = function (input, context) {
6549
6544
  var entries = {};
6550
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
6545
+ if (input.ReplicationGroupId != null) {
6551
6546
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
6552
6547
  }
6553
- if (input.RetainPrimaryCluster !== undefined && input.RetainPrimaryCluster !== null) {
6548
+ if (input.RetainPrimaryCluster != null) {
6554
6549
  entries["RetainPrimaryCluster"] = input.RetainPrimaryCluster;
6555
6550
  }
6556
- if (input.FinalSnapshotIdentifier !== undefined && input.FinalSnapshotIdentifier !== null) {
6551
+ if (input.FinalSnapshotIdentifier != null) {
6557
6552
  entries["FinalSnapshotIdentifier"] = input.FinalSnapshotIdentifier;
6558
6553
  }
6559
6554
  return entries;
6560
6555
  };
6561
6556
  var serializeAws_queryDeleteSnapshotMessage = function (input, context) {
6562
6557
  var entries = {};
6563
- if (input.SnapshotName !== undefined && input.SnapshotName !== null) {
6558
+ if (input.SnapshotName != null) {
6564
6559
  entries["SnapshotName"] = input.SnapshotName;
6565
6560
  }
6566
6561
  return entries;
6567
6562
  };
6568
6563
  var serializeAws_queryDeleteUserGroupMessage = function (input, context) {
6569
6564
  var entries = {};
6570
- if (input.UserGroupId !== undefined && input.UserGroupId !== null) {
6565
+ if (input.UserGroupId != null) {
6571
6566
  entries["UserGroupId"] = input.UserGroupId;
6572
6567
  }
6573
6568
  return entries;
6574
6569
  };
6575
6570
  var serializeAws_queryDeleteUserMessage = function (input, context) {
6576
6571
  var entries = {};
6577
- if (input.UserId !== undefined && input.UserId !== null) {
6572
+ if (input.UserId != null) {
6578
6573
  entries["UserId"] = input.UserId;
6579
6574
  }
6580
6575
  return entries;
6581
6576
  };
6582
6577
  var serializeAws_queryDescribeCacheClustersMessage = function (input, context) {
6583
6578
  var entries = {};
6584
- if (input.CacheClusterId !== undefined && input.CacheClusterId !== null) {
6579
+ if (input.CacheClusterId != null) {
6585
6580
  entries["CacheClusterId"] = input.CacheClusterId;
6586
6581
  }
6587
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6582
+ if (input.MaxRecords != null) {
6588
6583
  entries["MaxRecords"] = input.MaxRecords;
6589
6584
  }
6590
- if (input.Marker !== undefined && input.Marker !== null) {
6585
+ if (input.Marker != null) {
6591
6586
  entries["Marker"] = input.Marker;
6592
6587
  }
6593
- if (input.ShowCacheNodeInfo !== undefined && input.ShowCacheNodeInfo !== null) {
6588
+ if (input.ShowCacheNodeInfo != null) {
6594
6589
  entries["ShowCacheNodeInfo"] = input.ShowCacheNodeInfo;
6595
6590
  }
6596
- if (input.ShowCacheClustersNotInReplicationGroups !== undefined &&
6597
- input.ShowCacheClustersNotInReplicationGroups !== null) {
6591
+ if (input.ShowCacheClustersNotInReplicationGroups != null) {
6598
6592
  entries["ShowCacheClustersNotInReplicationGroups"] = input.ShowCacheClustersNotInReplicationGroups;
6599
6593
  }
6600
6594
  return entries;
6601
6595
  };
6602
6596
  var serializeAws_queryDescribeCacheEngineVersionsMessage = function (input, context) {
6603
6597
  var entries = {};
6604
- if (input.Engine !== undefined && input.Engine !== null) {
6598
+ if (input.Engine != null) {
6605
6599
  entries["Engine"] = input.Engine;
6606
6600
  }
6607
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
6601
+ if (input.EngineVersion != null) {
6608
6602
  entries["EngineVersion"] = input.EngineVersion;
6609
6603
  }
6610
- if (input.CacheParameterGroupFamily !== undefined && input.CacheParameterGroupFamily !== null) {
6604
+ if (input.CacheParameterGroupFamily != null) {
6611
6605
  entries["CacheParameterGroupFamily"] = input.CacheParameterGroupFamily;
6612
6606
  }
6613
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6607
+ if (input.MaxRecords != null) {
6614
6608
  entries["MaxRecords"] = input.MaxRecords;
6615
6609
  }
6616
- if (input.Marker !== undefined && input.Marker !== null) {
6610
+ if (input.Marker != null) {
6617
6611
  entries["Marker"] = input.Marker;
6618
6612
  }
6619
- if (input.DefaultOnly !== undefined && input.DefaultOnly !== null) {
6613
+ if (input.DefaultOnly != null) {
6620
6614
  entries["DefaultOnly"] = input.DefaultOnly;
6621
6615
  }
6622
6616
  return entries;
6623
6617
  };
6624
6618
  var serializeAws_queryDescribeCacheParameterGroupsMessage = function (input, context) {
6625
6619
  var entries = {};
6626
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
6620
+ if (input.CacheParameterGroupName != null) {
6627
6621
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
6628
6622
  }
6629
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6623
+ if (input.MaxRecords != null) {
6630
6624
  entries["MaxRecords"] = input.MaxRecords;
6631
6625
  }
6632
- if (input.Marker !== undefined && input.Marker !== null) {
6626
+ if (input.Marker != null) {
6633
6627
  entries["Marker"] = input.Marker;
6634
6628
  }
6635
6629
  return entries;
6636
6630
  };
6637
6631
  var serializeAws_queryDescribeCacheParametersMessage = function (input, context) {
6638
6632
  var entries = {};
6639
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
6633
+ if (input.CacheParameterGroupName != null) {
6640
6634
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
6641
6635
  }
6642
- if (input.Source !== undefined && input.Source !== null) {
6636
+ if (input.Source != null) {
6643
6637
  entries["Source"] = input.Source;
6644
6638
  }
6645
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6639
+ if (input.MaxRecords != null) {
6646
6640
  entries["MaxRecords"] = input.MaxRecords;
6647
6641
  }
6648
- if (input.Marker !== undefined && input.Marker !== null) {
6642
+ if (input.Marker != null) {
6649
6643
  entries["Marker"] = input.Marker;
6650
6644
  }
6651
6645
  return entries;
6652
6646
  };
6653
6647
  var serializeAws_queryDescribeCacheSecurityGroupsMessage = function (input, context) {
6654
6648
  var entries = {};
6655
- if (input.CacheSecurityGroupName !== undefined && input.CacheSecurityGroupName !== null) {
6649
+ if (input.CacheSecurityGroupName != null) {
6656
6650
  entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName;
6657
6651
  }
6658
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6652
+ if (input.MaxRecords != null) {
6659
6653
  entries["MaxRecords"] = input.MaxRecords;
6660
6654
  }
6661
- if (input.Marker !== undefined && input.Marker !== null) {
6655
+ if (input.Marker != null) {
6662
6656
  entries["Marker"] = input.Marker;
6663
6657
  }
6664
6658
  return entries;
6665
6659
  };
6666
6660
  var serializeAws_queryDescribeCacheSubnetGroupsMessage = function (input, context) {
6667
6661
  var entries = {};
6668
- if (input.CacheSubnetGroupName !== undefined && input.CacheSubnetGroupName !== null) {
6662
+ if (input.CacheSubnetGroupName != null) {
6669
6663
  entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName;
6670
6664
  }
6671
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6665
+ if (input.MaxRecords != null) {
6672
6666
  entries["MaxRecords"] = input.MaxRecords;
6673
6667
  }
6674
- if (input.Marker !== undefined && input.Marker !== null) {
6668
+ if (input.Marker != null) {
6675
6669
  entries["Marker"] = input.Marker;
6676
6670
  }
6677
6671
  return entries;
6678
6672
  };
6679
6673
  var serializeAws_queryDescribeEngineDefaultParametersMessage = function (input, context) {
6680
6674
  var entries = {};
6681
- if (input.CacheParameterGroupFamily !== undefined && input.CacheParameterGroupFamily !== null) {
6675
+ if (input.CacheParameterGroupFamily != null) {
6682
6676
  entries["CacheParameterGroupFamily"] = input.CacheParameterGroupFamily;
6683
6677
  }
6684
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6678
+ if (input.MaxRecords != null) {
6685
6679
  entries["MaxRecords"] = input.MaxRecords;
6686
6680
  }
6687
- if (input.Marker !== undefined && input.Marker !== null) {
6681
+ if (input.Marker != null) {
6688
6682
  entries["Marker"] = input.Marker;
6689
6683
  }
6690
6684
  return entries;
6691
6685
  };
6692
6686
  var serializeAws_queryDescribeEventsMessage = function (input, context) {
6693
6687
  var entries = {};
6694
- if (input.SourceIdentifier !== undefined && input.SourceIdentifier !== null) {
6688
+ if (input.SourceIdentifier != null) {
6695
6689
  entries["SourceIdentifier"] = input.SourceIdentifier;
6696
6690
  }
6697
- if (input.SourceType !== undefined && input.SourceType !== null) {
6691
+ if (input.SourceType != null) {
6698
6692
  entries["SourceType"] = input.SourceType;
6699
6693
  }
6700
- if (input.StartTime !== undefined && input.StartTime !== null) {
6694
+ if (input.StartTime != null) {
6701
6695
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
6702
6696
  }
6703
- if (input.EndTime !== undefined && input.EndTime !== null) {
6697
+ if (input.EndTime != null) {
6704
6698
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
6705
6699
  }
6706
- if (input.Duration !== undefined && input.Duration !== null) {
6700
+ if (input.Duration != null) {
6707
6701
  entries["Duration"] = input.Duration;
6708
6702
  }
6709
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6703
+ if (input.MaxRecords != null) {
6710
6704
  entries["MaxRecords"] = input.MaxRecords;
6711
6705
  }
6712
- if (input.Marker !== undefined && input.Marker !== null) {
6706
+ if (input.Marker != null) {
6713
6707
  entries["Marker"] = input.Marker;
6714
6708
  }
6715
6709
  return entries;
6716
6710
  };
6717
6711
  var serializeAws_queryDescribeGlobalReplicationGroupsMessage = function (input, context) {
6718
6712
  var entries = {};
6719
- if (input.GlobalReplicationGroupId !== undefined && input.GlobalReplicationGroupId !== null) {
6713
+ if (input.GlobalReplicationGroupId != null) {
6720
6714
  entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId;
6721
6715
  }
6722
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6716
+ if (input.MaxRecords != null) {
6723
6717
  entries["MaxRecords"] = input.MaxRecords;
6724
6718
  }
6725
- if (input.Marker !== undefined && input.Marker !== null) {
6719
+ if (input.Marker != null) {
6726
6720
  entries["Marker"] = input.Marker;
6727
6721
  }
6728
- if (input.ShowMemberInfo !== undefined && input.ShowMemberInfo !== null) {
6722
+ if (input.ShowMemberInfo != null) {
6729
6723
  entries["ShowMemberInfo"] = input.ShowMemberInfo;
6730
6724
  }
6731
6725
  return entries;
6732
6726
  };
6733
6727
  var serializeAws_queryDescribeReplicationGroupsMessage = function (input, context) {
6734
6728
  var entries = {};
6735
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
6729
+ if (input.ReplicationGroupId != null) {
6736
6730
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
6737
6731
  }
6738
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6732
+ if (input.MaxRecords != null) {
6739
6733
  entries["MaxRecords"] = input.MaxRecords;
6740
6734
  }
6741
- if (input.Marker !== undefined && input.Marker !== null) {
6735
+ if (input.Marker != null) {
6742
6736
  entries["Marker"] = input.Marker;
6743
6737
  }
6744
6738
  return entries;
6745
6739
  };
6746
6740
  var serializeAws_queryDescribeReservedCacheNodesMessage = function (input, context) {
6747
6741
  var entries = {};
6748
- if (input.ReservedCacheNodeId !== undefined && input.ReservedCacheNodeId !== null) {
6742
+ if (input.ReservedCacheNodeId != null) {
6749
6743
  entries["ReservedCacheNodeId"] = input.ReservedCacheNodeId;
6750
6744
  }
6751
- if (input.ReservedCacheNodesOfferingId !== undefined && input.ReservedCacheNodesOfferingId !== null) {
6745
+ if (input.ReservedCacheNodesOfferingId != null) {
6752
6746
  entries["ReservedCacheNodesOfferingId"] = input.ReservedCacheNodesOfferingId;
6753
6747
  }
6754
- if (input.CacheNodeType !== undefined && input.CacheNodeType !== null) {
6748
+ if (input.CacheNodeType != null) {
6755
6749
  entries["CacheNodeType"] = input.CacheNodeType;
6756
6750
  }
6757
- if (input.Duration !== undefined && input.Duration !== null) {
6751
+ if (input.Duration != null) {
6758
6752
  entries["Duration"] = input.Duration;
6759
6753
  }
6760
- if (input.ProductDescription !== undefined && input.ProductDescription !== null) {
6754
+ if (input.ProductDescription != null) {
6761
6755
  entries["ProductDescription"] = input.ProductDescription;
6762
6756
  }
6763
- if (input.OfferingType !== undefined && input.OfferingType !== null) {
6757
+ if (input.OfferingType != null) {
6764
6758
  entries["OfferingType"] = input.OfferingType;
6765
6759
  }
6766
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6760
+ if (input.MaxRecords != null) {
6767
6761
  entries["MaxRecords"] = input.MaxRecords;
6768
6762
  }
6769
- if (input.Marker !== undefined && input.Marker !== null) {
6763
+ if (input.Marker != null) {
6770
6764
  entries["Marker"] = input.Marker;
6771
6765
  }
6772
6766
  return entries;
6773
6767
  };
6774
6768
  var serializeAws_queryDescribeReservedCacheNodesOfferingsMessage = function (input, context) {
6775
6769
  var entries = {};
6776
- if (input.ReservedCacheNodesOfferingId !== undefined && input.ReservedCacheNodesOfferingId !== null) {
6770
+ if (input.ReservedCacheNodesOfferingId != null) {
6777
6771
  entries["ReservedCacheNodesOfferingId"] = input.ReservedCacheNodesOfferingId;
6778
6772
  }
6779
- if (input.CacheNodeType !== undefined && input.CacheNodeType !== null) {
6773
+ if (input.CacheNodeType != null) {
6780
6774
  entries["CacheNodeType"] = input.CacheNodeType;
6781
6775
  }
6782
- if (input.Duration !== undefined && input.Duration !== null) {
6776
+ if (input.Duration != null) {
6783
6777
  entries["Duration"] = input.Duration;
6784
6778
  }
6785
- if (input.ProductDescription !== undefined && input.ProductDescription !== null) {
6779
+ if (input.ProductDescription != null) {
6786
6780
  entries["ProductDescription"] = input.ProductDescription;
6787
6781
  }
6788
- if (input.OfferingType !== undefined && input.OfferingType !== null) {
6782
+ if (input.OfferingType != null) {
6789
6783
  entries["OfferingType"] = input.OfferingType;
6790
6784
  }
6791
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6785
+ if (input.MaxRecords != null) {
6792
6786
  entries["MaxRecords"] = input.MaxRecords;
6793
6787
  }
6794
- if (input.Marker !== undefined && input.Marker !== null) {
6788
+ if (input.Marker != null) {
6795
6789
  entries["Marker"] = input.Marker;
6796
6790
  }
6797
6791
  return entries;
6798
6792
  };
6799
6793
  var serializeAws_queryDescribeServiceUpdatesMessage = function (input, context) {
6800
6794
  var entries = {};
6801
- if (input.ServiceUpdateName !== undefined && input.ServiceUpdateName !== null) {
6795
+ if (input.ServiceUpdateName != null) {
6802
6796
  entries["ServiceUpdateName"] = input.ServiceUpdateName;
6803
6797
  }
6804
- if (input.ServiceUpdateStatus !== undefined && input.ServiceUpdateStatus !== null) {
6798
+ if (input.ServiceUpdateStatus != null) {
6805
6799
  var memberEntries = serializeAws_queryServiceUpdateStatusList(input.ServiceUpdateStatus, context);
6806
6800
  Object.entries(memberEntries).forEach(function (_a) {
6807
6801
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6809,45 +6803,45 @@ var serializeAws_queryDescribeServiceUpdatesMessage = function (input, context)
6809
6803
  entries[loc] = value;
6810
6804
  });
6811
6805
  }
6812
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6806
+ if (input.MaxRecords != null) {
6813
6807
  entries["MaxRecords"] = input.MaxRecords;
6814
6808
  }
6815
- if (input.Marker !== undefined && input.Marker !== null) {
6809
+ if (input.Marker != null) {
6816
6810
  entries["Marker"] = input.Marker;
6817
6811
  }
6818
6812
  return entries;
6819
6813
  };
6820
6814
  var serializeAws_queryDescribeSnapshotsMessage = function (input, context) {
6821
6815
  var entries = {};
6822
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
6816
+ if (input.ReplicationGroupId != null) {
6823
6817
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
6824
6818
  }
6825
- if (input.CacheClusterId !== undefined && input.CacheClusterId !== null) {
6819
+ if (input.CacheClusterId != null) {
6826
6820
  entries["CacheClusterId"] = input.CacheClusterId;
6827
6821
  }
6828
- if (input.SnapshotName !== undefined && input.SnapshotName !== null) {
6822
+ if (input.SnapshotName != null) {
6829
6823
  entries["SnapshotName"] = input.SnapshotName;
6830
6824
  }
6831
- if (input.SnapshotSource !== undefined && input.SnapshotSource !== null) {
6825
+ if (input.SnapshotSource != null) {
6832
6826
  entries["SnapshotSource"] = input.SnapshotSource;
6833
6827
  }
6834
- if (input.Marker !== undefined && input.Marker !== null) {
6828
+ if (input.Marker != null) {
6835
6829
  entries["Marker"] = input.Marker;
6836
6830
  }
6837
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6831
+ if (input.MaxRecords != null) {
6838
6832
  entries["MaxRecords"] = input.MaxRecords;
6839
6833
  }
6840
- if (input.ShowNodeGroupConfig !== undefined && input.ShowNodeGroupConfig !== null) {
6834
+ if (input.ShowNodeGroupConfig != null) {
6841
6835
  entries["ShowNodeGroupConfig"] = input.ShowNodeGroupConfig;
6842
6836
  }
6843
6837
  return entries;
6844
6838
  };
6845
6839
  var serializeAws_queryDescribeUpdateActionsMessage = function (input, context) {
6846
6840
  var entries = {};
6847
- if (input.ServiceUpdateName !== undefined && input.ServiceUpdateName !== null) {
6841
+ if (input.ServiceUpdateName != null) {
6848
6842
  entries["ServiceUpdateName"] = input.ServiceUpdateName;
6849
6843
  }
6850
- if (input.ReplicationGroupIds !== undefined && input.ReplicationGroupIds !== null) {
6844
+ if (input.ReplicationGroupIds != null) {
6851
6845
  var memberEntries = serializeAws_queryReplicationGroupIdList(input.ReplicationGroupIds, context);
6852
6846
  Object.entries(memberEntries).forEach(function (_a) {
6853
6847
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6855,7 +6849,7 @@ var serializeAws_queryDescribeUpdateActionsMessage = function (input, context) {
6855
6849
  entries[loc] = value;
6856
6850
  });
6857
6851
  }
6858
- if (input.CacheClusterIds !== undefined && input.CacheClusterIds !== null) {
6852
+ if (input.CacheClusterIds != null) {
6859
6853
  var memberEntries = serializeAws_queryCacheClusterIdList(input.CacheClusterIds, context);
6860
6854
  Object.entries(memberEntries).forEach(function (_a) {
6861
6855
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6863,10 +6857,10 @@ var serializeAws_queryDescribeUpdateActionsMessage = function (input, context) {
6863
6857
  entries[loc] = value;
6864
6858
  });
6865
6859
  }
6866
- if (input.Engine !== undefined && input.Engine !== null) {
6860
+ if (input.Engine != null) {
6867
6861
  entries["Engine"] = input.Engine;
6868
6862
  }
6869
- if (input.ServiceUpdateStatus !== undefined && input.ServiceUpdateStatus !== null) {
6863
+ if (input.ServiceUpdateStatus != null) {
6870
6864
  var memberEntries = serializeAws_queryServiceUpdateStatusList(input.ServiceUpdateStatus, context);
6871
6865
  Object.entries(memberEntries).forEach(function (_a) {
6872
6866
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6874,7 +6868,7 @@ var serializeAws_queryDescribeUpdateActionsMessage = function (input, context) {
6874
6868
  entries[loc] = value;
6875
6869
  });
6876
6870
  }
6877
- if (input.ServiceUpdateTimeRange !== undefined && input.ServiceUpdateTimeRange !== null) {
6871
+ if (input.ServiceUpdateTimeRange != null) {
6878
6872
  var memberEntries = serializeAws_queryTimeRangeFilter(input.ServiceUpdateTimeRange, context);
6879
6873
  Object.entries(memberEntries).forEach(function (_a) {
6880
6874
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6882,7 +6876,7 @@ var serializeAws_queryDescribeUpdateActionsMessage = function (input, context) {
6882
6876
  entries[loc] = value;
6883
6877
  });
6884
6878
  }
6885
- if (input.UpdateActionStatus !== undefined && input.UpdateActionStatus !== null) {
6879
+ if (input.UpdateActionStatus != null) {
6886
6880
  var memberEntries = serializeAws_queryUpdateActionStatusList(input.UpdateActionStatus, context);
6887
6881
  Object.entries(memberEntries).forEach(function (_a) {
6888
6882
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6890,39 +6884,39 @@ var serializeAws_queryDescribeUpdateActionsMessage = function (input, context) {
6890
6884
  entries[loc] = value;
6891
6885
  });
6892
6886
  }
6893
- if (input.ShowNodeLevelUpdateStatus !== undefined && input.ShowNodeLevelUpdateStatus !== null) {
6887
+ if (input.ShowNodeLevelUpdateStatus != null) {
6894
6888
  entries["ShowNodeLevelUpdateStatus"] = input.ShowNodeLevelUpdateStatus;
6895
6889
  }
6896
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6890
+ if (input.MaxRecords != null) {
6897
6891
  entries["MaxRecords"] = input.MaxRecords;
6898
6892
  }
6899
- if (input.Marker !== undefined && input.Marker !== null) {
6893
+ if (input.Marker != null) {
6900
6894
  entries["Marker"] = input.Marker;
6901
6895
  }
6902
6896
  return entries;
6903
6897
  };
6904
6898
  var serializeAws_queryDescribeUserGroupsMessage = function (input, context) {
6905
6899
  var entries = {};
6906
- if (input.UserGroupId !== undefined && input.UserGroupId !== null) {
6900
+ if (input.UserGroupId != null) {
6907
6901
  entries["UserGroupId"] = input.UserGroupId;
6908
6902
  }
6909
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6903
+ if (input.MaxRecords != null) {
6910
6904
  entries["MaxRecords"] = input.MaxRecords;
6911
6905
  }
6912
- if (input.Marker !== undefined && input.Marker !== null) {
6906
+ if (input.Marker != null) {
6913
6907
  entries["Marker"] = input.Marker;
6914
6908
  }
6915
6909
  return entries;
6916
6910
  };
6917
6911
  var serializeAws_queryDescribeUsersMessage = function (input, context) {
6918
6912
  var entries = {};
6919
- if (input.Engine !== undefined && input.Engine !== null) {
6913
+ if (input.Engine != null) {
6920
6914
  entries["Engine"] = input.Engine;
6921
6915
  }
6922
- if (input.UserId !== undefined && input.UserId !== null) {
6916
+ if (input.UserId != null) {
6923
6917
  entries["UserId"] = input.UserId;
6924
6918
  }
6925
- if (input.Filters !== undefined && input.Filters !== null) {
6919
+ if (input.Filters != null) {
6926
6920
  var memberEntries = serializeAws_queryFilterList(input.Filters, context);
6927
6921
  Object.entries(memberEntries).forEach(function (_a) {
6928
6922
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6930,17 +6924,17 @@ var serializeAws_queryDescribeUsersMessage = function (input, context) {
6930
6924
  entries[loc] = value;
6931
6925
  });
6932
6926
  }
6933
- if (input.MaxRecords !== undefined && input.MaxRecords !== null) {
6927
+ if (input.MaxRecords != null) {
6934
6928
  entries["MaxRecords"] = input.MaxRecords;
6935
6929
  }
6936
- if (input.Marker !== undefined && input.Marker !== null) {
6930
+ if (input.Marker != null) {
6937
6931
  entries["Marker"] = input.Marker;
6938
6932
  }
6939
6933
  return entries;
6940
6934
  };
6941
6935
  var serializeAws_queryDestinationDetails = function (input, context) {
6942
6936
  var entries = {};
6943
- if (input.CloudWatchLogsDetails !== undefined && input.CloudWatchLogsDetails !== null) {
6937
+ if (input.CloudWatchLogsDetails != null) {
6944
6938
  var memberEntries = serializeAws_queryCloudWatchLogsDestinationDetails(input.CloudWatchLogsDetails, context);
6945
6939
  Object.entries(memberEntries).forEach(function (_a) {
6946
6940
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6948,7 +6942,7 @@ var serializeAws_queryDestinationDetails = function (input, context) {
6948
6942
  entries[loc] = value;
6949
6943
  });
6950
6944
  }
6951
- if (input.KinesisFirehoseDetails !== undefined && input.KinesisFirehoseDetails !== null) {
6945
+ if (input.KinesisFirehoseDetails != null) {
6952
6946
  var memberEntries = serializeAws_queryKinesisFirehoseDestinationDetails(input.KinesisFirehoseDetails, context);
6953
6947
  Object.entries(memberEntries).forEach(function (_a) {
6954
6948
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6960,36 +6954,36 @@ var serializeAws_queryDestinationDetails = function (input, context) {
6960
6954
  };
6961
6955
  var serializeAws_queryDisassociateGlobalReplicationGroupMessage = function (input, context) {
6962
6956
  var entries = {};
6963
- if (input.GlobalReplicationGroupId !== undefined && input.GlobalReplicationGroupId !== null) {
6957
+ if (input.GlobalReplicationGroupId != null) {
6964
6958
  entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId;
6965
6959
  }
6966
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
6960
+ if (input.ReplicationGroupId != null) {
6967
6961
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
6968
6962
  }
6969
- if (input.ReplicationGroupRegion !== undefined && input.ReplicationGroupRegion !== null) {
6963
+ if (input.ReplicationGroupRegion != null) {
6970
6964
  entries["ReplicationGroupRegion"] = input.ReplicationGroupRegion;
6971
6965
  }
6972
6966
  return entries;
6973
6967
  };
6974
6968
  var serializeAws_queryFailoverGlobalReplicationGroupMessage = function (input, context) {
6975
6969
  var entries = {};
6976
- if (input.GlobalReplicationGroupId !== undefined && input.GlobalReplicationGroupId !== null) {
6970
+ if (input.GlobalReplicationGroupId != null) {
6977
6971
  entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId;
6978
6972
  }
6979
- if (input.PrimaryRegion !== undefined && input.PrimaryRegion !== null) {
6973
+ if (input.PrimaryRegion != null) {
6980
6974
  entries["PrimaryRegion"] = input.PrimaryRegion;
6981
6975
  }
6982
- if (input.PrimaryReplicationGroupId !== undefined && input.PrimaryReplicationGroupId !== null) {
6976
+ if (input.PrimaryReplicationGroupId != null) {
6983
6977
  entries["PrimaryReplicationGroupId"] = input.PrimaryReplicationGroupId;
6984
6978
  }
6985
6979
  return entries;
6986
6980
  };
6987
6981
  var serializeAws_queryFilter = function (input, context) {
6988
6982
  var entries = {};
6989
- if (input.Name !== undefined && input.Name !== null) {
6983
+ if (input.Name != null) {
6990
6984
  entries["Name"] = input.Name;
6991
6985
  }
6992
- if (input.Values !== undefined && input.Values !== null) {
6986
+ if (input.Values != null) {
6993
6987
  var memberEntries = serializeAws_queryFilterValueList(input.Values, context);
6994
6988
  Object.entries(memberEntries).forEach(function (_a) {
6995
6989
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7074,13 +7068,13 @@ var serializeAws_queryGlobalNodeGroupIdList = function (input, context) {
7074
7068
  };
7075
7069
  var serializeAws_queryIncreaseNodeGroupsInGlobalReplicationGroupMessage = function (input, context) {
7076
7070
  var entries = {};
7077
- if (input.GlobalReplicationGroupId !== undefined && input.GlobalReplicationGroupId !== null) {
7071
+ if (input.GlobalReplicationGroupId != null) {
7078
7072
  entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId;
7079
7073
  }
7080
- if (input.NodeGroupCount !== undefined && input.NodeGroupCount !== null) {
7074
+ if (input.NodeGroupCount != null) {
7081
7075
  entries["NodeGroupCount"] = input.NodeGroupCount;
7082
7076
  }
7083
- if (input.RegionalConfigurations !== undefined && input.RegionalConfigurations !== null) {
7077
+ if (input.RegionalConfigurations != null) {
7084
7078
  var memberEntries = serializeAws_queryRegionalConfigurationList(input.RegionalConfigurations, context);
7085
7079
  Object.entries(memberEntries).forEach(function (_a) {
7086
7080
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7088,20 +7082,20 @@ var serializeAws_queryIncreaseNodeGroupsInGlobalReplicationGroupMessage = functi
7088
7082
  entries[loc] = value;
7089
7083
  });
7090
7084
  }
7091
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
7085
+ if (input.ApplyImmediately != null) {
7092
7086
  entries["ApplyImmediately"] = input.ApplyImmediately;
7093
7087
  }
7094
7088
  return entries;
7095
7089
  };
7096
7090
  var serializeAws_queryIncreaseReplicaCountMessage = function (input, context) {
7097
7091
  var entries = {};
7098
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
7092
+ if (input.ReplicationGroupId != null) {
7099
7093
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
7100
7094
  }
7101
- if (input.NewReplicaCount !== undefined && input.NewReplicaCount !== null) {
7095
+ if (input.NewReplicaCount != null) {
7102
7096
  entries["NewReplicaCount"] = input.NewReplicaCount;
7103
7097
  }
7104
- if (input.ReplicaConfiguration !== undefined && input.ReplicaConfiguration !== null) {
7098
+ if (input.ReplicaConfiguration != null) {
7105
7099
  var memberEntries = serializeAws_queryReplicaConfigurationList(input.ReplicaConfiguration, context);
7106
7100
  Object.entries(memberEntries).forEach(function (_a) {
7107
7101
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7109,7 +7103,7 @@ var serializeAws_queryIncreaseReplicaCountMessage = function (input, context) {
7109
7103
  entries[loc] = value;
7110
7104
  });
7111
7105
  }
7112
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
7106
+ if (input.ApplyImmediately != null) {
7113
7107
  entries["ApplyImmediately"] = input.ApplyImmediately;
7114
7108
  }
7115
7109
  return entries;
@@ -7139,37 +7133,37 @@ var serializeAws_queryKeyList = function (input, context) {
7139
7133
  };
7140
7134
  var serializeAws_queryKinesisFirehoseDestinationDetails = function (input, context) {
7141
7135
  var entries = {};
7142
- if (input.DeliveryStream !== undefined && input.DeliveryStream !== null) {
7136
+ if (input.DeliveryStream != null) {
7143
7137
  entries["DeliveryStream"] = input.DeliveryStream;
7144
7138
  }
7145
7139
  return entries;
7146
7140
  };
7147
7141
  var serializeAws_queryListAllowedNodeTypeModificationsMessage = function (input, context) {
7148
7142
  var entries = {};
7149
- if (input.CacheClusterId !== undefined && input.CacheClusterId !== null) {
7143
+ if (input.CacheClusterId != null) {
7150
7144
  entries["CacheClusterId"] = input.CacheClusterId;
7151
7145
  }
7152
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
7146
+ if (input.ReplicationGroupId != null) {
7153
7147
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
7154
7148
  }
7155
7149
  return entries;
7156
7150
  };
7157
7151
  var serializeAws_queryListTagsForResourceMessage = function (input, context) {
7158
7152
  var entries = {};
7159
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
7153
+ if (input.ResourceName != null) {
7160
7154
  entries["ResourceName"] = input.ResourceName;
7161
7155
  }
7162
7156
  return entries;
7163
7157
  };
7164
7158
  var serializeAws_queryLogDeliveryConfigurationRequest = function (input, context) {
7165
7159
  var entries = {};
7166
- if (input.LogType !== undefined && input.LogType !== null) {
7160
+ if (input.LogType != null) {
7167
7161
  entries["LogType"] = input.LogType;
7168
7162
  }
7169
- if (input.DestinationType !== undefined && input.DestinationType !== null) {
7163
+ if (input.DestinationType != null) {
7170
7164
  entries["DestinationType"] = input.DestinationType;
7171
7165
  }
7172
- if (input.DestinationDetails !== undefined && input.DestinationDetails !== null) {
7166
+ if (input.DestinationDetails != null) {
7173
7167
  var memberEntries = serializeAws_queryDestinationDetails(input.DestinationDetails, context);
7174
7168
  Object.entries(memberEntries).forEach(function (_a) {
7175
7169
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7177,10 +7171,10 @@ var serializeAws_queryLogDeliveryConfigurationRequest = function (input, context
7177
7171
  entries[loc] = value;
7178
7172
  });
7179
7173
  }
7180
- if (input.LogFormat !== undefined && input.LogFormat !== null) {
7174
+ if (input.LogFormat != null) {
7181
7175
  entries["LogFormat"] = input.LogFormat;
7182
7176
  }
7183
- if (input.Enabled !== undefined && input.Enabled !== null) {
7177
+ if (input.Enabled != null) {
7184
7178
  entries["Enabled"] = input.Enabled;
7185
7179
  }
7186
7180
  return entries;
@@ -7214,13 +7208,13 @@ var serializeAws_queryLogDeliveryConfigurationRequestList = function (input, con
7214
7208
  };
7215
7209
  var serializeAws_queryModifyCacheClusterMessage = function (input, context) {
7216
7210
  var entries = {};
7217
- if (input.CacheClusterId !== undefined && input.CacheClusterId !== null) {
7211
+ if (input.CacheClusterId != null) {
7218
7212
  entries["CacheClusterId"] = input.CacheClusterId;
7219
7213
  }
7220
- if (input.NumCacheNodes !== undefined && input.NumCacheNodes !== null) {
7214
+ if (input.NumCacheNodes != null) {
7221
7215
  entries["NumCacheNodes"] = input.NumCacheNodes;
7222
7216
  }
7223
- if (input.CacheNodeIdsToRemove !== undefined && input.CacheNodeIdsToRemove !== null) {
7217
+ if (input.CacheNodeIdsToRemove != null) {
7224
7218
  var memberEntries = serializeAws_queryCacheNodeIdsList(input.CacheNodeIdsToRemove, context);
7225
7219
  Object.entries(memberEntries).forEach(function (_a) {
7226
7220
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7228,10 +7222,10 @@ var serializeAws_queryModifyCacheClusterMessage = function (input, context) {
7228
7222
  entries[loc] = value;
7229
7223
  });
7230
7224
  }
7231
- if (input.AZMode !== undefined && input.AZMode !== null) {
7225
+ if (input.AZMode != null) {
7232
7226
  entries["AZMode"] = input.AZMode;
7233
7227
  }
7234
- if (input.NewAvailabilityZones !== undefined && input.NewAvailabilityZones !== null) {
7228
+ if (input.NewAvailabilityZones != null) {
7235
7229
  var memberEntries = serializeAws_queryPreferredAvailabilityZoneList(input.NewAvailabilityZones, context);
7236
7230
  Object.entries(memberEntries).forEach(function (_a) {
7237
7231
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7239,7 +7233,7 @@ var serializeAws_queryModifyCacheClusterMessage = function (input, context) {
7239
7233
  entries[loc] = value;
7240
7234
  });
7241
7235
  }
7242
- if (input.CacheSecurityGroupNames !== undefined && input.CacheSecurityGroupNames !== null) {
7236
+ if (input.CacheSecurityGroupNames != null) {
7243
7237
  var memberEntries = serializeAws_queryCacheSecurityGroupNameList(input.CacheSecurityGroupNames, context);
7244
7238
  Object.entries(memberEntries).forEach(function (_a) {
7245
7239
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7247,7 +7241,7 @@ var serializeAws_queryModifyCacheClusterMessage = function (input, context) {
7247
7241
  entries[loc] = value;
7248
7242
  });
7249
7243
  }
7250
- if (input.SecurityGroupIds !== undefined && input.SecurityGroupIds !== null) {
7244
+ if (input.SecurityGroupIds != null) {
7251
7245
  var memberEntries = serializeAws_querySecurityGroupIdsList(input.SecurityGroupIds, context);
7252
7246
  Object.entries(memberEntries).forEach(function (_a) {
7253
7247
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7255,43 +7249,43 @@ var serializeAws_queryModifyCacheClusterMessage = function (input, context) {
7255
7249
  entries[loc] = value;
7256
7250
  });
7257
7251
  }
7258
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
7252
+ if (input.PreferredMaintenanceWindow != null) {
7259
7253
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
7260
7254
  }
7261
- if (input.NotificationTopicArn !== undefined && input.NotificationTopicArn !== null) {
7255
+ if (input.NotificationTopicArn != null) {
7262
7256
  entries["NotificationTopicArn"] = input.NotificationTopicArn;
7263
7257
  }
7264
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
7258
+ if (input.CacheParameterGroupName != null) {
7265
7259
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
7266
7260
  }
7267
- if (input.NotificationTopicStatus !== undefined && input.NotificationTopicStatus !== null) {
7261
+ if (input.NotificationTopicStatus != null) {
7268
7262
  entries["NotificationTopicStatus"] = input.NotificationTopicStatus;
7269
7263
  }
7270
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
7264
+ if (input.ApplyImmediately != null) {
7271
7265
  entries["ApplyImmediately"] = input.ApplyImmediately;
7272
7266
  }
7273
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
7267
+ if (input.EngineVersion != null) {
7274
7268
  entries["EngineVersion"] = input.EngineVersion;
7275
7269
  }
7276
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
7270
+ if (input.AutoMinorVersionUpgrade != null) {
7277
7271
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
7278
7272
  }
7279
- if (input.SnapshotRetentionLimit !== undefined && input.SnapshotRetentionLimit !== null) {
7273
+ if (input.SnapshotRetentionLimit != null) {
7280
7274
  entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit;
7281
7275
  }
7282
- if (input.SnapshotWindow !== undefined && input.SnapshotWindow !== null) {
7276
+ if (input.SnapshotWindow != null) {
7283
7277
  entries["SnapshotWindow"] = input.SnapshotWindow;
7284
7278
  }
7285
- if (input.CacheNodeType !== undefined && input.CacheNodeType !== null) {
7279
+ if (input.CacheNodeType != null) {
7286
7280
  entries["CacheNodeType"] = input.CacheNodeType;
7287
7281
  }
7288
- if (input.AuthToken !== undefined && input.AuthToken !== null) {
7282
+ if (input.AuthToken != null) {
7289
7283
  entries["AuthToken"] = input.AuthToken;
7290
7284
  }
7291
- if (input.AuthTokenUpdateStrategy !== undefined && input.AuthTokenUpdateStrategy !== null) {
7285
+ if (input.AuthTokenUpdateStrategy != null) {
7292
7286
  entries["AuthTokenUpdateStrategy"] = input.AuthTokenUpdateStrategy;
7293
7287
  }
7294
- if (input.LogDeliveryConfigurations !== undefined && input.LogDeliveryConfigurations !== null) {
7288
+ if (input.LogDeliveryConfigurations != null) {
7295
7289
  var memberEntries = serializeAws_queryLogDeliveryConfigurationRequestList(input.LogDeliveryConfigurations, context);
7296
7290
  Object.entries(memberEntries).forEach(function (_a) {
7297
7291
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7303,10 +7297,10 @@ var serializeAws_queryModifyCacheClusterMessage = function (input, context) {
7303
7297
  };
7304
7298
  var serializeAws_queryModifyCacheParameterGroupMessage = function (input, context) {
7305
7299
  var entries = {};
7306
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
7300
+ if (input.CacheParameterGroupName != null) {
7307
7301
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
7308
7302
  }
7309
- if (input.ParameterNameValues !== undefined && input.ParameterNameValues !== null) {
7303
+ if (input.ParameterNameValues != null) {
7310
7304
  var memberEntries = serializeAws_queryParameterNameValueList(input.ParameterNameValues, context);
7311
7305
  Object.entries(memberEntries).forEach(function (_a) {
7312
7306
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7318,13 +7312,13 @@ var serializeAws_queryModifyCacheParameterGroupMessage = function (input, contex
7318
7312
  };
7319
7313
  var serializeAws_queryModifyCacheSubnetGroupMessage = function (input, context) {
7320
7314
  var entries = {};
7321
- if (input.CacheSubnetGroupName !== undefined && input.CacheSubnetGroupName !== null) {
7315
+ if (input.CacheSubnetGroupName != null) {
7322
7316
  entries["CacheSubnetGroupName"] = input.CacheSubnetGroupName;
7323
7317
  }
7324
- if (input.CacheSubnetGroupDescription !== undefined && input.CacheSubnetGroupDescription !== null) {
7318
+ if (input.CacheSubnetGroupDescription != null) {
7325
7319
  entries["CacheSubnetGroupDescription"] = input.CacheSubnetGroupDescription;
7326
7320
  }
7327
- if (input.SubnetIds !== undefined && input.SubnetIds !== null) {
7321
+ if (input.SubnetIds != null) {
7328
7322
  var memberEntries = serializeAws_querySubnetIdentifierList(input.SubnetIds, context);
7329
7323
  Object.entries(memberEntries).forEach(function (_a) {
7330
7324
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7336,53 +7330,53 @@ var serializeAws_queryModifyCacheSubnetGroupMessage = function (input, context)
7336
7330
  };
7337
7331
  var serializeAws_queryModifyGlobalReplicationGroupMessage = function (input, context) {
7338
7332
  var entries = {};
7339
- if (input.GlobalReplicationGroupId !== undefined && input.GlobalReplicationGroupId !== null) {
7333
+ if (input.GlobalReplicationGroupId != null) {
7340
7334
  entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId;
7341
7335
  }
7342
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
7336
+ if (input.ApplyImmediately != null) {
7343
7337
  entries["ApplyImmediately"] = input.ApplyImmediately;
7344
7338
  }
7345
- if (input.CacheNodeType !== undefined && input.CacheNodeType !== null) {
7339
+ if (input.CacheNodeType != null) {
7346
7340
  entries["CacheNodeType"] = input.CacheNodeType;
7347
7341
  }
7348
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
7342
+ if (input.EngineVersion != null) {
7349
7343
  entries["EngineVersion"] = input.EngineVersion;
7350
7344
  }
7351
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
7345
+ if (input.CacheParameterGroupName != null) {
7352
7346
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
7353
7347
  }
7354
- if (input.GlobalReplicationGroupDescription !== undefined && input.GlobalReplicationGroupDescription !== null) {
7348
+ if (input.GlobalReplicationGroupDescription != null) {
7355
7349
  entries["GlobalReplicationGroupDescription"] = input.GlobalReplicationGroupDescription;
7356
7350
  }
7357
- if (input.AutomaticFailoverEnabled !== undefined && input.AutomaticFailoverEnabled !== null) {
7351
+ if (input.AutomaticFailoverEnabled != null) {
7358
7352
  entries["AutomaticFailoverEnabled"] = input.AutomaticFailoverEnabled;
7359
7353
  }
7360
7354
  return entries;
7361
7355
  };
7362
7356
  var serializeAws_queryModifyReplicationGroupMessage = function (input, context) {
7363
7357
  var entries = {};
7364
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
7358
+ if (input.ReplicationGroupId != null) {
7365
7359
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
7366
7360
  }
7367
- if (input.ReplicationGroupDescription !== undefined && input.ReplicationGroupDescription !== null) {
7361
+ if (input.ReplicationGroupDescription != null) {
7368
7362
  entries["ReplicationGroupDescription"] = input.ReplicationGroupDescription;
7369
7363
  }
7370
- if (input.PrimaryClusterId !== undefined && input.PrimaryClusterId !== null) {
7364
+ if (input.PrimaryClusterId != null) {
7371
7365
  entries["PrimaryClusterId"] = input.PrimaryClusterId;
7372
7366
  }
7373
- if (input.SnapshottingClusterId !== undefined && input.SnapshottingClusterId !== null) {
7367
+ if (input.SnapshottingClusterId != null) {
7374
7368
  entries["SnapshottingClusterId"] = input.SnapshottingClusterId;
7375
7369
  }
7376
- if (input.AutomaticFailoverEnabled !== undefined && input.AutomaticFailoverEnabled !== null) {
7370
+ if (input.AutomaticFailoverEnabled != null) {
7377
7371
  entries["AutomaticFailoverEnabled"] = input.AutomaticFailoverEnabled;
7378
7372
  }
7379
- if (input.MultiAZEnabled !== undefined && input.MultiAZEnabled !== null) {
7373
+ if (input.MultiAZEnabled != null) {
7380
7374
  entries["MultiAZEnabled"] = input.MultiAZEnabled;
7381
7375
  }
7382
- if (input.NodeGroupId !== undefined && input.NodeGroupId !== null) {
7376
+ if (input.NodeGroupId != null) {
7383
7377
  entries["NodeGroupId"] = input.NodeGroupId;
7384
7378
  }
7385
- if (input.CacheSecurityGroupNames !== undefined && input.CacheSecurityGroupNames !== null) {
7379
+ if (input.CacheSecurityGroupNames != null) {
7386
7380
  var memberEntries = serializeAws_queryCacheSecurityGroupNameList(input.CacheSecurityGroupNames, context);
7387
7381
  Object.entries(memberEntries).forEach(function (_a) {
7388
7382
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7390,7 +7384,7 @@ var serializeAws_queryModifyReplicationGroupMessage = function (input, context)
7390
7384
  entries[loc] = value;
7391
7385
  });
7392
7386
  }
7393
- if (input.SecurityGroupIds !== undefined && input.SecurityGroupIds !== null) {
7387
+ if (input.SecurityGroupIds != null) {
7394
7388
  var memberEntries = serializeAws_querySecurityGroupIdsList(input.SecurityGroupIds, context);
7395
7389
  Object.entries(memberEntries).forEach(function (_a) {
7396
7390
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7398,43 +7392,43 @@ var serializeAws_queryModifyReplicationGroupMessage = function (input, context)
7398
7392
  entries[loc] = value;
7399
7393
  });
7400
7394
  }
7401
- if (input.PreferredMaintenanceWindow !== undefined && input.PreferredMaintenanceWindow !== null) {
7395
+ if (input.PreferredMaintenanceWindow != null) {
7402
7396
  entries["PreferredMaintenanceWindow"] = input.PreferredMaintenanceWindow;
7403
7397
  }
7404
- if (input.NotificationTopicArn !== undefined && input.NotificationTopicArn !== null) {
7398
+ if (input.NotificationTopicArn != null) {
7405
7399
  entries["NotificationTopicArn"] = input.NotificationTopicArn;
7406
7400
  }
7407
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
7401
+ if (input.CacheParameterGroupName != null) {
7408
7402
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
7409
7403
  }
7410
- if (input.NotificationTopicStatus !== undefined && input.NotificationTopicStatus !== null) {
7404
+ if (input.NotificationTopicStatus != null) {
7411
7405
  entries["NotificationTopicStatus"] = input.NotificationTopicStatus;
7412
7406
  }
7413
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
7407
+ if (input.ApplyImmediately != null) {
7414
7408
  entries["ApplyImmediately"] = input.ApplyImmediately;
7415
7409
  }
7416
- if (input.EngineVersion !== undefined && input.EngineVersion !== null) {
7410
+ if (input.EngineVersion != null) {
7417
7411
  entries["EngineVersion"] = input.EngineVersion;
7418
7412
  }
7419
- if (input.AutoMinorVersionUpgrade !== undefined && input.AutoMinorVersionUpgrade !== null) {
7413
+ if (input.AutoMinorVersionUpgrade != null) {
7420
7414
  entries["AutoMinorVersionUpgrade"] = input.AutoMinorVersionUpgrade;
7421
7415
  }
7422
- if (input.SnapshotRetentionLimit !== undefined && input.SnapshotRetentionLimit !== null) {
7416
+ if (input.SnapshotRetentionLimit != null) {
7423
7417
  entries["SnapshotRetentionLimit"] = input.SnapshotRetentionLimit;
7424
7418
  }
7425
- if (input.SnapshotWindow !== undefined && input.SnapshotWindow !== null) {
7419
+ if (input.SnapshotWindow != null) {
7426
7420
  entries["SnapshotWindow"] = input.SnapshotWindow;
7427
7421
  }
7428
- if (input.CacheNodeType !== undefined && input.CacheNodeType !== null) {
7422
+ if (input.CacheNodeType != null) {
7429
7423
  entries["CacheNodeType"] = input.CacheNodeType;
7430
7424
  }
7431
- if (input.AuthToken !== undefined && input.AuthToken !== null) {
7425
+ if (input.AuthToken != null) {
7432
7426
  entries["AuthToken"] = input.AuthToken;
7433
7427
  }
7434
- if (input.AuthTokenUpdateStrategy !== undefined && input.AuthTokenUpdateStrategy !== null) {
7428
+ if (input.AuthTokenUpdateStrategy != null) {
7435
7429
  entries["AuthTokenUpdateStrategy"] = input.AuthTokenUpdateStrategy;
7436
7430
  }
7437
- if (input.UserGroupIdsToAdd !== undefined && input.UserGroupIdsToAdd !== null) {
7431
+ if (input.UserGroupIdsToAdd != null) {
7438
7432
  var memberEntries = serializeAws_queryUserGroupIdList(input.UserGroupIdsToAdd, context);
7439
7433
  Object.entries(memberEntries).forEach(function (_a) {
7440
7434
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7442,7 +7436,7 @@ var serializeAws_queryModifyReplicationGroupMessage = function (input, context)
7442
7436
  entries[loc] = value;
7443
7437
  });
7444
7438
  }
7445
- if (input.UserGroupIdsToRemove !== undefined && input.UserGroupIdsToRemove !== null) {
7439
+ if (input.UserGroupIdsToRemove != null) {
7446
7440
  var memberEntries = serializeAws_queryUserGroupIdList(input.UserGroupIdsToRemove, context);
7447
7441
  Object.entries(memberEntries).forEach(function (_a) {
7448
7442
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7450,10 +7444,10 @@ var serializeAws_queryModifyReplicationGroupMessage = function (input, context)
7450
7444
  entries[loc] = value;
7451
7445
  });
7452
7446
  }
7453
- if (input.RemoveUserGroups !== undefined && input.RemoveUserGroups !== null) {
7447
+ if (input.RemoveUserGroups != null) {
7454
7448
  entries["RemoveUserGroups"] = input.RemoveUserGroups;
7455
7449
  }
7456
- if (input.LogDeliveryConfigurations !== undefined && input.LogDeliveryConfigurations !== null) {
7450
+ if (input.LogDeliveryConfigurations != null) {
7457
7451
  var memberEntries = serializeAws_queryLogDeliveryConfigurationRequestList(input.LogDeliveryConfigurations, context);
7458
7452
  Object.entries(memberEntries).forEach(function (_a) {
7459
7453
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7465,16 +7459,16 @@ var serializeAws_queryModifyReplicationGroupMessage = function (input, context)
7465
7459
  };
7466
7460
  var serializeAws_queryModifyReplicationGroupShardConfigurationMessage = function (input, context) {
7467
7461
  var entries = {};
7468
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
7462
+ if (input.ReplicationGroupId != null) {
7469
7463
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
7470
7464
  }
7471
- if (input.NodeGroupCount !== undefined && input.NodeGroupCount !== null) {
7465
+ if (input.NodeGroupCount != null) {
7472
7466
  entries["NodeGroupCount"] = input.NodeGroupCount;
7473
7467
  }
7474
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
7468
+ if (input.ApplyImmediately != null) {
7475
7469
  entries["ApplyImmediately"] = input.ApplyImmediately;
7476
7470
  }
7477
- if (input.ReshardingConfiguration !== undefined && input.ReshardingConfiguration !== null) {
7471
+ if (input.ReshardingConfiguration != null) {
7478
7472
  var memberEntries = serializeAws_queryReshardingConfigurationList(input.ReshardingConfiguration, context);
7479
7473
  Object.entries(memberEntries).forEach(function (_a) {
7480
7474
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7482,7 +7476,7 @@ var serializeAws_queryModifyReplicationGroupShardConfigurationMessage = function
7482
7476
  entries[loc] = value;
7483
7477
  });
7484
7478
  }
7485
- if (input.NodeGroupsToRemove !== undefined && input.NodeGroupsToRemove !== null) {
7479
+ if (input.NodeGroupsToRemove != null) {
7486
7480
  var memberEntries = serializeAws_queryNodeGroupsToRemoveList(input.NodeGroupsToRemove, context);
7487
7481
  Object.entries(memberEntries).forEach(function (_a) {
7488
7482
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7490,7 +7484,7 @@ var serializeAws_queryModifyReplicationGroupShardConfigurationMessage = function
7490
7484
  entries[loc] = value;
7491
7485
  });
7492
7486
  }
7493
- if (input.NodeGroupsToRetain !== undefined && input.NodeGroupsToRetain !== null) {
7487
+ if (input.NodeGroupsToRetain != null) {
7494
7488
  var memberEntries = serializeAws_queryNodeGroupsToRetainList(input.NodeGroupsToRetain, context);
7495
7489
  Object.entries(memberEntries).forEach(function (_a) {
7496
7490
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7502,10 +7496,10 @@ var serializeAws_queryModifyReplicationGroupShardConfigurationMessage = function
7502
7496
  };
7503
7497
  var serializeAws_queryModifyUserGroupMessage = function (input, context) {
7504
7498
  var entries = {};
7505
- if (input.UserGroupId !== undefined && input.UserGroupId !== null) {
7499
+ if (input.UserGroupId != null) {
7506
7500
  entries["UserGroupId"] = input.UserGroupId;
7507
7501
  }
7508
- if (input.UserIdsToAdd !== undefined && input.UserIdsToAdd !== null) {
7502
+ if (input.UserIdsToAdd != null) {
7509
7503
  var memberEntries = serializeAws_queryUserIdListInput(input.UserIdsToAdd, context);
7510
7504
  Object.entries(memberEntries).forEach(function (_a) {
7511
7505
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7513,7 +7507,7 @@ var serializeAws_queryModifyUserGroupMessage = function (input, context) {
7513
7507
  entries[loc] = value;
7514
7508
  });
7515
7509
  }
7516
- if (input.UserIdsToRemove !== undefined && input.UserIdsToRemove !== null) {
7510
+ if (input.UserIdsToRemove != null) {
7517
7511
  var memberEntries = serializeAws_queryUserIdListInput(input.UserIdsToRemove, context);
7518
7512
  Object.entries(memberEntries).forEach(function (_a) {
7519
7513
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7525,16 +7519,16 @@ var serializeAws_queryModifyUserGroupMessage = function (input, context) {
7525
7519
  };
7526
7520
  var serializeAws_queryModifyUserMessage = function (input, context) {
7527
7521
  var entries = {};
7528
- if (input.UserId !== undefined && input.UserId !== null) {
7522
+ if (input.UserId != null) {
7529
7523
  entries["UserId"] = input.UserId;
7530
7524
  }
7531
- if (input.AccessString !== undefined && input.AccessString !== null) {
7525
+ if (input.AccessString != null) {
7532
7526
  entries["AccessString"] = input.AccessString;
7533
7527
  }
7534
- if (input.AppendAccessString !== undefined && input.AppendAccessString !== null) {
7528
+ if (input.AppendAccessString != null) {
7535
7529
  entries["AppendAccessString"] = input.AppendAccessString;
7536
7530
  }
7537
- if (input.Passwords !== undefined && input.Passwords !== null) {
7531
+ if (input.Passwords != null) {
7538
7532
  var memberEntries = serializeAws_queryPasswordListInput(input.Passwords, context);
7539
7533
  Object.entries(memberEntries).forEach(function (_a) {
7540
7534
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7542,26 +7536,26 @@ var serializeAws_queryModifyUserMessage = function (input, context) {
7542
7536
  entries[loc] = value;
7543
7537
  });
7544
7538
  }
7545
- if (input.NoPasswordRequired !== undefined && input.NoPasswordRequired !== null) {
7539
+ if (input.NoPasswordRequired != null) {
7546
7540
  entries["NoPasswordRequired"] = input.NoPasswordRequired;
7547
7541
  }
7548
7542
  return entries;
7549
7543
  };
7550
7544
  var serializeAws_queryNodeGroupConfiguration = function (input, context) {
7551
7545
  var entries = {};
7552
- if (input.NodeGroupId !== undefined && input.NodeGroupId !== null) {
7546
+ if (input.NodeGroupId != null) {
7553
7547
  entries["NodeGroupId"] = input.NodeGroupId;
7554
7548
  }
7555
- if (input.Slots !== undefined && input.Slots !== null) {
7549
+ if (input.Slots != null) {
7556
7550
  entries["Slots"] = input.Slots;
7557
7551
  }
7558
- if (input.ReplicaCount !== undefined && input.ReplicaCount !== null) {
7552
+ if (input.ReplicaCount != null) {
7559
7553
  entries["ReplicaCount"] = input.ReplicaCount;
7560
7554
  }
7561
- if (input.PrimaryAvailabilityZone !== undefined && input.PrimaryAvailabilityZone !== null) {
7555
+ if (input.PrimaryAvailabilityZone != null) {
7562
7556
  entries["PrimaryAvailabilityZone"] = input.PrimaryAvailabilityZone;
7563
7557
  }
7564
- if (input.ReplicaAvailabilityZones !== undefined && input.ReplicaAvailabilityZones !== null) {
7558
+ if (input.ReplicaAvailabilityZones != null) {
7565
7559
  var memberEntries = serializeAws_queryAvailabilityZonesList(input.ReplicaAvailabilityZones, context);
7566
7560
  Object.entries(memberEntries).forEach(function (_a) {
7567
7561
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7569,10 +7563,10 @@ var serializeAws_queryNodeGroupConfiguration = function (input, context) {
7569
7563
  entries[loc] = value;
7570
7564
  });
7571
7565
  }
7572
- if (input.PrimaryOutpostArn !== undefined && input.PrimaryOutpostArn !== null) {
7566
+ if (input.PrimaryOutpostArn != null) {
7573
7567
  entries["PrimaryOutpostArn"] = input.PrimaryOutpostArn;
7574
7568
  }
7575
- if (input.ReplicaOutpostArns !== undefined && input.ReplicaOutpostArns !== null) {
7569
+ if (input.ReplicaOutpostArns != null) {
7576
7570
  var memberEntries = serializeAws_queryOutpostArnsList(input.ReplicaOutpostArns, context);
7577
7571
  Object.entries(memberEntries).forEach(function (_a) {
7578
7572
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7680,10 +7674,10 @@ var serializeAws_queryOutpostArnsList = function (input, context) {
7680
7674
  };
7681
7675
  var serializeAws_queryParameterNameValue = function (input, context) {
7682
7676
  var entries = {};
7683
- if (input.ParameterName !== undefined && input.ParameterName !== null) {
7677
+ if (input.ParameterName != null) {
7684
7678
  entries["ParameterName"] = input.ParameterName;
7685
7679
  }
7686
- if (input.ParameterValue !== undefined && input.ParameterValue !== null) {
7680
+ if (input.ParameterValue != null) {
7687
7681
  entries["ParameterValue"] = input.ParameterValue;
7688
7682
  }
7689
7683
  return entries;
@@ -7786,16 +7780,16 @@ var serializeAws_queryPreferredOutpostArnList = function (input, context) {
7786
7780
  };
7787
7781
  var serializeAws_queryPurchaseReservedCacheNodesOfferingMessage = function (input, context) {
7788
7782
  var entries = {};
7789
- if (input.ReservedCacheNodesOfferingId !== undefined && input.ReservedCacheNodesOfferingId !== null) {
7783
+ if (input.ReservedCacheNodesOfferingId != null) {
7790
7784
  entries["ReservedCacheNodesOfferingId"] = input.ReservedCacheNodesOfferingId;
7791
7785
  }
7792
- if (input.ReservedCacheNodeId !== undefined && input.ReservedCacheNodeId !== null) {
7786
+ if (input.ReservedCacheNodeId != null) {
7793
7787
  entries["ReservedCacheNodeId"] = input.ReservedCacheNodeId;
7794
7788
  }
7795
- if (input.CacheNodeCount !== undefined && input.CacheNodeCount !== null) {
7789
+ if (input.CacheNodeCount != null) {
7796
7790
  entries["CacheNodeCount"] = input.CacheNodeCount;
7797
7791
  }
7798
- if (input.Tags !== undefined && input.Tags !== null) {
7792
+ if (input.Tags != null) {
7799
7793
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
7800
7794
  Object.entries(memberEntries).forEach(function (_a) {
7801
7795
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7807,20 +7801,20 @@ var serializeAws_queryPurchaseReservedCacheNodesOfferingMessage = function (inpu
7807
7801
  };
7808
7802
  var serializeAws_queryRebalanceSlotsInGlobalReplicationGroupMessage = function (input, context) {
7809
7803
  var entries = {};
7810
- if (input.GlobalReplicationGroupId !== undefined && input.GlobalReplicationGroupId !== null) {
7804
+ if (input.GlobalReplicationGroupId != null) {
7811
7805
  entries["GlobalReplicationGroupId"] = input.GlobalReplicationGroupId;
7812
7806
  }
7813
- if (input.ApplyImmediately !== undefined && input.ApplyImmediately !== null) {
7807
+ if (input.ApplyImmediately != null) {
7814
7808
  entries["ApplyImmediately"] = input.ApplyImmediately;
7815
7809
  }
7816
7810
  return entries;
7817
7811
  };
7818
7812
  var serializeAws_queryRebootCacheClusterMessage = function (input, context) {
7819
7813
  var entries = {};
7820
- if (input.CacheClusterId !== undefined && input.CacheClusterId !== null) {
7814
+ if (input.CacheClusterId != null) {
7821
7815
  entries["CacheClusterId"] = input.CacheClusterId;
7822
7816
  }
7823
- if (input.CacheNodeIdsToReboot !== undefined && input.CacheNodeIdsToReboot !== null) {
7817
+ if (input.CacheNodeIdsToReboot != null) {
7824
7818
  var memberEntries = serializeAws_queryCacheNodeIdsList(input.CacheNodeIdsToReboot, context);
7825
7819
  Object.entries(memberEntries).forEach(function (_a) {
7826
7820
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7832,13 +7826,13 @@ var serializeAws_queryRebootCacheClusterMessage = function (input, context) {
7832
7826
  };
7833
7827
  var serializeAws_queryRegionalConfiguration = function (input, context) {
7834
7828
  var entries = {};
7835
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
7829
+ if (input.ReplicationGroupId != null) {
7836
7830
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
7837
7831
  }
7838
- if (input.ReplicationGroupRegion !== undefined && input.ReplicationGroupRegion !== null) {
7832
+ if (input.ReplicationGroupRegion != null) {
7839
7833
  entries["ReplicationGroupRegion"] = input.ReplicationGroupRegion;
7840
7834
  }
7841
- if (input.ReshardingConfiguration !== undefined && input.ReshardingConfiguration !== null) {
7835
+ if (input.ReshardingConfiguration != null) {
7842
7836
  var memberEntries = serializeAws_queryReshardingConfigurationList(input.ReshardingConfiguration, context);
7843
7837
  Object.entries(memberEntries).forEach(function (_a) {
7844
7838
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7900,10 +7894,10 @@ var serializeAws_queryRemoveReplicasList = function (input, context) {
7900
7894
  };
7901
7895
  var serializeAws_queryRemoveTagsFromResourceMessage = function (input, context) {
7902
7896
  var entries = {};
7903
- if (input.ResourceName !== undefined && input.ResourceName !== null) {
7897
+ if (input.ResourceName != null) {
7904
7898
  entries["ResourceName"] = input.ResourceName;
7905
7899
  }
7906
- if (input.TagKeys !== undefined && input.TagKeys !== null) {
7900
+ if (input.TagKeys != null) {
7907
7901
  var memberEntries = serializeAws_queryKeyList(input.TagKeys, context);
7908
7902
  Object.entries(memberEntries).forEach(function (_a) {
7909
7903
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7965,13 +7959,13 @@ var serializeAws_queryReplicationGroupIdList = function (input, context) {
7965
7959
  };
7966
7960
  var serializeAws_queryResetCacheParameterGroupMessage = function (input, context) {
7967
7961
  var entries = {};
7968
- if (input.CacheParameterGroupName !== undefined && input.CacheParameterGroupName !== null) {
7962
+ if (input.CacheParameterGroupName != null) {
7969
7963
  entries["CacheParameterGroupName"] = input.CacheParameterGroupName;
7970
7964
  }
7971
- if (input.ResetAllParameters !== undefined && input.ResetAllParameters !== null) {
7965
+ if (input.ResetAllParameters != null) {
7972
7966
  entries["ResetAllParameters"] = input.ResetAllParameters;
7973
7967
  }
7974
- if (input.ParameterNameValues !== undefined && input.ParameterNameValues !== null) {
7968
+ if (input.ParameterNameValues != null) {
7975
7969
  var memberEntries = serializeAws_queryParameterNameValueList(input.ParameterNameValues, context);
7976
7970
  Object.entries(memberEntries).forEach(function (_a) {
7977
7971
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -7983,10 +7977,10 @@ var serializeAws_queryResetCacheParameterGroupMessage = function (input, context
7983
7977
  };
7984
7978
  var serializeAws_queryReshardingConfiguration = function (input, context) {
7985
7979
  var entries = {};
7986
- if (input.NodeGroupId !== undefined && input.NodeGroupId !== null) {
7980
+ if (input.NodeGroupId != null) {
7987
7981
  entries["NodeGroupId"] = input.NodeGroupId;
7988
7982
  }
7989
- if (input.PreferredAvailabilityZones !== undefined && input.PreferredAvailabilityZones !== null) {
7983
+ if (input.PreferredAvailabilityZones != null) {
7990
7984
  var memberEntries = serializeAws_queryAvailabilityZonesList(input.PreferredAvailabilityZones, context);
7991
7985
  Object.entries(memberEntries).forEach(function (_a) {
7992
7986
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -8025,13 +8019,13 @@ var serializeAws_queryReshardingConfigurationList = function (input, context) {
8025
8019
  };
8026
8020
  var serializeAws_queryRevokeCacheSecurityGroupIngressMessage = function (input, context) {
8027
8021
  var entries = {};
8028
- if (input.CacheSecurityGroupName !== undefined && input.CacheSecurityGroupName !== null) {
8022
+ if (input.CacheSecurityGroupName != null) {
8029
8023
  entries["CacheSecurityGroupName"] = input.CacheSecurityGroupName;
8030
8024
  }
8031
- if (input.EC2SecurityGroupName !== undefined && input.EC2SecurityGroupName !== null) {
8025
+ if (input.EC2SecurityGroupName != null) {
8032
8026
  entries["EC2SecurityGroupName"] = input.EC2SecurityGroupName;
8033
8027
  }
8034
- if (input.EC2SecurityGroupOwnerId !== undefined && input.EC2SecurityGroupOwnerId !== null) {
8028
+ if (input.EC2SecurityGroupOwnerId != null) {
8035
8029
  entries["EC2SecurityGroupOwnerId"] = input.EC2SecurityGroupOwnerId;
8036
8030
  }
8037
8031
  return entries;
@@ -8107,10 +8101,10 @@ var serializeAws_querySnapshotArnsList = function (input, context) {
8107
8101
  };
8108
8102
  var serializeAws_queryStartMigrationMessage = function (input, context) {
8109
8103
  var entries = {};
8110
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
8104
+ if (input.ReplicationGroupId != null) {
8111
8105
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
8112
8106
  }
8113
- if (input.CustomerNodeEndpointList !== undefined && input.CustomerNodeEndpointList !== null) {
8107
+ if (input.CustomerNodeEndpointList != null) {
8114
8108
  var memberEntries = serializeAws_queryCustomerNodeEndpointList(input.CustomerNodeEndpointList, context);
8115
8109
  Object.entries(memberEntries).forEach(function (_a) {
8116
8110
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -8145,10 +8139,10 @@ var serializeAws_querySubnetIdentifierList = function (input, context) {
8145
8139
  };
8146
8140
  var serializeAws_queryTag = function (input, context) {
8147
8141
  var entries = {};
8148
- if (input.Key !== undefined && input.Key !== null) {
8142
+ if (input.Key != null) {
8149
8143
  entries["Key"] = input.Key;
8150
8144
  }
8151
- if (input.Value !== undefined && input.Value !== null) {
8145
+ if (input.Value != null) {
8152
8146
  entries["Value"] = input.Value;
8153
8147
  }
8154
8148
  return entries;
@@ -8182,20 +8176,20 @@ var serializeAws_queryTagList = function (input, context) {
8182
8176
  };
8183
8177
  var serializeAws_queryTestFailoverMessage = function (input, context) {
8184
8178
  var entries = {};
8185
- if (input.ReplicationGroupId !== undefined && input.ReplicationGroupId !== null) {
8179
+ if (input.ReplicationGroupId != null) {
8186
8180
  entries["ReplicationGroupId"] = input.ReplicationGroupId;
8187
8181
  }
8188
- if (input.NodeGroupId !== undefined && input.NodeGroupId !== null) {
8182
+ if (input.NodeGroupId != null) {
8189
8183
  entries["NodeGroupId"] = input.NodeGroupId;
8190
8184
  }
8191
8185
  return entries;
8192
8186
  };
8193
8187
  var serializeAws_queryTimeRangeFilter = function (input, context) {
8194
8188
  var entries = {};
8195
- if (input.StartTime !== undefined && input.StartTime !== null) {
8189
+ if (input.StartTime != null) {
8196
8190
  entries["StartTime"] = input.StartTime.toISOString().split(".")[0] + "Z";
8197
8191
  }
8198
- if (input.EndTime !== undefined && input.EndTime !== null) {
8192
+ if (input.EndTime != null) {
8199
8193
  entries["EndTime"] = input.EndTime.toISOString().split(".")[0] + "Z";
8200
8194
  }
8201
8195
  return entries;
@@ -8374,9 +8368,6 @@ var deserializeAws_queryAvailabilityZonesList = function (output, context) {
8374
8368
  return (output || [])
8375
8369
  .filter(function (e) { return e != null; })
8376
8370
  .map(function (entry) {
8377
- if (entry === null) {
8378
- return null;
8379
- }
8380
8371
  return __expectString(entry);
8381
8372
  });
8382
8373
  };
@@ -8532,9 +8523,6 @@ var deserializeAws_queryCacheClusterList = function (output, context) {
8532
8523
  return (output || [])
8533
8524
  .filter(function (e) { return e != null; })
8534
8525
  .map(function (entry) {
8535
- if (entry === null) {
8536
- return null;
8537
- }
8538
8526
  return deserializeAws_queryCacheCluster(entry, context);
8539
8527
  });
8540
8528
  };
@@ -8592,9 +8580,6 @@ var deserializeAws_queryCacheEngineVersionList = function (output, context) {
8592
8580
  return (output || [])
8593
8581
  .filter(function (e) { return e != null; })
8594
8582
  .map(function (entry) {
8595
- if (entry === null) {
8596
- return null;
8597
- }
8598
8583
  return deserializeAws_queryCacheEngineVersion(entry, context);
8599
8584
  });
8600
8585
  };
@@ -8656,9 +8641,6 @@ var deserializeAws_queryCacheNodeIdsList = function (output, context) {
8656
8641
  return (output || [])
8657
8642
  .filter(function (e) { return e != null; })
8658
8643
  .map(function (entry) {
8659
- if (entry === null) {
8660
- return null;
8661
- }
8662
8644
  return __expectString(entry);
8663
8645
  });
8664
8646
  };
@@ -8666,9 +8648,6 @@ var deserializeAws_queryCacheNodeList = function (output, context) {
8666
8648
  return (output || [])
8667
8649
  .filter(function (e) { return e != null; })
8668
8650
  .map(function (entry) {
8669
- if (entry === null) {
8670
- return null;
8671
- }
8672
8651
  return deserializeAws_queryCacheNode(entry, context);
8673
8652
  });
8674
8653
  };
@@ -8721,9 +8700,6 @@ var deserializeAws_queryCacheNodeTypeSpecificParametersList = function (output,
8721
8700
  return (output || [])
8722
8701
  .filter(function (e) { return e != null; })
8723
8702
  .map(function (entry) {
8724
- if (entry === null) {
8725
- return null;
8726
- }
8727
8703
  return deserializeAws_queryCacheNodeTypeSpecificParameter(entry, context);
8728
8704
  });
8729
8705
  };
@@ -8744,9 +8720,6 @@ var deserializeAws_queryCacheNodeTypeSpecificValueList = function (output, conte
8744
8720
  return (output || [])
8745
8721
  .filter(function (e) { return e != null; })
8746
8722
  .map(function (entry) {
8747
- if (entry === null) {
8748
- return null;
8749
- }
8750
8723
  return deserializeAws_queryCacheNodeTypeSpecificValue(entry, context);
8751
8724
  });
8752
8725
  };
@@ -8791,9 +8764,6 @@ var deserializeAws_queryCacheNodeUpdateStatusList = function (output, context) {
8791
8764
  return (output || [])
8792
8765
  .filter(function (e) { return e != null; })
8793
8766
  .map(function (entry) {
8794
- if (entry === null) {
8795
- return null;
8796
- }
8797
8767
  return deserializeAws_queryCacheNodeUpdateStatus(entry, context);
8798
8768
  });
8799
8769
  };
@@ -8859,9 +8829,6 @@ var deserializeAws_queryCacheParameterGroupList = function (output, context) {
8859
8829
  return (output || [])
8860
8830
  .filter(function (e) { return e != null; })
8861
8831
  .map(function (entry) {
8862
- if (entry === null) {
8863
- return null;
8864
- }
8865
8832
  return deserializeAws_queryCacheParameterGroup(entry, context);
8866
8833
  });
8867
8834
  };
@@ -8985,9 +8952,6 @@ var deserializeAws_queryCacheSecurityGroupMembershipList = function (output, con
8985
8952
  return (output || [])
8986
8953
  .filter(function (e) { return e != null; })
8987
8954
  .map(function (entry) {
8988
- if (entry === null) {
8989
- return null;
8990
- }
8991
8955
  return deserializeAws_queryCacheSecurityGroupMembership(entry, context);
8992
8956
  });
8993
8957
  };
@@ -9030,9 +8994,6 @@ var deserializeAws_queryCacheSecurityGroups = function (output, context) {
9030
8994
  return (output || [])
9031
8995
  .filter(function (e) { return e != null; })
9032
8996
  .map(function (entry) {
9033
- if (entry === null) {
9034
- return null;
9035
- }
9036
8997
  return deserializeAws_queryCacheSecurityGroup(entry, context);
9037
8998
  });
9038
8999
  };
@@ -9121,9 +9082,6 @@ var deserializeAws_queryCacheSubnetGroups = function (output, context) {
9121
9082
  return (output || [])
9122
9083
  .filter(function (e) { return e != null; })
9123
9084
  .map(function (entry) {
9124
- if (entry === null) {
9125
- return null;
9126
- }
9127
9085
  return deserializeAws_queryCacheSubnetGroup(entry, context);
9128
9086
  });
9129
9087
  };
@@ -9149,9 +9107,6 @@ var deserializeAws_queryClusterIdList = function (output, context) {
9149
9107
  return (output || [])
9150
9108
  .filter(function (e) { return e != null; })
9151
9109
  .map(function (entry) {
9152
- if (entry === null) {
9153
- return null;
9154
- }
9155
9110
  return __expectString(entry);
9156
9111
  });
9157
9112
  };
@@ -9443,9 +9398,6 @@ var deserializeAws_queryEC2SecurityGroupList = function (output, context) {
9443
9398
  return (output || [])
9444
9399
  .filter(function (e) { return e != null; })
9445
9400
  .map(function (entry) {
9446
- if (entry === null) {
9447
- return null;
9448
- }
9449
9401
  return deserializeAws_queryEC2SecurityGroup(entry, context);
9450
9402
  });
9451
9403
  };
@@ -9515,9 +9467,6 @@ var deserializeAws_queryEventList = function (output, context) {
9515
9467
  return (output || [])
9516
9468
  .filter(function (e) { return e != null; })
9517
9469
  .map(function (entry) {
9518
- if (entry === null) {
9519
- return null;
9520
- }
9521
9470
  return deserializeAws_queryEvent(entry, context);
9522
9471
  });
9523
9472
  };
@@ -9563,9 +9512,6 @@ var deserializeAws_queryGlobalNodeGroupList = function (output, context) {
9563
9512
  return (output || [])
9564
9513
  .filter(function (e) { return e != null; })
9565
9514
  .map(function (entry) {
9566
- if (entry === null) {
9567
- return null;
9568
- }
9569
9515
  return deserializeAws_queryGlobalNodeGroup(entry, context);
9570
9516
  });
9571
9517
  };
@@ -9658,9 +9604,6 @@ var deserializeAws_queryGlobalReplicationGroupList = function (output, context)
9658
9604
  return (output || [])
9659
9605
  .filter(function (e) { return e != null; })
9660
9606
  .map(function (entry) {
9661
- if (entry === null) {
9662
- return null;
9663
- }
9664
9607
  return deserializeAws_queryGlobalReplicationGroup(entry, context);
9665
9608
  });
9666
9609
  };
@@ -9693,9 +9636,6 @@ var deserializeAws_queryGlobalReplicationGroupMemberList = function (output, con
9693
9636
  return (output || [])
9694
9637
  .filter(function (e) { return e != null; })
9695
9638
  .map(function (entry) {
9696
- if (entry === null) {
9697
- return null;
9698
- }
9699
9639
  return deserializeAws_queryGlobalReplicationGroupMember(entry, context);
9700
9640
  });
9701
9641
  };
@@ -9903,9 +9843,6 @@ var deserializeAws_queryLogDeliveryConfigurationList = function (output, context
9903
9843
  return (output || [])
9904
9844
  .filter(function (e) { return e != null; })
9905
9845
  .map(function (entry) {
9906
- if (entry === null) {
9907
- return null;
9908
- }
9909
9846
  return deserializeAws_queryLogDeliveryConfiguration(entry, context);
9910
9847
  });
9911
9848
  };
@@ -10030,9 +9967,6 @@ var deserializeAws_queryNodeGroupList = function (output, context) {
10030
9967
  return (output || [])
10031
9968
  .filter(function (e) { return e != null; })
10032
9969
  .map(function (entry) {
10033
- if (entry === null) {
10034
- return null;
10035
- }
10036
9970
  return deserializeAws_queryNodeGroup(entry, context);
10037
9971
  });
10038
9972
  };
@@ -10069,9 +10003,6 @@ var deserializeAws_queryNodeGroupMemberList = function (output, context) {
10069
10003
  return (output || [])
10070
10004
  .filter(function (e) { return e != null; })
10071
10005
  .map(function (entry) {
10072
- if (entry === null) {
10073
- return null;
10074
- }
10075
10006
  return deserializeAws_queryNodeGroupMember(entry, context);
10076
10007
  });
10077
10008
  };
@@ -10120,9 +10051,6 @@ var deserializeAws_queryNodeGroupMemberUpdateStatusList = function (output, cont
10120
10051
  return (output || [])
10121
10052
  .filter(function (e) { return e != null; })
10122
10053
  .map(function (entry) {
10123
- if (entry === null) {
10124
- return null;
10125
- }
10126
10054
  return deserializeAws_queryNodeGroupMemberUpdateStatus(entry, context);
10127
10055
  });
10128
10056
  };
@@ -10165,9 +10093,6 @@ var deserializeAws_queryNodeGroupUpdateStatusList = function (output, context) {
10165
10093
  return (output || [])
10166
10094
  .filter(function (e) { return e != null; })
10167
10095
  .map(function (entry) {
10168
- if (entry === null) {
10169
- return null;
10170
- }
10171
10096
  return deserializeAws_queryNodeGroupUpdateStatus(entry, context);
10172
10097
  });
10173
10098
  };
@@ -10226,9 +10151,6 @@ var deserializeAws_queryNodeSnapshotList = function (output, context) {
10226
10151
  return (output || [])
10227
10152
  .filter(function (e) { return e != null; })
10228
10153
  .map(function (entry) {
10229
- if (entry === null) {
10230
- return null;
10231
- }
10232
10154
  return deserializeAws_queryNodeSnapshot(entry, context);
10233
10155
  });
10234
10156
  };
@@ -10236,9 +10158,6 @@ var deserializeAws_queryNodeTypeList = function (output, context) {
10236
10158
  return (output || [])
10237
10159
  .filter(function (e) { return e != null; })
10238
10160
  .map(function (entry) {
10239
- if (entry === null) {
10240
- return null;
10241
- }
10242
10161
  return __expectString(entry);
10243
10162
  });
10244
10163
  };
@@ -10268,9 +10187,6 @@ var deserializeAws_queryOutpostArnsList = function (output, context) {
10268
10187
  return (output || [])
10269
10188
  .filter(function (e) { return e != null; })
10270
10189
  .map(function (entry) {
10271
- if (entry === null) {
10272
- return null;
10273
- }
10274
10190
  return __expectString(entry);
10275
10191
  });
10276
10192
  };
@@ -10319,9 +10235,6 @@ var deserializeAws_queryParametersList = function (output, context) {
10319
10235
  return (output || [])
10320
10236
  .filter(function (e) { return e != null; })
10321
10237
  .map(function (entry) {
10322
- if (entry === null) {
10323
- return null;
10324
- }
10325
10238
  return deserializeAws_queryParameter(entry, context);
10326
10239
  });
10327
10240
  };
@@ -10350,9 +10263,6 @@ var deserializeAws_queryPendingLogDeliveryConfigurationList = function (output,
10350
10263
  return (output || [])
10351
10264
  .filter(function (e) { return e != null; })
10352
10265
  .map(function (entry) {
10353
- if (entry === null) {
10354
- return null;
10355
- }
10356
10266
  return deserializeAws_queryPendingLogDeliveryConfiguration(entry, context);
10357
10267
  });
10358
10268
  };
@@ -10418,9 +10328,6 @@ var deserializeAws_queryProcessedUpdateActionList = function (output, context) {
10418
10328
  return (output || [])
10419
10329
  .filter(function (e) { return e != null; })
10420
10330
  .map(function (entry) {
10421
- if (entry === null) {
10422
- return null;
10423
- }
10424
10331
  return deserializeAws_queryProcessedUpdateAction(entry, context);
10425
10332
  });
10426
10333
  };
@@ -10468,9 +10375,6 @@ var deserializeAws_queryRecurringChargeList = function (output, context) {
10468
10375
  return (output || [])
10469
10376
  .filter(function (e) { return e != null; })
10470
10377
  .map(function (entry) {
10471
- if (entry === null) {
10472
- return null;
10473
- }
10474
10378
  return deserializeAws_queryRecurringCharge(entry, context);
10475
10379
  });
10476
10380
  };
@@ -10626,9 +10530,6 @@ var deserializeAws_queryReplicationGroupList = function (output, context) {
10626
10530
  return (output || [])
10627
10531
  .filter(function (e) { return e != null; })
10628
10532
  .map(function (entry) {
10629
- if (entry === null) {
10630
- return null;
10631
- }
10632
10533
  return deserializeAws_queryReplicationGroup(entry, context);
10633
10534
  });
10634
10535
  };
@@ -10671,9 +10572,6 @@ var deserializeAws_queryReplicationGroupOutpostArnList = function (output, conte
10671
10572
  return (output || [])
10672
10573
  .filter(function (e) { return e != null; })
10673
10574
  .map(function (entry) {
10674
- if (entry === null) {
10675
- return null;
10676
- }
10677
10575
  return __expectString(entry);
10678
10576
  });
10679
10577
  };
@@ -10783,9 +10681,6 @@ var deserializeAws_queryReservedCacheNodeList = function (output, context) {
10783
10681
  return (output || [])
10784
10682
  .filter(function (e) { return e != null; })
10785
10683
  .map(function (entry) {
10786
- if (entry === null) {
10787
- return null;
10788
- }
10789
10684
  return deserializeAws_queryReservedCacheNode(entry, context);
10790
10685
  });
10791
10686
  };
@@ -10868,9 +10763,6 @@ var deserializeAws_queryReservedCacheNodesOfferingList = function (output, conte
10868
10763
  return (output || [])
10869
10764
  .filter(function (e) { return e != null; })
10870
10765
  .map(function (entry) {
10871
- if (entry === null) {
10872
- return null;
10873
- }
10874
10766
  return deserializeAws_queryReservedCacheNodesOffering(entry, context);
10875
10767
  });
10876
10768
  };
@@ -10935,9 +10827,6 @@ var deserializeAws_querySecurityGroupMembershipList = function (output, context)
10935
10827
  return (output || [])
10936
10828
  .filter(function (e) { return e != null; })
10937
10829
  .map(function (entry) {
10938
- if (entry === null) {
10939
- return null;
10940
- }
10941
10830
  return deserializeAws_querySecurityGroupMembership(entry, context);
10942
10831
  });
10943
10832
  };
@@ -11007,9 +10896,6 @@ var deserializeAws_queryServiceUpdateList = function (output, context) {
11007
10896
  return (output || [])
11008
10897
  .filter(function (e) { return e != null; })
11009
10898
  .map(function (entry) {
11010
- if (entry === null) {
11011
- return null;
11012
- }
11013
10899
  return deserializeAws_queryServiceUpdate(entry, context);
11014
10900
  });
11015
10901
  };
@@ -11189,9 +11075,6 @@ var deserializeAws_querySnapshotList = function (output, context) {
11189
11075
  return (output || [])
11190
11076
  .filter(function (e) { return e != null; })
11191
11077
  .map(function (entry) {
11192
- if (entry === null) {
11193
- return null;
11194
- }
11195
11078
  return deserializeAws_querySnapshot(entry, context);
11196
11079
  });
11197
11080
  };
@@ -11252,9 +11135,6 @@ var deserializeAws_querySubnetList = function (output, context) {
11252
11135
  return (output || [])
11253
11136
  .filter(function (e) { return e != null; })
11254
11137
  .map(function (entry) {
11255
- if (entry === null) {
11256
- return null;
11257
- }
11258
11138
  return deserializeAws_querySubnet(entry, context);
11259
11139
  });
11260
11140
  };
@@ -11293,9 +11173,6 @@ var deserializeAws_queryTagList = function (output, context) {
11293
11173
  return (output || [])
11294
11174
  .filter(function (e) { return e != null; })
11295
11175
  .map(function (entry) {
11296
- if (entry === null) {
11297
- return null;
11298
- }
11299
11176
  return deserializeAws_queryTag(entry, context);
11300
11177
  });
11301
11178
  };
@@ -11351,9 +11228,6 @@ var deserializeAws_queryUGReplicationGroupIdList = function (output, context) {
11351
11228
  return (output || [])
11352
11229
  .filter(function (e) { return e != null; })
11353
11230
  .map(function (entry) {
11354
- if (entry === null) {
11355
- return null;
11356
- }
11357
11231
  return __expectString(entry);
11358
11232
  });
11359
11233
  };
@@ -11386,9 +11260,6 @@ var deserializeAws_queryUnprocessedUpdateActionList = function (output, context)
11386
11260
  return (output || [])
11387
11261
  .filter(function (e) { return e != null; })
11388
11262
  .map(function (entry) {
11389
- if (entry === null) {
11390
- return null;
11391
- }
11392
11263
  return deserializeAws_queryUnprocessedUpdateAction(entry, context);
11393
11264
  });
11394
11265
  };
@@ -11477,9 +11348,6 @@ var deserializeAws_queryUpdateActionList = function (output, context) {
11477
11348
  return (output || [])
11478
11349
  .filter(function (e) { return e != null; })
11479
11350
  .map(function (entry) {
11480
- if (entry === null) {
11481
- return null;
11482
- }
11483
11351
  return deserializeAws_queryUpdateAction(entry, context);
11484
11352
  });
11485
11353
  };
@@ -11629,9 +11497,6 @@ var deserializeAws_queryUserGroupIdList = function (output, context) {
11629
11497
  return (output || [])
11630
11498
  .filter(function (e) { return e != null; })
11631
11499
  .map(function (entry) {
11632
- if (entry === null) {
11633
- return null;
11634
- }
11635
11500
  return __expectString(entry);
11636
11501
  });
11637
11502
  };
@@ -11639,9 +11504,6 @@ var deserializeAws_queryUserGroupList = function (output, context) {
11639
11504
  return (output || [])
11640
11505
  .filter(function (e) { return e != null; })
11641
11506
  .map(function (entry) {
11642
- if (entry === null) {
11643
- return null;
11644
- }
11645
11507
  return deserializeAws_queryUserGroup(entry, context);
11646
11508
  });
11647
11509
  };
@@ -11705,9 +11567,6 @@ var deserializeAws_queryUserIdList = function (output, context) {
11705
11567
  return (output || [])
11706
11568
  .filter(function (e) { return e != null; })
11707
11569
  .map(function (entry) {
11708
- if (entry === null) {
11709
- return null;
11710
- }
11711
11570
  return __expectString(entry);
11712
11571
  });
11713
11572
  };
@@ -11715,9 +11574,6 @@ var deserializeAws_queryUserList = function (output, context) {
11715
11574
  return (output || [])
11716
11575
  .filter(function (e) { return e != null; })
11717
11576
  .map(function (entry) {
11718
- if (entry === null) {
11719
- return null;
11720
- }
11721
11577
  return deserializeAws_queryUser(entry, context);
11722
11578
  });
11723
11579
  };