@aws-sdk/client-elastic-load-balancing 3.312.0 → 3.316.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,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { ElasticLoadBalancingServiceException as __BaseException } from "../models/ElasticLoadBalancingServiceException";
5
5
  import { AccessPointNotFoundException, CertificateNotFoundException, DependencyThrottleException, DuplicateAccessPointNameException, DuplicateListenerException, DuplicatePolicyNameException, DuplicateTagKeysException, InvalidConfigurationRequestException, InvalidEndPointException, InvalidSchemeException, InvalidSecurityGroupException, InvalidSubnetException, ListenerNotFoundException, LoadBalancerAttributeNotFoundException, OperationNotPermittedException, PolicyNotFoundException, PolicyTypeNotFoundException, SubnetNotFoundException, TooManyAccessPointsException, TooManyPoliciesException, TooManyTagsException, UnsupportedProtocolException, } from "../models/models_0";
@@ -304,7 +304,7 @@ export const de_AddTagsCommand = async (output, context) => {
304
304
  $metadata: deserializeMetadata(output),
305
305
  ...contents,
306
306
  };
307
- return Promise.resolve(response);
307
+ return response;
308
308
  };
309
309
  const de_AddTagsCommandError = async (output, context) => {
310
310
  const parsedOutput = {
@@ -324,10 +324,9 @@ const de_AddTagsCommandError = async (output, context) => {
324
324
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
325
325
  default:
326
326
  const parsedBody = parsedOutput.body;
327
- throwDefaultError({
327
+ return throwDefaultError({
328
328
  output,
329
329
  parsedBody: parsedBody.Error,
330
- exceptionCtor: __BaseException,
331
330
  errorCode,
332
331
  });
333
332
  }
@@ -343,7 +342,7 @@ export const de_ApplySecurityGroupsToLoadBalancerCommand = async (output, contex
343
342
  $metadata: deserializeMetadata(output),
344
343
  ...contents,
345
344
  };
346
- return Promise.resolve(response);
345
+ return response;
347
346
  };
348
347
  const de_ApplySecurityGroupsToLoadBalancerCommandError = async (output, context) => {
349
348
  const parsedOutput = {
@@ -363,10 +362,9 @@ const de_ApplySecurityGroupsToLoadBalancerCommandError = async (output, context)
363
362
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
364
363
  default:
365
364
  const parsedBody = parsedOutput.body;
366
- throwDefaultError({
365
+ return throwDefaultError({
367
366
  output,
368
367
  parsedBody: parsedBody.Error,
369
- exceptionCtor: __BaseException,
370
368
  errorCode,
371
369
  });
372
370
  }
@@ -382,7 +380,7 @@ export const de_AttachLoadBalancerToSubnetsCommand = async (output, context) =>
382
380
  $metadata: deserializeMetadata(output),
383
381
  ...contents,
384
382
  };
385
- return Promise.resolve(response);
383
+ return response;
386
384
  };
387
385
  const de_AttachLoadBalancerToSubnetsCommandError = async (output, context) => {
388
386
  const parsedOutput = {
@@ -405,10 +403,9 @@ const de_AttachLoadBalancerToSubnetsCommandError = async (output, context) => {
405
403
  throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
406
404
  default:
407
405
  const parsedBody = parsedOutput.body;
408
- throwDefaultError({
406
+ return throwDefaultError({
409
407
  output,
410
408
  parsedBody: parsedBody.Error,
411
- exceptionCtor: __BaseException,
412
409
  errorCode,
413
410
  });
414
411
  }
@@ -424,7 +421,7 @@ export const de_ConfigureHealthCheckCommand = async (output, context) => {
424
421
  $metadata: deserializeMetadata(output),
425
422
  ...contents,
426
423
  };
427
- return Promise.resolve(response);
424
+ return response;
428
425
  };
429
426
  const de_ConfigureHealthCheckCommandError = async (output, context) => {
430
427
  const parsedOutput = {
@@ -438,10 +435,9 @@ const de_ConfigureHealthCheckCommandError = async (output, context) => {
438
435
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
439
436
  default:
440
437
  const parsedBody = parsedOutput.body;
441
- throwDefaultError({
438
+ return throwDefaultError({
442
439
  output,
443
440
  parsedBody: parsedBody.Error,
444
- exceptionCtor: __BaseException,
445
441
  errorCode,
446
442
  });
447
443
  }
@@ -457,7 +453,7 @@ export const de_CreateAppCookieStickinessPolicyCommand = async (output, context)
457
453
  $metadata: deserializeMetadata(output),
458
454
  ...contents,
459
455
  };
460
- return Promise.resolve(response);
456
+ return response;
461
457
  };
462
458
  const de_CreateAppCookieStickinessPolicyCommandError = async (output, context) => {
463
459
  const parsedOutput = {
@@ -480,10 +476,9 @@ const de_CreateAppCookieStickinessPolicyCommandError = async (output, context) =
480
476
  throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
481
477
  default:
482
478
  const parsedBody = parsedOutput.body;
483
- throwDefaultError({
479
+ return throwDefaultError({
484
480
  output,
485
481
  parsedBody: parsedBody.Error,
486
- exceptionCtor: __BaseException,
487
482
  errorCode,
488
483
  });
489
484
  }
@@ -499,7 +494,7 @@ export const de_CreateLBCookieStickinessPolicyCommand = async (output, context)
499
494
  $metadata: deserializeMetadata(output),
500
495
  ...contents,
501
496
  };
502
- return Promise.resolve(response);
497
+ return response;
503
498
  };
504
499
  const de_CreateLBCookieStickinessPolicyCommandError = async (output, context) => {
505
500
  const parsedOutput = {
@@ -522,10 +517,9 @@ const de_CreateLBCookieStickinessPolicyCommandError = async (output, context) =>
522
517
  throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
523
518
  default:
524
519
  const parsedBody = parsedOutput.body;
525
- throwDefaultError({
520
+ return throwDefaultError({
526
521
  output,
527
522
  parsedBody: parsedBody.Error,
528
- exceptionCtor: __BaseException,
529
523
  errorCode,
530
524
  });
531
525
  }
@@ -541,7 +535,7 @@ export const de_CreateLoadBalancerCommand = async (output, context) => {
541
535
  $metadata: deserializeMetadata(output),
542
536
  ...contents,
543
537
  };
544
- return Promise.resolve(response);
538
+ return response;
545
539
  };
546
540
  const de_CreateLoadBalancerCommandError = async (output, context) => {
547
541
  const parsedOutput = {
@@ -588,10 +582,9 @@ const de_CreateLoadBalancerCommandError = async (output, context) => {
588
582
  throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
589
583
  default:
590
584
  const parsedBody = parsedOutput.body;
591
- throwDefaultError({
585
+ return throwDefaultError({
592
586
  output,
593
587
  parsedBody: parsedBody.Error,
594
- exceptionCtor: __BaseException,
595
588
  errorCode,
596
589
  });
597
590
  }
@@ -607,7 +600,7 @@ export const de_CreateLoadBalancerListenersCommand = async (output, context) =>
607
600
  $metadata: deserializeMetadata(output),
608
601
  ...contents,
609
602
  };
610
- return Promise.resolve(response);
603
+ return response;
611
604
  };
612
605
  const de_CreateLoadBalancerListenersCommandError = async (output, context) => {
613
606
  const parsedOutput = {
@@ -633,10 +626,9 @@ const de_CreateLoadBalancerListenersCommandError = async (output, context) => {
633
626
  throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
634
627
  default:
635
628
  const parsedBody = parsedOutput.body;
636
- throwDefaultError({
629
+ return throwDefaultError({
637
630
  output,
638
631
  parsedBody: parsedBody.Error,
639
- exceptionCtor: __BaseException,
640
632
  errorCode,
641
633
  });
642
634
  }
@@ -652,7 +644,7 @@ export const de_CreateLoadBalancerPolicyCommand = async (output, context) => {
652
644
  $metadata: deserializeMetadata(output),
653
645
  ...contents,
654
646
  };
655
- return Promise.resolve(response);
647
+ return response;
656
648
  };
657
649
  const de_CreateLoadBalancerPolicyCommandError = async (output, context) => {
658
650
  const parsedOutput = {
@@ -678,10 +670,9 @@ const de_CreateLoadBalancerPolicyCommandError = async (output, context) => {
678
670
  throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
679
671
  default:
680
672
  const parsedBody = parsedOutput.body;
681
- throwDefaultError({
673
+ return throwDefaultError({
682
674
  output,
683
675
  parsedBody: parsedBody.Error,
684
- exceptionCtor: __BaseException,
685
676
  errorCode,
686
677
  });
687
678
  }
@@ -697,7 +688,7 @@ export const de_DeleteLoadBalancerCommand = async (output, context) => {
697
688
  $metadata: deserializeMetadata(output),
698
689
  ...contents,
699
690
  };
700
- return Promise.resolve(response);
691
+ return response;
701
692
  };
702
693
  const de_DeleteLoadBalancerCommandError = async (output, context) => {
703
694
  const parsedOutput = {
@@ -706,10 +697,9 @@ const de_DeleteLoadBalancerCommandError = async (output, context) => {
706
697
  };
707
698
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
708
699
  const parsedBody = parsedOutput.body;
709
- throwDefaultError({
700
+ return throwDefaultError({
710
701
  output,
711
702
  parsedBody: parsedBody.Error,
712
- exceptionCtor: __BaseException,
713
703
  errorCode,
714
704
  });
715
705
  };
@@ -724,7 +714,7 @@ export const de_DeleteLoadBalancerListenersCommand = async (output, context) =>
724
714
  $metadata: deserializeMetadata(output),
725
715
  ...contents,
726
716
  };
727
- return Promise.resolve(response);
717
+ return response;
728
718
  };
729
719
  const de_DeleteLoadBalancerListenersCommandError = async (output, context) => {
730
720
  const parsedOutput = {
@@ -738,10 +728,9 @@ const de_DeleteLoadBalancerListenersCommandError = async (output, context) => {
738
728
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
739
729
  default:
740
730
  const parsedBody = parsedOutput.body;
741
- throwDefaultError({
731
+ return throwDefaultError({
742
732
  output,
743
733
  parsedBody: parsedBody.Error,
744
- exceptionCtor: __BaseException,
745
734
  errorCode,
746
735
  });
747
736
  }
@@ -757,7 +746,7 @@ export const de_DeleteLoadBalancerPolicyCommand = async (output, context) => {
757
746
  $metadata: deserializeMetadata(output),
758
747
  ...contents,
759
748
  };
760
- return Promise.resolve(response);
749
+ return response;
761
750
  };
762
751
  const de_DeleteLoadBalancerPolicyCommandError = async (output, context) => {
763
752
  const parsedOutput = {
@@ -774,10 +763,9 @@ const de_DeleteLoadBalancerPolicyCommandError = async (output, context) => {
774
763
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
775
764
  default:
776
765
  const parsedBody = parsedOutput.body;
777
- throwDefaultError({
766
+ return throwDefaultError({
778
767
  output,
779
768
  parsedBody: parsedBody.Error,
780
- exceptionCtor: __BaseException,
781
769
  errorCode,
782
770
  });
783
771
  }
@@ -793,7 +781,7 @@ export const de_DeregisterInstancesFromLoadBalancerCommand = async (output, cont
793
781
  $metadata: deserializeMetadata(output),
794
782
  ...contents,
795
783
  };
796
- return Promise.resolve(response);
784
+ return response;
797
785
  };
798
786
  const de_DeregisterInstancesFromLoadBalancerCommandError = async (output, context) => {
799
787
  const parsedOutput = {
@@ -810,10 +798,9 @@ const de_DeregisterInstancesFromLoadBalancerCommandError = async (output, contex
810
798
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
811
799
  default:
812
800
  const parsedBody = parsedOutput.body;
813
- throwDefaultError({
801
+ return throwDefaultError({
814
802
  output,
815
803
  parsedBody: parsedBody.Error,
816
- exceptionCtor: __BaseException,
817
804
  errorCode,
818
805
  });
819
806
  }
@@ -829,7 +816,7 @@ export const de_DescribeAccountLimitsCommand = async (output, context) => {
829
816
  $metadata: deserializeMetadata(output),
830
817
  ...contents,
831
818
  };
832
- return Promise.resolve(response);
819
+ return response;
833
820
  };
834
821
  const de_DescribeAccountLimitsCommandError = async (output, context) => {
835
822
  const parsedOutput = {
@@ -838,10 +825,9 @@ const de_DescribeAccountLimitsCommandError = async (output, context) => {
838
825
  };
839
826
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
840
827
  const parsedBody = parsedOutput.body;
841
- throwDefaultError({
828
+ return throwDefaultError({
842
829
  output,
843
830
  parsedBody: parsedBody.Error,
844
- exceptionCtor: __BaseException,
845
831
  errorCode,
846
832
  });
847
833
  };
@@ -856,7 +842,7 @@ export const de_DescribeInstanceHealthCommand = async (output, context) => {
856
842
  $metadata: deserializeMetadata(output),
857
843
  ...contents,
858
844
  };
859
- return Promise.resolve(response);
845
+ return response;
860
846
  };
861
847
  const de_DescribeInstanceHealthCommandError = async (output, context) => {
862
848
  const parsedOutput = {
@@ -873,10 +859,9 @@ const de_DescribeInstanceHealthCommandError = async (output, context) => {
873
859
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
874
860
  default:
875
861
  const parsedBody = parsedOutput.body;
876
- throwDefaultError({
862
+ return throwDefaultError({
877
863
  output,
878
864
  parsedBody: parsedBody.Error,
879
- exceptionCtor: __BaseException,
880
865
  errorCode,
881
866
  });
882
867
  }
@@ -892,7 +877,7 @@ export const de_DescribeLoadBalancerAttributesCommand = async (output, context)
892
877
  $metadata: deserializeMetadata(output),
893
878
  ...contents,
894
879
  };
895
- return Promise.resolve(response);
880
+ return response;
896
881
  };
897
882
  const de_DescribeLoadBalancerAttributesCommandError = async (output, context) => {
898
883
  const parsedOutput = {
@@ -909,10 +894,9 @@ const de_DescribeLoadBalancerAttributesCommandError = async (output, context) =>
909
894
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
910
895
  default:
911
896
  const parsedBody = parsedOutput.body;
912
- throwDefaultError({
897
+ return throwDefaultError({
913
898
  output,
914
899
  parsedBody: parsedBody.Error,
915
- exceptionCtor: __BaseException,
916
900
  errorCode,
917
901
  });
918
902
  }
@@ -928,7 +912,7 @@ export const de_DescribeLoadBalancerPoliciesCommand = async (output, context) =>
928
912
  $metadata: deserializeMetadata(output),
929
913
  ...contents,
930
914
  };
931
- return Promise.resolve(response);
915
+ return response;
932
916
  };
933
917
  const de_DescribeLoadBalancerPoliciesCommandError = async (output, context) => {
934
918
  const parsedOutput = {
@@ -945,10 +929,9 @@ const de_DescribeLoadBalancerPoliciesCommandError = async (output, context) => {
945
929
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
946
930
  default:
947
931
  const parsedBody = parsedOutput.body;
948
- throwDefaultError({
932
+ return throwDefaultError({
949
933
  output,
950
934
  parsedBody: parsedBody.Error,
951
- exceptionCtor: __BaseException,
952
935
  errorCode,
953
936
  });
954
937
  }
@@ -964,7 +947,7 @@ export const de_DescribeLoadBalancerPolicyTypesCommand = async (output, context)
964
947
  $metadata: deserializeMetadata(output),
965
948
  ...contents,
966
949
  };
967
- return Promise.resolve(response);
950
+ return response;
968
951
  };
969
952
  const de_DescribeLoadBalancerPolicyTypesCommandError = async (output, context) => {
970
953
  const parsedOutput = {
@@ -978,10 +961,9 @@ const de_DescribeLoadBalancerPolicyTypesCommandError = async (output, context) =
978
961
  throw await de_PolicyTypeNotFoundExceptionRes(parsedOutput, context);
979
962
  default:
980
963
  const parsedBody = parsedOutput.body;
981
- throwDefaultError({
964
+ return throwDefaultError({
982
965
  output,
983
966
  parsedBody: parsedBody.Error,
984
- exceptionCtor: __BaseException,
985
967
  errorCode,
986
968
  });
987
969
  }
@@ -997,7 +979,7 @@ export const de_DescribeLoadBalancersCommand = async (output, context) => {
997
979
  $metadata: deserializeMetadata(output),
998
980
  ...contents,
999
981
  };
1000
- return Promise.resolve(response);
982
+ return response;
1001
983
  };
1002
984
  const de_DescribeLoadBalancersCommandError = async (output, context) => {
1003
985
  const parsedOutput = {
@@ -1014,10 +996,9 @@ const de_DescribeLoadBalancersCommandError = async (output, context) => {
1014
996
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
1015
997
  default:
1016
998
  const parsedBody = parsedOutput.body;
1017
- throwDefaultError({
999
+ return throwDefaultError({
1018
1000
  output,
1019
1001
  parsedBody: parsedBody.Error,
1020
- exceptionCtor: __BaseException,
1021
1002
  errorCode,
1022
1003
  });
1023
1004
  }
@@ -1033,7 +1014,7 @@ export const de_DescribeTagsCommand = async (output, context) => {
1033
1014
  $metadata: deserializeMetadata(output),
1034
1015
  ...contents,
1035
1016
  };
1036
- return Promise.resolve(response);
1017
+ return response;
1037
1018
  };
1038
1019
  const de_DescribeTagsCommandError = async (output, context) => {
1039
1020
  const parsedOutput = {
@@ -1047,10 +1028,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
1047
1028
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
1048
1029
  default:
1049
1030
  const parsedBody = parsedOutput.body;
1050
- throwDefaultError({
1031
+ return throwDefaultError({
1051
1032
  output,
1052
1033
  parsedBody: parsedBody.Error,
1053
- exceptionCtor: __BaseException,
1054
1034
  errorCode,
1055
1035
  });
1056
1036
  }
@@ -1066,7 +1046,7 @@ export const de_DetachLoadBalancerFromSubnetsCommand = async (output, context) =
1066
1046
  $metadata: deserializeMetadata(output),
1067
1047
  ...contents,
1068
1048
  };
1069
- return Promise.resolve(response);
1049
+ return response;
1070
1050
  };
1071
1051
  const de_DetachLoadBalancerFromSubnetsCommandError = async (output, context) => {
1072
1052
  const parsedOutput = {
@@ -1083,10 +1063,9 @@ const de_DetachLoadBalancerFromSubnetsCommandError = async (output, context) =>
1083
1063
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
1084
1064
  default:
1085
1065
  const parsedBody = parsedOutput.body;
1086
- throwDefaultError({
1066
+ return throwDefaultError({
1087
1067
  output,
1088
1068
  parsedBody: parsedBody.Error,
1089
- exceptionCtor: __BaseException,
1090
1069
  errorCode,
1091
1070
  });
1092
1071
  }
@@ -1102,7 +1081,7 @@ export const de_DisableAvailabilityZonesForLoadBalancerCommand = async (output,
1102
1081
  $metadata: deserializeMetadata(output),
1103
1082
  ...contents,
1104
1083
  };
1105
- return Promise.resolve(response);
1084
+ return response;
1106
1085
  };
1107
1086
  const de_DisableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
1108
1087
  const parsedOutput = {
@@ -1119,10 +1098,9 @@ const de_DisableAvailabilityZonesForLoadBalancerCommandError = async (output, co
1119
1098
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
1120
1099
  default:
1121
1100
  const parsedBody = parsedOutput.body;
1122
- throwDefaultError({
1101
+ return throwDefaultError({
1123
1102
  output,
1124
1103
  parsedBody: parsedBody.Error,
1125
- exceptionCtor: __BaseException,
1126
1104
  errorCode,
1127
1105
  });
1128
1106
  }
@@ -1138,7 +1116,7 @@ export const de_EnableAvailabilityZonesForLoadBalancerCommand = async (output, c
1138
1116
  $metadata: deserializeMetadata(output),
1139
1117
  ...contents,
1140
1118
  };
1141
- return Promise.resolve(response);
1119
+ return response;
1142
1120
  };
1143
1121
  const de_EnableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
1144
1122
  const parsedOutput = {
@@ -1152,10 +1130,9 @@ const de_EnableAvailabilityZonesForLoadBalancerCommandError = async (output, con
1152
1130
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
1153
1131
  default:
1154
1132
  const parsedBody = parsedOutput.body;
1155
- throwDefaultError({
1133
+ return throwDefaultError({
1156
1134
  output,
1157
1135
  parsedBody: parsedBody.Error,
1158
- exceptionCtor: __BaseException,
1159
1136
  errorCode,
1160
1137
  });
1161
1138
  }
@@ -1171,7 +1148,7 @@ export const de_ModifyLoadBalancerAttributesCommand = async (output, context) =>
1171
1148
  $metadata: deserializeMetadata(output),
1172
1149
  ...contents,
1173
1150
  };
1174
- return Promise.resolve(response);
1151
+ return response;
1175
1152
  };
1176
1153
  const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
1177
1154
  const parsedOutput = {
@@ -1191,10 +1168,9 @@ const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
1191
1168
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
1192
1169
  default:
1193
1170
  const parsedBody = parsedOutput.body;
1194
- throwDefaultError({
1171
+ return throwDefaultError({
1195
1172
  output,
1196
1173
  parsedBody: parsedBody.Error,
1197
- exceptionCtor: __BaseException,
1198
1174
  errorCode,
1199
1175
  });
1200
1176
  }
@@ -1210,7 +1186,7 @@ export const de_RegisterInstancesWithLoadBalancerCommand = async (output, contex
1210
1186
  $metadata: deserializeMetadata(output),
1211
1187
  ...contents,
1212
1188
  };
1213
- return Promise.resolve(response);
1189
+ return response;
1214
1190
  };
1215
1191
  const de_RegisterInstancesWithLoadBalancerCommandError = async (output, context) => {
1216
1192
  const parsedOutput = {
@@ -1227,10 +1203,9 @@ const de_RegisterInstancesWithLoadBalancerCommandError = async (output, context)
1227
1203
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
1228
1204
  default:
1229
1205
  const parsedBody = parsedOutput.body;
1230
- throwDefaultError({
1206
+ return throwDefaultError({
1231
1207
  output,
1232
1208
  parsedBody: parsedBody.Error,
1233
- exceptionCtor: __BaseException,
1234
1209
  errorCode,
1235
1210
  });
1236
1211
  }
@@ -1246,7 +1221,7 @@ export const de_RemoveTagsCommand = async (output, context) => {
1246
1221
  $metadata: deserializeMetadata(output),
1247
1222
  ...contents,
1248
1223
  };
1249
- return Promise.resolve(response);
1224
+ return response;
1250
1225
  };
1251
1226
  const de_RemoveTagsCommandError = async (output, context) => {
1252
1227
  const parsedOutput = {
@@ -1260,10 +1235,9 @@ const de_RemoveTagsCommandError = async (output, context) => {
1260
1235
  throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
1261
1236
  default:
1262
1237
  const parsedBody = parsedOutput.body;
1263
- throwDefaultError({
1238
+ return throwDefaultError({
1264
1239
  output,
1265
1240
  parsedBody: parsedBody.Error,
1266
- exceptionCtor: __BaseException,
1267
1241
  errorCode,
1268
1242
  });
1269
1243
  }
@@ -1279,7 +1253,7 @@ export const de_SetLoadBalancerListenerSSLCertificateCommand = async (output, co
1279
1253
  $metadata: deserializeMetadata(output),
1280
1254
  ...contents,
1281
1255
  };
1282
- return Promise.resolve(response);
1256
+ return response;
1283
1257
  };
1284
1258
  const de_SetLoadBalancerListenerSSLCertificateCommandError = async (output, context) => {
1285
1259
  const parsedOutput = {
@@ -1305,10 +1279,9 @@ const de_SetLoadBalancerListenerSSLCertificateCommandError = async (output, cont
1305
1279
  throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
1306
1280
  default:
1307
1281
  const parsedBody = parsedOutput.body;
1308
- throwDefaultError({
1282
+ return throwDefaultError({
1309
1283
  output,
1310
1284
  parsedBody: parsedBody.Error,
1311
- exceptionCtor: __BaseException,
1312
1285
  errorCode,
1313
1286
  });
1314
1287
  }
@@ -1324,7 +1297,7 @@ export const de_SetLoadBalancerPoliciesForBackendServerCommand = async (output,
1324
1297
  $metadata: deserializeMetadata(output),
1325
1298
  ...contents,
1326
1299
  };
1327
- return Promise.resolve(response);
1300
+ return response;
1328
1301
  };
1329
1302
  const de_SetLoadBalancerPoliciesForBackendServerCommandError = async (output, context) => {
1330
1303
  const parsedOutput = {
@@ -1344,10 +1317,9 @@ const de_SetLoadBalancerPoliciesForBackendServerCommandError = async (output, co
1344
1317
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
1345
1318
  default:
1346
1319
  const parsedBody = parsedOutput.body;
1347
- throwDefaultError({
1320
+ return throwDefaultError({
1348
1321
  output,
1349
1322
  parsedBody: parsedBody.Error,
1350
- exceptionCtor: __BaseException,
1351
1323
  errorCode,
1352
1324
  });
1353
1325
  }
@@ -1363,7 +1335,7 @@ export const de_SetLoadBalancerPoliciesOfListenerCommand = async (output, contex
1363
1335
  $metadata: deserializeMetadata(output),
1364
1336
  ...contents,
1365
1337
  };
1366
- return Promise.resolve(response);
1338
+ return response;
1367
1339
  };
1368
1340
  const de_SetLoadBalancerPoliciesOfListenerCommandError = async (output, context) => {
1369
1341
  const parsedOutput = {
@@ -1386,10 +1358,9 @@ const de_SetLoadBalancerPoliciesOfListenerCommandError = async (output, context)
1386
1358
  throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
1387
1359
  default:
1388
1360
  const parsedBody = parsedOutput.body;
1389
- throwDefaultError({
1361
+ return throwDefaultError({
1390
1362
  output,
1391
1363
  parsedBody: parsedBody.Error,
1392
- exceptionCtor: __BaseException,
1393
1364
  errorCode,
1394
1365
  });
1395
1366
  }
@@ -3346,6 +3317,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3346
3317
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3347
3318
  };
3348
3319
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3320
+ const throwDefaultError = withBaseException(__BaseException);
3349
3321
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3350
3322
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3351
3323
  const contents = {