@aws-sdk/client-elastic-load-balancing-v2 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, strictParseLong as __strictParseLong, } 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, strictParseLong as __strictParseLong, 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 { ElasticLoadBalancingV2ServiceException as __BaseException } from "../models/ElasticLoadBalancingV2ServiceException";
@@ -364,7 +364,7 @@ export var deserializeAws_queryAddListenerCertificatesCommand = function (output
364
364
  });
365
365
  }); };
366
366
  var deserializeAws_queryAddListenerCertificatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
367
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
367
+ var parsedOutput, _a, errorCode, _b, parsedBody;
368
368
  var _c;
369
369
  return __generator(this, function (_d) {
370
370
  switch (_d.label) {
@@ -393,14 +393,14 @@ var deserializeAws_queryAddListenerCertificatesCommandError = function (output,
393
393
  case 7: throw _d.sent();
394
394
  case 8:
395
395
  parsedBody = parsedOutput.body;
396
- $metadata = deserializeMetadata(output);
397
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
398
- response = new __BaseException({
399
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
400
- $fault: "client",
401
- $metadata: $metadata,
396
+ throwDefaultError({
397
+ output: output,
398
+ parsedBody: parsedBody.Error,
399
+ exceptionCtor: __BaseException,
400
+ errorCode: errorCode,
402
401
  });
403
- throw __decorateServiceException(response, parsedBody.Error);
402
+ _d.label = 9;
403
+ case 9: return [2];
404
404
  }
405
405
  });
406
406
  }); };
@@ -423,7 +423,7 @@ export var deserializeAws_queryAddTagsCommand = function (output, context) { ret
423
423
  });
424
424
  }); };
425
425
  var deserializeAws_queryAddTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
426
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
426
+ var parsedOutput, _a, errorCode, _b, parsedBody;
427
427
  var _c;
428
428
  return __generator(this, function (_d) {
429
429
  switch (_d.label) {
@@ -464,14 +464,14 @@ var deserializeAws_queryAddTagsCommandError = function (output, context) { retur
464
464
  case 13: throw _d.sent();
465
465
  case 14:
466
466
  parsedBody = parsedOutput.body;
467
- $metadata = deserializeMetadata(output);
468
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
469
- response = new __BaseException({
470
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
471
- $fault: "client",
472
- $metadata: $metadata,
467
+ throwDefaultError({
468
+ output: output,
469
+ parsedBody: parsedBody.Error,
470
+ exceptionCtor: __BaseException,
471
+ errorCode: errorCode,
473
472
  });
474
- throw __decorateServiceException(response, parsedBody.Error);
473
+ _d.label = 15;
474
+ case 15: return [2];
475
475
  }
476
476
  });
477
477
  }); };
@@ -494,7 +494,7 @@ export var deserializeAws_queryCreateListenerCommand = function (output, context
494
494
  });
495
495
  }); };
496
496
  var deserializeAws_queryCreateListenerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
497
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
497
+ var parsedOutput, _a, errorCode, _b, parsedBody;
498
498
  var _c;
499
499
  return __generator(this, function (_d) {
500
500
  switch (_d.label) {
@@ -583,14 +583,14 @@ var deserializeAws_queryCreateListenerCommandError = function (output, context)
583
583
  case 37: throw _d.sent();
584
584
  case 38:
585
585
  parsedBody = parsedOutput.body;
586
- $metadata = deserializeMetadata(output);
587
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
588
- response = new __BaseException({
589
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
590
- $fault: "client",
591
- $metadata: $metadata,
586
+ throwDefaultError({
587
+ output: output,
588
+ parsedBody: parsedBody.Error,
589
+ exceptionCtor: __BaseException,
590
+ errorCode: errorCode,
592
591
  });
593
- throw __decorateServiceException(response, parsedBody.Error);
592
+ _d.label = 39;
593
+ case 39: return [2];
594
594
  }
595
595
  });
596
596
  }); };
@@ -613,7 +613,7 @@ export var deserializeAws_queryCreateLoadBalancerCommand = function (output, con
613
613
  });
614
614
  }); };
615
615
  var deserializeAws_queryCreateLoadBalancerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
616
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
616
+ var parsedOutput, _a, errorCode, _b, parsedBody;
617
617
  var _c;
618
618
  return __generator(this, function (_d) {
619
619
  switch (_d.label) {
@@ -682,14 +682,14 @@ var deserializeAws_queryCreateLoadBalancerCommandError = function (output, conte
682
682
  case 27: throw _d.sent();
683
683
  case 28:
684
684
  parsedBody = parsedOutput.body;
685
- $metadata = deserializeMetadata(output);
686
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
687
- response = new __BaseException({
688
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
689
- $fault: "client",
690
- $metadata: $metadata,
685
+ throwDefaultError({
686
+ output: output,
687
+ parsedBody: parsedBody.Error,
688
+ exceptionCtor: __BaseException,
689
+ errorCode: errorCode,
691
690
  });
692
- throw __decorateServiceException(response, parsedBody.Error);
691
+ _d.label = 29;
692
+ case 29: return [2];
693
693
  }
694
694
  });
695
695
  }); };
@@ -712,7 +712,7 @@ export var deserializeAws_queryCreateRuleCommand = function (output, context) {
712
712
  });
713
713
  }); };
714
714
  var deserializeAws_queryCreateRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
715
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
715
+ var parsedOutput, _a, errorCode, _b, parsedBody;
716
716
  var _c;
717
717
  return __generator(this, function (_d) {
718
718
  switch (_d.label) {
@@ -789,14 +789,14 @@ var deserializeAws_queryCreateRuleCommandError = function (output, context) { re
789
789
  case 31: throw _d.sent();
790
790
  case 32:
791
791
  parsedBody = parsedOutput.body;
792
- $metadata = deserializeMetadata(output);
793
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
794
- response = new __BaseException({
795
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
796
- $fault: "client",
797
- $metadata: $metadata,
792
+ throwDefaultError({
793
+ output: output,
794
+ parsedBody: parsedBody.Error,
795
+ exceptionCtor: __BaseException,
796
+ errorCode: errorCode,
798
797
  });
799
- throw __decorateServiceException(response, parsedBody.Error);
798
+ _d.label = 33;
799
+ case 33: return [2];
800
800
  }
801
801
  });
802
802
  }); };
@@ -819,7 +819,7 @@ export var deserializeAws_queryCreateTargetGroupCommand = function (output, cont
819
819
  });
820
820
  }); };
821
821
  var deserializeAws_queryCreateTargetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
822
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
822
+ var parsedOutput, _a, errorCode, _b, parsedBody;
823
823
  var _c;
824
824
  return __generator(this, function (_d) {
825
825
  switch (_d.label) {
@@ -852,14 +852,14 @@ var deserializeAws_queryCreateTargetGroupCommandError = function (output, contex
852
852
  case 9: throw _d.sent();
853
853
  case 10:
854
854
  parsedBody = parsedOutput.body;
855
- $metadata = deserializeMetadata(output);
856
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
857
- response = new __BaseException({
858
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
859
- $fault: "client",
860
- $metadata: $metadata,
855
+ throwDefaultError({
856
+ output: output,
857
+ parsedBody: parsedBody.Error,
858
+ exceptionCtor: __BaseException,
859
+ errorCode: errorCode,
861
860
  });
862
- throw __decorateServiceException(response, parsedBody.Error);
861
+ _d.label = 11;
862
+ case 11: return [2];
863
863
  }
864
864
  });
865
865
  }); };
@@ -882,7 +882,7 @@ export var deserializeAws_queryDeleteListenerCommand = function (output, context
882
882
  });
883
883
  }); };
884
884
  var deserializeAws_queryDeleteListenerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
885
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
885
+ var parsedOutput, _a, errorCode, _b, parsedBody;
886
886
  var _c;
887
887
  return __generator(this, function (_d) {
888
888
  switch (_d.label) {
@@ -907,14 +907,14 @@ var deserializeAws_queryDeleteListenerCommandError = function (output, context)
907
907
  case 5: throw _d.sent();
908
908
  case 6:
909
909
  parsedBody = parsedOutput.body;
910
- $metadata = deserializeMetadata(output);
911
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
912
- response = new __BaseException({
913
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
914
- $fault: "client",
915
- $metadata: $metadata,
910
+ throwDefaultError({
911
+ output: output,
912
+ parsedBody: parsedBody.Error,
913
+ exceptionCtor: __BaseException,
914
+ errorCode: errorCode,
916
915
  });
917
- throw __decorateServiceException(response, parsedBody.Error);
916
+ _d.label = 7;
917
+ case 7: return [2];
918
918
  }
919
919
  });
920
920
  }); };
@@ -937,7 +937,7 @@ export var deserializeAws_queryDeleteLoadBalancerCommand = function (output, con
937
937
  });
938
938
  }); };
939
939
  var deserializeAws_queryDeleteLoadBalancerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
940
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
940
+ var parsedOutput, _a, errorCode, _b, parsedBody;
941
941
  var _c;
942
942
  return __generator(this, function (_d) {
943
943
  switch (_d.label) {
@@ -966,14 +966,14 @@ var deserializeAws_queryDeleteLoadBalancerCommandError = function (output, conte
966
966
  case 7: throw _d.sent();
967
967
  case 8:
968
968
  parsedBody = parsedOutput.body;
969
- $metadata = deserializeMetadata(output);
970
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
971
- response = new __BaseException({
972
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
973
- $fault: "client",
974
- $metadata: $metadata,
969
+ throwDefaultError({
970
+ output: output,
971
+ parsedBody: parsedBody.Error,
972
+ exceptionCtor: __BaseException,
973
+ errorCode: errorCode,
975
974
  });
976
- throw __decorateServiceException(response, parsedBody.Error);
975
+ _d.label = 9;
976
+ case 9: return [2];
977
977
  }
978
978
  });
979
979
  }); };
@@ -996,7 +996,7 @@ export var deserializeAws_queryDeleteRuleCommand = function (output, context) {
996
996
  });
997
997
  }); };
998
998
  var deserializeAws_queryDeleteRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
999
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
999
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1000
1000
  var _c;
1001
1001
  return __generator(this, function (_d) {
1002
1002
  switch (_d.label) {
@@ -1021,14 +1021,14 @@ var deserializeAws_queryDeleteRuleCommandError = function (output, context) { re
1021
1021
  case 5: throw _d.sent();
1022
1022
  case 6:
1023
1023
  parsedBody = parsedOutput.body;
1024
- $metadata = deserializeMetadata(output);
1025
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1026
- response = new __BaseException({
1027
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1028
- $fault: "client",
1029
- $metadata: $metadata,
1024
+ throwDefaultError({
1025
+ output: output,
1026
+ parsedBody: parsedBody.Error,
1027
+ exceptionCtor: __BaseException,
1028
+ errorCode: errorCode,
1030
1029
  });
1031
- throw __decorateServiceException(response, parsedBody.Error);
1030
+ _d.label = 7;
1031
+ case 7: return [2];
1032
1032
  }
1033
1033
  });
1034
1034
  }); };
@@ -1051,7 +1051,7 @@ export var deserializeAws_queryDeleteTargetGroupCommand = function (output, cont
1051
1051
  });
1052
1052
  }); };
1053
1053
  var deserializeAws_queryDeleteTargetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1054
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1054
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1055
1055
  var _c;
1056
1056
  return __generator(this, function (_d) {
1057
1057
  switch (_d.label) {
@@ -1072,14 +1072,14 @@ var deserializeAws_queryDeleteTargetGroupCommandError = function (output, contex
1072
1072
  case 3: throw _d.sent();
1073
1073
  case 4:
1074
1074
  parsedBody = parsedOutput.body;
1075
- $metadata = deserializeMetadata(output);
1076
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1077
- response = new __BaseException({
1078
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1079
- $fault: "client",
1080
- $metadata: $metadata,
1075
+ throwDefaultError({
1076
+ output: output,
1077
+ parsedBody: parsedBody.Error,
1078
+ exceptionCtor: __BaseException,
1079
+ errorCode: errorCode,
1081
1080
  });
1082
- throw __decorateServiceException(response, parsedBody.Error);
1081
+ _d.label = 5;
1082
+ case 5: return [2];
1083
1083
  }
1084
1084
  });
1085
1085
  }); };
@@ -1102,7 +1102,7 @@ export var deserializeAws_queryDeregisterTargetsCommand = function (output, cont
1102
1102
  });
1103
1103
  }); };
1104
1104
  var deserializeAws_queryDeregisterTargetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1105
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1105
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1106
1106
  var _c;
1107
1107
  return __generator(this, function (_d) {
1108
1108
  switch (_d.label) {
@@ -1127,14 +1127,14 @@ var deserializeAws_queryDeregisterTargetsCommandError = function (output, contex
1127
1127
  case 5: throw _d.sent();
1128
1128
  case 6:
1129
1129
  parsedBody = parsedOutput.body;
1130
- $metadata = deserializeMetadata(output);
1131
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1132
- response = new __BaseException({
1133
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1134
- $fault: "client",
1135
- $metadata: $metadata,
1130
+ throwDefaultError({
1131
+ output: output,
1132
+ parsedBody: parsedBody.Error,
1133
+ exceptionCtor: __BaseException,
1134
+ errorCode: errorCode,
1136
1135
  });
1137
- throw __decorateServiceException(response, parsedBody.Error);
1136
+ _d.label = 7;
1137
+ case 7: return [2];
1138
1138
  }
1139
1139
  });
1140
1140
  }); };
@@ -1157,7 +1157,7 @@ export var deserializeAws_queryDescribeAccountLimitsCommand = function (output,
1157
1157
  });
1158
1158
  }); };
1159
1159
  var deserializeAws_queryDescribeAccountLimitsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1160
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
1160
+ var parsedOutput, _a, errorCode, parsedBody;
1161
1161
  var _b;
1162
1162
  return __generator(this, function (_c) {
1163
1163
  switch (_c.label) {
@@ -1168,18 +1168,13 @@ var deserializeAws_queryDescribeAccountLimitsCommandError = function (output, co
1168
1168
  case 1:
1169
1169
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
1170
1170
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
1171
- switch (errorCode) {
1172
- default:
1173
- parsedBody = parsedOutput.body;
1174
- $metadata = deserializeMetadata(output);
1175
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1176
- response = new __BaseException({
1177
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1178
- $fault: "client",
1179
- $metadata: $metadata,
1180
- });
1181
- throw __decorateServiceException(response, parsedBody.Error);
1182
- }
1171
+ parsedBody = parsedOutput.body;
1172
+ throwDefaultError({
1173
+ output: output,
1174
+ parsedBody: parsedBody.Error,
1175
+ exceptionCtor: __BaseException,
1176
+ errorCode: errorCode,
1177
+ });
1183
1178
  return [2];
1184
1179
  }
1185
1180
  });
@@ -1203,7 +1198,7 @@ export var deserializeAws_queryDescribeListenerCertificatesCommand = function (o
1203
1198
  });
1204
1199
  }); };
1205
1200
  var deserializeAws_queryDescribeListenerCertificatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1206
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1201
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1207
1202
  var _c;
