@aws-sdk/client-cloudformation 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, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { decodeHTML } from "entities";
5
5
  import { parse as xmlParse } from "fast-xml-parser";
6
6
  import { v4 as generateIdempotencyToken } from "uuid";
@@ -685,7 +685,7 @@ export var deserializeAws_queryActivateTypeCommand = function (output, context)
685
685
  });
686
686
  }); };
687
687
  var deserializeAws_queryActivateTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
688
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
688
+ var parsedOutput, _a, errorCode, _b, parsedBody;
689
689
  var _c;
690
690
  return __generator(this, function (_d) {
691
691
  switch (_d.label) {
@@ -710,14 +710,14 @@ var deserializeAws_queryActivateTypeCommandError = function (output, context) {
710
710
  case 5: throw _d.sent();
711
711
  case 6:
712
712
  parsedBody = parsedOutput.body;
713
- $metadata = deserializeMetadata(output);
714
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
715
- response = new __BaseException({
716
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
717
- $fault: "client",
718
- $metadata: $metadata,
713
+ throwDefaultError({
714
+ output: output,
715
+ parsedBody: parsedBody.Error,
716
+ exceptionCtor: __BaseException,
717
+ errorCode: errorCode,
719
718
  });
720
- throw __decorateServiceException(response, parsedBody.Error);
719
+ _d.label = 7;
720
+ case 7: return [2];
721
721
  }
722
722
  });
723
723
  }); };
@@ -740,7 +740,7 @@ export var deserializeAws_queryBatchDescribeTypeConfigurationsCommand = function
740
740
  });
741
741
  }); };
742
742
  var deserializeAws_queryBatchDescribeTypeConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
743
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
743
+ var parsedOutput, _a, errorCode, _b, parsedBody;
744
744
  var _c;
745
745
  return __generator(this, function (_d) {
746
746
  switch (_d.label) {
@@ -765,14 +765,14 @@ var deserializeAws_queryBatchDescribeTypeConfigurationsCommandError = function (
765
765
  case 5: throw _d.sent();
766
766
  case 6:
767
767
  parsedBody = parsedOutput.body;
768
- $metadata = deserializeMetadata(output);
769
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
770
- response = new __BaseException({
771
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
772
- $fault: "client",
773
- $metadata: $metadata,
768
+ throwDefaultError({
769
+ output: output,
770
+ parsedBody: parsedBody.Error,
771
+ exceptionCtor: __BaseException,
772
+ errorCode: errorCode,
774
773
  });
775
- throw __decorateServiceException(response, parsedBody.Error);
774
+ _d.label = 7;
775
+ case 7: return [2];
776
776
  }
777
777
  });
778
778
  }); };
@@ -795,7 +795,7 @@ export var deserializeAws_queryCancelUpdateStackCommand = function (output, cont
795
795
  });
796
796
  }); };
797
797
  var deserializeAws_queryCancelUpdateStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
798
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
798
+ var parsedOutput, _a, errorCode, _b, parsedBody;
799
799
  var _c;
800
800
  return __generator(this, function (_d) {
801
801
  switch (_d.label) {
@@ -816,14 +816,14 @@ var deserializeAws_queryCancelUpdateStackCommandError = function (output, contex
816
816
  case 3: throw _d.sent();
817
817
  case 4:
818
818
  parsedBody = parsedOutput.body;
819
- $metadata = deserializeMetadata(output);
820
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
821
- response = new __BaseException({
822
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
823
- $fault: "client",
824
- $metadata: $metadata,
819
+ throwDefaultError({
820
+ output: output,
821
+ parsedBody: parsedBody.Error,
822
+ exceptionCtor: __BaseException,
823
+ errorCode: errorCode,
825
824
  });
826
- throw __decorateServiceException(response, parsedBody.Error);
825
+ _d.label = 5;
826
+ case 5: return [2];
827
827
  }
828
828
  });
829
829
  }); };
@@ -846,7 +846,7 @@ export var deserializeAws_queryContinueUpdateRollbackCommand = function (output,
846
846
  });
847
847
  }); };
848
848
  var deserializeAws_queryContinueUpdateRollbackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
849
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
849
+ var parsedOutput, _a, errorCode, _b, parsedBody;
850
850
  var _c;
851
851
  return __generator(this, function (_d) {
852
852
  switch (_d.label) {
@@ -867,14 +867,14 @@ var deserializeAws_queryContinueUpdateRollbackCommandError = function (output, c
867
867
  case 3: throw _d.sent();
868
868
  case 4:
869
869
  parsedBody = parsedOutput.body;
870
- $metadata = deserializeMetadata(output);
871
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
872
- response = new __BaseException({
873
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
874
- $fault: "client",
875
- $metadata: $metadata,
870
+ throwDefaultError({
871
+ output: output,
872
+ parsedBody: parsedBody.Error,
873
+ exceptionCtor: __BaseException,
874
+ errorCode: errorCode,
876
875
  });
877
- throw __decorateServiceException(response, parsedBody.Error);
876
+ _d.label = 5;
877
+ case 5: return [2];
878
878
  }
879
879
  });
880
880
  }); };
@@ -897,7 +897,7 @@ export var deserializeAws_queryCreateChangeSetCommand = function (output, contex
897
897
  });
898
898
  }); };
899
899
  var deserializeAws_queryCreateChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
900
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
900
+ var parsedOutput, _a, errorCode, _b, parsedBody;
901
901
  var _c;
902
902
  return __generator(this, function (_d) {
903
903
  switch (_d.label) {
@@ -926,14 +926,14 @@ var deserializeAws_queryCreateChangeSetCommandError = function (output, context)
926
926
  case 7: throw _d.sent();
927
927
  case 8:
928
928
  parsedBody = parsedOutput.body;
929
- $metadata = deserializeMetadata(output);
930
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
931
- response = new __BaseException({
932
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
933
- $fault: "client",
934
- $metadata: $metadata,
929
+ throwDefaultError({
930
+ output: output,
931
+ parsedBody: parsedBody.Error,
932
+ exceptionCtor: __BaseException,
933
+ errorCode: errorCode,
935
934
  });
936
- throw __decorateServiceException(response, parsedBody.Error);
935
+ _d.label = 9;
936
+ case 9: return [2];
937
937
  }
938
938
  });
939
939
  }); };
@@ -956,7 +956,7 @@ export var deserializeAws_queryCreateStackCommand = function (output, context) {
956
956
  });
957
957
  }); };
958
958
  var deserializeAws_queryCreateStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
959
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
959
+ var parsedOutput, _a, errorCode, _b, parsedBody;
960
960
  var _c;
961
961
  return __generator(this, function (_d) {
962
962
  switch (_d.label) {
@@ -989,14 +989,14 @@ var deserializeAws_queryCreateStackCommandError = function (output, context) { r
989
989
  case 9: throw _d.sent();
990
990
  case 10:
991
991
  parsedBody = parsedOutput.body;
992
- $metadata = deserializeMetadata(output);
993
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
994
- response = new __BaseException({
995
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
996
- $fault: "client",
997
- $metadata: $metadata,
992
+ throwDefaultError({
993
+ output: output,
994
+ parsedBody: parsedBody.Error,
995
+ exceptionCtor: __BaseException,
996
+ errorCode: errorCode,
998
997
  });
999
- throw __decorateServiceException(response, parsedBody.Error);
998
+ _d.label = 11;
999
+ case 11: return [2];
1000
1000
  }
1001
1001
  });
1002
1002
  }); };
@@ -1019,7 +1019,7 @@ export var deserializeAws_queryCreateStackInstancesCommand = function (output, c
1019
1019
  });
1020
1020
  }); };
1021
1021
  var deserializeAws_queryCreateStackInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1022
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1022
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1023
1023
  var _c;
1024
1024
  return __generator(this, function (_d) {
1025
1025
  switch (_d.label) {
@@ -1060,14 +1060,14 @@ var deserializeAws_queryCreateStackInstancesCommandError = function (output, con
1060
1060
  case 13: throw _d.sent();
1061
1061
  case 14:
1062
1062
  parsedBody = parsedOutput.body;
1063
- $metadata = deserializeMetadata(output);
1064
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1065
- response = new __BaseException({
1066
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1067
- $fault: "client",
1068
- $metadata: $metadata,
1063
+ throwDefaultError({
1064
+ output: output,
1065
+ parsedBody: parsedBody.Error,
1066
+ exceptionCtor: __BaseException,
1067
+ errorCode: errorCode,
1069
1068
  });
1070
- throw __decorateServiceException(response, parsedBody.Error);
1069
+ _d.label = 15;
1070
+ case 15: return [2];
1071
1071
  }
1072
1072
  });
1073
1073
  }); };
@@ -1090,7 +1090,7 @@ export var deserializeAws_queryCreateStackSetCommand = function (output, context
1090
1090
  });
1091
1091
  }); };
1092
1092
  var deserializeAws_queryCreateStackSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1093
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1093
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1094
1094
  var _c;
1095
1095
  return __generator(this, function (_d) {
1096
1096
  switch (_d.label) {
@@ -1119,14 +1119,14 @@ var deserializeAws_queryCreateStackSetCommandError = function (output, context)
1119
1119
  case 7: throw _d.sent();
1120
1120
  case 8:
1121
1121
  parsedBody = parsedOutput.body;
1122
- $metadata = deserializeMetadata(output);
1123
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1124
- response = new __BaseException({
1125
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1126
- $fault: "client",
1127
- $metadata: $metadata,
1122
+ throwDefaultError({
1123
+ output: output,
1124
+ parsedBody: parsedBody.Error,
1125
+ exceptionCtor: __BaseException,
1126
+ errorCode: errorCode,
1128
1127
  });
1129
- throw __decorateServiceException(response, parsedBody.Error);
1128
+ _d.label = 9;
1129
+ case 9: return [2];
1130
1130
  }
1131
1131
  });
1132
1132
  }); };
@@ -1149,7 +1149,7 @@ export var deserializeAws_queryDeactivateTypeCommand = function (output, context
1149
1149
  });
1150
1150
  }); };
1151
1151
  var deserializeAws_queryDeactivateTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1152
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1152
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1153
1153
  var _c;
1154
1154
  return __generator(this, function (_d) {
1155
1155
  switch (_d.label) {
@@ -1174,14 +1174,14 @@ var deserializeAws_queryDeactivateTypeCommandError = function (output, context)
1174
1174
  case 5: throw _d.sent();
1175
1175
  case 6:
1176
1176
  parsedBody = parsedOutput.body;
1177
- $metadata = deserializeMetadata(output);
1178
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1179
- response = new __BaseException({
1180
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1181
- $fault: "client",
1182
- $metadata: $metadata,
1177
+ throwDefaultError({
1178
+ output: output,
1179
+ parsedBody: parsedBody.Error,
1180
+ exceptionCtor: __BaseException,
1181
+ errorCode: errorCode,
1183
1182
  });
1184
- throw __decorateServiceException(response, parsedBody.Error);
1183
+ _d.label = 7;
1184
+ case 7: return [2];
1185
1185
  }
1186
1186
  });
1187
1187
  }); };
@@ -1204,7 +1204,7 @@ export var deserializeAws_queryDeleteChangeSetCommand = function (output, contex
1204
1204
  });
1205
1205
  }); };
1206
1206
  var deserializeAws_queryDeleteChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1207
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1207
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1208
1208
  var _c;
1209
1209
  return __generator(this, function (_d) {
1210
1210
  switch (_d.label) {
@@ -1225,14 +1225,14 @@ var deserializeAws_queryDeleteChangeSetCommandError = function (output, context)
1225
1225
  case 3: throw _d.sent();
1226
1226
  case 4:
1227
1227
  parsedBody = parsedOutput.body;
1228
- $metadata = deserializeMetadata(output);
1229
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1230
- response = new __BaseException({
1231
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1232
- $fault: "client",
1233
- $metadata: $metadata,
1228
+ throwDefaultError({
1229
+ output: output,
1230
+ parsedBody: parsedBody.Error,
1231
+ exceptionCtor: __BaseException,
1232
+ errorCode: errorCode,
1234
1233
  });
1235
- throw __decorateServiceException(response, parsedBody.Error);
1234
+ _d.label = 5;
1235
+ case 5: return [2];
1236
1236
  }
1237
1237
  });
1238
1238
  }); };
@@ -1255,7 +1255,7 @@ export var deserializeAws_queryDeleteStackCommand = function (output, context) {
1255
1255
  });
1256
1256
  }); };
1257
1257
  var deserializeAws_queryDeleteStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1258
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1258
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1259
1259
  var _c;
1260
1260
  return __generator(this, function (_d) {
1261
1261
  switch (_d.label) {
@@ -1276,14 +1276,14 @@ var deserializeAws_queryDeleteStackCommandError = function (output, context) { r
1276
1276
  case 3: throw _d.sent();
1277
1277
  case 4:
1278
1278
  parsedBody = parsedOutput.body;
1279
- $metadata = deserializeMetadata(output);
1280
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1281
- response = new __BaseException({
1282
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1283
- $fault: "client",
1284
- $metadata: $metadata,
1279
+ throwDefaultError({
1280
+ output: output,
1281
+ parsedBody: parsedBody.Error,
1282
+ exceptionCtor: __BaseException,
1283
+ errorCode: errorCode,
1285
1284
  });
1286
- throw __decorateServiceException(response, parsedBody.Error);
1285
+ _d.label = 5;
1286
+ case 5: return [2];
1287
1287
  }
1288
1288
  });
1289
1289
  }); };
@@ -1306,7 +1306,7 @@ export var deserializeAws_queryDeleteStackInstancesCommand = function (output, c
1306
1306
  });
1307
1307
  }); };
1308
1308
  var deserializeAws_queryDeleteStackInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1309
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1309
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1310
1310
  var _c;
1311
1311
  return __generator(this, function (_d) {
1312
1312
  switch (_d.label) {
@@ -1343,14 +1343,14 @@ var deserializeAws_queryDeleteStackInstancesCommandError = function (output, con
1343
1343
  case 11: throw _d.sent();
1344
1344
  case 12:
1345
1345
  parsedBody = parsedOutput.body;
1346
- $metadata = deserializeMetadata(output);
1347
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1348
- response = new __BaseException({
1349
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1350
- $fault: "client",
1351
- $metadata: $metadata,
1346
+ throwDefaultError({
1347
+ output: output,
1348
+ parsedBody: parsedBody.Error,
1349
+ exceptionCtor: __BaseException,
1350
+ errorCode: errorCode,
1352
1351
  });
1353
- throw __decorateServiceException(response, parsedBody.Error);
1352
+ _d.label = 13;
1353
+ case 13: return [2];
1354
1354
  }
1355
1355
  });
1356
1356
  }); };
@@ -1373,7 +1373,7 @@ export var deserializeAws_queryDeleteStackSetCommand = function (output, context
1373
1373
  });
1374
1374
  }); };
1375
1375
  var deserializeAws_queryDeleteStackSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1376
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1376
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1377
1377
  var _c;
1378
1378
  return __generator(this, function (_d) {
1379
1379
  switch (_d.label) {
@@ -1398,14 +1398,14 @@ var deserializeAws_queryDeleteStackSetCommandError = function (output, context)
1398
1398
  case 5: throw _d.sent();
1399
1399
  case 6:
1400
1400
  parsedBody = parsedOutput.body;
1401
- $metadata = deserializeMetadata(output);
1402
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1403
- response = new __BaseException({
1404
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1405
- $fault: "client",
1406
- $metadata: $metadata,
1401
+ throwDefaultError({
1402
+ output: output,
1403
+ parsedBody: parsedBody.Error,
1404
+ exceptionCtor: __BaseException,
1405
+ errorCode: errorCode,
1407
1406
  });
1408
- throw __decorateServiceException(response, parsedBody.Error);
1407
+ _d.label = 7;
1408
+ case 7: return [2];
1409
1409
  }
1410
1410
  });
1411
1411
  }); };
@@ -1428,7 +1428,7 @@ export var deserializeAws_queryDeregisterTypeCommand = function (output, context
1428
1428
  });
1429
1429
  }); };
1430
1430
  var deserializeAws_queryDeregisterTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1431
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1431
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1432
1432
  var _c;
1433
1433
  return __generator(this, function (_d) {
1434
1434
  switch (_d.label) {
@@ -1453,14 +1453,14 @@ var deserializeAws_queryDeregisterTypeCommandError = function (output, context)
1453
1453
  case 5: throw _d.sent();
1454
1454
  case 6:
1455
1455
  parsedBody = parsedOutput.body;
1456
- $metadata = deserializeMetadata(output);
1457
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1458
- response = new __BaseException({
1459
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1460
- $fault: "client",
1461
- $metadata: $metadata,
1456
+ throwDefaultError({
1457
+ output: output,
1458
+ parsedBody: parsedBody.Error,
1459
+ exceptionCtor: __BaseException,
1460
+ errorCode: errorCode,
1462
1461
  });
1463
- throw __decorateServiceException(response, parsedBody.Error);
1462
+ _d.label = 7;
1463
+ case 7: return [2];
1464
1464
  }
1465
1465
  });
1466
1466
  }); };
@@ -1483,7 +1483,7 @@ export var deserializeAws_queryDescribeAccountLimitsCommand = function (output,
1483
1483
  });
1484
1484
  }); };
1485
1485
  var deserializeAws_queryDescribeAccountLimitsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1486
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1486
+ var parsedOutput, _a, errorCode, parsedBody;
1487
1487
  var _b;
1488
1488
  return __generator(this, function (_c) {
1489
1489
  switch (_c.label) {
@@ -1494,18 +1494,13 @@ var deserializeAws_queryDescribeAccountLimitsCommandError = function (output, co
1494
1494
  case 1:
1495
1495
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1496
1496
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1497
- switch (errorCode) {
1498
- default:
1499
- parsedBody = parsedOutput.body;
1500
- $metadata = deserializeMetadata(output);
1501
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1502
- response = new __BaseException({
1503
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1504
- $fault: "client",
1505
- $metadata: $metadata,
1506
- });
1507
- throw __decorateServiceException(response, parsedBody.Error);
1508
- }
1497
+ parsedBody = parsedOutput.body;
1498
+ throwDefaultError({
1499
+ output: output,
1500
+ parsedBody: parsedBody.Error,
1501
+ exceptionCtor: __BaseException,
1502
+ errorCode: errorCode,
1503
+ });
1509
1504
  return [2];
1510
1505
  }
1511
1506
  });
@@ -1529,7 +1524,7 @@ export var deserializeAws_queryDescribeChangeSetCommand = function (output, cont
1529
1524
  });
1530
1525
  }); };
1531
1526
  var deserializeAws_queryDescribeChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1532
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1527
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1533
1528
  var _c;
1534
1529
  return __generator(this, function (_d) {
1535
1530
  switch (_d.label) {
@@ -1550,14 +1545,14 @@ var deserializeAws_queryDescribeChangeSetCommandError = function (output, contex
1550
1545
  case 3: throw _d.sent();
1551
1546
  case 4:
1552
1547
  parsedBody = parsedOutput.body;
1553
- $metadata = deserializeMetadata(output);
1554
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1555
- response = new __BaseException({
1556
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1557
- $fault: "client",
1558
- $metadata: $metadata,
1548
+ throwDefaultError({
1549
+ output: output,
1550
+ parsedBody: parsedBody.Error,
1551
+ exceptionCtor: __BaseException,
1552
+ errorCode: errorCode,
1559
1553
  });
1560
- throw __decorateServiceException(response, parsedBody.Error);
1554
+ _d.label = 5;
1555
+ case 5: return [2];
1561
1556
  }
1562
1557
  });
1563
1558
  }); };
@@ -1580,7 +1575,7 @@ export var deserializeAws_queryDescribeChangeSetHooksCommand = function (output,
1580
1575
  });
1581
1576
  }); };
1582
1577
  var deserializeAws_queryDescribeChangeSetHooksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1583
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1578
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1584
1579
  var _c;
1585
1580
  return __generator(this, function (_d) {
1586
1581
  switch (_d.label) {
@@ -1601,14 +1596,14 @@ var deserializeAws_queryDescribeChangeSetHooksCommandError = function (output, c
1601
1596
  case 3: throw _d.sent();
1602
1597
  case 4:
1603
1598
  parsedBody = parsedOutput.body;
1604
- $metadata = deserializeMetadata(output);
1605
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1606
- response = new __BaseException({
1607
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1608
- $fault: "client",
1609
- $metadata: $metadata,
1599
+ throwDefaultError({
1600
+ output: output,
1601
+ parsedBody: parsedBody.Error,
1602
+ exceptionCtor: __BaseException,
1603
+ errorCode: errorCode,
1610
1604
  });
1611
- throw __decorateServiceException(response, parsedBody.Error);
1605
+ _d.label = 5;
1606
+ case 5: return [2];
1612
1607
  }
1613
1608
  });
1614
1609
  }); };
@@ -1631,7 +1626,7 @@ export var deserializeAws_queryDescribePublisherCommand = function (output, cont
1631
1626
  });
1632
1627
  }); };
1633
1628
  var deserializeAws_queryDescribePublisherCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1634
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1629
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1635
1630
  var _c;
1636
1631
  return __generator(this, function (_d) {
1637
1632
  switch (_d.label) {
@@ -1652,14 +1647,14 @@ var deserializeAws_queryDescribePublisherCommandError = function (output, contex
1652
1647
  case 3: throw _d.sent();
1653
1648
  case 4:
1654
1649
  parsedBody = parsedOutput.body;
1655
- $metadata = deserializeMetadata(output);
1656
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1657
- response = new __BaseException({
1658
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1659
- $fault: "client",
1660
- $metadata: $metadata,
1650
+ throwDefaultError({
1651
+ output: output,
1652
+ parsedBody: parsedBody.Error,
1653
+ exceptionCtor: __BaseException,
1654
+ errorCode: errorCode,
1661
1655
  });
1662
- throw __decorateServiceException(response, parsedBody.Error);
1656
+ _d.label = 5;
1657
+ case 5: return [2];
1663
1658
  }
1664
1659
  });
1665
1660
  }); };
@@ -1682,7 +1677,7 @@ export var deserializeAws_queryDescribeStackDriftDetectionStatusCommand = functi
1682
1677
  });
1683
1678
  }); };
1684
1679
  var deserializeAws_queryDescribeStackDriftDetectionStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1685
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1680
+ var parsedOutput, _a, errorCode, parsedBody;
1686
1681
  var _b;
1687
1682
  return __generator(this, function (_c) {
1688
1683
  switch (_c.label) {
@@ -1693,18 +1688,13 @@ var deserializeAws_queryDescribeStackDriftDetectionStatusCommandError = function
1693
1688
  case 1:
1694
1689
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1695
1690
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1696
- switch (errorCode) {
1697
- default:
1698
- parsedBody = parsedOutput.body;
1699
- $metadata = deserializeMetadata(output);
1700
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1701
- response = new __BaseException({
1702
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1703
- $fault: "client",
1704
- $metadata: $metadata,
1705
- });
1706
- throw __decorateServiceException(response, parsedBody.Error);
1707
- }
1691
+ parsedBody = parsedOutput.body;
1692
+ throwDefaultError({
1693
+ output: output,
1694
+ parsedBody: parsedBody.Error,
1695
+ exceptionCtor: __BaseException,
1696
+ errorCode: errorCode,
1697
+ });
1708
1698
  return [2];
1709
1699
  }
1710
1700
  });
@@ -1728,7 +1718,7 @@ export var deserializeAws_queryDescribeStackEventsCommand = function (output, co
1728
1718
  });
1729
1719
  }); };
1730
1720
  var deserializeAws_queryDescribeStackEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1731
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1721
+ var parsedOutput, _a, errorCode, parsedBody;
1732
1722
  var _b;
1733
1723
  return __generator(this, function (_c) {
1734
1724
  switch (_c.label) {
@@ -1739,18 +1729,13 @@ var deserializeAws_queryDescribeStackEventsCommandError = function (output, cont
1739
1729
  case 1:
1740
1730
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1741
1731
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1742
- switch (errorCode) {
1743
- default:
1744
- parsedBody = parsedOutput.body;
1745
- $metadata = deserializeMetadata(output);
1746
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1747
- response = new __BaseException({
1748
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1749
- $fault: "client",
1750
- $metadata: $metadata,
1751
- });
1752
- throw __decorateServiceException(response, parsedBody.Error);
1753
- }
1732
+ parsedBody = parsedOutput.body;
1733
+ throwDefaultError({
1734
+ output: output,
1735
+ parsedBody: parsedBody.Error,
1736
+ exceptionCtor: __BaseException,
1737
+ errorCode: errorCode,
1738
+ });
1754
1739
  return [2];
1755
1740
  }
1756
1741
  });
@@ -1774,7 +1759,7 @@ export var deserializeAws_queryDescribeStackInstanceCommand = function (output,
1774
1759
  });
1775
1760
  }); };
1776
1761
  var deserializeAws_queryDescribeStackInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1777
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1762
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1778
1763
  var _c;
1779
1764
  return __generator(this, function (_d) {
1780
1765
  switch (_d.label) {
@@ -1799,14 +1784,14 @@ var deserializeAws_queryDescribeStackInstanceCommandError = function (output, co
1799
1784
  case 5: throw _d.sent();
1800
1785
  case 6:
1801
1786
  parsedBody = parsedOutput.body;
1802
- $metadata = deserializeMetadata(output);
1803
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1804
- response = new __BaseException({
1805
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1806
- $fault: "client",
1807
- $metadata: $metadata,
1787
+ throwDefaultError({
1788
+ output: output,
1789
+ parsedBody: parsedBody.Error,
1790
+ exceptionCtor: __BaseException,
1791
+ errorCode: errorCode,
1808
1792
  });
1809
- throw __decorateServiceException(response, parsedBody.Error);
1793
+ _d.label = 7;
1794
+ case 7: return [2];
1810
1795
  }
1811
1796
  });
1812
1797
  }); };
@@ -1829,7 +1814,7 @@ export var deserializeAws_queryDescribeStackResourceCommand = function (output,
1829
1814
  });
