@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.
- package/dist-cjs/ElasticLoadBalancing.js +33 -406
- package/dist-cjs/protocols/Aws_query.js +59 -87
- package/dist-es/ElasticLoadBalancing.js +33 -406
- package/dist-es/protocols/Aws_query.js +60 -88
- package/dist-types/ElasticLoadBalancing.d.ts +56 -227
- package/dist-types/ts3.4/ElasticLoadBalancing.d.ts +4 -1
- package/package.json +6 -6
|
@@ -337,7 +337,7 @@ const de_AddTagsCommand = async (output, context) => {
|
|
|
337
337
|
$metadata: deserializeMetadata(output),
|
|
338
338
|
...contents,
|
|
339
339
|
};
|
|
340
|
-
return
|
|
340
|
+
return response;
|
|
341
341
|
};
|
|
342
342
|
exports.de_AddTagsCommand = de_AddTagsCommand;
|
|
343
343
|
const de_AddTagsCommandError = async (output, context) => {
|
|
@@ -358,10 +358,9 @@ const de_AddTagsCommandError = async (output, context) => {
|
|
|
358
358
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
359
359
|
default:
|
|
360
360
|
const parsedBody = parsedOutput.body;
|
|
361
|
-
|
|
361
|
+
return throwDefaultError({
|
|
362
362
|
output,
|
|
363
363
|
parsedBody: parsedBody.Error,
|
|
364
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
365
364
|
errorCode,
|
|
366
365
|
});
|
|
367
366
|
}
|
|
@@ -377,7 +376,7 @@ const de_ApplySecurityGroupsToLoadBalancerCommand = async (output, context) => {
|
|
|
377
376
|
$metadata: deserializeMetadata(output),
|
|
378
377
|
...contents,
|
|
379
378
|
};
|
|
380
|
-
return
|
|
379
|
+
return response;
|
|
381
380
|
};
|
|
382
381
|
exports.de_ApplySecurityGroupsToLoadBalancerCommand = de_ApplySecurityGroupsToLoadBalancerCommand;
|
|
383
382
|
const de_ApplySecurityGroupsToLoadBalancerCommandError = async (output, context) => {
|
|
@@ -398,10 +397,9 @@ const de_ApplySecurityGroupsToLoadBalancerCommandError = async (output, context)
|
|
|
398
397
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
399
398
|
default:
|
|
400
399
|
const parsedBody = parsedOutput.body;
|
|
401
|
-
|
|
400
|
+
return throwDefaultError({
|
|
402
401
|
output,
|
|
403
402
|
parsedBody: parsedBody.Error,
|
|
404
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
405
403
|
errorCode,
|
|
406
404
|
});
|
|
407
405
|
}
|
|
@@ -417,7 +415,7 @@ const de_AttachLoadBalancerToSubnetsCommand = async (output, context) => {
|
|
|
417
415
|
$metadata: deserializeMetadata(output),
|
|
418
416
|
...contents,
|
|
419
417
|
};
|
|
420
|
-
return
|
|
418
|
+
return response;
|
|
421
419
|
};
|
|
422
420
|
exports.de_AttachLoadBalancerToSubnetsCommand = de_AttachLoadBalancerToSubnetsCommand;
|
|
423
421
|
const de_AttachLoadBalancerToSubnetsCommandError = async (output, context) => {
|
|
@@ -441,10 +439,9 @@ const de_AttachLoadBalancerToSubnetsCommandError = async (output, context) => {
|
|
|
441
439
|
throw await de_SubnetNotFoundExceptionRes(parsedOutput, context);
|
|
442
440
|
default:
|
|
443
441
|
const parsedBody = parsedOutput.body;
|
|
444
|
-
|
|
442
|
+
return throwDefaultError({
|
|
445
443
|
output,
|
|
446
444
|
parsedBody: parsedBody.Error,
|
|
447
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
448
445
|
errorCode,
|
|
449
446
|
});
|
|
450
447
|
}
|
|
@@ -460,7 +457,7 @@ const de_ConfigureHealthCheckCommand = async (output, context) => {
|
|
|
460
457
|
$metadata: deserializeMetadata(output),
|
|
461
458
|
...contents,
|
|
462
459
|
};
|
|
463
|
-
return
|
|
460
|
+
return response;
|
|
464
461
|
};
|
|
465
462
|
exports.de_ConfigureHealthCheckCommand = de_ConfigureHealthCheckCommand;
|
|
466
463
|
const de_ConfigureHealthCheckCommandError = async (output, context) => {
|
|
@@ -475,10 +472,9 @@ const de_ConfigureHealthCheckCommandError = async (output, context) => {
|
|
|
475
472
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
476
473
|
default:
|
|
477
474
|
const parsedBody = parsedOutput.body;
|
|
478
|
-
|
|
475
|
+
return throwDefaultError({
|
|
479
476
|
output,
|
|
480
477
|
parsedBody: parsedBody.Error,
|
|
481
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
482
478
|
errorCode,
|
|
483
479
|
});
|
|
484
480
|
}
|
|
@@ -494,7 +490,7 @@ const de_CreateAppCookieStickinessPolicyCommand = async (output, context) => {
|
|
|
494
490
|
$metadata: deserializeMetadata(output),
|
|
495
491
|
...contents,
|
|
496
492
|
};
|
|
497
|
-
return
|
|
493
|
+
return response;
|
|
498
494
|
};
|
|
499
495
|
exports.de_CreateAppCookieStickinessPolicyCommand = de_CreateAppCookieStickinessPolicyCommand;
|
|
500
496
|
const de_CreateAppCookieStickinessPolicyCommandError = async (output, context) => {
|
|
@@ -518,10 +514,9 @@ const de_CreateAppCookieStickinessPolicyCommandError = async (output, context) =
|
|
|
518
514
|
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
519
515
|
default:
|
|
520
516
|
const parsedBody = parsedOutput.body;
|
|
521
|
-
|
|
517
|
+
return throwDefaultError({
|
|
522
518
|
output,
|
|
523
519
|
parsedBody: parsedBody.Error,
|
|
524
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
525
520
|
errorCode,
|
|
526
521
|
});
|
|
527
522
|
}
|
|
@@ -537,7 +532,7 @@ const de_CreateLBCookieStickinessPolicyCommand = async (output, context) => {
|
|
|
537
532
|
$metadata: deserializeMetadata(output),
|
|
538
533
|
...contents,
|
|
539
534
|
};
|
|
540
|
-
return
|
|
535
|
+
return response;
|
|
541
536
|
};
|
|
542
537
|
exports.de_CreateLBCookieStickinessPolicyCommand = de_CreateLBCookieStickinessPolicyCommand;
|
|
543
538
|
const de_CreateLBCookieStickinessPolicyCommandError = async (output, context) => {
|
|
@@ -561,10 +556,9 @@ const de_CreateLBCookieStickinessPolicyCommandError = async (output, context) =>
|
|
|
561
556
|
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
562
557
|
default:
|
|
563
558
|
const parsedBody = parsedOutput.body;
|
|
564
|
-
|
|
559
|
+
return throwDefaultError({
|
|
565
560
|
output,
|
|
566
561
|
parsedBody: parsedBody.Error,
|
|
567
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
568
562
|
errorCode,
|
|
569
563
|
});
|
|
570
564
|
}
|
|
@@ -580,7 +574,7 @@ const de_CreateLoadBalancerCommand = async (output, context) => {
|
|
|
580
574
|
$metadata: deserializeMetadata(output),
|
|
581
575
|
...contents,
|
|
582
576
|
};
|
|
583
|
-
return
|
|
577
|
+
return response;
|
|
584
578
|
};
|
|
585
579
|
exports.de_CreateLoadBalancerCommand = de_CreateLoadBalancerCommand;
|
|
586
580
|
const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
@@ -628,10 +622,9 @@ const de_CreateLoadBalancerCommandError = async (output, context) => {
|
|
|
628
622
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
629
623
|
default:
|
|
630
624
|
const parsedBody = parsedOutput.body;
|
|
631
|
-
|
|
625
|
+
return throwDefaultError({
|
|
632
626
|
output,
|
|
633
627
|
parsedBody: parsedBody.Error,
|
|
634
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
635
628
|
errorCode,
|
|
636
629
|
});
|
|
637
630
|
}
|
|
@@ -647,7 +640,7 @@ const de_CreateLoadBalancerListenersCommand = async (output, context) => {
|
|
|
647
640
|
$metadata: deserializeMetadata(output),
|
|
648
641
|
...contents,
|
|
649
642
|
};
|
|
650
|
-
return
|
|
643
|
+
return response;
|
|
651
644
|
};
|
|
652
645
|
exports.de_CreateLoadBalancerListenersCommand = de_CreateLoadBalancerListenersCommand;
|
|
653
646
|
const de_CreateLoadBalancerListenersCommandError = async (output, context) => {
|
|
@@ -674,10 +667,9 @@ const de_CreateLoadBalancerListenersCommandError = async (output, context) => {
|
|
|
674
667
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
675
668
|
default:
|
|
676
669
|
const parsedBody = parsedOutput.body;
|
|
677
|
-
|
|
670
|
+
return throwDefaultError({
|
|
678
671
|
output,
|
|
679
672
|
parsedBody: parsedBody.Error,
|
|
680
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
681
673
|
errorCode,
|
|
682
674
|
});
|
|
683
675
|
}
|
|
@@ -693,7 +685,7 @@ const de_CreateLoadBalancerPolicyCommand = async (output, context) => {
|
|
|
693
685
|
$metadata: deserializeMetadata(output),
|
|
694
686
|
...contents,
|
|
695
687
|
};
|
|
696
|
-
return
|
|
688
|
+
return response;
|
|
697
689
|
};
|
|
698
690
|
exports.de_CreateLoadBalancerPolicyCommand = de_CreateLoadBalancerPolicyCommand;
|
|
699
691
|
const de_CreateLoadBalancerPolicyCommandError = async (output, context) => {
|
|
@@ -720,10 +712,9 @@ const de_CreateLoadBalancerPolicyCommandError = async (output, context) => {
|
|
|
720
712
|
throw await de_TooManyPoliciesExceptionRes(parsedOutput, context);
|
|
721
713
|
default:
|
|
722
714
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
715
|
+
return throwDefaultError({
|
|
724
716
|
output,
|
|
725
717
|
parsedBody: parsedBody.Error,
|
|
726
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
727
718
|
errorCode,
|
|
728
719
|
});
|
|
729
720
|
}
|
|
@@ -739,7 +730,7 @@ const de_DeleteLoadBalancerCommand = async (output, context) => {
|
|
|
739
730
|
$metadata: deserializeMetadata(output),
|
|
740
731
|
...contents,
|
|
741
732
|
};
|
|
742
|
-
return
|
|
733
|
+
return response;
|
|
743
734
|
};
|
|
744
735
|
exports.de_DeleteLoadBalancerCommand = de_DeleteLoadBalancerCommand;
|
|
745
736
|
const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
@@ -749,10 +740,9 @@ const de_DeleteLoadBalancerCommandError = async (output, context) => {
|
|
|
749
740
|
};
|
|
750
741
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
751
742
|
const parsedBody = parsedOutput.body;
|
|
752
|
-
|
|
743
|
+
return throwDefaultError({
|
|
753
744
|
output,
|
|
754
745
|
parsedBody: parsedBody.Error,
|
|
755
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
756
746
|
errorCode,
|
|
757
747
|
});
|
|
758
748
|
};
|
|
@@ -767,7 +757,7 @@ const de_DeleteLoadBalancerListenersCommand = async (output, context) => {
|
|
|
767
757
|
$metadata: deserializeMetadata(output),
|
|
768
758
|
...contents,
|
|
769
759
|
};
|
|
770
|
-
return
|
|
760
|
+
return response;
|
|
771
761
|
};
|
|
772
762
|
exports.de_DeleteLoadBalancerListenersCommand = de_DeleteLoadBalancerListenersCommand;
|
|
773
763
|
const de_DeleteLoadBalancerListenersCommandError = async (output, context) => {
|
|
@@ -782,10 +772,9 @@ const de_DeleteLoadBalancerListenersCommandError = async (output, context) => {
|
|
|
782
772
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
783
773
|
default:
|
|
784
774
|
const parsedBody = parsedOutput.body;
|
|
785
|
-
|
|
775
|
+
return throwDefaultError({
|
|
786
776
|
output,
|
|
787
777
|
parsedBody: parsedBody.Error,
|
|
788
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
789
778
|
errorCode,
|
|
790
779
|
});
|
|
791
780
|
}
|
|
@@ -801,7 +790,7 @@ const de_DeleteLoadBalancerPolicyCommand = async (output, context) => {
|
|
|
801
790
|
$metadata: deserializeMetadata(output),
|
|
802
791
|
...contents,
|
|
803
792
|
};
|
|
804
|
-
return
|
|
793
|
+
return response;
|
|
805
794
|
};
|
|
806
795
|
exports.de_DeleteLoadBalancerPolicyCommand = de_DeleteLoadBalancerPolicyCommand;
|
|
807
796
|
const de_DeleteLoadBalancerPolicyCommandError = async (output, context) => {
|
|
@@ -819,10 +808,9 @@ const de_DeleteLoadBalancerPolicyCommandError = async (output, context) => {
|
|
|
819
808
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
820
809
|
default:
|
|
821
810
|
const parsedBody = parsedOutput.body;
|
|
822
|
-
|
|
811
|
+
return throwDefaultError({
|
|
823
812
|
output,
|
|
824
813
|
parsedBody: parsedBody.Error,
|
|
825
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
826
814
|
errorCode,
|
|
827
815
|
});
|
|
828
816
|
}
|
|
@@ -838,7 +826,7 @@ const de_DeregisterInstancesFromLoadBalancerCommand = async (output, context) =>
|
|
|
838
826
|
$metadata: deserializeMetadata(output),
|
|
839
827
|
...contents,
|
|
840
828
|
};
|
|
841
|
-
return
|
|
829
|
+
return response;
|
|
842
830
|
};
|
|
843
831
|
exports.de_DeregisterInstancesFromLoadBalancerCommand = de_DeregisterInstancesFromLoadBalancerCommand;
|
|
844
832
|
const de_DeregisterInstancesFromLoadBalancerCommandError = async (output, context) => {
|
|
@@ -856,10 +844,9 @@ const de_DeregisterInstancesFromLoadBalancerCommandError = async (output, contex
|
|
|
856
844
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
857
845
|
default:
|
|
858
846
|
const parsedBody = parsedOutput.body;
|
|
859
|
-
|
|
847
|
+
return throwDefaultError({
|
|
860
848
|
output,
|
|
861
849
|
parsedBody: parsedBody.Error,
|
|
862
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
863
850
|
errorCode,
|
|
864
851
|
});
|
|
865
852
|
}
|
|
@@ -875,7 +862,7 @@ const de_DescribeAccountLimitsCommand = async (output, context) => {
|
|
|
875
862
|
$metadata: deserializeMetadata(output),
|
|
876
863
|
...contents,
|
|
877
864
|
};
|
|
878
|
-
return
|
|
865
|
+
return response;
|
|
879
866
|
};
|
|
880
867
|
exports.de_DescribeAccountLimitsCommand = de_DescribeAccountLimitsCommand;
|
|
881
868
|
const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
@@ -885,10 +872,9 @@ const de_DescribeAccountLimitsCommandError = async (output, context) => {
|
|
|
885
872
|
};
|
|
886
873
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
887
874
|
const parsedBody = parsedOutput.body;
|
|
888
|
-
|
|
875
|
+
return throwDefaultError({
|
|
889
876
|
output,
|
|
890
877
|
parsedBody: parsedBody.Error,
|
|
891
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
892
878
|
errorCode,
|
|
893
879
|
});
|
|
894
880
|
};
|
|
@@ -903,7 +889,7 @@ const de_DescribeInstanceHealthCommand = async (output, context) => {
|
|
|
903
889
|
$metadata: deserializeMetadata(output),
|
|
904
890
|
...contents,
|
|
905
891
|
};
|
|
906
|
-
return
|
|
892
|
+
return response;
|
|
907
893
|
};
|
|
908
894
|
exports.de_DescribeInstanceHealthCommand = de_DescribeInstanceHealthCommand;
|
|
909
895
|
const de_DescribeInstanceHealthCommandError = async (output, context) => {
|
|
@@ -921,10 +907,9 @@ const de_DescribeInstanceHealthCommandError = async (output, context) => {
|
|
|
921
907
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
922
908
|
default:
|
|
923
909
|
const parsedBody = parsedOutput.body;
|
|
924
|
-
|
|
910
|
+
return throwDefaultError({
|
|
925
911
|
output,
|
|
926
912
|
parsedBody: parsedBody.Error,
|
|
927
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
928
913
|
errorCode,
|
|
929
914
|
});
|
|
930
915
|
}
|
|
@@ -940,7 +925,7 @@ const de_DescribeLoadBalancerAttributesCommand = async (output, context) => {
|
|
|
940
925
|
$metadata: deserializeMetadata(output),
|
|
941
926
|
...contents,
|
|
942
927
|
};
|
|
943
|
-
return
|
|
928
|
+
return response;
|
|
944
929
|
};
|
|
945
930
|
exports.de_DescribeLoadBalancerAttributesCommand = de_DescribeLoadBalancerAttributesCommand;
|
|
946
931
|
const de_DescribeLoadBalancerAttributesCommandError = async (output, context) => {
|
|
@@ -958,10 +943,9 @@ const de_DescribeLoadBalancerAttributesCommandError = async (output, context) =>
|
|
|
958
943
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
959
944
|
default:
|
|
960
945
|
const parsedBody = parsedOutput.body;
|
|
961
|
-
|
|
946
|
+
return throwDefaultError({
|
|
962
947
|
output,
|
|
963
948
|
parsedBody: parsedBody.Error,
|
|
964
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
965
949
|
errorCode,
|
|
966
950
|
});
|
|
967
951
|
}
|
|
@@ -977,7 +961,7 @@ const de_DescribeLoadBalancerPoliciesCommand = async (output, context) => {
|
|
|
977
961
|
$metadata: deserializeMetadata(output),
|
|
978
962
|
...contents,
|
|
979
963
|
};
|
|
980
|
-
return
|
|
964
|
+
return response;
|
|
981
965
|
};
|
|
982
966
|
exports.de_DescribeLoadBalancerPoliciesCommand = de_DescribeLoadBalancerPoliciesCommand;
|
|
983
967
|
const de_DescribeLoadBalancerPoliciesCommandError = async (output, context) => {
|
|
@@ -995,10 +979,9 @@ const de_DescribeLoadBalancerPoliciesCommandError = async (output, context) => {
|
|
|
995
979
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
996
980
|
default:
|
|
997
981
|
const parsedBody = parsedOutput.body;
|
|
998
|
-
|
|
982
|
+
return throwDefaultError({
|
|
999
983
|
output,
|
|
1000
984
|
parsedBody: parsedBody.Error,
|
|
1001
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1002
985
|
errorCode,
|
|
1003
986
|
});
|
|
1004
987
|
}
|
|
@@ -1014,7 +997,7 @@ const de_DescribeLoadBalancerPolicyTypesCommand = async (output, context) => {
|
|
|
1014
997
|
$metadata: deserializeMetadata(output),
|
|
1015
998
|
...contents,
|
|
1016
999
|
};
|
|
1017
|
-
return
|
|
1000
|
+
return response;
|
|
1018
1001
|
};
|
|
1019
1002
|
exports.de_DescribeLoadBalancerPolicyTypesCommand = de_DescribeLoadBalancerPolicyTypesCommand;
|
|
1020
1003
|
const de_DescribeLoadBalancerPolicyTypesCommandError = async (output, context) => {
|
|
@@ -1029,10 +1012,9 @@ const de_DescribeLoadBalancerPolicyTypesCommandError = async (output, context) =
|
|
|
1029
1012
|
throw await de_PolicyTypeNotFoundExceptionRes(parsedOutput, context);
|
|
1030
1013
|
default:
|
|
1031
1014
|
const parsedBody = parsedOutput.body;
|
|
1032
|
-
|
|
1015
|
+
return throwDefaultError({
|
|
1033
1016
|
output,
|
|
1034
1017
|
parsedBody: parsedBody.Error,
|
|
1035
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1036
1018
|
errorCode,
|
|
1037
1019
|
});
|
|
1038
1020
|
}
|
|
@@ -1048,7 +1030,7 @@ const de_DescribeLoadBalancersCommand = async (output, context) => {
|
|
|
1048
1030
|
$metadata: deserializeMetadata(output),
|
|
1049
1031
|
...contents,
|
|
1050
1032
|
};
|
|
1051
|
-
return
|
|
1033
|
+
return response;
|
|
1052
1034
|
};
|
|
1053
1035
|
exports.de_DescribeLoadBalancersCommand = de_DescribeLoadBalancersCommand;
|
|
1054
1036
|
const de_DescribeLoadBalancersCommandError = async (output, context) => {
|
|
@@ -1066,10 +1048,9 @@ const de_DescribeLoadBalancersCommandError = async (output, context) => {
|
|
|
1066
1048
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1067
1049
|
default:
|
|
1068
1050
|
const parsedBody = parsedOutput.body;
|
|
1069
|
-
|
|
1051
|
+
return throwDefaultError({
|
|
1070
1052
|
output,
|
|
1071
1053
|
parsedBody: parsedBody.Error,
|
|
1072
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1073
1054
|
errorCode,
|
|
1074
1055
|
});
|
|
1075
1056
|
}
|
|
@@ -1085,7 +1066,7 @@ const de_DescribeTagsCommand = async (output, context) => {
|
|
|
1085
1066
|
$metadata: deserializeMetadata(output),
|
|
1086
1067
|
...contents,
|
|
1087
1068
|
};
|
|
1088
|
-
return
|
|
1069
|
+
return response;
|
|
1089
1070
|
};
|
|
1090
1071
|
exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
|
|
1091
1072
|
const de_DescribeTagsCommandError = async (output, context) => {
|
|
@@ -1100,10 +1081,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
|
|
|
1100
1081
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1101
1082
|
default:
|
|
1102
1083
|
const parsedBody = parsedOutput.body;
|
|
1103
|
-
|
|
1084
|
+
return throwDefaultError({
|
|
1104
1085
|
output,
|
|
1105
1086
|
parsedBody: parsedBody.Error,
|
|
1106
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1107
1087
|
errorCode,
|
|
1108
1088
|
});
|
|
1109
1089
|
}
|
|
@@ -1119,7 +1099,7 @@ const de_DetachLoadBalancerFromSubnetsCommand = async (output, context) => {
|
|
|
1119
1099
|
$metadata: deserializeMetadata(output),
|
|
1120
1100
|
...contents,
|
|
1121
1101
|
};
|
|
1122
|
-
return
|
|
1102
|
+
return response;
|
|
1123
1103
|
};
|
|
1124
1104
|
exports.de_DetachLoadBalancerFromSubnetsCommand = de_DetachLoadBalancerFromSubnetsCommand;
|
|
1125
1105
|
const de_DetachLoadBalancerFromSubnetsCommandError = async (output, context) => {
|
|
@@ -1137,10 +1117,9 @@ const de_DetachLoadBalancerFromSubnetsCommandError = async (output, context) =>
|
|
|
1137
1117
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1138
1118
|
default:
|
|
1139
1119
|
const parsedBody = parsedOutput.body;
|
|
1140
|
-
|
|
1120
|
+
return throwDefaultError({
|
|
1141
1121
|
output,
|
|
1142
1122
|
parsedBody: parsedBody.Error,
|
|
1143
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1144
1123
|
errorCode,
|
|
1145
1124
|
});
|
|
1146
1125
|
}
|
|
@@ -1156,7 +1135,7 @@ const de_DisableAvailabilityZonesForLoadBalancerCommand = async (output, context
|
|
|
1156
1135
|
$metadata: deserializeMetadata(output),
|
|
1157
1136
|
...contents,
|
|
1158
1137
|
};
|
|
1159
|
-
return
|
|
1138
|
+
return response;
|
|
1160
1139
|
};
|
|
1161
1140
|
exports.de_DisableAvailabilityZonesForLoadBalancerCommand = de_DisableAvailabilityZonesForLoadBalancerCommand;
|
|
1162
1141
|
const de_DisableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
|
|
@@ -1174,10 +1153,9 @@ const de_DisableAvailabilityZonesForLoadBalancerCommandError = async (output, co
|
|
|
1174
1153
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1175
1154
|
default:
|
|
1176
1155
|
const parsedBody = parsedOutput.body;
|
|
1177
|
-
|
|
1156
|
+
return throwDefaultError({
|
|
1178
1157
|
output,
|
|
1179
1158
|
parsedBody: parsedBody.Error,
|
|
1180
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1181
1159
|
errorCode,
|
|
1182
1160
|
});
|
|
1183
1161
|
}
|
|
@@ -1193,7 +1171,7 @@ const de_EnableAvailabilityZonesForLoadBalancerCommand = async (output, context)
|
|
|
1193
1171
|
$metadata: deserializeMetadata(output),
|
|
1194
1172
|
...contents,
|
|
1195
1173
|
};
|
|
1196
|
-
return
|
|
1174
|
+
return response;
|
|
1197
1175
|
};
|
|
1198
1176
|
exports.de_EnableAvailabilityZonesForLoadBalancerCommand = de_EnableAvailabilityZonesForLoadBalancerCommand;
|
|
1199
1177
|
const de_EnableAvailabilityZonesForLoadBalancerCommandError = async (output, context) => {
|
|
@@ -1208,10 +1186,9 @@ const de_EnableAvailabilityZonesForLoadBalancerCommandError = async (output, con
|
|
|
1208
1186
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1209
1187
|
default:
|
|
1210
1188
|
const parsedBody = parsedOutput.body;
|
|
1211
|
-
|
|
1189
|
+
return throwDefaultError({
|
|
1212
1190
|
output,
|
|
1213
1191
|
parsedBody: parsedBody.Error,
|
|
1214
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1215
1192
|
errorCode,
|
|
1216
1193
|
});
|
|
1217
1194
|
}
|
|
@@ -1227,7 +1204,7 @@ const de_ModifyLoadBalancerAttributesCommand = async (output, context) => {
|
|
|
1227
1204
|
$metadata: deserializeMetadata(output),
|
|
1228
1205
|
...contents,
|
|
1229
1206
|
};
|
|
1230
|
-
return
|
|
1207
|
+
return response;
|
|
1231
1208
|
};
|
|
1232
1209
|
exports.de_ModifyLoadBalancerAttributesCommand = de_ModifyLoadBalancerAttributesCommand;
|
|
1233
1210
|
const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
|
|
@@ -1248,10 +1225,9 @@ const de_ModifyLoadBalancerAttributesCommandError = async (output, context) => {
|
|
|
1248
1225
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1249
1226
|
default:
|
|
1250
1227
|
const parsedBody = parsedOutput.body;
|
|
1251
|
-
|
|
1228
|
+
return throwDefaultError({
|
|
1252
1229
|
output,
|
|
1253
1230
|
parsedBody: parsedBody.Error,
|
|
1254
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1255
1231
|
errorCode,
|
|
1256
1232
|
});
|
|
1257
1233
|
}
|
|
@@ -1267,7 +1243,7 @@ const de_RegisterInstancesWithLoadBalancerCommand = async (output, context) => {
|
|
|
1267
1243
|
$metadata: deserializeMetadata(output),
|
|
1268
1244
|
...contents,
|
|
1269
1245
|
};
|
|
1270
|
-
return
|
|
1246
|
+
return response;
|
|
1271
1247
|
};
|
|
1272
1248
|
exports.de_RegisterInstancesWithLoadBalancerCommand = de_RegisterInstancesWithLoadBalancerCommand;
|
|
1273
1249
|
const de_RegisterInstancesWithLoadBalancerCommandError = async (output, context) => {
|
|
@@ -1285,10 +1261,9 @@ const de_RegisterInstancesWithLoadBalancerCommandError = async (output, context)
|
|
|
1285
1261
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1286
1262
|
default:
|
|
1287
1263
|
const parsedBody = parsedOutput.body;
|
|
1288
|
-
|
|
1264
|
+
return throwDefaultError({
|
|
1289
1265
|
output,
|
|
1290
1266
|
parsedBody: parsedBody.Error,
|
|
1291
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1292
1267
|
errorCode,
|
|
1293
1268
|
});
|
|
1294
1269
|
}
|
|
@@ -1304,7 +1279,7 @@ const de_RemoveTagsCommand = async (output, context) => {
|
|
|
1304
1279
|
$metadata: deserializeMetadata(output),
|
|
1305
1280
|
...contents,
|
|
1306
1281
|
};
|
|
1307
|
-
return
|
|
1282
|
+
return response;
|
|
1308
1283
|
};
|
|
1309
1284
|
exports.de_RemoveTagsCommand = de_RemoveTagsCommand;
|
|
1310
1285
|
const de_RemoveTagsCommandError = async (output, context) => {
|
|
@@ -1319,10 +1294,9 @@ const de_RemoveTagsCommandError = async (output, context) => {
|
|
|
1319
1294
|
throw await de_AccessPointNotFoundExceptionRes(parsedOutput, context);
|
|
1320
1295
|
default:
|
|
1321
1296
|
const parsedBody = parsedOutput.body;
|
|
1322
|
-
|
|
1297
|
+
return throwDefaultError({
|
|
1323
1298
|
output,
|
|
1324
1299
|
parsedBody: parsedBody.Error,
|
|
1325
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1326
1300
|
errorCode,
|
|
1327
1301
|
});
|
|
1328
1302
|
}
|
|
@@ -1338,7 +1312,7 @@ const de_SetLoadBalancerListenerSSLCertificateCommand = async (output, context)
|
|
|
1338
1312
|
$metadata: deserializeMetadata(output),
|
|
1339
1313
|
...contents,
|
|
1340
1314
|
};
|
|
1341
|
-
return
|
|
1315
|
+
return response;
|
|
1342
1316
|
};
|
|
1343
1317
|
exports.de_SetLoadBalancerListenerSSLCertificateCommand = de_SetLoadBalancerListenerSSLCertificateCommand;
|
|
1344
1318
|
const de_SetLoadBalancerListenerSSLCertificateCommandError = async (output, context) => {
|
|
@@ -1365,10 +1339,9 @@ const de_SetLoadBalancerListenerSSLCertificateCommandError = async (output, cont
|
|
|
1365
1339
|
throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
|
|
1366
1340
|
default:
|
|
1367
1341
|
const parsedBody = parsedOutput.body;
|
|
1368
|
-
|
|
1342
|
+
return throwDefaultError({
|
|
1369
1343
|
output,
|
|
1370
1344
|
parsedBody: parsedBody.Error,
|
|
1371
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1372
1345
|
errorCode,
|
|
1373
1346
|
});
|
|
1374
1347
|
}
|
|
@@ -1384,7 +1357,7 @@ const de_SetLoadBalancerPoliciesForBackendServerCommand = async (output, context
|
|
|
1384
1357
|
$metadata: deserializeMetadata(output),
|
|
1385
1358
|
...contents,
|
|
1386
1359
|
};
|
|
1387
|
-
return
|
|
1360
|
+
return response;
|
|
1388
1361
|
};
|
|
1389
1362
|
exports.de_SetLoadBalancerPoliciesForBackendServerCommand = de_SetLoadBalancerPoliciesForBackendServerCommand;
|
|
1390
1363
|
const de_SetLoadBalancerPoliciesForBackendServerCommandError = async (output, context) => {
|
|
@@ -1405,10 +1378,9 @@ const de_SetLoadBalancerPoliciesForBackendServerCommandError = async (output, co
|
|
|
1405
1378
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1406
1379
|
default:
|
|
1407
1380
|
const parsedBody = parsedOutput.body;
|
|
1408
|
-
|
|
1381
|
+
return throwDefaultError({
|
|
1409
1382
|
output,
|
|
1410
1383
|
parsedBody: parsedBody.Error,
|
|
1411
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1412
1384
|
errorCode,
|
|
1413
1385
|
});
|
|
1414
1386
|
}
|
|
@@ -1424,7 +1396,7 @@ const de_SetLoadBalancerPoliciesOfListenerCommand = async (output, context) => {
|
|
|
1424
1396
|
$metadata: deserializeMetadata(output),
|
|
1425
1397
|
...contents,
|
|
1426
1398
|
};
|
|
1427
|
-
return
|
|
1399
|
+
return response;
|
|
1428
1400
|
};
|
|
1429
1401
|
exports.de_SetLoadBalancerPoliciesOfListenerCommand = de_SetLoadBalancerPoliciesOfListenerCommand;
|
|
1430
1402
|
const de_SetLoadBalancerPoliciesOfListenerCommandError = async (output, context) => {
|
|
@@ -1448,10 +1420,9 @@ const de_SetLoadBalancerPoliciesOfListenerCommandError = async (output, context)
|
|
|
1448
1420
|
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1449
1421
|
default:
|
|
1450
1422
|
const parsedBody = parsedOutput.body;
|
|
1451
|
-
|
|
1423
|
+
return throwDefaultError({
|
|
1452
1424
|
output,
|
|
1453
1425
|
parsedBody: parsedBody.Error,
|
|
1454
|
-
exceptionCtor: ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException,
|
|
1455
1426
|
errorCode,
|
|
1456
1427
|
});
|
|
1457
1428
|
}
|
|
@@ -3408,6 +3379,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3408
3379
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3409
3380
|
};
|
|
3410
3381
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3382
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ElasticLoadBalancingServiceException_1.ElasticLoadBalancingServiceException);
|
|
3411
3383
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3412
3384
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3413
3385
|
const contents = {
|