1208
1203
  return __generator(this, function (_d) {
1209
1204
  switch (_d.label) {
@@ -1224,14 +1219,14 @@ var deserializeAws_queryDescribeListenerCertificatesCommandError = function (out
1224
1219
  case 3: throw _d.sent();
1225
1220
  case 4:
1226
1221
  parsedBody = parsedOutput.body;
1227
- $metadata = deserializeMetadata(output);
1228
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1229
- response = new __BaseException({
1230
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1231
- $fault: "client",
1232
- $metadata: $metadata,
1222
+ throwDefaultError({
1223
+ output: output,
1224
+ parsedBody: parsedBody.Error,
1225
+ exceptionCtor: __BaseException,
1226
+ errorCode: errorCode,
1233
1227
  });
1234
- throw __decorateServiceException(response, parsedBody.Error);
1228
+ _d.label = 5;
1229
+ case 5: return [2];
1235
1230
  }
1236
1231
  });
1237
1232
  }); };
@@ -1254,7 +1249,7 @@ export var deserializeAws_queryDescribeListenersCommand = function (output, cont
1254
1249
  });
1255
1250
  }); };
1256
1251
  var deserializeAws_queryDescribeListenersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1257
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1252
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1258
1253
  var _c;
1259
1254
  return __generator(this, function (_d) {
1260
1255
  switch (_d.label) {
@@ -1283,14 +1278,14 @@ var deserializeAws_queryDescribeListenersCommandError = function (output, contex
1283
1278
  case 7: throw _d.sent();
1284
1279
  case 8:
1285
1280
  parsedBody = parsedOutput.body;
1286
- $metadata = deserializeMetadata(output);
1287
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1288
- response = new __BaseException({
1289
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1290
- $fault: "client",
1291
- $metadata: $metadata,
1281
+ throwDefaultError({
1282
+ output: output,
1283
+ parsedBody: parsedBody.Error,
1284
+ exceptionCtor: __BaseException,
1285
+ errorCode: errorCode,
1292
1286
  });
1293
- throw __decorateServiceException(response, parsedBody.Error);
1287
+ _d.label = 9;
1288
+ case 9: return [2];
1294
1289
  }
1295
1290
  });
1296
1291
  }); };
@@ -1313,7 +1308,7 @@ export var deserializeAws_queryDescribeLoadBalancerAttributesCommand = function
1313
1308
  });
1314
1309
  }); };
1315
1310
  var deserializeAws_queryDescribeLoadBalancerAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1316
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1311
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1317
1312
  var _c;
1318
1313
  return __generator(this, function (_d) {
1319
1314
  switch (_d.label) {
@@ -1334,14 +1329,14 @@ var deserializeAws_queryDescribeLoadBalancerAttributesCommandError = function (o
1334
1329
  case 3: throw _d.sent();
1335
1330
  case 4:
1336
1331
  parsedBody = parsedOutput.body;
1337
- $metadata = deserializeMetadata(output);
1338
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1339
- response = new __BaseException({
1340
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1341
- $fault: "client",
1342
- $metadata: $metadata,
1332
+ throwDefaultError({
1333
+ output: output,
1334
+ parsedBody: parsedBody.Error,
1335
+ exceptionCtor: __BaseException,
1336
+ errorCode: errorCode,
1343
1337
  });
1344
- throw __decorateServiceException(response, parsedBody.Error);
1338
+ _d.label = 5;
1339
+ case 5: return [2];
1345
1340
  }
1346
1341
  });
1347
1342
  }); };
@@ -1364,7 +1359,7 @@ export var deserializeAws_queryDescribeLoadBalancersCommand = function (output,
1364
1359
  });
1365
1360
  }); };
1366
1361
  var deserializeAws_queryDescribeLoadBalancersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1367
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1362
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1368
1363
  var _c;
1369
1364
  return __generator(this, function (_d) {
1370
1365
  switch (_d.label) {
@@ -1385,14 +1380,14 @@ var deserializeAws_queryDescribeLoadBalancersCommandError = function (output, co
1385
1380
  case 3: throw _d.sent();
1386
1381
  case 4:
1387
1382
  parsedBody = parsedOutput.body;
1388
- $metadata = deserializeMetadata(output);
1389
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1390
- response = new __BaseException({
1391
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1392
- $fault: "client",
1393
- $metadata: $metadata,
1383
+ throwDefaultError({
1384
+ output: output,
1385
+ parsedBody: parsedBody.Error,
1386
+ exceptionCtor: __BaseException,
1387
+ errorCode: errorCode,
1394
1388
  });
1395
- throw __decorateServiceException(response, parsedBody.Error);
1389
+ _d.label = 5;
1390
+ case 5: return [2];
1396
1391
  }
1397
1392
  });
1398
1393
  }); };
@@ -1415,7 +1410,7 @@ export var deserializeAws_queryDescribeRulesCommand = function (output, context)
1415
1410
  });
1416
1411
  }); };
1417
1412
  var deserializeAws_queryDescribeRulesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1418
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1413
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1419
1414
  var _c;
1420
1415
  return __generator(this, function (_d) {
1421
1416
  switch (_d.label) {
@@ -1444,14 +1439,14 @@ var deserializeAws_queryDescribeRulesCommandError = function (output, context) {
1444
1439
  case 7: throw _d.sent();
1445
1440
  case 8:
1446
1441
  parsedBody = parsedOutput.body;
1447
- $metadata = deserializeMetadata(output);
1448
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1449
- response = new __BaseException({
1450
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1451
- $fault: "client",
1452
- $metadata: $metadata,
1442
+ throwDefaultError({
1443
+ output: output,
1444
+ parsedBody: parsedBody.Error,
1445
+ exceptionCtor: __BaseException,
1446
+ errorCode: errorCode,
1453
1447
  });
1454
- throw __decorateServiceException(response, parsedBody.Error);
1448
+ _d.label = 9;
1449
+ case 9: return [2];
1455
1450
  }
1456
1451
  });
1457
1452
  }); };
@@ -1474,7 +1469,7 @@ export var deserializeAws_queryDescribeSSLPoliciesCommand = function (output, co
1474
1469
  });
1475
1470
  }); };
1476
1471
  var deserializeAws_queryDescribeSSLPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1477
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1472
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1478
1473
  var _c;
1479
1474
  return __generator(this, function (_d) {
1480
1475
  switch (_d.label) {
@@ -1495,14 +1490,14 @@ var deserializeAws_queryDescribeSSLPoliciesCommandError = function (output, cont
1495
1490
  case 3: throw _d.sent();
1496
1491
  case 4:
1497
1492
  parsedBody = parsedOutput.body;
1498
- $metadata = deserializeMetadata(output);
1499
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1500
- response = new __BaseException({
1501
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1502
- $fault: "client",
1503
- $metadata: $metadata,
1493
+ throwDefaultError({
1494
+ output: output,
1495
+ parsedBody: parsedBody.Error,
1496
+ exceptionCtor: __BaseException,
1497
+ errorCode: errorCode,
1504
1498
  });
1505
- throw __decorateServiceException(response, parsedBody.Error);
1499
+ _d.label = 5;
1500
+ case 5: return [2];
1506
1501
  }
1507
1502
  });
1508
1503
  }); };
@@ -1525,7 +1520,7 @@ export var deserializeAws_queryDescribeTagsCommand = function (output, context)
1525
1520
  });
1526
1521
  }); };
1527
1522
  var deserializeAws_queryDescribeTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1528
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1523
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1529
1524
  var _c;
1530
1525
  return __generator(this, function (_d) {
1531
1526
  switch (_d.label) {
@@ -1558,14 +1553,14 @@ var deserializeAws_queryDescribeTagsCommandError = function (output, context) {
1558
1553
  case 9: throw _d.sent();
1559
1554
  case 10:
1560
1555
  parsedBody = parsedOutput.body;
1561
- $metadata = deserializeMetadata(output);
1562
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1563
- response = new __BaseException({
1564
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1565
- $fault: "client",
1566
- $metadata: $metadata,
1556
+ throwDefaultError({
1557
+ output: output,
1558
+ parsedBody: parsedBody.Error,
1559
+ exceptionCtor: __BaseException,
1560
+ errorCode: errorCode,
1567
1561
  });
1568
- throw __decorateServiceException(response, parsedBody.Error);
1562
+ _d.label = 11;
1563
+ case 11: return [2];
1569
1564
  }
1570
1565
  });
1571
1566
  }); };
@@ -1588,7 +1583,7 @@ export var deserializeAws_queryDescribeTargetGroupAttributesCommand = function (
1588
1583
  });
1589
1584
  }); };
1590
1585
  var deserializeAws_queryDescribeTargetGroupAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1591
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1586
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1592
1587
  var _c;
1593
1588
  return __generator(this, function (_d) {
1594
1589
  switch (_d.label) {
@@ -1609,14 +1604,14 @@ var deserializeAws_queryDescribeTargetGroupAttributesCommandError = function (ou
1609
1604
  case 3: throw _d.sent();
1610
1605
  case 4:
1611
1606
  parsedBody = parsedOutput.body;
1612
- $metadata = deserializeMetadata(output);
1613
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1614
- response = new __BaseException({
1615
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1616
- $fault: "client",
1617
- $metadata: $metadata,
1607
+ throwDefaultError({
1608
+ output: output,
1609
+ parsedBody: parsedBody.Error,
1610
+ exceptionCtor: __BaseException,
1611
+ errorCode: errorCode,
1618
1612
  });
1619
- throw __decorateServiceException(response, parsedBody.Error);
1613
+ _d.label = 5;
1614
+ case 5: return [2];
1620
1615
  }
1621
1616
  });
1622
1617
  }); };
@@ -1639,7 +1634,7 @@ export var deserializeAws_queryDescribeTargetGroupsCommand = function (output, c
1639
1634
  });
1640
1635
  }); };
1641
1636
  var deserializeAws_queryDescribeTargetGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1642
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1637
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1643
1638
  var _c;
1644
1639
  return __generator(this, function (_d) {
1645
1640
  switch (_d.label) {
@@ -1664,14 +1659,14 @@ var deserializeAws_queryDescribeTargetGroupsCommandError = function (output, con
1664
1659
  case 5: throw _d.sent();
1665
1660
  case 6:
1666
1661
  parsedBody = parsedOutput.body;
1667
- $metadata = deserializeMetadata(output);
1668
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1669
- response = new __BaseException({
1670
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1671
- $fault: "client",
1672
- $metadata: $metadata,
1662
+ throwDefaultError({
1663
+ output: output,
1664
+ parsedBody: parsedBody.Error,
1665
+ exceptionCtor: __BaseException,
1666
+ errorCode: errorCode,
1673
1667
  });
1674
- throw __decorateServiceException(response, parsedBody.Error);
1668
+ _d.label = 7;
1669
+ case 7: return [2];
1675
1670
  }
1676
1671
  });
1677
1672
  }); };
@@ -1694,7 +1689,7 @@ export var deserializeAws_queryDescribeTargetHealthCommand = function (output, c
1694
1689
  });
1695
1690
  }); };
1696
1691
  var deserializeAws_queryDescribeTargetHealthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1697
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1692
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1698
1693
  var _c;
1699
1694
  return __generator(this, function (_d) {
1700
1695
  switch (_d.label) {
@@ -1723,14 +1718,14 @@ var deserializeAws_queryDescribeTargetHealthCommandError = function (output, con
1723
1718
  case 7: throw _d.sent();
1724
1719
  case 8:
1725
1720
  parsedBody = parsedOutput.body;
1726
- $metadata = deserializeMetadata(output);
1727
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1728
- response = new __BaseException({
1729
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1730
- $fault: "client",
1731
- $metadata: $metadata,
1721
+ throwDefaultError({
1722
+ output: output,
1723
+ parsedBody: parsedBody.Error,
1724
+ exceptionCtor: __BaseException,
1725
+ errorCode: errorCode,
1732
1726
  });
1733
- throw __decorateServiceException(response, parsedBody.Error);
1727
+ _d.label = 9;
1728
+ case 9: return [2];
1734
1729
  }
1735
1730
  });
1736
1731
  }); };
@@ -1753,7 +1748,7 @@ export var deserializeAws_queryModifyListenerCommand = function (output, context
1753
1748
  });
1754
1749
  }); };
1755
1750
  var deserializeAws_queryModifyListenerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1756
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1751
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1757
1752
  var _c;
1758
1753
  return __generator(this, function (_d) {
1759
1754
  switch (_d.label) {
@@ -1838,14 +1833,14 @@ var deserializeAws_queryModifyListenerCommandError = function (output, context)
1838
1833
  case 35: throw _d.sent();
1839
1834
  case 36:
1840
1835
  parsedBody = parsedOutput.body;
1841
- $metadata = deserializeMetadata(output);
1842
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1843
- response = new __BaseException({
1844
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1845
- $fault: "client",
1846
- $metadata: $metadata,
1836
+ throwDefaultError({
1837
+ output: output,
1838
+ parsedBody: parsedBody.Error,
1839
+ exceptionCtor: __BaseException,
1840
+ errorCode: errorCode,
1847
1841
  });
1848
- throw __decorateServiceException(response, parsedBody.Error);
1842
+ _d.label = 37;
1843
+ case 37: return [2];
1849
1844
  }
1850
1845
  });
1851
1846
  }); };
@@ -1868,7 +1863,7 @@ export var deserializeAws_queryModifyLoadBalancerAttributesCommand = function (o
1868
1863
  });
1869
1864
  }); };
1870
1865
  var deserializeAws_queryModifyLoadBalancerAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1871
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1866
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1872
1867
  var _c;
1873
1868
  return __generator(this, function (_d) {
1874
1869
  switch (_d.label) {
@@ -1893,14 +1888,14 @@ var deserializeAws_queryModifyLoadBalancerAttributesCommandError = function (out
1893
1888
  case 5: throw _d.sent();
1894
1889
  case 6:
1895
1890
  parsedBody = parsedOutput.body;
1896
- $metadata = deserializeMetadata(output);
1897
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1898
- response = new __BaseException({
1899
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1900
- $fault: "client",
1901
- $metadata: $metadata,
1891
+ throwDefaultError({
1892
+ output: output,
1893
+ parsedBody: parsedBody.Error,
1894
+ exceptionCtor: __BaseException,
1895
+ errorCode: errorCode,
1902
1896
  });
1903
- throw __decorateServiceException(response, parsedBody.Error);
1897
+ _d.label = 7;
1898
+ case 7: return [2];
1904
1899
  }
1905
1900
  });
1906
1901
  }); };
@@ -1923,7 +1918,7 @@ export var deserializeAws_queryModifyRuleCommand = function (output, context) {
1923
1918
  });
1924
1919
  }); };
1925
1920
  var deserializeAws_queryModifyRuleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1926
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1921
+ var parsedOutput, _a, errorCode, _b, parsedBody;
1927
1922
  var _c;
1928
1923
  return __generator(this, function (_d) {
1929
1924
  switch (_d.label) {
@@ -1984,14 +1979,14 @@ var deserializeAws_queryModifyRuleCommandError = function (output, context) { re
1984
1979
  case 23: throw _d.sent();
1985
1980
  case 24:
1986
1981
  parsedBody = parsedOutput.body;
1987
- $metadata = deserializeMetadata(output);
1988
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1989
- response = new __BaseException({
1990
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
1991
- $fault: "client",
1992
- $metadata: $metadata,
1982
+ throwDefaultError({
1983
+ output: output,
1984
+ parsedBody: parsedBody.Error,
1985
+ exceptionCtor: __BaseException,
1986
+ errorCode: errorCode,
1993
1987
  });
1994
- throw __decorateServiceException(response, parsedBody.Error);
1988
+ _d.label = 25;
1989
+ case 25: return [2];
1995
1990
  }
1996
1991
  });
1997
1992
  }); };
