@aws-sdk/client-global-accelerator 3.137.0 → 3.142.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/CHANGELOG.md +33 -0
- package/README.md +23 -120
- package/dist-cjs/models/models_0.js +13 -3
- package/dist-cjs/protocols/Aws_json1_1.js +264 -412
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/protocols/Aws_json1_1.js +433 -437
- package/dist-types/GlobalAccelerator.d.ts +66 -158
- package/dist-types/GlobalAcceleratorClient.d.ts +25 -120
- package/dist-types/commands/AdvertiseByoipCidrCommand.d.ts +4 -4
- package/dist-types/commands/CreateAcceleratorCommand.d.ts +3 -2
- package/dist-types/commands/CreateCustomRoutingAcceleratorCommand.d.ts +4 -3
- package/dist-types/commands/CreateCustomRoutingEndpointGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateEndpointGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAcceleratorCommand.d.ts +4 -4
- package/dist-types/commands/DeleteCustomRoutingAcceleratorCommand.d.ts +3 -3
- package/dist-types/commands/DeprovisionByoipCidrCommand.d.ts +3 -3
- package/dist-types/commands/ListAcceleratorsCommand.d.ts +1 -1
- package/dist-types/commands/ListCustomRoutingAcceleratorsCommand.d.ts +1 -1
- package/dist-types/commands/ListCustomRoutingPortMappingsCommand.d.ts +4 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ProvisionByoipCidrCommand.d.ts +3 -3
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAcceleratorCommand.d.ts +3 -2
- package/dist-types/commands/WithdrawByoipCidrCommand.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +188 -129
- package/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/package.json +6 -6
|
@@ -496,7 +496,6 @@ const deserializeAws_json1_1AddCustomRoutingEndpointsCommandError = async (outpu
|
|
|
496
496
|
...output,
|
|
497
497
|
body: await parseBody(output.body, context),
|
|
498
498
|
};
|
|
499
|
-
let response;
|
|
500
499
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
500
|
switch (errorCode) {
|
|
502
501
|
case "AccessDeniedException":
|
|
@@ -522,14 +521,12 @@ const deserializeAws_json1_1AddCustomRoutingEndpointsCommandError = async (outpu
|
|
|
522
521
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
523
522
|
default:
|
|
524
523
|
const parsedBody = parsedOutput.body;
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
$metadata,
|
|
524
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
525
|
+
output,
|
|
526
|
+
parsedBody,
|
|
527
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
528
|
+
errorCode,
|
|
531
529
|
});
|
|
532
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
533
530
|
}
|
|
534
531
|
};
|
|
535
532
|
const deserializeAws_json1_1AdvertiseByoipCidrCommand = async (output, context) => {
|
|
@@ -551,7 +548,6 @@ const deserializeAws_json1_1AdvertiseByoipCidrCommandError = async (output, cont
|
|
|
551
548
|
...output,
|
|
552
549
|
body: await parseBody(output.body, context),
|
|
553
550
|
};
|
|
554
|
-
let response;
|
|
555
551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
552
|
switch (errorCode) {
|
|
557
553
|
case "AccessDeniedException":
|
|
@@ -571,14 +567,12 @@ const deserializeAws_json1_1AdvertiseByoipCidrCommandError = async (output, cont
|
|
|
571
567
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
572
568
|
default:
|
|
573
569
|
const parsedBody = parsedOutput.body;
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
$metadata,
|
|
570
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
571
|
+
output,
|
|
572
|
+
parsedBody,
|
|
573
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
574
|
+
errorCode,
|
|
580
575
|
});
|
|
581
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
582
576
|
}
|
|
583
577
|
};
|
|
584
578
|
const deserializeAws_json1_1AllowCustomRoutingTrafficCommand = async (output, context) => {
|
|
@@ -597,9 +591,11 @@ const deserializeAws_json1_1AllowCustomRoutingTrafficCommandError = async (outpu
|
|
|
597
591
|
...output,
|
|
598
592
|
body: await parseBody(output.body, context),
|
|
599
593
|
};
|
|
600
|
-
let response;
|
|
601
594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
595
|
switch (errorCode) {
|
|
596
|
+
case "EndpointGroupNotFoundException":
|
|
597
|
+
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
598
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
603
599
|
case "InternalServiceErrorException":
|
|
604
600
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
605
601
|
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
@@ -608,14 +604,12 @@ const deserializeAws_json1_1AllowCustomRoutingTrafficCommandError = async (outpu
|
|
|
608
604
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
609
605
|
default:
|
|
610
606
|
const parsedBody = parsedOutput.body;
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
$metadata,
|
|
607
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
608
|
+
output,
|
|
609
|
+
parsedBody,
|
|
610
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
611
|
+
errorCode,
|
|
617
612
|
});
|
|
618
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
619
613
|
}
|
|
620
614
|
};
|
|
621
615
|
const deserializeAws_json1_1CreateAcceleratorCommand = async (output, context) => {
|
|
@@ -637,7 +631,6 @@ const deserializeAws_json1_1CreateAcceleratorCommandError = async (output, conte
|
|
|
637
631
|
...output,
|
|
638
632
|
body: await parseBody(output.body, context),
|
|
639
633
|
};
|
|
640
|
-
let response;
|
|
641
634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
635
|
switch (errorCode) {
|
|
643
636
|
case "InternalServiceErrorException":
|
|
@@ -651,14 +644,12 @@ const deserializeAws_json1_1CreateAcceleratorCommandError = async (output, conte
|
|
|
651
644
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
652
645
|
default:
|
|
653
646
|
const parsedBody = parsedOutput.body;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
$metadata,
|
|
647
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
648
|
+
output,
|
|
649
|
+
parsedBody,
|
|
650
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
651
|
+
errorCode,
|
|
660
652
|
});
|
|
661
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
662
653
|
}
|
|
663
654
|
};
|
|
664
655
|
const deserializeAws_json1_1CreateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
@@ -680,7 +671,6 @@ const deserializeAws_json1_1CreateCustomRoutingAcceleratorCommandError = async (
|
|
|
680
671
|
...output,
|
|
681
672
|
body: await parseBody(output.body, context),
|
|
682
673
|
};
|
|
683
|
-
let response;
|
|
684
674
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
675
|
switch (errorCode) {
|
|
686
676
|
case "AccessDeniedException":
|
|
@@ -697,14 +687,12 @@ const deserializeAws_json1_1CreateCustomRoutingAcceleratorCommandError = async (
|
|
|
697
687
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
698
688
|
default:
|
|
699
689
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
$metadata,
|
|
690
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
691
|
+
output,
|
|
692
|
+
parsedBody,
|
|
693
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
694
|
+
errorCode,
|
|
706
695
|
});
|
|
707
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
708
696
|
}
|
|
709
697
|
};
|
|
710
698
|
const deserializeAws_json1_1CreateCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
@@ -726,7 +714,6 @@ const deserializeAws_json1_1CreateCustomRoutingEndpointGroupCommandError = async
|
|
|
726
714
|
...output,
|
|
727
715
|
body: await parseBody(output.body, context),
|
|
728
716
|
};
|
|
729
|
-
let response;
|
|
730
717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
718
|
switch (errorCode) {
|
|
732
719
|
case "AcceleratorNotFoundException":
|
|
@@ -755,14 +742,12 @@ const deserializeAws_json1_1CreateCustomRoutingEndpointGroupCommandError = async
|
|
|
755
742
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
756
743
|
default:
|
|
757
744
|
const parsedBody = parsedOutput.body;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
$metadata,
|
|
745
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
746
|
+
output,
|
|
747
|
+
parsedBody,
|
|
748
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
749
|
+
errorCode,
|
|
764
750
|
});
|
|
765
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
766
751
|
}
|
|
767
752
|
};
|
|
768
753
|
const deserializeAws_json1_1CreateCustomRoutingListenerCommand = async (output, context) => {
|
|
@@ -784,7 +769,6 @@ const deserializeAws_json1_1CreateCustomRoutingListenerCommandError = async (out
|
|
|
784
769
|
...output,
|
|
785
770
|
body: await parseBody(output.body, context),
|
|
786
771
|
};
|
|
787
|
-
let response;
|
|
788
772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
789
773
|
switch (errorCode) {
|
|
790
774
|
case "AcceleratorNotFoundException":
|
|
@@ -804,14 +788,12 @@ const deserializeAws_json1_1CreateCustomRoutingListenerCommandError = async (out
|
|
|
804
788
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
805
789
|
default:
|
|
806
790
|
const parsedBody = parsedOutput.body;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
$metadata,
|
|
791
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
792
|
+
output,
|
|
793
|
+
parsedBody,
|
|
794
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
795
|
+
errorCode,
|
|
813
796
|
});
|
|
814
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
815
797
|
}
|
|
816
798
|
};
|
|
817
799
|
const deserializeAws_json1_1CreateEndpointGroupCommand = async (output, context) => {
|
|
@@ -833,7 +815,6 @@ const deserializeAws_json1_1CreateEndpointGroupCommandError = async (output, con
|
|
|
833
815
|
...output,
|
|
834
816
|
body: await parseBody(output.body, context),
|
|
835
817
|
};
|
|
836
|
-
let response;
|
|
837
818
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
819
|
switch (errorCode) {
|
|
839
820
|
case "AcceleratorNotFoundException":
|
|
@@ -859,14 +840,12 @@ const deserializeAws_json1_1CreateEndpointGroupCommandError = async (output, con
|
|
|
859
840
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
860
841
|
default:
|
|
861
842
|
const parsedBody = parsedOutput.body;
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
$metadata,
|
|
843
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
844
|
+
output,
|
|
845
|
+
parsedBody,
|
|
846
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
847
|
+
errorCode,
|
|
868
848
|
});
|
|
869
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
870
849
|
}
|
|
871
850
|
};
|
|
872
851
|
const deserializeAws_json1_1CreateListenerCommand = async (output, context) => {
|
|
@@ -888,7 +867,6 @@ const deserializeAws_json1_1CreateListenerCommandError = async (output, context)
|
|
|
888
867
|
...output,
|
|
889
868
|
body: await parseBody(output.body, context),
|
|
890
869
|
};
|
|
891
|
-
let response;
|
|
892
870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
893
871
|
switch (errorCode) {
|
|
894
872
|
case "AcceleratorNotFoundException":
|
|
@@ -908,14 +886,12 @@ const deserializeAws_json1_1CreateListenerCommandError = async (output, context)
|
|
|
908
886
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
909
887
|
default:
|
|
910
888
|
const parsedBody = parsedOutput.body;
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
$metadata,
|
|
889
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
890
|
+
output,
|
|
891
|
+
parsedBody,
|
|
892
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
893
|
+
errorCode,
|
|
917
894
|
});
|
|
918
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
919
895
|
}
|
|
920
896
|
};
|
|
921
897
|
const deserializeAws_json1_1DeleteAcceleratorCommand = async (output, context) => {
|
|
@@ -934,7 +910,6 @@ const deserializeAws_json1_1DeleteAcceleratorCommandError = async (output, conte
|
|
|
934
910
|
...output,
|
|
935
911
|
body: await parseBody(output.body, context),
|
|
936
912
|
};
|
|
937
|
-
let response;
|
|
938
913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
914
|
switch (errorCode) {
|
|
940
915
|
case "AcceleratorNotDisabledException":
|
|
@@ -954,14 +929,12 @@ const deserializeAws_json1_1DeleteAcceleratorCommandError = async (output, conte
|
|
|
954
929
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
955
930
|
default:
|
|
956
931
|
const parsedBody = parsedOutput.body;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
$metadata,
|
|
932
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
933
|
+
output,
|
|
934
|
+
parsedBody,
|
|
935
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
936
|
+
errorCode,
|
|
963
937
|
});
|
|
964
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
965
938
|
}
|
|
966
939
|
};
|
|
967
940
|
const deserializeAws_json1_1DeleteCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
@@ -980,7 +953,6 @@ const deserializeAws_json1_1DeleteCustomRoutingAcceleratorCommandError = async (
|
|
|
980
953
|
...output,
|
|
981
954
|
body: await parseBody(output.body, context),
|
|
982
955
|
};
|
|
983
|
-
let response;
|
|
984
956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
957
|
switch (errorCode) {
|
|
986
958
|
case "AcceleratorNotDisabledException":
|
|
@@ -1000,14 +972,12 @@ const deserializeAws_json1_1DeleteCustomRoutingAcceleratorCommandError = async (
|
|
|
1000
972
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1001
973
|
default:
|
|
1002
974
|
const parsedBody = parsedOutput.body;
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
$metadata,
|
|
975
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
976
|
+
output,
|
|
977
|
+
parsedBody,
|
|
978
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
979
|
+
errorCode,
|
|
1009
980
|
});
|
|
1010
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1011
981
|
}
|
|
1012
982
|
};
|
|
1013
983
|
const deserializeAws_json1_1DeleteCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
@@ -1026,7 +996,6 @@ const deserializeAws_json1_1DeleteCustomRoutingEndpointGroupCommandError = async
|
|
|
1026
996
|
...output,
|
|
1027
997
|
body: await parseBody(output.body, context),
|
|
1028
998
|
};
|
|
1029
|
-
let response;
|
|
1030
999
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
1000
|
switch (errorCode) {
|
|
1032
1001
|
case "EndpointGroupNotFoundException":
|
|
@@ -1040,14 +1009,12 @@ const deserializeAws_json1_1DeleteCustomRoutingEndpointGroupCommandError = async
|
|
|
1040
1009
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1041
1010
|
default:
|
|
1042
1011
|
const parsedBody = parsedOutput.body;
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
$metadata,
|
|
1012
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1013
|
+
output,
|
|
1014
|
+
parsedBody,
|
|
1015
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1016
|
+
errorCode,
|
|
1049
1017
|
});
|
|
1050
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1051
1018
|
}
|
|
1052
1019
|
};
|
|
1053
1020
|
const deserializeAws_json1_1DeleteCustomRoutingListenerCommand = async (output, context) => {
|
|
@@ -1066,7 +1033,6 @@ const deserializeAws_json1_1DeleteCustomRoutingListenerCommandError = async (out
|
|
|
1066
1033
|
...output,
|
|
1067
1034
|
body: await parseBody(output.body, context),
|
|
1068
1035
|
};
|
|
1069
|
-
let response;
|
|
1070
1036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1037
|
switch (errorCode) {
|
|
1072
1038
|
case "AssociatedEndpointGroupFoundException":
|
|
@@ -1083,14 +1049,12 @@ const deserializeAws_json1_1DeleteCustomRoutingListenerCommandError = async (out
|
|
|
1083
1049
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1084
1050
|
default:
|
|
1085
1051
|
const parsedBody = parsedOutput.body;
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
$metadata,
|
|
1052
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1053
|
+
output,
|
|
1054
|
+
parsedBody,
|
|
1055
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1056
|
+
errorCode,
|
|
1092
1057
|
});
|
|
1093
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1094
1058
|
}
|
|
1095
1059
|
};
|
|
1096
1060
|
const deserializeAws_json1_1DeleteEndpointGroupCommand = async (output, context) => {
|
|
@@ -1109,7 +1073,6 @@ const deserializeAws_json1_1DeleteEndpointGroupCommandError = async (output, con
|
|
|
1109
1073
|
...output,
|
|
1110
1074
|
body: await parseBody(output.body, context),
|
|
1111
1075
|
};
|
|
1112
|
-
let response;
|
|
1113
1076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1077
|
switch (errorCode) {
|
|
1115
1078
|
case "EndpointGroupNotFoundException":
|
|
@@ -1123,14 +1086,12 @@ const deserializeAws_json1_1DeleteEndpointGroupCommandError = async (output, con
|
|
|
1123
1086
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1124
1087
|
default:
|
|
1125
1088
|
const parsedBody = parsedOutput.body;
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
$metadata,
|
|
1089
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1090
|
+
output,
|
|
1091
|
+
parsedBody,
|
|
1092
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1093
|
+
errorCode,
|
|
1132
1094
|
});
|
|
1133
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1134
1095
|
}
|
|
1135
1096
|
};
|
|
1136
1097
|
const deserializeAws_json1_1DeleteListenerCommand = async (output, context) => {
|
|
@@ -1149,7 +1110,6 @@ const deserializeAws_json1_1DeleteListenerCommandError = async (output, context)
|
|
|
1149
1110
|
...output,
|
|
1150
1111
|
body: await parseBody(output.body, context),
|
|
1151
1112
|
};
|
|
1152
|
-
let response;
|
|
1153
1113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1114
|
switch (errorCode) {
|
|
1155
1115
|
case "AssociatedEndpointGroupFoundException":
|
|
@@ -1166,14 +1126,12 @@ const deserializeAws_json1_1DeleteListenerCommandError = async (output, context)
|
|
|
1166
1126
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1167
1127
|
default:
|
|
1168
1128
|
const parsedBody = parsedOutput.body;
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
$metadata,
|
|
1129
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1130
|
+
output,
|
|
1131
|
+
parsedBody,
|
|
1132
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1133
|
+
errorCode,
|
|
1175
1134
|
});
|
|
1176
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1177
1135
|
}
|
|
1178
1136
|
};
|
|
1179
1137
|
const deserializeAws_json1_1DenyCustomRoutingTrafficCommand = async (output, context) => {
|
|
@@ -1192,9 +1150,11 @@ const deserializeAws_json1_1DenyCustomRoutingTrafficCommandError = async (output
|
|
|
1192
1150
|
...output,
|
|
1193
1151
|
body: await parseBody(output.body, context),
|
|
1194
1152
|
};
|
|
1195
|
-
let response;
|
|
1196
1153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
1154
|
switch (errorCode) {
|
|
1155
|
+
case "EndpointGroupNotFoundException":
|
|
1156
|
+
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
1157
|
+
throw await deserializeAws_json1_1EndpointGroupNotFoundExceptionResponse(parsedOutput, context);
|
|
1198
1158
|
case "InternalServiceErrorException":
|
|
1199
1159
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
1200
1160
|
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
@@ -1203,14 +1163,12 @@ const deserializeAws_json1_1DenyCustomRoutingTrafficCommandError = async (output
|
|
|
1203
1163
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1204
1164
|
default:
|
|
1205
1165
|
const parsedBody = parsedOutput.body;
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
$metadata,
|
|
1166
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1167
|
+
output,
|
|
1168
|
+
parsedBody,
|
|
1169
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1170
|
+
errorCode,
|
|
1212
1171
|
});
|
|
1213
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1214
1172
|
}
|
|
1215
1173
|
};
|
|
1216
1174
|
const deserializeAws_json1_1DeprovisionByoipCidrCommand = async (output, context) => {
|
|
@@ -1232,7 +1190,6 @@ const deserializeAws_json1_1DeprovisionByoipCidrCommandError = async (output, co
|
|
|
1232
1190
|
...output,
|
|
1233
1191
|
body: await parseBody(output.body, context),
|
|
1234
1192
|
};
|
|
1235
|
-
let response;
|
|
1236
1193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
1194
|
switch (errorCode) {
|
|
1238
1195
|
case "AccessDeniedException":
|
|
@@ -1252,14 +1209,12 @@ const deserializeAws_json1_1DeprovisionByoipCidrCommandError = async (output, co
|
|
|
1252
1209
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1253
1210
|
default:
|
|
1254
1211
|
const parsedBody = parsedOutput.body;
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
$metadata,
|
|
1212
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1213
|
+
output,
|
|
1214
|
+
parsedBody,
|
|
1215
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1216
|
+
errorCode,
|
|
1261
1217
|
});
|
|
1262
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1263
1218
|
}
|
|
1264
1219
|
};
|
|
1265
1220
|
const deserializeAws_json1_1DescribeAcceleratorCommand = async (output, context) => {
|
|
@@ -1281,7 +1236,6 @@ const deserializeAws_json1_1DescribeAcceleratorCommandError = async (output, con
|
|
|
1281
1236
|
...output,
|
|
1282
1237
|
body: await parseBody(output.body, context),
|
|
1283
1238
|
};
|
|
1284
|
-
let response;
|
|
1285
1239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1240
|
switch (errorCode) {
|
|
1287
1241
|
case "AcceleratorNotFoundException":
|
|
@@ -1295,14 +1249,12 @@ const deserializeAws_json1_1DescribeAcceleratorCommandError = async (output, con
|
|
|
1295
1249
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1296
1250
|
default:
|
|
1297
1251
|
const parsedBody = parsedOutput.body;
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
$metadata,
|
|
1252
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1253
|
+
output,
|
|
1254
|
+
parsedBody,
|
|
1255
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1256
|
+
errorCode,
|
|
1304
1257
|
});
|
|
1305
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1306
1258
|
}
|
|
1307
1259
|
};
|
|
1308
1260
|
const deserializeAws_json1_1DescribeAcceleratorAttributesCommand = async (output, context) => {
|
|
@@ -1324,7 +1276,6 @@ const deserializeAws_json1_1DescribeAcceleratorAttributesCommandError = async (o
|
|
|
1324
1276
|
...output,
|
|
1325
1277
|
body: await parseBody(output.body, context),
|
|
1326
1278
|
};
|
|
1327
|
-
let response;
|
|
1328
1279
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
1280
|
switch (errorCode) {
|
|
1330
1281
|
case "AcceleratorNotFoundException":
|
|
@@ -1338,14 +1289,12 @@ const deserializeAws_json1_1DescribeAcceleratorAttributesCommandError = async (o
|
|
|
1338
1289
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1339
1290
|
default:
|
|
1340
1291
|
const parsedBody = parsedOutput.body;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
$metadata,
|
|
1292
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1293
|
+
output,
|
|
1294
|
+
parsedBody,
|
|
1295
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1296
|
+
errorCode,
|
|
1347
1297
|
});
|
|
1348
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1349
1298
|
}
|
|
1350
1299
|
};
|
|
1351
1300
|
const deserializeAws_json1_1DescribeCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
@@ -1367,7 +1316,6 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorCommandError = async
|
|
|
1367
1316
|
...output,
|
|
1368
1317
|
body: await parseBody(output.body, context),
|
|
1369
1318
|
};
|
|
1370
|
-
let response;
|
|
1371
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
1320
|
switch (errorCode) {
|
|
1373
1321
|
case "AcceleratorNotFoundException":
|
|
@@ -1381,14 +1329,12 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorCommandError = async
|
|
|
1381
1329
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1382
1330
|
default:
|
|
1383
1331
|
const parsedBody = parsedOutput.body;
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
$metadata,
|
|
1332
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1333
|
+
output,
|
|
1334
|
+
parsedBody,
|
|
1335
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1336
|
+
errorCode,
|
|
1390
1337
|
});
|
|
1391
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1392
1338
|
}
|
|
1393
1339
|
};
|
|
1394
1340
|
const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesCommand = async (output, context) => {
|
|
@@ -1410,7 +1356,6 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesCommandErr
|
|
|
1410
1356
|
...output,
|
|
1411
1357
|
body: await parseBody(output.body, context),
|
|
1412
1358
|
};
|
|
1413
|
-
let response;
|
|
1414
1359
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1415
1360
|
switch (errorCode) {
|
|
1416
1361
|
case "AcceleratorNotFoundException":
|
|
@@ -1424,14 +1369,12 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesCommandErr
|
|
|
1424
1369
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1425
1370
|
default:
|
|
1426
1371
|
const parsedBody = parsedOutput.body;
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
$metadata,
|
|
1372
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1373
|
+
output,
|
|
1374
|
+
parsedBody,
|
|
1375
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1376
|
+
errorCode,
|
|
1433
1377
|
});
|
|
1434
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1435
1378
|
}
|
|
1436
1379
|
};
|
|
1437
1380
|
const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupCommand = async (output, context) => {
|
|
@@ -1453,7 +1396,6 @@ const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupCommandError = asy
|
|
|
1453
1396
|
...output,
|
|
1454
1397
|
body: await parseBody(output.body, context),
|
|
1455
1398
|
};
|
|
1456
|
-
let response;
|
|
1457
1399
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
1400
|
switch (errorCode) {
|
|
1459
1401
|
case "EndpointGroupNotFoundException":
|
|
@@ -1467,14 +1409,12 @@ const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupCommandError = asy
|
|
|
1467
1409
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1468
1410
|
default:
|
|
1469
1411
|
const parsedBody = parsedOutput.body;
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
$metadata,
|
|
1412
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1413
|
+
output,
|
|
1414
|
+
parsedBody,
|
|
1415
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1416
|
+
errorCode,
|
|
1476
1417
|
});
|
|
1477
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1478
1418
|
}
|
|
1479
1419
|
};
|
|
1480
1420
|
const deserializeAws_json1_1DescribeCustomRoutingListenerCommand = async (output, context) => {
|
|
@@ -1496,7 +1436,6 @@ const deserializeAws_json1_1DescribeCustomRoutingListenerCommandError = async (o
|
|
|
1496
1436
|
...output,
|
|
1497
1437
|
body: await parseBody(output.body, context),
|
|
1498
1438
|
};
|
|
1499
|
-
let response;
|
|
1500
1439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
1440
|
switch (errorCode) {
|
|
1502
1441
|
case "InternalServiceErrorException":
|
|
@@ -1510,14 +1449,12 @@ const deserializeAws_json1_1DescribeCustomRoutingListenerCommandError = async (o
|
|
|
1510
1449
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1511
1450
|
default:
|
|
1512
1451
|
const parsedBody = parsedOutput.body;
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
$metadata,
|
|
1452
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1453
|
+
output,
|
|
1454
|
+
parsedBody,
|
|
1455
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1456
|
+
errorCode,
|
|
1519
1457
|
});
|
|
1520
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1521
1458
|
}
|
|
1522
1459
|
};
|
|
1523
1460
|
const deserializeAws_json1_1DescribeEndpointGroupCommand = async (output, context) => {
|
|
@@ -1539,7 +1476,6 @@ const deserializeAws_json1_1DescribeEndpointGroupCommandError = async (output, c
|
|
|
1539
1476
|
...output,
|
|
1540
1477
|
body: await parseBody(output.body, context),
|
|
1541
1478
|
};
|
|
1542
|
-
let response;
|
|
1543
1479
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
1480
|
switch (errorCode) {
|
|
1545
1481
|
case "EndpointGroupNotFoundException":
|
|
@@ -1553,14 +1489,12 @@ const deserializeAws_json1_1DescribeEndpointGroupCommandError = async (output, c
|
|
|
1553
1489
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1554
1490
|
default:
|
|
1555
1491
|
const parsedBody = parsedOutput.body;
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
$metadata,
|
|
1492
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1493
|
+
output,
|
|
1494
|
+
parsedBody,
|
|
1495
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1496
|
+
errorCode,
|
|
1562
1497
|
});
|
|
1563
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1564
1498
|
}
|
|
1565
1499
|
};
|
|
1566
1500
|
const deserializeAws_json1_1DescribeListenerCommand = async (output, context) => {
|
|
@@ -1582,7 +1516,6 @@ const deserializeAws_json1_1DescribeListenerCommandError = async (output, contex
|
|
|
1582
1516
|
...output,
|
|
1583
1517
|
body: await parseBody(output.body, context),
|
|
1584
1518
|
};
|
|
1585
|
-
let response;
|
|
1586
1519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
1520
|
switch (errorCode) {
|
|
1588
1521
|
case "InternalServiceErrorException":
|
|
@@ -1596,14 +1529,12 @@ const deserializeAws_json1_1DescribeListenerCommandError = async (output, contex
|
|
|
1596
1529
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1597
1530
|
default:
|
|
1598
1531
|
const parsedBody = parsedOutput.body;
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
$metadata,
|
|
1532
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1533
|
+
output,
|
|
1534
|
+
parsedBody,
|
|
1535
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1536
|
+
errorCode,
|
|
1605
1537
|
});
|
|
1606
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1607
1538
|
}
|
|
1608
1539
|
};
|
|
1609
1540
|
const deserializeAws_json1_1ListAcceleratorsCommand = async (output, context) => {
|
|
@@ -1625,7 +1556,6 @@ const deserializeAws_json1_1ListAcceleratorsCommandError = async (output, contex
|
|
|
1625
1556
|
...output,
|
|
1626
1557
|
body: await parseBody(output.body, context),
|
|
1627
1558
|
};
|
|
1628
|
-
let response;
|
|
1629
1559
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
1560
|
switch (errorCode) {
|
|
1631
1561
|
case "InternalServiceErrorException":
|
|
@@ -1639,14 +1569,12 @@ const deserializeAws_json1_1ListAcceleratorsCommandError = async (output, contex
|
|
|
1639
1569
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1640
1570
|
default:
|
|
1641
1571
|
const parsedBody = parsedOutput.body;
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
$metadata,
|
|
1572
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1573
|
+
output,
|
|
1574
|
+
parsedBody,
|
|
1575
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1576
|
+
errorCode,
|
|
1648
1577
|
});
|
|
1649
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1650
1578
|
}
|
|
1651
1579
|
};
|
|
1652
1580
|
const deserializeAws_json1_1ListByoipCidrsCommand = async (output, context) => {
|
|
@@ -1668,7 +1596,6 @@ const deserializeAws_json1_1ListByoipCidrsCommandError = async (output, context)
|
|
|
1668
1596
|
...output,
|
|
1669
1597
|
body: await parseBody(output.body, context),
|
|
1670
1598
|
};
|
|
1671
|
-
let response;
|
|
1672
1599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
1600
|
switch (errorCode) {
|
|
1674
1601
|
case "AccessDeniedException":
|
|
@@ -1685,14 +1612,12 @@ const deserializeAws_json1_1ListByoipCidrsCommandError = async (output, context)
|
|
|
1685
1612
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1686
1613
|
default:
|
|
1687
1614
|
const parsedBody = parsedOutput.body;
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
$metadata,
|
|
1615
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1616
|
+
output,
|
|
1617
|
+
parsedBody,
|
|
1618
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1619
|
+
errorCode,
|
|
1694
1620
|
});
|
|
1695
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1696
1621
|
}
|
|
1697
1622
|
};
|
|
1698
1623
|
const deserializeAws_json1_1ListCustomRoutingAcceleratorsCommand = async (output, context) => {
|
|
@@ -1714,7 +1639,6 @@ const deserializeAws_json1_1ListCustomRoutingAcceleratorsCommandError = async (o
|
|
|
1714
1639
|
...output,
|
|
1715
1640
|
body: await parseBody(output.body, context),
|
|
1716
1641
|
};
|
|
1717
|
-
let response;
|
|
1718
1642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
1643
|
switch (errorCode) {
|
|
1720
1644
|
case "InternalServiceErrorException":
|
|
@@ -1728,14 +1652,12 @@ const deserializeAws_json1_1ListCustomRoutingAcceleratorsCommandError = async (o
|
|
|
1728
1652
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1729
1653
|
default:
|
|
1730
1654
|
const parsedBody = parsedOutput.body;
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
$metadata,
|
|
1655
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1656
|
+
output,
|
|
1657
|
+
parsedBody,
|
|
1658
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1659
|
+
errorCode,
|
|
1737
1660
|
});
|
|
1738
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1739
1661
|
}
|
|
1740
1662
|
};
|
|
1741
1663
|
const deserializeAws_json1_1ListCustomRoutingEndpointGroupsCommand = async (output, context) => {
|
|
@@ -1757,7 +1679,6 @@ const deserializeAws_json1_1ListCustomRoutingEndpointGroupsCommandError = async
|
|
|
1757
1679
|
...output,
|
|
1758
1680
|
body: await parseBody(output.body, context),
|
|
1759
1681
|
};
|
|
1760
|
-
let response;
|
|
1761
1682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1683
|
switch (errorCode) {
|
|
1763
1684
|
case "InternalServiceErrorException":
|
|
@@ -1774,14 +1695,12 @@ const deserializeAws_json1_1ListCustomRoutingEndpointGroupsCommandError = async
|
|
|
1774
1695
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1775
1696
|
default:
|
|
1776
1697
|
const parsedBody = parsedOutput.body;
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
$metadata,
|
|
1698
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1699
|
+
output,
|
|
1700
|
+
parsedBody,
|
|
1701
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1702
|
+
errorCode,
|
|
1783
1703
|
});
|
|
1784
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1785
1704
|
}
|
|
1786
1705
|
};
|
|
1787
1706
|
const deserializeAws_json1_1ListCustomRoutingListenersCommand = async (output, context) => {
|
|
@@ -1803,7 +1722,6 @@ const deserializeAws_json1_1ListCustomRoutingListenersCommandError = async (outp
|
|
|
1803
1722
|
...output,
|
|
1804
1723
|
body: await parseBody(output.body, context),
|
|
1805
1724
|
};
|
|
1806
|
-
let response;
|
|
1807
1725
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
1726
|
switch (errorCode) {
|
|
1809
1727
|
case "AcceleratorNotFoundException":
|
|
@@ -1820,14 +1738,12 @@ const deserializeAws_json1_1ListCustomRoutingListenersCommandError = async (outp
|
|
|
1820
1738
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1821
1739
|
default:
|
|
1822
1740
|
const parsedBody = parsedOutput.body;
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
$metadata,
|
|
1741
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1742
|
+
output,
|
|
1743
|
+
parsedBody,
|
|
1744
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1745
|
+
errorCode,
|
|
1829
1746
|
});
|
|
1830
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1831
1747
|
}
|
|
1832
1748
|
};
|
|
1833
1749
|
const deserializeAws_json1_1ListCustomRoutingPortMappingsCommand = async (output, context) => {
|
|
@@ -1849,7 +1765,6 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsCommandError = async (o
|
|
|
1849
1765
|
...output,
|
|
1850
1766
|
body: await parseBody(output.body, context),
|
|
1851
1767
|
};
|
|
1852
|
-
let response;
|
|
1853
1768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1854
1769
|
switch (errorCode) {
|
|
1855
1770
|
case "AcceleratorNotFoundException":
|
|
@@ -1869,14 +1784,12 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsCommandError = async (o
|
|
|
1869
1784
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1870
1785
|
default:
|
|
1871
1786
|
const parsedBody = parsedOutput.body;
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
$metadata,
|
|
1787
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1788
|
+
output,
|
|
1789
|
+
parsedBody,
|
|
1790
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1791
|
+
errorCode,
|
|
1878
1792
|
});
|
|
1879
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1880
1793
|
}
|
|
1881
1794
|
};
|
|
1882
1795
|
const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationCommand = async (output, context) => {
|
|
@@ -1898,7 +1811,6 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationCommandErr
|
|
|
1898
1811
|
...output,
|
|
1899
1812
|
body: await parseBody(output.body, context),
|
|
1900
1813
|
};
|
|
1901
|
-
let response;
|
|
1902
1814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1903
1815
|
switch (errorCode) {
|
|
1904
1816
|
case "EndpointNotFoundException":
|
|
@@ -1915,14 +1827,12 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationCommandErr
|
|
|
1915
1827
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1916
1828
|
default:
|
|
1917
1829
|
const parsedBody = parsedOutput.body;
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
$metadata,
|
|
1830
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1831
|
+
output,
|
|
1832
|
+
parsedBody,
|
|
1833
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1834
|
+
errorCode,
|
|
1924
1835
|
});
|
|
1925
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1926
1836
|
}
|
|
1927
1837
|
};
|
|
1928
1838
|
const deserializeAws_json1_1ListEndpointGroupsCommand = async (output, context) => {
|
|
@@ -1944,7 +1854,6 @@ const deserializeAws_json1_1ListEndpointGroupsCommandError = async (output, cont
|
|
|
1944
1854
|
...output,
|
|
1945
1855
|
body: await parseBody(output.body, context),
|
|
1946
1856
|
};
|
|
1947
|
-
let response;
|
|
1948
1857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
1858
|
switch (errorCode) {
|
|
1950
1859
|
case "InternalServiceErrorException":
|
|
@@ -1961,14 +1870,12 @@ const deserializeAws_json1_1ListEndpointGroupsCommandError = async (output, cont
|
|
|
1961
1870
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1962
1871
|
default:
|
|
1963
1872
|
const parsedBody = parsedOutput.body;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
$metadata,
|
|
1873
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1874
|
+
output,
|
|
1875
|
+
parsedBody,
|
|
1876
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1877
|
+
errorCode,
|
|
1970
1878
|
});
|
|
1971
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1972
1879
|
}
|
|
1973
1880
|
};
|
|
1974
1881
|
const deserializeAws_json1_1ListListenersCommand = async (output, context) => {
|
|
@@ -1990,7 +1897,6 @@ const deserializeAws_json1_1ListListenersCommandError = async (output, context)
|
|
|
1990
1897
|
...output,
|
|
1991
1898
|
body: await parseBody(output.body, context),
|
|
1992
1899
|
};
|
|
1993
|
-
let response;
|
|
1994
1900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1995
1901
|
switch (errorCode) {
|
|
1996
1902
|
case "AcceleratorNotFoundException":
|
|
@@ -2007,14 +1913,12 @@ const deserializeAws_json1_1ListListenersCommandError = async (output, context)
|
|
|
2007
1913
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
2008
1914
|
default:
|
|
2009
1915
|
const parsedBody = parsedOutput.body;
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
$metadata,
|
|
1916
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1917
|
+
output,
|
|
1918
|
+
parsedBody,
|
|
1919
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1920
|
+
errorCode,
|
|
2016
1921
|
});
|
|
2017
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2018
1922
|
}
|
|
2019
1923
|
};
|
|
2020
1924
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2036,7 +1940,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2036
1940
|
...output,
|
|
2037
1941
|
body: await parseBody(output.body, context),
|
|
2038
1942
|
};
|
|
2039
|
-
let response;
|
|
2040
1943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
1944
|
switch (errorCode) {
|
|
2042
1945
|
case "AcceleratorNotFoundException":
|
|
@@ -2050,14 +1953,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2050
1953
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2051
1954
|
default:
|
|
2052
1955
|
const parsedBody = parsedOutput.body;
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
$metadata,
|
|
1956
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1957
|
+
output,
|
|
1958
|
+
parsedBody,
|
|
1959
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
1960
|
+
errorCode,
|
|
2059
1961
|
});
|
|
2060
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2061
1962
|
}
|
|
2062
1963
|
};
|
|
2063
1964
|
const deserializeAws_json1_1ProvisionByoipCidrCommand = async (output, context) => {
|
|
@@ -2079,7 +1980,6 @@ const deserializeAws_json1_1ProvisionByoipCidrCommandError = async (output, cont
|
|
|
2079
1980
|
...output,
|
|
2080
1981
|
body: await parseBody(output.body, context),
|
|
2081
1982
|
};
|
|
2082
|
-
let response;
|
|
2083
1983
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
1984
|
switch (errorCode) {
|
|
2085
1985
|
case "AccessDeniedException":
|
|
@@ -2099,14 +1999,12 @@ const deserializeAws_json1_1ProvisionByoipCidrCommandError = async (output, cont
|
|
|
2099
1999
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2100
2000
|
default:
|
|
2101
2001
|
const parsedBody = parsedOutput.body;
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
$metadata,
|
|
2002
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2003
|
+
output,
|
|
2004
|
+
parsedBody,
|
|
2005
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2006
|
+
errorCode,
|
|
2108
2007
|
});
|
|
2109
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2110
2008
|
}
|
|
2111
2009
|
};
|
|
2112
2010
|
const deserializeAws_json1_1RemoveCustomRoutingEndpointsCommand = async (output, context) => {
|
|
@@ -2125,7 +2023,6 @@ const deserializeAws_json1_1RemoveCustomRoutingEndpointsCommandError = async (ou
|
|
|
2125
2023
|
...output,
|
|
2126
2024
|
body: await parseBody(output.body, context),
|
|
2127
2025
|
};
|
|
2128
|
-
let response;
|
|
2129
2026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2130
2027
|
switch (errorCode) {
|
|
2131
2028
|
case "AccessDeniedException":
|
|
@@ -2148,14 +2045,12 @@ const deserializeAws_json1_1RemoveCustomRoutingEndpointsCommandError = async (ou
|
|
|
2148
2045
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2149
2046
|
default:
|
|
2150
2047
|
const parsedBody = parsedOutput.body;
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
$metadata,
|
|
2048
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2049
|
+
output,
|
|
2050
|
+
parsedBody,
|
|
2051
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2052
|
+
errorCode,
|
|
2157
2053
|
});
|
|
2158
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2159
2054
|
}
|
|
2160
2055
|
};
|
|
2161
2056
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2177,7 +2072,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2177
2072
|
...output,
|
|
2178
2073
|
body: await parseBody(output.body, context),
|
|
2179
2074
|
};
|
|
2180
|
-
let response;
|
|
2181
2075
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2182
2076
|
switch (errorCode) {
|
|
2183
2077
|
case "AcceleratorNotFoundException":
|
|
@@ -2191,14 +2085,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2191
2085
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2192
2086
|
default:
|
|
2193
2087
|
const parsedBody = parsedOutput.body;
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
$metadata,
|
|
2088
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2089
|
+
output,
|
|
2090
|
+
parsedBody,
|
|
2091
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2092
|
+
errorCode,
|
|
2200
2093
|
});
|
|
2201
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2202
2094
|
}
|
|
2203
2095
|
};
|
|
2204
2096
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2220,7 +2112,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2220
2112
|
...output,
|
|
2221
2113
|
body: await parseBody(output.body, context),
|
|
2222
2114
|
};
|
|
2223
|
-
let response;
|
|
2224
2115
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2116
|
switch (errorCode) {
|
|
2226
2117
|
case "AcceleratorNotFoundException":
|
|
@@ -2234,14 +2125,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2234
2125
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2235
2126
|
default:
|
|
2236
2127
|
const parsedBody = parsedOutput.body;
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
$metadata,
|
|
2128
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2129
|
+
output,
|
|
2130
|
+
parsedBody,
|
|
2131
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2132
|
+
errorCode,
|
|
2243
2133
|
});
|
|
2244
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2245
2134
|
}
|
|
2246
2135
|
};
|
|
2247
2136
|
const deserializeAws_json1_1UpdateAcceleratorCommand = async (output, context) => {
|
|
@@ -2263,12 +2152,14 @@ const deserializeAws_json1_1UpdateAcceleratorCommandError = async (output, conte
|
|
|
2263
2152
|
...output,
|
|
2264
2153
|
body: await parseBody(output.body, context),
|
|
2265
2154
|
};
|
|
2266
|
-
let response;
|
|
2267
2155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2268
2156
|
switch (errorCode) {
|
|
2269
2157
|
case "AcceleratorNotFoundException":
|
|
2270
2158
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
2271
2159
|
throw await deserializeAws_json1_1AcceleratorNotFoundExceptionResponse(parsedOutput, context);
|
|
2160
|
+
case "AccessDeniedException":
|
|
2161
|
+
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
2162
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2272
2163
|
case "InternalServiceErrorException":
|
|
2273
2164
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
2274
2165
|
throw await deserializeAws_json1_1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
@@ -2277,14 +2168,12 @@ const deserializeAws_json1_1UpdateAcceleratorCommandError = async (output, conte
|
|
|
2277
2168
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2278
2169
|
default:
|
|
2279
2170
|
const parsedBody = parsedOutput.body;
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
$metadata,
|
|
2171
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2172
|
+
output,
|
|
2173
|
+
parsedBody,
|
|
2174
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2175
|
+
errorCode,
|
|
2286
2176
|
});
|
|
2287
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2288
2177
|
}
|
|
2289
2178
|
};
|
|
2290
2179
|
const deserializeAws_json1_1UpdateAcceleratorAttributesCommand = async (output, context) => {
|
|
@@ -2306,7 +2195,6 @@ const deserializeAws_json1_1UpdateAcceleratorAttributesCommandError = async (out
|
|
|
2306
2195
|
...output,
|
|
2307
2196
|
body: await parseBody(output.body, context),
|
|
2308
2197
|
};
|
|
2309
|
-
let response;
|
|
2310
2198
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2311
2199
|
switch (errorCode) {
|
|
2312
2200
|
case "AcceleratorNotFoundException":
|
|
@@ -2323,14 +2211,12 @@ const deserializeAws_json1_1UpdateAcceleratorAttributesCommandError = async (out
|
|
|
2323
2211
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2324
2212
|
default:
|
|
2325
2213
|
const parsedBody = parsedOutput.body;
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
$metadata,
|
|
2214
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2215
|
+
output,
|
|
2216
|
+
parsedBody,
|
|
2217
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2218
|
+
errorCode,
|
|
2332
2219
|
});
|
|
2333
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2334
2220
|
}
|
|
2335
2221
|
};
|
|
2336
2222
|
const deserializeAws_json1_1UpdateCustomRoutingAcceleratorCommand = async (output, context) => {
|
|
@@ -2352,7 +2238,6 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorCommandError = async (
|
|
|
2352
2238
|
...output,
|
|
2353
2239
|
body: await parseBody(output.body, context),
|
|
2354
2240
|
};
|
|
2355
|
-
let response;
|
|
2356
2241
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
2242
|
switch (errorCode) {
|
|
2358
2243
|
case "AcceleratorNotFoundException":
|
|
@@ -2366,14 +2251,12 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorCommandError = async (
|
|
|
2366
2251
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2367
2252
|
default:
|
|
2368
2253
|
const parsedBody = parsedOutput.body;
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
$metadata,
|
|
2254
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2255
|
+
output,
|
|
2256
|
+
parsedBody,
|
|
2257
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2258
|
+
errorCode,
|
|
2375
2259
|
});
|
|
2376
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2377
2260
|
}
|
|
2378
2261
|
};
|
|
2379
2262
|
const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesCommand = async (output, context) => {
|
|
@@ -2395,7 +2278,6 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesCommandError
|
|
|
2395
2278
|
...output,
|
|
2396
2279
|
body: await parseBody(output.body, context),
|
|
2397
2280
|
};
|
|
2398
|
-
let response;
|
|
2399
2281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
2282
|
switch (errorCode) {
|
|
2401
2283
|
case "AcceleratorNotFoundException":
|
|
@@ -2412,14 +2294,12 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesCommandError
|
|
|
2412
2294
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2413
2295
|
default:
|
|
2414
2296
|
const parsedBody = parsedOutput.body;
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
$metadata,
|
|
2297
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2298
|
+
output,
|
|
2299
|
+
parsedBody,
|
|
2300
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2301
|
+
errorCode,
|
|
2421
2302
|
});
|
|
2422
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2423
2303
|
}
|
|
2424
2304
|
};
|
|
2425
2305
|
const deserializeAws_json1_1UpdateCustomRoutingListenerCommand = async (output, context) => {
|
|
@@ -2441,7 +2321,6 @@ const deserializeAws_json1_1UpdateCustomRoutingListenerCommandError = async (out
|
|
|
2441
2321
|
...output,
|
|
2442
2322
|
body: await parseBody(output.body, context),
|
|
2443
2323
|
};
|
|
2444
|
-
let response;
|
|
2445
2324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2446
2325
|
switch (errorCode) {
|
|
2447
2326
|
case "InternalServiceErrorException":
|
|
@@ -2461,14 +2340,12 @@ const deserializeAws_json1_1UpdateCustomRoutingListenerCommandError = async (out
|
|
|
2461
2340
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
2462
2341
|
default:
|
|
2463
2342
|
const parsedBody = parsedOutput.body;
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
$metadata,
|
|
2343
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2344
|
+
output,
|
|
2345
|
+
parsedBody,
|
|
2346
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2347
|
+
errorCode,
|
|
2470
2348
|
});
|
|
2471
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2472
2349
|
}
|
|
2473
2350
|
};
|
|
2474
2351
|
const deserializeAws_json1_1UpdateEndpointGroupCommand = async (output, context) => {
|
|
@@ -2490,7 +2367,6 @@ const deserializeAws_json1_1UpdateEndpointGroupCommandError = async (output, con
|
|
|
2490
2367
|
...output,
|
|
2491
2368
|
body: await parseBody(output.body, context),
|
|
2492
2369
|
};
|
|
2493
|
-
let response;
|
|
2494
2370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
2371
|
switch (errorCode) {
|
|
2496
2372
|
case "AccessDeniedException":
|
|
@@ -2510,14 +2386,12 @@ const deserializeAws_json1_1UpdateEndpointGroupCommandError = async (output, con
|
|
|
2510
2386
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2511
2387
|
default:
|
|
2512
2388
|
const parsedBody = parsedOutput.body;
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
$metadata,
|
|
2389
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2390
|
+
output,
|
|
2391
|
+
parsedBody,
|
|
2392
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2393
|
+
errorCode,
|
|
2519
2394
|
});
|
|
2520
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2521
2395
|
}
|
|
2522
2396
|
};
|
|
2523
2397
|
const deserializeAws_json1_1UpdateListenerCommand = async (output, context) => {
|
|
@@ -2539,7 +2413,6 @@ const deserializeAws_json1_1UpdateListenerCommandError = async (output, context)
|
|
|
2539
2413
|
...output,
|
|
2540
2414
|
body: await parseBody(output.body, context),
|
|
2541
2415
|
};
|
|
2542
|
-
let response;
|
|
2543
2416
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
2417
|
switch (errorCode) {
|
|
2545
2418
|
case "InternalServiceErrorException":
|
|
@@ -2559,14 +2432,12 @@ const deserializeAws_json1_1UpdateListenerCommandError = async (output, context)
|
|
|
2559
2432
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
2560
2433
|
default:
|
|
2561
2434
|
const parsedBody = parsedOutput.body;
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
$metadata,
|
|
2435
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2436
|
+
output,
|
|
2437
|
+
parsedBody,
|
|
2438
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2439
|
+
errorCode,
|
|
2568
2440
|
});
|
|
2569
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2570
2441
|
}
|
|
2571
2442
|
};
|
|
2572
2443
|
const deserializeAws_json1_1WithdrawByoipCidrCommand = async (output, context) => {
|
|
@@ -2588,7 +2459,6 @@ const deserializeAws_json1_1WithdrawByoipCidrCommandError = async (output, conte
|
|
|
2588
2459
|
...output,
|
|
2589
2460
|
body: await parseBody(output.body, context),
|
|
2590
2461
|
};
|
|
2591
|
-
let response;
|
|
2592
2462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2463
|
switch (errorCode) {
|
|
2594
2464
|
case "AccessDeniedException":
|
|
@@ -2608,14 +2478,12 @@ const deserializeAws_json1_1WithdrawByoipCidrCommandError = async (output, conte
|
|
|
2608
2478
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2609
2479
|
default:
|
|
2610
2480
|
const parsedBody = parsedOutput.body;
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
$metadata,
|
|
2481
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2482
|
+
output,
|
|
2483
|
+
parsedBody,
|
|
2484
|
+
exceptionCtor: GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException,
|
|
2485
|
+
errorCode,
|
|
2617
2486
|
});
|
|
2618
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2619
2487
|
}
|
|
2620
2488
|
};
|
|
2621
2489
|
const deserializeAws_json1_1AcceleratorNotDisabledExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -2896,9 +2764,6 @@ const serializeAws_json1_1CustomRoutingDestinationConfigurations = (input, conte
|
|
|
2896
2764
|
return input
|
|
2897
2765
|
.filter((e) => e != null)
|
|
2898
2766
|
.map((entry) => {
|
|
2899
|
-
if (entry === null) {
|
|
2900
|
-
return null;
|
|
2901
|
-
}
|
|
2902
2767
|
return serializeAws_json1_1CustomRoutingDestinationConfiguration(entry, context);
|
|
2903
2768
|
});
|
|
2904
2769
|
};
|
|
@@ -2911,9 +2776,6 @@ const serializeAws_json1_1CustomRoutingEndpointConfigurations = (input, context)
|
|
|
2911
2776
|
return input
|
|
2912
2777
|
.filter((e) => e != null)
|
|
2913
2778
|
.map((entry) => {
|
|
2914
|
-
if (entry === null) {
|
|
2915
|
-
return null;
|
|
2916
|
-
}
|
|
2917
2779
|
return serializeAws_json1_1CustomRoutingEndpointConfiguration(entry, context);
|
|
2918
2780
|
});
|
|
2919
2781
|
};
|
|
@@ -2921,9 +2783,6 @@ const serializeAws_json1_1CustomRoutingProtocols = (input, context) => {
|
|
|
2921
2783
|
return input
|
|
2922
2784
|
.filter((e) => e != null)
|
|
2923
2785
|
.map((entry) => {
|
|
2924
|
-
if (entry === null) {
|
|
2925
|
-
return null;
|
|
2926
|
-
}
|
|
2927
2786
|
return entry;
|
|
2928
2787
|
});
|
|
2929
2788
|
};
|
|
@@ -3019,9 +2878,6 @@ const serializeAws_json1_1DestinationAddresses = (input, context) => {
|
|
|
3019
2878
|
return input
|
|
3020
2879
|
.filter((e) => e != null)
|
|
3021
2880
|
.map((entry) => {
|
|
3022
|
-
if (entry === null) {
|
|
3023
|
-
return null;
|
|
3024
|
-
}
|
|
3025
2881
|
return entry;
|
|
3026
2882
|
});
|
|
3027
2883
|
};
|
|
@@ -3029,9 +2885,6 @@ const serializeAws_json1_1DestinationPorts = (input, context) => {
|
|
|
3029
2885
|
return input
|
|
3030
2886
|
.filter((e) => e != null)
|
|
3031
2887
|
.map((entry) => {
|
|
3032
|
-
if (entry === null) {
|
|
3033
|
-
return null;
|
|
3034
|
-
}
|
|
3035
2888
|
return entry;
|
|
3036
2889
|
});
|
|
3037
2890
|
};
|
|
@@ -3048,9 +2901,6 @@ const serializeAws_json1_1EndpointConfigurations = (input, context) => {
|
|
|
3048
2901
|
return input
|
|
3049
2902
|
.filter((e) => e != null)
|
|
3050
2903
|
.map((entry) => {
|
|
3051
|
-
if (entry === null) {
|
|
3052
|
-
return null;
|
|
3053
|
-
}
|
|
3054
2904
|
return serializeAws_json1_1EndpointConfiguration(entry, context);
|
|
3055
2905
|
});
|
|
3056
2906
|
};
|
|
@@ -3058,9 +2908,6 @@ const serializeAws_json1_1EndpointIds = (input, context) => {
|
|
|
3058
2908
|
return input
|
|
3059
2909
|
.filter((e) => e != null)
|
|
3060
2910
|
.map((entry) => {
|
|
3061
|
-
if (entry === null) {
|
|
3062
|
-
return null;
|
|
3063
|
-
}
|
|
3064
2911
|
return entry;
|
|
3065
2912
|
});
|
|
3066
2913
|
};
|
|
@@ -3068,9 +2915,6 @@ const serializeAws_json1_1IpAddresses = (input, context) => {
|
|
|
3068
2915
|
return input
|
|
3069
2916
|
.filter((e) => e != null)
|
|
3070
2917
|
.map((entry) => {
|
|
3071
|
-
if (entry === null) {
|
|
3072
|
-
return null;
|
|
3073
|
-
}
|
|
3074
2918
|
return entry;
|
|
3075
2919
|
});
|
|
3076
2920
|
};
|
|
@@ -3151,9 +2995,6 @@ const serializeAws_json1_1PortOverrides = (input, context) => {
|
|
|
3151
2995
|
return input
|
|
3152
2996
|
.filter((e) => e != null)
|
|
3153
2997
|
.map((entry) => {
|
|
3154
|
-
if (entry === null) {
|
|
3155
|
-
return null;
|
|
3156
|
-
}
|
|
3157
2998
|
return serializeAws_json1_1PortOverride(entry, context);
|
|
3158
2999
|
});
|
|
3159
3000
|
};
|
|
@@ -3167,9 +3008,6 @@ const serializeAws_json1_1PortRanges = (input, context) => {
|
|
|
3167
3008
|
return input
|
|
3168
3009
|
.filter((e) => e != null)
|
|
3169
3010
|
.map((entry) => {
|
|
3170
|
-
if (entry === null) {
|
|
3171
|
-
return null;
|
|
3172
|
-
}
|
|
3173
3011
|
return serializeAws_json1_1PortRange(entry, context);
|
|
3174
3012
|
});
|
|
3175
3013
|
};
|
|
@@ -3197,9 +3035,6 @@ const serializeAws_json1_1TagKeys = (input, context) => {
|
|
|
3197
3035
|
return input
|
|
3198
3036
|
.filter((e) => e != null)
|
|
3199
3037
|
.map((entry) => {
|
|
3200
|
-
if (entry === null) {
|
|
3201
|
-
return null;
|
|
3202
|
-
}
|
|
3203
3038
|
return entry;
|
|
3204
3039
|
});
|
|
3205
3040
|
};
|
|
@@ -3213,9 +3048,6 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
3213
3048
|
return input
|
|
3214
3049
|
.filter((e) => e != null)
|
|
3215
3050
|
.map((entry) => {
|
|
3216
|
-
if (entry === null) {
|
|
3217
|
-
return null;
|
|
3218
|
-
}
|
|
3219
3051
|
return serializeAws_json1_1Tag(entry, context);
|
|
3220
3052
|
});
|
|
3221
3053
|
};
|
|
@@ -3302,7 +3134,9 @@ const deserializeAws_json1_1Accelerator = (output, context) => {
|
|
|
3302
3134
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
3303
3135
|
: undefined,
|
|
3304
3136
|
DnsName: (0, smithy_client_1.expectString)(output.DnsName),
|
|
3137
|
+
DualStackDnsName: (0, smithy_client_1.expectString)(output.DualStackDnsName),
|
|
3305
3138
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3139
|
+
Events: output.Events != null ? deserializeAws_json1_1AcceleratorEvents(output.Events, context) : undefined,
|
|
3306
3140
|
IpAddressType: (0, smithy_client_1.expectString)(output.IpAddressType),
|
|
3307
3141
|
IpSets: output.IpSets != null ? deserializeAws_json1_1IpSets(output.IpSets, context) : undefined,
|
|
3308
3142
|
LastModifiedTime: output.LastModifiedTime != null
|
|
@@ -3319,6 +3153,23 @@ const deserializeAws_json1_1AcceleratorAttributes = (output, context) => {
|
|
|
3319
3153
|
FlowLogsS3Prefix: (0, smithy_client_1.expectString)(output.FlowLogsS3Prefix),
|
|
3320
3154
|
};
|
|
3321
3155
|
};
|
|
3156
|
+
const deserializeAws_json1_1AcceleratorEvent = (output, context) => {
|
|
3157
|
+
return {
|
|
3158
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3159
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
3162
|
+
const deserializeAws_json1_1AcceleratorEvents = (output, context) => {
|
|
3163
|
+
const retVal = (output || [])
|
|
3164
|
+
.filter((e) => e != null)
|
|
3165
|
+
.map((entry) => {
|
|
3166
|
+
if (entry === null) {
|
|
3167
|
+
return null;
|
|
3168
|
+
}
|
|
3169
|
+
return deserializeAws_json1_1AcceleratorEvent(entry, context);
|
|
3170
|
+
});
|
|
3171
|
+
return retVal;
|
|
3172
|
+
};
|
|
3322
3173
|
const deserializeAws_json1_1AcceleratorNotDisabledException = (output, context) => {
|
|
3323
3174
|
return {
|
|
3324
3175
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3752,6 +3603,7 @@ const deserializeAws_json1_1IpAddresses = (output, context) => {
|
|
|
3752
3603
|
};
|
|
3753
3604
|
const deserializeAws_json1_1IpSet = (output, context) => {
|
|
3754
3605
|
return {
|
|
3606
|
+
IpAddressFamily: (0, smithy_client_1.expectString)(output.IpAddressFamily),
|
|
3755
3607
|
IpAddresses: output.IpAddresses != null ? deserializeAws_json1_1IpAddresses(output.IpAddresses, context) : undefined,
|
|
3756
3608
|
IpFamily: (0, smithy_client_1.expectString)(output.IpFamily),
|
|
3757
3609
|
};
|