1830
1815
  }); };
1831
1816
  var deserializeAws_queryDescribeStackResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1832
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1817
+ var parsedOutput, _a, errorCode, parsedBody;
1833
1818
  var _b;
1834
1819
  return __generator(this, function (_c) {
1835
1820
  switch (_c.label) {
@@ -1840,18 +1825,13 @@ var deserializeAws_queryDescribeStackResourceCommandError = function (output, co
1840
1825
  case 1:
1841
1826
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1842
1827
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1843
- switch (errorCode) {
1844
- default:
1845
- parsedBody = parsedOutput.body;
1846
- $metadata = deserializeMetadata(output);
1847
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1848
- response = new __BaseException({
1849
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1850
- $fault: "client",
1851
- $metadata: $metadata,
1852
- });
1853
- throw __decorateServiceException(response, parsedBody.Error);
1854
- }
1828
+ parsedBody = parsedOutput.body;
1829
+ throwDefaultError({
1830
+ output: output,
1831
+ parsedBody: parsedBody.Error,
1832
+ exceptionCtor: __BaseException,
1833
+ errorCode: errorCode,
1834
+ });
1855
1835
  return [2];
1856
1836
  }
1857
1837
  });
@@ -1875,7 +1855,7 @@ export var deserializeAws_queryDescribeStackResourceDriftsCommand = function (ou
1875
1855
  });
1876
1856
  }); };
1877
1857
  var deserializeAws_queryDescribeStackResourceDriftsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1878
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1858
+ var parsedOutput, _a, errorCode, parsedBody;
1879
1859
  var _b;
1880
1860
  return __generator(this, function (_c) {
1881
1861
  switch (_c.label) {
@@ -1886,18 +1866,13 @@ var deserializeAws_queryDescribeStackResourceDriftsCommandError = function (outp
1886
1866
  case 1:
1887
1867
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1888
1868
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1889
- switch (errorCode) {
1890
- default:
1891
- parsedBody = parsedOutput.body;
1892
- $metadata = deserializeMetadata(output);
1893
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1894
- response = new __BaseException({
1895
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1896
- $fault: "client",
1897
- $metadata: $metadata,
1898
- });
1899
- throw __decorateServiceException(response, parsedBody.Error);
1900
- }
1869
+ parsedBody = parsedOutput.body;
1870
+ throwDefaultError({
1871
+ output: output,
1872
+ parsedBody: parsedBody.Error,
1873
+ exceptionCtor: __BaseException,
1874
+ errorCode: errorCode,
1875
+ });
1901
1876
  return [2];
1902
1877
  }
1903
1878
  });
@@ -1921,7 +1896,7 @@ export var deserializeAws_queryDescribeStackResourcesCommand = function (output,
1921
1896
  });
1922
1897
  }); };
1923
1898
  var deserializeAws_queryDescribeStackResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1924
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1899
+ var parsedOutput, _a, errorCode, parsedBody;
1925
1900
  var _b;
1926
1901
  return __generator(this, function (_c) {
1927
1902
  switch (_c.label) {
@@ -1932,18 +1907,13 @@ var deserializeAws_queryDescribeStackResourcesCommandError = function (output, c
1932
1907
  case 1:
1933
1908
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1934
1909
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1935
- switch (errorCode) {
1936
- default:
1937
- parsedBody = parsedOutput.body;
1938
- $metadata = deserializeMetadata(output);
1939
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1940
- response = new __BaseException({
1941
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1942
- $fault: "client",
1943
- $metadata: $metadata,
1944
- });
1945
- throw __decorateServiceException(response, parsedBody.Error);
1946
- }
1910
+ parsedBody = parsedOutput.body;
1911
+ throwDefaultError({
1912
+ output: output,
1913
+ parsedBody: parsedBody.Error,
1914
+ exceptionCtor: __BaseException,
1915
+ errorCode: errorCode,
1916
+ });
1947
1917
  return [2];
1948
1918
  }
1949
1919
  });
@@ -1967,7 +1937,7 @@ export var deserializeAws_queryDescribeStacksCommand = function (output, context
1967
1937
  });
1968
1938
  }); };
1969
1939
  var deserializeAws_queryDescribeStacksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1970
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1940
+ var parsedOutput, _a, errorCode, parsedBody;
1971
1941
  var _b;
1972
1942
  return __generator(this, function (_c) {
1973
1943
  switch (_c.label) {
@@ -1978,18 +1948,13 @@ var deserializeAws_queryDescribeStacksCommandError = function (output, context)
1978
1948
  case 1:
1979
1949
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1980
1950
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1981
- switch (errorCode) {
1982
- default:
1983
- parsedBody = parsedOutput.body;
1984
- $metadata = deserializeMetadata(output);
1985
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1986
- response = new __BaseException({
1987
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1988
- $fault: "client",
1989
- $metadata: $metadata,
1990
- });
1991
- throw __decorateServiceException(response, parsedBody.Error);
1992
- }
1951
+ parsedBody = parsedOutput.body;
1952
+ throwDefaultError({
1953
+ output: output,
1954
+ parsedBody: parsedBody.Error,
1955
+ exceptionCtor: __BaseException,
1956
+ errorCode: errorCode,
1957
+ });
1993
1958
  return [2];
1994
1959
  }
1995
1960
  });
@@ -2013,7 +1978,7 @@ export var deserializeAws_queryDescribeStackSetCommand = function (output, conte
2013
1978
  });
2014
1979
  }); };
2015
1980
  var deserializeAws_queryDescribeStackSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2016
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1981
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2017
1982
  var _c;
2018
1983
  return __generator(this, function (_d) {
2019
1984
  switch (_d.label) {
@@ -2034,14 +1999,14 @@ var deserializeAws_queryDescribeStackSetCommandError = function (output, context
2034
1999
  case 3: throw _d.sent();
2035
2000
  case 4:
2036
2001
  parsedBody = parsedOutput.body;
2037
- $metadata = deserializeMetadata(output);
2038
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2039
- response = new __BaseException({
2040
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2041
- $fault: "client",
2042
- $metadata: $metadata,
2002
+ throwDefaultError({
2003
+ output: output,
2004
+ parsedBody: parsedBody.Error,
2005
+ exceptionCtor: __BaseException,
2006
+ errorCode: errorCode,
2043
2007
  });
2044
- throw __decorateServiceException(response, parsedBody.Error);
2008
+ _d.label = 5;
2009
+ case 5: return [2];
2045
2010
  }
2046
2011
  });
2047
2012
  }); };
@@ -2064,7 +2029,7 @@ export var deserializeAws_queryDescribeStackSetOperationCommand = function (outp
2064
2029
  });
2065
2030
  }); };
2066
2031
  var deserializeAws_queryDescribeStackSetOperationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2067
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2032
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2068
2033
  var _c;
2069
2034
  return __generator(this, function (_d) {
2070
2035
  switch (_d.label) {
@@ -2089,14 +2054,14 @@ var deserializeAws_queryDescribeStackSetOperationCommandError = function (output
2089
2054
  case 5: throw _d.sent();
2090
2055
  case 6:
2091
2056
  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,
2057
+ throwDefaultError({
2058
+ output: output,
2059
+ parsedBody: parsedBody.Error,
2060
+ exceptionCtor: __BaseException,
2061
+ errorCode: errorCode,
2098
2062
  });
2099
- throw __decorateServiceException(response, parsedBody.Error);
2063
+ _d.label = 7;
2064
+ case 7: return [2];
2100
2065
  }
2101
2066
  });
2102
2067
  }); };
@@ -2119,7 +2084,7 @@ export var deserializeAws_queryDescribeTypeCommand = function (output, context)
2119
2084
  });
2120
2085
  }); };
2121
2086
  var deserializeAws_queryDescribeTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2122
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2087
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2123
2088
  var _c;
2124
2089
  return __generator(this, function (_d) {
2125
2090
  switch (_d.label) {
@@ -2144,14 +2109,14 @@ var deserializeAws_queryDescribeTypeCommandError = function (output, context) {
2144
2109
  case 5: throw _d.sent();
2145
2110
  case 6:
2146
2111
  parsedBody = parsedOutput.body;
2147
- $metadata = deserializeMetadata(output);
2148
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2149
- response = new __BaseException({
2150
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2151
- $fault: "client",
2152
- $metadata: $metadata,
2112
+ throwDefaultError({
2113
+ output: output,
2114
+ parsedBody: parsedBody.Error,
2115
+ exceptionCtor: __BaseException,
2116
+ errorCode: errorCode,
2153
2117
  });
2154
- throw __decorateServiceException(response, parsedBody.Error);
2118
+ _d.label = 7;
2119
+ case 7: return [2];
2155
2120
  }
2156
2121
  });
2157
2122
  }); };
@@ -2174,7 +2139,7 @@ export var deserializeAws_queryDescribeTypeRegistrationCommand = function (outpu
2174
2139
  });
2175
2140
  }); };
2176
2141
  var deserializeAws_queryDescribeTypeRegistrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2177
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2142
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2178
2143
  var _c;
2179
2144
  return __generator(this, function (_d) {
2180
2145
  switch (_d.label) {
@@ -2195,14 +2160,14 @@ var deserializeAws_queryDescribeTypeRegistrationCommandError = function (output,
2195
2160
  case 3: throw _d.sent();
2196
2161
  case 4:
2197
2162
  parsedBody = parsedOutput.body;
2198
- $metadata = deserializeMetadata(output);
2199
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2200
- response = new __BaseException({
2201
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2202
- $fault: "client",
2203
- $metadata: $metadata,
2163
+ throwDefaultError({
2164
+ output: output,
2165
+ parsedBody: parsedBody.Error,
2166
+ exceptionCtor: __BaseException,
2167
+ errorCode: errorCode,
2204
2168
  });
2205
- throw __decorateServiceException(response, parsedBody.Error);
2169
+ _d.label = 5;
2170
+ case 5: return [2];
2206
2171
  }
2207
2172
  });
2208
2173
  }); };
@@ -2225,7 +2190,7 @@ export var deserializeAws_queryDetectStackDriftCommand = function (output, conte
2225
2190
  });
2226
2191
  }); };
2227
2192
  var deserializeAws_queryDetectStackDriftCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2228
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2193
+ var parsedOutput, _a, errorCode, parsedBody;
2229
2194
  var _b;
2230
2195
  return __generator(this, function (_c) {
2231
2196
  switch (_c.label) {
@@ -2236,18 +2201,13 @@ var deserializeAws_queryDetectStackDriftCommandError = function (output, context
2236
2201
  case 1:
2237
2202
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2238
2203
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2239
- switch (errorCode) {
2240
- default:
2241
- parsedBody = parsedOutput.body;
2242
- $metadata = deserializeMetadata(output);
2243
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2244
- response = new __BaseException({
2245
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2246
- $fault: "client",
2247
- $metadata: $metadata,
2248
- });
2249
- throw __decorateServiceException(response, parsedBody.Error);
2250
- }
2204
+ parsedBody = parsedOutput.body;
2205
+ throwDefaultError({
2206
+ output: output,
2207
+ parsedBody: parsedBody.Error,
2208
+ exceptionCtor: __BaseException,
2209
+ errorCode: errorCode,
2210
+ });
2251
2211
  return [2];
2252
2212
  }
2253
2213
  });
@@ -2271,7 +2231,7 @@ export var deserializeAws_queryDetectStackResourceDriftCommand = function (outpu
2271
2231
  });
2272
2232
  }); };
2273
2233
  var deserializeAws_queryDetectStackResourceDriftCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2274
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2234
+ var parsedOutput, _a, errorCode, parsedBody;
2275
2235
  var _b;
2276
2236
  return __generator(this, function (_c) {
2277
2237
  switch (_c.label) {
@@ -2282,18 +2242,13 @@ var deserializeAws_queryDetectStackResourceDriftCommandError = function (output,
2282
2242
  case 1:
2283
2243
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2284
2244
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2285
- switch (errorCode) {
2286
- default:
2287
- parsedBody = parsedOutput.body;
2288
- $metadata = deserializeMetadata(output);
2289
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2290
- response = new __BaseException({
2291
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2292
- $fault: "client",
2293
- $metadata: $metadata,
2294
- });
2295
- throw __decorateServiceException(response, parsedBody.Error);
2296
- }
2245
+ parsedBody = parsedOutput.body;
2246
+ throwDefaultError({
2247
+ output: output,
2248
+ parsedBody: parsedBody.Error,
2249
+ exceptionCtor: __BaseException,
2250
+ errorCode: errorCode,
2251
+ });
2297
2252
  return [2];
2298
2253
  }
2299
2254
  });
@@ -2317,7 +2272,7 @@ export var deserializeAws_queryDetectStackSetDriftCommand = function (output, co
2317
2272
  });
2318
2273
  }); };
2319
2274
  var deserializeAws_queryDetectStackSetDriftCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2320
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2275
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2321
2276
  var _c;
2322
2277
  return __generator(this, function (_d) {
2323
2278
  switch (_d.label) {
@@ -2346,14 +2301,14 @@ var deserializeAws_queryDetectStackSetDriftCommandError = function (output, cont
2346
2301
  case 7: throw _d.sent();
2347
2302
  case 8:
2348
2303
  parsedBody = parsedOutput.body;
2349
- $metadata = deserializeMetadata(output);
2350
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2351
- response = new __BaseException({
2352
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2353
- $fault: "client",
2354
- $metadata: $metadata,
2304
+ throwDefaultError({
2305
+ output: output,
2306
+ parsedBody: parsedBody.Error,
2307
+ exceptionCtor: __BaseException,
2308
+ errorCode: errorCode,
2355
2309
  });
2356
- throw __decorateServiceException(response, parsedBody.Error);
2310
+ _d.label = 9;
2311
+ case 9: return [2];
2357
2312
  }
2358
2313
  });
2359
2314
  }); };
@@ -2376,7 +2331,7 @@ export var deserializeAws_queryEstimateTemplateCostCommand = function (output, c
2376
2331
  });
2377
2332
  }); };
2378
2333
  var deserializeAws_queryEstimateTemplateCostCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2379
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2334
+ var parsedOutput, _a, errorCode, parsedBody;
2380
2335
  var _b;
2381
2336
  return __generator(this, function (_c) {
2382
2337
  switch (_c.label) {
@@ -2387,18 +2342,13 @@ var deserializeAws_queryEstimateTemplateCostCommandError = function (output, con
2387
2342
  case 1:
2388
2343
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2389
2344
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2390
- switch (errorCode) {
2391
- default:
2392
- parsedBody = parsedOutput.body;
2393
- $metadata = deserializeMetadata(output);
2394
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2395
- response = new __BaseException({
2396
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2397
- $fault: "client",
2398
- $metadata: $metadata,
2399
- });
2400
- throw __decorateServiceException(response, parsedBody.Error);
2401
- }
2345
+ parsedBody = parsedOutput.body;
2346
+ throwDefaultError({
2347
+ output: output,
2348
+ parsedBody: parsedBody.Error,
2349
+ exceptionCtor: __BaseException,
2350
+ errorCode: errorCode,
2351
+ });
2402
2352
  return [2];
2403
2353
  }
2404
2354
  });
@@ -2422,7 +2372,7 @@ export var deserializeAws_queryExecuteChangeSetCommand = function (output, conte
2422
2372
  });
2423
2373
  }); };
2424
2374
  var deserializeAws_queryExecuteChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2425
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2375
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2426
2376
  var _c;
2427
2377
  return __generator(this, function (_d) {
2428
2378
  switch (_d.label) {
@@ -2455,14 +2405,14 @@ var deserializeAws_queryExecuteChangeSetCommandError = function (output, context
2455
2405
  case 9: throw _d.sent();
2456
2406
  case 10:
2457
2407
  parsedBody = parsedOutput.body;
2458
- $metadata = deserializeMetadata(output);
2459
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2460
- response = new __BaseException({
2461
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2462
- $fault: "client",
2463
- $metadata: $metadata,
2408
+ throwDefaultError({
2409
+ output: output,
2410
+ parsedBody: parsedBody.Error,
2411
+ exceptionCtor: __BaseException,
2412
+ errorCode: errorCode,
2464
2413
  });
2465
- throw __decorateServiceException(response, parsedBody.Error);
2414
+ _d.label = 11;
2415
+ case 11: return [2];
2466
2416
  }
2467
2417
  });
2468
2418
  }); };
@@ -2485,7 +2435,7 @@ export var deserializeAws_queryGetStackPolicyCommand = function (output, context
2485
2435
  });
2486
2436
  }); };
2487
2437
  var deserializeAws_queryGetStackPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2488
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2438
+ var parsedOutput, _a, errorCode, parsedBody;
2489
2439
  var _b;
2490
2440
  return __generator(this, function (_c) {
2491
2441
  switch (_c.label) {
@@ -2496,18 +2446,13 @@ var deserializeAws_queryGetStackPolicyCommandError = function (output, context)
2496
2446
  case 1:
2497
2447
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2498
2448
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2499
- switch (errorCode) {
2500
- default:
2501
- parsedBody = parsedOutput.body;
2502
- $metadata = deserializeMetadata(output);
2503
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2504
- response = new __BaseException({
2505
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2506
- $fault: "client",
2507
- $metadata: $metadata,
2508
- });
2509
- throw __decorateServiceException(response, parsedBody.Error);
2510
- }
2449
+ parsedBody = parsedOutput.body;
2450
+ throwDefaultError({
2451
+ output: output,
2452
+ parsedBody: parsedBody.Error,
2453
+ exceptionCtor: __BaseException,
2454
+ errorCode: errorCode,
2455
+ });
2511
2456
  return [2];
2512
2457
  }
2513
2458
  });
@@ -2531,7 +2476,7 @@ export var deserializeAws_queryGetTemplateCommand = function (output, context) {
2531
2476
  });
2532
2477
  }); };
2533
2478
  var deserializeAws_queryGetTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2534
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2479
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2535
2480
  var _c;
2536
2481
  return __generator(this, function (_d) {
2537
2482
  switch (_d.label) {
@@ -2552,14 +2497,14 @@ var deserializeAws_queryGetTemplateCommandError = function (output, context) { r
2552
2497
  case 3: throw _d.sent();
2553
2498
  case 4:
2554
2499
  parsedBody = parsedOutput.body;
2555
- $metadata = deserializeMetadata(output);
2556
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2557
- response = new __BaseException({
2558
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2559
- $fault: "client",
2560
- $metadata: $metadata,
2500
+ throwDefaultError({
2501
+ output: output,
2502
+ parsedBody: parsedBody.Error,
2503
+ exceptionCtor: __BaseException,
2504
+ errorCode: errorCode,
2561
2505
  });
2562
- throw __decorateServiceException(response, parsedBody.Error);
2506
+ _d.label = 5;
2507
+ case 5: return [2];
2563
2508
  }
2564
2509
  });
2565
2510
  }); };
@@ -2582,7 +2527,7 @@ export var deserializeAws_queryGetTemplateSummaryCommand = function (output, con
2582
2527
  });
2583
2528
  }); };
2584
2529
  var deserializeAws_queryGetTemplateSummaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2585
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2530
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2586
2531
  var _c;
2587
2532
  return __generator(this, function (_d) {
2588
2533
  switch (_d.label) {
@@ -2603,14 +2548,14 @@ var deserializeAws_queryGetTemplateSummaryCommandError = function (output, conte
2603
2548
  case 3: throw _d.sent();
2604
2549
  case 4:
2605
2550
  parsedBody = parsedOutput.body;
2606
- $metadata = deserializeMetadata(output);
2607
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2608
- response = new __BaseException({
2609
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2610
- $fault: "client",
2611
- $metadata: $metadata,
2551
+ throwDefaultError({
2552
+ output: output,
2553
+ parsedBody: parsedBody.Error,
2554
+ exceptionCtor: __BaseException,
2555
+ errorCode: errorCode,
2612
2556
  });
2613
- throw __decorateServiceException(response, parsedBody.Error);
2557
+ _d.label = 5;
2558
+ case 5: return [2];
2614
2559
  }
2615
2560
  });
2616
2561
  }); };
@@ -2633,7 +2578,7 @@ export var deserializeAws_queryImportStacksToStackSetCommand = function (output,
2633
2578
  });
2634
2579
  }); };
2635
2580
  var deserializeAws_queryImportStacksToStackSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2636
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2581
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2637
2582
  var _c;
2638
2583
  return __generator(this, function (_d) {
2639
2584
  switch (_d.label) {
@@ -2678,14 +2623,14 @@ var deserializeAws_queryImportStacksToStackSetCommandError = function (output, c
2678
2623
  case 15: throw _d.sent();
2679
2624
  case 16:
2680
2625
  parsedBody = parsedOutput.body;
2681
- $metadata = deserializeMetadata(output);
2682
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2683
- response = new __BaseException({
2684
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2685
- $fault: "client",
2686
- $metadata: $metadata,
2626
+ throwDefaultError({
2627
+ output: output,
2628
+ parsedBody: parsedBody.Error,
2629
+ exceptionCtor: __BaseException,
2630
+ errorCode: errorCode,
2687
2631
  });
2688
- throw __decorateServiceException(response, parsedBody.Error);
2632
+ _d.label = 17;
2633
+ case 17: return [2];
2689
2634
  }
2690
2635
  });
2691
2636
  }); };
@@ -2708,7 +2653,7 @@ export var deserializeAws_queryListChangeSetsCommand = function (output, context
2708
2653
  });
2709
2654
  }); };
2710
2655
  var deserializeAws_queryListChangeSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2711
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2656
+ var parsedOutput, _a, errorCode, parsedBody;
2712
2657
  var _b;
2713
2658
  return __generator(this, function (_c) {
2714
2659
  switch (_c.label) {
@@ -2719,18 +2664,13 @@ var deserializeAws_queryListChangeSetsCommandError = function (output, context)
2719
2664
  case 1:
2720
2665
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2721
2666
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2722
- switch (errorCode) {
2723
- default:
2724
- parsedBody = parsedOutput.body;
2725
- $metadata = deserializeMetadata(output);
2726
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2727
- response = new __BaseException({
2728
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2729
- $fault: "client",
2730
- $metadata: $metadata,
2731
- });
2732
- throw __decorateServiceException(response, parsedBody.Error);
2733
- }
2667
+ parsedBody = parsedOutput.body;
2668
+ throwDefaultError({
2669
+ output: output,
2670
+ parsedBody: parsedBody.Error,
2671
+ exceptionCtor: __BaseException,
2672
+ errorCode: errorCode,
2673
+ });
2734
2674
  return [2];
2735
2675
  }
2736
2676
  });
@@ -2754,7 +2694,7 @@ export var deserializeAws_queryListExportsCommand = function (output, context) {
2754
2694
  });
2755
2695
  }); };
2756
2696
  var deserializeAws_queryListExportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2757
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2697
+ var parsedOutput, _a, errorCode, parsedBody;
2758
2698
  var _b;
2759
2699
  return __generator(this, function (_c) {
2760
2700
  switch (_c.label) {
@@ -2765,18 +2705,13 @@ var deserializeAws_queryListExportsCommandError = function (output, context) { r
2765
2705
  case 1:
2766
2706
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2767
2707
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2768
- switch (errorCode) {
2769
- default:
2770
- parsedBody = parsedOutput.body;
2771
- $metadata = deserializeMetadata(output);
2772
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2773
- response = new __BaseException({
2774
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2775
- $fault: "client",
2776
- $metadata: $metadata,
2777
- });
2778
- throw __decorateServiceException(response, parsedBody.Error);
2779
- }
2708
+ parsedBody = parsedOutput.body;
2709
+ throwDefaultError({
2710
+ output: output,
2711
+ parsedBody: parsedBody.Error,
2712
+ exceptionCtor: __BaseException,
2713
+ errorCode: errorCode,
2714
+ });
2780
2715
  return [2];
2781
2716
  }
2782
2717
  });
@@ -2800,7 +2735,7 @@ export var deserializeAws_queryListImportsCommand = function (output, context) {
2800
2735
  });
2801
2736
  }); };
2802
2737
  var deserializeAws_queryListImportsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2803
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2738
+ var parsedOutput, _a, errorCode, parsedBody;
2804
2739
  var _b;
2805
2740
  return __generator(this, function (_c) {
2806
2741
  switch (_c.label) {
@@ -2811,18 +2746,13 @@ var deserializeAws_queryListImportsCommandError = function (output, context) { r
2811
2746
  case 1:
2812
2747
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2813
2748
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2814
- switch (errorCode) {
2815
- default:
2816
- parsedBody = parsedOutput.body;
2817
- $metadata = deserializeMetadata(output);
2818
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2819
- response = new __BaseException({
2820
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2821
- $fault: "client",
2822
- $metadata: $metadata,
2823
- });
2824
- throw __decorateServiceException(response, parsedBody.Error);
2825
- }
2749
+ parsedBody = parsedOutput.body;
2750
+ throwDefaultError({
2751
+ output: output,
2752
+ parsedBody: parsedBody.Error,
2753
+ exceptionCtor: __BaseException,
2754
+ errorCode: errorCode,
2755
+ });
2826
2756
  return [2];
2827
2757
  }
2828
2758
  });
@@ -2846,7 +2776,7 @@ export var deserializeAws_queryListStackInstancesCommand = function (output, con
2846
2776
  });
2847
2777
  }); };
2848
2778
  var deserializeAws_queryListStackInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2849
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2779
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2850
2780
  var _c;
2851
2781
  return __generator(this, function (_d) {
2852
2782
  switch (_d.label) {
@@ -2867,14 +2797,14 @@ var deserializeAws_queryListStackInstancesCommandError = function (output, conte
2867
2797
  case 3: throw _d.sent();
2868
2798
  case 4:
2869
2799
  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,
2800
+ throwDefaultError({
2801
+ output: output,
2802
+ parsedBody: parsedBody.Error,
2803
+ exceptionCtor: __BaseException,
2804
+ errorCode: errorCode,
2876
2805
  });
2877
- throw __decorateServiceException(response, parsedBody.Error);
2806
+ _d.label = 5;
2807
+ case 5: return [2];
2878
2808
  }
2879
2809
  });
2880
2810
  }); };