@@ -2014,7 +2009,7 @@ export var deserializeAws_queryModifyTargetGroupCommand = function (output, cont
2014
2009
  });
2015
2010
  }); };
2016
2011
  var deserializeAws_queryModifyTargetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2017
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2012
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2018
2013
  var _c;
2019
2014
  return __generator(this, function (_d) {
2020
2015
  switch (_d.label) {
@@ -2039,14 +2034,14 @@ var deserializeAws_queryModifyTargetGroupCommandError = function (output, contex
2039
2034
  case 5: throw _d.sent();
2040
2035
  case 6:
2041
2036
  parsedBody = parsedOutput.body;
2042
- $metadata = deserializeMetadata(output);
2043
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2044
- response = new __BaseException({
2045
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2046
- $fault: "client",
2047
- $metadata: $metadata,
2037
+ throwDefaultError({
2038
+ output: output,
2039
+ parsedBody: parsedBody.Error,
2040
+ exceptionCtor: __BaseException,
2041
+ errorCode: errorCode,
2048
2042
  });
2049
- throw __decorateServiceException(response, parsedBody.Error);
2043
+ _d.label = 7;
2044
+ case 7: return [2];
2050
2045
  }
2051
2046
  });
2052
2047
  }); };
@@ -2069,7 +2064,7 @@ export var deserializeAws_queryModifyTargetGroupAttributesCommand = function (ou
2069
2064
  });
2070
2065
  }); };
2071
2066
  var deserializeAws_queryModifyTargetGroupAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2072
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2067
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2073
2068
  var _c;
2074
2069
  return __generator(this, function (_d) {
2075
2070
  switch (_d.label) {
@@ -2094,14 +2089,14 @@ var deserializeAws_queryModifyTargetGroupAttributesCommandError = function (outp
2094
2089
  case 5: throw _d.sent();
2095
2090
  case 6:
2096
2091
  parsedBody = parsedOutput.body;
2097
- $metadata = deserializeMetadata(output);
2098
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2099
- response = new __BaseException({
2100
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2101
- $fault: "client",
2102
- $metadata: $metadata,
2092
+ throwDefaultError({
2093
+ output: output,
2094
+ parsedBody: parsedBody.Error,
2095
+ exceptionCtor: __BaseException,
2096
+ errorCode: errorCode,
2103
2097
  });
2104
- throw __decorateServiceException(response, parsedBody.Error);
2098
+ _d.label = 7;
2099
+ case 7: return [2];
2105
2100
  }
2106
2101
  });
2107
2102
  }); };
@@ -2124,7 +2119,7 @@ export var deserializeAws_queryRegisterTargetsCommand = function (output, contex
2124
2119
  });
2125
2120
  }); };
2126
2121
  var deserializeAws_queryRegisterTargetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2127
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2122
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2128
2123
  var _c;
2129
2124
  return __generator(this, function (_d) {
2130
2125
  switch (_d.label) {
@@ -2157,14 +2152,14 @@ var deserializeAws_queryRegisterTargetsCommandError = function (output, context)
2157
2152
  case 9: throw _d.sent();
2158
2153
  case 10:
2159
2154
  parsedBody = parsedOutput.body;
2160
- $metadata = deserializeMetadata(output);
2161
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2162
- response = new __BaseException({
2163
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2164
- $fault: "client",
2165
- $metadata: $metadata,
2155
+ throwDefaultError({
2156
+ output: output,
2157
+ parsedBody: parsedBody.Error,
2158
+ exceptionCtor: __BaseException,
2159
+ errorCode: errorCode,
2166
2160
  });
2167
- throw __decorateServiceException(response, parsedBody.Error);
2161
+ _d.label = 11;
2162
+ case 11: return [2];
2168
2163
  }
2169
2164
  });
2170
2165
  }); };
@@ -2187,7 +2182,7 @@ export var deserializeAws_queryRemoveListenerCertificatesCommand = function (out
2187
2182
  });
2188
2183
  }); };
2189
2184
  var deserializeAws_queryRemoveListenerCertificatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2190
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2185
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2191
2186
  var _c;
2192
2187
  return __generator(this, function (_d) {
2193
2188
  switch (_d.label) {
@@ -2212,14 +2207,14 @@ var deserializeAws_queryRemoveListenerCertificatesCommandError = function (outpu
2212
2207
  case 5: throw _d.sent();
2213
2208
  case 6:
2214
2209
  parsedBody = parsedOutput.body;
2215
- $metadata = deserializeMetadata(output);
2216
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2217
- response = new __BaseException({
2218
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2219
- $fault: "client",
2220
- $metadata: $metadata,
2210
+ throwDefaultError({
2211
+ output: output,
2212
+ parsedBody: parsedBody.Error,
2213
+ exceptionCtor: __BaseException,
2214
+ errorCode: errorCode,
2221
2215
  });
2222
- throw __decorateServiceException(response, parsedBody.Error);
2216
+ _d.label = 7;
2217
+ case 7: return [2];
2223
2218
  }
2224
2219
  });
2225
2220
  }); };
@@ -2242,7 +2237,7 @@ export var deserializeAws_queryRemoveTagsCommand = function (output, context) {
2242
2237
  });
2243
2238
  }); };
2244
2239
  var deserializeAws_queryRemoveTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2245
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2240
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2246
2241
  var _c;
2247
2242
  return __generator(this, function (_d) {
2248
2243
  switch (_d.label) {
@@ -2279,14 +2274,14 @@ var deserializeAws_queryRemoveTagsCommandError = function (output, context) { re
2279
2274
  case 11: throw _d.sent();
2280
2275
  case 12:
2281
2276
  parsedBody = parsedOutput.body;
2282
- $metadata = deserializeMetadata(output);
2283
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2284
- response = new __BaseException({
2285
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2286
- $fault: "client",
2287
- $metadata: $metadata,
2277
+ throwDefaultError({
2278
+ output: output,
2279
+ parsedBody: parsedBody.Error,
2280
+ exceptionCtor: __BaseException,
2281
+ errorCode: errorCode,
2288
2282
  });
2289
- throw __decorateServiceException(response, parsedBody.Error);
2283
+ _d.label = 13;
2284
+ case 13: return [2];
2290
2285
  }
2291
2286
  });
2292
2287
  }); };
@@ -2309,7 +2304,7 @@ export var deserializeAws_querySetIpAddressTypeCommand = function (output, conte
2309
2304
  });
2310
2305
  }); };
2311
2306
  var deserializeAws_querySetIpAddressTypeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2312
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2307
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2313
2308
  var _c;
2314
2309
  return __generator(this, function (_d) {
2315
2310
  switch (_d.label) {
@@ -2338,14 +2333,14 @@ var deserializeAws_querySetIpAddressTypeCommandError = function (output, context
2338
2333
  case 7: throw _d.sent();
2339
2334
  case 8:
2340
2335
  parsedBody = parsedOutput.body;
2341
- $metadata = deserializeMetadata(output);
2342
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2343
- response = new __BaseException({
2344
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2345
- $fault: "client",
2346
- $metadata: $metadata,
2336
+ throwDefaultError({
2337
+ output: output,
2338
+ parsedBody: parsedBody.Error,
2339
+ exceptionCtor: __BaseException,
2340
+ errorCode: errorCode,
2347
2341
  });
2348
- throw __decorateServiceException(response, parsedBody.Error);
2342
+ _d.label = 9;
2343
+ case 9: return [2];
2349
2344
  }
2350
2345
  });
2351
2346
  }); };
@@ -2368,7 +2363,7 @@ export var deserializeAws_querySetRulePrioritiesCommand = function (output, cont
2368
2363
  });
2369
2364
  }); };
2370
2365
  var deserializeAws_querySetRulePrioritiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2371
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2366
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2372
2367
  var _c;
2373
2368
  return __generator(this, function (_d) {
2374
2369
  switch (_d.label) {
@@ -2397,14 +2392,14 @@ var deserializeAws_querySetRulePrioritiesCommandError = function (output, contex
2397
2392
  case 7: throw _d.sent();
2398
2393
  case 8:
2399
2394
  parsedBody = parsedOutput.body;
2400
- $metadata = deserializeMetadata(output);
2401
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2402
- response = new __BaseException({
2403
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2404
- $fault: "client",
2405
- $metadata: $metadata,
2395
+ throwDefaultError({
2396
+ output: output,
2397
+ parsedBody: parsedBody.Error,
2398
+ exceptionCtor: __BaseException,
2399
+ errorCode: errorCode,
2406
2400
  });
2407
- throw __decorateServiceException(response, parsedBody.Error);
2401
+ _d.label = 9;
2402
+ case 9: return [2];
2408
2403
  }
2409
2404
  });
2410
2405
  }); };
@@ -2427,7 +2422,7 @@ export var deserializeAws_querySetSecurityGroupsCommand = function (output, cont
2427
2422
  });
2428
2423
  }); };
2429
2424
  var deserializeAws_querySetSecurityGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2430
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2425
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2431
2426
  var _c;
2432
2427
  return __generator(this, function (_d) {
2433
2428
  switch (_d.label) {
@@ -2456,14 +2451,14 @@ var deserializeAws_querySetSecurityGroupsCommandError = function (output, contex
2456
2451
  case 7: throw _d.sent();
2457
2452
  case 8:
2458
2453
  parsedBody = parsedOutput.body;
2459
- $metadata = deserializeMetadata(output);
2460
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2461
- response = new __BaseException({
2462
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2463
- $fault: "client",
2464
- $metadata: $metadata,
2454
+ throwDefaultError({
2455
+ output: output,
2456
+ parsedBody: parsedBody.Error,
2457
+ exceptionCtor: __BaseException,
2458
+ errorCode: errorCode,
2465
2459
  });
2466
- throw __decorateServiceException(response, parsedBody.Error);
2460
+ _d.label = 9;
2461
+ case 9: return [2];
2467
2462
  }
2468
2463
  });
2469
2464
  }); };
@@ -2486,7 +2481,7 @@ export var deserializeAws_querySetSubnetsCommand = function (output, context) {
2486
2481
  });
2487
2482
  }); };
2488
2483
  var deserializeAws_querySetSubnetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2489
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2484
+ var parsedOutput, _a, errorCode, _b, parsedBody;
2490
2485
  var _c;
2491
2486
  return __generator(this, function (_d) {
2492
2487
  switch (_d.label) {
@@ -2527,14 +2522,14 @@ var deserializeAws_querySetSubnetsCommandError = function (output, context) { re
2527
2522
  case 13: throw _d.sent();
2528
2523
  case 14:
2529
2524
  parsedBody = parsedOutput.body;
2530
- $metadata = deserializeMetadata(output);
2531
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2532
- response = new __BaseException({
2533
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
2534
- $fault: "client",
2535
- $metadata: $metadata,
2525
+ throwDefaultError({
2526
+ output: output,
2527
+ parsedBody: parsedBody.Error,
2528
+ exceptionCtor: __BaseException,
2529
+ errorCode: errorCode,
2536
2530
  });
2537
- throw __decorateServiceException(response, parsedBody.Error);
2531
+ _d.label = 15;
2532
+ case 15: return [2];
2538
2533
  }
2539
2534
  });
2540
2535
  }); };
@@ -2873,13 +2868,13 @@ var deserializeAws_queryUnsupportedProtocolExceptionResponse = function (parsedO
2873
2868
  }); };
