@aws-sdk/client-global-accelerator 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +436 -519
- package/dist-es/protocols/Aws_json1_1.js +361 -444
- package/package.json +26 -26
|
@@ -497,8 +497,7 @@ const deserializeAws_json1_1AddCustomRoutingEndpointsCommandError = async (outpu
|
|
|
497
497
|
body: await parseBody(output.body, context),
|
|
498
498
|
};
|
|
499
499
|
let response;
|
|
500
|
-
|
|
501
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
501
|
switch (errorCode) {
|
|
503
502
|
case "AccessDeniedException":
|
|
504
503
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -523,10 +522,12 @@ const deserializeAws_json1_1AddCustomRoutingEndpointsCommandError = async (outpu
|
|
|
523
522
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
524
523
|
default:
|
|
525
524
|
const parsedBody = parsedOutput.body;
|
|
525
|
+
const $metadata = deserializeMetadata(output);
|
|
526
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
526
527
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
527
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
528
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
528
529
|
$fault: "client",
|
|
529
|
-
$metadata
|
|
530
|
+
$metadata,
|
|
530
531
|
});
|
|
531
532
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
532
533
|
}
|
|
@@ -551,8 +552,7 @@ const deserializeAws_json1_1AdvertiseByoipCidrCommandError = async (output, cont
|
|
|
551
552
|
body: await parseBody(output.body, context),
|
|
552
553
|
};
|
|
553
554
|
let response;
|
|
554
|
-
|
|
555
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
556
|
switch (errorCode) {
|
|
557
557
|
case "AccessDeniedException":
|
|
558
558
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -571,10 +571,12 @@ const deserializeAws_json1_1AdvertiseByoipCidrCommandError = async (output, cont
|
|
|
571
571
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
572
572
|
default:
|
|
573
573
|
const parsedBody = parsedOutput.body;
|
|
574
|
+
const $metadata = deserializeMetadata(output);
|
|
575
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
574
576
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
577
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
576
578
|
$fault: "client",
|
|
577
|
-
$metadata
|
|
579
|
+
$metadata,
|
|
578
580
|
});
|
|
579
581
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
580
582
|
}
|
|
@@ -596,8 +598,7 @@ const deserializeAws_json1_1AllowCustomRoutingTrafficCommandError = async (outpu
|
|
|
596
598
|
body: await parseBody(output.body, context),
|
|
597
599
|
};
|
|
598
600
|
let response;
|
|
599
|
-
|
|
600
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
601
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
601
602
|
switch (errorCode) {
|
|
602
603
|
case "InternalServiceErrorException":
|
|
603
604
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -607,10 +608,12 @@ const deserializeAws_json1_1AllowCustomRoutingTrafficCommandError = async (outpu
|
|
|
607
608
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
608
609
|
default:
|
|
609
610
|
const parsedBody = parsedOutput.body;
|
|
611
|
+
const $metadata = deserializeMetadata(output);
|
|
612
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
610
613
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
611
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
614
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
612
615
|
$fault: "client",
|
|
613
|
-
$metadata
|
|
616
|
+
$metadata,
|
|
614
617
|
});
|
|
615
618
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
616
619
|
}
|
|
@@ -635,8 +638,7 @@ const deserializeAws_json1_1CreateAcceleratorCommandError = async (output, conte
|
|
|
635
638
|
body: await parseBody(output.body, context),
|
|
636
639
|
};
|
|
637
640
|
let response;
|
|
638
|
-
|
|
639
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
642
|
switch (errorCode) {
|
|
641
643
|
case "InternalServiceErrorException":
|
|
642
644
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -649,10 +651,12 @@ const deserializeAws_json1_1CreateAcceleratorCommandError = async (output, conte
|
|
|
649
651
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
650
652
|
default:
|
|
651
653
|
const parsedBody = parsedOutput.body;
|
|
654
|
+
const $metadata = deserializeMetadata(output);
|
|
655
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
652
656
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
653
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
657
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
654
658
|
$fault: "client",
|
|
655
|
-
$metadata
|
|
659
|
+
$metadata,
|
|
656
660
|
});
|
|
657
661
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
658
662
|
}
|
|
@@ -677,8 +681,7 @@ const deserializeAws_json1_1CreateCustomRoutingAcceleratorCommandError = async (
|
|
|
677
681
|
body: await parseBody(output.body, context),
|
|
678
682
|
};
|
|
679
683
|
let response;
|
|
680
|
-
|
|
681
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
682
685
|
switch (errorCode) {
|
|
683
686
|
case "AccessDeniedException":
|
|
684
687
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -694,10 +697,12 @@ const deserializeAws_json1_1CreateCustomRoutingAcceleratorCommandError = async (
|
|
|
694
697
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
695
698
|
default:
|
|
696
699
|
const parsedBody = parsedOutput.body;
|
|
700
|
+
const $metadata = deserializeMetadata(output);
|
|
701
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
697
702
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
703
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
699
704
|
$fault: "client",
|
|
700
|
-
$metadata
|
|
705
|
+
$metadata,
|
|
701
706
|
});
|
|
702
707
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
703
708
|
}
|
|
@@ -722,8 +727,7 @@ const deserializeAws_json1_1CreateCustomRoutingEndpointGroupCommandError = async
|
|
|
722
727
|
body: await parseBody(output.body, context),
|
|
723
728
|
};
|
|
724
729
|
let response;
|
|
725
|
-
|
|
726
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
727
731
|
switch (errorCode) {
|
|
728
732
|
case "AcceleratorNotFoundException":
|
|
729
733
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -751,10 +755,12 @@ const deserializeAws_json1_1CreateCustomRoutingEndpointGroupCommandError = async
|
|
|
751
755
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
752
756
|
default:
|
|
753
757
|
const parsedBody = parsedOutput.body;
|
|
758
|
+
const $metadata = deserializeMetadata(output);
|
|
759
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
754
760
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
755
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
761
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
756
762
|
$fault: "client",
|
|
757
|
-
$metadata
|
|
763
|
+
$metadata,
|
|
758
764
|
});
|
|
759
765
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
760
766
|
}
|
|
@@ -779,8 +785,7 @@ const deserializeAws_json1_1CreateCustomRoutingListenerCommandError = async (out
|
|
|
779
785
|
body: await parseBody(output.body, context),
|
|
780
786
|
};
|
|
781
787
|
let response;
|
|
782
|
-
|
|
783
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
789
|
switch (errorCode) {
|
|
785
790
|
case "AcceleratorNotFoundException":
|
|
786
791
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -799,10 +804,12 @@ const deserializeAws_json1_1CreateCustomRoutingListenerCommandError = async (out
|
|
|
799
804
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
800
805
|
default:
|
|
801
806
|
const parsedBody = parsedOutput.body;
|
|
807
|
+
const $metadata = deserializeMetadata(output);
|
|
808
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
802
809
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
803
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
810
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
804
811
|
$fault: "client",
|
|
805
|
-
$metadata
|
|
812
|
+
$metadata,
|
|
806
813
|
});
|
|
807
814
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
808
815
|
}
|
|
@@ -827,8 +834,7 @@ const deserializeAws_json1_1CreateEndpointGroupCommandError = async (output, con
|
|
|
827
834
|
body: await parseBody(output.body, context),
|
|
828
835
|
};
|
|
829
836
|
let response;
|
|
830
|
-
|
|
831
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
838
|
switch (errorCode) {
|
|
833
839
|
case "AcceleratorNotFoundException":
|
|
834
840
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -853,10 +859,12 @@ const deserializeAws_json1_1CreateEndpointGroupCommandError = async (output, con
|
|
|
853
859
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
854
860
|
default:
|
|
855
861
|
const parsedBody = parsedOutput.body;
|
|
862
|
+
const $metadata = deserializeMetadata(output);
|
|
863
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
856
864
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
857
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
865
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
858
866
|
$fault: "client",
|
|
859
|
-
$metadata
|
|
867
|
+
$metadata,
|
|
860
868
|
});
|
|
861
869
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
862
870
|
}
|
|
@@ -881,8 +889,7 @@ const deserializeAws_json1_1CreateListenerCommandError = async (output, context)
|
|
|
881
889
|
body: await parseBody(output.body, context),
|
|
882
890
|
};
|
|
883
891
|
let response;
|
|
884
|
-
|
|
885
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
892
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
893
|
switch (errorCode) {
|
|
887
894
|
case "AcceleratorNotFoundException":
|
|
888
895
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -901,10 +908,12 @@ const deserializeAws_json1_1CreateListenerCommandError = async (output, context)
|
|
|
901
908
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
902
909
|
default:
|
|
903
910
|
const parsedBody = parsedOutput.body;
|
|
911
|
+
const $metadata = deserializeMetadata(output);
|
|
912
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
904
913
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
905
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
906
915
|
$fault: "client",
|
|
907
|
-
$metadata
|
|
916
|
+
$metadata,
|
|
908
917
|
});
|
|
909
918
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
910
919
|
}
|
|
@@ -926,8 +935,7 @@ const deserializeAws_json1_1DeleteAcceleratorCommandError = async (output, conte
|
|
|
926
935
|
body: await parseBody(output.body, context),
|
|
927
936
|
};
|
|
928
937
|
let response;
|
|
929
|
-
|
|
930
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
939
|
switch (errorCode) {
|
|
932
940
|
case "AcceleratorNotDisabledException":
|
|
933
941
|
case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
|
|
@@ -946,10 +954,12 @@ const deserializeAws_json1_1DeleteAcceleratorCommandError = async (output, conte
|
|
|
946
954
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
947
955
|
default:
|
|
948
956
|
const parsedBody = parsedOutput.body;
|
|
957
|
+
const $metadata = deserializeMetadata(output);
|
|
958
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
949
959
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
950
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
960
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
951
961
|
$fault: "client",
|
|
952
|
-
$metadata
|
|
962
|
+
$metadata,
|
|
953
963
|
});
|
|
954
964
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
955
965
|
}
|
|
@@ -971,8 +981,7 @@ const deserializeAws_json1_1DeleteCustomRoutingAcceleratorCommandError = async (
|
|
|
971
981
|
body: await parseBody(output.body, context),
|
|
972
982
|
};
|
|
973
983
|
let response;
|
|
974
|
-
|
|
975
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
985
|
switch (errorCode) {
|
|
977
986
|
case "AcceleratorNotDisabledException":
|
|
978
987
|
case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
|
|
@@ -991,10 +1000,12 @@ const deserializeAws_json1_1DeleteCustomRoutingAcceleratorCommandError = async (
|
|
|
991
1000
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
992
1001
|
default:
|
|
993
1002
|
const parsedBody = parsedOutput.body;
|
|
1003
|
+
const $metadata = deserializeMetadata(output);
|
|
1004
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
994
1005
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
995
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1006
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
996
1007
|
$fault: "client",
|
|
997
|
-
$metadata
|
|
1008
|
+
$metadata,
|
|
998
1009
|
});
|
|
999
1010
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1000
1011
|
}
|
|
@@ -1016,8 +1027,7 @@ const deserializeAws_json1_1DeleteCustomRoutingEndpointGroupCommandError = async
|
|
|
1016
1027
|
body: await parseBody(output.body, context),
|
|
1017
1028
|
};
|
|
1018
1029
|
let response;
|
|
1019
|
-
|
|
1020
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
1031
|
switch (errorCode) {
|
|
1022
1032
|
case "EndpointGroupNotFoundException":
|
|
1023
1033
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
@@ -1030,10 +1040,12 @@ const deserializeAws_json1_1DeleteCustomRoutingEndpointGroupCommandError = async
|
|
|
1030
1040
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1031
1041
|
default:
|
|
1032
1042
|
const parsedBody = parsedOutput.body;
|
|
1043
|
+
const $metadata = deserializeMetadata(output);
|
|
1044
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1033
1045
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1034
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1046
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1035
1047
|
$fault: "client",
|
|
1036
|
-
$metadata
|
|
1048
|
+
$metadata,
|
|
1037
1049
|
});
|
|
1038
1050
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1039
1051
|
}
|
|
@@ -1055,8 +1067,7 @@ const deserializeAws_json1_1DeleteCustomRoutingListenerCommandError = async (out
|
|
|
1055
1067
|
body: await parseBody(output.body, context),
|
|
1056
1068
|
};
|
|
1057
1069
|
let response;
|
|
1058
|
-
|
|
1059
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
1071
|
switch (errorCode) {
|
|
1061
1072
|
case "AssociatedEndpointGroupFoundException":
|
|
1062
1073
|
case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
|
|
@@ -1072,10 +1083,12 @@ const deserializeAws_json1_1DeleteCustomRoutingListenerCommandError = async (out
|
|
|
1072
1083
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1073
1084
|
default:
|
|
1074
1085
|
const parsedBody = parsedOutput.body;
|
|
1086
|
+
const $metadata = deserializeMetadata(output);
|
|
1087
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1075
1088
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1076
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1089
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1077
1090
|
$fault: "client",
|
|
1078
|
-
$metadata
|
|
1091
|
+
$metadata,
|
|
1079
1092
|
});
|
|
1080
1093
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1081
1094
|
}
|
|
@@ -1097,8 +1110,7 @@ const deserializeAws_json1_1DeleteEndpointGroupCommandError = async (output, con
|
|
|
1097
1110
|
body: await parseBody(output.body, context),
|
|
1098
1111
|
};
|
|
1099
1112
|
let response;
|
|
1100
|
-
|
|
1101
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1113
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
1114
|
switch (errorCode) {
|
|
1103
1115
|
case "EndpointGroupNotFoundException":
|
|
1104
1116
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
@@ -1111,10 +1123,12 @@ const deserializeAws_json1_1DeleteEndpointGroupCommandError = async (output, con
|
|
|
1111
1123
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1112
1124
|
default:
|
|
1113
1125
|
const parsedBody = parsedOutput.body;
|
|
1126
|
+
const $metadata = deserializeMetadata(output);
|
|
1127
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1114
1128
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1115
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1129
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1116
1130
|
$fault: "client",
|
|
1117
|
-
$metadata
|
|
1131
|
+
$metadata,
|
|
1118
1132
|
});
|
|
1119
1133
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1120
1134
|
}
|
|
@@ -1136,8 +1150,7 @@ const deserializeAws_json1_1DeleteListenerCommandError = async (output, context)
|
|
|
1136
1150
|
body: await parseBody(output.body, context),
|
|
1137
1151
|
};
|
|
1138
1152
|
let response;
|
|
1139
|
-
|
|
1140
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1141
1154
|
switch (errorCode) {
|
|
1142
1155
|
case "AssociatedEndpointGroupFoundException":
|
|
1143
1156
|
case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
|
|
@@ -1153,10 +1166,12 @@ const deserializeAws_json1_1DeleteListenerCommandError = async (output, context)
|
|
|
1153
1166
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1154
1167
|
default:
|
|
1155
1168
|
const parsedBody = parsedOutput.body;
|
|
1169
|
+
const $metadata = deserializeMetadata(output);
|
|
1170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1156
1171
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1157
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1158
1173
|
$fault: "client",
|
|
1159
|
-
$metadata
|
|
1174
|
+
$metadata,
|
|
1160
1175
|
});
|
|
1161
1176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1162
1177
|
}
|
|
@@ -1178,8 +1193,7 @@ const deserializeAws_json1_1DenyCustomRoutingTrafficCommandError = async (output
|
|
|
1178
1193
|
body: await parseBody(output.body, context),
|
|
1179
1194
|
};
|
|
1180
1195
|
let response;
|
|
1181
|
-
|
|
1182
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
1197
|
switch (errorCode) {
|
|
1184
1198
|
case "InternalServiceErrorException":
|
|
1185
1199
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -1189,10 +1203,12 @@ const deserializeAws_json1_1DenyCustomRoutingTrafficCommandError = async (output
|
|
|
1189
1203
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1190
1204
|
default:
|
|
1191
1205
|
const parsedBody = parsedOutput.body;
|
|
1206
|
+
const $metadata = deserializeMetadata(output);
|
|
1207
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1192
1208
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1193
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1209
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1194
1210
|
$fault: "client",
|
|
1195
|
-
$metadata
|
|
1211
|
+
$metadata,
|
|
1196
1212
|
});
|
|
1197
1213
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1198
1214
|
}
|
|
@@ -1217,8 +1233,7 @@ const deserializeAws_json1_1DeprovisionByoipCidrCommandError = async (output, co
|
|
|
1217
1233
|
body: await parseBody(output.body, context),
|
|
1218
1234
|
};
|
|
1219
1235
|
let response;
|
|
1220
|
-
|
|
1221
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1222
1237
|
switch (errorCode) {
|
|
1223
1238
|
case "AccessDeniedException":
|
|
1224
1239
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -1237,10 +1252,12 @@ const deserializeAws_json1_1DeprovisionByoipCidrCommandError = async (output, co
|
|
|
1237
1252
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1238
1253
|
default:
|
|
1239
1254
|
const parsedBody = parsedOutput.body;
|
|
1255
|
+
const $metadata = deserializeMetadata(output);
|
|
1256
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1240
1257
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1241
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1258
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1242
1259
|
$fault: "client",
|
|
1243
|
-
$metadata
|
|
1260
|
+
$metadata,
|
|
1244
1261
|
});
|
|
1245
1262
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1246
1263
|
}
|
|
@@ -1265,8 +1282,7 @@ const deserializeAws_json1_1DescribeAcceleratorCommandError = async (output, con
|
|
|
1265
1282
|
body: await parseBody(output.body, context),
|
|
1266
1283
|
};
|
|
1267
1284
|
let response;
|
|
1268
|
-
|
|
1269
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
1286
|
switch (errorCode) {
|
|
1271
1287
|
case "AcceleratorNotFoundException":
|
|
1272
1288
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -1279,10 +1295,12 @@ const deserializeAws_json1_1DescribeAcceleratorCommandError = async (output, con
|
|
|
1279
1295
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1280
1296
|
default:
|
|
1281
1297
|
const parsedBody = parsedOutput.body;
|
|
1298
|
+
const $metadata = deserializeMetadata(output);
|
|
1299
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1282
1300
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1301
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1284
1302
|
$fault: "client",
|
|
1285
|
-
$metadata
|
|
1303
|
+
$metadata,
|
|
1286
1304
|
});
|
|
1287
1305
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1288
1306
|
}
|
|
@@ -1307,8 +1325,7 @@ const deserializeAws_json1_1DescribeAcceleratorAttributesCommandError = async (o
|
|
|
1307
1325
|
body: await parseBody(output.body, context),
|
|
1308
1326
|
};
|
|
1309
1327
|
let response;
|
|
1310
|
-
|
|
1311
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
1329
|
switch (errorCode) {
|
|
1313
1330
|
case "AcceleratorNotFoundException":
|
|
1314
1331
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -1321,10 +1338,12 @@ const deserializeAws_json1_1DescribeAcceleratorAttributesCommandError = async (o
|
|
|
1321
1338
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1322
1339
|
default:
|
|
1323
1340
|
const parsedBody = parsedOutput.body;
|
|
1341
|
+
const $metadata = deserializeMetadata(output);
|
|
1342
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1324
1343
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1344
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1326
1345
|
$fault: "client",
|
|
1327
|
-
$metadata
|
|
1346
|
+
$metadata,
|
|
1328
1347
|
});
|
|
1329
1348
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1330
1349
|
}
|
|
@@ -1349,8 +1368,7 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorCommandError = async
|
|
|
1349
1368
|
body: await parseBody(output.body, context),
|
|
1350
1369
|
};
|
|
1351
1370
|
let response;
|
|
1352
|
-
|
|
1353
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1371
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1372
|
switch (errorCode) {
|
|
1355
1373
|
case "AcceleratorNotFoundException":
|
|
1356
1374
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -1363,10 +1381,12 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorCommandError = async
|
|
|
1363
1381
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1364
1382
|
default:
|
|
1365
1383
|
const parsedBody = parsedOutput.body;
|
|
1384
|
+
const $metadata = deserializeMetadata(output);
|
|
1385
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1366
1386
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1387
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1368
1388
|
$fault: "client",
|
|
1369
|
-
$metadata
|
|
1389
|
+
$metadata,
|
|
1370
1390
|
});
|
|
1371
1391
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1372
1392
|
}
|
|
@@ -1391,8 +1411,7 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesCommandErr
|
|
|
1391
1411
|
body: await parseBody(output.body, context),
|
|
1392
1412
|
};
|
|
1393
1413
|
let response;
|
|
1394
|
-
|
|
1395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
1415
|
switch (errorCode) {
|
|
1397
1416
|
case "AcceleratorNotFoundException":
|
|
1398
1417
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -1405,10 +1424,12 @@ const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesCommandErr
|
|
|
1405
1424
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1406
1425
|
default:
|
|
1407
1426
|
const parsedBody = parsedOutput.body;
|
|
1427
|
+
const $metadata = deserializeMetadata(output);
|
|
1428
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1408
1429
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1409
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1430
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1410
1431
|
$fault: "client",
|
|
1411
|
-
$metadata
|
|
1432
|
+
$metadata,
|
|
1412
1433
|
});
|
|
1413
1434
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1414
1435
|
}
|
|
@@ -1433,8 +1454,7 @@ const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupCommandError = asy
|
|
|
1433
1454
|
body: await parseBody(output.body, context),
|
|
1434
1455
|
};
|
|
1435
1456
|
let response;
|
|
1436
|
-
|
|
1437
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1457
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
1458
|
switch (errorCode) {
|
|
1439
1459
|
case "EndpointGroupNotFoundException":
|
|
1440
1460
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
@@ -1447,10 +1467,12 @@ const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupCommandError = asy
|
|
|
1447
1467
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1448
1468
|
default:
|
|
1449
1469
|
const parsedBody = parsedOutput.body;
|
|
1470
|
+
const $metadata = deserializeMetadata(output);
|
|
1471
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1450
1472
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1473
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1452
1474
|
$fault: "client",
|
|
1453
|
-
$metadata
|
|
1475
|
+
$metadata,
|
|
1454
1476
|
});
|
|
1455
1477
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1456
1478
|
}
|
|
@@ -1475,8 +1497,7 @@ const deserializeAws_json1_1DescribeCustomRoutingListenerCommandError = async (o
|
|
|
1475
1497
|
body: await parseBody(output.body, context),
|
|
1476
1498
|
};
|
|
1477
1499
|
let response;
|
|
1478
|
-
|
|
1479
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1480
1501
|
switch (errorCode) {
|
|
1481
1502
|
case "InternalServiceErrorException":
|
|
1482
1503
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -1489,10 +1510,12 @@ const deserializeAws_json1_1DescribeCustomRoutingListenerCommandError = async (o
|
|
|
1489
1510
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1490
1511
|
default:
|
|
1491
1512
|
const parsedBody = parsedOutput.body;
|
|
1513
|
+
const $metadata = deserializeMetadata(output);
|
|
1514
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1492
1515
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1493
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1494
1517
|
$fault: "client",
|
|
1495
|
-
$metadata
|
|
1518
|
+
$metadata,
|
|
1496
1519
|
});
|
|
1497
1520
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1498
1521
|
}
|
|
@@ -1517,8 +1540,7 @@ const deserializeAws_json1_1DescribeEndpointGroupCommandError = async (output, c
|
|
|
1517
1540
|
body: await parseBody(output.body, context),
|
|
1518
1541
|
};
|
|
1519
1542
|
let response;
|
|
1520
|
-
|
|
1521
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
1544
|
switch (errorCode) {
|
|
1523
1545
|
case "EndpointGroupNotFoundException":
|
|
1524
1546
|
case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
|
|
@@ -1531,10 +1553,12 @@ const deserializeAws_json1_1DescribeEndpointGroupCommandError = async (output, c
|
|
|
1531
1553
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1532
1554
|
default:
|
|
1533
1555
|
const parsedBody = parsedOutput.body;
|
|
1556
|
+
const $metadata = deserializeMetadata(output);
|
|
1557
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1534
1558
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1535
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1559
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1536
1560
|
$fault: "client",
|
|
1537
|
-
$metadata
|
|
1561
|
+
$metadata,
|
|
1538
1562
|
});
|
|
1539
1563
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1540
1564
|
}
|
|
@@ -1559,8 +1583,7 @@ const deserializeAws_json1_1DescribeListenerCommandError = async (output, contex
|
|
|
1559
1583
|
body: await parseBody(output.body, context),
|
|
1560
1584
|
};
|
|
1561
1585
|
let response;
|
|
1562
|
-
|
|
1563
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
1587
|
switch (errorCode) {
|
|
1565
1588
|
case "InternalServiceErrorException":
|
|
1566
1589
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -1573,10 +1596,12 @@ const deserializeAws_json1_1DescribeListenerCommandError = async (output, contex
|
|
|
1573
1596
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1574
1597
|
default:
|
|
1575
1598
|
const parsedBody = parsedOutput.body;
|
|
1599
|
+
const $metadata = deserializeMetadata(output);
|
|
1600
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1576
1601
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1577
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1602
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1578
1603
|
$fault: "client",
|
|
1579
|
-
$metadata
|
|
1604
|
+
$metadata,
|
|
1580
1605
|
});
|
|
1581
1606
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1582
1607
|
}
|
|
@@ -1601,8 +1626,7 @@ const deserializeAws_json1_1ListAcceleratorsCommandError = async (output, contex
|
|
|
1601
1626
|
body: await parseBody(output.body, context),
|
|
1602
1627
|
};
|
|
1603
1628
|
let response;
|
|
1604
|
-
|
|
1605
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
1630
|
switch (errorCode) {
|
|
1607
1631
|
case "InternalServiceErrorException":
|
|
1608
1632
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -1615,10 +1639,12 @@ const deserializeAws_json1_1ListAcceleratorsCommandError = async (output, contex
|
|
|
1615
1639
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1616
1640
|
default:
|
|
1617
1641
|
const parsedBody = parsedOutput.body;
|
|
1642
|
+
const $metadata = deserializeMetadata(output);
|
|
1643
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1618
1644
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1645
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1620
1646
|
$fault: "client",
|
|
1621
|
-
$metadata
|
|
1647
|
+
$metadata,
|
|
1622
1648
|
});
|
|
1623
1649
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1624
1650
|
}
|
|
@@ -1643,8 +1669,7 @@ const deserializeAws_json1_1ListByoipCidrsCommandError = async (output, context)
|
|
|
1643
1669
|
body: await parseBody(output.body, context),
|
|
1644
1670
|
};
|
|
1645
1671
|
let response;
|
|
1646
|
-
|
|
1647
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
1673
|
switch (errorCode) {
|
|
1649
1674
|
case "AccessDeniedException":
|
|
1650
1675
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -1660,10 +1685,12 @@ const deserializeAws_json1_1ListByoipCidrsCommandError = async (output, context)
|
|
|
1660
1685
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1661
1686
|
default:
|
|
1662
1687
|
const parsedBody = parsedOutput.body;
|
|
1688
|
+
const $metadata = deserializeMetadata(output);
|
|
1689
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1663
1690
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1664
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1691
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1665
1692
|
$fault: "client",
|
|
1666
|
-
$metadata
|
|
1693
|
+
$metadata,
|
|
1667
1694
|
});
|
|
1668
1695
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1669
1696
|
}
|
|
@@ -1688,8 +1715,7 @@ const deserializeAws_json1_1ListCustomRoutingAcceleratorsCommandError = async (o
|
|
|
1688
1715
|
body: await parseBody(output.body, context),
|
|
1689
1716
|
};
|
|
1690
1717
|
let response;
|
|
1691
|
-
|
|
1692
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
1719
|
switch (errorCode) {
|
|
1694
1720
|
case "InternalServiceErrorException":
|
|
1695
1721
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -1702,10 +1728,12 @@ const deserializeAws_json1_1ListCustomRoutingAcceleratorsCommandError = async (o
|
|
|
1702
1728
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1703
1729
|
default:
|
|
1704
1730
|
const parsedBody = parsedOutput.body;
|
|
1731
|
+
const $metadata = deserializeMetadata(output);
|
|
1732
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1705
1733
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1706
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1707
1735
|
$fault: "client",
|
|
1708
|
-
$metadata
|
|
1736
|
+
$metadata,
|
|
1709
1737
|
});
|
|
1710
1738
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1711
1739
|
}
|
|
@@ -1730,8 +1758,7 @@ const deserializeAws_json1_1ListCustomRoutingEndpointGroupsCommandError = async
|
|
|
1730
1758
|
body: await parseBody(output.body, context),
|
|
1731
1759
|
};
|
|
1732
1760
|
let response;
|
|
1733
|
-
|
|
1734
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
1762
|
switch (errorCode) {
|
|
1736
1763
|
case "InternalServiceErrorException":
|
|
1737
1764
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -1747,10 +1774,12 @@ const deserializeAws_json1_1ListCustomRoutingEndpointGroupsCommandError = async
|
|
|
1747
1774
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1748
1775
|
default:
|
|
1749
1776
|
const parsedBody = parsedOutput.body;
|
|
1777
|
+
const $metadata = deserializeMetadata(output);
|
|
1778
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1750
1779
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1751
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1752
1781
|
$fault: "client",
|
|
1753
|
-
$metadata
|
|
1782
|
+
$metadata,
|
|
1754
1783
|
});
|
|
1755
1784
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1756
1785
|
}
|
|
@@ -1775,8 +1804,7 @@ const deserializeAws_json1_1ListCustomRoutingListenersCommandError = async (outp
|
|
|
1775
1804
|
body: await parseBody(output.body, context),
|
|
1776
1805
|
};
|
|
1777
1806
|
let response;
|
|
1778
|
-
|
|
1779
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1807
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1780
1808
|
switch (errorCode) {
|
|
1781
1809
|
case "AcceleratorNotFoundException":
|
|
1782
1810
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -1792,10 +1820,12 @@ const deserializeAws_json1_1ListCustomRoutingListenersCommandError = async (outp
|
|
|
1792
1820
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1793
1821
|
default:
|
|
1794
1822
|
const parsedBody = parsedOutput.body;
|
|
1823
|
+
const $metadata = deserializeMetadata(output);
|
|
1824
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1795
1825
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1796
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1826
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1797
1827
|
$fault: "client",
|
|
1798
|
-
$metadata
|
|
1828
|
+
$metadata,
|
|
1799
1829
|
});
|
|
1800
1830
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1801
1831
|
}
|
|
@@ -1820,8 +1850,7 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsCommandError = async (o
|
|
|
1820
1850
|
body: await parseBody(output.body, context),
|
|
1821
1851
|
};
|
|
1822
1852
|
let response;
|
|
1823
|
-
|
|
1824
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1853
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
1854
|
switch (errorCode) {
|
|
1826
1855
|
case "AcceleratorNotFoundException":
|
|
1827
1856
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -1840,10 +1869,12 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsCommandError = async (o
|
|
|
1840
1869
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1841
1870
|
default:
|
|
1842
1871
|
const parsedBody = parsedOutput.body;
|
|
1872
|
+
const $metadata = deserializeMetadata(output);
|
|
1873
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1843
1874
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1875
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1845
1876
|
$fault: "client",
|
|
1846
|
-
$metadata
|
|
1877
|
+
$metadata,
|
|
1847
1878
|
});
|
|
1848
1879
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1849
1880
|
}
|
|
@@ -1868,8 +1899,7 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationCommandErr
|
|
|
1868
1899
|
body: await parseBody(output.body, context),
|
|
1869
1900
|
};
|
|
1870
1901
|
let response;
|
|
1871
|
-
|
|
1872
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1873
1903
|
switch (errorCode) {
|
|
1874
1904
|
case "EndpointNotFoundException":
|
|
1875
1905
|
case "com.amazonaws.globalaccelerator#EndpointNotFoundException":
|
|
@@ -1885,10 +1915,12 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationCommandErr
|
|
|
1885
1915
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1886
1916
|
default:
|
|
1887
1917
|
const parsedBody = parsedOutput.body;
|
|
1918
|
+
const $metadata = deserializeMetadata(output);
|
|
1919
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1888
1920
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1889
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1921
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1890
1922
|
$fault: "client",
|
|
1891
|
-
$metadata
|
|
1923
|
+
$metadata,
|
|
1892
1924
|
});
|
|
1893
1925
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1894
1926
|
}
|
|
@@ -1913,8 +1945,7 @@ const deserializeAws_json1_1ListEndpointGroupsCommandError = async (output, cont
|
|
|
1913
1945
|
body: await parseBody(output.body, context),
|
|
1914
1946
|
};
|
|
1915
1947
|
let response;
|
|
1916
|
-
|
|
1917
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
1949
|
switch (errorCode) {
|
|
1919
1950
|
case "InternalServiceErrorException":
|
|
1920
1951
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -1930,10 +1961,12 @@ const deserializeAws_json1_1ListEndpointGroupsCommandError = async (output, cont
|
|
|
1930
1961
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
1931
1962
|
default:
|
|
1932
1963
|
const parsedBody = parsedOutput.body;
|
|
1964
|
+
const $metadata = deserializeMetadata(output);
|
|
1965
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1933
1966
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1934
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1967
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1935
1968
|
$fault: "client",
|
|
1936
|
-
$metadata
|
|
1969
|
+
$metadata,
|
|
1937
1970
|
});
|
|
1938
1971
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1939
1972
|
}
|
|
@@ -1958,8 +1991,7 @@ const deserializeAws_json1_1ListListenersCommandError = async (output, context)
|
|
|
1958
1991
|
body: await parseBody(output.body, context),
|
|
1959
1992
|
};
|
|
1960
1993
|
let response;
|
|
1961
|
-
|
|
1962
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1963
1995
|
switch (errorCode) {
|
|
1964
1996
|
case "AcceleratorNotFoundException":
|
|
1965
1997
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -1975,10 +2007,12 @@ const deserializeAws_json1_1ListListenersCommandError = async (output, context)
|
|
|
1975
2007
|
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1976
2008
|
default:
|
|
1977
2009
|
const parsedBody = parsedOutput.body;
|
|
2010
|
+
const $metadata = deserializeMetadata(output);
|
|
2011
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1978
2012
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
1979
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2013
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1980
2014
|
$fault: "client",
|
|
1981
|
-
$metadata
|
|
2015
|
+
$metadata,
|
|
1982
2016
|
});
|
|
1983
2017
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1984
2018
|
}
|
|
@@ -2003,8 +2037,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2003
2037
|
body: await parseBody(output.body, context),
|
|
2004
2038
|
};
|
|
2005
2039
|
let response;
|
|
2006
|
-
|
|
2007
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2040
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
2041
|
switch (errorCode) {
|
|
2009
2042
|
case "AcceleratorNotFoundException":
|
|
2010
2043
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -2017,10 +2050,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2017
2050
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2018
2051
|
default:
|
|
2019
2052
|
const parsedBody = parsedOutput.body;
|
|
2053
|
+
const $metadata = deserializeMetadata(output);
|
|
2054
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2020
2055
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2021
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2056
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2022
2057
|
$fault: "client",
|
|
2023
|
-
$metadata
|
|
2058
|
+
$metadata,
|
|
2024
2059
|
});
|
|
2025
2060
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2026
2061
|
}
|
|
@@ -2045,8 +2080,7 @@ const deserializeAws_json1_1ProvisionByoipCidrCommandError = async (output, cont
|
|
|
2045
2080
|
body: await parseBody(output.body, context),
|
|
2046
2081
|
};
|
|
2047
2082
|
let response;
|
|
2048
|
-
|
|
2049
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2050
2084
|
switch (errorCode) {
|
|
2051
2085
|
case "AccessDeniedException":
|
|
2052
2086
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -2065,10 +2099,12 @@ const deserializeAws_json1_1ProvisionByoipCidrCommandError = async (output, cont
|
|
|
2065
2099
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2066
2100
|
default:
|
|
2067
2101
|
const parsedBody = parsedOutput.body;
|
|
2102
|
+
const $metadata = deserializeMetadata(output);
|
|
2103
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2068
2104
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2069
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2105
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2070
2106
|
$fault: "client",
|
|
2071
|
-
$metadata
|
|
2107
|
+
$metadata,
|
|
2072
2108
|
});
|
|
2073
2109
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2074
2110
|
}
|
|
@@ -2090,8 +2126,7 @@ const deserializeAws_json1_1RemoveCustomRoutingEndpointsCommandError = async (ou
|
|
|
2090
2126
|
body: await parseBody(output.body, context),
|
|
2091
2127
|
};
|
|
2092
2128
|
let response;
|
|
2093
|
-
|
|
2094
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2095
2130
|
switch (errorCode) {
|
|
2096
2131
|
case "AccessDeniedException":
|
|
2097
2132
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -2113,10 +2148,12 @@ const deserializeAws_json1_1RemoveCustomRoutingEndpointsCommandError = async (ou
|
|
|
2113
2148
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2114
2149
|
default:
|
|
2115
2150
|
const parsedBody = parsedOutput.body;
|
|
2151
|
+
const $metadata = deserializeMetadata(output);
|
|
2152
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2116
2153
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2117
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2154
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2118
2155
|
$fault: "client",
|
|
2119
|
-
$metadata
|
|
2156
|
+
$metadata,
|
|
2120
2157
|
});
|
|
2121
2158
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2122
2159
|
}
|
|
@@ -2141,8 +2178,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2141
2178
|
body: await parseBody(output.body, context),
|
|
2142
2179
|
};
|
|
2143
2180
|
let response;
|
|
2144
|
-
|
|
2145
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2146
2182
|
switch (errorCode) {
|
|
2147
2183
|
case "AcceleratorNotFoundException":
|
|
2148
2184
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -2155,10 +2191,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2155
2191
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2156
2192
|
default:
|
|
2157
2193
|
const parsedBody = parsedOutput.body;
|
|
2194
|
+
const $metadata = deserializeMetadata(output);
|
|
2195
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2158
2196
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2197
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2160
2198
|
$fault: "client",
|
|
2161
|
-
$metadata
|
|
2199
|
+
$metadata,
|
|
2162
2200
|
});
|
|
2163
2201
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2164
2202
|
}
|
|
@@ -2183,8 +2221,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2183
2221
|
body: await parseBody(output.body, context),
|
|
2184
2222
|
};
|
|
2185
2223
|
let response;
|
|
2186
|
-
|
|
2187
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2188
2225
|
switch (errorCode) {
|
|
2189
2226
|
case "AcceleratorNotFoundException":
|
|
2190
2227
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -2197,10 +2234,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2197
2234
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2198
2235
|
default:
|
|
2199
2236
|
const parsedBody = parsedOutput.body;
|
|
2237
|
+
const $metadata = deserializeMetadata(output);
|
|
2238
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2200
2239
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2201
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2240
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2202
2241
|
$fault: "client",
|
|
2203
|
-
$metadata
|
|
2242
|
+
$metadata,
|
|
2204
2243
|
});
|
|
2205
2244
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2206
2245
|
}
|
|
@@ -2225,8 +2264,7 @@ const deserializeAws_json1_1UpdateAcceleratorCommandError = async (output, conte
|
|
|
2225
2264
|
body: await parseBody(output.body, context),
|
|
2226
2265
|
};
|
|
2227
2266
|
let response;
|
|
2228
|
-
|
|
2229
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2230
2268
|
switch (errorCode) {
|
|
2231
2269
|
case "AcceleratorNotFoundException":
|
|
2232
2270
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -2239,10 +2277,12 @@ const deserializeAws_json1_1UpdateAcceleratorCommandError = async (output, conte
|
|
|
2239
2277
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2240
2278
|
default:
|
|
2241
2279
|
const parsedBody = parsedOutput.body;
|
|
2280
|
+
const $metadata = deserializeMetadata(output);
|
|
2281
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2242
2282
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2243
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2283
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2244
2284
|
$fault: "client",
|
|
2245
|
-
$metadata
|
|
2285
|
+
$metadata,
|
|
2246
2286
|
});
|
|
2247
2287
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2248
2288
|
}
|
|
@@ -2267,8 +2307,7 @@ const deserializeAws_json1_1UpdateAcceleratorAttributesCommandError = async (out
|
|
|
2267
2307
|
body: await parseBody(output.body, context),
|
|
2268
2308
|
};
|
|
2269
2309
|
let response;
|
|
2270
|
-
|
|
2271
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2310
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2272
2311
|
switch (errorCode) {
|
|
2273
2312
|
case "AcceleratorNotFoundException":
|
|
2274
2313
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -2284,10 +2323,12 @@ const deserializeAws_json1_1UpdateAcceleratorAttributesCommandError = async (out
|
|
|
2284
2323
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2285
2324
|
default:
|
|
2286
2325
|
const parsedBody = parsedOutput.body;
|
|
2326
|
+
const $metadata = deserializeMetadata(output);
|
|
2327
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2287
2328
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2288
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2329
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2289
2330
|
$fault: "client",
|
|
2290
|
-
$metadata
|
|
2331
|
+
$metadata,
|
|
2291
2332
|
});
|
|
2292
2333
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2293
2334
|
}
|
|
@@ -2312,8 +2353,7 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorCommandError = async (
|
|
|
2312
2353
|
body: await parseBody(output.body, context),
|
|
2313
2354
|
};
|
|
2314
2355
|
let response;
|
|
2315
|
-
|
|
2316
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
2357
|
switch (errorCode) {
|
|
2318
2358
|
case "AcceleratorNotFoundException":
|
|
2319
2359
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -2326,10 +2366,12 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorCommandError = async (
|
|
|
2326
2366
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2327
2367
|
default:
|
|
2328
2368
|
const parsedBody = parsedOutput.body;
|
|
2369
|
+
const $metadata = deserializeMetadata(output);
|
|
2370
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2329
2371
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2330
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2372
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2331
2373
|
$fault: "client",
|
|
2332
|
-
$metadata
|
|
2374
|
+
$metadata,
|
|
2333
2375
|
});
|
|
2334
2376
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2335
2377
|
}
|
|
@@ -2354,8 +2396,7 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesCommandError
|
|
|
2354
2396
|
body: await parseBody(output.body, context),
|
|
2355
2397
|
};
|
|
2356
2398
|
let response;
|
|
2357
|
-
|
|
2358
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2399
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
2400
|
switch (errorCode) {
|
|
2360
2401
|
case "AcceleratorNotFoundException":
|
|
2361
2402
|
case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
|
|
@@ -2371,10 +2412,12 @@ const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesCommandError
|
|
|
2371
2412
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2372
2413
|
default:
|
|
2373
2414
|
const parsedBody = parsedOutput.body;
|
|
2415
|
+
const $metadata = deserializeMetadata(output);
|
|
2416
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2374
2417
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2375
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2418
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2376
2419
|
$fault: "client",
|
|
2377
|
-
$metadata
|
|
2420
|
+
$metadata,
|
|
2378
2421
|
});
|
|
2379
2422
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2380
2423
|
}
|
|
@@ -2399,8 +2442,7 @@ const deserializeAws_json1_1UpdateCustomRoutingListenerCommandError = async (out
|
|
|
2399
2442
|
body: await parseBody(output.body, context),
|
|
2400
2443
|
};
|
|
2401
2444
|
let response;
|
|
2402
|
-
|
|
2403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2445
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
2446
|
switch (errorCode) {
|
|
2405
2447
|
case "InternalServiceErrorException":
|
|
2406
2448
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -2419,10 +2461,12 @@ const deserializeAws_json1_1UpdateCustomRoutingListenerCommandError = async (out
|
|
|
2419
2461
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
2420
2462
|
default:
|
|
2421
2463
|
const parsedBody = parsedOutput.body;
|
|
2464
|
+
const $metadata = deserializeMetadata(output);
|
|
2465
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2422
2466
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2467
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2424
2468
|
$fault: "client",
|
|
2425
|
-
$metadata
|
|
2469
|
+
$metadata,
|
|
2426
2470
|
});
|
|
2427
2471
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2428
2472
|
}
|
|
@@ -2447,8 +2491,7 @@ const deserializeAws_json1_1UpdateEndpointGroupCommandError = async (output, con
|
|
|
2447
2491
|
body: await parseBody(output.body, context),
|
|
2448
2492
|
};
|
|
2449
2493
|
let response;
|
|
2450
|
-
|
|
2451
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2452
2495
|
switch (errorCode) {
|
|
2453
2496
|
case "AccessDeniedException":
|
|
2454
2497
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -2467,10 +2510,12 @@ const deserializeAws_json1_1UpdateEndpointGroupCommandError = async (output, con
|
|
|
2467
2510
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2468
2511
|
default:
|
|
2469
2512
|
const parsedBody = parsedOutput.body;
|
|
2513
|
+
const $metadata = deserializeMetadata(output);
|
|
2514
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2470
2515
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2471
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2516
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2472
2517
|
$fault: "client",
|
|
2473
|
-
$metadata
|
|
2518
|
+
$metadata,
|
|
2474
2519
|
});
|
|
2475
2520
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2476
2521
|
}
|
|
@@ -2495,8 +2540,7 @@ const deserializeAws_json1_1UpdateListenerCommandError = async (output, context)
|
|
|
2495
2540
|
body: await parseBody(output.body, context),
|
|
2496
2541
|
};
|
|
2497
2542
|
let response;
|
|
2498
|
-
|
|
2499
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2500
2544
|
switch (errorCode) {
|
|
2501
2545
|
case "InternalServiceErrorException":
|
|
2502
2546
|
case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
|
|
@@ -2515,10 +2559,12 @@ const deserializeAws_json1_1UpdateListenerCommandError = async (output, context)
|
|
|
2515
2559
|
throw await deserializeAws_json1_1ListenerNotFoundExceptionResponse(parsedOutput, context);
|
|
2516
2560
|
default:
|
|
2517
2561
|
const parsedBody = parsedOutput.body;
|
|
2562
|
+
const $metadata = deserializeMetadata(output);
|
|
2563
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2518
2564
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2519
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2565
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2520
2566
|
$fault: "client",
|
|
2521
|
-
$metadata
|
|
2567
|
+
$metadata,
|
|
2522
2568
|
});
|
|
2523
2569
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2524
2570
|
}
|
|
@@ -2543,8 +2589,7 @@ const deserializeAws_json1_1WithdrawByoipCidrCommandError = async (output, conte
|
|
|
2543
2589
|
body: await parseBody(output.body, context),
|
|
2544
2590
|
};
|
|
2545
2591
|
let response;
|
|
2546
|
-
|
|
2547
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2592
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2548
2593
|
switch (errorCode) {
|
|
2549
2594
|
case "AccessDeniedException":
|
|
2550
2595
|
case "com.amazonaws.globalaccelerator#AccessDeniedException":
|
|
@@ -2563,10 +2608,12 @@ const deserializeAws_json1_1WithdrawByoipCidrCommandError = async (output, conte
|
|
|
2563
2608
|
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
2564
2609
|
default:
|
|
2565
2610
|
const parsedBody = parsedOutput.body;
|
|
2611
|
+
const $metadata = deserializeMetadata(output);
|
|
2612
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2566
2613
|
response = new GlobalAcceleratorServiceException_1.GlobalAcceleratorServiceException({
|
|
2567
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2614
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2568
2615
|
$fault: "client",
|
|
2569
|
-
$metadata
|
|
2616
|
+
$metadata,
|
|
2570
2617
|
});
|
|
2571
2618
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2572
2619
|
}
|
|
@@ -2735,137 +2782,114 @@ const deserializeAws_json1_1ListenerNotFoundExceptionResponse = async (parsedOut
|
|
|
2735
2782
|
};
|
|
2736
2783
|
const serializeAws_json1_1AddCustomRoutingEndpointsRequest = (input, context) => {
|
|
2737
2784
|
return {
|
|
2738
|
-
...(input.EndpointConfigurations
|
|
2739
|
-
input.EndpointConfigurations !== null && {
|
|
2785
|
+
...(input.EndpointConfigurations != null && {
|
|
2740
2786
|
EndpointConfigurations: serializeAws_json1_1CustomRoutingEndpointConfigurations(input.EndpointConfigurations, context),
|
|
2741
2787
|
}),
|
|
2742
|
-
...(input.EndpointGroupArn
|
|
2743
|
-
input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
2788
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
2744
2789
|
};
|
|
2745
2790
|
};
|
|
2746
2791
|
const serializeAws_json1_1AdvertiseByoipCidrRequest = (input, context) => {
|
|
2747
2792
|
return {
|
|
2748
|
-
...(input.Cidr
|
|
2793
|
+
...(input.Cidr != null && { Cidr: input.Cidr }),
|
|
2749
2794
|
};
|
|
2750
2795
|
};
|
|
2751
2796
|
const serializeAws_json1_1AllowCustomRoutingTrafficRequest = (input, context) => {
|
|
2752
2797
|
return {
|
|
2753
|
-
...(input.AllowAllTrafficToEndpoint
|
|
2754
|
-
|
|
2755
|
-
...(input.DestinationAddresses !== undefined &&
|
|
2756
|
-
input.DestinationAddresses !== null && {
|
|
2798
|
+
...(input.AllowAllTrafficToEndpoint != null && { AllowAllTrafficToEndpoint: input.AllowAllTrafficToEndpoint }),
|
|
2799
|
+
...(input.DestinationAddresses != null && {
|
|
2757
2800
|
DestinationAddresses: serializeAws_json1_1DestinationAddresses(input.DestinationAddresses, context),
|
|
2758
2801
|
}),
|
|
2759
|
-
...(input.DestinationPorts
|
|
2760
|
-
input.DestinationPorts !== null && {
|
|
2802
|
+
...(input.DestinationPorts != null && {
|
|
2761
2803
|
DestinationPorts: serializeAws_json1_1DestinationPorts(input.DestinationPorts, context),
|
|
2762
2804
|
}),
|
|
2763
|
-
...(input.EndpointGroupArn
|
|
2764
|
-
|
|
2765
|
-
...(input.EndpointId !== undefined && input.EndpointId !== null && { EndpointId: input.EndpointId }),
|
|
2805
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
2806
|
+
...(input.EndpointId != null && { EndpointId: input.EndpointId }),
|
|
2766
2807
|
};
|
|
2767
2808
|
};
|
|
2768
2809
|
const serializeAws_json1_1CidrAuthorizationContext = (input, context) => {
|
|
2769
2810
|
return {
|
|
2770
|
-
...(input.Message
|
|
2771
|
-
...(input.Signature
|
|
2811
|
+
...(input.Message != null && { Message: input.Message }),
|
|
2812
|
+
...(input.Signature != null && { Signature: input.Signature }),
|
|
2772
2813
|
};
|
|
2773
2814
|
};
|
|
2774
2815
|
const serializeAws_json1_1CreateAcceleratorRequest = (input, context) => {
|
|
2775
2816
|
var _a;
|
|
2776
2817
|
return {
|
|
2777
|
-
...(input.Enabled
|
|
2818
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
2778
2819
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2779
|
-
...(input.IpAddressType
|
|
2780
|
-
...(input.IpAddresses
|
|
2781
|
-
|
|
2782
|
-
...(input.
|
|
2783
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2820
|
+
...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
|
|
2821
|
+
...(input.IpAddresses != null && { IpAddresses: serializeAws_json1_1IpAddresses(input.IpAddresses, context) }),
|
|
2822
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2823
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2784
2824
|
};
|
|
2785
2825
|
};
|
|
2786
2826
|
const serializeAws_json1_1CreateCustomRoutingAcceleratorRequest = (input, context) => {
|
|
2787
2827
|
var _a;
|
|
2788
2828
|
return {
|
|
2789
|
-
...(input.Enabled
|
|
2829
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
2790
2830
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2791
|
-
...(input.IpAddressType
|
|
2792
|
-
...(input.IpAddresses
|
|
2793
|
-
|
|
2794
|
-
...(input.
|
|
2795
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2831
|
+
...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
|
|
2832
|
+
...(input.IpAddresses != null && { IpAddresses: serializeAws_json1_1IpAddresses(input.IpAddresses, context) }),
|
|
2833
|
+
...(input.Name != null && { Name: input.Name }),
|
|
2834
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
2796
2835
|
};
|
|
2797
2836
|
};
|
|
2798
2837
|
const serializeAws_json1_1CreateCustomRoutingEndpointGroupRequest = (input, context) => {
|
|
2799
2838
|
var _a;
|
|
2800
2839
|
return {
|
|
2801
|
-
...(input.DestinationConfigurations
|
|
2802
|
-
input.DestinationConfigurations !== null && {
|
|
2840
|
+
...(input.DestinationConfigurations != null && {
|
|
2803
2841
|
DestinationConfigurations: serializeAws_json1_1CustomRoutingDestinationConfigurations(input.DestinationConfigurations, context),
|
|
2804
2842
|
}),
|
|
2805
|
-
...(input.EndpointGroupRegion
|
|
2806
|
-
input.EndpointGroupRegion !== null && { EndpointGroupRegion: input.EndpointGroupRegion }),
|
|
2843
|
+
...(input.EndpointGroupRegion != null && { EndpointGroupRegion: input.EndpointGroupRegion }),
|
|
2807
2844
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2808
|
-
...(input.ListenerArn
|
|
2845
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
2809
2846
|
};
|
|
2810
2847
|
};
|
|
2811
2848
|
const serializeAws_json1_1CreateCustomRoutingListenerRequest = (input, context) => {
|
|
2812
2849
|
var _a;
|
|
2813
2850
|
return {
|
|
2814
|
-
...(input.AcceleratorArn
|
|
2815
|
-
input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2851
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2816
2852
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2817
|
-
...(input.PortRanges
|
|
2818
|
-
input.PortRanges !== null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
|
|
2853
|
+
...(input.PortRanges != null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
|
|
2819
2854
|
};
|
|
2820
2855
|
};
|
|
2821
2856
|
const serializeAws_json1_1CreateEndpointGroupRequest = (input, context) => {
|
|
2822
2857
|
var _a;
|
|
2823
2858
|
return {
|
|
2824
|
-
...(input.EndpointConfigurations
|
|
2825
|
-
input.EndpointConfigurations !== null && {
|
|
2859
|
+
...(input.EndpointConfigurations != null && {
|
|
2826
2860
|
EndpointConfigurations: serializeAws_json1_1EndpointConfigurations(input.EndpointConfigurations, context),
|
|
2827
2861
|
}),
|
|
2828
|
-
...(input.EndpointGroupRegion
|
|
2829
|
-
|
|
2830
|
-
...(input.
|
|
2831
|
-
|
|
2832
|
-
...(input.
|
|
2833
|
-
input.HealthCheckPath !== null && { HealthCheckPath: input.HealthCheckPath }),
|
|
2834
|
-
...(input.HealthCheckPort !== undefined &&
|
|
2835
|
-
input.HealthCheckPort !== null && { HealthCheckPort: input.HealthCheckPort }),
|
|
2836
|
-
...(input.HealthCheckProtocol !== undefined &&
|
|
2837
|
-
input.HealthCheckProtocol !== null && { HealthCheckProtocol: input.HealthCheckProtocol }),
|
|
2862
|
+
...(input.EndpointGroupRegion != null && { EndpointGroupRegion: input.EndpointGroupRegion }),
|
|
2863
|
+
...(input.HealthCheckIntervalSeconds != null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
|
|
2864
|
+
...(input.HealthCheckPath != null && { HealthCheckPath: input.HealthCheckPath }),
|
|
2865
|
+
...(input.HealthCheckPort != null && { HealthCheckPort: input.HealthCheckPort }),
|
|
2866
|
+
...(input.HealthCheckProtocol != null && { HealthCheckProtocol: input.HealthCheckProtocol }),
|
|
2838
2867
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2839
|
-
...(input.ListenerArn
|
|
2840
|
-
...(input.PortOverrides
|
|
2841
|
-
input.PortOverrides !== null && {
|
|
2868
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
2869
|
+
...(input.PortOverrides != null && {
|
|
2842
2870
|
PortOverrides: serializeAws_json1_1PortOverrides(input.PortOverrides, context),
|
|
2843
2871
|
}),
|
|
2844
|
-
...(input.ThresholdCount
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2872
|
+
...(input.ThresholdCount != null && { ThresholdCount: input.ThresholdCount }),
|
|
2873
|
+
...(input.TrafficDialPercentage != null && {
|
|
2874
|
+
TrafficDialPercentage: (0, smithy_client_1.serializeFloat)(input.TrafficDialPercentage),
|
|
2875
|
+
}),
|
|
2848
2876
|
};
|
|
2849
2877
|
};
|
|
2850
2878
|
const serializeAws_json1_1CreateListenerRequest = (input, context) => {
|
|
2851
2879
|
var _a;
|
|
2852
2880
|
return {
|
|
2853
|
-
...(input.AcceleratorArn
|
|
2854
|
-
|
|
2855
|
-
...(input.ClientAffinity !== undefined &&
|
|
2856
|
-
input.ClientAffinity !== null && { ClientAffinity: input.ClientAffinity }),
|
|
2881
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2882
|
+
...(input.ClientAffinity != null && { ClientAffinity: input.ClientAffinity }),
|
|
2857
2883
|
IdempotencyToken: (_a = input.IdempotencyToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
2858
|
-
...(input.PortRanges
|
|
2859
|
-
|
|
2860
|
-
...(input.Protocol !== undefined && input.Protocol !== null && { Protocol: input.Protocol }),
|
|
2884
|
+
...(input.PortRanges != null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
|
|
2885
|
+
...(input.Protocol != null && { Protocol: input.Protocol }),
|
|
2861
2886
|
};
|
|
2862
2887
|
};
|
|
2863
2888
|
const serializeAws_json1_1CustomRoutingDestinationConfiguration = (input, context) => {
|
|
2864
2889
|
return {
|
|
2865
|
-
...(input.FromPort
|
|
2866
|
-
...(input.Protocols
|
|
2867
|
-
|
|
2868
|
-
...(input.ToPort !== undefined && input.ToPort !== null && { ToPort: input.ToPort }),
|
|
2890
|
+
...(input.FromPort != null && { FromPort: input.FromPort }),
|
|
2891
|
+
...(input.Protocols != null && { Protocols: serializeAws_json1_1CustomRoutingProtocols(input.Protocols, context) }),
|
|
2892
|
+
...(input.ToPort != null && { ToPort: input.ToPort }),
|
|
2869
2893
|
};
|
|
2870
2894
|
};
|
|
2871
2895
|
const serializeAws_json1_1CustomRoutingDestinationConfigurations = (input, context) => {
|
|
@@ -2880,7 +2904,7 @@ const serializeAws_json1_1CustomRoutingDestinationConfigurations = (input, conte
|
|
|
2880
2904
|
};
|
|
2881
2905
|
const serializeAws_json1_1CustomRoutingEndpointConfiguration = (input, context) => {
|
|
2882
2906
|
return {
|
|
2883
|
-
...(input.EndpointId
|
|
2907
|
+
...(input.EndpointId != null && { EndpointId: input.EndpointId }),
|
|
2884
2908
|
};
|
|
2885
2909
|
};
|
|
2886
2910
|
const serializeAws_json1_1CustomRoutingEndpointConfigurations = (input, context) => {
|
|
@@ -2905,104 +2929,90 @@ const serializeAws_json1_1CustomRoutingProtocols = (input, context) => {
|
|
|
2905
2929
|
};
|
|
2906
2930
|
const serializeAws_json1_1DeleteAcceleratorRequest = (input, context) => {
|
|
2907
2931
|
return {
|
|
2908
|
-
...(input.AcceleratorArn
|
|
2909
|
-
input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2932
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2910
2933
|
};
|
|
2911
2934
|
};
|
|
2912
2935
|
const serializeAws_json1_1DeleteCustomRoutingAcceleratorRequest = (input, context) => {
|
|
2913
2936
|
return {
|
|
2914
|
-
...(input.AcceleratorArn
|
|
2915
|
-
input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2937
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2916
2938
|
};
|
|
2917
2939
|
};
|
|
2918
2940
|
const serializeAws_json1_1DeleteCustomRoutingEndpointGroupRequest = (input, context) => {
|
|
2919
2941
|
return {
|
|
2920
|
-
...(input.EndpointGroupArn
|
|
2921
|
-
input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
2942
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
2922
2943
|
};
|
|
2923
2944
|
};
|
|
2924
2945
|
const serializeAws_json1_1DeleteCustomRoutingListenerRequest = (input, context) => {
|
|
2925
2946
|
return {
|
|
2926
|
-
...(input.ListenerArn
|
|
2947
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
2927
2948
|
};
|
|
2928
2949
|
};
|
|
2929
2950
|
const serializeAws_json1_1DeleteEndpointGroupRequest = (input, context) => {
|
|
2930
2951
|
return {
|
|
2931
|
-
...(input.EndpointGroupArn
|
|
2932
|
-
input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
2952
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
2933
2953
|
};
|
|
2934
2954
|
};
|
|
2935
2955
|
const serializeAws_json1_1DeleteListenerRequest = (input, context) => {
|
|
2936
2956
|
return {
|
|
2937
|
-
...(input.ListenerArn
|
|
2957
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
2938
2958
|
};
|
|
2939
2959
|
};
|
|
2940
2960
|
const serializeAws_json1_1DenyCustomRoutingTrafficRequest = (input, context) => {
|
|
2941
2961
|
return {
|
|
2942
|
-
...(input.DenyAllTrafficToEndpoint
|
|
2943
|
-
|
|
2944
|
-
...(input.DestinationAddresses !== undefined &&
|
|
2945
|
-
input.DestinationAddresses !== null && {
|
|
2962
|
+
...(input.DenyAllTrafficToEndpoint != null && { DenyAllTrafficToEndpoint: input.DenyAllTrafficToEndpoint }),
|
|
2963
|
+
...(input.DestinationAddresses != null && {
|
|
2946
2964
|
DestinationAddresses: serializeAws_json1_1DestinationAddresses(input.DestinationAddresses, context),
|
|
2947
2965
|
}),
|
|
2948
|
-
...(input.DestinationPorts
|
|
2949
|
-
input.DestinationPorts !== null && {
|
|
2966
|
+
...(input.DestinationPorts != null && {
|
|
2950
2967
|
DestinationPorts: serializeAws_json1_1DestinationPorts(input.DestinationPorts, context),
|
|
2951
2968
|
}),
|
|
2952
|
-
...(input.EndpointGroupArn
|
|
2953
|
-
|
|
2954
|
-
...(input.EndpointId !== undefined && input.EndpointId !== null && { EndpointId: input.EndpointId }),
|
|
2969
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
2970
|
+
...(input.EndpointId != null && { EndpointId: input.EndpointId }),
|
|
2955
2971
|
};
|
|
2956
2972
|
};
|
|
2957
2973
|
const serializeAws_json1_1DeprovisionByoipCidrRequest = (input, context) => {
|
|
2958
2974
|
return {
|
|
2959
|
-
...(input.Cidr
|
|
2975
|
+
...(input.Cidr != null && { Cidr: input.Cidr }),
|
|
2960
2976
|
};
|
|
2961
2977
|
};
|
|
2962
2978
|
const serializeAws_json1_1DescribeAcceleratorAttributesRequest = (input, context) => {
|
|
2963
2979
|
return {
|
|
2964
|
-
...(input.AcceleratorArn
|
|
2965
|
-
input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2980
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2966
2981
|
};
|
|
2967
2982
|
};
|
|
2968
2983
|
const serializeAws_json1_1DescribeAcceleratorRequest = (input, context) => {
|
|
2969
2984
|
return {
|
|
2970
|
-
...(input.AcceleratorArn
|
|
2971
|
-
input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2985
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2972
2986
|
};
|
|
2973
2987
|
};
|
|
2974
2988
|
const serializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesRequest = (input, context) => {
|
|
2975
2989
|
return {
|
|
2976
|
-
...(input.AcceleratorArn
|
|
2977
|
-
input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2990
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2978
2991
|
};
|
|
2979
2992
|
};
|
|
2980
2993
|
const serializeAws_json1_1DescribeCustomRoutingAcceleratorRequest = (input, context) => {
|
|
2981
2994
|
return {
|
|
2982
|
-
...(input.AcceleratorArn
|
|
2983
|
-
input.AcceleratorArn !== null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2995
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
2984
2996
|
};
|
|
2985
2997
|
};
|
|
2986
2998
|
const serializeAws_json1_1DescribeCustomRoutingEndpointGroupRequest = (input, context) => {
|
|
2987
2999
|
return {
|
|
2988
|
-
...(input.EndpointGroupArn
|
|
2989
|
-
input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
3000
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
2990
3001
|
};
|
|
2991
3002
|
};
|
|
2992
3003
|
const serializeAws_json1_1DescribeCustomRoutingListenerRequest = (input, context) => {
|
|
2993
3004
|
return {
|
|
2994
|
-
...(input.ListenerArn
|
|
3005
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
2995
3006
|
};
|
|
2996
3007
|
};
|
|
2997
3008
|
const serializeAws_json1_1DescribeEndpointGroupRequest = (input, context) => {
|
|
2998
3009
|
return {
|
|
2999
|
-
...(input.EndpointGroupArn
|
|
3000
|
-
input.EndpointGroupArn !== null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
3010
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
3001
3011
|
};
|
|
3002
3012
|
};
|
|
3003
3013
|
const serializeAws_json1_1DescribeListenerRequest = (input, context) => {
|
|
3004
3014
|
return {
|
|
3005
|
-
...(input.ListenerArn
|
|
3015
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
3006
3016
|
};
|
|
3007
3017
|
};
|
|
3008
3018
|
const serializeAws_json1_1DestinationAddresses = (input, context) => {
|
|
@@ -3027,10 +3037,11 @@ const serializeAws_json1_1DestinationPorts = (input, context) => {
|
|
|
3027
3037
|
};
|
|
3028
3038
|
const serializeAws_json1_1EndpointConfiguration = (input, context) => {
|
|
3029
3039
|
return {
|
|
3030
|
-
...(input.ClientIPPreservationEnabled
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
...(input.
|
|
3040
|
+
...(input.ClientIPPreservationEnabled != null && {
|
|
3041
|
+
ClientIPPreservationEnabled: input.ClientIPPreservationEnabled,
|
|
3042
|
+
}),
|
|
3043
|
+
...(input.EndpointId != null && { EndpointId: input.EndpointId }),
|
|
3044
|
+
...(input.Weight != null && { Weight: input.Weight }),
|
|
3034
3045
|
};
|
|
3035
3046
|
};
|
|
3036
3047
|
const serializeAws_json1_1EndpointConfigurations = (input, context) => {
|
|
@@ -3065,80 +3076,75 @@ const serializeAws_json1_1IpAddresses = (input, context) => {
|
|
|
3065
3076
|
};
|
|
3066
3077
|
const serializeAws_json1_1ListAcceleratorsRequest = (input, context) => {
|
|
3067
3078
|
return {
|
|
3068
|
-
...(input.MaxResults
|
|
3069
|
-
...(input.NextToken
|
|
3079
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3080
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3070
3081
|
};
|
|
3071
3082
|
};
|
|
3072
3083
|
const serializeAws_json1_1ListByoipCidrsRequest = (input, context) => {
|
|
3073
3084
|
return {
|
|
3074
|
-
...(input.MaxResults
|
|
3075
|
-
...(input.NextToken
|
|
3085
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3086
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3076
3087
|
};
|
|
3077
3088
|
};
|
|
3078
3089
|
const serializeAws_json1_1ListCustomRoutingAcceleratorsRequest = (input, context) => {
|
|
3079
3090
|
return {
|
|
3080
|
-
...(input.MaxResults
|
|
3081
|
-
...(input.NextToken
|
|
3091
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3092
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3082
3093
|
};
|
|
3083
3094
|
};
|
|
3084
3095
|
const serializeAws_json1_1ListCustomRoutingEndpointGroupsRequest = (input, context) => {
|
|
3085
3096
|
return {
|
|
3086
|
-
...(input.ListenerArn
|
|
3087
|
-
...(input.MaxResults
|
|
3088
|
-
...(input.NextToken
|
|
3097
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
3098
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3099
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3089
3100
|
};
|
|
3090
3101
|
};
|
|
3091
3102
|
const serializeAws_json1_1ListCustomRoutingListenersRequest = (input, context) => {
|
|
3092
3103
|
return {
|
|
3093
|
-
...(input.AcceleratorArn
|
|
3094
|
-
|
|
3095
|
-
...(input.
|
|
3096
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3104
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
3105
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3106
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3097
3107
|
};
|
|
3098
3108
|
};
|
|
3099
3109
|
const serializeAws_json1_1ListCustomRoutingPortMappingsByDestinationRequest = (input, context) => {
|
|
3100
3110
|
return {
|
|
3101
|
-
...(input.DestinationAddress
|
|
3102
|
-
|
|
3103
|
-
...(input.
|
|
3104
|
-
...(input.
|
|
3105
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3111
|
+
...(input.DestinationAddress != null && { DestinationAddress: input.DestinationAddress }),
|
|
3112
|
+
...(input.EndpointId != null && { EndpointId: input.EndpointId }),
|
|
3113
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3114
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3106
3115
|
};
|
|
3107
3116
|
};
|
|
3108
3117
|
const serializeAws_json1_1ListCustomRoutingPortMappingsRequest = (input, context) => {
|
|
3109
3118
|
return {
|
|
3110
|
-
...(input.AcceleratorArn
|
|
3111
|
-
|
|
3112
|
-
...(input.
|
|
3113
|
-
|
|
3114
|
-
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
3115
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3119
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
3120
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
3121
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3122
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3116
3123
|
};
|
|
3117
3124
|
};
|
|
3118
3125
|
const serializeAws_json1_1ListEndpointGroupsRequest = (input, context) => {
|
|
3119
3126
|
return {
|
|
3120
|
-
...(input.ListenerArn
|
|
3121
|
-
...(input.MaxResults
|
|
3122
|
-
...(input.NextToken
|
|
3127
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
3128
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3129
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3123
3130
|
};
|
|
3124
3131
|
};
|
|
3125
3132
|
const serializeAws_json1_1ListListenersRequest = (input, context) => {
|
|
3126
3133
|
return {
|
|
3127
|
-
...(input.AcceleratorArn
|
|
3128
|
-
|
|
3129
|
-
...(input.
|
|
3130
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
3134
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
3135
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
3136
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
3131
3137
|
};
|
|
3132
3138
|
};
|
|
3133
3139
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
3134
3140
|
return {
|
|
3135
|
-
...(input.ResourceArn
|
|
3141
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3136
3142
|
};
|
|
3137
3143
|
};
|
|
3138
3144
|
const serializeAws_json1_1PortOverride = (input, context) => {
|
|
3139
3145
|
return {
|
|
3140
|
-
...(input.EndpointPort
|
|
3141
|
-
...(input.ListenerPort
|
|
3146
|
+
...(input.EndpointPort != null && { EndpointPort: input.EndpointPort }),
|
|
3147
|
+
...(input.ListenerPort != null && { ListenerPort: input.ListenerPort }),
|
|
3142
3148
|
};
|
|
3143
3149
|
};
|
|
3144
3150
|
const serializeAws_json1_1PortOverrides = (input, context) => {
|
|
@@ -3153,8 +3159,8 @@ const serializeAws_json1_1PortOverrides = (input, context) => {
|
|
|
3153
3159
|
};
|
|
3154
3160
|
const serializeAws_json1_1PortRange = (input, context) => {
|
|
3155
3161
|
return {
|
|
3156
|
-
...(input.FromPort
|
|
3157
|
-
...(input.ToPort
|
|
3162
|
+
...(input.FromPort != null && { FromPort: input.FromPort }),
|
|
3163
|
+
...(input.ToPort != null && { ToPort: input.ToPort }),
|
|
3158
3164
|
};
|
|
3159
3165
|
};
|
|
3160
3166
|
const serializeAws_json1_1PortRanges = (input, context) => {
|
|
@@ -3169,25 +3175,22 @@ const serializeAws_json1_1PortRanges = (input, context) => {
|
|
|
3169
3175
|
};
|
|
3170
3176
|
const serializeAws_json1_1ProvisionByoipCidrRequest = (input, context) => {
|
|
3171
3177
|
return {
|
|
3172
|
-
...(input.Cidr
|
|
3173
|
-
...(input.CidrAuthorizationContext
|
|
3174
|
-
input.CidrAuthorizationContext !== null && {
|
|
3178
|
+
...(input.Cidr != null && { Cidr: input.Cidr }),
|
|
3179
|
+
...(input.CidrAuthorizationContext != null && {
|
|
3175
3180
|
CidrAuthorizationContext: serializeAws_json1_1CidrAuthorizationContext(input.CidrAuthorizationContext, context),
|
|
3176
3181
|
}),
|
|
3177
3182
|
};
|
|
3178
3183
|
};
|
|
3179
3184
|
const serializeAws_json1_1RemoveCustomRoutingEndpointsRequest = (input, context) => {
|
|
3180
3185
|
return {
|
|
3181
|
-
...(input.EndpointGroupArn
|
|
3182
|
-
|
|
3183
|
-
...(input.EndpointIds !== undefined &&
|
|
3184
|
-
input.EndpointIds !== null && { EndpointIds: serializeAws_json1_1EndpointIds(input.EndpointIds, context) }),
|
|
3186
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
3187
|
+
...(input.EndpointIds != null && { EndpointIds: serializeAws_json1_1EndpointIds(input.EndpointIds, context) }),
|
|
3185
3188
|
};
|
|
3186
3189
|
};
|
|
3187
3190
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
3188
3191
|
return {
|
|
3189
|
-
...(input.Key
|
|
3190
|
-
...(input.Value
|
|
3192
|
+
...(input.Key != null && { Key: input.Key }),
|
|
3193
|
+
...(input.Value != null && { Value: input.Value }),
|
|
3191
3194
|
};
|
|
3192
3195
|
};
|
|
3193
3196
|
const serializeAws_json1_1TagKeys = (input, context) => {
|
|
@@ -3202,8 +3205,8 @@ const serializeAws_json1_1TagKeys = (input, context) => {
|
|
|
3202
3205
|
};
|
|
3203
3206
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
3204
3207
|
return {
|
|
3205
|
-
...(input.ResourceArn
|
|
3206
|
-
...(input.Tags
|
|
3208
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3209
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1Tags(input.Tags, context) }),
|
|
3207
3210
|
};
|
|
3208
3211
|
};
|
|
3209
3212
|
const serializeAws_json1_1Tags = (input, context) => {
|
|
@@ -3218,114 +3221,91 @@ const serializeAws_json1_1Tags = (input, context) => {
|
|
|
3218
3221
|
};
|
|
3219
3222
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
3220
3223
|
return {
|
|
3221
|
-
...(input.ResourceArn
|
|
3222
|
-
...(input.TagKeys
|
|
3223
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
|
|
3224
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
3225
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeys(input.TagKeys, context) }),
|
|
3224
3226
|
};
|
|
3225
3227
|
};
|
|
3226
3228
|
const serializeAws_json1_1UpdateAcceleratorAttributesRequest = (input, context) => {
|
|
3227
3229
|
return {
|
|
3228
|
-
...(input.AcceleratorArn
|
|
3229
|
-
|
|
3230
|
-
...(input.
|
|
3231
|
-
|
|
3232
|
-
...(input.FlowLogsS3Bucket !== undefined &&
|
|
3233
|
-
input.FlowLogsS3Bucket !== null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
|
|
3234
|
-
...(input.FlowLogsS3Prefix !== undefined &&
|
|
3235
|
-
input.FlowLogsS3Prefix !== null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
|
|
3230
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
3231
|
+
...(input.FlowLogsEnabled != null && { FlowLogsEnabled: input.FlowLogsEnabled }),
|
|
3232
|
+
...(input.FlowLogsS3Bucket != null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
|
|
3233
|
+
...(input.FlowLogsS3Prefix != null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
|
|
3236
3234
|
};
|
|
3237
3235
|
};
|
|
3238
3236
|
const serializeAws_json1_1UpdateAcceleratorRequest = (input, context) => {
|
|
3239
3237
|
return {
|
|
3240
|
-
...(input.AcceleratorArn
|
|
3241
|
-
|
|
3242
|
-
...(input.
|
|
3243
|
-
...(input.
|
|
3244
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3238
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
3239
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3240
|
+
...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
|
|
3241
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3245
3242
|
};
|
|
3246
3243
|
};
|
|
3247
3244
|
const serializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesRequest = (input, context) => {
|
|
3248
3245
|
return {
|
|
3249
|
-
...(input.AcceleratorArn
|
|
3250
|
-
|
|
3251
|
-
...(input.
|
|
3252
|
-
|
|
3253
|
-
...(input.FlowLogsS3Bucket !== undefined &&
|
|
3254
|
-
input.FlowLogsS3Bucket !== null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
|
|
3255
|
-
...(input.FlowLogsS3Prefix !== undefined &&
|
|
3256
|
-
input.FlowLogsS3Prefix !== null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
|
|
3246
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
3247
|
+
...(input.FlowLogsEnabled != null && { FlowLogsEnabled: input.FlowLogsEnabled }),
|
|
3248
|
+
...(input.FlowLogsS3Bucket != null && { FlowLogsS3Bucket: input.FlowLogsS3Bucket }),
|
|
3249
|
+
...(input.FlowLogsS3Prefix != null && { FlowLogsS3Prefix: input.FlowLogsS3Prefix }),
|
|
3257
3250
|
};
|
|
3258
3251
|
};
|
|
3259
3252
|
const serializeAws_json1_1UpdateCustomRoutingAcceleratorRequest = (input, context) => {
|
|
3260
3253
|
return {
|
|
3261
|
-
...(input.AcceleratorArn
|
|
3262
|
-
|
|
3263
|
-
...(input.
|
|
3264
|
-
...(input.
|
|
3265
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
3254
|
+
...(input.AcceleratorArn != null && { AcceleratorArn: input.AcceleratorArn }),
|
|
3255
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3256
|
+
...(input.IpAddressType != null && { IpAddressType: input.IpAddressType }),
|
|
3257
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3266
3258
|
};
|
|
3267
3259
|
};
|
|
3268
3260
|
const serializeAws_json1_1UpdateCustomRoutingListenerRequest = (input, context) => {
|
|
3269
3261
|
return {
|
|
3270
|
-
...(input.ListenerArn
|
|
3271
|
-
...(input.PortRanges
|
|
3272
|
-
input.PortRanges !== null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
|
|
3262
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
3263
|
+
...(input.PortRanges != null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
|
|
3273
3264
|
};
|
|
3274
3265
|
};
|
|
3275
3266
|
const serializeAws_json1_1UpdateEndpointGroupRequest = (input, context) => {
|
|
3276
3267
|
return {
|
|
3277
|
-
...(input.EndpointConfigurations
|
|
3278
|
-
input.EndpointConfigurations !== null && {
|
|
3268
|
+
...(input.EndpointConfigurations != null && {
|
|
3279
3269
|
EndpointConfigurations: serializeAws_json1_1EndpointConfigurations(input.EndpointConfigurations, context),
|
|
3280
3270
|
}),
|
|
3281
|
-
...(input.EndpointGroupArn
|
|
3282
|
-
|
|
3283
|
-
...(input.
|
|
3284
|
-
|
|
3285
|
-
...(input.
|
|
3286
|
-
|
|
3287
|
-
...(input.HealthCheckPort !== undefined &&
|
|
3288
|
-
input.HealthCheckPort !== null && { HealthCheckPort: input.HealthCheckPort }),
|
|
3289
|
-
...(input.HealthCheckProtocol !== undefined &&
|
|
3290
|
-
input.HealthCheckProtocol !== null && { HealthCheckProtocol: input.HealthCheckProtocol }),
|
|
3291
|
-
...(input.PortOverrides !== undefined &&
|
|
3292
|
-
input.PortOverrides !== null && {
|
|
3271
|
+
...(input.EndpointGroupArn != null && { EndpointGroupArn: input.EndpointGroupArn }),
|
|
3272
|
+
...(input.HealthCheckIntervalSeconds != null && { HealthCheckIntervalSeconds: input.HealthCheckIntervalSeconds }),
|
|
3273
|
+
...(input.HealthCheckPath != null && { HealthCheckPath: input.HealthCheckPath }),
|
|
3274
|
+
...(input.HealthCheckPort != null && { HealthCheckPort: input.HealthCheckPort }),
|
|
3275
|
+
...(input.HealthCheckProtocol != null && { HealthCheckProtocol: input.HealthCheckProtocol }),
|
|
3276
|
+
...(input.PortOverrides != null && {
|
|
3293
3277
|
PortOverrides: serializeAws_json1_1PortOverrides(input.PortOverrides, context),
|
|
3294
3278
|
}),
|
|
3295
|
-
...(input.ThresholdCount
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3279
|
+
...(input.ThresholdCount != null && { ThresholdCount: input.ThresholdCount }),
|
|
3280
|
+
...(input.TrafficDialPercentage != null && {
|
|
3281
|
+
TrafficDialPercentage: (0, smithy_client_1.serializeFloat)(input.TrafficDialPercentage),
|
|
3282
|
+
}),
|
|
3299
3283
|
};
|
|
3300
3284
|
};
|
|
3301
3285
|
const serializeAws_json1_1UpdateListenerRequest = (input, context) => {
|
|
3302
3286
|
return {
|
|
3303
|
-
...(input.ClientAffinity
|
|
3304
|
-
|
|
3305
|
-
...(input.
|
|
3306
|
-
...(input.
|
|
3307
|
-
input.PortRanges !== null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
|
|
3308
|
-
...(input.Protocol !== undefined && input.Protocol !== null && { Protocol: input.Protocol }),
|
|
3287
|
+
...(input.ClientAffinity != null && { ClientAffinity: input.ClientAffinity }),
|
|
3288
|
+
...(input.ListenerArn != null && { ListenerArn: input.ListenerArn }),
|
|
3289
|
+
...(input.PortRanges != null && { PortRanges: serializeAws_json1_1PortRanges(input.PortRanges, context) }),
|
|
3290
|
+
...(input.Protocol != null && { Protocol: input.Protocol }),
|
|
3309
3291
|
};
|
|
3310
3292
|
};
|
|
3311
3293
|
const serializeAws_json1_1WithdrawByoipCidrRequest = (input, context) => {
|
|
3312
3294
|
return {
|
|
3313
|
-
...(input.Cidr
|
|
3295
|
+
...(input.Cidr != null && { Cidr: input.Cidr }),
|
|
3314
3296
|
};
|
|
3315
3297
|
};
|
|
3316
3298
|
const deserializeAws_json1_1Accelerator = (output, context) => {
|
|
3317
3299
|
return {
|
|
3318
3300
|
AcceleratorArn: (0, smithy_client_1.expectString)(output.AcceleratorArn),
|
|
3319
|
-
CreatedTime: output.CreatedTime
|
|
3301
|
+
CreatedTime: output.CreatedTime != null
|
|
3320
3302
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
3321
3303
|
: undefined,
|
|
3322
3304
|
DnsName: (0, smithy_client_1.expectString)(output.DnsName),
|
|
3323
3305
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3324
3306
|
IpAddressType: (0, smithy_client_1.expectString)(output.IpAddressType),
|
|
3325
|
-
IpSets: output.IpSets
|
|
3326
|
-
|
|
3327
|
-
: undefined,
|
|
3328
|
-
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3307
|
+
IpSets: output.IpSets != null ? deserializeAws_json1_1IpSets(output.IpSets, context) : undefined,
|
|
3308
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3329
3309
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3330
3310
|
: undefined,
|
|
3331
3311
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -3367,7 +3347,7 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
|
3367
3347
|
};
|
|
3368
3348
|
const deserializeAws_json1_1AddCustomRoutingEndpointsResponse = (output, context) => {
|
|
3369
3349
|
return {
|
|
3370
|
-
EndpointDescriptions: output.EndpointDescriptions
|
|
3350
|
+
EndpointDescriptions: output.EndpointDescriptions != null
|
|
3371
3351
|
? deserializeAws_json1_1CustomRoutingEndpointDescriptions(output.EndpointDescriptions, context)
|
|
3372
3352
|
: undefined,
|
|
3373
3353
|
EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
|
|
@@ -3375,9 +3355,7 @@ const deserializeAws_json1_1AddCustomRoutingEndpointsResponse = (output, context
|
|
|
3375
3355
|
};
|
|
3376
3356
|
const deserializeAws_json1_1AdvertiseByoipCidrResponse = (output, context) => {
|
|
3377
3357
|
return {
|
|
3378
|
-
ByoipCidr: output.ByoipCidr
|
|
3379
|
-
? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context)
|
|
3380
|
-
: undefined,
|
|
3358
|
+
ByoipCidr: output.ByoipCidr != null ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context) : undefined,
|
|
3381
3359
|
};
|
|
3382
3360
|
};
|
|
3383
3361
|
const deserializeAws_json1_1AssociatedEndpointGroupFoundException = (output, context) => {
|
|
@@ -3393,18 +3371,14 @@ const deserializeAws_json1_1AssociatedListenerFoundException = (output, context)
|
|
|
3393
3371
|
const deserializeAws_json1_1ByoipCidr = (output, context) => {
|
|
3394
3372
|
return {
|
|
3395
3373
|
Cidr: (0, smithy_client_1.expectString)(output.Cidr),
|
|
3396
|
-
Events: output.Events
|
|
3397
|
-
? deserializeAws_json1_1ByoipCidrEvents(output.Events, context)
|
|
3398
|
-
: undefined,
|
|
3374
|
+
Events: output.Events != null ? deserializeAws_json1_1ByoipCidrEvents(output.Events, context) : undefined,
|
|
3399
3375
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
3400
3376
|
};
|
|
3401
3377
|
};
|
|
3402
3378
|
const deserializeAws_json1_1ByoipCidrEvent = (output, context) => {
|
|
3403
3379
|
return {
|
|
3404
3380
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3405
|
-
Timestamp: output.Timestamp
|
|
3406
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
3407
|
-
: undefined,
|
|
3381
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
3408
3382
|
};
|
|
3409
3383
|
};
|
|
3410
3384
|
const deserializeAws_json1_1ByoipCidrEvents = (output, context) => {
|
|
@@ -3441,59 +3415,49 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
3441
3415
|
};
|
|
3442
3416
|
const deserializeAws_json1_1CreateAcceleratorResponse = (output, context) => {
|
|
3443
3417
|
return {
|
|
3444
|
-
Accelerator: output.Accelerator
|
|
3445
|
-
? deserializeAws_json1_1Accelerator(output.Accelerator, context)
|
|
3446
|
-
: undefined,
|
|
3418
|
+
Accelerator: output.Accelerator != null ? deserializeAws_json1_1Accelerator(output.Accelerator, context) : undefined,
|
|
3447
3419
|
};
|
|
3448
3420
|
};
|
|
3449
3421
|
const deserializeAws_json1_1CreateCustomRoutingAcceleratorResponse = (output, context) => {
|
|
3450
3422
|
return {
|
|
3451
|
-
Accelerator: output.Accelerator
|
|
3423
|
+
Accelerator: output.Accelerator != null
|
|
3452
3424
|
? deserializeAws_json1_1CustomRoutingAccelerator(output.Accelerator, context)
|
|
3453
3425
|
: undefined,
|
|
3454
3426
|
};
|
|
3455
3427
|
};
|
|
3456
3428
|
const deserializeAws_json1_1CreateCustomRoutingEndpointGroupResponse = (output, context) => {
|
|
3457
3429
|
return {
|
|
3458
|
-
EndpointGroup: output.EndpointGroup
|
|
3430
|
+
EndpointGroup: output.EndpointGroup != null
|
|
3459
3431
|
? deserializeAws_json1_1CustomRoutingEndpointGroup(output.EndpointGroup, context)
|
|
3460
3432
|
: undefined,
|
|
3461
3433
|
};
|
|
3462
3434
|
};
|
|
3463
3435
|
const deserializeAws_json1_1CreateCustomRoutingListenerResponse = (output, context) => {
|
|
3464
3436
|
return {
|
|
3465
|
-
Listener: output.Listener
|
|
3466
|
-
? deserializeAws_json1_1CustomRoutingListener(output.Listener, context)
|
|
3467
|
-
: undefined,
|
|
3437
|
+
Listener: output.Listener != null ? deserializeAws_json1_1CustomRoutingListener(output.Listener, context) : undefined,
|
|
3468
3438
|
};
|
|
3469
3439
|
};
|
|
3470
3440
|
const deserializeAws_json1_1CreateEndpointGroupResponse = (output, context) => {
|
|
3471
3441
|
return {
|
|
3472
|
-
EndpointGroup: output.EndpointGroup
|
|
3473
|
-
? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context)
|
|
3474
|
-
: undefined,
|
|
3442
|
+
EndpointGroup: output.EndpointGroup != null ? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context) : undefined,
|
|
3475
3443
|
};
|
|
3476
3444
|
};
|
|
3477
3445
|
const deserializeAws_json1_1CreateListenerResponse = (output, context) => {
|
|
3478
3446
|
return {
|
|
3479
|
-
Listener: output.Listener
|
|
3480
|
-
? deserializeAws_json1_1Listener(output.Listener, context)
|
|
3481
|
-
: undefined,
|
|
3447
|
+
Listener: output.Listener != null ? deserializeAws_json1_1Listener(output.Listener, context) : undefined,
|
|
3482
3448
|
};
|
|
3483
3449
|
};
|
|
3484
3450
|
const deserializeAws_json1_1CustomRoutingAccelerator = (output, context) => {
|
|
3485
3451
|
return {
|
|
3486
3452
|
AcceleratorArn: (0, smithy_client_1.expectString)(output.AcceleratorArn),
|
|
3487
|
-
CreatedTime: output.CreatedTime
|
|
3453
|
+
CreatedTime: output.CreatedTime != null
|
|
3488
3454
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
|
|
3489
3455
|
: undefined,
|
|
3490
3456
|
DnsName: (0, smithy_client_1.expectString)(output.DnsName),
|
|
3491
3457
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3492
3458
|
IpAddressType: (0, smithy_client_1.expectString)(output.IpAddressType),
|
|
3493
|
-
IpSets: output.IpSets
|
|
3494
|
-
|
|
3495
|
-
: undefined,
|
|
3496
|
-
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
3459
|
+
IpSets: output.IpSets != null ? deserializeAws_json1_1IpSets(output.IpSets, context) : undefined,
|
|
3460
|
+
LastModifiedTime: output.LastModifiedTime != null
|
|
3497
3461
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3498
3462
|
: undefined,
|
|
3499
3463
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -3521,9 +3485,7 @@ const deserializeAws_json1_1CustomRoutingAccelerators = (output, context) => {
|
|
|
3521
3485
|
const deserializeAws_json1_1CustomRoutingDestinationDescription = (output, context) => {
|
|
3522
3486
|
return {
|
|
3523
3487
|
FromPort: (0, smithy_client_1.expectInt32)(output.FromPort),
|
|
3524
|
-
Protocols: output.Protocols
|
|
3525
|
-
? deserializeAws_json1_1Protocols(output.Protocols, context)
|
|
3526
|
-
: undefined,
|
|
3488
|
+
Protocols: output.Protocols != null ? deserializeAws_json1_1Protocols(output.Protocols, context) : undefined,
|
|
3527
3489
|
ToPort: (0, smithy_client_1.expectInt32)(output.ToPort),
|
|
3528
3490
|
};
|
|
3529
3491
|
};
|
|
@@ -3556,10 +3518,10 @@ const deserializeAws_json1_1CustomRoutingEndpointDescriptions = (output, context
|
|
|
3556
3518
|
};
|
|
3557
3519
|
const deserializeAws_json1_1CustomRoutingEndpointGroup = (output, context) => {
|
|
3558
3520
|
return {
|
|
3559
|
-
DestinationDescriptions: output.DestinationDescriptions
|
|
3521
|
+
DestinationDescriptions: output.DestinationDescriptions != null
|
|
3560
3522
|
? deserializeAws_json1_1CustomRoutingDestinationDescriptions(output.DestinationDescriptions, context)
|
|
3561
3523
|
: undefined,
|
|
3562
|
-
EndpointDescriptions: output.EndpointDescriptions
|
|
3524
|
+
EndpointDescriptions: output.EndpointDescriptions != null
|
|
3563
3525
|
? deserializeAws_json1_1CustomRoutingEndpointDescriptions(output.EndpointDescriptions, context)
|
|
3564
3526
|
: undefined,
|
|
3565
3527
|
EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
|
|
@@ -3580,9 +3542,7 @@ const deserializeAws_json1_1CustomRoutingEndpointGroups = (output, context) => {
|
|
|
3580
3542
|
const deserializeAws_json1_1CustomRoutingListener = (output, context) => {
|
|
3581
3543
|
return {
|
|
3582
3544
|
ListenerArn: (0, smithy_client_1.expectString)(output.ListenerArn),
|
|
3583
|
-
PortRanges: output.PortRanges
|
|
3584
|
-
? deserializeAws_json1_1PortRanges(output.PortRanges, context)
|
|
3585
|
-
: undefined,
|
|
3545
|
+
PortRanges: output.PortRanges != null ? deserializeAws_json1_1PortRanges(output.PortRanges, context) : undefined,
|
|
3586
3546
|
};
|
|
3587
3547
|
};
|
|
3588
3548
|
const deserializeAws_json1_1CustomRoutingListeners = (output, context) => {
|
|
@@ -3609,74 +3569,64 @@ const deserializeAws_json1_1CustomRoutingProtocols = (output, context) => {
|
|
|
3609
3569
|
};
|
|
3610
3570
|
const deserializeAws_json1_1DeprovisionByoipCidrResponse = (output, context) => {
|
|
3611
3571
|
return {
|
|
3612
|
-
ByoipCidr: output.ByoipCidr
|
|
3613
|
-
? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context)
|
|
3614
|
-
: undefined,
|
|
3572
|
+
ByoipCidr: output.ByoipCidr != null ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context) : undefined,
|
|
3615
3573
|
};
|
|
3616
3574
|
};
|
|
3617
3575
|
const deserializeAws_json1_1DescribeAcceleratorAttributesResponse = (output, context) => {
|
|
3618
3576
|
return {
|
|
3619
|
-
AcceleratorAttributes: output.AcceleratorAttributes
|
|
3577
|
+
AcceleratorAttributes: output.AcceleratorAttributes != null
|
|
3620
3578
|
? deserializeAws_json1_1AcceleratorAttributes(output.AcceleratorAttributes, context)
|
|
3621
3579
|
: undefined,
|
|
3622
3580
|
};
|
|
3623
3581
|
};
|
|
3624
3582
|
const deserializeAws_json1_1DescribeAcceleratorResponse = (output, context) => {
|
|
3625
3583
|
return {
|
|
3626
|
-
Accelerator: output.Accelerator
|
|
3627
|
-
? deserializeAws_json1_1Accelerator(output.Accelerator, context)
|
|
3628
|
-
: undefined,
|
|
3584
|
+
Accelerator: output.Accelerator != null ? deserializeAws_json1_1Accelerator(output.Accelerator, context) : undefined,
|
|
3629
3585
|
};
|
|
3630
3586
|
};
|
|
3631
3587
|
const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesResponse = (output, context) => {
|
|
3632
3588
|
return {
|
|
3633
|
-
AcceleratorAttributes: output.AcceleratorAttributes
|
|
3589
|
+
AcceleratorAttributes: output.AcceleratorAttributes != null
|
|
3634
3590
|
? deserializeAws_json1_1CustomRoutingAcceleratorAttributes(output.AcceleratorAttributes, context)
|
|
3635
3591
|
: undefined,
|
|
3636
3592
|
};
|
|
3637
3593
|
};
|
|
3638
3594
|
const deserializeAws_json1_1DescribeCustomRoutingAcceleratorResponse = (output, context) => {
|
|
3639
3595
|
return {
|
|
3640
|
-
Accelerator: output.Accelerator
|
|
3596
|
+
Accelerator: output.Accelerator != null
|
|
3641
3597
|
? deserializeAws_json1_1CustomRoutingAccelerator(output.Accelerator, context)
|
|
3642
3598
|
: undefined,
|
|
3643
3599
|
};
|
|
3644
3600
|
};
|
|
3645
3601
|
const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupResponse = (output, context) => {
|
|
3646
3602
|
return {
|
|
3647
|
-
EndpointGroup: output.EndpointGroup
|
|
3603
|
+
EndpointGroup: output.EndpointGroup != null
|
|
3648
3604
|
? deserializeAws_json1_1CustomRoutingEndpointGroup(output.EndpointGroup, context)
|
|
3649
3605
|
: undefined,
|
|
3650
3606
|
};
|
|
3651
3607
|
};
|
|
3652
3608
|
const deserializeAws_json1_1DescribeCustomRoutingListenerResponse = (output, context) => {
|
|
3653
3609
|
return {
|
|
3654
|
-
Listener: output.Listener
|
|
3655
|
-
? deserializeAws_json1_1CustomRoutingListener(output.Listener, context)
|
|
3656
|
-
: undefined,
|
|
3610
|
+
Listener: output.Listener != null ? deserializeAws_json1_1CustomRoutingListener(output.Listener, context) : undefined,
|
|
3657
3611
|
};
|
|
3658
3612
|
};
|
|
3659
3613
|
const deserializeAws_json1_1DescribeEndpointGroupResponse = (output, context) => {
|
|
3660
3614
|
return {
|
|
3661
|
-
EndpointGroup: output.EndpointGroup
|
|
3662
|
-
? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context)
|
|
3663
|
-
: undefined,
|
|
3615
|
+
EndpointGroup: output.EndpointGroup != null ? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context) : undefined,
|
|
3664
3616
|
};
|
|
3665
3617
|
};
|
|
3666
3618
|
const deserializeAws_json1_1DescribeListenerResponse = (output, context) => {
|
|
3667
3619
|
return {
|
|
3668
|
-
Listener: output.Listener
|
|
3669
|
-
? deserializeAws_json1_1Listener(output.Listener, context)
|
|
3670
|
-
: undefined,
|
|
3620
|
+
Listener: output.Listener != null ? deserializeAws_json1_1Listener(output.Listener, context) : undefined,
|
|
3671
3621
|
};
|
|
3672
3622
|
};
|
|
3673
3623
|
const deserializeAws_json1_1DestinationPortMapping = (output, context) => {
|
|
3674
3624
|
return {
|
|
3675
3625
|
AcceleratorArn: (0, smithy_client_1.expectString)(output.AcceleratorArn),
|
|
3676
|
-
AcceleratorSocketAddresses: output.AcceleratorSocketAddresses
|
|
3626
|
+
AcceleratorSocketAddresses: output.AcceleratorSocketAddresses != null
|
|
3677
3627
|
? deserializeAws_json1_1SocketAddresses(output.AcceleratorSocketAddresses, context)
|
|
3678
3628
|
: undefined,
|
|
3679
|
-
DestinationSocketAddress: output.DestinationSocketAddress
|
|
3629
|
+
DestinationSocketAddress: output.DestinationSocketAddress != null
|
|
3680
3630
|
? deserializeAws_json1_1SocketAddress(output.DestinationSocketAddress, context)
|
|
3681
3631
|
: undefined,
|
|
3682
3632
|
DestinationTrafficState: (0, smithy_client_1.expectString)(output.DestinationTrafficState),
|
|
@@ -3724,7 +3674,7 @@ const deserializeAws_json1_1EndpointDescriptions = (output, context) => {
|
|
|
3724
3674
|
};
|
|
3725
3675
|
const deserializeAws_json1_1EndpointGroup = (output, context) => {
|
|
3726
3676
|
return {
|
|
3727
|
-
EndpointDescriptions: output.EndpointDescriptions
|
|
3677
|
+
EndpointDescriptions: output.EndpointDescriptions != null
|
|
3728
3678
|
? deserializeAws_json1_1EndpointDescriptions(output.EndpointDescriptions, context)
|
|
3729
3679
|
: undefined,
|
|
3730
3680
|
EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
|
|
@@ -3733,9 +3683,7 @@ const deserializeAws_json1_1EndpointGroup = (output, context) => {
|
|
|
3733
3683
|
HealthCheckPath: (0, smithy_client_1.expectString)(output.HealthCheckPath),
|
|
3734
3684
|
HealthCheckPort: (0, smithy_client_1.expectInt32)(output.HealthCheckPort),
|
|
3735
3685
|
HealthCheckProtocol: (0, smithy_client_1.expectString)(output.HealthCheckProtocol),
|
|
3736
|
-
PortOverrides: output.PortOverrides
|
|
3737
|
-
? deserializeAws_json1_1PortOverrides(output.PortOverrides, context)
|
|
3738
|
-
: undefined,
|
|
3686
|
+
PortOverrides: output.PortOverrides != null ? deserializeAws_json1_1PortOverrides(output.PortOverrides, context) : undefined,
|
|
3739
3687
|
ThresholdCount: (0, smithy_client_1.expectInt32)(output.ThresholdCount),
|
|
3740
3688
|
TrafficDialPercentage: (0, smithy_client_1.limitedParseFloat32)(output.TrafficDialPercentage),
|
|
3741
3689
|
};
|
|
@@ -3804,9 +3752,7 @@ const deserializeAws_json1_1IpAddresses = (output, context) => {
|
|
|
3804
3752
|
};
|
|
3805
3753
|
const deserializeAws_json1_1IpSet = (output, context) => {
|
|
3806
3754
|
return {
|
|
3807
|
-
IpAddresses: output.IpAddresses
|
|
3808
|
-
? deserializeAws_json1_1IpAddresses(output.IpAddresses, context)
|
|
3809
|
-
: undefined,
|
|
3755
|
+
IpAddresses: output.IpAddresses != null ? deserializeAws_json1_1IpAddresses(output.IpAddresses, context) : undefined,
|
|
3810
3756
|
IpFamily: (0, smithy_client_1.expectString)(output.IpFamily),
|
|
3811
3757
|
};
|
|
3812
3758
|
};
|
|
@@ -3828,23 +3774,19 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
3828
3774
|
};
|
|
3829
3775
|
const deserializeAws_json1_1ListAcceleratorsResponse = (output, context) => {
|
|
3830
3776
|
return {
|
|
3831
|
-
Accelerators: output.Accelerators
|
|
3832
|
-
? deserializeAws_json1_1Accelerators(output.Accelerators, context)
|
|
3833
|
-
: undefined,
|
|
3777
|
+
Accelerators: output.Accelerators != null ? deserializeAws_json1_1Accelerators(output.Accelerators, context) : undefined,
|
|
3834
3778
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3835
3779
|
};
|
|
3836
3780
|
};
|
|
3837
3781
|
const deserializeAws_json1_1ListByoipCidrsResponse = (output, context) => {
|
|
3838
3782
|
return {
|
|
3839
|
-
ByoipCidrs: output.ByoipCidrs
|
|
3840
|
-
? deserializeAws_json1_1ByoipCidrs(output.ByoipCidrs, context)
|
|
3841
|
-
: undefined,
|
|
3783
|
+
ByoipCidrs: output.ByoipCidrs != null ? deserializeAws_json1_1ByoipCidrs(output.ByoipCidrs, context) : undefined,
|
|
3842
3784
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3843
3785
|
};
|
|
3844
3786
|
};
|
|
3845
3787
|
const deserializeAws_json1_1ListCustomRoutingAcceleratorsResponse = (output, context) => {
|
|
3846
3788
|
return {
|
|
3847
|
-
Accelerators: output.Accelerators
|
|
3789
|
+
Accelerators: output.Accelerators != null
|
|
3848
3790
|
? deserializeAws_json1_1CustomRoutingAccelerators(output.Accelerators, context)
|
|
3849
3791
|
: undefined,
|
|
3850
3792
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3852,7 +3794,7 @@ const deserializeAws_json1_1ListCustomRoutingAcceleratorsResponse = (output, con
|
|
|
3852
3794
|
};
|
|
3853
3795
|
const deserializeAws_json1_1ListCustomRoutingEndpointGroupsResponse = (output, context) => {
|
|
3854
3796
|
return {
|
|
3855
|
-
EndpointGroups: output.EndpointGroups
|
|
3797
|
+
EndpointGroups: output.EndpointGroups != null
|
|
3856
3798
|
? deserializeAws_json1_1CustomRoutingEndpointGroups(output.EndpointGroups, context)
|
|
3857
3799
|
: undefined,
|
|
3858
3800
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3860,15 +3802,13 @@ const deserializeAws_json1_1ListCustomRoutingEndpointGroupsResponse = (output, c
|
|
|
3860
3802
|
};
|
|
3861
3803
|
const deserializeAws_json1_1ListCustomRoutingListenersResponse = (output, context) => {
|
|
3862
3804
|
return {
|
|
3863
|
-
Listeners: output.Listeners
|
|
3864
|
-
? deserializeAws_json1_1CustomRoutingListeners(output.Listeners, context)
|
|
3865
|
-
: undefined,
|
|
3805
|
+
Listeners: output.Listeners != null ? deserializeAws_json1_1CustomRoutingListeners(output.Listeners, context) : undefined,
|
|
3866
3806
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3867
3807
|
};
|
|
3868
3808
|
};
|
|
3869
3809
|
const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationResponse = (output, context) => {
|
|
3870
3810
|
return {
|
|
3871
|
-
DestinationPortMappings: output.DestinationPortMappings
|
|
3811
|
+
DestinationPortMappings: output.DestinationPortMappings != null
|
|
3872
3812
|
? deserializeAws_json1_1DestinationPortMappings(output.DestinationPortMappings, context)
|
|
3873
3813
|
: undefined,
|
|
3874
3814
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
@@ -3877,16 +3817,12 @@ const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationResponse =
|
|
|
3877
3817
|
const deserializeAws_json1_1ListCustomRoutingPortMappingsResponse = (output, context) => {
|
|
3878
3818
|
return {
|
|
3879
3819
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3880
|
-
PortMappings: output.PortMappings
|
|
3881
|
-
? deserializeAws_json1_1PortMappings(output.PortMappings, context)
|
|
3882
|
-
: undefined,
|
|
3820
|
+
PortMappings: output.PortMappings != null ? deserializeAws_json1_1PortMappings(output.PortMappings, context) : undefined,
|
|
3883
3821
|
};
|
|
3884
3822
|
};
|
|
3885
3823
|
const deserializeAws_json1_1ListEndpointGroupsResponse = (output, context) => {
|
|
3886
3824
|
return {
|
|
3887
|
-
EndpointGroups: output.EndpointGroups
|
|
3888
|
-
? deserializeAws_json1_1EndpointGroups(output.EndpointGroups, context)
|
|
3889
|
-
: undefined,
|
|
3825
|
+
EndpointGroups: output.EndpointGroups != null ? deserializeAws_json1_1EndpointGroups(output.EndpointGroups, context) : undefined,
|
|
3890
3826
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3891
3827
|
};
|
|
3892
3828
|
};
|
|
@@ -3894,9 +3830,7 @@ const deserializeAws_json1_1Listener = (output, context) => {
|
|
|
3894
3830
|
return {
|
|
3895
3831
|
ClientAffinity: (0, smithy_client_1.expectString)(output.ClientAffinity),
|
|
3896
3832
|
ListenerArn: (0, smithy_client_1.expectString)(output.ListenerArn),
|
|
3897
|
-
PortRanges: output.PortRanges
|
|
3898
|
-
? deserializeAws_json1_1PortRanges(output.PortRanges, context)
|
|
3899
|
-
: undefined,
|
|
3833
|
+
PortRanges: output.PortRanges != null ? deserializeAws_json1_1PortRanges(output.PortRanges, context) : undefined,
|
|
3900
3834
|
Protocol: (0, smithy_client_1.expectString)(output.Protocol),
|
|
3901
3835
|
};
|
|
3902
3836
|
};
|
|
@@ -3918,29 +3852,25 @@ const deserializeAws_json1_1Listeners = (output, context) => {
|
|
|
3918
3852
|
};
|
|
3919
3853
|
const deserializeAws_json1_1ListListenersResponse = (output, context) => {
|
|
3920
3854
|
return {
|
|
3921
|
-
Listeners: output.Listeners
|
|
3922
|
-
? deserializeAws_json1_1Listeners(output.Listeners, context)
|
|
3923
|
-
: undefined,
|
|
3855
|
+
Listeners: output.Listeners != null ? deserializeAws_json1_1Listeners(output.Listeners, context) : undefined,
|
|
3924
3856
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3925
3857
|
};
|
|
3926
3858
|
};
|
|
3927
3859
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
3928
3860
|
return {
|
|
3929
|
-
Tags: output.Tags
|
|
3861
|
+
Tags: output.Tags != null ? deserializeAws_json1_1Tags(output.Tags, context) : undefined,
|
|
3930
3862
|
};
|
|
3931
3863
|
};
|
|
3932
3864
|
const deserializeAws_json1_1PortMapping = (output, context) => {
|
|
3933
3865
|
return {
|
|
3934
3866
|
AcceleratorPort: (0, smithy_client_1.expectInt32)(output.AcceleratorPort),
|
|
3935
|
-
DestinationSocketAddress: output.DestinationSocketAddress
|
|
3867
|
+
DestinationSocketAddress: output.DestinationSocketAddress != null
|
|
3936
3868
|
? deserializeAws_json1_1SocketAddress(output.DestinationSocketAddress, context)
|
|
3937
3869
|
: undefined,
|
|
3938
3870
|
DestinationTrafficState: (0, smithy_client_1.expectString)(output.DestinationTrafficState),
|
|
3939
3871
|
EndpointGroupArn: (0, smithy_client_1.expectString)(output.EndpointGroupArn),
|
|
3940
3872
|
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
3941
|
-
Protocols: output.Protocols
|
|
3942
|
-
? deserializeAws_json1_1CustomRoutingProtocols(output.Protocols, context)
|
|
3943
|
-
: undefined,
|
|
3873
|
+
Protocols: output.Protocols != null ? deserializeAws_json1_1CustomRoutingProtocols(output.Protocols, context) : undefined,
|
|
3944
3874
|
};
|
|
3945
3875
|
};
|
|
3946
3876
|
const deserializeAws_json1_1PortMappings = (output, context) => {
|
|
@@ -4001,9 +3931,7 @@ const deserializeAws_json1_1Protocols = (output, context) => {
|
|
|
4001
3931
|
};
|
|
4002
3932
|
const deserializeAws_json1_1ProvisionByoipCidrResponse = (output, context) => {
|
|
4003
3933
|
return {
|
|
4004
|
-
ByoipCidr: output.ByoipCidr
|
|
4005
|
-
? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context)
|
|
4006
|
-
: undefined,
|
|
3934
|
+
ByoipCidr: output.ByoipCidr != null ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context) : undefined,
|
|
4007
3935
|
};
|
|
4008
3936
|
};
|
|
4009
3937
|
const deserializeAws_json1_1SocketAddress = (output, context) => {
|
|
@@ -4048,58 +3976,48 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
4048
3976
|
};
|
|
4049
3977
|
const deserializeAws_json1_1UpdateAcceleratorAttributesResponse = (output, context) => {
|
|
4050
3978
|
return {
|
|
4051
|
-
AcceleratorAttributes: output.AcceleratorAttributes
|
|
3979
|
+
AcceleratorAttributes: output.AcceleratorAttributes != null
|
|
4052
3980
|
? deserializeAws_json1_1AcceleratorAttributes(output.AcceleratorAttributes, context)
|
|
4053
3981
|
: undefined,
|
|
4054
3982
|
};
|
|
4055
3983
|
};
|
|
4056
3984
|
const deserializeAws_json1_1UpdateAcceleratorResponse = (output, context) => {
|
|
4057
3985
|
return {
|
|
4058
|
-
Accelerator: output.Accelerator
|
|
4059
|
-
? deserializeAws_json1_1Accelerator(output.Accelerator, context)
|
|
4060
|
-
: undefined,
|
|
3986
|
+
Accelerator: output.Accelerator != null ? deserializeAws_json1_1Accelerator(output.Accelerator, context) : undefined,
|
|
4061
3987
|
};
|
|
4062
3988
|
};
|
|
4063
3989
|
const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesResponse = (output, context) => {
|
|
4064
3990
|
return {
|
|
4065
|
-
AcceleratorAttributes: output.AcceleratorAttributes
|
|
3991
|
+
AcceleratorAttributes: output.AcceleratorAttributes != null
|
|
4066
3992
|
? deserializeAws_json1_1CustomRoutingAcceleratorAttributes(output.AcceleratorAttributes, context)
|
|
4067
3993
|
: undefined,
|
|
4068
3994
|
};
|
|
4069
3995
|
};
|
|
4070
3996
|
const deserializeAws_json1_1UpdateCustomRoutingAcceleratorResponse = (output, context) => {
|
|
4071
3997
|
return {
|
|
4072
|
-
Accelerator: output.Accelerator
|
|
3998
|
+
Accelerator: output.Accelerator != null
|
|
4073
3999
|
? deserializeAws_json1_1CustomRoutingAccelerator(output.Accelerator, context)
|
|
4074
4000
|
: undefined,
|
|
4075
4001
|
};
|
|
4076
4002
|
};
|
|
4077
4003
|
const deserializeAws_json1_1UpdateCustomRoutingListenerResponse = (output, context) => {
|
|
4078
4004
|
return {
|
|
4079
|
-
Listener: output.Listener
|
|
4080
|
-
? deserializeAws_json1_1CustomRoutingListener(output.Listener, context)
|
|
4081
|
-
: undefined,
|
|
4005
|
+
Listener: output.Listener != null ? deserializeAws_json1_1CustomRoutingListener(output.Listener, context) : undefined,
|
|
4082
4006
|
};
|
|
4083
4007
|
};
|
|
4084
4008
|
const deserializeAws_json1_1UpdateEndpointGroupResponse = (output, context) => {
|
|
4085
4009
|
return {
|
|
4086
|
-
EndpointGroup: output.EndpointGroup
|
|
4087
|
-
? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context)
|
|
4088
|
-
: undefined,
|
|
4010
|
+
EndpointGroup: output.EndpointGroup != null ? deserializeAws_json1_1EndpointGroup(output.EndpointGroup, context) : undefined,
|
|
4089
4011
|
};
|
|
4090
4012
|
};
|
|
4091
4013
|
const deserializeAws_json1_1UpdateListenerResponse = (output, context) => {
|
|
4092
4014
|
return {
|
|
4093
|
-
Listener: output.Listener
|
|
4094
|
-
? deserializeAws_json1_1Listener(output.Listener, context)
|
|
4095
|
-
: undefined,
|
|
4015
|
+
Listener: output.Listener != null ? deserializeAws_json1_1Listener(output.Listener, context) : undefined,
|
|
4096
4016
|
};
|
|
4097
4017
|
};
|
|
4098
4018
|
const deserializeAws_json1_1WithdrawByoipCidrResponse = (output, context) => {
|
|
4099
4019
|
return {
|
|
4100
|
-
ByoipCidr: output.ByoipCidr
|
|
4101
|
-
? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context)
|
|
4102
|
-
: undefined,
|
|
4020
|
+
ByoipCidr: output.ByoipCidr != null ? deserializeAws_json1_1ByoipCidr(output.ByoipCidr, context) : undefined,
|
|
4103
4021
|
};
|
|
4104
4022
|
};
|
|
4105
4023
|
const deserializeMetadata = (output) => {
|
|
@@ -4164,5 +4082,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4164
4082
|
if (data["__type"] !== undefined) {
|
|
4165
4083
|
return sanitizeErrorCode(data["__type"]);
|
|
4166
4084
|
}
|
|
4167
|
-
return "";
|
|
4168
4085
|
};
|