@@ -2897,7 +2827,7 @@ export var deserializeAws_queryListStackResourcesCommand = function (output, con
2897
2827
  });
2898
2828
  }); };
2899
2829
  var deserializeAws_queryListStackResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2900
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2830
+ var parsedOutput, _a, errorCode, parsedBody;
2901
2831
  var _b;
2902
2832
  return __generator(this, function (_c) {
2903
2833
  switch (_c.label) {
@@ -2908,18 +2838,13 @@ var deserializeAws_queryListStackResourcesCommandError = function (output, conte
2908
2838
  case 1:
2909
2839
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2910
2840
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2911
- switch (errorCode) {
2912
- default:
2913
- parsedBody = parsedOutput.body;
2914
- $metadata = deserializeMetadata(output);
2915
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2916
- response = new __BaseException({
2917
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2918
- $fault: "client",
2919
- $metadata: $metadata,
2920
- });
2921
- throw __decorateServiceException(response, parsedBody.Error);
2922
- }
2841
+ parsedBody = parsedOutput.body;
2842
+ throwDefaultError({
2843
+ output: output,
2844
+ parsedBody: parsedBody.Error,
2845
+ exceptionCtor: __BaseException,
2846
+ errorCode: errorCode,
2847
+ });
2923
2848
  return [2];
2924
2849
  }
2925
2850
  });
@@ -2943,7 +2868,7 @@ export var deserializeAws_queryListStacksCommand = function (output, context) {
2943
2868
  });
2944
2869
  }); };
2945
2870
  var deserializeAws_queryListStacksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2946
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
2871
+ var parsedOutput, _a, errorCode, parsedBody;
2947
2872
  var _b;
2948
2873
  return __generator(this, function (_c) {
2949
2874
  switch (_c.label) {
@@ -2954,18 +2879,13 @@ var deserializeAws_queryListStacksCommandError = function (output, context) { re
2954
2879
  case 1:
2955
2880
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
2956
2881
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
2957
- switch (errorCode) {
2958
- default:
2959
- parsedBody = parsedOutput.body;
2960
- $metadata = deserializeMetadata(output);
2961
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2962
- response = new __BaseException({
2963
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2964
- $fault: "client",
2965
- $metadata: $metadata,
2966
- });
2967
- throw __decorateServiceException(response, parsedBody.Error);
2968
- }
2882
+ parsedBody = parsedOutput.body;
2883
+ throwDefaultError({
2884
+ output: output,
2885
+ parsedBody: parsedBody.Error,
2886
+ exceptionCtor: __BaseException,
2887
+ errorCode: errorCode,
2888
+ });
2969
2889
  return [2];
2970
2890
  }
2971
2891
  });
@@ -2989,7 +2909,7 @@ export var deserializeAws_queryListStackSetOperationResultsCommand = function (o
2989
2909
  });
2990
2910
  }); };
2991
2911
  var deserializeAws_queryListStackSetOperationResultsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2992
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2912
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2993
2913
  var _c;
2994
2914
  return __generator(this, function (_d) {
2995
2915
  switch (_d.label) {
@@ -3014,14 +2934,14 @@ var deserializeAws_queryListStackSetOperationResultsCommandError = function (out
3014
2934
  case 5: throw _d.sent();
3015
2935
  case 6:
3016
2936
  parsedBody = parsedOutput.body;
3017
- $metadata = deserializeMetadata(output);
3018
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3019
- response = new __BaseException({
3020
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3021
- $fault: "client",
3022
- $metadata: $metadata,
2937
+ throwDefaultError({
2938
+ output: output,
2939
+ parsedBody: parsedBody.Error,
2940
+ exceptionCtor: __BaseException,
2941
+ errorCode: errorCode,
3023
2942
  });
3024
- throw __decorateServiceException(response, parsedBody.Error);
2943
+ _d.label = 7;
2944
+ case 7: return [2];
3025
2945
  }
3026
2946
  });
3027
2947
  }); };
@@ -3044,7 +2964,7 @@ export var deserializeAws_queryListStackSetOperationsCommand = function (output,
3044
2964
  });
3045
2965
  }); };
3046
2966
  var deserializeAws_queryListStackSetOperationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3047
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2967
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3048
2968
  var _c;
3049
2969
  return __generator(this, function (_d) {
3050
2970
  switch (_d.label) {
@@ -3065,14 +2985,14 @@ var deserializeAws_queryListStackSetOperationsCommandError = function (output, c
3065
2985
  case 3: throw _d.sent();
3066
2986
  case 4:
3067
2987
  parsedBody = parsedOutput.body;
3068
- $metadata = deserializeMetadata(output);
3069
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3070
- response = new __BaseException({
3071
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3072
- $fault: "client",
3073
- $metadata: $metadata,
2988
+ throwDefaultError({
2989
+ output: output,
2990
+ parsedBody: parsedBody.Error,
2991
+ exceptionCtor: __BaseException,
2992
+ errorCode: errorCode,
3074
2993
  });
3075
- throw __decorateServiceException(response, parsedBody.Error);
2994
+ _d.label = 5;
2995
+ case 5: return [2];
3076
2996
  }
3077
2997
  });
3078
2998
  }); };
@@ -3095,7 +3015,7 @@ export var deserializeAws_queryListStackSetsCommand = function (output, context)
3095
3015
  });
3096
3016
  }); };
3097
3017
  var deserializeAws_queryListStackSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3098
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
3018
+ var parsedOutput, _a, errorCode, parsedBody;
3099
3019
  var _b;
3100
3020
  return __generator(this, function (_c) {
3101
3021
  switch (_c.label) {
@@ -3106,18 +3026,13 @@ var deserializeAws_queryListStackSetsCommandError = function (output, context) {
3106
3026
  case 1:
3107
3027
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
3108
3028
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3109
- switch (errorCode) {
3110
- default:
3111
- parsedBody = parsedOutput.body;
3112
- $metadata = deserializeMetadata(output);
3113
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3114
- response = new __BaseException({
3115
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3116
- $fault: "client",
3117
- $metadata: $metadata,
3118
- });
3119
- throw __decorateServiceException(response, parsedBody.Error);
3120
- }
3029
+ parsedBody = parsedOutput.body;
3030
+ throwDefaultError({
3031
+ output: output,
3032
+ parsedBody: parsedBody.Error,
3033
+ exceptionCtor: __BaseException,
3034
+ errorCode: errorCode,
3035
+ });
3121
3036
  return [2];
3122
3037
  }
3123
3038
  });
@@ -3141,7 +3056,7 @@ export var deserializeAws_queryListTypeRegistrationsCommand = function (output,
3141
3056
  });
3142
3057
  }); };
3143
3058
  var deserializeAws_queryListTypeRegistrationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3144
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3059
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3145
3060
  var _c;
3146
3061
  return __generator(this, function (_d) {
3147
3062
  switch (_d.label) {
@@ -3162,14 +3077,14 @@ var deserializeAws_queryListTypeRegistrationsCommandError = function (output, co
3162
3077
  case 3: throw _d.sent();
3163
3078
  case 4:
3164
3079
  parsedBody = parsedOutput.body;
3165
- $metadata = deserializeMetadata(output);
3166
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3167
- response = new __BaseException({
3168
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3169
- $fault: "client",
3170
- $metadata: $metadata,
3080
+ throwDefaultError({
3081
+ output: output,
3082
+ parsedBody: parsedBody.Error,
3083
+ exceptionCtor: __BaseException,
3084
+ errorCode: errorCode,
3171
3085
  });
3172
- throw __decorateServiceException(response, parsedBody.Error);
3086
+ _d.label = 5;
3087
+ case 5: return [2];
3173
3088
  }
3174
3089
  });
3175
3090
  }); };
@@ -3192,7 +3107,7 @@ export var deserializeAws_queryListTypesCommand = function (output, context) { r
3192
3107
  });
3193
3108
  }); };
3194
3109
  var deserializeAws_queryListTypesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3195
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3110
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3196
3111
  var _c;
3197
3112
  return __generator(this, function (_d) {
3198
3113
  switch (_d.label) {
@@ -3213,14 +3128,14 @@ var deserializeAws_queryListTypesCommandError = function (output, context) { ret
3213
3128
  case 3: throw _d.sent();
3214
3129
  case 4:
3215
3130
  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,
3131
+ throwDefaultError({
3132
+ output: output,
3133
+ parsedBody: parsedBody.Error,
3134
+ exceptionCtor: __BaseException,
3135
+ errorCode: errorCode,
3222
3136
  });
3223
- throw __decorateServiceException(response, parsedBody.Error);
3137
+ _d.label = 5;
3138
+ case 5: return [2];
3224
3139
  }
3225
3140
  });
3226
3141
  }); };
@@ -3243,7 +3158,7 @@ export var deserializeAws_queryListTypeVersionsCommand = function (output, conte
3243
3158
  });
3244
3159
  }); };
3245
3160
  var deserializeAws_queryListTypeVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3246
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3161
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3247
3162
  var _c;
3248
3163
  return __generator(this, function (_d) {
3249
3164
  switch (_d.label) {
@@ -3264,14 +3179,14 @@ var deserializeAws_queryListTypeVersionsCommandError = function (output, context
3264
3179
  case 3: throw _d.sent();
3265
3180
  case 4:
3266
3181
  parsedBody = parsedOutput.body;
3267
- $metadata = deserializeMetadata(output);
3268
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3269
- response = new __BaseException({
3270
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3271
- $fault: "client",
3272
- $metadata: $metadata,
3182
+ throwDefaultError({
3183
+ output: output,
3184
+ parsedBody: parsedBody.Error,
3185
+ exceptionCtor: __BaseException,
3186
+ errorCode: errorCode,
3273
3187
  });
3274
- throw __decorateServiceException(response, parsedBody.Error);
3188
+ _d.label = 5;
3189
+ case 5: return [2];
3275
3190
  }
3276
3191
  });
3277
3192
  }); };
@@ -3294,7 +3209,7 @@ export var deserializeAws_queryPublishTypeCommand = function (output, context) {
3294
3209
  });
3295
3210
  }); };
3296
3211
  var deserializeAws_queryPublishTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3297
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3212
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3298
3213
  var _c;
3299
3214
  return __generator(this, function (_d) {
3300
3215
  switch (_d.label) {
@@ -3319,14 +3234,14 @@ var deserializeAws_queryPublishTypeCommandError = function (output, context) { r
3319
3234
  case 5: throw _d.sent();
3320
3235
  case 6:
3321
3236
  parsedBody = parsedOutput.body;
3322
- $metadata = deserializeMetadata(output);
3323
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3324
- response = new __BaseException({
3325
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3326
- $fault: "client",
3327
- $metadata: $metadata,
3237
+ throwDefaultError({
3238
+ output: output,
3239
+ parsedBody: parsedBody.Error,
3240
+ exceptionCtor: __BaseException,
3241
+ errorCode: errorCode,
3328
3242
  });
3329
- throw __decorateServiceException(response, parsedBody.Error);
3243
+ _d.label = 7;
3244
+ case 7: return [2];
3330
3245
  }
3331
3246
  });
3332
3247
  }); };
@@ -3349,7 +3264,7 @@ export var deserializeAws_queryRecordHandlerProgressCommand = function (output,
3349
3264
  });
3350
3265
  }); };
3351
3266
  var deserializeAws_queryRecordHandlerProgressCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3352
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3267
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3353
3268
  var _c;
3354
3269
  return __generator(this, function (_d) {
3355
3270
  switch (_d.label) {
@@ -3374,14 +3289,14 @@ var deserializeAws_queryRecordHandlerProgressCommandError = function (output, co
3374
3289
  case 5: throw _d.sent();
3375
3290
  case 6:
3376
3291
  parsedBody = parsedOutput.body;
3377
- $metadata = deserializeMetadata(output);
3378
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3379
- response = new __BaseException({
3380
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3381
- $fault: "client",
3382
- $metadata: $metadata,
3292
+ throwDefaultError({
3293
+ output: output,
3294
+ parsedBody: parsedBody.Error,
3295
+ exceptionCtor: __BaseException,
3296
+ errorCode: errorCode,
3383
3297
  });
3384
- throw __decorateServiceException(response, parsedBody.Error);
3298
+ _d.label = 7;
3299
+ case 7: return [2];
3385
3300
  }
3386
3301
  });
3387
3302
  }); };
@@ -3404,7 +3319,7 @@ export var deserializeAws_queryRegisterPublisherCommand = function (output, cont
3404
3319
  });
3405
3320
  }); };
3406
3321
  var deserializeAws_queryRegisterPublisherCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3407
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3322
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3408
3323
  var _c;
3409
3324
  return __generator(this, function (_d) {
3410
3325
  switch (_d.label) {
@@ -3425,14 +3340,14 @@ var deserializeAws_queryRegisterPublisherCommandError = function (output, contex
3425
3340
  case 3: throw _d.sent();
3426
3341
  case 4:
3427
3342
  parsedBody = parsedOutput.body;
3428
- $metadata = deserializeMetadata(output);
3429
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3430
- response = new __BaseException({
3431
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3432
- $fault: "client",
3433
- $metadata: $metadata,
3343
+ throwDefaultError({
3344
+ output: output,
3345
+ parsedBody: parsedBody.Error,
3346
+ exceptionCtor: __BaseException,
3347
+ errorCode: errorCode,
3434
3348
  });
3435
- throw __decorateServiceException(response, parsedBody.Error);
3349
+ _d.label = 5;
3350
+ case 5: return [2];
3436
3351
  }
3437
3352
  });
3438
3353
  }); };
@@ -3455,7 +3370,7 @@ export var deserializeAws_queryRegisterTypeCommand = function (output, context)
3455
3370
  });
3456
3371
  }); };
3457
3372
  var deserializeAws_queryRegisterTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3458
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3373
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3459
3374
  var _c;
3460
3375
  return __generator(this, function (_d) {
3461
3376
  switch (_d.label) {
@@ -3476,14 +3391,14 @@ var deserializeAws_queryRegisterTypeCommandError = function (output, context) {
3476
3391
  case 3: throw _d.sent();
3477
3392
  case 4:
3478
3393
  parsedBody = parsedOutput.body;
3479
- $metadata = deserializeMetadata(output);
3480
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3481
- response = new __BaseException({
3482
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3483
- $fault: "client",
3484
- $metadata: $metadata,
3394
+ throwDefaultError({
3395
+ output: output,
3396
+ parsedBody: parsedBody.Error,
3397
+ exceptionCtor: __BaseException,
3398
+ errorCode: errorCode,
3485
3399
  });
3486
- throw __decorateServiceException(response, parsedBody.Error);
3400
+ _d.label = 5;
3401
+ case 5: return [2];
3487
3402
  }
3488
3403
  });
3489
3404
  }); };
@@ -3506,7 +3421,7 @@ export var deserializeAws_queryRollbackStackCommand = function (output, context)
3506
3421
  });
3507
3422
  }); };
3508
3423
  var deserializeAws_queryRollbackStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3509
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3424
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3510
3425
  var _c;
3511
3426
  return __generator(this, function (_d) {
3512
3427
  switch (_d.label) {
@@ -3527,14 +3442,14 @@ var deserializeAws_queryRollbackStackCommandError = function (output, context) {
3527
3442
  case 3: throw _d.sent();
3528
3443
  case 4:
3529
3444
  parsedBody = parsedOutput.body;
3530
- $metadata = deserializeMetadata(output);
3531
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3532
- response = new __BaseException({
3533
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3534
- $fault: "client",
3535
- $metadata: $metadata,
3445
+ throwDefaultError({
3446
+ output: output,
3447
+ parsedBody: parsedBody.Error,
3448
+ exceptionCtor: __BaseException,
3449
+ errorCode: errorCode,
3536
3450
  });
3537
- throw __decorateServiceException(response, parsedBody.Error);
3451
+ _d.label = 5;
3452
+ case 5: return [2];
3538
3453
  }
3539
3454
  });
3540
3455
  }); };
@@ -3557,7 +3472,7 @@ export var deserializeAws_querySetStackPolicyCommand = function (output, context
3557
3472
  });
3558
3473
  }); };
3559
3474
  var deserializeAws_querySetStackPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3560
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
3475
+ var parsedOutput, _a, errorCode, parsedBody;
3561
3476
  var _b;
3562
3477
  return __generator(this, function (_c) {
3563
3478
  switch (_c.label) {
@@ -3568,18 +3483,13 @@ var deserializeAws_querySetStackPolicyCommandError = function (output, context)
3568
3483
  case 1:
3569
3484
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
3570
3485
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3571
- switch (errorCode) {
3572
- default:
3573
- 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,
3580
- });
3581
- throw __decorateServiceException(response, parsedBody.Error);
3582
- }
3486
+ parsedBody = parsedOutput.body;
3487
+ throwDefaultError({
3488
+ output: output,
3489
+ parsedBody: parsedBody.Error,
3490
+ exceptionCtor: __BaseException,
3491
+ errorCode: errorCode,
3492
+ });
3583
3493
  return [2];
3584
3494
  }
3585
3495
  });
@@ -3603,7 +3513,7 @@ export var deserializeAws_querySetTypeConfigurationCommand = function (output, c
3603
3513
  });
3604
3514
  }); };
3605
3515
  var deserializeAws_querySetTypeConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3606
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3516
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3607
3517
  var _c;
3608
3518
  return __generator(this, function (_d) {
3609
3519
  switch (_d.label) {
@@ -3628,14 +3538,14 @@ var deserializeAws_querySetTypeConfigurationCommandError = function (output, con
3628
3538
  case 5: throw _d.sent();
3629
3539
  case 6:
3630
3540
  parsedBody = parsedOutput.body;
3631
- $metadata = deserializeMetadata(output);
3632
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3633
- response = new __BaseException({
3634
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3635
- $fault: "client",
3636
- $metadata: $metadata,
3541
+ throwDefaultError({
3542
+ output: output,
3543
+ parsedBody: parsedBody.Error,
3544
+ exceptionCtor: __BaseException,
3545
+ errorCode: errorCode,
3637
3546
  });
3638
- throw __decorateServiceException(response, parsedBody.Error);
3547
+ _d.label = 7;
3548
+ case 7: return [2];
3639
3549
  }
3640
3550
  });
3641
3551
  }); };
@@ -3658,7 +3568,7 @@ export var deserializeAws_querySetTypeDefaultVersionCommand = function (output,
3658
3568
  });
3659
3569
  }); };
3660
3570
  var deserializeAws_querySetTypeDefaultVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3661
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3571
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3662
3572
  var _c;
3663
3573
  return __generator(this, function (_d) {
3664
3574
  switch (_d.label) {
@@ -3683,14 +3593,14 @@ var deserializeAws_querySetTypeDefaultVersionCommandError = function (output, co
3683
3593
  case 5: throw _d.sent();
3684
3594
  case 6:
3685
3595
  parsedBody = parsedOutput.body;
3686
- $metadata = deserializeMetadata(output);
3687
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3688
- response = new __BaseException({
3689
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3690
- $fault: "client",
3691
- $metadata: $metadata,
3596
+ throwDefaultError({
3597
+ output: output,
3598
+ parsedBody: parsedBody.Error,
3599
+ exceptionCtor: __BaseException,
3600
+ errorCode: errorCode,
3692
3601
  });
3693
- throw __decorateServiceException(response, parsedBody.Error);
3602
+ _d.label = 7;
3603
+ case 7: return [2];
3694
3604
  }
3695
3605
  });
3696
3606
  }); };
@@ -3713,7 +3623,7 @@ export var deserializeAws_querySignalResourceCommand = function (output, context
3713
3623
  });
3714
3624
  }); };
3715
3625
  var deserializeAws_querySignalResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3716
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
3626
+ var parsedOutput, _a, errorCode, parsedBody;
3717
3627
  var _b;
3718
3628
  return __generator(this, function (_c) {
3719
3629
  switch (_c.label) {
@@ -3724,18 +3634,13 @@ var deserializeAws_querySignalResourceCommandError = function (output, context)
3724
3634
  case 1:
3725
3635
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
3726
3636
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
3727
- switch (errorCode) {
3728
- default:
3729
- parsedBody = parsedOutput.body;
3730
- $metadata = deserializeMetadata(output);
3731
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3732
- response = new __BaseException({
3733
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3734
- $fault: "client",
3735
- $metadata: $metadata,
3736
- });
3737
- throw __decorateServiceException(response, parsedBody.Error);
3738
- }
3637
+ parsedBody = parsedOutput.body;
3638
+ throwDefaultError({
3639
+ output: output,
3640
+ parsedBody: parsedBody.Error,
3641
+ exceptionCtor: __BaseException,
3642
+ errorCode: errorCode,
3643
+ });
3739
3644
  return [2];
3740
3645
  }
3741
3646
  });
@@ -3759,7 +3664,7 @@ export var deserializeAws_queryStopStackSetOperationCommand = function (output,
3759
3664
  });
3760
3665
  }); };
3761
3666
  var deserializeAws_queryStopStackSetOperationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3762
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3667
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3763
3668
  var _c;
3764
3669
  return __generator(this, function (_d) {
3765
3670
  switch (_d.label) {
@@ -3788,14 +3693,14 @@ var deserializeAws_queryStopStackSetOperationCommandError = function (output, co
3788
3693
  case 7: throw _d.sent();
3789
3694
  case 8:
3790
3695
  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,
3696
+ throwDefaultError({
3697
+ output: output,
3698
+ parsedBody: parsedBody.Error,
3699
+ exceptionCtor: __BaseException,
3700
+ errorCode: errorCode,
3797
3701
  });
3798
- throw __decorateServiceException(response, parsedBody.Error);
3702
+ _d.label = 9;
3703
+ case 9: return [2];
3799
3704
  }
3800
3705
  });
3801
3706
  }); };
@@ -3818,7 +3723,7 @@ export var deserializeAws_queryTestTypeCommand = function (output, context) { re
3818
3723
  });
3819
3724
  }); };
3820
3725
  var deserializeAws_queryTestTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3821
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3726
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3822
3727
  var _c;
3823
3728
  return __generator(this, function (_d) {
3824
3729
  switch (_d.label) {
@@ -3843,14 +3748,14 @@ var deserializeAws_queryTestTypeCommandError = function (output, context) { retu
3843
3748
  case 5: throw _d.sent();
3844
3749
  case 6:
3845
3750
  parsedBody = parsedOutput.body;
3846
- $metadata = deserializeMetadata(output);
3847
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3848
- response = new __BaseException({
3849
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3850
- $fault: "client",
3851
- $metadata: $metadata,
3751
+ throwDefaultError({
3752
+ output: output,
3753
+ parsedBody: parsedBody.Error,
3754
+ exceptionCtor: __BaseException,
3755
+ errorCode: errorCode,
3852
3756
  });
3853
- throw __decorateServiceException(response, parsedBody.Error);
3757
+ _d.label = 7;
3758
+ case 7: return [2];
3854
3759
  }
3855
3760
  });
3856
3761
  }); };
@@ -3873,7 +3778,7 @@ export var deserializeAws_queryUpdateStackCommand = function (output, context) {
3873
3778
  });
3874
3779
  }); };
3875
3780
  var deserializeAws_queryUpdateStackCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3876
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3781
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3877
3782
  var _c;
3878
3783
  return __generator(this, function (_d) {
3879
3784
  switch (_d.label) {
@@ -3898,14 +3803,14 @@ var deserializeAws_queryUpdateStackCommandError = function (output, context) { r
3898
3803
  case 5: throw _d.sent();
3899
3804
  case 6:
3900
3805
  parsedBody = parsedOutput.body;
3901
- $metadata = deserializeMetadata(output);
3902
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3903
- response = new __BaseException({
3904
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3905
- $fault: "client",
3906
- $metadata: $metadata,
3806
+ throwDefaultError({
3807
+ output: output,
3808
+ parsedBody: parsedBody.Error,
3809
+ exceptionCtor: __BaseException,
3810
+ errorCode: errorCode,
3907
3811
  });
3908
- throw __decorateServiceException(response, parsedBody.Error);
3812
+ _d.label = 7;
3813
+ case 7: return [2];
3909
3814
  }
3910
3815
  });
3911
3816
  }); };
@@ -3928,7 +3833,7 @@ export var deserializeAws_queryUpdateStackInstancesCommand = function (output, c
3928
3833
  });
3929
3834
  }); };
3930
3835
  var deserializeAws_queryUpdateStackInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3931
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3836
+ var parsedOutput, _a, errorCode, _b, parsedBody;
3932
3837
  var _c;
3933
3838
  return __generator(this, function (_d) {
3934
3839
  switch (_d.label) {
@@ -3969,14 +3874,14 @@ var deserializeAws_queryUpdateStackInstancesCommandError = function (output, con
3969
3874
  case 13: throw _d.sent();
3970
3875
  case 14:
3971
3876
  parsedBody = parsedOutput.body;
3972
- $metadata = deserializeMetadata(output);
3973
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3974
- response = new __BaseException({
3975
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
3976
- $fault: "client",
3977
- $metadata: $metadata,
3877
+ throwDefaultError({
3878
+ output: output,
3879
+ parsedBody: parsedBody.Error,
3880
+ exceptionCtor: __BaseException,
3881
+ errorCode: errorCode,
3978
3882
  });
3979
- throw __decorateServiceException(response, parsedBody.Error);
3883
+ _d.label = 15;
3884
+ case 15: return [2];
3980
3885
  }
3981
3886
  });
3982
3887
  }); };
@@ -3999,7 +3904,7 @@ export var deserializeAws_queryUpdateStackSetCommand = function (output, context
3999
3904
  });
4000
3905
  }); };
4001
3906
  var deserializeAws_queryUpdateStackSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4002
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3907
+ var parsedOutput, _a, errorCode, _b, parsedBody;
4003
3908
  var _c;