2874
2869
  var serializeAws_queryAction = function (input, context) {
2875
2870
  var entries = {};
2876
- if (input.Type !== undefined && input.Type !== null) {
2871
+ if (input.Type != null) {
2877
2872
  entries["Type"] = input.Type;
2878
2873
  }
2879
- if (input.TargetGroupArn !== undefined && input.TargetGroupArn !== null) {
2874
+ if (input.TargetGroupArn != null) {
2880
2875
  entries["TargetGroupArn"] = input.TargetGroupArn;
2881
2876
  }
2882
- if (input.AuthenticateOidcConfig !== undefined && input.AuthenticateOidcConfig !== null) {
2877
+ if (input.AuthenticateOidcConfig != null) {
2883
2878
  var memberEntries = serializeAws_queryAuthenticateOidcActionConfig(input.AuthenticateOidcConfig, context);
2884
2879
  Object.entries(memberEntries).forEach(function (_a) {
2885
2880
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2887,7 +2882,7 @@ var serializeAws_queryAction = function (input, context) {
2887
2882
  entries[loc] = value;
2888
2883
  });
2889
2884
  }
2890
- if (input.AuthenticateCognitoConfig !== undefined && input.AuthenticateCognitoConfig !== null) {
2885
+ if (input.AuthenticateCognitoConfig != null) {
2891
2886
  var memberEntries = serializeAws_queryAuthenticateCognitoActionConfig(input.AuthenticateCognitoConfig, context);
2892
2887
  Object.entries(memberEntries).forEach(function (_a) {
2893
2888
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2895,10 +2890,10 @@ var serializeAws_queryAction = function (input, context) {
2895
2890
  entries[loc] = value;
2896
2891
  });
2897
2892
  }
2898
- if (input.Order !== undefined && input.Order !== null) {
2893
+ if (input.Order != null) {
2899
2894
  entries["Order"] = input.Order;
2900
2895
  }
2901
- if (input.RedirectConfig !== undefined && input.RedirectConfig !== null) {
2896
+ if (input.RedirectConfig != null) {
2902
2897
  var memberEntries = serializeAws_queryRedirectActionConfig(input.RedirectConfig, context);
2903
2898
  Object.entries(memberEntries).forEach(function (_a) {
2904
2899
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2906,7 +2901,7 @@ var serializeAws_queryAction = function (input, context) {
2906
2901
  entries[loc] = value;
2907
2902
  });
2908
2903
  }
2909
- if (input.FixedResponseConfig !== undefined && input.FixedResponseConfig !== null) {
2904
+ if (input.FixedResponseConfig != null) {
2910
2905
  var memberEntries = serializeAws_queryFixedResponseActionConfig(input.FixedResponseConfig, context);
2911
2906
  Object.entries(memberEntries).forEach(function (_a) {
2912
2907
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2914,7 +2909,7 @@ var serializeAws_queryAction = function (input, context) {
2914
2909
  entries[loc] = value;
2915
2910
  });
2916
2911
  }
2917
- if (input.ForwardConfig !== undefined && input.ForwardConfig !== null) {
2912
+ if (input.ForwardConfig != null) {
2918
2913
  var memberEntries = serializeAws_queryForwardActionConfig(input.ForwardConfig, context);
2919
2914
  Object.entries(memberEntries).forEach(function (_a) {
2920
2915
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2953,10 +2948,10 @@ var serializeAws_queryActions = function (input, context) {
2953
2948
  };
2954
2949
  var serializeAws_queryAddListenerCertificatesInput = function (input, context) {
2955
2950
  var entries = {};
2956
- if (input.ListenerArn !== undefined && input.ListenerArn !== null) {
2951
+ if (input.ListenerArn != null) {
2957
2952
  entries["ListenerArn"] = input.ListenerArn;
2958
2953
  }
2959
- if (input.Certificates !== undefined && input.Certificates !== null) {
2954
+ if (input.Certificates != null) {
2960
2955
  var memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
2961
2956
  Object.entries(memberEntries).forEach(function (_a) {
2962
2957
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2968,7 +2963,7 @@ var serializeAws_queryAddListenerCertificatesInput = function (input, context) {
2968
2963
  };
2969
2964
  var serializeAws_queryAddTagsInput = function (input, context) {
2970
2965
  var entries = {};
2971
- if (input.ResourceArns !== undefined && input.ResourceArns !== null) {
2966
+ if (input.ResourceArns != null) {
2972
2967
  var memberEntries = serializeAws_queryResourceArns(input.ResourceArns, context);
2973
2968
  Object.entries(memberEntries).forEach(function (_a) {
2974
2969
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -2976,7 +2971,7 @@ var serializeAws_queryAddTagsInput = function (input, context) {
2976
2971
  entries[loc] = value;
2977
2972
  });
2978
2973
  }
2979
- if (input.Tags !== undefined && input.Tags !== null) {
2974
+ if (input.Tags != null) {
2980
2975
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
2981
2976
  Object.entries(memberEntries).forEach(function (_a) {
2982
2977
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3023,25 +3018,25 @@ var serializeAws_queryAuthenticateCognitoActionAuthenticationRequestExtraParams
3023
3018
  };
3024
3019
  var serializeAws_queryAuthenticateCognitoActionConfig = function (input, context) {
3025
3020
  var entries = {};
3026
- if (input.UserPoolArn !== undefined && input.UserPoolArn !== null) {
3021
+ if (input.UserPoolArn != null) {
3027
3022
  entries["UserPoolArn"] = input.UserPoolArn;
3028
3023
  }
3029
- if (input.UserPoolClientId !== undefined && input.UserPoolClientId !== null) {
3024
+ if (input.UserPoolClientId != null) {
3030
3025
  entries["UserPoolClientId"] = input.UserPoolClientId;
3031
3026
  }
3032
- if (input.UserPoolDomain !== undefined && input.UserPoolDomain !== null) {
3027
+ if (input.UserPoolDomain != null) {
3033
3028
  entries["UserPoolDomain"] = input.UserPoolDomain;
3034
3029
  }
3035
- if (input.SessionCookieName !== undefined && input.SessionCookieName !== null) {
3030
+ if (input.SessionCookieName != null) {
3036
3031
  entries["SessionCookieName"] = input.SessionCookieName;
3037
3032
  }
3038
- if (input.Scope !== undefined && input.Scope !== null) {
3033
+ if (input.Scope != null) {
3039
3034
  entries["Scope"] = input.Scope;
3040
3035
  }
3041
- if (input.SessionTimeout !== undefined && input.SessionTimeout !== null) {
3036
+ if (input.SessionTimeout != null) {
3042
3037
  entries["SessionTimeout"] = input.SessionTimeout;
3043
3038
  }
3044
- if (input.AuthenticationRequestExtraParams !== undefined && input.AuthenticationRequestExtraParams !== null) {
3039
+ if (input.AuthenticationRequestExtraParams != null) {
3045
3040
  var memberEntries = serializeAws_queryAuthenticateCognitoActionAuthenticationRequestExtraParams(input.AuthenticationRequestExtraParams, context);
3046
3041
  Object.entries(memberEntries).forEach(function (_a) {
3047
3042
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3049,7 +3044,7 @@ var serializeAws_queryAuthenticateCognitoActionConfig = function (input, context
3049
3044
  entries[loc] = value;
3050
3045
  });
3051
3046
  }
3052
- if (input.OnUnauthenticatedRequest !== undefined && input.OnUnauthenticatedRequest !== null) {
3047
+ if (input.OnUnauthenticatedRequest != null) {
3053
3048
  entries["OnUnauthenticatedRequest"] = input.OnUnauthenticatedRequest;
3054
3049
  }
3055
3050
  return entries;
@@ -3068,34 +3063,34 @@ var serializeAws_queryAuthenticateOidcActionAuthenticationRequestExtraParams = f
3068
3063
  };
3069
3064
  var serializeAws_queryAuthenticateOidcActionConfig = function (input, context) {
3070
3065
  var entries = {};
3071
- if (input.Issuer !== undefined && input.Issuer !== null) {
3066
+ if (input.Issuer != null) {
3072
3067
  entries["Issuer"] = input.Issuer;
3073
3068
  }
3074
- if (input.AuthorizationEndpoint !== undefined && input.AuthorizationEndpoint !== null) {
3069
+ if (input.AuthorizationEndpoint != null) {
3075
3070
  entries["AuthorizationEndpoint"] = input.AuthorizationEndpoint;
3076
3071
  }
3077
- if (input.TokenEndpoint !== undefined && input.TokenEndpoint !== null) {
3072
+ if (input.TokenEndpoint != null) {
3078
3073
  entries["TokenEndpoint"] = input.TokenEndpoint;
3079
3074
  }
3080
- if (input.UserInfoEndpoint !== undefined && input.UserInfoEndpoint !== null) {
3075
+ if (input.UserInfoEndpoint != null) {
3081
3076
  entries["UserInfoEndpoint"] = input.UserInfoEndpoint;
3082
3077
  }
3083
- if (input.ClientId !== undefined && input.ClientId !== null) {
3078
+ if (input.ClientId != null) {
3084
3079
  entries["ClientId"] = input.ClientId;
3085
3080
  }
3086
- if (input.ClientSecret !== undefined && input.ClientSecret !== null) {
3081
+ if (input.ClientSecret != null) {
3087
3082
  entries["ClientSecret"] = input.ClientSecret;
3088
3083
  }
3089
- if (input.SessionCookieName !== undefined && input.SessionCookieName !== null) {
3084
+ if (input.SessionCookieName != null) {
3090
3085
  entries["SessionCookieName"] = input.SessionCookieName;
3091
3086
  }
3092
- if (input.Scope !== undefined && input.Scope !== null) {
3087
+ if (input.Scope != null) {
3093
3088
  entries["Scope"] = input.Scope;
3094
3089
  }
3095
- if (input.SessionTimeout !== undefined && input.SessionTimeout !== null) {
3090
+ if (input.SessionTimeout != null) {
3096
3091
  entries["SessionTimeout"] = input.SessionTimeout;
3097
3092
  }
3098
- if (input.AuthenticationRequestExtraParams !== undefined && input.AuthenticationRequestExtraParams !== null) {
3093
+ if (input.AuthenticationRequestExtraParams != null) {
3099
3094
  var memberEntries = serializeAws_queryAuthenticateOidcActionAuthenticationRequestExtraParams(input.AuthenticationRequestExtraParams, context);
3100
3095
  Object.entries(memberEntries).forEach(function (_a) {
3101
3096
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3103,20 +3098,20 @@ var serializeAws_queryAuthenticateOidcActionConfig = function (input, context) {
3103
3098
  entries[loc] = value;
3104
3099
  });
3105
3100
  }
3106
- if (input.OnUnauthenticatedRequest !== undefined && input.OnUnauthenticatedRequest !== null) {
3101
+ if (input.OnUnauthenticatedRequest != null) {
3107
3102
  entries["OnUnauthenticatedRequest"] = input.OnUnauthenticatedRequest;
3108
3103
  }
3109
- if (input.UseExistingClientSecret !== undefined && input.UseExistingClientSecret !== null) {
3104
+ if (input.UseExistingClientSecret != null) {
3110
3105
  entries["UseExistingClientSecret"] = input.UseExistingClientSecret;
3111
3106
  }
3112
3107
  return entries;
3113
3108
  };
3114
3109
  var serializeAws_queryCertificate = function (input, context) {
3115
3110
  var entries = {};
3116
- if (input.CertificateArn !== undefined && input.CertificateArn !== null) {
3111
+ if (input.CertificateArn != null) {
3117
3112
  entries["CertificateArn"] = input.CertificateArn;
3118
3113
  }
3119
- if (input.IsDefault !== undefined && input.IsDefault !== null) {
3114
+ if (input.IsDefault != null) {
3120
3115
  entries["IsDefault"] = input.IsDefault;
3121
3116
  }
3122
3117
  return entries;
@@ -3150,19 +3145,19 @@ var serializeAws_queryCertificateList = function (input, context) {
3150
3145
  };
3151
3146
  var serializeAws_queryCreateListenerInput = function (input, context) {
3152
3147
  var entries = {};
3153
- if (input.LoadBalancerArn !== undefined && input.LoadBalancerArn !== null) {
3148
+ if (input.LoadBalancerArn != null) {
3154
3149
  entries["LoadBalancerArn"] = input.LoadBalancerArn;
3155
3150
  }
3156
- if (input.Protocol !== undefined && input.Protocol !== null) {
3151
+ if (input.Protocol != null) {
3157
3152
  entries["Protocol"] = input.Protocol;
3158
3153
  }
3159
- if (input.Port !== undefined && input.Port !== null) {
3154
+ if (input.Port != null) {
3160
3155
  entries["Port"] = input.Port;
3161
3156
  }
3162
- if (input.SslPolicy !== undefined && input.SslPolicy !== null) {
3157
+ if (input.SslPolicy != null) {
3163
3158
  entries["SslPolicy"] = input.SslPolicy;
3164
3159
  }
3165
- if (input.Certificates !== undefined && input.Certificates !== null) {
3160
+ if (input.Certificates != null) {
3166
3161
  var memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
3167
3162
  Object.entries(memberEntries).forEach(function (_a) {
3168
3163
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3170,7 +3165,7 @@ var serializeAws_queryCreateListenerInput = function (input, context) {
3170
3165
  entries[loc] = value;
3171
3166
  });
3172
3167
  }
3173
- if (input.DefaultActions !== undefined && input.DefaultActions !== null) {
3168
+ if (input.DefaultActions != null) {
3174
3169
  var memberEntries = serializeAws_queryActions(input.DefaultActions, context);
3175
3170
  Object.entries(memberEntries).forEach(function (_a) {
3176
3171
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3178,7 +3173,7 @@ var serializeAws_queryCreateListenerInput = function (input, context) {
3178
3173
  entries[loc] = value;
3179
3174
  });
3180
3175
  }
3181
- if (input.AlpnPolicy !== undefined && input.AlpnPolicy !== null) {
3176
+ if (input.AlpnPolicy != null) {
3182
3177
  var memberEntries = serializeAws_queryAlpnPolicyName(input.AlpnPolicy, context);
3183
3178
  Object.entries(memberEntries).forEach(function (_a) {
3184
3179
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3186,7 +3181,7 @@ var serializeAws_queryCreateListenerInput = function (input, context) {
3186
3181
  entries[loc] = value;
3187
3182
  });
3188
3183
  }
3189
- if (input.Tags !== undefined && input.Tags !== null) {
3184
+ if (input.Tags != null) {
3190
3185
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
3191
3186
  Object.entries(memberEntries).forEach(function (_a) {
3192
3187
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3198,10 +3193,10 @@ var serializeAws_queryCreateListenerInput = function (input, context) {
3198
3193
  };
3199
3194
  var serializeAws_queryCreateLoadBalancerInput = function (input, context) {
3200
3195
  var entries = {};
3201
- if (input.Name !== undefined && input.Name !== null) {
3196
+ if (input.Name != null) {
3202
3197
  entries["Name"] = input.Name;
3203
3198
  }
3204
- if (input.Subnets !== undefined && input.Subnets !== null) {
3199
+ if (input.Subnets != null) {
3205
3200
  var memberEntries = serializeAws_querySubnets(input.Subnets, context);
3206
3201
  Object.entries(memberEntries).forEach(function (_a) {
3207
3202
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3209,7 +3204,7 @@ var serializeAws_queryCreateLoadBalancerInput = function (input, context) {
3209
3204
  entries[loc] = value;
3210
3205
  });
3211
3206
  }
3212
- if (input.SubnetMappings !== undefined && input.SubnetMappings !== null) {
3207
+ if (input.SubnetMappings != null) {
3213
3208
  var memberEntries = serializeAws_querySubnetMappings(input.SubnetMappings, context);
3214
3209
  Object.entries(memberEntries).forEach(function (_a) {
3215
3210
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3217,7 +3212,7 @@ var serializeAws_queryCreateLoadBalancerInput = function (input, context) {
3217
3212
  entries[loc] = value;
3218
3213
  });
3219
3214
  }
3220
- if (input.SecurityGroups !== undefined && input.SecurityGroups !== null) {
3215
+ if (input.SecurityGroups != null) {
3221
3216
  var memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
3222
3217
  Object.entries(memberEntries).forEach(function (_a) {
3223
3218
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3225,10 +3220,10 @@ var serializeAws_queryCreateLoadBalancerInput = function (input, context) {
3225
3220
  entries[loc] = value;
3226
3221
  });
3227
3222
  }
3228
- if (input.Scheme !== undefined && input.Scheme !== null) {
3223
+ if (input.Scheme != null) {
3229
3224
  entries["Scheme"] = input.Scheme;
3230
3225
  }
3231
- if (input.Tags !== undefined && input.Tags !== null) {
3226
+ if (input.Tags != null) {
3232
3227
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
3233
3228
  Object.entries(memberEntries).forEach(function (_a) {
3234
3229
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3236,23 +3231,23 @@ var serializeAws_queryCreateLoadBalancerInput = function (input, context) {
3236
3231
  entries[loc] = value;
3237
3232
  });
3238
3233
  }
3239
- if (input.Type !== undefined && input.Type !== null) {
3234
+ if (input.Type != null) {
3240
3235
  entries["Type"] = input.Type;
3241
3236
  }
3242
- if (input.IpAddressType !== undefined && input.IpAddressType !== null) {
3237
+ if (input.IpAddressType != null) {
3243
3238
  entries["IpAddressType"] = input.IpAddressType;
3244
3239
  }
3245
- if (input.CustomerOwnedIpv4Pool !== undefined && input.CustomerOwnedIpv4Pool !== null) {
3240
+ if (input.CustomerOwnedIpv4Pool != null) {
3246
3241
  entries["CustomerOwnedIpv4Pool"] = input.CustomerOwnedIpv4Pool;
3247
3242
  }
3248
3243
  return entries;
3249
3244
  };
3250
3245
  var serializeAws_queryCreateRuleInput = function (input, context) {
3251
3246
  var entries = {};
3252
- if (input.ListenerArn !== undefined && input.ListenerArn !== null) {
3247
+ if (input.ListenerArn != null) {
3253
3248
  entries["ListenerArn"] = input.ListenerArn;
3254
3249
  }
3255
- if (input.Conditions !== undefined && input.Conditions !== null) {
3250
+ if (input.Conditions != null) {
3256
3251
  var memberEntries = serializeAws_queryRuleConditionList(input.Conditions, context);
3257
3252
  Object.entries(memberEntries).forEach(function (_a) {
3258
3253
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3260,10 +3255,10 @@ var serializeAws_queryCreateRuleInput = function (input, context) {
3260
3255
  entries[loc] = value;
3261
3256
  });
3262
3257
  }
3263
- if (input.Priority !== undefined && input.Priority !== null) {
3258
+ if (input.Priority != null) {
3264
3259
  entries["Priority"] = input.Priority;
3265
3260
  }
3266
- if (input.Actions !== undefined && input.Actions !== null) {
3261
+ if (input.Actions != null) {
3267
3262
  var memberEntries = serializeAws_queryActions(input.Actions, context);
3268
3263
  Object.entries(memberEntries).forEach(function (_a) {
3269
3264
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3271,7 +3266,7 @@ var serializeAws_queryCreateRuleInput = function (input, context) {
3271
3266
  entries[loc] = value;
3272
3267
  });
3273
3268
  }
3274
- if (input.Tags !== undefined && input.Tags !== null) {
3269
+ if (input.Tags != null) {
3275
3270
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
3276
3271
  Object.entries(memberEntries).forEach(function (_a) {
3277
3272
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3283,46 +3278,46 @@ var serializeAws_queryCreateRuleInput = function (input, context) {
3283
3278
  };
3284
3279
  var serializeAws_queryCreateTargetGroupInput = function (input, context) {
3285
3280
  var entries = {};
3286
- if (input.Name !== undefined && input.Name !== null) {
3281
+ if (input.Name != null) {
3287
3282
  entries["Name"] = input.Name;
3288
3283
  }
3289
- if (input.Protocol !== undefined && input.Protocol !== null) {
3284
+ if (input.Protocol != null) {
3290
3285
  entries["Protocol"] = input.Protocol;
3291
3286
  }
3292
- if (input.ProtocolVersion !== undefined && input.ProtocolVersion !== null) {
3287
+ if (input.ProtocolVersion != null) {
3293
3288
  entries["ProtocolVersion"] = input.ProtocolVersion;
3294
3289
  }
3295
- if (input.Port !== undefined && input.Port !== null) {
3290
+ if (input.Port != null) {
3296
3291
  entries["Port"] = input.Port;
3297
3292
  }
3298
- if (input.VpcId !== undefined && input.VpcId !== null) {
3293
+ if (input.VpcId != null) {
3299
3294
  entries["VpcId"] = input.VpcId;
3300
3295
  }
3301
- if (input.HealthCheckProtocol !== undefined && input.HealthCheckProtocol !== null) {
3296
+ if (input.HealthCheckProtocol != null) {
3302
3297
  entries["HealthCheckProtocol"] = input.HealthCheckProtocol;
3303
3298
  }
3304
- if (input.HealthCheckPort !== undefined && input.HealthCheckPort !== null) {
3299
+ if (input.HealthCheckPort != null) {
3305
3300
  entries["HealthCheckPort"] = input.HealthCheckPort;
3306
3301
  }
3307
- if (input.HealthCheckEnabled !== undefined && input.HealthCheckEnabled !== null) {
3302
+ if (input.HealthCheckEnabled != null) {
3308
3303
  entries["HealthCheckEnabled"] = input.HealthCheckEnabled;
3309
3304
  }
3310
- if (input.HealthCheckPath !== undefined && input.HealthCheckPath !== null) {
3305
+ if (input.HealthCheckPath != null) {
3311
3306
  entries["HealthCheckPath"] = input.HealthCheckPath;
3312
3307
  }
3313
- if (input.HealthCheckIntervalSeconds !== undefined && input.HealthCheckIntervalSeconds !== null) {
3308
+ if (input.HealthCheckIntervalSeconds != null) {
3314
3309
  entries["HealthCheckIntervalSeconds"] = input.HealthCheckIntervalSeconds;
3315
3310
  }
3316
- if (input.HealthCheckTimeoutSeconds !== undefined && input.HealthCheckTimeoutSeconds !== null) {
3311
+ if (input.HealthCheckTimeoutSeconds != null) {
3317
3312
  entries["HealthCheckTimeoutSeconds"] = input.HealthCheckTimeoutSeconds;
3318
3313
  }
3319
- if (input.HealthyThresholdCount !== undefined && input.HealthyThresholdCount !== null) {
3314
+ if (input.HealthyThresholdCount != null) {
3320
3315
  entries["HealthyThresholdCount"] = input.HealthyThresholdCount;
3321
3316
  }
3322
- if (input.UnhealthyThresholdCount !== undefined && input.UnhealthyThresholdCount !== null) {
3317
+ if (input.UnhealthyThresholdCount != null) {
3323
3318
  entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount;
3324
3319
  }
3325
- if (input.Matcher !== undefined && input.Matcher !== null) {
3320
+ if (input.Matcher != null) {
3326
3321
  var memberEntries = serializeAws_queryMatcher(input.Matcher, context);
3327
3322
  Object.entries(memberEntries).forEach(function (_a) {
3328
3323
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3330,10 +3325,10 @@ var serializeAws_queryCreateTargetGroupInput = function (input, context) {
3330
3325
  entries[loc] = value;
3331
3326
  });
3332
3327
  }
3333
- if (input.TargetType !== undefined && input.TargetType !== null) {
3328
+ if (input.TargetType != null) {
3334
3329
  entries["TargetType"] = input.TargetType;
3335
3330
  }
3336
- if (input.Tags !== undefined && input.Tags !== null) {
3331
+ if (input.Tags != null) {
3337
3332
  var memberEntries = serializeAws_queryTagList(input.Tags, context);
3338
3333
  Object.entries(memberEntries).forEach(function (_a) {
3339
3334
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3341,45 +3336,45 @@ var serializeAws_queryCreateTargetGroupInput = function (input, context) {
3341
3336
  entries[loc] = value;
3342
3337
  });
3343
3338
  }
3344
- if (input.IpAddressType !== undefined && input.IpAddressType !== null) {
3339
+ if (input.IpAddressType != null) {
3345
3340
  entries["IpAddressType"] = input.IpAddressType;
3346
3341
  }
3347
3342
  return entries;
3348
3343
  };
3349
3344
  var serializeAws_queryDeleteListenerInput = function (input, context) {
3350
3345
  var entries = {};
3351
- if (input.ListenerArn !== undefined && input.ListenerArn !== null) {
3346
+ if (input.ListenerArn != null) {
3352
3347
  entries["ListenerArn"] = input.ListenerArn;
3353
3348
  }
3354
3349
  return entries;
3355
3350
  };
3356
3351
  var serializeAws_queryDeleteLoadBalancerInput = function (input, context) {
3357
3352
  var entries = {};
3358
- if (input.LoadBalancerArn !== undefined && input.LoadBalancerArn !== null) {
3353
+ if (input.LoadBalancerArn != null) {
3359
3354
  entries["LoadBalancerArn"] = input.LoadBalancerArn;
3360
3355
  }
3361
3356
  return entries;
3362
3357
  };
3363
3358
  var serializeAws_queryDeleteRuleInput = function (input, context) {
3364
3359
  var entries = {};
3365
- if (input.RuleArn !== undefined && input.RuleArn !== null) {
3360
+ if (input.RuleArn != null) {
3366
3361
  entries["RuleArn"] = input.RuleArn;
3367
3362
  }
3368
3363
  return entries;
3369
3364
  };
3370
3365
  var serializeAws_queryDeleteTargetGroupInput = function (input, context) {
3371
3366
  var entries = {};
3372
- if (input.TargetGroupArn !== undefined && input.TargetGroupArn !== null) {
3367
+ if (input.TargetGroupArn != null) {
3373
3368
  entries["TargetGroupArn"] = input.TargetGroupArn;
3374
3369
  }
3375
3370
  return entries;
3376
3371
  };
3377
3372
  var serializeAws_queryDeregisterTargetsInput = function (input, context) {
3378
3373
  var entries = {};
3379
- if (input.TargetGroupArn !== undefined && input.TargetGroupArn !== null) {
3374
+ if (input.TargetGroupArn != null) {
3380
3375
  entries["TargetGroupArn"] = input.TargetGroupArn;
3381
3376
  }
3382
- if (input.Targets !== undefined && input.Targets !== null) {
3377
+ if (input.Targets != null) {
3383
3378
  var memberEntries = serializeAws_queryTargetDescriptions(input.Targets, context);
3384
3379
  Object.entries(memberEntries).forEach(function (_a) {
3385
3380
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3391,33 +3386,33 @@ var serializeAws_queryDeregisterTargetsInput = function (input, context) {
3391
3386
  };
3392
3387
  var serializeAws_queryDescribeAccountLimitsInput = function (input, context) {
3393
3388
  var entries = {};
3394
- if (input.Marker !== undefined && input.Marker !== null) {
3389
+ if (input.Marker != null) {
3395
3390
  entries["Marker"] = input.Marker;
3396
3391
  }
3397
- if (input.PageSize !== undefined && input.PageSize !== null) {
3392
+ if (input.PageSize != null) {
3398
3393
  entries["PageSize"] = input.PageSize;
3399
3394
  }
3400
3395
  return entries;
3401
3396
  };
3402
3397
  var serializeAws_queryDescribeListenerCertificatesInput = function (input, context) {
3403
3398
  var entries = {};
3404
- if (input.ListenerArn !== undefined && input.ListenerArn !== null) {
3399
+ if (input.ListenerArn != null) {
3405
3400
  entries["ListenerArn"] = input.ListenerArn;
3406
3401
  }
3407
- if (input.Marker !== undefined && input.Marker !== null) {
3402
+ if (input.Marker != null) {
3408
3403
  entries["Marker"] = input.Marker;
3409
3404
  }
3410
- if (input.PageSize !== undefined && input.PageSize !== null) {
3405
+ if (input.PageSize != null) {
3411
3406
  entries["PageSize"] = input.PageSize;
3412
3407
  }
3413
3408
  return entries;
3414
3409
  };
3415
3410
  var serializeAws_queryDescribeListenersInput = function (input, context) {
3416
3411
  var entries = {};
3417
- if (input.LoadBalancerArn !== undefined && input.LoadBalancerArn !== null) {
3412
+ if (input.LoadBalancerArn != null) {
3418
3413
  entries["LoadBalancerArn"] = input.LoadBalancerArn;
3419
3414
  }
3420
- if (input.ListenerArns !== undefined && input.ListenerArns !== null) {
3415
+ if (input.ListenerArns != null) {
3421
3416
  var memberEntries = serializeAws_queryListenerArns(input.ListenerArns, context);
3422
3417
  Object.entries(memberEntries).forEach(function (_a) {
3423
3418
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3425,24 +3420,24 @@ var serializeAws_queryDescribeListenersInput = function (input, context) {
3425
3420
  entries[loc] = value;
3426
3421
  });
3427
3422
  }
3428
- if (input.Marker !== undefined && input.Marker !== null) {
3423
+ if (input.Marker != null) {
3429
3424
  entries["Marker"] = input.Marker;
3430
3425
  }
3431
- if (input.PageSize !== undefined && input.PageSize !== null) {
3426
+ if (input.PageSize != null) {
3432
3427
  entries["PageSize"] = input.PageSize;
3433
3428
  }
3434
3429
  return entries;
3435
3430
  };
3436
3431
  var serializeAws_queryDescribeLoadBalancerAttributesInput = function (input, context) {
3437
3432
  var entries = {};
3438
- if (input.LoadBalancerArn !== undefined && input.LoadBalancerArn !== null) {
3433
+ if (input.LoadBalancerArn != null) {
3439
3434
  entries["LoadBalancerArn"] = input.LoadBalancerArn;
3440
3435
  }
3441
3436
  return entries;
3442
3437
  };
3443
3438
  var serializeAws_queryDescribeLoadBalancersInput = function (input, context) {
3444
3439
  var entries = {};
3445
- if (input.LoadBalancerArns !== undefined && input.LoadBalancerArns !== null) {
3440
+ if (input.LoadBalancerArns != null) {
3446
3441
  var memberEntries = serializeAws_queryLoadBalancerArns(input.LoadBalancerArns, context);
3447
3442
  Object.entries(memberEntries).forEach(function (_a) {
3448
3443
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3450,7 +3445,7 @@ var serializeAws_queryDescribeLoadBalancersInput = function (input, context) {
3450
3445
  entries[loc] = value;
3451
3446
  });
3452
3447
  }
3453
- if (input.Names !== undefined && input.Names !== null) {
3448
+ if (input.Names != null) {
3454
3449
  var memberEntries = serializeAws_queryLoadBalancerNames(input.Names, context);
3455
3450
  Object.entries(memberEntries).forEach(function (_a) {
3456
3451
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3458,20 +3453,20 @@ var serializeAws_queryDescribeLoadBalancersInput = function (input, context) {
3458
3453
  entries[loc] = value;
3459
3454
  });
3460
3455
  }
3461
- if (input.Marker !== undefined && input.Marker !== null) {
3456
+ if (input.Marker != null) {
3462
3457
  entries["Marker"] = input.Marker;
3463
3458
  }
3464
- if (input.PageSize !== undefined && input.PageSize !== null) {
3459
+ if (input.PageSize != null) {
3465
3460
  entries["PageSize"] = input.PageSize;
3466
3461
  }
3467
3462
  return entries;
3468
3463
  };
3469
3464
  var serializeAws_queryDescribeRulesInput = function (input, context) {
3470
3465
  var entries = {};
3471
- if (input.ListenerArn !== undefined && input.ListenerArn !== null) {
3466
+ if (input.ListenerArn != null) {
3472
3467
  entries["ListenerArn"] = input.ListenerArn;
3473
3468
  }
3474
- if (input.RuleArns !== undefined && input.RuleArns !== null) {
3469
+ if (input.RuleArns != null) {
3475
3470
  var memberEntries = serializeAws_queryRuleArns(input.RuleArns, context);
3476
3471
  Object.entries(memberEntries).forEach(function (_a) {
3477
3472
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3479,17 +3474,17 @@ var serializeAws_queryDescribeRulesInput = function (input, context) {
3479
3474
  entries[loc] = value;
3480
3475
  });
3481
3476
  }
3482
- if (input.Marker !== undefined && input.Marker !== null) {
3477
+ if (input.Marker != null) {
3483
3478
  entries["Marker"] = input.Marker;
3484
3479
  }
3485
- if (input.PageSize !== undefined && input.PageSize !== null) {
3480
+ if (input.PageSize != null) {
3486
3481
  entries["PageSize"] = input.PageSize;
3487
3482
  }
3488
3483
  return entries;
3489
3484
  };
3490
3485
  var serializeAws_queryDescribeSSLPoliciesInput = function (input, context) {
3491
3486
  var entries = {};
3492
- if (input.Names !== undefined && input.Names !== null) {
3487
+ if (input.Names != null) {
3493
3488
  var memberEntries = serializeAws_querySslPolicyNames(input.Names, context);
3494
3489
  Object.entries(memberEntries).forEach(function (_a) {
3495
3490
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3497,20 +3492,20 @@ var serializeAws_queryDescribeSSLPoliciesInput = function (input, context) {
3497
3492
  entries[loc] = value;
3498
3493
  });
3499
3494
  }
3500
- if (input.Marker !== undefined && input.Marker !== null) {
3495
+ if (input.Marker != null) {
3501
3496
  entries["Marker"] = input.Marker;
3502
3497
  }
3503
- if (input.PageSize !== undefined && input.PageSize !== null) {
3498
+ if (input.PageSize != null) {
3504
3499
  entries["PageSize"] = input.PageSize;
3505
3500
  }
3506
- if (input.LoadBalancerType !== undefined && input.LoadBalancerType !== null) {
3501
+ if (input.LoadBalancerType != null) {
3507
3502
  entries["LoadBalancerType"] = input.LoadBalancerType;
3508
3503
  }
3509
3504
  return entries;
3510
3505
  };
3511
3506
  var serializeAws_queryDescribeTagsInput = function (input, context) {
3512
3507
  var entries = {};
3513
- if (input.ResourceArns !== undefined && input.ResourceArns !== null) {
3508
+ if (input.ResourceArns != null) {
3514
3509
  var memberEntries = serializeAws_queryResourceArns(input.ResourceArns, context);
3515
3510
  Object.entries(memberEntries).forEach(function (_a) {
3516
3511
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3522,17 +3517,17 @@ var serializeAws_queryDescribeTagsInput = function (input, context) {
3522
3517
  };
3523
3518
  var serializeAws_queryDescribeTargetGroupAttributesInput = function (input, context) {
3524
3519
  var entries = {};
3525
- if (input.TargetGroupArn !== undefined && input.TargetGroupArn !== null) {
3520
+ if (input.TargetGroupArn != null) {
3526
3521
  entries["TargetGroupArn"] = input.TargetGroupArn;
3527
3522
  }
3528
3523
  return entries;
3529
3524
  };
3530
3525
  var serializeAws_queryDescribeTargetGroupsInput = function (input, context) {
3531
3526
  var entries = {};
3532
- if (input.LoadBalancerArn !== undefined && input.LoadBalancerArn !== null) {
3527
+ if (input.LoadBalancerArn != null) {
3533
3528
  entries["LoadBalancerArn"] = input.LoadBalancerArn;
3534
3529
  }
3535
- if (input.TargetGroupArns !== undefined && input.TargetGroupArns !== null) {
3530
+ if (input.TargetGroupArns != null) {
3536
3531
  var memberEntries = serializeAws_queryTargetGroupArns(input.TargetGroupArns, context);
3537
3532
  Object.entries(memberEntries).forEach(function (_a) {
3538
3533
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3540,7 +3535,7 @@ var serializeAws_queryDescribeTargetGroupsInput = function (input, context) {
3540
3535
  entries[loc] = value;
3541
3536
  });
3542
3537
  }
3543
- if (input.Names !== undefined && input.Names !== null) {
3538
+ if (input.Names != null) {
3544
3539
  var memberEntries = serializeAws_queryTargetGroupNames(input.Names, context);
3545
3540
  Object.entries(memberEntries).forEach(function (_a) {
3546
3541
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3548,20 +3543,20 @@ var serializeAws_queryDescribeTargetGroupsInput = function (input, context) {
3548
3543
  entries[loc] = value;
3549
3544
  });
3550
3545
  }
3551
- if (input.Marker !== undefined && input.Marker !== null) {
3546
+ if (input.Marker != null) {
3552
3547
  entries["Marker"] = input.Marker;
3553
3548
  }
3554
- if (input.PageSize !== undefined && input.PageSize !== null) {
3549
+ if (input.PageSize != null) {
3555
3550
  entries["PageSize"] = input.PageSize;
3556
3551
  }
3557
3552
  return entries;
3558
3553
  };
3559
3554
  var serializeAws_queryDescribeTargetHealthInput = function (input, context) {
3560
3555
  var entries = {};
3561
- if (input.TargetGroupArn !== undefined && input.TargetGroupArn !== null) {
3556
+ if (input.TargetGroupArn != null) {
3562
3557
  entries["TargetGroupArn"] = input.TargetGroupArn;
3563
3558
  }
3564
- if (input.Targets !== undefined && input.Targets !== null) {
3559
+ if (input.Targets != null) {
3565
3560
  var memberEntries = serializeAws_queryTargetDescriptions(input.Targets, context);
3566
3561
  Object.entries(memberEntries).forEach(function (_a) {
3567
3562
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3573,20 +3568,20 @@ var serializeAws_queryDescribeTargetHealthInput = function (input, context) {
3573
3568
  };
3574
3569
  var serializeAws_queryFixedResponseActionConfig = function (input, context) {
3575
3570
  var entries = {};
3576
- if (input.MessageBody !== undefined && input.MessageBody !== null) {
3571
+ if (input.MessageBody != null) {
3577
3572
  entries["MessageBody"] = input.MessageBody;
3578
3573
  }
3579
- if (input.StatusCode !== undefined && input.StatusCode !== null) {
3574
+ if (input.StatusCode != null) {
3580
3575
  entries["StatusCode"] = input.StatusCode;
3581
3576
  }
3582
- if (input.ContentType !== undefined && input.ContentType !== null) {
3577
+ if (input.ContentType != null) {
3583
3578
  entries["ContentType"] = input.ContentType;
3584
3579
  }
3585
3580
  return entries;
3586
3581
  };
3587
3582
  var serializeAws_queryForwardActionConfig = function (input, context) {
3588
3583
  var entries = {};
3589
- if (input.TargetGroups !== undefined && input.TargetGroups !== null) {
3584
+ if (input.TargetGroups != null) {
3590
3585
  var memberEntries = serializeAws_queryTargetGroupList(input.TargetGroups, context);
3591
3586
  Object.entries(memberEntries).forEach(function (_a) {
3592
3587
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3594,7 +3589,7 @@ var serializeAws_queryForwardActionConfig = function (input, context) {
3594
3589
  entries[loc] = value;
3595
3590
  });
3596
3591
  }
3597
- if (input.TargetGroupStickinessConfig !== undefined && input.TargetGroupStickinessConfig !== null) {
3592
+ if (input.TargetGroupStickinessConfig != null) {
3598
3593
  var memberEntries = serializeAws_queryTargetGroupStickinessConfig(input.TargetGroupStickinessConfig, context);
3599
3594
  Object.entries(memberEntries).forEach(function (_a) {
3600
3595
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3606,7 +3601,7 @@ var serializeAws_queryForwardActionConfig = function (input, context) {
3606
3601
  };
3607
3602
  var serializeAws_queryHostHeaderConditionConfig = function (input, context) {
3608
3603
  var entries = {};
3609
- if (input.Values !== undefined && input.Values !== null) {
3604
+ if (input.Values != null) {
3610
3605
  var memberEntries = serializeAws_queryListOfString(input.Values, context);
3611
3606
  Object.entries(memberEntries).forEach(function (_a) {
3612
3607
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3618,10 +3613,10 @@ var serializeAws_queryHostHeaderConditionConfig = function (input, context) {
3618
3613
  };
3619
3614
  var serializeAws_queryHttpHeaderConditionConfig = function (input, context) {
3620
3615
  var entries = {};
3621
- if (input.HttpHeaderName !== undefined && input.HttpHeaderName !== null) {
3616
+ if (input.HttpHeaderName != null) {
3622
3617
  entries["HttpHeaderName"] = input.HttpHeaderName;
3623
3618
  }
3624
- if (input.Values !== undefined && input.Values !== null) {
3619
+ if (input.Values != null) {
3625
3620
  var memberEntries = serializeAws_queryListOfString(input.Values, context);
3626
3621
  Object.entries(memberEntries).forEach(function (_a) {
3627
3622
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3633,7 +3628,7 @@ var serializeAws_queryHttpHeaderConditionConfig = function (input, context) {
3633
3628
  };
3634
3629
  var serializeAws_queryHttpRequestMethodConditionConfig = function (input, context) {
3635
3630
  var entries = {};
3636
- if (input.Values !== undefined && input.Values !== null) {
3631
+ if (input.Values != null) {
3637
3632
  var memberEntries = serializeAws_queryListOfString(input.Values, context);
3638
3633
  Object.entries(memberEntries).forEach(function (_a) {
3639
3634
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3714,10 +3709,10 @@ var serializeAws_queryLoadBalancerArns = function (input, context) {
3714
3709
  };
3715
3710
  var serializeAws_queryLoadBalancerAttribute = function (input, context) {
3716
3711
  var entries = {};
3717
- if (input.Key !== undefined && input.Key !== null) {
3712
+ if (input.Key != null) {
3718
3713
  entries["Key"] = input.Key;
3719
3714
  }
3720
- if (input.Value !== undefined && input.Value !== null) {
3715
+ if (input.Value != null) {
3721
3716
  entries["Value"] = input.Value;
3722
3717
  }
3723
3718
  return entries;
@@ -3774,29 +3769,29 @@ var serializeAws_queryLoadBalancerNames = function (input, context) {
3774
3769
  };
3775
3770
  var serializeAws_queryMatcher = function (input, context) {
3776
3771
  var entries = {};
3777
- if (input.HttpCode !== undefined && input.HttpCode !== null) {
3772
+ if (input.HttpCode != null) {
3778
3773
  entries["HttpCode"] = input.HttpCode;
3779
3774
  }
3780
- if (input.GrpcCode !== undefined && input.GrpcCode !== null) {
3775
+ if (input.GrpcCode != null) {
3781
3776
  entries["GrpcCode"] = input.GrpcCode;
3782
3777
  }
3783
3778
  return entries;
3784
3779
  };
3785
3780
  var serializeAws_queryModifyListenerInput = function (input, context) {
3786
3781
  var entries = {};
3787
- if (input.ListenerArn !== undefined && input.ListenerArn !== null) {
3782
+ if (input.ListenerArn != null) {
3788
3783
  entries["ListenerArn"] = input.ListenerArn;
3789
3784
  }
3790
- if (input.Port !== undefined && input.Port !== null) {
3785
+ if (input.Port != null) {
3791
3786
  entries["Port"] = input.Port;
3792
3787
  }
3793
- if (input.Protocol !== undefined && input.Protocol !== null) {
3788
+ if (input.Protocol != null) {
3794
3789
  entries["Protocol"] = input.Protocol;
3795
3790
  }
3796
- if (input.SslPolicy !== undefined && input.SslPolicy !== null) {
3791
+ if (input.SslPolicy != null) {
3797
3792
  entries["SslPolicy"] = input.SslPolicy;
3798
3793
  }
3799
- if (input.Certificates !== undefined && input.Certificates !== null) {
3794
+ if (input.Certificates != null) {
3800
3795
  var memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
3801
3796
  Object.entries(memberEntries).forEach(function (_a) {
3802
3797
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3804,7 +3799,7 @@ var serializeAws_queryModifyListenerInput = function (input, context) {
3804
3799
  entries[loc] = value;
3805
3800
  });
3806
3801
  }
3807
- if (input.DefaultActions !== undefined && input.DefaultActions !== null) {
3802
+ if (input.DefaultActions != null) {
3808
3803
  var memberEntries = serializeAws_queryActions(input.DefaultActions, context);
3809
3804
  Object.entries(memberEntries).forEach(function (_a) {
3810
3805
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3812,7 +3807,7 @@ var serializeAws_queryModifyListenerInput = function (input, context) {
3812
3807
  entries[loc] = value;
3813
3808
  });
3814
3809
  }
3815
- if (input.AlpnPolicy !== undefined && input.AlpnPolicy !== null) {
3810
+ if (input.AlpnPolicy != null) {
3816
3811
  var memberEntries = serializeAws_queryAlpnPolicyName(input.AlpnPolicy, context);
3817
3812
  Object.entries(memberEntries).forEach(function (_a) {
3818
3813
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3824,10 +3819,10 @@ var serializeAws_queryModifyListenerInput = function (input, context) {
3824
3819
  };
3825
3820
  var serializeAws_queryModifyLoadBalancerAttributesInput = function (input, context) {
3826
3821
  var entries = {};
3827
- if (input.LoadBalancerArn !== undefined && input.LoadBalancerArn !== null) {
3822
+ if (input.LoadBalancerArn != null) {
3828
3823
  entries["LoadBalancerArn"] = input.LoadBalancerArn;
3829
3824
  }
3830
- if (input.Attributes !== undefined && input.Attributes !== null) {
3825
+ if (input.Attributes != null) {
3831
3826
  var memberEntries = serializeAws_queryLoadBalancerAttributes(input.Attributes, context);
3832
3827
  Object.entries(memberEntries).forEach(function (_a) {
3833
3828
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3839,10 +3834,10 @@ var serializeAws_queryModifyLoadBalancerAttributesInput = function (input, conte
3839
3834
  };
3840
3835
  var serializeAws_queryModifyRuleInput = function (input, context) {
3841
3836
  var entries = {};
3842
- if (input.RuleArn !== undefined && input.RuleArn !== null) {
3837
+ if (input.RuleArn != null) {
3843
3838
  entries["RuleArn"] = input.RuleArn;
3844
3839
  }
3845
- if (input.Conditions !== undefined && input.Conditions !== null) {
3840
+ if (input.Conditions != null) {
3846
3841
  var memberEntries = serializeAws_queryRuleConditionList(input.Conditions, context);
3847
3842
  Object.entries(memberEntries).forEach(function (_a) {
3848
3843
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3850,7 +3845,7 @@ var serializeAws_queryModifyRuleInput = function (input, context) {
3850
3845
  entries[loc] = value;
3851
3846
  });
3852
3847
  }
3853
- if (input.Actions !== undefined && input.Actions !== null) {
3848
+ if (input.Actions != null) {
3854
3849
  var memberEntries = serializeAws_queryActions(input.Actions, context);
3855
3850
  Object.entries(memberEntries).forEach(function (_a) {
3856
3851
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3862,10 +3857,10 @@ var serializeAws_queryModifyRuleInput = function (input, context) {
3862
3857
  };
3863
3858
  var serializeAws_queryModifyTargetGroupAttributesInput = function (input, context) {
3864
3859
  var entries = {};
3865
- if (input.TargetGroupArn !== undefined && input.TargetGroupArn !== null) {
3860
+ if (input.TargetGroupArn != null) {
3866
3861
  entries["TargetGroupArn"] = input.TargetGroupArn;
3867
3862
  }
3868
- if (input.Attributes !== undefined && input.Attributes !== null) {
3863
+ if (input.Attributes != null) {
3869
3864
  var memberEntries = serializeAws_queryTargetGroupAttributes(input.Attributes, context);
3870
3865
  Object.entries(memberEntries).forEach(function (_a) {
3871
3866
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3877,34 +3872,34 @@ var serializeAws_queryModifyTargetGroupAttributesInput = function (input, contex
3877
3872
  };
3878
3873
  var serializeAws_queryModifyTargetGroupInput = function (input, context) {
3879
3874
  var entries = {};
3880
- if (input.TargetGroupArn !== undefined && input.TargetGroupArn !== null) {
3875
+ if (input.TargetGroupArn != null) {
3881
3876
  entries["TargetGroupArn"] = input.TargetGroupArn;
3882
3877
  }
3883
- if (input.HealthCheckProtocol !== undefined && input.HealthCheckProtocol !== null) {
3878
+ if (input.HealthCheckProtocol != null) {
3884
3879
  entries["HealthCheckProtocol"] = input.HealthCheckProtocol;
3885
3880
  }
3886
- if (input.HealthCheckPort !== undefined && input.HealthCheckPort !== null) {
3881
+ if (input.HealthCheckPort != null) {
3887
3882
  entries["HealthCheckPort"] = input.HealthCheckPort;
3888
3883
  }
3889
- if (input.HealthCheckPath !== undefined && input.HealthCheckPath !== null) {
3884
+ if (input.HealthCheckPath != null) {
3890
3885
  entries["HealthCheckPath"] = input.HealthCheckPath;
3891
3886
  }
3892
- if (input.HealthCheckEnabled !== undefined && input.HealthCheckEnabled !== null) {
3887
+ if (input.HealthCheckEnabled != null) {
3893
3888
  entries["HealthCheckEnabled"] = input.HealthCheckEnabled;
3894
3889
  }
3895
- if (input.HealthCheckIntervalSeconds !== undefined && input.HealthCheckIntervalSeconds !== null) {
3890
+ if (input.HealthCheckIntervalSeconds != null) {
3896
3891
  entries["HealthCheckIntervalSeconds"] = input.HealthCheckIntervalSeconds;
3897
3892
  }
3898
- if (input.HealthCheckTimeoutSeconds !== undefined && input.HealthCheckTimeoutSeconds !== null) {
3893
+ if (input.HealthCheckTimeoutSeconds != null) {
3899
3894
  entries["HealthCheckTimeoutSeconds"] = input.HealthCheckTimeoutSeconds;
3900
3895
  }
3901
- if (input.HealthyThresholdCount !== undefined && input.HealthyThresholdCount !== null) {
3896
+ if (input.HealthyThresholdCount != null) {
3902
3897
  entries["HealthyThresholdCount"] = input.HealthyThresholdCount;
3903
3898
  }
3904
- if (input.UnhealthyThresholdCount !== undefined && input.UnhealthyThresholdCount !== null) {
3899
+ if (input.UnhealthyThresholdCount != null) {
3905
3900
  entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount;
3906
3901
  }
3907
- if (input.Matcher !== undefined && input.Matcher !== null) {
3902
+ if (input.Matcher != null) {
3908
3903
  var memberEntries = serializeAws_queryMatcher(input.Matcher, context);
3909
3904
  Object.entries(memberEntries).forEach(function (_a) {
3910
3905
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3916,7 +3911,7 @@ var serializeAws_queryModifyTargetGroupInput = function (input, context) {
3916
3911
  };
3917
3912
  var serializeAws_queryPathPatternConditionConfig = function (input, context) {
3918
3913
  var entries = {};
3919
- if (input.Values !== undefined && input.Values !== null) {
3914
+ if (input.Values != null) {
3920
3915
  var memberEntries = serializeAws_queryListOfString(input.Values, context);
3921
3916
  Object.entries(memberEntries).forEach(function (_a) {
3922
3917
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3928,7 +3923,7 @@ var serializeAws_queryPathPatternConditionConfig = function (input, context) {
3928
3923
  };
3929
3924
  var serializeAws_queryQueryStringConditionConfig = function (input, context) {
3930
3925
  var entries = {};
3931
- if (input.Values !== undefined && input.Values !== null) {
3926
+ if (input.Values != null) {
3932
3927
  var memberEntries = serializeAws_queryQueryStringKeyValuePairList(input.Values, context);
3933
3928
  Object.entries(memberEntries).forEach(function (_a) {
3934
3929
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -3940,10 +3935,10 @@ var serializeAws_queryQueryStringConditionConfig = function (input, context) {
3940
3935
  };
3941
3936
  var serializeAws_queryQueryStringKeyValuePair = function (input, context) {
3942
3937
  var entries = {};
3943
- if (input.Key !== undefined && input.Key !== null) {
3938
+ if (input.Key != null) {
3944
3939
  entries["Key"] = input.Key;
3945
3940
  }
3946
- if (input.Value !== undefined && input.Value !== null) {
3941
+ if (input.Value != null) {
3947
3942
  entries["Value"] = input.Value;
3948
3943
  }
3949
3944
  return entries;
@@ -3977,32 +3972,32 @@ var serializeAws_queryQueryStringKeyValuePairList = function (input, context) {
3977
3972
  };
3978
3973
  var serializeAws_queryRedirectActionConfig = function (input, context) {
3979
3974
  var entries = {};
3980
- if (input.Protocol !== undefined && input.Protocol !== null) {
3975
+ if (input.Protocol != null) {
3981
3976
  entries["Protocol"] = input.Protocol;
3982
3977
  }
3983
- if (input.Port !== undefined && input.Port !== null) {
3978
+ if (input.Port != null) {
3984
3979
  entries["Port"] = input.Port;
3985
3980
  }
3986
- if (input.Host !== undefined && input.Host !== null) {
3981
+ if (input.Host != null) {
3987
3982
  entries["Host"] = input.Host;
3988
3983
  }
3989
- if (input.Path !== undefined && input.Path !== null) {
3984
+ if (input.Path != null) {
3990
3985
  entries["Path"] = input.Path;
3991
3986
  }
3992
- if (input.Query !== undefined && input.Query !== null) {
3987
+ if (input.Query != null) {
3993
3988
  entries["Query"] = input.Query;
3994
3989
  }
3995
- if (input.StatusCode !== undefined && input.StatusCode !== null) {
3990
+ if (input.StatusCode != null) {
3996
3991
  entries["StatusCode"] = input.StatusCode;
3997
3992
  }
3998
3993
  return entries;
3999
3994
  };
4000
3995
  var serializeAws_queryRegisterTargetsInput = function (input, context) {
4001
3996
  var entries = {};
4002
- if (input.TargetGroupArn !== undefined && input.TargetGroupArn !== null) {
3997
+ if (input.TargetGroupArn != null) {
4003
3998
  entries["TargetGroupArn"] = input.TargetGroupArn;
4004
3999
  }
4005
- if (input.Targets !== undefined && input.Targets !== null) {
4000
+ if (input.Targets != null) {
4006
4001
  var memberEntries = serializeAws_queryTargetDescriptions(input.Targets, context);
4007
4002
  Object.entries(memberEntries).forEach(function (_a) {
4008
4003
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4014,10 +4009,10 @@ var serializeAws_queryRegisterTargetsInput = function (input, context) {
4014
4009
  };
4015
4010
  var serializeAws_queryRemoveListenerCertificatesInput = function (input, context) {
4016
4011
  var entries = {};
4017
- if (input.ListenerArn !== undefined && input.ListenerArn !== null) {
4012
+ if (input.ListenerArn != null) {
4018
4013
  entries["ListenerArn"] = input.ListenerArn;
4019
4014
  }
4020
- if (input.Certificates !== undefined && input.Certificates !== null) {
4015
+ if (input.Certificates != null) {
4021
4016
  var memberEntries = serializeAws_queryCertificateList(input.Certificates, context);
4022
4017
  Object.entries(memberEntries).forEach(function (_a) {
4023
4018
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4029,7 +4024,7 @@ var serializeAws_queryRemoveListenerCertificatesInput = function (input, context
4029
4024
  };
4030
4025
  var serializeAws_queryRemoveTagsInput = function (input, context) {
4031
4026
  var entries = {};
4032
- if (input.ResourceArns !== undefined && input.ResourceArns !== null) {
4027
+ if (input.ResourceArns != null) {
4033
4028
  var memberEntries = serializeAws_queryResourceArns(input.ResourceArns, context);
4034
4029
  Object.entries(memberEntries).forEach(function (_a) {
4035
4030
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4037,7 +4032,7 @@ var serializeAws_queryRemoveTagsInput = function (input, context) {
4037
4032
  entries[loc] = value;
4038
4033
  });
4039
4034
  }
4040
- if (input.TagKeys !== undefined && input.TagKeys !== null) {
4035
+ if (input.TagKeys != null) {
4041
4036
  var memberEntries = serializeAws_queryTagKeys(input.TagKeys, context);
4042
4037
  Object.entries(memberEntries).forEach(function (_a) {
4043
4038
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4095,10 +4090,10 @@ var serializeAws_queryRuleArns = function (input, context) {
4095
4090
  };
4096
4091
  var serializeAws_queryRuleCondition = function (input, context) {
4097
4092
  var entries = {};
4098
- if (input.Field !== undefined && input.Field !== null) {
4093
+ if (input.Field != null) {
4099
4094
  entries["Field"] = input.Field;
4100
4095
  }
4101
- if (input.Values !== undefined && input.Values !== null) {
4096
+ if (input.Values != null) {
4102
4097
  var memberEntries = serializeAws_queryListOfString(input.Values, context);
4103
4098
  Object.entries(memberEntries).forEach(function (_a) {
4104
4099
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4106,7 +4101,7 @@ var serializeAws_queryRuleCondition = function (input, context) {
4106
4101
  entries[loc] = value;
4107
4102
  });
4108
4103
  }
4109
- if (input.HostHeaderConfig !== undefined && input.HostHeaderConfig !== null) {
4104
+ if (input.HostHeaderConfig != null) {
4110
4105
  var memberEntries = serializeAws_queryHostHeaderConditionConfig(input.HostHeaderConfig, context);
4111
4106
  Object.entries(memberEntries).forEach(function (_a) {
4112
4107
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4114,7 +4109,7 @@ var serializeAws_queryRuleCondition = function (input, context) {
4114
4109
  entries[loc] = value;
4115
4110
  });
4116
4111
  }
4117
- if (input.PathPatternConfig !== undefined && input.PathPatternConfig !== null) {
4112
+ if (input.PathPatternConfig != null) {
4118
4113
  var memberEntries = serializeAws_queryPathPatternConditionConfig(input.PathPatternConfig, context);
4119
4114
  Object.entries(memberEntries).forEach(function (_a) {
4120
4115
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4122,7 +4117,7 @@ var serializeAws_queryRuleCondition = function (input, context) {
4122
4117
  entries[loc] = value;
4123
4118
  });
4124
4119
  }
4125
- if (input.HttpHeaderConfig !== undefined && input.HttpHeaderConfig !== null) {
4120
+ if (input.HttpHeaderConfig != null) {
4126
4121
  var memberEntries = serializeAws_queryHttpHeaderConditionConfig(input.HttpHeaderConfig, context);
4127
4122
  Object.entries(memberEntries).forEach(function (_a) {
4128
4123
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4130,7 +4125,7 @@ var serializeAws_queryRuleCondition = function (input, context) {
4130
4125
  entries[loc] = value;
4131
4126
  });
4132
4127
  }
4133
- if (input.QueryStringConfig !== undefined && input.QueryStringConfig !== null) {
4128
+ if (input.QueryStringConfig != null) {
4134
4129
  var memberEntries = serializeAws_queryQueryStringConditionConfig(input.QueryStringConfig, context);
4135
4130
  Object.entries(memberEntries).forEach(function (_a) {
4136
4131
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4138,7 +4133,7 @@ var serializeAws_queryRuleCondition = function (input, context) {
4138
4133
  entries[loc] = value;
4139
4134
  });
4140
4135
  }
4141
- if (input.HttpRequestMethodConfig !== undefined && input.HttpRequestMethodConfig !== null) {
4136
+ if (input.HttpRequestMethodConfig != null) {
4142
4137
  var memberEntries = serializeAws_queryHttpRequestMethodConditionConfig(input.HttpRequestMethodConfig, context);
4143
4138
  Object.entries(memberEntries).forEach(function (_a) {
4144
4139
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4146,7 +4141,7 @@ var serializeAws_queryRuleCondition = function (input, context) {
4146
4141
  entries[loc] = value;
4147
4142
  });
4148
4143
  }
4149
- if (input.SourceIpConfig !== undefined && input.SourceIpConfig !== null) {
4144
+ if (input.SourceIpConfig != null) {
4150
4145
  var memberEntries = serializeAws_querySourceIpConditionConfig(input.SourceIpConfig, context);
4151
4146
  Object.entries(memberEntries).forEach(function (_a) {
4152
4147
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4212,10 +4207,10 @@ var serializeAws_queryRulePriorityList = function (input, context) {
4212
4207
  };
4213
4208
  var serializeAws_queryRulePriorityPair = function (input, context) {
4214
4209
  var entries = {};
4215
- if (input.RuleArn !== undefined && input.RuleArn !== null) {
4210
+ if (input.RuleArn != null) {
4216
4211
  entries["RuleArn"] = input.RuleArn;
4217
4212
  }
4218
- if (input.Priority !== undefined && input.Priority !== null) {
4213
+ if (input.Priority != null) {
4219
4214
  entries["Priority"] = input.Priority;
4220
4215
  }
4221
4216
  return entries;
@@ -4245,17 +4240,17 @@ var serializeAws_querySecurityGroups = function (input, context) {
4245
4240
  };
4246
4241
  var serializeAws_querySetIpAddressTypeInput = function (input, context) {
4247
4242
  var entries = {};
4248
- if (input.LoadBalancerArn !== undefined && input.LoadBalancerArn !== null) {
4243
+ if (input.LoadBalancerArn != null) {
4249
4244
  entries["LoadBalancerArn"] = input.LoadBalancerArn;
4250
4245
  }
4251
- if (input.IpAddressType !== undefined && input.IpAddressType !== null) {
4246
+ if (input.IpAddressType != null) {
4252
4247
  entries["IpAddressType"] = input.IpAddressType;
4253
4248
  }
4254
4249
  return entries;
4255
4250
  };
4256
4251
  var serializeAws_querySetRulePrioritiesInput = function (input, context) {
4257
4252
  var entries = {};
4258
- if (input.RulePriorities !== undefined && input.RulePriorities !== null) {
4253
+ if (input.RulePriorities != null) {
4259
4254
  var memberEntries = serializeAws_queryRulePriorityList(input.RulePriorities, context);
4260
4255
  Object.entries(memberEntries).forEach(function (_a) {
4261
4256
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4267,10 +4262,10 @@ var serializeAws_querySetRulePrioritiesInput = function (input, context) {
4267
4262
  };
4268
4263
  var serializeAws_querySetSecurityGroupsInput = function (input, context) {
4269
4264
  var entries = {};
4270
- if (input.LoadBalancerArn !== undefined && input.LoadBalancerArn !== null) {
4265
+ if (input.LoadBalancerArn != null) {
4271
4266
  entries["LoadBalancerArn"] = input.LoadBalancerArn;
4272
4267
  }
4273
- if (input.SecurityGroups !== undefined && input.SecurityGroups !== null) {
4268
+ if (input.SecurityGroups != null) {
4274
4269
  var memberEntries = serializeAws_querySecurityGroups(input.SecurityGroups, context);
4275
4270
  Object.entries(memberEntries).forEach(function (_a) {
4276
4271
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4282,10 +4277,10 @@ var serializeAws_querySetSecurityGroupsInput = function (input, context) {
4282
4277
  };
4283
4278
  var serializeAws_querySetSubnetsInput = function (input, context) {
4284
4279
  var entries = {};
4285
- if (input.LoadBalancerArn !== undefined && input.LoadBalancerArn !== null) {
4280
+ if (input.LoadBalancerArn != null) {
4286
4281
  entries["LoadBalancerArn"] = input.LoadBalancerArn;
4287
4282
  }
4288
- if (input.Subnets !== undefined && input.Subnets !== null) {
4283
+ if (input.Subnets != null) {
4289
4284
  var memberEntries = serializeAws_querySubnets(input.Subnets, context);
4290
4285
  Object.entries(memberEntries).forEach(function (_a) {
4291
4286
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4293,7 +4288,7 @@ var serializeAws_querySetSubnetsInput = function (input, context) {
4293
4288
  entries[loc] = value;
4294
4289
  });
4295
4290
  }
4296
- if (input.SubnetMappings !== undefined && input.SubnetMappings !== null) {
4291
+ if (input.SubnetMappings != null) {
4297
4292
  var memberEntries = serializeAws_querySubnetMappings(input.SubnetMappings, context);
4298
4293
  Object.entries(memberEntries).forEach(function (_a) {
4299
4294
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4301,14 +4296,14 @@ var serializeAws_querySetSubnetsInput = function (input, context) {
4301
4296
  entries[loc] = value;
4302
4297
  });
4303
4298
  }
4304
- if (input.IpAddressType !== undefined && input.IpAddressType !== null) {
4299
+ if (input.IpAddressType != null) {
4305
4300
  entries["IpAddressType"] = input.IpAddressType;
4306
4301
  }
4307
4302
  return entries;
4308
4303
  };
4309
4304
  var serializeAws_querySourceIpConditionConfig = function (input, context) {
4310
4305
  var entries = {};
4311
- if (input.Values !== undefined && input.Values !== null) {
4306
+ if (input.Values != null) {
4312
4307
  var memberEntries = serializeAws_queryListOfString(input.Values, context);
4313
4308
  Object.entries(memberEntries).forEach(function (_a) {
4314
4309
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -4343,16 +4338,16 @@ var serializeAws_querySslPolicyNames = function (input, context) {
4343
4338
  };
4344
4339
  var serializeAws_querySubnetMapping = function (input, context) {
4345
4340
  var entries = {};
4346
- if (input.SubnetId !== undefined && input.SubnetId !== null) {
4341
+ if (input.SubnetId != null) {
4347
4342
  entries["SubnetId"] = input.SubnetId;
4348
4343
  }
4349
- if (input.AllocationId !== undefined && input.AllocationId !== null) {
4344
+ if (input.AllocationId != null) {
4350
4345
  entries["AllocationId"] = input.AllocationId;
4351
4346
  }
4352
- if (input.PrivateIPv4Address !== undefined && input.PrivateIPv4Address !== null) {
4347
+ if (input.PrivateIPv4Address != null) {
4353
4348
  entries["PrivateIPv4Address"] = input.PrivateIPv4Address;
4354
4349
  }
4355
- if (input.IPv6Address !== undefined && input.IPv6Address !== null) {
4350
+ if (input.IPv6Address != null) {
4356
4351
  entries["IPv6Address"] = input.IPv6Address;
4357
4352
  }
4358
4353
  return entries;
@@ -4409,10 +4404,10 @@ var serializeAws_querySubnets = function (input, context) {
4409
4404
  };
4410
4405
  var serializeAws_queryTag = function (input, context) {
4411
4406
  var entries = {};
4412
- if (input.Key !== undefined && input.Key !== null) {
4407
+ if (input.Key != null) {
4413
4408
  entries["Key"] = input.Key;
4414
4409
  }
4415
- if (input.Value !== undefined && input.Value !== null) {
4410
+ if (input.Value != null) {
4416
4411
  entries["Value"] = input.Value;
4417
4412
  }
4418
4413
  return entries;
@@ -4469,13 +4464,13 @@ var serializeAws_queryTagList = function (input, context) {
4469
4464
  };
4470
4465
  var serializeAws_queryTargetDescription = function (input, context) {
4471
4466
  var entries = {};
4472
- if (input.Id !== undefined && input.Id !== null) {
4467
+ if (input.Id != null) {
4473
4468
  entries["Id"] = input.Id;
4474
4469
  }
4475
- if (input.Port !== undefined && input.Port !== null) {
4470
+ if (input.Port != null) {
4476
4471
  entries["Port"] = input.Port;
4477
4472
  }
4478
- if (input.AvailabilityZone !== undefined && input.AvailabilityZone !== null) {
4473
+ if (input.AvailabilityZone != null) {
4479
4474
  entries["AvailabilityZone"] = input.AvailabilityZone;
4480
4475
  }
4481
4476
  return entries;
@@ -4532,10 +4527,10 @@ var serializeAws_queryTargetGroupArns = function (input, context) {
4532
4527
  };
4533
4528
  var serializeAws_queryTargetGroupAttribute = function (input, context) {
4534
4529
  var entries = {};
4535
- if (input.Key !== undefined && input.Key !== null) {
4530
+ if (input.Key != null) {
4536
4531
  entries["Key"] = input.Key;
4537
4532
  }
4538
- if (input.Value !== undefined && input.Value !== null) {
4533
+ if (input.Value != null) {
4539
4534
  entries["Value"] = input.Value;
4540
4535
  }
4541
4536
  return entries;
@@ -4619,20 +4614,20 @@ var serializeAws_queryTargetGroupNames = function (input, context) {
4619
4614
  };
4620
4615
  var serializeAws_queryTargetGroupStickinessConfig = function (input, context) {
4621
4616
  var entries = {};
4622
- if (input.Enabled !== undefined && input.Enabled !== null) {
4617
+ if (input.Enabled != null) {
4623
4618
  entries["Enabled"] = input.Enabled;
4624
4619
  }
4625
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
4620
+ if (input.DurationSeconds != null) {
4626
4621
  entries["DurationSeconds"] = input.DurationSeconds;
4627
4622
  }
4628
4623
  return entries;
4629
4624
  };
4630
4625
  var serializeAws_queryTargetGroupTuple = function (input, context) {
4631
4626
  var entries = {};
4632
- if (input.TargetGroupArn !== undefined && input.TargetGroupArn !== null) {
4627
+ if (input.TargetGroupArn != null) {
4633
4628
  entries["TargetGroupArn"] = input.TargetGroupArn;
4634
4629
  }
4635
- if (input.Weight !== undefined && input.Weight !== null) {
4630
+ if (input.Weight != null) {
4636
4631
  entries["Weight"] = input.Weight;
4637
4632
  }
4638
4633
  return entries;
@@ -4678,9 +4673,6 @@ var deserializeAws_queryActions = function (output, context) {
4678
4673
  return (output || [])
4679
4674
  .filter(function (e) { return e != null; })
4680
4675
  .map(function (entry) {
4681
- if (entry === null) {
4682
- return null;
4683
- }
4684
4676
  return deserializeAws_queryAction(entry, context);
4685
4677
  });
4686
4678
  };
@@ -4713,9 +4705,6 @@ var deserializeAws_queryAlpnPolicyName = function (output, context) {
4713
4705
  return (output || [])
4714
4706
  .filter(function (e) { return e != null; })
4715
4707
  .map(function (entry) {
4716
- if (entry === null) {
4717
- return null;
4718
- }
4719
4708
  return __expectString(entry);
4720
4709
  });
4721
4710
  };
@@ -4883,9 +4872,6 @@ var deserializeAws_queryAvailabilityZones = function (output, context) {
4883
4872
  return (output || [])
4884
4873
  .filter(function (e) { return e != null; })
4885
4874
  .map(function (entry) {
4886
- if (entry === null) {
4887
- return null;
4888
- }
4889
4875
  return deserializeAws_queryAvailabilityZone(entry, context);
4890
4876
  });
4891
4877
  };
@@ -4906,9 +4892,6 @@ var deserializeAws_queryCertificateList = function (output, context) {
4906
4892
  return (output || [])
4907
4893
  .filter(function (e) { return e != null; })
4908
4894
  .map(function (entry) {
4909
- if (entry === null) {
4910
- return null;
4911
- }
4912
4895
  return deserializeAws_queryCertificate(entry, context);
4913
4896
  });
4914
4897
  };
@@ -4938,9 +4921,6 @@ var deserializeAws_queryCiphers = function (output, context) {
4938
4921
  return (output || [])
4939
4922
  .filter(function (e) { return e != null; })
4940
4923
  .map(function (entry) {
4941
- if (entry === null) {
4942
- return null;
4943
- }
4944
4924
  return deserializeAws_queryCipher(entry, context);
4945
4925
  });
4946
4926
  };
@@ -5371,9 +5351,6 @@ var deserializeAws_queryLimits = function (output, context) {
5371
5351
  return (output || [])
5372
5352
  .filter(function (e) { return e != null; })
5373
5353
  .map(function (entry) {
5374
- if (entry === null) {
5375
- return null;
5376
- }
5377
5354
  return deserializeAws_queryLimit(entry, context);
5378
5355
  });
5379
5356
  };
@@ -5436,9 +5413,6 @@ var deserializeAws_queryListeners = function (output, context) {
5436
5413
  return (output || [])
5437
5414
  .filter(function (e) { return e != null; })
5438
5415
  .map(function (entry) {
5439
- if (entry === null) {
5440
- return null;
5441
- }
5442
5416
  return deserializeAws_queryListener(entry, context);
5443
5417
  });
5444
5418
  };
@@ -5446,9 +5420,6 @@ var deserializeAws_queryListOfString = function (output, context) {
5446
5420
  return (output || [])
5447
5421
  .filter(function (e) { return e != null; })
5448
5422
  .map(function (entry) {
5449
- if (entry === null) {
5450
- return null;
5451
- }
5452
5423
  return __expectString(entry);
5453
5424
  });
5454
5425
  };
@@ -5540,9 +5511,6 @@ var deserializeAws_queryLoadBalancerAddresses = function (output, context) {
5540
5511
  return (output || [])
5541
5512
  .filter(function (e) { return e != null; })
5542
5513
  .map(function (entry) {
5543
- if (entry === null) {
5544
- return null;
5545
- }
5546
5514
  return deserializeAws_queryLoadBalancerAddress(entry, context);
5547
5515
  });
5548
5516
  };
@@ -5550,9 +5518,6 @@ var deserializeAws_queryLoadBalancerArns = function (output, context) {
5550
5518
  return (output || [])
5551
5519
  .filter(function (e) { return e != null; })
5552
5520
  .map(function (entry) {
5553
- if (entry === null) {
5554
- return null;
5555
- }
5556
5521
  return __expectString(entry);
5557
5522
  });
5558
5523
  };
@@ -5573,9 +5538,6 @@ var deserializeAws_queryLoadBalancerAttributes = function (output, context) {
5573
5538
  return (output || [])
5574
5539
  .filter(function (e) { return e != null; })
5575
5540
  .map(function (entry) {
5576
- if (entry === null) {
5577
- return null;
5578
- }
5579
5541
  return deserializeAws_queryLoadBalancerAttribute(entry, context);
5580
5542
  });
5581
5543
  };
@@ -5592,9 +5554,6 @@ var deserializeAws_queryLoadBalancers = function (output, context) {
5592
5554
  return (output || [])
5593
5555
  .filter(function (e) { return e != null; })
5594
5556
  .map(function (entry) {
5595
- if (entry === null) {
5596
- return null;
5597
- }
5598
5557
  return deserializeAws_queryLoadBalancer(entry, context);
5599
5558
  });
5600
5559
  };
@@ -5743,9 +5702,6 @@ var deserializeAws_queryQueryStringKeyValuePairList = function (output, context)
5743
5702
  return (output || [])
5744
5703
  .filter(function (e) { return e != null; })
5745
5704
  .map(function (entry) {
5746
- if (entry === null) {
5747
- return null;
5748
- }
5749
5705
  return deserializeAws_queryQueryStringKeyValuePair(entry, context);
5750
5706
  });
5751
5707
  };
@@ -5874,9 +5830,6 @@ var deserializeAws_queryRuleConditionList = function (output, context) {
5874
5830
  return (output || [])
5875
5831
  .filter(function (e) { return e != null; })
5876
5832
  .map(function (entry) {
5877
- if (entry === null) {
5878
- return null;
5879
- }
5880
5833
  return deserializeAws_queryRuleCondition(entry, context);
5881
5834
  });
5882
5835
  };
@@ -5893,9 +5846,6 @@ var deserializeAws_queryRules = function (output, context) {
5893
5846
  return (output || [])
5894
5847
  .filter(function (e) { return e != null; })
5895
5848
  .map(function (entry) {
5896
- if (entry === null) {
5897
- return null;
5898
- }
5899
5849
  return deserializeAws_queryRule(entry, context);
5900
5850
  });
5901
5851
  };
@@ -5903,9 +5853,6 @@ var deserializeAws_querySecurityGroups = function (output, context) {
5903
5853
  return (output || [])
5904
5854
  .filter(function (e) { return e != null; })
5905
5855
  .map(function (entry) {
5906
- if (entry === null) {
5907
- return null;
5908
- }
5909
5856
  return __expectString(entry);
5910
5857
  });
5911
5858
  };
@@ -5974,9 +5921,6 @@ var deserializeAws_querySslPolicies = function (output, context) {
5974
5921
  return (output || [])
5975
5922
  .filter(function (e) { return e != null; })
5976
5923
  .map(function (entry) {
5977
- if (entry === null) {
5978
- return null;
5979
- }
5980
5924
  return deserializeAws_querySslPolicy(entry, context);
5981
5925
  });
5982
5926
  };
@@ -6024,9 +5968,6 @@ var deserializeAws_querySslProtocols = function (output, context) {
6024
5968
  return (output || [])
6025
5969
  .filter(function (e) { return e != null; })
6026
5970
  .map(function (entry) {
6027
- if (entry === null) {
6028
- return null;
6029
- }
6030
5971
  return __expectString(entry);
6031
5972
  });
6032
5973
  };
@@ -6072,9 +6013,6 @@ var deserializeAws_queryTagDescriptions = function (output, context) {
6072
6013
  return (output || [])
6073
6014
  .filter(function (e) { return e != null; })
6074
6015
  .map(function (entry) {
6075
- if (entry === null) {
6076
- return null;
6077
- }
6078
6016
  return deserializeAws_queryTagDescription(entry, context);
6079
6017
  });
6080
6018
  };
@@ -6082,9 +6020,6 @@ var deserializeAws_queryTagList = function (output, context) {
6082
6020
  return (output || [])
6083
6021
  .filter(function (e) { return e != null; })
6084
6022
  .map(function (entry) {
6085
- if (entry === null) {
6086
- return null;
6087
- }
6088
6023
  return deserializeAws_queryTag(entry, context);
6089
6024
  });
6090
6025
  };
@@ -6211,9 +6146,6 @@ var deserializeAws_queryTargetGroupAttributes = function (output, context) {
6211
6146
  return (output || [])
6212
6147
  .filter(function (e) { return e != null; })
6213
6148
  .map(function (entry) {
6214
- if (entry === null) {
6215
- return null;
6216
- }
6217
6149
  return deserializeAws_queryTargetGroupAttribute(entry, context);
6218
6150
  });
6219
6151
  };
@@ -6221,9 +6153,6 @@ var deserializeAws_queryTargetGroupList = function (output, context) {
6221
6153
  return (output || [])
6222
6154
  .filter(function (e) { return e != null; })
6223
6155
  .map(function (entry) {
6224
- if (entry === null) {
6225
- return null;
6226
- }
6227
6156
  return deserializeAws_queryTargetGroupTuple(entry, context);
6228
6157
  });
6229
6158
  };
@@ -6240,9 +6169,6 @@ var deserializeAws_queryTargetGroups = function (output, context) {
6240
6169
  return (output || [])
6241
6170
  .filter(function (e) { return e != null; })
6242
6171
  .map(function (entry) {
6243
- if (entry === null) {
6244
- return null;
6245
- }
6246
6172
  return deserializeAws_queryTargetGroup(entry, context);
6247
6173
  });
6248
6174
  };
@@ -6310,9 +6236,6 @@ var deserializeAws_queryTargetHealthDescriptions = function (output, context) {
6310
6236
  return (output || [])
6311
6237
  .filter(function (e) { return e != null; })
6312
6238
  .map(function (entry) {
6313
- if (entry === null) {
6314
- return null;
6315
- }
6316
6239
  return deserializeAws_queryTargetHealthDescription(entry, context);
6317
6240
  });
6318
6241
  };