4004
3909
  return __generator(this, function (_d) {
4005
3910
  switch (_d.label) {
@@ -4040,14 +3945,14 @@ var deserializeAws_queryUpdateStackSetCommandError = function (output, context)
4040
3945
  case 13: throw _d.sent();
4041
3946
  case 14:
4042
3947
  parsedBody = parsedOutput.body;
4043
- $metadata = deserializeMetadata(output);
4044
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4045
- response = new __BaseException({
4046
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4047
- $fault: "client",
4048
- $metadata: $metadata,
3948
+ throwDefaultError({
3949
+ output: output,
3950
+ parsedBody: parsedBody.Error,
3951
+ exceptionCtor: __BaseException,
3952
+ errorCode: errorCode,
4049
3953
  });
4050
- throw __decorateServiceException(response, parsedBody.Error);
3954
+ _d.label = 15;
3955
+ case 15: return [2];
4051
3956
  }
4052
3957
  });
4053
3958
  }); };
@@ -4070,7 +3975,7 @@ export var deserializeAws_queryUpdateTerminationProtectionCommand = function (ou
4070
3975
  });
4071
3976
  }); };
4072
3977
  var deserializeAws_queryUpdateTerminationProtectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4073
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
3978
+ var parsedOutput, _a, errorCode, parsedBody;
4074
3979
  var _b;
4075
3980
  return __generator(this, function (_c) {
4076
3981
  switch (_c.label) {
@@ -4081,18 +3986,13 @@ var deserializeAws_queryUpdateTerminationProtectionCommandError = function (outp
4081
3986
  case 1:
4082
3987
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
4083
3988
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4084
- switch (errorCode) {
4085
- default:
4086
- parsedBody = parsedOutput.body;
4087
- $metadata = deserializeMetadata(output);
4088
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4089
- response = new __BaseException({
4090
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4091
- $fault: "client",
4092
- $metadata: $metadata,
4093
- });
4094
- throw __decorateServiceException(response, parsedBody.Error);
4095
- }
3989
+ parsedBody = parsedOutput.body;
3990
+ throwDefaultError({
3991
+ output: output,
3992
+ parsedBody: parsedBody.Error,
3993
+ exceptionCtor: __BaseException,
3994
+ errorCode: errorCode,
3995
+ });
4096
3996
  return [2];
4097
3997
  }
4098
3998
  });
@@ -4116,7 +4016,7 @@ export var deserializeAws_queryValidateTemplateCommand = function (output, conte
4116
4016
  });
4117
4017
  }); };
4118
4018
  var deserializeAws_queryValidateTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4119
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
4019
+ var parsedOutput, _a, errorCode, parsedBody;
4120
4020
  var _b;
4121
4021
  return __generator(this, function (_c) {
4122
4022
  switch (_c.label) {
@@ -4127,18 +4027,13 @@ var deserializeAws_queryValidateTemplateCommandError = function (output, context
4127
4027
  case 1:
4128
4028
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
4129
4029
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
4130
- switch (errorCode) {
4131
- default:
4132
- parsedBody = parsedOutput.body;
4133
- $metadata = deserializeMetadata(output);
4134
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4135
- response = new __BaseException({
4136
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
4137
- $fault: "client",
4138
- $metadata: $metadata,
4139
- });
4140
- throw __decorateServiceException(response, parsedBody.Error);
4141
- }
4030
+ parsedBody = parsedOutput.body;
4031
+ throwDefaultError({
4032
+ output: output,
4033
+ parsedBody: parsedBody.Error,
4034
+ exceptionCtor: __BaseException,
4035
+ errorCode: errorCode,
4036
+ });
4142
4037
  return [2];
4143
4038
  }
4144
4039
  });
@@ -4366,25 +4261,25 @@ var serializeAws_queryAccountList = function (input, context) {
4366
4261
  };
4367
4262
  var serializeAws_queryActivateTypeInput = function (input, context) {
4368
4263
  var entries = {};
4369
- if (input.Type !== undefined && input.Type !== null) {
4264
+ if (input.Type != null) {
4370
4265
  entries["Type"] = input.Type;
4371
4266
  }
4372
- if (input.PublicTypeArn !== undefined && input.PublicTypeArn !== null) {
4267
+ if (input.PublicTypeArn != null) {
4373
4268
  entries["PublicTypeArn"] = input.PublicTypeArn;
4374
4269
  }
4375
- if (input.PublisherId !== undefined && input.PublisherId !== null) {
4270
+ if (input.PublisherId != null) {
4376
4271
  entries["PublisherId"] = input.PublisherId;
4377
4272
  }
4378
- if (input.TypeName !== undefined && input.TypeName !== null) {
4273
+ if (input.TypeName != null) {
4379
4274
  entries["TypeName"] = input.TypeName;
4380
4275
  }
4381
- if (input.TypeNameAlias !== undefined && input.TypeNameAlias !== null) {
4276
+ if (input.TypeNameAlias != null) {
4382
4277
  entries["TypeNameAlias"] = input.TypeNameAlias;
4383
4278
  }
4384
- if (input.AutoUpdate !== undefined && input.AutoUpdate !== null) {
4279
+ if (input.AutoUpdate != null) {
4385
4280
  entries["AutoUpdate"] = input.AutoUpdate;
4386
4281
  }
4387
- if (input.LoggingConfig !== undefined && input.LoggingConfig !== null) {
4282
+ if (input.LoggingConfig != null) {
4388
4283
  var memberEntries = serializeAws_queryLoggingConfig(input.LoggingConfig, context);
4389
4284
  Object.entries(memberEntries).forEach(function (_a) {
4390
4285
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4392,30 +4287,30 @@ var serializeAws_queryActivateTypeInput = function (input, context) {
4392
4287
  entries[loc] = value;
4393
4288
  });
4394
4289
  }
4395
- if (input.ExecutionRoleArn !== undefined && input.ExecutionRoleArn !== null) {
4290
+ if (input.ExecutionRoleArn != null) {
4396
4291
  entries["ExecutionRoleArn"] = input.ExecutionRoleArn;
4397
4292
  }
4398
- if (input.VersionBump !== undefined && input.VersionBump !== null) {
4293
+ if (input.VersionBump != null) {
4399
4294
  entries["VersionBump"] = input.VersionBump;
4400
4295
  }
4401
- if (input.MajorVersion !== undefined && input.MajorVersion !== null) {
4296
+ if (input.MajorVersion != null) {
4402
4297
  entries["MajorVersion"] = input.MajorVersion;
4403
4298
  }
4404
4299
  return entries;
4405
4300
  };
4406
4301
  var serializeAws_queryAutoDeployment = function (input, context) {
4407
4302
  var entries = {};
4408
- if (input.Enabled !== undefined && input.Enabled !== null) {
4303
+ if (input.Enabled != null) {
4409
4304
  entries["Enabled"] = input.Enabled;
4410
4305
  }
4411
- if (input.RetainStacksOnAccountRemoval !== undefined && input.RetainStacksOnAccountRemoval !== null) {
4306
+ if (input.RetainStacksOnAccountRemoval != null) {
4412
4307
  entries["RetainStacksOnAccountRemoval"] = input.RetainStacksOnAccountRemoval;
4413
4308
  }
4414
4309
  return entries;
4415
4310
  };
4416
4311
  var serializeAws_queryBatchDescribeTypeConfigurationsInput = function (input, context) {
4417
4312
  var entries = {};
4418
- if (input.TypeConfigurationIdentifiers !== undefined && input.TypeConfigurationIdentifiers !== null) {
4313
+ if (input.TypeConfigurationIdentifiers != null) {
4419
4314
  var memberEntries = serializeAws_queryTypeConfigurationIdentifiers(input.TypeConfigurationIdentifiers, context);
4420
4315
  Object.entries(memberEntries).forEach(function (_a) {
4421
4316
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4427,10 +4322,10 @@ var serializeAws_queryBatchDescribeTypeConfigurationsInput = function (input, co
4427
4322
  };
4428
4323
  var serializeAws_queryCancelUpdateStackInput = function (input, context) {
4429
4324
  var entries = {};
4430
- if (input.StackName !== undefined && input.StackName !== null) {
4325
+ if (input.StackName != null) {
4431
4326
  entries["StackName"] = input.StackName;
4432
4327
  }
4433
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
4328
+ if (input.ClientRequestToken != null) {
4434
4329
  entries["ClientRequestToken"] = input.ClientRequestToken;
4435
4330
  }
4436
4331
  return entries;
@@ -4460,13 +4355,13 @@ var serializeAws_queryCapabilities = function (input, context) {
4460
4355
  };
4461
4356
  var serializeAws_queryContinueUpdateRollbackInput = function (input, context) {
4462
4357
  var entries = {};
4463
- if (input.StackName !== undefined && input.StackName !== null) {
4358
+ if (input.StackName != null) {
4464
4359
  entries["StackName"] = input.StackName;
4465
4360
  }
4466
- if (input.RoleARN !== undefined && input.RoleARN !== null) {
4361
+ if (input.RoleARN != null) {
4467
4362
  entries["RoleARN"] = input.RoleARN;
4468
4363
  }
4469
- if (input.ResourcesToSkip !== undefined && input.ResourcesToSkip !== null) {
4364
+ if (input.ResourcesToSkip != null) {
4470
4365
  var memberEntries = serializeAws_queryResourcesToSkip(input.ResourcesToSkip, context);
4471
4366
  Object.entries(memberEntries).forEach(function (_a) {
4472
4367
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4474,26 +4369,26 @@ var serializeAws_queryContinueUpdateRollbackInput = function (input, context) {
4474
4369
  entries[loc] = value;
4475
4370
  });
4476
4371
  }
4477
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
4372
+ if (input.ClientRequestToken != null) {
4478
4373
  entries["ClientRequestToken"] = input.ClientRequestToken;
4479
4374
  }
4480
4375
  return entries;
4481
4376
  };
4482
4377
  var serializeAws_queryCreateChangeSetInput = function (input, context) {
4483
4378
  var entries = {};
4484
- if (input.StackName !== undefined && input.StackName !== null) {
4379
+ if (input.StackName != null) {
4485
4380
  entries["StackName"] = input.StackName;
4486
4381
  }
4487
- if (input.TemplateBody !== undefined && input.TemplateBody !== null) {
4382
+ if (input.TemplateBody != null) {
4488
4383
  entries["TemplateBody"] = input.TemplateBody;
4489
4384
  }
4490
- if (input.TemplateURL !== undefined && input.TemplateURL !== null) {
4385
+ if (input.TemplateURL != null) {
4491
4386
  entries["TemplateURL"] = input.TemplateURL;
4492
4387
  }
4493
- if (input.UsePreviousTemplate !== undefined && input.UsePreviousTemplate !== null) {
4388
+ if (input.UsePreviousTemplate != null) {
4494
4389
  entries["UsePreviousTemplate"] = input.UsePreviousTemplate;
4495
4390
  }
4496
- if (input.Parameters !== undefined && input.Parameters !== null) {
4391
+ if (input.Parameters != null) {
4497
4392
  var memberEntries = serializeAws_queryParameters(input.Parameters, context);
4498
4393
  Object.entries(memberEntries).forEach(function (_a) {
4499
4394
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4501,7 +4396,7 @@ var serializeAws_queryCreateChangeSetInput = function (input, context) {
4501
4396
  entries[loc] = value;
4502
4397
  });
4503
4398
  }
4504
- if (input.Capabilities !== undefined && input.Capabilities !== null) {
4399
+ if (input.Capabilities != null) {
4505
4400
  var memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
4506
4401
  Object.entries(memberEntries).forEach(function (_a) {
4507
4402
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4509,7 +4404,7 @@ var serializeAws_queryCreateChangeSetInput = function (input, context) {
4509
4404
  entries[loc] = value;
4510
4405
  });
4511
4406
  }
4512
- if (input.ResourceTypes !== undefined && input.ResourceTypes !== null) {
4407
+ if (input.ResourceTypes != null) {
4513
4408
  var memberEntries = serializeAws_queryResourceTypes(input.ResourceTypes, context);
4514
4409
  Object.entries(memberEntries).forEach(function (_a) {
4515
4410
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4517,10 +4412,10 @@ var serializeAws_queryCreateChangeSetInput = function (input, context) {
4517
4412
  entries[loc] = value;
4518
4413
  });
4519
4414
  }
4520
- if (input.RoleARN !== undefined && input.RoleARN !== null) {
4415
+ if (input.RoleARN != null) {
4521
4416
  entries["RoleARN"] = input.RoleARN;
4522
4417
  }
4523
- if (input.RollbackConfiguration !== undefined && input.RollbackConfiguration !== null) {
4418
+ if (input.RollbackConfiguration != null) {
4524
4419
  var memberEntries = serializeAws_queryRollbackConfiguration(input.RollbackConfiguration, context);
4525
4420
  Object.entries(memberEntries).forEach(function (_a) {
4526
4421
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4528,7 +4423,7 @@ var serializeAws_queryCreateChangeSetInput = function (input, context) {
4528
4423
  entries[loc] = value;
4529
4424
  });
4530
4425
  }
4531
- if (input.NotificationARNs !== undefined && input.NotificationARNs !== null) {
4426
+ if (input.NotificationARNs != null) {
4532
4427
  var memberEntries = serializeAws_queryNotificationARNs(input.NotificationARNs, context);
4533
4428
  Object.entries(memberEntries).forEach(function (_a) {
4534
4429
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4536,7 +4431,7 @@ var serializeAws_queryCreateChangeSetInput = function (input, context) {
4536
4431
  entries[loc] = value;
4537
4432
  });
4538
4433
  }
4539
- if (input.Tags !== undefined && input.Tags !== null) {
4434
+ if (input.Tags != null) {
4540
4435
  var memberEntries = serializeAws_queryTags(input.Tags, context);
4541
4436
  Object.entries(memberEntries).forEach(function (_a) {
4542
4437
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4544,19 +4439,19 @@ var serializeAws_queryCreateChangeSetInput = function (input, context) {
4544
4439
  entries[loc] = value;
4545
4440
  });
4546
4441
  }
4547
- if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
4442
+ if (input.ChangeSetName != null) {
4548
4443
  entries["ChangeSetName"] = input.ChangeSetName;
4549
4444
  }
4550
- if (input.ClientToken !== undefined && input.ClientToken !== null) {
4445
+ if (input.ClientToken != null) {
4551
4446
  entries["ClientToken"] = input.ClientToken;
4552
4447
  }
4553
- if (input.Description !== undefined && input.Description !== null) {
4448
+ if (input.Description != null) {
4554
4449
  entries["Description"] = input.Description;
4555
4450
  }
4556
- if (input.ChangeSetType !== undefined && input.ChangeSetType !== null) {
4451
+ if (input.ChangeSetType != null) {
4557
4452
  entries["ChangeSetType"] = input.ChangeSetType;
4558
4453
  }
4559
- if (input.ResourcesToImport !== undefined && input.ResourcesToImport !== null) {
4454
+ if (input.ResourcesToImport != null) {
4560
4455
  var memberEntries = serializeAws_queryResourcesToImport(input.ResourcesToImport, context);
4561
4456
  Object.entries(memberEntries).forEach(function (_a) {
4562
4457
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4564,23 +4459,23 @@ var serializeAws_queryCreateChangeSetInput = function (input, context) {
4564
4459
  entries[loc] = value;
4565
4460
  });
4566
4461
  }
4567
- if (input.IncludeNestedStacks !== undefined && input.IncludeNestedStacks !== null) {
4462
+ if (input.IncludeNestedStacks != null) {
4568
4463
  entries["IncludeNestedStacks"] = input.IncludeNestedStacks;
4569
4464
  }
4570
4465
  return entries;
4571
4466
  };
4572
4467
  var serializeAws_queryCreateStackInput = function (input, context) {
4573
4468
  var entries = {};
4574
- if (input.StackName !== undefined && input.StackName !== null) {
4469
+ if (input.StackName != null) {
4575
4470
  entries["StackName"] = input.StackName;
4576
4471
  }
4577
- if (input.TemplateBody !== undefined && input.TemplateBody !== null) {
4472
+ if (input.TemplateBody != null) {
4578
4473
  entries["TemplateBody"] = input.TemplateBody;
4579
4474
  }
4580
- if (input.TemplateURL !== undefined && input.TemplateURL !== null) {
4475
+ if (input.TemplateURL != null) {
4581
4476
  entries["TemplateURL"] = input.TemplateURL;
4582
4477
  }
4583
- if (input.Parameters !== undefined && input.Parameters !== null) {
4478
+ if (input.Parameters != null) {
4584
4479
  var memberEntries = serializeAws_queryParameters(input.Parameters, context);
4585
4480
  Object.entries(memberEntries).forEach(function (_a) {
4586
4481
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4588,10 +4483,10 @@ var serializeAws_queryCreateStackInput = function (input, context) {
4588
4483
  entries[loc] = value;
4589
4484
  });
4590
4485
  }
4591
- if (input.DisableRollback !== undefined && input.DisableRollback !== null) {
4486
+ if (input.DisableRollback != null) {
4592
4487
  entries["DisableRollback"] = input.DisableRollback;
4593
4488
  }
4594
- if (input.RollbackConfiguration !== undefined && input.RollbackConfiguration !== null) {
4489
+ if (input.RollbackConfiguration != null) {
4595
4490
  var memberEntries = serializeAws_queryRollbackConfiguration(input.RollbackConfiguration, context);
4596
4491
  Object.entries(memberEntries).forEach(function (_a) {
4597
4492
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4599,10 +4494,10 @@ var serializeAws_queryCreateStackInput = function (input, context) {
4599
4494
  entries[loc] = value;
4600
4495
  });
4601
4496
  }
4602
- if (input.TimeoutInMinutes !== undefined && input.TimeoutInMinutes !== null) {
4497
+ if (input.TimeoutInMinutes != null) {
4603
4498
  entries["TimeoutInMinutes"] = input.TimeoutInMinutes;
4604
4499
  }
4605
- if (input.NotificationARNs !== undefined && input.NotificationARNs !== null) {
4500
+ if (input.NotificationARNs != null) {
4606
4501
  var memberEntries = serializeAws_queryNotificationARNs(input.NotificationARNs, context);
4607
4502
  Object.entries(memberEntries).forEach(function (_a) {
4608
4503
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4610,7 +4505,7 @@ var serializeAws_queryCreateStackInput = function (input, context) {
4610
4505
  entries[loc] = value;
4611
4506
  });
4612
4507
  }
4613
- if (input.Capabilities !== undefined && input.Capabilities !== null) {
4508
+ if (input.Capabilities != null) {
4614
4509
  var memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
4615
4510
  Object.entries(memberEntries).forEach(function (_a) {
4616
4511
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4618,7 +4513,7 @@ var serializeAws_queryCreateStackInput = function (input, context) {
4618
4513
  entries[loc] = value;
4619
4514
  });
4620
4515
  }
4621
- if (input.ResourceTypes !== undefined && input.ResourceTypes !== null) {
4516
+ if (input.ResourceTypes != null) {
4622
4517
  var memberEntries = serializeAws_queryResourceTypes(input.ResourceTypes, context);
4623
4518
  Object.entries(memberEntries).forEach(function (_a) {
4624
4519
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4626,19 +4521,19 @@ var serializeAws_queryCreateStackInput = function (input, context) {
4626
4521
  entries[loc] = value;
4627
4522
  });
4628
4523
  }
4629
- if (input.RoleARN !== undefined && input.RoleARN !== null) {
4524
+ if (input.RoleARN != null) {
4630
4525
  entries["RoleARN"] = input.RoleARN;
4631
4526
  }
4632
- if (input.OnFailure !== undefined && input.OnFailure !== null) {
4527
+ if (input.OnFailure != null) {
4633
4528
  entries["OnFailure"] = input.OnFailure;
4634
4529
  }
4635
- if (input.StackPolicyBody !== undefined && input.StackPolicyBody !== null) {
4530
+ if (input.StackPolicyBody != null) {
4636
4531
  entries["StackPolicyBody"] = input.StackPolicyBody;
4637
4532
  }
4638
- if (input.StackPolicyURL !== undefined && input.StackPolicyURL !== null) {
4533
+ if (input.StackPolicyURL != null) {
4639
4534
  entries["StackPolicyURL"] = input.StackPolicyURL;
4640
4535
  }
4641
- if (input.Tags !== undefined && input.Tags !== null) {
4536
+ if (input.Tags != null) {
4642
4537
  var memberEntries = serializeAws_queryTags(input.Tags, context);
4643
4538
  Object.entries(memberEntries).forEach(function (_a) {
4644
4539
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4646,20 +4541,20 @@ var serializeAws_queryCreateStackInput = function (input, context) {
4646
4541
  entries[loc] = value;
4647
4542
  });
4648
4543
  }
4649
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
4544
+ if (input.ClientRequestToken != null) {
4650
4545
  entries["ClientRequestToken"] = input.ClientRequestToken;
4651
4546
  }
4652
- if (input.EnableTerminationProtection !== undefined && input.EnableTerminationProtection !== null) {
4547
+ if (input.EnableTerminationProtection != null) {
4653
4548
  entries["EnableTerminationProtection"] = input.EnableTerminationProtection;
4654
4549
  }
4655
4550
  return entries;
4656
4551
  };
4657
4552
  var serializeAws_queryCreateStackInstancesInput = function (input, context) {
4658
4553
  var entries = {};
4659
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
4554
+ if (input.StackSetName != null) {
4660
4555
  entries["StackSetName"] = input.StackSetName;
4661
4556
  }
4662
- if (input.Accounts !== undefined && input.Accounts !== null) {
4557
+ if (input.Accounts != null) {
4663
4558
  var memberEntries = serializeAws_queryAccountList(input.Accounts, context);
4664
4559
  Object.entries(memberEntries).forEach(function (_a) {
4665
4560
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4667,7 +4562,7 @@ var serializeAws_queryCreateStackInstancesInput = function (input, context) {
4667
4562
  entries[loc] = value;
4668
4563
  });
4669
4564
  }
4670
- if (input.DeploymentTargets !== undefined && input.DeploymentTargets !== null) {
4565
+ if (input.DeploymentTargets != null) {
4671
4566
  var memberEntries = serializeAws_queryDeploymentTargets(input.DeploymentTargets, context);
4672
4567
  Object.entries(memberEntries).forEach(function (_a) {
4673
4568
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4675,7 +4570,7 @@ var serializeAws_queryCreateStackInstancesInput = function (input, context) {
4675
4570
  entries[loc] = value;
4676
4571
  });
4677
4572
  }
4678
- if (input.Regions !== undefined && input.Regions !== null) {
4573
+ if (input.Regions != null) {
4679
4574
  var memberEntries = serializeAws_queryRegionList(input.Regions, context);
4680
4575
  Object.entries(memberEntries).forEach(function (_a) {
4681
4576
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4683,7 +4578,7 @@ var serializeAws_queryCreateStackInstancesInput = function (input, context) {
4683
4578
  entries[loc] = value;
4684
4579
  });
4685
4580
  }
4686
- if (input.ParameterOverrides !== undefined && input.ParameterOverrides !== null) {
4581
+ if (input.ParameterOverrides != null) {
4687
4582
  var memberEntries = serializeAws_queryParameters(input.ParameterOverrides, context);
4688
4583
  Object.entries(memberEntries).forEach(function (_a) {
4689
4584
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4691,7 +4586,7 @@ var serializeAws_queryCreateStackInstancesInput = function (input, context) {
4691
4586
  entries[loc] = value;
4692
4587
  });
4693
4588
  }
4694
- if (input.OperationPreferences !== undefined && input.OperationPreferences !== null) {
4589
+ if (input.OperationPreferences != null) {
4695
4590
  var memberEntries = serializeAws_queryStackSetOperationPreferences(input.OperationPreferences, context);
4696
4591
  Object.entries(memberEntries).forEach(function (_a) {
4697
4592
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4702,32 +4597,32 @@ var serializeAws_queryCreateStackInstancesInput = function (input, context) {
4702
4597
  if (input.OperationId === undefined) {
4703
4598
  input.OperationId = generateIdempotencyToken();
4704
4599
  }
4705
- if (input.OperationId !== undefined && input.OperationId !== null) {
4600
+ if (input.OperationId != null) {
4706
4601
  entries["OperationId"] = input.OperationId;
4707
4602
  }
4708
- if (input.CallAs !== undefined && input.CallAs !== null) {
4603
+ if (input.CallAs != null) {
4709
4604
  entries["CallAs"] = input.CallAs;
4710
4605
  }
4711
4606
  return entries;
4712
4607
  };
4713
4608
  var serializeAws_queryCreateStackSetInput = function (input, context) {
4714
4609
  var entries = {};
4715
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
4610
+ if (input.StackSetName != null) {
4716
4611
  entries["StackSetName"] = input.StackSetName;
4717
4612
  }
4718
- if (input.Description !== undefined && input.Description !== null) {
4613
+ if (input.Description != null) {
4719
4614
  entries["Description"] = input.Description;
4720
4615
  }
4721
- if (input.TemplateBody !== undefined && input.TemplateBody !== null) {
4616
+ if (input.TemplateBody != null) {
4722
4617
  entries["TemplateBody"] = input.TemplateBody;
4723
4618
  }
4724
- if (input.TemplateURL !== undefined && input.TemplateURL !== null) {
4619
+ if (input.TemplateURL != null) {
4725
4620
  entries["TemplateURL"] = input.TemplateURL;
4726
4621
  }
4727
- if (input.StackId !== undefined && input.StackId !== null) {
4622
+ if (input.StackId != null) {
4728
4623
  entries["StackId"] = input.StackId;
4729
4624
  }
4730
- if (input.Parameters !== undefined && input.Parameters !== null) {
4625
+ if (input.Parameters != null) {
4731
4626
  var memberEntries = serializeAws_queryParameters(input.Parameters, context);
4732
4627
  Object.entries(memberEntries).forEach(function (_a) {
4733
4628
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4735,7 +4630,7 @@ var serializeAws_queryCreateStackSetInput = function (input, context) {
4735
4630
  entries[loc] = value;
4736
4631
  });
4737
4632
  }
4738
- if (input.Capabilities !== undefined && input.Capabilities !== null) {
4633
+ if (input.Capabilities != null) {
4739
4634
  var memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
4740
4635
  Object.entries(memberEntries).forEach(function (_a) {
4741
4636
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4743,7 +4638,7 @@ var serializeAws_queryCreateStackSetInput = function (input, context) {
4743
4638
  entries[loc] = value;
4744
4639
  });
4745
4640
  }
4746
- if (input.Tags !== undefined && input.Tags !== null) {
4641
+ if (input.Tags != null) {
4747
4642
  var memberEntries = serializeAws_queryTags(input.Tags, context);
4748
4643
  Object.entries(memberEntries).forEach(function (_a) {
4749
4644
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4751,16 +4646,16 @@ var serializeAws_queryCreateStackSetInput = function (input, context) {
4751
4646
  entries[loc] = value;
4752
4647
  });
4753
4648
  }
4754
- if (input.AdministrationRoleARN !== undefined && input.AdministrationRoleARN !== null) {
4649
+ if (input.AdministrationRoleARN != null) {
4755
4650
  entries["AdministrationRoleARN"] = input.AdministrationRoleARN;
4756
4651
  }
4757
- if (input.ExecutionRoleName !== undefined && input.ExecutionRoleName !== null) {
4652
+ if (input.ExecutionRoleName != null) {
4758
4653
  entries["ExecutionRoleName"] = input.ExecutionRoleName;
4759
4654
  }
4760
- if (input.PermissionModel !== undefined && input.PermissionModel !== null) {
4655
+ if (input.PermissionModel != null) {
4761
4656
  entries["PermissionModel"] = input.PermissionModel;
4762
4657
  }
4763
- if (input.AutoDeployment !== undefined && input.AutoDeployment !== null) {
4658
+ if (input.AutoDeployment != null) {
4764
4659
  var memberEntries = serializeAws_queryAutoDeployment(input.AutoDeployment, context);
4765
4660
  Object.entries(memberEntries).forEach(function (_a) {
4766
4661
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4768,16 +4663,16 @@ var serializeAws_queryCreateStackSetInput = function (input, context) {
4768
4663
  entries[loc] = value;
4769
4664
  });
4770
4665
  }
4771
- if (input.CallAs !== undefined && input.CallAs !== null) {
4666
+ if (input.CallAs != null) {
4772
4667
  entries["CallAs"] = input.CallAs;
4773
4668
  }
4774
4669
  if (input.ClientRequestToken === undefined) {
4775
4670
  input.ClientRequestToken = generateIdempotencyToken();
4776
4671
  }
4777
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
4672
+ if (input.ClientRequestToken != null) {
4778
4673
  entries["ClientRequestToken"] = input.ClientRequestToken;
4779
4674
  }
4780
- if (input.ManagedExecution !== undefined && input.ManagedExecution !== null) {
4675
+ if (input.ManagedExecution != null) {
4781
4676
  var memberEntries = serializeAws_queryManagedExecution(input.ManagedExecution, context);
4782
4677
  Object.entries(memberEntries).forEach(function (_a) {
4783
4678
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4789,33 +4684,33 @@ var serializeAws_queryCreateStackSetInput = function (input, context) {
4789
4684
  };
4790
4685
  var serializeAws_queryDeactivateTypeInput = function (input, context) {
4791
4686
  var entries = {};
4792
- if (input.TypeName !== undefined && input.TypeName !== null) {
4687
+ if (input.TypeName != null) {
4793
4688
  entries["TypeName"] = input.TypeName;
4794
4689
  }
4795
- if (input.Type !== undefined && input.Type !== null) {
4690
+ if (input.Type != null) {
4796
4691
  entries["Type"] = input.Type;
4797
4692
  }
4798
- if (input.Arn !== undefined && input.Arn !== null) {
4693
+ if (input.Arn != null) {
4799
4694
  entries["Arn"] = input.Arn;
4800
4695
  }
4801
4696
  return entries;
4802
4697
  };
4803
4698
  var serializeAws_queryDeleteChangeSetInput = function (input, context) {
4804
4699
  var entries = {};
4805
- if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
4700
+ if (input.ChangeSetName != null) {
4806
4701
  entries["ChangeSetName"] = input.ChangeSetName;
4807
4702
  }
4808
- if (input.StackName !== undefined && input.StackName !== null) {
4703
+ if (input.StackName != null) {
4809
4704
  entries["StackName"] = input.StackName;
4810
4705
  }
4811
4706
  return entries;
4812
4707
  };
4813
4708
  var serializeAws_queryDeleteStackInput = function (input, context) {
4814
4709
  var entries = {};
4815
- if (input.StackName !== undefined && input.StackName !== null) {
4710
+ if (input.StackName != null) {
4816
4711
  entries["StackName"] = input.StackName;
4817
4712
  }
4818
- if (input.RetainResources !== undefined && input.RetainResources !== null) {
4713
+ if (input.RetainResources != null) {
4819
4714
  var memberEntries = serializeAws_queryRetainResources(input.RetainResources, context);
4820
4715
  Object.entries(memberEntries).forEach(function (_a) {
4821
4716
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4823,20 +4718,20 @@ var serializeAws_queryDeleteStackInput = function (input, context) {
4823
4718
  entries[loc] = value;
4824
4719
  });
4825
4720
  }
4826
- if (input.RoleARN !== undefined && input.RoleARN !== null) {
4721
+ if (input.RoleARN != null) {
4827
4722
  entries["RoleARN"] = input.RoleARN;
4828
4723
  }
4829
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
4724
+ if (input.ClientRequestToken != null) {
4830
4725
  entries["ClientRequestToken"] = input.ClientRequestToken;
4831
4726
  }
4832
4727
  return entries;
4833
4728
  };
4834
4729
  var serializeAws_queryDeleteStackInstancesInput = function (input, context) {
4835
4730
  var entries = {};
4836
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
4731
+ if (input.StackSetName != null) {
4837
4732
  entries["StackSetName"] = input.StackSetName;
4838
4733
  }
4839
- if (input.Accounts !== undefined && input.Accounts !== null) {
4734
+ if (input.Accounts != null) {
4840
4735
  var memberEntries = serializeAws_queryAccountList(input.Accounts, context);
4841
4736
  Object.entries(memberEntries).forEach(function (_a) {
4842
4737
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4844,7 +4739,7 @@ var serializeAws_queryDeleteStackInstancesInput = function (input, context) {
4844
4739
  entries[loc] = value;
4845
4740
  });
4846
4741
  }
4847
- if (input.DeploymentTargets !== undefined && input.DeploymentTargets !== null) {
4742
+ if (input.DeploymentTargets != null) {
4848
4743
  var memberEntries = serializeAws_queryDeploymentTargets(input.DeploymentTargets, context);
4849
4744
  Object.entries(memberEntries).forEach(function (_a) {
4850
4745
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4852,7 +4747,7 @@ var serializeAws_queryDeleteStackInstancesInput = function (input, context) {
4852
4747
  entries[loc] = value;
4853
4748
  });
4854
4749
  }
4855
- if (input.Regions !== undefined && input.Regions !== null) {
4750
+ if (input.Regions != null) {
4856
4751
  var memberEntries = serializeAws_queryRegionList(input.Regions, context);
4857
4752
  Object.entries(memberEntries).forEach(function (_a) {
4858
4753
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4860,7 +4755,7 @@ var serializeAws_queryDeleteStackInstancesInput = function (input, context) {
4860
4755
  entries[loc] = value;
4861
4756
  });
4862
4757
  }
4863
- if (input.OperationPreferences !== undefined && input.OperationPreferences !== null) {
4758
+ if (input.OperationPreferences != null) {
4864
4759
  var memberEntries = serializeAws_queryStackSetOperationPreferences(input.OperationPreferences, context);
4865
4760
  Object.entries(memberEntries).forEach(function (_a) {
4866
4761
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4868,33 +4763,33 @@ var serializeAws_queryDeleteStackInstancesInput = function (input, context) {
4868
4763
  entries[loc] = value;
4869
4764
  });
4870
4765
  }
4871
- if (input.RetainStacks !== undefined && input.RetainStacks !== null) {
4766
+ if (input.RetainStacks != null) {
4872
4767
  entries["RetainStacks"] = input.RetainStacks;
4873
4768
  }
4874
4769
  if (input.OperationId === undefined) {
4875
4770
  input.OperationId = generateIdempotencyToken();
4876
4771
  }
4877
- if (input.OperationId !== undefined && input.OperationId !== null) {
4772
+ if (input.OperationId != null) {
4878
4773
  entries["OperationId"] = input.OperationId;
4879
4774
  }
4880
- if (input.CallAs !== undefined && input.CallAs !== null) {
4775
+ if (input.CallAs != null) {
4881
4776
  entries["CallAs"] = input.CallAs;
4882
4777
  }
4883
4778
  return entries;
4884
4779
  };
4885
4780
  var serializeAws_queryDeleteStackSetInput = function (input, context) {
4886
4781
  var entries = {};
4887
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
4782
+ if (input.StackSetName != null) {
4888
4783
  entries["StackSetName"] = input.StackSetName;
4889
4784
  }
4890
- if (input.CallAs !== undefined && input.CallAs !== null) {
4785
+ if (input.CallAs != null) {
4891
4786
  entries["CallAs"] = input.CallAs;
4892
4787
  }
4893
4788
  return entries;
4894
4789
  };
4895
4790
  var serializeAws_queryDeploymentTargets = function (input, context) {
4896
4791
  var entries = {};
4897
- if (input.Accounts !== undefined && input.Accounts !== null) {
4792
+ if (input.Accounts != null) {
4898
4793
  var memberEntries = serializeAws_queryAccountList(input.Accounts, context);
4899
4794
  Object.entries(memberEntries).forEach(function (_a) {
4900
4795
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4902,10 +4797,10 @@ var serializeAws_queryDeploymentTargets = function (input, context) {
4902
4797
  entries[loc] = value;
4903
4798
  });
4904
4799
  }
4905
- if (input.AccountsUrl !== undefined && input.AccountsUrl !== null) {
4800
+ if (input.AccountsUrl != null) {
4906
4801
  entries["AccountsUrl"] = input.AccountsUrl;
4907
4802
  }
4908
- if (input.OrganizationalUnitIds !== undefined && input.OrganizationalUnitIds !== null) {
4803
+ if (input.OrganizationalUnitIds != null) {
4909
4804
  var memberEntries = serializeAws_queryOrganizationalUnitIdList(input.OrganizationalUnitIds, context);
4910
4805
  Object.entries(memberEntries).forEach(function (_a) {
4911
4806
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4913,109 +4808,109 @@ var serializeAws_queryDeploymentTargets = function (input, context) {
4913
4808
  entries[loc] = value;
4914
4809
  });
4915
4810
  }
4916
- if (input.AccountFilterType !== undefined && input.AccountFilterType !== null) {
4811
+ if (input.AccountFilterType != null) {
4917
4812
  entries["AccountFilterType"] = input.AccountFilterType;
4918
4813
  }
4919
4814
  return entries;
4920
4815
  };
4921
4816
  var serializeAws_queryDeregisterTypeInput = function (input, context) {
4922
4817
  var entries = {};
4923
- if (input.Arn !== undefined && input.Arn !== null) {
4818
+ if (input.Arn != null) {
4924
4819
  entries["Arn"] = input.Arn;
4925
4820
  }
4926
- if (input.Type !== undefined && input.Type !== null) {
4821
+ if (input.Type != null) {
4927
4822
  entries["Type"] = input.Type;
4928
4823
  }
4929
- if (input.TypeName !== undefined && input.TypeName !== null) {
4824
+ if (input.TypeName != null) {
4930
4825
  entries["TypeName"] = input.TypeName;
4931
4826
  }
4932
- if (input.VersionId !== undefined && input.VersionId !== null) {
4827
+ if (input.VersionId != null) {
4933
4828
  entries["VersionId"] = input.VersionId;
4934
4829
  }
4935
4830
  return entries;
4936
4831
  };
4937
4832
  var serializeAws_queryDescribeAccountLimitsInput = function (input, context) {
4938
4833
  var entries = {};
4939
- if (input.NextToken !== undefined && input.NextToken !== null) {
4834
+ if (input.NextToken != null) {
4940
4835
  entries["NextToken"] = input.NextToken;
4941
4836
  }
4942
4837
  return entries;
4943
4838
  };
4944
4839
  var serializeAws_queryDescribeChangeSetHooksInput = function (input, context) {
4945
4840
  var entries = {};
4946
- if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
4841
+ if (input.ChangeSetName != null) {
4947
4842
  entries["ChangeSetName"] = input.ChangeSetName;
4948
4843
  }
4949
- if (input.StackName !== undefined && input.StackName !== null) {
4844
+ if (input.StackName != null) {
4950
4845
  entries["StackName"] = input.StackName;
4951
4846
  }
4952
- if (input.NextToken !== undefined && input.NextToken !== null) {
4847
+ if (input.NextToken != null) {
4953
4848
  entries["NextToken"] = input.NextToken;
4954
4849
  }
4955
- if (input.LogicalResourceId !== undefined && input.LogicalResourceId !== null) {
4850
+ if (input.LogicalResourceId != null) {
4956
4851
  entries["LogicalResourceId"] = input.LogicalResourceId;
4957
4852
  }
4958
4853
  return entries;
4959
4854
  };
4960
4855
  var serializeAws_queryDescribeChangeSetInput = function (input, context) {
4961
4856
  var entries = {};
4962
- if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
4857
+ if (input.ChangeSetName != null) {
4963
4858
  entries["ChangeSetName"] = input.ChangeSetName;
4964
4859
  }
4965
- if (input.StackName !== undefined && input.StackName !== null) {
4860
+ if (input.StackName != null) {
4966
4861
  entries["StackName"] = input.StackName;
4967
4862
  }
4968
- if (input.NextToken !== undefined && input.NextToken !== null) {
4863
+ if (input.NextToken != null) {
4969
4864
  entries["NextToken"] = input.NextToken;
4970
4865
  }
4971
4866
  return entries;
4972
4867
  };
4973
4868
  var serializeAws_queryDescribePublisherInput = function (input, context) {
4974
4869
  var entries = {};
4975
- if (input.PublisherId !== undefined && input.PublisherId !== null) {
4870
+ if (input.PublisherId != null) {
4976
4871
  entries["PublisherId"] = input.PublisherId;
4977
4872
  }
4978
4873
  return entries;
4979
4874
  };
4980
4875
  var serializeAws_queryDescribeStackDriftDetectionStatusInput = function (input, context) {
4981
4876
  var entries = {};
4982
- if (input.StackDriftDetectionId !== undefined && input.StackDriftDetectionId !== null) {
4877
+ if (input.StackDriftDetectionId != null) {
4983
4878
  entries["StackDriftDetectionId"] = input.StackDriftDetectionId;
4984
4879
  }
4985
4880
  return entries;
4986
4881
  };
4987
4882
  var serializeAws_queryDescribeStackEventsInput = function (input, context) {
4988
4883
  var entries = {};
4989
- if (input.StackName !== undefined && input.StackName !== null) {
4884
+ if (input.StackName != null) {
4990
4885
  entries["StackName"] = input.StackName;
4991
4886
  }
4992
- if (input.NextToken !== undefined && input.NextToken !== null) {
4887
+ if (input.NextToken != null) {
4993
4888
  entries["NextToken"] = input.NextToken;
4994
4889
  }
4995
4890
  return entries;
4996
4891
  };
4997
4892
  var serializeAws_queryDescribeStackInstanceInput = function (input, context) {
4998
4893
  var entries = {};
4999
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
4894
+ if (input.StackSetName != null) {
5000
4895
  entries["StackSetName"] = input.StackSetName;
5001
4896
  }
5002
- if (input.StackInstanceAccount !== undefined && input.StackInstanceAccount !== null) {
4897
+ if (input.StackInstanceAccount != null) {
5003
4898
  entries["StackInstanceAccount"] = input.StackInstanceAccount;
5004
4899
  }
5005
- if (input.StackInstanceRegion !== undefined && input.StackInstanceRegion !== null) {
4900
+ if (input.StackInstanceRegion != null) {
5006
4901
  entries["StackInstanceRegion"] = input.StackInstanceRegion;
5007
4902
  }
5008
- if (input.CallAs !== undefined && input.CallAs !== null) {
4903
+ if (input.CallAs != null) {
5009
4904
  entries["CallAs"] = input.CallAs;
5010
4905
  }
5011
4906
  return entries;
5012
4907
  };
5013
4908
  var serializeAws_queryDescribeStackResourceDriftsInput = function (input, context) {
5014
4909
  var entries = {};
5015
- if (input.StackName !== undefined && input.StackName !== null) {
4910
+ if (input.StackName != null) {
5016
4911
  entries["StackName"] = input.StackName;
5017
4912
  }
5018
- if (input.StackResourceDriftStatusFilters !== undefined && input.StackResourceDriftStatusFilters !== null) {
4913
+ if (input.StackResourceDriftStatusFilters != null) {
5019
4914
  var memberEntries = serializeAws_queryStackResourceDriftStatusFilters(input.StackResourceDriftStatusFilters, context);
5020
4915
  Object.entries(memberEntries).forEach(function (_a) {
5021
4916
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5023,105 +4918,105 @@ var serializeAws_queryDescribeStackResourceDriftsInput = function (input, contex
5023
4918
  entries[loc] = value;
5024
4919
  });
5025
4920
  }
5026
- if (input.NextToken !== undefined && input.NextToken !== null) {
4921
+ if (input.NextToken != null) {
5027
4922
  entries["NextToken"] = input.NextToken;
5028
4923
  }
5029
- if (input.MaxResults !== undefined && input.MaxResults !== null) {
4924
+ if (input.MaxResults != null) {
5030
4925
  entries["MaxResults"] = input.MaxResults;
5031
4926
  }
5032
4927
  return entries;
5033
4928
  };
5034
4929
  var serializeAws_queryDescribeStackResourceInput = function (input, context) {
5035
4930
  var entries = {};
5036
- if (input.StackName !== undefined && input.StackName !== null) {
4931
+ if (input.StackName != null) {
5037
4932
  entries["StackName"] = input.StackName;
5038
4933
  }
5039
- if (input.LogicalResourceId !== undefined && input.LogicalResourceId !== null) {
4934
+ if (input.LogicalResourceId != null) {
5040
4935
  entries["LogicalResourceId"] = input.LogicalResourceId;
5041
4936
  }
5042
4937
  return entries;
5043
4938
  };
5044
4939
  var serializeAws_queryDescribeStackResourcesInput = function (input, context) {
5045
4940
  var entries = {};
5046
- if (input.StackName !== undefined && input.StackName !== null) {
4941
+ if (input.StackName != null) {
5047
4942
  entries["StackName"] = input.StackName;
5048
4943
  }
5049
- if (input.LogicalResourceId !== undefined && input.LogicalResourceId !== null) {
4944
+ if (input.LogicalResourceId != null) {
5050
4945
  entries["LogicalResourceId"] = input.LogicalResourceId;
5051
4946
  }
5052
- if (input.PhysicalResourceId !== undefined && input.PhysicalResourceId !== null) {
4947
+ if (input.PhysicalResourceId != null) {
5053
4948
  entries["PhysicalResourceId"] = input.PhysicalResourceId;
5054
4949
  }
5055
4950
  return entries;
5056
4951
  };
5057
4952
  var serializeAws_queryDescribeStackSetInput = function (input, context) {
5058
4953
  var entries = {};
5059
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
4954
+ if (input.StackSetName != null) {
5060
4955
  entries["StackSetName"] = input.StackSetName;
5061
4956
  }
5062
- if (input.CallAs !== undefined && input.CallAs !== null) {
4957
+ if (input.CallAs != null) {
5063
4958
  entries["CallAs"] = input.CallAs;
5064
4959
  }
5065
4960
  return entries;
5066
4961
  };
5067
4962
  var serializeAws_queryDescribeStackSetOperationInput = function (input, context) {
5068
4963
  var entries = {};
5069
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
4964
+ if (input.StackSetName != null) {
5070
4965
  entries["StackSetName"] = input.StackSetName;
5071
4966
  }
5072
- if (input.OperationId !== undefined && input.OperationId !== null) {
4967
+ if (input.OperationId != null) {
5073
4968
  entries["OperationId"] = input.OperationId;
5074
4969
  }
5075
- if (input.CallAs !== undefined && input.CallAs !== null) {
4970
+ if (input.CallAs != null) {
5076
4971
  entries["CallAs"] = input.CallAs;
5077
4972
  }
5078
4973
  return entries;
5079
4974
  };
5080
4975
  var serializeAws_queryDescribeStacksInput = function (input, context) {
5081
4976
  var entries = {};
5082
- if (input.StackName !== undefined && input.StackName !== null) {
4977
+ if (input.StackName != null) {
5083
4978
  entries["StackName"] = input.StackName;
5084
4979
  }
5085
- if (input.NextToken !== undefined && input.NextToken !== null) {
4980
+ if (input.NextToken != null) {
5086
4981
  entries["NextToken"] = input.NextToken;
5087
4982
  }
5088
4983
  return entries;
5089
4984
  };
5090
4985
  var serializeAws_queryDescribeTypeInput = function (input, context) {
5091
4986
  var entries = {};
5092
- if (input.Type !== undefined && input.Type !== null) {
4987
+ if (input.Type != null) {
5093
4988
  entries["Type"] = input.Type;
5094
4989
  }
5095
- if (input.TypeName !== undefined && input.TypeName !== null) {
4990
+ if (input.TypeName != null) {
5096
4991
  entries["TypeName"] = input.TypeName;
5097
4992
  }
5098
- if (input.Arn !== undefined && input.Arn !== null) {
4993
+ if (input.Arn != null) {
5099
4994
  entries["Arn"] = input.Arn;
5100
4995
  }
5101
- if (input.VersionId !== undefined && input.VersionId !== null) {
4996
+ if (input.VersionId != null) {
5102
4997
  entries["VersionId"] = input.VersionId;
5103
4998
  }
5104
- if (input.PublisherId !== undefined && input.PublisherId !== null) {
4999
+ if (input.PublisherId != null) {
5105
5000
  entries["PublisherId"] = input.PublisherId;
5106
5001
  }
5107
- if (input.PublicVersionNumber !== undefined && input.PublicVersionNumber !== null) {
5002
+ if (input.PublicVersionNumber != null) {
5108
5003
  entries["PublicVersionNumber"] = input.PublicVersionNumber;
5109
5004
  }
5110
5005
  return entries;
5111
5006
  };
5112
5007
  var serializeAws_queryDescribeTypeRegistrationInput = function (input, context) {
5113
5008
  var entries = {};
5114
- if (input.RegistrationToken !== undefined && input.RegistrationToken !== null) {
5009
+ if (input.RegistrationToken != null) {
5115
5010
  entries["RegistrationToken"] = input.RegistrationToken;
5116
5011
  }
5117
5012
  return entries;
5118
5013
  };
5119
5014
  var serializeAws_queryDetectStackDriftInput = function (input, context) {
5120
5015
  var entries = {};
5121
- if (input.StackName !== undefined && input.StackName !== null) {
5016
+ if (input.StackName != null) {
5122
5017
  entries["StackName"] = input.StackName;
5123
5018
  }
5124
- if (input.LogicalResourceIds !== undefined && input.LogicalResourceIds !== null) {
5019
+ if (input.LogicalResourceIds != null) {
5125
5020
  var memberEntries = serializeAws_queryLogicalResourceIds(input.LogicalResourceIds, context);
5126
5021
  Object.entries(memberEntries).forEach(function (_a) {
5127
5022
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5133,20 +5028,20 @@ var serializeAws_queryDetectStackDriftInput = function (input, context) {
5133
5028
  };
5134
5029
  var serializeAws_queryDetectStackResourceDriftInput = function (input, context) {
5135
5030
  var entries = {};
5136
- if (input.StackName !== undefined && input.StackName !== null) {
5031
+ if (input.StackName != null) {
5137
5032
  entries["StackName"] = input.StackName;
5138
5033
  }
5139
- if (input.LogicalResourceId !== undefined && input.LogicalResourceId !== null) {
5034
+ if (input.LogicalResourceId != null) {
5140
5035
  entries["LogicalResourceId"] = input.LogicalResourceId;
5141
5036
  }
5142
5037
  return entries;
5143
5038
  };
5144
5039
  var serializeAws_queryDetectStackSetDriftInput = function (input, context) {
5145
5040
  var entries = {};
5146
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
5041
+ if (input.StackSetName != null) {
5147
5042
  entries["StackSetName"] = input.StackSetName;
5148
5043
  }
5149
- if (input.OperationPreferences !== undefined && input.OperationPreferences !== null) {
5044
+ if (input.OperationPreferences != null) {
5150
5045
  var memberEntries = serializeAws_queryStackSetOperationPreferences(input.OperationPreferences, context);
5151
5046
  Object.entries(memberEntries).forEach(function (_a) {
5152
5047
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5157,23 +5052,23 @@ var serializeAws_queryDetectStackSetDriftInput = function (input, context) {
5157
5052
  if (input.OperationId === undefined) {
5158
5053
  input.OperationId = generateIdempotencyToken();
5159
5054
  }
5160
- if (input.OperationId !== undefined && input.OperationId !== null) {
5055
+ if (input.OperationId != null) {
5161
5056
  entries["OperationId"] = input.OperationId;
5162
5057
  }
5163
- if (input.CallAs !== undefined && input.CallAs !== null) {
5058
+ if (input.CallAs != null) {
5164
5059
  entries["CallAs"] = input.CallAs;
5165
5060
  }
5166
5061
  return entries;
5167
5062
  };
5168
5063
  var serializeAws_queryEstimateTemplateCostInput = function (input, context) {
5169
5064
  var entries = {};
5170
- if (input.TemplateBody !== undefined && input.TemplateBody !== null) {
5065
+ if (input.TemplateBody != null) {
5171
5066
  entries["TemplateBody"] = input.TemplateBody;
5172
5067
  }
5173
- if (input.TemplateURL !== undefined && input.TemplateURL !== null) {
5068
+ if (input.TemplateURL != null) {
5174
5069
  entries["TemplateURL"] = input.TemplateURL;
5175
5070
  }
5176
- if (input.Parameters !== undefined && input.Parameters !== null) {
5071
+ if (input.Parameters != null) {
5177
5072
  var memberEntries = serializeAws_queryParameters(input.Parameters, context);
5178
5073
  Object.entries(memberEntries).forEach(function (_a) {
5179
5074
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5185,65 +5080,65 @@ var serializeAws_queryEstimateTemplateCostInput = function (input, context) {
5185
5080
  };
5186
5081
  var serializeAws_queryExecuteChangeSetInput = function (input, context) {
5187
5082
  var entries = {};
5188
- if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
5083
+ if (input.ChangeSetName != null) {
5189
5084
  entries["ChangeSetName"] = input.ChangeSetName;
5190
5085
  }
5191
- if (input.StackName !== undefined && input.StackName !== null) {
5086
+ if (input.StackName != null) {
5192
5087
  entries["StackName"] = input.StackName;
5193
5088
  }
5194
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
5089
+ if (input.ClientRequestToken != null) {
5195
5090
  entries["ClientRequestToken"] = input.ClientRequestToken;
5196
5091
  }
5197
- if (input.DisableRollback !== undefined && input.DisableRollback !== null) {
5092
+ if (input.DisableRollback != null) {
5198
5093
  entries["DisableRollback"] = input.DisableRollback;
5199
5094
  }
5200
5095
  return entries;
5201
5096
  };
5202
5097
  var serializeAws_queryGetStackPolicyInput = function (input, context) {
5203
5098
  var entries = {};
5204
- if (input.StackName !== undefined && input.StackName !== null) {
5099
+ if (input.StackName != null) {
5205
5100
  entries["StackName"] = input.StackName;
5206
5101
  }
5207
5102
  return entries;
5208
5103
  };
5209
5104
  var serializeAws_queryGetTemplateInput = function (input, context) {
5210
5105
  var entries = {};
5211
- if (input.StackName !== undefined && input.StackName !== null) {
5106
+ if (input.StackName != null) {
5212
5107
  entries["StackName"] = input.StackName;
5213
5108
  }
5214
- if (input.ChangeSetName !== undefined && input.ChangeSetName !== null) {
5109
+ if (input.ChangeSetName != null) {
5215
5110
  entries["ChangeSetName"] = input.ChangeSetName;
5216
5111
  }
5217
- if (input.TemplateStage !== undefined && input.TemplateStage !== null) {
5112
+ if (input.TemplateStage != null) {
5218
5113
  entries["TemplateStage"] = input.TemplateStage;
5219
5114
  }
5220
5115
  return entries;
5221
5116
  };
5222
5117
  var serializeAws_queryGetTemplateSummaryInput = function (input, context) {
5223
5118
  var entries = {};
5224
- if (input.TemplateBody !== undefined && input.TemplateBody !== null) {
5119
+ if (input.TemplateBody != null) {
5225
5120
  entries["TemplateBody"] = input.TemplateBody;
5226
5121
  }
5227
- if (input.TemplateURL !== undefined && input.TemplateURL !== null) {
5122
+ if (input.TemplateURL != null) {
5228
5123
  entries["TemplateURL"] = input.TemplateURL;
5229
5124
  }
5230
- if (input.StackName !== undefined && input.StackName !== null) {
5125
+ if (input.StackName != null) {
5231
5126
  entries["StackName"] = input.StackName;
5232
5127
  }
5233
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
5128
+ if (input.StackSetName != null) {
5234
5129
  entries["StackSetName"] = input.StackSetName;
5235
5130
  }
5236
- if (input.CallAs !== undefined && input.CallAs !== null) {
5131
+ if (input.CallAs != null) {
5237
5132
  entries["CallAs"] = input.CallAs;
5238
5133
  }
5239
5134
  return entries;
5240
5135
  };
5241
5136
  var serializeAws_queryImportStacksToStackSetInput = function (input, context) {
5242
5137
  var entries = {};
5243
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
5138
+ if (input.StackSetName != null) {
5244
5139
  entries["StackSetName"] = input.StackSetName;
5245
5140
  }
5246
- if (input.StackIds !== undefined && input.StackIds !== null) {
5141
+ if (input.StackIds != null) {
5247
5142
  var memberEntries = serializeAws_queryStackIdList(input.StackIds, context);
5248
5143
  Object.entries(memberEntries).forEach(function (_a) {
5249
5144
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5251,10 +5146,10 @@ var serializeAws_queryImportStacksToStackSetInput = function (input, context) {
5251
5146
  entries[loc] = value;
5252
5147
  });
5253
5148
  }
5254
- if (input.StackIdsUrl !== undefined && input.StackIdsUrl !== null) {
5149
+ if (input.StackIdsUrl != null) {
5255
5150
  entries["StackIdsUrl"] = input.StackIdsUrl;
5256
5151
  }
5257
- if (input.OrganizationalUnitIds !== undefined && input.OrganizationalUnitIds !== null) {
5152
+ if (input.OrganizationalUnitIds != null) {
5258
5153
  var memberEntries = serializeAws_queryOrganizationalUnitIdList(input.OrganizationalUnitIds, context);
5259
5154
  Object.entries(memberEntries).forEach(function (_a) {
5260
5155
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5262,7 +5157,7 @@ var serializeAws_queryImportStacksToStackSetInput = function (input, context) {
5262
5157
  entries[loc] = value;
5263
5158
  });
5264
5159
  }
5265
- if (input.OperationPreferences !== undefined && input.OperationPreferences !== null) {
5160
+ if (input.OperationPreferences != null) {
5266
5161
  var memberEntries = serializeAws_queryStackSetOperationPreferences(input.OperationPreferences, context);
5267
5162
  Object.entries(memberEntries).forEach(function (_a) {
5268
5163
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5273,53 +5168,53 @@ var serializeAws_queryImportStacksToStackSetInput = function (input, context) {
5273
5168
  if (input.OperationId === undefined) {
5274
5169
  input.OperationId = generateIdempotencyToken();
5275
5170
  }
5276
- if (input.OperationId !== undefined && input.OperationId !== null) {
5171
+ if (input.OperationId != null) {
5277
5172
  entries["OperationId"] = input.OperationId;
5278
5173
  }
5279
- if (input.CallAs !== undefined && input.CallAs !== null) {
5174
+ if (input.CallAs != null) {
5280
5175
  entries["CallAs"] = input.CallAs;
5281
5176
  }
5282
5177
  return entries;
5283
5178
  };
5284
5179
  var serializeAws_queryListChangeSetsInput = function (input, context) {
5285
5180
  var entries = {};
5286
- if (input.StackName !== undefined && input.StackName !== null) {
5181
+ if (input.StackName != null) {
5287
5182
  entries["StackName"] = input.StackName;
5288
5183
  }
5289
- if (input.NextToken !== undefined && input.NextToken !== null) {
5184
+ if (input.NextToken != null) {
5290
5185
  entries["NextToken"] = input.NextToken;
5291
5186
  }
5292
5187
  return entries;
5293
5188
  };
5294
5189
  var serializeAws_queryListExportsInput = function (input, context) {
5295
5190
  var entries = {};
5296
- if (input.NextToken !== undefined && input.NextToken !== null) {
5191
+ if (input.NextToken != null) {
5297
5192
  entries["NextToken"] = input.NextToken;
5298
5193
  }
5299
5194
  return entries;
5300
5195
  };
5301
5196
  var serializeAws_queryListImportsInput = function (input, context) {
5302
5197
  var entries = {};
5303
- if (input.ExportName !== undefined && input.ExportName !== null) {
5198
+ if (input.ExportName != null) {
5304
5199
  entries["ExportName"] = input.ExportName;
5305
5200
  }
5306
- if (input.NextToken !== undefined && input.NextToken !== null) {
5201
+ if (input.NextToken != null) {
5307
5202
  entries["NextToken"] = input.NextToken;
5308
5203
  }
5309
5204
  return entries;
5310
5205
  };
5311
5206
  var serializeAws_queryListStackInstancesInput = function (input, context) {
5312
5207
  var entries = {};
5313
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
5208
+ if (input.StackSetName != null) {
5314
5209
  entries["StackSetName"] = input.StackSetName;
5315
5210
  }
5316
- if (input.NextToken !== undefined && input.NextToken !== null) {
5211
+ if (input.NextToken != null) {
5317
5212
  entries["NextToken"] = input.NextToken;
5318
5213
  }
5319
- if (input.MaxResults !== undefined && input.MaxResults !== null) {
5214
+ if (input.MaxResults != null) {
5320
5215
  entries["MaxResults"] = input.MaxResults;
5321
5216
  }
5322
- if (input.Filters !== undefined && input.Filters !== null) {
5217
+ if (input.Filters != null) {
5323
5218
  var memberEntries = serializeAws_queryStackInstanceFilters(input.Filters, context);
5324
5219
  Object.entries(memberEntries).forEach(function (_a) {
5325
5220
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5327,84 +5222,84 @@ var serializeAws_queryListStackInstancesInput = function (input, context) {
5327
5222
  entries[loc] = value;
5328
5223
  });
5329
5224
  }
5330
- if (input.StackInstanceAccount !== undefined && input.StackInstanceAccount !== null) {
5225
+ if (input.StackInstanceAccount != null) {
5331
5226
  entries["StackInstanceAccount"] = input.StackInstanceAccount;
5332
5227
  }
5333
- if (input.StackInstanceRegion !== undefined && input.StackInstanceRegion !== null) {
5228
+ if (input.StackInstanceRegion != null) {
5334
5229
  entries["StackInstanceRegion"] = input.StackInstanceRegion;
5335
5230
  }
5336
- if (input.CallAs !== undefined && input.CallAs !== null) {
5231
+ if (input.CallAs != null) {
5337
5232
  entries["CallAs"] = input.CallAs;
5338
5233
  }
5339
5234
  return entries;
5340
5235
  };
5341
5236
  var serializeAws_queryListStackResourcesInput = function (input, context) {
5342
5237
  var entries = {};
5343
- if (input.StackName !== undefined && input.StackName !== null) {
5238
+ if (input.StackName != null) {
5344
5239
  entries["StackName"] = input.StackName;
5345
5240
  }
5346
- if (input.NextToken !== undefined && input.NextToken !== null) {
5241
+ if (input.NextToken != null) {
5347
5242
  entries["NextToken"] = input.NextToken;
5348
5243
  }
5349
5244
  return entries;
5350
5245
  };
5351
5246
  var serializeAws_queryListStackSetOperationResultsInput = function (input, context) {
5352
5247
  var entries = {};
5353
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
5248
+ if (input.StackSetName != null) {
5354
5249
  entries["StackSetName"] = input.StackSetName;
5355
5250
  }
5356
- if (input.OperationId !== undefined && input.OperationId !== null) {
5251
+ if (input.OperationId != null) {
5357
5252
  entries["OperationId"] = input.OperationId;
5358
5253
  }
5359
- if (input.NextToken !== undefined && input.NextToken !== null) {
5254
+ if (input.NextToken != null) {
5360
5255
  entries["NextToken"] = input.NextToken;
5361
5256
  }
5362
- if (input.MaxResults !== undefined && input.MaxResults !== null) {
5257
+ if (input.MaxResults != null) {
5363
5258
  entries["MaxResults"] = input.MaxResults;
5364
5259
  }
5365
- if (input.CallAs !== undefined && input.CallAs !== null) {
5260
+ if (input.CallAs != null) {
5366
5261
  entries["CallAs"] = input.CallAs;
5367
5262
  }
5368
5263
  return entries;
5369
5264
  };
5370
5265
  var serializeAws_queryListStackSetOperationsInput = function (input, context) {
5371
5266
  var entries = {};
5372
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
5267
+ if (input.StackSetName != null) {
5373
5268
  entries["StackSetName"] = input.StackSetName;
5374
5269
  }
5375
- if (input.NextToken !== undefined && input.NextToken !== null) {
5270
+ if (input.NextToken != null) {
5376
5271
  entries["NextToken"] = input.NextToken;
5377
5272
  }
5378
- if (input.MaxResults !== undefined && input.MaxResults !== null) {
5273
+ if (input.MaxResults != null) {
5379
5274
  entries["MaxResults"] = input.MaxResults;
5380
5275
  }
5381
- if (input.CallAs !== undefined && input.CallAs !== null) {
5276
+ if (input.CallAs != null) {
5382
5277
  entries["CallAs"] = input.CallAs;
5383
5278
  }
5384
5279
  return entries;
5385
5280
  };
5386
5281
  var serializeAws_queryListStackSetsInput = function (input, context) {
5387
5282
  var entries = {};
5388
- if (input.NextToken !== undefined && input.NextToken !== null) {
5283
+ if (input.NextToken != null) {
5389
5284
  entries["NextToken"] = input.NextToken;
5390
5285
  }
5391
- if (input.MaxResults !== undefined && input.MaxResults !== null) {
5286
+ if (input.MaxResults != null) {
5392
5287
  entries["MaxResults"] = input.MaxResults;
5393
5288
  }
5394
- if (input.Status !== undefined && input.Status !== null) {
5289
+ if (input.Status != null) {
5395
5290
  entries["Status"] = input.Status;
5396
5291
  }
5397
- if (input.CallAs !== undefined && input.CallAs !== null) {
5292
+ if (input.CallAs != null) {
5398
5293
  entries["CallAs"] = input.CallAs;
5399
5294
  }
5400
5295
  return entries;
5401
5296
  };
5402
5297
  var serializeAws_queryListStacksInput = function (input, context) {
5403
5298
  var entries = {};
5404
- if (input.NextToken !== undefined && input.NextToken !== null) {
5299
+ if (input.NextToken != null) {
5405
5300
  entries["NextToken"] = input.NextToken;
5406
5301
  }
5407
- if (input.StackStatusFilter !== undefined && input.StackStatusFilter !== null) {
5302
+ if (input.StackStatusFilter != null) {
5408
5303
  var memberEntries = serializeAws_queryStackStatusFilter(input.StackStatusFilter, context);
5409
5304
  Object.entries(memberEntries).forEach(function (_a) {
5410
5305
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5416,41 +5311,41 @@ var serializeAws_queryListStacksInput = function (input, context) {
5416
5311
  };
5417
5312
  var serializeAws_queryListTypeRegistrationsInput = function (input, context) {
5418
5313
  var entries = {};
5419
- if (input.Type !== undefined && input.Type !== null) {
5314
+ if (input.Type != null) {
5420
5315
  entries["Type"] = input.Type;
5421
5316
  }
5422
- if (input.TypeName !== undefined && input.TypeName !== null) {
5317
+ if (input.TypeName != null) {
5423
5318
  entries["TypeName"] = input.TypeName;
5424
5319
  }
5425
- if (input.TypeArn !== undefined && input.TypeArn !== null) {
5320
+ if (input.TypeArn != null) {
5426
5321
  entries["TypeArn"] = input.TypeArn;
5427
5322
  }
5428
- if (input.RegistrationStatusFilter !== undefined && input.RegistrationStatusFilter !== null) {
5323
+ if (input.RegistrationStatusFilter != null) {
5429
5324
  entries["RegistrationStatusFilter"] = input.RegistrationStatusFilter;
5430
5325
  }
5431
- if (input.MaxResults !== undefined && input.MaxResults !== null) {
5326
+ if (input.MaxResults != null) {
5432
5327
  entries["MaxResults"] = input.MaxResults;
5433
5328
  }
5434
- if (input.NextToken !== undefined && input.NextToken !== null) {
5329
+ if (input.NextToken != null) {
5435
5330
  entries["NextToken"] = input.NextToken;
5436
5331
  }
5437
5332
  return entries;
5438
5333
  };
5439
5334
  var serializeAws_queryListTypesInput = function (input, context) {
5440
5335
  var entries = {};
5441
- if (input.Visibility !== undefined && input.Visibility !== null) {
5336
+ if (input.Visibility != null) {
5442
5337
  entries["Visibility"] = input.Visibility;
5443
5338
  }
5444
- if (input.ProvisioningType !== undefined && input.ProvisioningType !== null) {
5339
+ if (input.ProvisioningType != null) {
5445
5340
  entries["ProvisioningType"] = input.ProvisioningType;
5446
5341
  }
5447
- if (input.DeprecatedStatus !== undefined && input.DeprecatedStatus !== null) {
5342
+ if (input.DeprecatedStatus != null) {
5448
5343
  entries["DeprecatedStatus"] = input.DeprecatedStatus;
5449
5344
  }
5450
- if (input.Type !== undefined && input.Type !== null) {
5345
+ if (input.Type != null) {
5451
5346
  entries["Type"] = input.Type;
5452
5347
  }
5453
- if (input.Filters !== undefined && input.Filters !== null) {
5348
+ if (input.Filters != null) {
5454
5349
  var memberEntries = serializeAws_queryTypeFilters(input.Filters, context);
5455
5350
  Object.entries(memberEntries).forEach(function (_a) {
5456
5351
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5458,45 +5353,45 @@ var serializeAws_queryListTypesInput = function (input, context) {
5458
5353
  entries[loc] = value;
5459
5354
  });
5460
5355
  }
5461
- if (input.MaxResults !== undefined && input.MaxResults !== null) {
5356
+ if (input.MaxResults != null) {
5462
5357
  entries["MaxResults"] = input.MaxResults;
5463
5358
  }
5464
- if (input.NextToken !== undefined && input.NextToken !== null) {
5359
+ if (input.NextToken != null) {
5465
5360
  entries["NextToken"] = input.NextToken;
5466
5361
  }
5467
5362
  return entries;
5468
5363
  };
5469
5364
  var serializeAws_queryListTypeVersionsInput = function (input, context) {
5470
5365
  var entries = {};
5471
- if (input.Type !== undefined && input.Type !== null) {
5366
+ if (input.Type != null) {
5472
5367
  entries["Type"] = input.Type;
5473
5368
  }
5474
- if (input.TypeName !== undefined && input.TypeName !== null) {
5369
+ if (input.TypeName != null) {
5475
5370
  entries["TypeName"] = input.TypeName;
5476
5371
  }
5477
- if (input.Arn !== undefined && input.Arn !== null) {
5372
+ if (input.Arn != null) {
5478
5373
  entries["Arn"] = input.Arn;
5479
5374
  }
5480
- if (input.MaxResults !== undefined && input.MaxResults !== null) {
5375
+ if (input.MaxResults != null) {
5481
5376
  entries["MaxResults"] = input.MaxResults;
5482
5377
  }
5483
- if (input.NextToken !== undefined && input.NextToken !== null) {
5378
+ if (input.NextToken != null) {
5484
5379
  entries["NextToken"] = input.NextToken;
5485
5380
  }
5486
- if (input.DeprecatedStatus !== undefined && input.DeprecatedStatus !== null) {
5381
+ if (input.DeprecatedStatus != null) {
5487
5382
  entries["DeprecatedStatus"] = input.DeprecatedStatus;
5488
5383
  }
5489
- if (input.PublisherId !== undefined && input.PublisherId !== null) {
5384
+ if (input.PublisherId != null) {
5490
5385
  entries["PublisherId"] = input.PublisherId;
5491
5386
  }
5492
5387
  return entries;
5493
5388
  };
5494
5389
  var serializeAws_queryLoggingConfig = function (input, context) {
5495
5390
  var entries = {};
5496
- if (input.LogRoleArn !== undefined && input.LogRoleArn !== null) {
5391
+ if (input.LogRoleArn != null) {
5497
5392
  entries["LogRoleArn"] = input.LogRoleArn;
5498
5393
  }
5499
- if (input.LogGroupName !== undefined && input.LogGroupName !== null) {
5394
+ if (input.LogGroupName != null) {
5500
5395
  entries["LogGroupName"] = input.LogGroupName;
5501
5396
  }
5502
5397
  return entries;
@@ -5526,7 +5421,7 @@ var serializeAws_queryLogicalResourceIds = function (input, context) {
5526
5421
  };
5527
5422
  var serializeAws_queryManagedExecution = function (input, context) {
5528
5423
  var entries = {};
5529
- if (input.Active !== undefined && input.Active !== null) {
5424
+ if (input.Active != null) {
5530
5425
  entries["Active"] = input.Active;
5531
5426
  }
5532
5427
  return entries;
@@ -5579,16 +5474,16 @@ var serializeAws_queryOrganizationalUnitIdList = function (input, context) {
5579
5474
  };
5580
5475
  var serializeAws_queryParameter = function (input, context) {
5581
5476
  var entries = {};
5582
- if (input.ParameterKey !== undefined && input.ParameterKey !== null) {
5477
+ if (input.ParameterKey != null) {
5583
5478
  entries["ParameterKey"] = input.ParameterKey;
5584
5479
  }
5585
- if (input.ParameterValue !== undefined && input.ParameterValue !== null) {
5480
+ if (input.ParameterValue != null) {
5586
5481
  entries["ParameterValue"] = input.ParameterValue;
5587
5482
  }
5588
- if (input.UsePreviousValue !== undefined && input.UsePreviousValue !== null) {
5483
+ if (input.UsePreviousValue != null) {
5589
5484
  entries["UsePreviousValue"] = input.UsePreviousValue;
5590
5485
  }
5591
- if (input.ResolvedValue !== undefined && input.ResolvedValue !== null) {
5486
+ if (input.ResolvedValue != null) {
5592
5487
  entries["ResolvedValue"] = input.ResolvedValue;
5593
5488
  }
5594
5489
  return entries;
@@ -5622,41 +5517,41 @@ var serializeAws_queryParameters = function (input, context) {
5622
5517
  };
5623
5518
  var serializeAws_queryPublishTypeInput = function (input, context) {
5624
5519
  var entries = {};
5625
- if (input.Type !== undefined && input.Type !== null) {
5520
+ if (input.Type != null) {
5626
5521
  entries["Type"] = input.Type;
5627
5522
  }
5628
- if (input.Arn !== undefined && input.Arn !== null) {
5523
+ if (input.Arn != null) {
5629
5524
  entries["Arn"] = input.Arn;
5630
5525
  }
5631
- if (input.TypeName !== undefined && input.TypeName !== null) {
5526
+ if (input.TypeName != null) {
5632
5527
  entries["TypeName"] = input.TypeName;
5633
5528
  }
5634
- if (input.PublicVersionNumber !== undefined && input.PublicVersionNumber !== null) {
5529
+ if (input.PublicVersionNumber != null) {
5635
5530
  entries["PublicVersionNumber"] = input.PublicVersionNumber;
5636
5531
  }
5637
5532
  return entries;
5638
5533
  };
5639
5534
  var serializeAws_queryRecordHandlerProgressInput = function (input, context) {
5640
5535
  var entries = {};
5641
- if (input.BearerToken !== undefined && input.BearerToken !== null) {
5536
+ if (input.BearerToken != null) {
5642
5537
  entries["BearerToken"] = input.BearerToken;
5643
5538
  }
5644
- if (input.OperationStatus !== undefined && input.OperationStatus !== null) {
5539
+ if (input.OperationStatus != null) {
5645
5540
  entries["OperationStatus"] = input.OperationStatus;
5646
5541
  }
5647
- if (input.CurrentOperationStatus !== undefined && input.CurrentOperationStatus !== null) {
5542
+ if (input.CurrentOperationStatus != null) {
5648
5543
  entries["CurrentOperationStatus"] = input.CurrentOperationStatus;
5649
5544
  }
5650
- if (input.StatusMessage !== undefined && input.StatusMessage !== null) {
5545
+ if (input.StatusMessage != null) {
5651
5546
  entries["StatusMessage"] = input.StatusMessage;
5652
5547
  }
5653
- if (input.ErrorCode !== undefined && input.ErrorCode !== null) {
5548
+ if (input.ErrorCode != null) {
5654
5549
  entries["ErrorCode"] = input.ErrorCode;
5655
5550
  }
5656
- if (input.ResourceModel !== undefined && input.ResourceModel !== null) {
5551
+ if (input.ResourceModel != null) {
5657
5552
  entries["ResourceModel"] = input.ResourceModel;
5658
5553
  }
5659
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
5554
+ if (input.ClientRequestToken != null) {
5660
5555
  entries["ClientRequestToken"] = input.ClientRequestToken;
5661
5556
  }
5662
5557
  return entries;
@@ -5686,26 +5581,26 @@ var serializeAws_queryRegionList = function (input, context) {
5686
5581
  };
5687
5582
  var serializeAws_queryRegisterPublisherInput = function (input, context) {
5688
5583
  var entries = {};
5689
- if (input.AcceptTermsAndConditions !== undefined && input.AcceptTermsAndConditions !== null) {
5584
+ if (input.AcceptTermsAndConditions != null) {
5690
5585
  entries["AcceptTermsAndConditions"] = input.AcceptTermsAndConditions;
5691
5586
  }
5692
- if (input.ConnectionArn !== undefined && input.ConnectionArn !== null) {
5587
+ if (input.ConnectionArn != null) {
5693
5588
  entries["ConnectionArn"] = input.ConnectionArn;
5694
5589
  }
5695
5590
  return entries;
5696
5591
  };
5697
5592
  var serializeAws_queryRegisterTypeInput = function (input, context) {
5698
5593
  var entries = {};
5699
- if (input.Type !== undefined && input.Type !== null) {
5594
+ if (input.Type != null) {
5700
5595
  entries["Type"] = input.Type;
5701
5596
  }
5702
- if (input.TypeName !== undefined && input.TypeName !== null) {
5597
+ if (input.TypeName != null) {
5703
5598
  entries["TypeName"] = input.TypeName;
5704
5599
  }
5705
- if (input.SchemaHandlerPackage !== undefined && input.SchemaHandlerPackage !== null) {
5600
+ if (input.SchemaHandlerPackage != null) {
5706
5601
  entries["SchemaHandlerPackage"] = input.SchemaHandlerPackage;
5707
5602
  }
5708
- if (input.LoggingConfig !== undefined && input.LoggingConfig !== null) {
5603
+ if (input.LoggingConfig != null) {
5709
5604
  var memberEntries = serializeAws_queryLoggingConfig(input.LoggingConfig, context);
5710
5605
  Object.entries(memberEntries).forEach(function (_a) {
5711
5606
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5713,10 +5608,10 @@ var serializeAws_queryRegisterTypeInput = function (input, context) {
5713
5608
  entries[loc] = value;
5714
5609
  });
5715
5610
  }
5716
- if (input.ExecutionRoleArn !== undefined && input.ExecutionRoleArn !== null) {
5611
+ if (input.ExecutionRoleArn != null) {
5717
5612
  entries["ExecutionRoleArn"] = input.ExecutionRoleArn;
5718
5613
  }
5719
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
5614
+ if (input.ClientRequestToken != null) {
5720
5615
  entries["ClientRequestToken"] = input.ClientRequestToken;
5721
5616
  }
5722
5617
  return entries;
@@ -5785,13 +5680,13 @@ var serializeAws_queryResourcesToSkip = function (input, context) {
5785
5680
  };
5786
5681
  var serializeAws_queryResourceToImport = function (input, context) {
5787
5682
  var entries = {};
5788
- if (input.ResourceType !== undefined && input.ResourceType !== null) {
5683
+ if (input.ResourceType != null) {
5789
5684
  entries["ResourceType"] = input.ResourceType;
5790
5685
  }
5791
- if (input.LogicalResourceId !== undefined && input.LogicalResourceId !== null) {
5686
+ if (input.LogicalResourceId != null) {
5792
5687
  entries["LogicalResourceId"] = input.LogicalResourceId;
5793
5688
  }
5794
- if (input.ResourceIdentifier !== undefined && input.ResourceIdentifier !== null) {
5689
+ if (input.ResourceIdentifier != null) {
5795
5690
  var memberEntries = serializeAws_queryResourceIdentifierProperties(input.ResourceIdentifier, context);
5796
5691
  Object.entries(memberEntries).forEach(function (_a) {
5797
5692
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5849,7 +5744,7 @@ var serializeAws_queryRetainResources = function (input, context) {
5849
5744
  };
5850
5745
  var serializeAws_queryRollbackConfiguration = function (input, context) {
5851
5746
  var entries = {};
5852
- if (input.RollbackTriggers !== undefined && input.RollbackTriggers !== null) {
5747
+ if (input.RollbackTriggers != null) {
5853
5748
  var memberEntries = serializeAws_queryRollbackTriggers(input.RollbackTriggers, context);
5854
5749
  Object.entries(memberEntries).forEach(function (_a) {
5855
5750
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -5857,30 +5752,30 @@ var serializeAws_queryRollbackConfiguration = function (input, context) {
5857
5752
  entries[loc] = value;
5858
5753
  });
5859
5754
  }
5860
- if (input.MonitoringTimeInMinutes !== undefined && input.MonitoringTimeInMinutes !== null) {
5755
+ if (input.MonitoringTimeInMinutes != null) {
5861
5756
  entries["MonitoringTimeInMinutes"] = input.MonitoringTimeInMinutes;
5862
5757
  }
5863
5758
  return entries;
5864
5759
  };
5865
5760
  var serializeAws_queryRollbackStackInput = function (input, context) {
5866
5761
  var entries = {};
5867
- if (input.StackName !== undefined && input.StackName !== null) {
5762
+ if (input.StackName != null) {
5868
5763
  entries["StackName"] = input.StackName;
5869
5764
  }
5870
- if (input.RoleARN !== undefined && input.RoleARN !== null) {
5765
+ if (input.RoleARN != null) {
5871
5766
  entries["RoleARN"] = input.RoleARN;
5872
5767
  }
5873
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
5768
+ if (input.ClientRequestToken != null) {
5874
5769
  entries["ClientRequestToken"] = input.ClientRequestToken;
5875
5770
  }
5876
5771
  return entries;
5877
5772
  };
5878
5773
  var serializeAws_queryRollbackTrigger = function (input, context) {
5879
5774
  var entries = {};
5880
- if (input.Arn !== undefined && input.Arn !== null) {
5775
+ if (input.Arn != null) {
5881
5776
  entries["Arn"] = input.Arn;
5882
5777
  }
5883
- if (input.Type !== undefined && input.Type !== null) {
5778
+ if (input.Type != null) {
5884
5779
  entries["Type"] = input.Type;
5885
5780
  }
5886
5781
  return entries;
@@ -5914,64 +5809,64 @@ var serializeAws_queryRollbackTriggers = function (input, context) {
5914
5809
  };
5915
5810
  var serializeAws_querySetStackPolicyInput = function (input, context) {
5916
5811
  var entries = {};
5917
- if (input.StackName !== undefined && input.StackName !== null) {
5812
+ if (input.StackName != null) {
5918
5813
  entries["StackName"] = input.StackName;
5919
5814
  }
5920
- if (input.StackPolicyBody !== undefined && input.StackPolicyBody !== null) {
5815
+ if (input.StackPolicyBody != null) {
5921
5816
  entries["StackPolicyBody"] = input.StackPolicyBody;
5922
5817
  }
5923
- if (input.StackPolicyURL !== undefined && input.StackPolicyURL !== null) {
5818
+ if (input.StackPolicyURL != null) {
5924
5819
  entries["StackPolicyURL"] = input.StackPolicyURL;
5925
5820
  }
5926
5821
  return entries;
5927
5822
  };
5928
5823
  var serializeAws_querySetTypeConfigurationInput = function (input, context) {
5929
5824
  var entries = {};
5930
- if (input.TypeArn !== undefined && input.TypeArn !== null) {
5825
+ if (input.TypeArn != null) {
5931
5826
  entries["TypeArn"] = input.TypeArn;
5932
5827
  }
5933
- if (input.Configuration !== undefined && input.Configuration !== null) {
5828
+ if (input.Configuration != null) {
5934
5829
  entries["Configuration"] = input.Configuration;
5935
5830
  }
5936
- if (input.ConfigurationAlias !== undefined && input.ConfigurationAlias !== null) {
5831
+ if (input.ConfigurationAlias != null) {
5937
5832
  entries["ConfigurationAlias"] = input.ConfigurationAlias;
5938
5833
  }
5939
- if (input.TypeName !== undefined && input.TypeName !== null) {
5834
+ if (input.TypeName != null) {
5940
5835
  entries["TypeName"] = input.TypeName;
5941
5836
  }
5942
- if (input.Type !== undefined && input.Type !== null) {
5837
+ if (input.Type != null) {
5943
5838
  entries["Type"] = input.Type;
5944
5839
  }
5945
5840
  return entries;
5946
5841
  };
5947
5842
  var serializeAws_querySetTypeDefaultVersionInput = function (input, context) {
5948
5843
  var entries = {};
5949
- if (input.Arn !== undefined && input.Arn !== null) {
5844
+ if (input.Arn != null) {
5950
5845
  entries["Arn"] = input.Arn;
5951
5846
  }
5952
- if (input.Type !== undefined && input.Type !== null) {
5847
+ if (input.Type != null) {
5953
5848
  entries["Type"] = input.Type;
5954
5849
  }
5955
- if (input.TypeName !== undefined && input.TypeName !== null) {
5850
+ if (input.TypeName != null) {
5956
5851
  entries["TypeName"] = input.TypeName;
5957
5852
  }
5958
- if (input.VersionId !== undefined && input.VersionId !== null) {
5853
+ if (input.VersionId != null) {
5959
5854
  entries["VersionId"] = input.VersionId;
5960
5855
  }
5961
5856
  return entries;
5962
5857
  };
5963
5858
  var serializeAws_querySignalResourceInput = function (input, context) {
5964
5859
  var entries = {};
5965
- if (input.StackName !== undefined && input.StackName !== null) {
5860
+ if (input.StackName != null) {
5966
5861
  entries["StackName"] = input.StackName;
5967
5862
  }
5968
- if (input.LogicalResourceId !== undefined && input.LogicalResourceId !== null) {
5863
+ if (input.LogicalResourceId != null) {
5969
5864
  entries["LogicalResourceId"] = input.LogicalResourceId;
5970
5865
  }
5971
- if (input.UniqueId !== undefined && input.UniqueId !== null) {
5866
+ if (input.UniqueId != null) {
5972
5867
  entries["UniqueId"] = input.UniqueId;
5973
5868
  }
5974
- if (input.Status !== undefined && input.Status !== null) {
5869
+ if (input.Status != null) {
5975
5870
  entries["Status"] = input.Status;
5976
5871
  }
5977
5872
  return entries;
@@ -6001,10 +5896,10 @@ var serializeAws_queryStackIdList = function (input, context) {
6001
5896
  };
6002
5897
  var serializeAws_queryStackInstanceFilter = function (input, context) {
6003
5898
  var entries = {};
6004
- if (input.Name !== undefined && input.Name !== null) {
5899
+ if (input.Name != null) {
6005
5900
  entries["Name"] = input.Name;
6006
5901
  }
6007
- if (input.Values !== undefined && input.Values !== null) {
5902
+ if (input.Values != null) {
6008
5903
  entries["Values"] = input.Values;
6009
5904
  }
6010
5905
  return entries;
@@ -6061,10 +5956,10 @@ var serializeAws_queryStackResourceDriftStatusFilters = function (input, context
6061
5956
  };
6062
5957
  var serializeAws_queryStackSetOperationPreferences = function (input, context) {
6063
5958
  var entries = {};
6064
- if (input.RegionConcurrencyType !== undefined && input.RegionConcurrencyType !== null) {
5959
+ if (input.RegionConcurrencyType != null) {
6065
5960
  entries["RegionConcurrencyType"] = input.RegionConcurrencyType;
6066
5961
  }
6067
- if (input.RegionOrder !== undefined && input.RegionOrder !== null) {
5962
+ if (input.RegionOrder != null) {
6068
5963
  var memberEntries = serializeAws_queryRegionList(input.RegionOrder, context);
6069
5964
  Object.entries(memberEntries).forEach(function (_a) {
6070
5965
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6072,16 +5967,16 @@ var serializeAws_queryStackSetOperationPreferences = function (input, context) {
6072
5967
  entries[loc] = value;
6073
5968
  });
6074
5969
  }
6075
- if (input.FailureToleranceCount !== undefined && input.FailureToleranceCount !== null) {
5970
+ if (input.FailureToleranceCount != null) {
6076
5971
  entries["FailureToleranceCount"] = input.FailureToleranceCount;
6077
5972
  }
6078
- if (input.FailureTolerancePercentage !== undefined && input.FailureTolerancePercentage !== null) {
5973
+ if (input.FailureTolerancePercentage != null) {
6079
5974
  entries["FailureTolerancePercentage"] = input.FailureTolerancePercentage;
6080
5975
  }
6081
- if (input.MaxConcurrentCount !== undefined && input.MaxConcurrentCount !== null) {
5976
+ if (input.MaxConcurrentCount != null) {
6082
5977
  entries["MaxConcurrentCount"] = input.MaxConcurrentCount;
6083
5978
  }
6084
- if (input.MaxConcurrentPercentage !== undefined && input.MaxConcurrentPercentage !== null) {
5979
+ if (input.MaxConcurrentPercentage != null) {
6085
5980
  entries["MaxConcurrentPercentage"] = input.MaxConcurrentPercentage;
6086
5981
  }
6087
5982
  return entries;
@@ -6111,23 +6006,23 @@ var serializeAws_queryStackStatusFilter = function (input, context) {
6111
6006
  };
6112
6007
  var serializeAws_queryStopStackSetOperationInput = function (input, context) {
6113
6008
  var entries = {};
6114
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
6009
+ if (input.StackSetName != null) {
6115
6010
  entries["StackSetName"] = input.StackSetName;
6116
6011
  }
6117
- if (input.OperationId !== undefined && input.OperationId !== null) {
6012
+ if (input.OperationId != null) {
6118
6013
  entries["OperationId"] = input.OperationId;
6119
6014
  }
6120
- if (input.CallAs !== undefined && input.CallAs !== null) {
6015
+ if (input.CallAs != null) {
6121
6016
  entries["CallAs"] = input.CallAs;
6122
6017
  }
6123
6018
  return entries;
6124
6019
  };
6125
6020
  var serializeAws_queryTag = function (input, context) {
6126
6021
  var entries = {};
6127
- if (input.Key !== undefined && input.Key !== null) {
6022
+ if (input.Key != null) {
6128
6023
  entries["Key"] = input.Key;
6129
6024
  }
6130
- if (input.Value !== undefined && input.Value !== null) {
6025
+ if (input.Value != null) {
6131
6026
  entries["Value"] = input.Value;
6132
6027
  }
6133
6028
  return entries;
@@ -6161,38 +6056,38 @@ var serializeAws_queryTags = function (input, context) {
6161
6056
  };
6162
6057
  var serializeAws_queryTestTypeInput = function (input, context) {
6163
6058
  var entries = {};
6164
- if (input.Arn !== undefined && input.Arn !== null) {
6059
+ if (input.Arn != null) {
6165
6060
  entries["Arn"] = input.Arn;
6166
6061
  }
6167
- if (input.Type !== undefined && input.Type !== null) {
6062
+ if (input.Type != null) {
6168
6063
  entries["Type"] = input.Type;
6169
6064
  }
6170
- if (input.TypeName !== undefined && input.TypeName !== null) {
6065
+ if (input.TypeName != null) {
6171
6066
  entries["TypeName"] = input.TypeName;
6172
6067
  }
6173
- if (input.VersionId !== undefined && input.VersionId !== null) {
6068
+ if (input.VersionId != null) {
6174
6069
  entries["VersionId"] = input.VersionId;
6175
6070
  }
6176
- if (input.LogDeliveryBucket !== undefined && input.LogDeliveryBucket !== null) {
6071
+ if (input.LogDeliveryBucket != null) {
6177
6072
  entries["LogDeliveryBucket"] = input.LogDeliveryBucket;
6178
6073
  }
6179
6074
  return entries;
6180
6075
  };
6181
6076
  var serializeAws_queryTypeConfigurationIdentifier = function (input, context) {
6182
6077
  var entries = {};
6183
- if (input.TypeArn !== undefined && input.TypeArn !== null) {
6078
+ if (input.TypeArn != null) {
6184
6079
  entries["TypeArn"] = input.TypeArn;
6185
6080
  }
6186
- if (input.TypeConfigurationAlias !== undefined && input.TypeConfigurationAlias !== null) {
6081
+ if (input.TypeConfigurationAlias != null) {
6187
6082
  entries["TypeConfigurationAlias"] = input.TypeConfigurationAlias;
6188
6083
  }
6189
- if (input.TypeConfigurationArn !== undefined && input.TypeConfigurationArn !== null) {
6084
+ if (input.TypeConfigurationArn != null) {
6190
6085
  entries["TypeConfigurationArn"] = input.TypeConfigurationArn;
6191
6086
  }
6192
- if (input.Type !== undefined && input.Type !== null) {
6087
+ if (input.Type != null) {
6193
6088
  entries["Type"] = input.Type;
6194
6089
  }
6195
- if (input.TypeName !== undefined && input.TypeName !== null) {
6090
+ if (input.TypeName != null) {
6196
6091
  entries["TypeName"] = input.TypeName;
6197
6092
  }
6198
6093
  return entries;
@@ -6226,38 +6121,38 @@ var serializeAws_queryTypeConfigurationIdentifiers = function (input, context) {
6226
6121
  };
6227
6122
  var serializeAws_queryTypeFilters = function (input, context) {
6228
6123
  var entries = {};
6229
- if (input.Category !== undefined && input.Category !== null) {
6124
+ if (input.Category != null) {
6230
6125
  entries["Category"] = input.Category;
6231
6126
  }
6232
- if (input.PublisherId !== undefined && input.PublisherId !== null) {
6127
+ if (input.PublisherId != null) {
6233
6128
  entries["PublisherId"] = input.PublisherId;
6234
6129
  }
6235
- if (input.TypeNamePrefix !== undefined && input.TypeNamePrefix !== null) {
6130
+ if (input.TypeNamePrefix != null) {
6236
6131
  entries["TypeNamePrefix"] = input.TypeNamePrefix;
6237
6132
  }
6238
6133
  return entries;
6239
6134
  };
6240
6135
  var serializeAws_queryUpdateStackInput = function (input, context) {
6241
6136
  var entries = {};
6242
- if (input.StackName !== undefined && input.StackName !== null) {
6137
+ if (input.StackName != null) {
6243
6138
  entries["StackName"] = input.StackName;
6244
6139
  }
6245
- if (input.TemplateBody !== undefined && input.TemplateBody !== null) {
6140
+ if (input.TemplateBody != null) {
6246
6141
  entries["TemplateBody"] = input.TemplateBody;
6247
6142
  }
6248
- if (input.TemplateURL !== undefined && input.TemplateURL !== null) {
6143
+ if (input.TemplateURL != null) {
6249
6144
  entries["TemplateURL"] = input.TemplateURL;
6250
6145
  }
6251
- if (input.UsePreviousTemplate !== undefined && input.UsePreviousTemplate !== null) {
6146
+ if (input.UsePreviousTemplate != null) {
6252
6147
  entries["UsePreviousTemplate"] = input.UsePreviousTemplate;
6253
6148
  }
6254
- if (input.StackPolicyDuringUpdateBody !== undefined && input.StackPolicyDuringUpdateBody !== null) {
6149
+ if (input.StackPolicyDuringUpdateBody != null) {
6255
6150
  entries["StackPolicyDuringUpdateBody"] = input.StackPolicyDuringUpdateBody;
6256
6151
  }
6257
- if (input.StackPolicyDuringUpdateURL !== undefined && input.StackPolicyDuringUpdateURL !== null) {
6152
+ if (input.StackPolicyDuringUpdateURL != null) {
6258
6153
  entries["StackPolicyDuringUpdateURL"] = input.StackPolicyDuringUpdateURL;
6259
6154
  }
6260
- if (input.Parameters !== undefined && input.Parameters !== null) {
6155
+ if (input.Parameters != null) {
6261
6156
  var memberEntries = serializeAws_queryParameters(input.Parameters, context);
6262
6157
  Object.entries(memberEntries).forEach(function (_a) {
6263
6158
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6265,7 +6160,7 @@ var serializeAws_queryUpdateStackInput = function (input, context) {
6265
6160
  entries[loc] = value;
6266
6161
  });
6267
6162
  }
6268
- if (input.Capabilities !== undefined && input.Capabilities !== null) {
6163
+ if (input.Capabilities != null) {
6269
6164
  var memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
6270
6165
  Object.entries(memberEntries).forEach(function (_a) {
6271
6166
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6273,7 +6168,7 @@ var serializeAws_queryUpdateStackInput = function (input, context) {
6273
6168
  entries[loc] = value;
6274
6169
  });
6275
6170
  }
6276
- if (input.ResourceTypes !== undefined && input.ResourceTypes !== null) {
6171
+ if (input.ResourceTypes != null) {
6277
6172
  var memberEntries = serializeAws_queryResourceTypes(input.ResourceTypes, context);
6278
6173
  Object.entries(memberEntries).forEach(function (_a) {
6279
6174
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6281,10 +6176,10 @@ var serializeAws_queryUpdateStackInput = function (input, context) {
6281
6176
  entries[loc] = value;
6282
6177
  });
6283
6178
  }
6284
- if (input.RoleARN !== undefined && input.RoleARN !== null) {
6179
+ if (input.RoleARN != null) {
6285
6180
  entries["RoleARN"] = input.RoleARN;
6286
6181
  }
6287
- if (input.RollbackConfiguration !== undefined && input.RollbackConfiguration !== null) {
6182
+ if (input.RollbackConfiguration != null) {
6288
6183
  var memberEntries = serializeAws_queryRollbackConfiguration(input.RollbackConfiguration, context);
6289
6184
  Object.entries(memberEntries).forEach(function (_a) {
6290
6185
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6292,13 +6187,13 @@ var serializeAws_queryUpdateStackInput = function (input, context) {
6292
6187
  entries[loc] = value;
6293
6188
  });
6294
6189
  }
6295
- if (input.StackPolicyBody !== undefined && input.StackPolicyBody !== null) {
6190
+ if (input.StackPolicyBody != null) {
6296
6191
  entries["StackPolicyBody"] = input.StackPolicyBody;
6297
6192
  }
6298
- if (input.StackPolicyURL !== undefined && input.StackPolicyURL !== null) {
6193
+ if (input.StackPolicyURL != null) {
6299
6194
  entries["StackPolicyURL"] = input.StackPolicyURL;
6300
6195
  }
6301
- if (input.NotificationARNs !== undefined && input.NotificationARNs !== null) {
6196
+ if (input.NotificationARNs != null) {
6302
6197
  var memberEntries = serializeAws_queryNotificationARNs(input.NotificationARNs, context);
6303
6198
  Object.entries(memberEntries).forEach(function (_a) {
6304
6199
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6306,7 +6201,7 @@ var serializeAws_queryUpdateStackInput = function (input, context) {
6306
6201
  entries[loc] = value;
6307
6202
  });
6308
6203
  }
6309
- if (input.Tags !== undefined && input.Tags !== null) {
6204
+ if (input.Tags != null) {
6310
6205
  var memberEntries = serializeAws_queryTags(input.Tags, context);
6311
6206
  Object.entries(memberEntries).forEach(function (_a) {
6312
6207
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6314,20 +6209,20 @@ var serializeAws_queryUpdateStackInput = function (input, context) {
6314
6209
  entries[loc] = value;
6315
6210
  });
6316
6211
  }
6317
- if (input.DisableRollback !== undefined && input.DisableRollback !== null) {
6212
+ if (input.DisableRollback != null) {
6318
6213
  entries["DisableRollback"] = input.DisableRollback;
6319
6214
  }
6320
- if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
6215
+ if (input.ClientRequestToken != null) {
6321
6216
  entries["ClientRequestToken"] = input.ClientRequestToken;
6322
6217
  }
6323
6218
  return entries;
6324
6219
  };
6325
6220
  var serializeAws_queryUpdateStackInstancesInput = function (input, context) {
6326
6221
  var entries = {};
6327
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
6222
+ if (input.StackSetName != null) {
6328
6223
  entries["StackSetName"] = input.StackSetName;
6329
6224
  }
6330
- if (input.Accounts !== undefined && input.Accounts !== null) {
6225
+ if (input.Accounts != null) {
6331
6226
  var memberEntries = serializeAws_queryAccountList(input.Accounts, context);
6332
6227
  Object.entries(memberEntries).forEach(function (_a) {
6333
6228
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6335,7 +6230,7 @@ var serializeAws_queryUpdateStackInstancesInput = function (input, context) {
6335
6230
  entries[loc] = value;
6336
6231
  });
6337
6232
  }
6338
- if (input.DeploymentTargets !== undefined && input.DeploymentTargets !== null) {
6233
+ if (input.DeploymentTargets != null) {
6339
6234
  var memberEntries = serializeAws_queryDeploymentTargets(input.DeploymentTargets, context);
6340
6235
  Object.entries(memberEntries).forEach(function (_a) {
6341
6236
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6343,7 +6238,7 @@ var serializeAws_queryUpdateStackInstancesInput = function (input, context) {
6343
6238
  entries[loc] = value;
6344
6239
  });
6345
6240
  }
6346
- if (input.Regions !== undefined && input.Regions !== null) {
6241
+ if (input.Regions != null) {
6347
6242
  var memberEntries = serializeAws_queryRegionList(input.Regions, context);
6348
6243
  Object.entries(memberEntries).forEach(function (_a) {
6349
6244
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6351,7 +6246,7 @@ var serializeAws_queryUpdateStackInstancesInput = function (input, context) {
6351
6246
  entries[loc] = value;
6352
6247
  });
6353
6248
  }
6354
- if (input.ParameterOverrides !== undefined && input.ParameterOverrides !== null) {
6249
+ if (input.ParameterOverrides != null) {
6355
6250
  var memberEntries = serializeAws_queryParameters(input.ParameterOverrides, context);
6356
6251
  Object.entries(memberEntries).forEach(function (_a) {
6357
6252
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6359,7 +6254,7 @@ var serializeAws_queryUpdateStackInstancesInput = function (input, context) {
6359
6254
  entries[loc] = value;
6360
6255
  });
6361
6256
  }
6362
- if (input.OperationPreferences !== undefined && input.OperationPreferences !== null) {
6257
+ if (input.OperationPreferences != null) {
6363
6258
  var memberEntries = serializeAws_queryStackSetOperationPreferences(input.OperationPreferences, context);
6364
6259
  Object.entries(memberEntries).forEach(function (_a) {
6365
6260
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6370,32 +6265,32 @@ var serializeAws_queryUpdateStackInstancesInput = function (input, context) {
6370
6265
  if (input.OperationId === undefined) {
6371
6266
  input.OperationId = generateIdempotencyToken();
6372
6267
  }
6373
- if (input.OperationId !== undefined && input.OperationId !== null) {
6268
+ if (input.OperationId != null) {
6374
6269
  entries["OperationId"] = input.OperationId;
6375
6270
  }
6376
- if (input.CallAs !== undefined && input.CallAs !== null) {
6271
+ if (input.CallAs != null) {
6377
6272
  entries["CallAs"] = input.CallAs;
6378
6273
  }
6379
6274
  return entries;
6380
6275
  };
6381
6276
  var serializeAws_queryUpdateStackSetInput = function (input, context) {
6382
6277
  var entries = {};
6383
- if (input.StackSetName !== undefined && input.StackSetName !== null) {
6278
+ if (input.StackSetName != null) {
6384
6279
  entries["StackSetName"] = input.StackSetName;
6385
6280
  }
6386
- if (input.Description !== undefined && input.Description !== null) {
6281
+ if (input.Description != null) {
6387
6282
  entries["Description"] = input.Description;
6388
6283
  }
6389
- if (input.TemplateBody !== undefined && input.TemplateBody !== null) {
6284
+ if (input.TemplateBody != null) {
6390
6285
  entries["TemplateBody"] = input.TemplateBody;
6391
6286
  }
6392
- if (input.TemplateURL !== undefined && input.TemplateURL !== null) {
6287
+ if (input.TemplateURL != null) {
6393
6288
  entries["TemplateURL"] = input.TemplateURL;
6394
6289
  }
6395
- if (input.UsePreviousTemplate !== undefined && input.UsePreviousTemplate !== null) {
6290
+ if (input.UsePreviousTemplate != null) {
6396
6291
  entries["UsePreviousTemplate"] = input.UsePreviousTemplate;
6397
6292
  }
6398
- if (input.Parameters !== undefined && input.Parameters !== null) {
6293
+ if (input.Parameters != null) {
6399
6294
  var memberEntries = serializeAws_queryParameters(input.Parameters, context);
6400
6295
  Object.entries(memberEntries).forEach(function (_a) {
6401
6296
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6403,7 +6298,7 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6403
6298
  entries[loc] = value;
6404
6299
  });
6405
6300
  }
6406
- if (input.Capabilities !== undefined && input.Capabilities !== null) {
6301
+ if (input.Capabilities != null) {
6407
6302
  var memberEntries = serializeAws_queryCapabilities(input.Capabilities, context);
6408
6303
  Object.entries(memberEntries).forEach(function (_a) {
6409
6304
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6411,7 +6306,7 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6411
6306
  entries[loc] = value;
6412
6307
  });
6413
6308
  }
6414
- if (input.Tags !== undefined && input.Tags !== null) {
6309
+ if (input.Tags != null) {
6415
6310
  var memberEntries = serializeAws_queryTags(input.Tags, context);
6416
6311
  Object.entries(memberEntries).forEach(function (_a) {
6417
6312
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6419,7 +6314,7 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6419
6314
  entries[loc] = value;
6420
6315
  });
6421
6316
  }
6422
- if (input.OperationPreferences !== undefined && input.OperationPreferences !== null) {
6317
+ if (input.OperationPreferences != null) {
6423
6318
  var memberEntries = serializeAws_queryStackSetOperationPreferences(input.OperationPreferences, context);
6424
6319
  Object.entries(memberEntries).forEach(function (_a) {
6425
6320
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6427,13 +6322,13 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6427
6322
  entries[loc] = value;
6428
6323
  });
6429
6324
  }
6430
- if (input.AdministrationRoleARN !== undefined && input.AdministrationRoleARN !== null) {
6325
+ if (input.AdministrationRoleARN != null) {
6431
6326
  entries["AdministrationRoleARN"] = input.AdministrationRoleARN;
6432
6327
  }
6433
- if (input.ExecutionRoleName !== undefined && input.ExecutionRoleName !== null) {
6328
+ if (input.ExecutionRoleName != null) {
6434
6329
  entries["ExecutionRoleName"] = input.ExecutionRoleName;
6435
6330
  }
6436
- if (input.DeploymentTargets !== undefined && input.DeploymentTargets !== null) {
6331
+ if (input.DeploymentTargets != null) {
6437
6332
  var memberEntries = serializeAws_queryDeploymentTargets(input.DeploymentTargets, context);
6438
6333
  Object.entries(memberEntries).forEach(function (_a) {
6439
6334
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6441,10 +6336,10 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6441
6336
  entries[loc] = value;
6442
6337
  });
6443
6338
  }
6444
- if (input.PermissionModel !== undefined && input.PermissionModel !== null) {
6339
+ if (input.PermissionModel != null) {
6445
6340
  entries["PermissionModel"] = input.PermissionModel;
6446
6341
  }
6447
- if (input.AutoDeployment !== undefined && input.AutoDeployment !== null) {
6342
+ if (input.AutoDeployment != null) {
6448
6343
  var memberEntries = serializeAws_queryAutoDeployment(input.AutoDeployment, context);
6449
6344
  Object.entries(memberEntries).forEach(function (_a) {
6450
6345
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6455,10 +6350,10 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6455
6350
  if (input.OperationId === undefined) {
6456
6351
  input.OperationId = generateIdempotencyToken();
6457
6352
  }
6458
- if (input.OperationId !== undefined && input.OperationId !== null) {
6353
+ if (input.OperationId != null) {
6459
6354
  entries["OperationId"] = input.OperationId;
6460
6355
  }
6461
- if (input.Accounts !== undefined && input.Accounts !== null) {
6356
+ if (input.Accounts != null) {
6462
6357
  var memberEntries = serializeAws_queryAccountList(input.Accounts, context);
6463
6358
  Object.entries(memberEntries).forEach(function (_a) {
6464
6359
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6466,7 +6361,7 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6466
6361
  entries[loc] = value;
6467
6362
  });
6468
6363
  }
6469
- if (input.Regions !== undefined && input.Regions !== null) {
6364
+ if (input.Regions != null) {
6470
6365
  var memberEntries = serializeAws_queryRegionList(input.Regions, context);
6471
6366
  Object.entries(memberEntries).forEach(function (_a) {
6472
6367
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6474,10 +6369,10 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6474
6369
  entries[loc] = value;
6475
6370
  });
6476
6371
  }
6477
- if (input.CallAs !== undefined && input.CallAs !== null) {
6372
+ if (input.CallAs != null) {
6478
6373
  entries["CallAs"] = input.CallAs;
6479
6374
  }
6480
- if (input.ManagedExecution !== undefined && input.ManagedExecution !== null) {
6375
+ if (input.ManagedExecution != null) {
6481
6376
  var memberEntries = serializeAws_queryManagedExecution(input.ManagedExecution, context);
6482
6377
  Object.entries(memberEntries).forEach(function (_a) {
6483
6378
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -6489,20 +6384,20 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6489
6384
  };
6490
6385
  var serializeAws_queryUpdateTerminationProtectionInput = function (input, context) {
6491
6386
  var entries = {};
6492
- if (input.EnableTerminationProtection !== undefined && input.EnableTerminationProtection !== null) {
6387
+ if (input.EnableTerminationProtection != null) {
6493
6388
  entries["EnableTerminationProtection"] = input.EnableTerminationProtection;
6494
6389
  }
6495
- if (input.StackName !== undefined && input.StackName !== null) {
6390
+ if (input.StackName != null) {
6496
6391
  entries["StackName"] = input.StackName;
6497
6392
  }
6498
6393
  return entries;
6499
6394
  };
6500
6395
  var serializeAws_queryValidateTemplateInput = function (input, context) {
6501
6396
  var entries = {};
6502
- if (input.TemplateBody !== undefined && input.TemplateBody !== null) {
6397
+ if (input.TemplateBody != null) {
6503
6398
  entries["TemplateBody"] = input.TemplateBody;
6504
6399
  }
6505
- if (input.TemplateURL !== undefined && input.TemplateURL !== null) {
6400
+ if (input.TemplateURL != null) {
6506
6401
  entries["TemplateURL"] = input.TemplateURL;
6507
6402
  }
6508
6403
  return entries;
@@ -6537,9 +6432,6 @@ var deserializeAws_queryAccountLimitList = function (output, context) {
6537
6432
  return (output || [])
6538
6433
  .filter(function (e) { return e != null; })
6539
6434
  .map(function (entry) {
6540
- if (entry === null) {
6541
- return null;
6542
- }
6543
6435
  return deserializeAws_queryAccountLimit(entry, context);
6544
6436
  });
6545
6437
  };
@@ -6547,9 +6439,6 @@ var deserializeAws_queryAccountList = function (output, context) {
6547
6439
  return (output || [])
6548
6440
  .filter(function (e) { return e != null; })
6549
6441
  .map(function (entry) {
6550
- if (entry === null) {
6551
- return null;
6552
- }
6553
6442
  return __expectString(entry);
6554
6443
  });
6555
6444
  };
@@ -6566,9 +6455,6 @@ var deserializeAws_queryAllowedValues = function (output, context) {
6566
6455
  return (output || [])
6567
6456
  .filter(function (e) { return e != null; })
6568
6457
  .map(function (entry) {
6569
- if (entry === null) {
6570
- return null;
6571
- }
6572
6458
  return __expectString(entry);
6573
6459
  });
6574
6460
  };
@@ -6615,9 +6501,6 @@ var deserializeAws_queryBatchDescribeTypeConfigurationsErrors = function (output
6615
6501
  return (output || [])
6616
6502
  .filter(function (e) { return e != null; })
6617
6503
  .map(function (entry) {
6618
- if (entry === null) {
6619
- return null;
6620
- }
6621
6504
  return deserializeAws_queryBatchDescribeTypeConfigurationsError(entry, context);
6622
6505
  });
6623
6506
  };
@@ -6652,9 +6535,6 @@ var deserializeAws_queryCapabilities = function (output, context) {
6652
6535
  return (output || [])
6653
6536
  .filter(function (e) { return e != null; })
6654
6537
  .map(function (entry) {
6655
- if (entry === null) {
6656
- return null;
6657
- }
6658
6538
  return __expectString(entry);
6659
6539
  });
6660
6540
  };
@@ -6688,9 +6568,6 @@ var deserializeAws_queryChanges = function (output, context) {
6688
6568
  return (output || [])
6689
6569
  .filter(function (e) { return e != null; })
6690
6570
  .map(function (entry) {
6691
- if (entry === null) {
6692
- return null;
6693
- }
6694
6571
  return deserializeAws_queryChange(entry, context);
6695
6572
  });
6696
6573
  };
@@ -6744,9 +6621,6 @@ var deserializeAws_queryChangeSetHooks = function (output, context) {
6744
6621
  return (output || [])
6745
6622
  .filter(function (e) { return e != null; })
6746
6623
  .map(function (entry) {
6747
- if (entry === null) {
6748
- return null;
6749
- }
6750
6624
  return deserializeAws_queryChangeSetHook(entry, context);
6751
6625
  });
6752
6626
  };
@@ -6776,9 +6650,6 @@ var deserializeAws_queryChangeSetSummaries = function (output, context) {
6776
6650
  return (output || [])
6777
6651
  .filter(function (e) { return e != null; })
6778
6652
  .map(function (entry) {
6779
- if (entry === null) {
6780
- return null;
6781
- }
6782
6653
  return deserializeAws_queryChangeSetSummary(entry, context);
6783
6654
  });
6784
6655
  };
@@ -7437,9 +7308,6 @@ var deserializeAws_queryExports = function (output, context) {
7437
7308
  return (output || [])
7438
7309
  .filter(function (e) { return e != null; })
7439
7310
  .map(function (entry) {
7440
- if (entry === null) {
7441
- return null;
7442
- }
7443
7311
  return deserializeAws_queryExport(entry, context);
7444
7312
  });
7445
7313
  };
@@ -7529,9 +7397,6 @@ var deserializeAws_queryImports = function (output, context) {
7529
7397
  return (output || [])
7530
7398
  .filter(function (e) { return e != null; })
7531
7399
  .map(function (entry) {
7532
- if (entry === null) {
7533
- return null;
7534
- }
7535
7400
  return __expectString(entry);
7536
7401
  });
7537
7402
  };
@@ -7799,9 +7664,6 @@ var deserializeAws_queryLogicalResourceIds = function (output, context) {
7799
7664
  return (output || [])
7800
7665
  .filter(function (e) { return e != null; })
7801
7666
  .map(function (entry) {
7802
- if (entry === null) {
7803
- return null;
7804
- }
7805
7667
  return __expectString(entry);
7806
7668
  });
7807
7669
  };
@@ -7840,9 +7702,6 @@ var deserializeAws_queryNotificationARNs = function (output, context) {
7840
7702
  return (output || [])
7841
7703
  .filter(function (e) { return e != null; })
7842
7704
  .map(function (entry) {
7843
- if (entry === null) {
7844
- return null;
7845
- }
7846
7705
  return __expectString(entry);
7847
7706
  });
7848
7707
  };
@@ -7886,9 +7745,6 @@ var deserializeAws_queryOrganizationalUnitIdList = function (output, context) {
7886
7745
  return (output || [])
7887
7746
  .filter(function (e) { return e != null; })
7888
7747
  .map(function (entry) {
7889
- if (entry === null) {
7890
- return null;
7891
- }
7892
7748
  return __expectString(entry);
7893
7749
  });
7894
7750
  };
@@ -7917,9 +7773,6 @@ var deserializeAws_queryOutputs = function (output, context) {
7917
7773
  return (output || [])
7918
7774
  .filter(function (e) { return e != null; })
7919
7775
  .map(function (entry) {
7920
- if (entry === null) {
7921
- return null;
7922
- }
7923
7776
  return deserializeAws_queryOutput(entry, context);
7924
7777
  });
7925
7778
  };
@@ -7989,9 +7842,6 @@ var deserializeAws_queryParameterDeclarations = function (output, context) {
7989
7842
  return (output || [])
7990
7843
  .filter(function (e) { return e != null; })
7991
7844
  .map(function (entry) {
7992
- if (entry === null) {
7993
- return null;
7994
- }
7995
7845
  return deserializeAws_queryParameterDeclaration(entry, context);
7996
7846
  });
7997
7847
  };
@@ -7999,9 +7849,6 @@ var deserializeAws_queryParameters = function (output, context) {
7999
7849
  return (output || [])
8000
7850
  .filter(function (e) { return e != null; })
8001
7851
  .map(function (entry) {
8002
- if (entry === null) {
8003
- return null;
8004
- }
8005
7852
  return deserializeAws_queryParameter(entry, context);
8006
7853
  });
8007
7854
  };
@@ -8009,9 +7856,6 @@ var deserializeAws_queryPhysicalResourceIdContext = function (output, context) {
8009
7856
  return (output || [])
8010
7857
  .filter(function (e) { return e != null; })
8011
7858
  .map(function (entry) {
8012
- if (entry === null) {
8013
- return null;
8014
- }
8015
7859
  return deserializeAws_queryPhysicalResourceIdContextKeyValuePair(entry, context);
8016
7860
  });
8017
7861
  };
@@ -8053,9 +7897,6 @@ var deserializeAws_queryPropertyDifferences = function (output, context) {
8053
7897
  return (output || [])
8054
7898
  .filter(function (e) { return e != null; })
8055
7899
  .map(function (entry) {
8056
- if (entry === null) {
8057
- return null;
8058
- }
8059
7900
  return deserializeAws_queryPropertyDifference(entry, context);
8060
7901
  });
8061
7902
  };
@@ -8076,9 +7917,6 @@ var deserializeAws_queryRegionList = function (output, context) {
8076
7917
  return (output || [])
8077
7918
  .filter(function (e) { return e != null; })
8078
7919
  .map(function (entry) {
8079
- if (entry === null) {
8080
- return null;
8081
- }
8082
7920
  return __expectString(entry);
8083
7921
  });
8084
7922
  };
@@ -8104,9 +7942,6 @@ var deserializeAws_queryRegistrationTokenList = function (output, context) {
8104
7942
  return (output || [])
8105
7943
  .filter(function (e) { return e != null; })
8106
7944
  .map(function (entry) {
8107
- if (entry === null) {
8108
- return null;
8109
- }
8110
7945
  return __expectString(entry);
8111
7946
  });
8112
7947
  };
@@ -8139,9 +7974,6 @@ var deserializeAws_queryRequiredActivatedTypes = function (output, context) {
8139
7974
  return (output || [])
8140
7975
  .filter(function (e) { return e != null; })
8141
7976
  .map(function (entry) {
8142
- if (entry === null) {
8143
- return null;
8144
- }
8145
7977
  return deserializeAws_queryRequiredActivatedType(entry, context);
8146
7978
  });
8147
7979
  };
@@ -8217,9 +8049,6 @@ var deserializeAws_queryResourceChangeDetails = function (output, context) {
8217
8049
  return (output || [])
8218
8050
  .filter(function (e) { return e != null; })
8219
8051
  .map(function (entry) {
8220
- if (entry === null) {
8221
- return null;
8222
- }
8223
8052
  return deserializeAws_queryResourceChangeDetail(entry, context);
8224
8053
  });
8225
8054
  };
@@ -8227,9 +8056,6 @@ var deserializeAws_queryResourceIdentifiers = function (output, context) {
8227
8056
  return (output || [])
8228
8057
  .filter(function (e) { return e != null; })
8229
8058
  .map(function (entry) {
8230
- if (entry === null) {
8231
- return null;
8232
- }
8233
8059
  return __expectString(entry);
8234
8060
  });
8235
8061
  };
@@ -8237,9 +8063,6 @@ var deserializeAws_queryResourceIdentifierSummaries = function (output, context)
8237
8063
  return (output || [])
8238
8064
  .filter(function (e) { return e != null; })
8239
8065
  .map(function (entry) {
8240
- if (entry === null) {
8241
- return null;
8242
- }
8243
8066
  return deserializeAws_queryResourceIdentifierSummary(entry, context);
8244
8067
  });
8245
8068
  };
@@ -8287,9 +8110,6 @@ var deserializeAws_queryResourceTypes = function (output, context) {
8287
8110
  return (output || [])
8288
8111
  .filter(function (e) { return e != null; })
8289
8112
  .map(function (entry) {
8290
- if (entry === null) {
8291
- return null;
8292
- }
8293
8113
  return __expectString(entry);
8294
8114
  });
8295
8115
  };
@@ -8335,9 +8155,6 @@ var deserializeAws_queryRollbackTriggers = function (output, context) {
8335
8155
  return (output || [])
8336
8156
  .filter(function (e) { return e != null; })
8337
8157
  .map(function (entry) {
8338
- if (entry === null) {
8339
- return null;
8340
- }
8341
8158
  return deserializeAws_queryRollbackTrigger(entry, context);
8342
8159
  });
8343
8160
  };
@@ -8345,9 +8162,6 @@ var deserializeAws_queryScope = function (output, context) {
8345
8162
  return (output || [])
8346
8163
  .filter(function (e) { return e != null; })
8347
8164
  .map(function (entry) {
8348
- if (entry === null) {
8349
- return null;
8350
- }
8351
8165
  return __expectString(entry);
8352
8166
  });
8353
8167
  };
@@ -8571,9 +8385,6 @@ var deserializeAws_queryStackEvents = function (output, context) {
8571
8385
  return (output || [])
8572
8386
  .filter(function (e) { return e != null; })
8573
8387
  .map(function (entry) {
8574
- if (entry === null) {
8575
- return null;
8576
- }
8577
8388
  return deserializeAws_queryStackEvent(entry, context);
8578
8389
  });
8579
8390
  };
@@ -8651,9 +8462,6 @@ var deserializeAws_queryStackInstanceSummaries = function (output, context) {
8651
8462
  return (output || [])
8652
8463
  .filter(function (e) { return e != null; })
8653
8464
  .map(function (entry) {
8654
- if (entry === null) {
8655
- return null;
8656
- }
8657
8465
  return deserializeAws_queryStackInstanceSummary(entry, context);
8658
8466
  });
8659
8467
  };
@@ -8899,9 +8707,6 @@ var deserializeAws_queryStackResourceDrifts = function (output, context) {
8899
8707
  return (output || [])
8900
8708
  .filter(function (e) { return e != null; })
8901
8709
  .map(function (entry) {
8902
- if (entry === null) {
8903
- return null;
8904
- }
8905
8710
  return deserializeAws_queryStackResourceDrift(entry, context);
8906
8711
  });
8907
8712
  };
@@ -8909,9 +8714,6 @@ var deserializeAws_queryStackResources = function (output, context) {
8909
8714
  return (output || [])
8910
8715
  .filter(function (e) { return e != null; })
8911
8716
  .map(function (entry) {
8912
- if (entry === null) {
8913
- return null;
8914
- }
8915
8717
  return deserializeAws_queryStackResource(entry, context);
8916
8718
  });
8917
8719
  };
@@ -8919,9 +8721,6 @@ var deserializeAws_queryStackResourceSummaries = function (output, context) {
8919
8721
  return (output || [])
8920
8722
  .filter(function (e) { return e != null; })
8921
8723
  .map(function (entry) {
8922
- if (entry === null) {
8923
- return null;
8924
- }
8925
8724
  return deserializeAws_queryStackResourceSummary(entry, context);
8926
8725
  });
8927
8726
  };
@@ -8966,9 +8765,6 @@ var deserializeAws_queryStacks = function (output, context) {
8966
8765
  return (output || [])
8967
8766
  .filter(function (e) { return e != null; })
8968
8767
  .map(function (entry) {
8969
- if (entry === null) {
8970
- return null;
8971
- }
8972
8768
  return deserializeAws_queryStack(entry, context);
8973
8769
  });
8974
8770
  };
@@ -9201,9 +8997,6 @@ var deserializeAws_queryStackSetOperationResultSummaries = function (output, con
9201
8997
  return (output || [])
9202
8998
  .filter(function (e) { return e != null; })
9203
8999
  .map(function (entry) {
9204
- if (entry === null) {
9205
- return null;
9206
- }
9207
9000
  return deserializeAws_queryStackSetOperationResultSummary(entry, context);
9208
9001
  });
9209
9002
  };
@@ -9240,9 +9033,6 @@ var deserializeAws_queryStackSetOperationSummaries = function (output, context)
9240
9033
  return (output || [])
9241
9034
  .filter(function (e) { return e != null; })
9242
9035
  .map(function (entry) {
9243
- if (entry === null) {
9244
- return null;
9245
- }
9246
9036
  return deserializeAws_queryStackSetOperationSummary(entry, context);
9247
9037
  });
9248
9038
  };
@@ -9279,9 +9069,6 @@ var deserializeAws_queryStackSetSummaries = function (output, context) {
9279
9069
  return (output || [])
9280
9070
  .filter(function (e) { return e != null; })
9281
9071
  .map(function (entry) {
9282
- if (entry === null) {
9283
- return null;
9284
- }
9285
9072
  return deserializeAws_queryStackSetSummary(entry, context);
9286
9073
  });
9287
9074
  };
@@ -9330,9 +9117,6 @@ var deserializeAws_queryStackSummaries = function (output, context) {
9330
9117
  return (output || [])
9331
9118
  .filter(function (e) { return e != null; })
9332
9119
  .map(function (entry) {
9333
- if (entry === null) {
9334
- return null;
9335
- }
9336
9120
  return deserializeAws_queryStackSummary(entry, context);
9337
9121
  });
9338
9122
  };
@@ -9389,9 +9173,6 @@ var deserializeAws_queryStageList = function (output, context) {
9389
9173
  return (output || [])
9390
9174
  .filter(function (e) { return e != null; })
9391
9175
  .map(function (entry) {
9392
- if (entry === null) {
9393
- return null;
9394
- }
9395
9176
  return __expectString(entry);
9396
9177
  });
9397
9178
  };
@@ -9412,9 +9193,6 @@ var deserializeAws_querySupportedMajorVersions = function (output, context) {
9412
9193
  return (output || [])
9413
9194
  .filter(function (e) { return e != null; })
9414
9195
  .map(function (entry) {
9415
- if (entry === null) {
9416
- return null;
9417
- }
9418
9196
  return __strictParseInt32(entry);
9419
9197
  });
9420
9198
  };
@@ -9435,9 +9213,6 @@ var deserializeAws_queryTags = function (output, context) {
9435
9213
  return (output || [])
9436
9214
  .filter(function (e) { return e != null; })
9437
9215
  .map(function (entry) {
9438
- if (entry === null) {
9439
- return null;
9440
- }
9441
9216
  return deserializeAws_queryTag(entry, context);
9442
9217
  });
9443
9218
  };
@@ -9466,9 +9241,6 @@ var deserializeAws_queryTemplateParameters = function (output, context) {
9466
9241
  return (output || [])
9467
9242
  .filter(function (e) { return e != null; })
9468
9243
  .map(function (entry) {
9469
- if (entry === null) {
9470
- return null;
9471
- }
9472
9244
  return deserializeAws_queryTemplateParameter(entry, context);
9473
9245
  });
9474
9246
  };
@@ -9494,9 +9266,6 @@ var deserializeAws_queryTransformsList = function (output, context) {
9494
9266
  return (output || [])
9495
9267
  .filter(function (e) { return e != null; })
9496
9268
  .map(function (entry) {
9497
- if (entry === null) {
9498
- return null;
9499
- }
9500
9269
  return __expectString(entry);
9501
9270
  });
9502
9271
  };
@@ -9537,9 +9306,6 @@ var deserializeAws_queryTypeConfigurationDetailsList = function (output, context
9537
9306
  return (output || [])
9538
9307
  .filter(function (e) { return e != null; })
9539
9308
  .map(function (entry) {
9540
- if (entry === null) {
9541
- return null;
9542
- }
9543
9309
  return deserializeAws_queryTypeConfigurationDetails(entry, context);
9544
9310
  });
9545
9311
  };
@@ -9590,9 +9356,6 @@ var deserializeAws_queryTypeSummaries = function (output, context) {
9590
9356
  return (output || [])
9591
9357
  .filter(function (e) { return e != null; })
9592
9358
  .map(function (entry) {
9593
- if (entry === null) {
9594
- return null;
9595
- }
9596
9359
  return deserializeAws_queryTypeSummary(entry, context);
9597
9360
  });
9598
9361
  };
@@ -9657,9 +9420,6 @@ var deserializeAws_queryTypeVersionSummaries = function (output, context) {
9657
9420
  return (output || [])
9658
9421
  .filter(function (e) { return e != null; })
9659
9422
  .map(function (entry) {
9660
- if (entry === null) {
9661
- return null;
9662
- }
9663
9423
  return deserializeAws_queryTypeVersionSummary(entry, context);
9664
9424
  });
9665
9425
  };
@@ -9704,9 +9464,6 @@ var deserializeAws_queryUnprocessedTypeConfigurations = function (output, contex
9704
9464
  return (output || [])
9705
9465
  .filter(function (e) { return e != null; })
9706
9466
  .map(function (entry) {
9707
- if (entry === null) {
9708
- return null;
9709
- }
9710
9467
  return deserializeAws_queryTypeConfigurationIdentifier(entry, context);
9711
9468
  });
9712
9469
  };