@aws-sdk/client-snowball 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +73 -639
- package/dist-es/protocols/Aws_json1_1.js +62 -628
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -703,7 +703,7 @@ var se_UpdateLongTermPricingCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
703
703
|
}, "se_UpdateLongTermPricingCommand");
|
|
704
704
|
var de_CancelClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
705
705
|
if (output.statusCode >= 300) {
|
|
706
|
-
return
|
|
706
|
+
return de_CommandError(output, context);
|
|
707
707
|
}
|
|
708
708
|
const data = await parseBody(output.body, context);
|
|
709
709
|
let contents = {};
|
|
@@ -714,34 +714,9 @@ var de_CancelClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
714
714
|
};
|
|
715
715
|
return response;
|
|
716
716
|
}, "de_CancelClusterCommand");
|
|
717
|
-
var de_CancelClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
718
|
-
const parsedOutput = {
|
|
719
|
-
...output,
|
|
720
|
-
body: await parseErrorBody(output.body, context)
|
|
721
|
-
};
|
|
722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
|
-
switch (errorCode) {
|
|
724
|
-
case "InvalidJobStateException":
|
|
725
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
726
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
727
|
-
case "InvalidResourceException":
|
|
728
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
729
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
730
|
-
case "KMSRequestFailedException":
|
|
731
|
-
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
732
|
-
throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
|
|
733
|
-
default:
|
|
734
|
-
const parsedBody = parsedOutput.body;
|
|
735
|
-
return throwDefaultError({
|
|
736
|
-
output,
|
|
737
|
-
parsedBody,
|
|
738
|
-
errorCode
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
}, "de_CancelClusterCommandError");
|
|
742
717
|
var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
743
718
|
if (output.statusCode >= 300) {
|
|
744
|
-
return
|
|
719
|
+
return de_CommandError(output, context);
|
|
745
720
|
}
|
|
746
721
|
const data = await parseBody(output.body, context);
|
|
747
722
|
let contents = {};
|
|
@@ -752,34 +727,9 @@ var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
752
727
|
};
|
|
753
728
|
return response;
|
|
754
729
|
}, "de_CancelJobCommand");
|
|
755
|
-
var de_CancelJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
|
-
const parsedOutput = {
|
|
757
|
-
...output,
|
|
758
|
-
body: await parseErrorBody(output.body, context)
|
|
759
|
-
};
|
|
760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
-
switch (errorCode) {
|
|
762
|
-
case "InvalidJobStateException":
|
|
763
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
764
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
765
|
-
case "InvalidResourceException":
|
|
766
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
767
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
768
|
-
case "KMSRequestFailedException":
|
|
769
|
-
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
770
|
-
throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
|
|
771
|
-
default:
|
|
772
|
-
const parsedBody = parsedOutput.body;
|
|
773
|
-
return throwDefaultError({
|
|
774
|
-
output,
|
|
775
|
-
parsedBody,
|
|
776
|
-
errorCode
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
}, "de_CancelJobCommandError");
|
|
780
730
|
var de_CreateAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
781
731
|
if (output.statusCode >= 300) {
|
|
782
|
-
return
|
|
732
|
+
return de_CommandError(output, context);
|
|
783
733
|
}
|
|
784
734
|
const data = await parseBody(output.body, context);
|
|
785
735
|
let contents = {};
|
|
@@ -790,31 +740,9 @@ var de_CreateAddressCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
790
740
|
};
|
|
791
741
|
return response;
|
|
792
742
|
}, "de_CreateAddressCommand");
|
|
793
|
-
var de_CreateAddressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
794
|
-
const parsedOutput = {
|
|
795
|
-
...output,
|
|
796
|
-
body: await parseErrorBody(output.body, context)
|
|
797
|
-
};
|
|
798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
|
-
switch (errorCode) {
|
|
800
|
-
case "InvalidAddressException":
|
|
801
|
-
case "com.amazonaws.snowball#InvalidAddressException":
|
|
802
|
-
throw await de_InvalidAddressExceptionRes(parsedOutput, context);
|
|
803
|
-
case "UnsupportedAddressException":
|
|
804
|
-
case "com.amazonaws.snowball#UnsupportedAddressException":
|
|
805
|
-
throw await de_UnsupportedAddressExceptionRes(parsedOutput, context);
|
|
806
|
-
default:
|
|
807
|
-
const parsedBody = parsedOutput.body;
|
|
808
|
-
return throwDefaultError({
|
|
809
|
-
output,
|
|
810
|
-
parsedBody,
|
|
811
|
-
errorCode
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
}, "de_CreateAddressCommandError");
|
|
815
743
|
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
816
744
|
if (output.statusCode >= 300) {
|
|
817
|
-
return
|
|
745
|
+
return de_CommandError(output, context);
|
|
818
746
|
}
|
|
819
747
|
const data = await parseBody(output.body, context);
|
|
820
748
|
let contents = {};
|
|
@@ -825,37 +753,9 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
825
753
|
};
|
|
826
754
|
return response;
|
|
827
755
|
}, "de_CreateClusterCommand");
|
|
828
|
-
var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
829
|
-
const parsedOutput = {
|
|
830
|
-
...output,
|
|
831
|
-
body: await parseErrorBody(output.body, context)
|
|
832
|
-
};
|
|
833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
834
|
-
switch (errorCode) {
|
|
835
|
-
case "Ec2RequestFailedException":
|
|
836
|
-
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
837
|
-
throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
|
|
838
|
-
case "InvalidInputCombinationException":
|
|
839
|
-
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
840
|
-
throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
|
|
841
|
-
case "InvalidResourceException":
|
|
842
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
843
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
844
|
-
case "KMSRequestFailedException":
|
|
845
|
-
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
846
|
-
throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
|
|
847
|
-
default:
|
|
848
|
-
const parsedBody = parsedOutput.body;
|
|
849
|
-
return throwDefaultError({
|
|
850
|
-
output,
|
|
851
|
-
parsedBody,
|
|
852
|
-
errorCode
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
}, "de_CreateClusterCommandError");
|
|
856
756
|
var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
857
757
|
if (output.statusCode >= 300) {
|
|
858
|
-
return
|
|
758
|
+
return de_CommandError(output, context);
|
|
859
759
|
}
|
|
860
760
|
const data = await parseBody(output.body, context);
|
|
861
761
|
let contents = {};
|
|
@@ -866,40 +766,9 @@ var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
866
766
|
};
|
|
867
767
|
return response;
|
|
868
768
|
}, "de_CreateJobCommand");
|
|
869
|
-
var de_CreateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
870
|
-
const parsedOutput = {
|
|
871
|
-
...output,
|
|
872
|
-
body: await parseErrorBody(output.body, context)
|
|
873
|
-
};
|
|
874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
-
switch (errorCode) {
|
|
876
|
-
case "ClusterLimitExceededException":
|
|
877
|
-
case "com.amazonaws.snowball#ClusterLimitExceededException":
|
|
878
|
-
throw await de_ClusterLimitExceededExceptionRes(parsedOutput, context);
|
|
879
|
-
case "Ec2RequestFailedException":
|
|
880
|
-
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
881
|
-
throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
|
|
882
|
-
case "InvalidInputCombinationException":
|
|
883
|
-
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
884
|
-
throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
|
|
885
|
-
case "InvalidResourceException":
|
|
886
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
887
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
888
|
-
case "KMSRequestFailedException":
|
|
889
|
-
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
890
|
-
throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
|
|
891
|
-
default:
|
|
892
|
-
const parsedBody = parsedOutput.body;
|
|
893
|
-
return throwDefaultError({
|
|
894
|
-
output,
|
|
895
|
-
parsedBody,
|
|
896
|
-
errorCode
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
}, "de_CreateJobCommandError");
|
|
900
769
|
var de_CreateLongTermPricingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
901
770
|
if (output.statusCode >= 300) {
|
|
902
|
-
return
|
|
771
|
+
return de_CommandError(output, context);
|
|
903
772
|
}
|
|
904
773
|
const data = await parseBody(output.body, context);
|
|
905
774
|
let contents = {};
|
|
@@ -910,28 +779,9 @@ var de_CreateLongTermPricingCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
910
779
|
};
|
|
911
780
|
return response;
|
|
912
781
|
}, "de_CreateLongTermPricingCommand");
|
|
913
|
-
var de_CreateLongTermPricingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
914
|
-
const parsedOutput = {
|
|
915
|
-
...output,
|
|
916
|
-
body: await parseErrorBody(output.body, context)
|
|
917
|
-
};
|
|
918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
|
-
switch (errorCode) {
|
|
920
|
-
case "InvalidResourceException":
|
|
921
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
922
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
923
|
-
default:
|
|
924
|
-
const parsedBody = parsedOutput.body;
|
|
925
|
-
return throwDefaultError({
|
|
926
|
-
output,
|
|
927
|
-
parsedBody,
|
|
928
|
-
errorCode
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
}, "de_CreateLongTermPricingCommandError");
|
|
932
782
|
var de_CreateReturnShippingLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
933
783
|
if (output.statusCode >= 300) {
|
|
934
|
-
return
|
|
784
|
+
return de_CommandError(output, context);
|
|
935
785
|
}
|
|
936
786
|
const data = await parseBody(output.body, context);
|
|
937
787
|
let contents = {};
|
|
@@ -942,40 +792,9 @@ var de_CreateReturnShippingLabelCommand = /* @__PURE__ */ __name(async (output,
|
|
|
942
792
|
};
|
|
943
793
|
return response;
|
|
944
794
|
}, "de_CreateReturnShippingLabelCommand");
|
|
945
|
-
var de_CreateReturnShippingLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
946
|
-
const parsedOutput = {
|
|
947
|
-
...output,
|
|
948
|
-
body: await parseErrorBody(output.body, context)
|
|
949
|
-
};
|
|
950
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
951
|
-
switch (errorCode) {
|
|
952
|
-
case "ConflictException":
|
|
953
|
-
case "com.amazonaws.snowball#ConflictException":
|
|
954
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
955
|
-
case "InvalidInputCombinationException":
|
|
956
|
-
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
957
|
-
throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
|
|
958
|
-
case "InvalidJobStateException":
|
|
959
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
960
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
961
|
-
case "InvalidResourceException":
|
|
962
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
963
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ReturnShippingLabelAlreadyExistsException":
|
|
965
|
-
case "com.amazonaws.snowball#ReturnShippingLabelAlreadyExistsException":
|
|
966
|
-
throw await de_ReturnShippingLabelAlreadyExistsExceptionRes(parsedOutput, context);
|
|
967
|
-
default:
|
|
968
|
-
const parsedBody = parsedOutput.body;
|
|
969
|
-
return throwDefaultError({
|
|
970
|
-
output,
|
|
971
|
-
parsedBody,
|
|
972
|
-
errorCode
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
}, "de_CreateReturnShippingLabelCommandError");
|
|
976
795
|
var de_DescribeAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
977
796
|
if (output.statusCode >= 300) {
|
|
978
|
-
return
|
|
797
|
+
return de_CommandError(output, context);
|
|
979
798
|
}
|
|
980
799
|
const data = await parseBody(output.body, context);
|
|
981
800
|
let contents = {};
|
|
@@ -986,28 +805,9 @@ var de_DescribeAddressCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
986
805
|
};
|
|
987
806
|
return response;
|
|
988
807
|
}, "de_DescribeAddressCommand");
|
|
989
|
-
var de_DescribeAddressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
990
|
-
const parsedOutput = {
|
|
991
|
-
...output,
|
|
992
|
-
body: await parseErrorBody(output.body, context)
|
|
993
|
-
};
|
|
994
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
|
-
switch (errorCode) {
|
|
996
|
-
case "InvalidResourceException":
|
|
997
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
998
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
999
|
-
default:
|
|
1000
|
-
const parsedBody = parsedOutput.body;
|
|
1001
|
-
return throwDefaultError({
|
|
1002
|
-
output,
|
|
1003
|
-
parsedBody,
|
|
1004
|
-
errorCode
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
}, "de_DescribeAddressCommandError");
|
|
1008
808
|
var de_DescribeAddressesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1009
809
|
if (output.statusCode >= 300) {
|
|
1010
|
-
return
|
|
810
|
+
return de_CommandError(output, context);
|
|
1011
811
|
}
|
|
1012
812
|
const data = await parseBody(output.body, context);
|
|
1013
813
|
let contents = {};
|
|
@@ -1018,31 +818,9 @@ var de_DescribeAddressesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1018
818
|
};
|
|
1019
819
|
return response;
|
|
1020
820
|
}, "de_DescribeAddressesCommand");
|
|
1021
|
-
var de_DescribeAddressesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1022
|
-
const parsedOutput = {
|
|
1023
|
-
...output,
|
|
1024
|
-
body: await parseErrorBody(output.body, context)
|
|
1025
|
-
};
|
|
1026
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
|
-
switch (errorCode) {
|
|
1028
|
-
case "InvalidNextTokenException":
|
|
1029
|
-
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1030
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "InvalidResourceException":
|
|
1032
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1033
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1034
|
-
default:
|
|
1035
|
-
const parsedBody = parsedOutput.body;
|
|
1036
|
-
return throwDefaultError({
|
|
1037
|
-
output,
|
|
1038
|
-
parsedBody,
|
|
1039
|
-
errorCode
|
|
1040
|
-
});
|
|
1041
|
-
}
|
|
1042
|
-
}, "de_DescribeAddressesCommandError");
|
|
1043
821
|
var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1044
822
|
if (output.statusCode >= 300) {
|
|
1045
|
-
return
|
|
823
|
+
return de_CommandError(output, context);
|
|
1046
824
|
}
|
|
1047
825
|
const data = await parseBody(output.body, context);
|
|
1048
826
|
let contents = {};
|
|
@@ -1053,28 +831,9 @@ var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1053
831
|
};
|
|
1054
832
|
return response;
|
|
1055
833
|
}, "de_DescribeClusterCommand");
|
|
1056
|
-
var de_DescribeClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1057
|
-
const parsedOutput = {
|
|
1058
|
-
...output,
|
|
1059
|
-
body: await parseErrorBody(output.body, context)
|
|
1060
|
-
};
|
|
1061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
|
-
switch (errorCode) {
|
|
1063
|
-
case "InvalidResourceException":
|
|
1064
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1065
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1066
|
-
default:
|
|
1067
|
-
const parsedBody = parsedOutput.body;
|
|
1068
|
-
return throwDefaultError({
|
|
1069
|
-
output,
|
|
1070
|
-
parsedBody,
|
|
1071
|
-
errorCode
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
}, "de_DescribeClusterCommandError");
|
|
1075
834
|
var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1076
835
|
if (output.statusCode >= 300) {
|
|
1077
|
-
return
|
|
836
|
+
return de_CommandError(output, context);
|
|
1078
837
|
}
|
|
1079
838
|
const data = await parseBody(output.body, context);
|
|
1080
839
|
let contents = {};
|
|
@@ -1085,28 +844,9 @@ var de_DescribeJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1085
844
|
};
|
|
1086
845
|
return response;
|
|
1087
846
|
}, "de_DescribeJobCommand");
|
|
1088
|
-
var de_DescribeJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1089
|
-
const parsedOutput = {
|
|
1090
|
-
...output,
|
|
1091
|
-
body: await parseErrorBody(output.body, context)
|
|
1092
|
-
};
|
|
1093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
-
switch (errorCode) {
|
|
1095
|
-
case "InvalidResourceException":
|
|
1096
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1097
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1098
|
-
default:
|
|
1099
|
-
const parsedBody = parsedOutput.body;
|
|
1100
|
-
return throwDefaultError({
|
|
1101
|
-
output,
|
|
1102
|
-
parsedBody,
|
|
1103
|
-
errorCode
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
}, "de_DescribeJobCommandError");
|
|
1107
847
|
var de_DescribeReturnShippingLabelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1108
848
|
if (output.statusCode >= 300) {
|
|
1109
|
-
return
|
|
849
|
+
return de_CommandError(output, context);
|
|
1110
850
|
}
|
|
1111
851
|
const data = await parseBody(output.body, context);
|
|
1112
852
|
let contents = {};
|
|
@@ -1117,34 +857,9 @@ var de_DescribeReturnShippingLabelCommand = /* @__PURE__ */ __name(async (output
|
|
|
1117
857
|
};
|
|
1118
858
|
return response;
|
|
1119
859
|
}, "de_DescribeReturnShippingLabelCommand");
|
|
1120
|
-
var de_DescribeReturnShippingLabelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1121
|
-
const parsedOutput = {
|
|
1122
|
-
...output,
|
|
1123
|
-
body: await parseErrorBody(output.body, context)
|
|
1124
|
-
};
|
|
1125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
-
switch (errorCode) {
|
|
1127
|
-
case "ConflictException":
|
|
1128
|
-
case "com.amazonaws.snowball#ConflictException":
|
|
1129
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "InvalidJobStateException":
|
|
1131
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1132
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "InvalidResourceException":
|
|
1134
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1135
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
}, "de_DescribeReturnShippingLabelCommandError");
|
|
1145
860
|
var de_GetJobManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1146
861
|
if (output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
862
|
+
return de_CommandError(output, context);
|
|
1148
863
|
}
|
|
1149
864
|
const data = await parseBody(output.body, context);
|
|
1150
865
|
let contents = {};
|
|
@@ -1155,31 +870,9 @@ var de_GetJobManifestCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1155
870
|
};
|
|
1156
871
|
return response;
|
|
1157
872
|
}, "de_GetJobManifestCommand");
|
|
1158
|
-
var de_GetJobManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1159
|
-
const parsedOutput = {
|
|
1160
|
-
...output,
|
|
1161
|
-
body: await parseErrorBody(output.body, context)
|
|
1162
|
-
};
|
|
1163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1164
|
-
switch (errorCode) {
|
|
1165
|
-
case "InvalidJobStateException":
|
|
1166
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1167
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "InvalidResourceException":
|
|
1169
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1170
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1171
|
-
default:
|
|
1172
|
-
const parsedBody = parsedOutput.body;
|
|
1173
|
-
return throwDefaultError({
|
|
1174
|
-
output,
|
|
1175
|
-
parsedBody,
|
|
1176
|
-
errorCode
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
}, "de_GetJobManifestCommandError");
|
|
1180
873
|
var de_GetJobUnlockCodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1181
874
|
if (output.statusCode >= 300) {
|
|
1182
|
-
return
|
|
875
|
+
return de_CommandError(output, context);
|
|
1183
876
|
}
|
|
1184
877
|
const data = await parseBody(output.body, context);
|
|
1185
878
|
let contents = {};
|
|
@@ -1190,31 +883,9 @@ var de_GetJobUnlockCodeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1190
883
|
};
|
|
1191
884
|
return response;
|
|
1192
885
|
}, "de_GetJobUnlockCodeCommand");
|
|
1193
|
-
var de_GetJobUnlockCodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1194
|
-
const parsedOutput = {
|
|
1195
|
-
...output,
|
|
1196
|
-
body: await parseErrorBody(output.body, context)
|
|
1197
|
-
};
|
|
1198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
-
switch (errorCode) {
|
|
1200
|
-
case "InvalidJobStateException":
|
|
1201
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1202
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "InvalidResourceException":
|
|
1204
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1205
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1206
|
-
default:
|
|
1207
|
-
const parsedBody = parsedOutput.body;
|
|
1208
|
-
return throwDefaultError({
|
|
1209
|
-
output,
|
|
1210
|
-
parsedBody,
|
|
1211
|
-
errorCode
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1214
|
-
}, "de_GetJobUnlockCodeCommandError");
|
|
1215
886
|
var de_GetSnowballUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1216
887
|
if (output.statusCode >= 300) {
|
|
1217
|
-
return
|
|
888
|
+
return de_CommandError(output, context);
|
|
1218
889
|
}
|
|
1219
890
|
const data = await parseBody(output.body, context);
|
|
1220
891
|
let contents = {};
|
|
@@ -1222,60 +893,25 @@ var de_GetSnowballUsageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1222
893
|
const response = {
|
|
1223
894
|
$metadata: deserializeMetadata(output),
|
|
1224
895
|
...contents
|
|
1225
|
-
};
|
|
1226
|
-
return response;
|
|
1227
|
-
}, "de_GetSnowballUsageCommand");
|
|
1228
|
-
var
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
body: await parseErrorBody(output.body, context)
|
|
1232
|
-
};
|
|
1233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
|
-
const parsedBody = parsedOutput.body;
|
|
1235
|
-
return throwDefaultError({
|
|
1236
|
-
output,
|
|
1237
|
-
parsedBody,
|
|
1238
|
-
errorCode
|
|
1239
|
-
});
|
|
1240
|
-
}, "de_GetSnowballUsageCommandError");
|
|
1241
|
-
var de_GetSoftwareUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1242
|
-
if (output.statusCode >= 300) {
|
|
1243
|
-
return de_GetSoftwareUpdatesCommandError(output, context);
|
|
1244
|
-
}
|
|
1245
|
-
const data = await parseBody(output.body, context);
|
|
1246
|
-
let contents = {};
|
|
1247
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1248
|
-
const response = {
|
|
1249
|
-
$metadata: deserializeMetadata(output),
|
|
1250
|
-
...contents
|
|
1251
|
-
};
|
|
1252
|
-
return response;
|
|
1253
|
-
}, "de_GetSoftwareUpdatesCommand");
|
|
1254
|
-
var de_GetSoftwareUpdatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1255
|
-
const parsedOutput = {
|
|
1256
|
-
...output,
|
|
1257
|
-
body: await parseErrorBody(output.body, context)
|
|
1258
|
-
};
|
|
1259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
-
switch (errorCode) {
|
|
1261
|
-
case "InvalidJobStateException":
|
|
1262
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1263
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "InvalidResourceException":
|
|
1265
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1266
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1267
|
-
default:
|
|
1268
|
-
const parsedBody = parsedOutput.body;
|
|
1269
|
-
return throwDefaultError({
|
|
1270
|
-
output,
|
|
1271
|
-
parsedBody,
|
|
1272
|
-
errorCode
|
|
1273
|
-
});
|
|
896
|
+
};
|
|
897
|
+
return response;
|
|
898
|
+
}, "de_GetSnowballUsageCommand");
|
|
899
|
+
var de_GetSoftwareUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
900
|
+
if (output.statusCode >= 300) {
|
|
901
|
+
return de_CommandError(output, context);
|
|
1274
902
|
}
|
|
1275
|
-
|
|
903
|
+
const data = await parseBody(output.body, context);
|
|
904
|
+
let contents = {};
|
|
905
|
+
contents = (0, import_smithy_client._json)(data);
|
|
906
|
+
const response = {
|
|
907
|
+
$metadata: deserializeMetadata(output),
|
|
908
|
+
...contents
|
|
909
|
+
};
|
|
910
|
+
return response;
|
|
911
|
+
}, "de_GetSoftwareUpdatesCommand");
|
|
1276
912
|
var de_ListClusterJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1277
913
|
if (output.statusCode >= 300) {
|
|
1278
|
-
return
|
|
914
|
+
return de_CommandError(output, context);
|
|
1279
915
|
}
|
|
1280
916
|
const data = await parseBody(output.body, context);
|
|
1281
917
|
let contents = {};
|
|
@@ -1286,31 +922,9 @@ var de_ListClusterJobsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1286
922
|
};
|
|
1287
923
|
return response;
|
|
1288
924
|
}, "de_ListClusterJobsCommand");
|
|
1289
|
-
var de_ListClusterJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1290
|
-
const parsedOutput = {
|
|
1291
|
-
...output,
|
|
1292
|
-
body: await parseErrorBody(output.body, context)
|
|
1293
|
-
};
|
|
1294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
|
-
switch (errorCode) {
|
|
1296
|
-
case "InvalidNextTokenException":
|
|
1297
|
-
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1298
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "InvalidResourceException":
|
|
1300
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1301
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1302
|
-
default:
|
|
1303
|
-
const parsedBody = parsedOutput.body;
|
|
1304
|
-
return throwDefaultError({
|
|
1305
|
-
output,
|
|
1306
|
-
parsedBody,
|
|
1307
|
-
errorCode
|
|
1308
|
-
});
|
|
1309
|
-
}
|
|
1310
|
-
}, "de_ListClusterJobsCommandError");
|
|
1311
925
|
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1312
926
|
if (output.statusCode >= 300) {
|
|
1313
|
-
return
|
|
927
|
+
return de_CommandError(output, context);
|
|
1314
928
|
}
|
|
1315
929
|
const data = await parseBody(output.body, context);
|
|
1316
930
|
let contents = {};
|
|
@@ -1321,28 +935,9 @@ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1321
935
|
};
|
|
1322
936
|
return response;
|
|
1323
937
|
}, "de_ListClustersCommand");
|
|
1324
|
-
var de_ListClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1325
|
-
const parsedOutput = {
|
|
1326
|
-
...output,
|
|
1327
|
-
body: await parseErrorBody(output.body, context)
|
|
1328
|
-
};
|
|
1329
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1330
|
-
switch (errorCode) {
|
|
1331
|
-
case "InvalidNextTokenException":
|
|
1332
|
-
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1333
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1334
|
-
default:
|
|
1335
|
-
const parsedBody = parsedOutput.body;
|
|
1336
|
-
return throwDefaultError({
|
|
1337
|
-
output,
|
|
1338
|
-
parsedBody,
|
|
1339
|
-
errorCode
|
|
1340
|
-
});
|
|
1341
|
-
}
|
|
1342
|
-
}, "de_ListClustersCommandError");
|
|
1343
938
|
var de_ListCompatibleImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1344
939
|
if (output.statusCode >= 300) {
|
|
1345
|
-
return
|
|
940
|
+
return de_CommandError(output, context);
|
|
1346
941
|
}
|
|
1347
942
|
const data = await parseBody(output.body, context);
|
|
1348
943
|
let contents = {};
|
|
@@ -1353,31 +948,9 @@ var de_ListCompatibleImagesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1353
948
|
};
|
|
1354
949
|
return response;
|
|
1355
950
|
}, "de_ListCompatibleImagesCommand");
|
|
1356
|
-
var de_ListCompatibleImagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1357
|
-
const parsedOutput = {
|
|
1358
|
-
...output,
|
|
1359
|
-
body: await parseErrorBody(output.body, context)
|
|
1360
|
-
};
|
|
1361
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
|
-
switch (errorCode) {
|
|
1363
|
-
case "Ec2RequestFailedException":
|
|
1364
|
-
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
1365
|
-
throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "InvalidNextTokenException":
|
|
1367
|
-
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1368
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1369
|
-
default:
|
|
1370
|
-
const parsedBody = parsedOutput.body;
|
|
1371
|
-
return throwDefaultError({
|
|
1372
|
-
output,
|
|
1373
|
-
parsedBody,
|
|
1374
|
-
errorCode
|
|
1375
|
-
});
|
|
1376
|
-
}
|
|
1377
|
-
}, "de_ListCompatibleImagesCommandError");
|
|
1378
951
|
var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1379
952
|
if (output.statusCode >= 300) {
|
|
1380
|
-
return
|
|
953
|
+
return de_CommandError(output, context);
|
|
1381
954
|
}
|
|
1382
955
|
const data = await parseBody(output.body, context);
|
|
1383
956
|
let contents = {};
|
|
@@ -1388,28 +961,9 @@ var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1388
961
|
};
|
|
1389
962
|
return response;
|
|
1390
963
|
}, "de_ListJobsCommand");
|
|
1391
|
-
var de_ListJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1392
|
-
const parsedOutput = {
|
|
1393
|
-
...output,
|
|
1394
|
-
body: await parseErrorBody(output.body, context)
|
|
1395
|
-
};
|
|
1396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1397
|
-
switch (errorCode) {
|
|
1398
|
-
case "InvalidNextTokenException":
|
|
1399
|
-
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1400
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1401
|
-
default:
|
|
1402
|
-
const parsedBody = parsedOutput.body;
|
|
1403
|
-
return throwDefaultError({
|
|
1404
|
-
output,
|
|
1405
|
-
parsedBody,
|
|
1406
|
-
errorCode
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
}, "de_ListJobsCommandError");
|
|
1410
964
|
var de_ListLongTermPricingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1411
965
|
if (output.statusCode >= 300) {
|
|
1412
|
-
return
|
|
966
|
+
return de_CommandError(output, context);
|
|
1413
967
|
}
|
|
1414
968
|
const data = await parseBody(output.body, context);
|
|
1415
969
|
let contents = {};
|
|
@@ -1420,31 +974,9 @@ var de_ListLongTermPricingCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1420
974
|
};
|
|
1421
975
|
return response;
|
|
1422
976
|
}, "de_ListLongTermPricingCommand");
|
|
1423
|
-
var de_ListLongTermPricingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1424
|
-
const parsedOutput = {
|
|
1425
|
-
...output,
|
|
1426
|
-
body: await parseErrorBody(output.body, context)
|
|
1427
|
-
};
|
|
1428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1429
|
-
switch (errorCode) {
|
|
1430
|
-
case "InvalidNextTokenException":
|
|
1431
|
-
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1432
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "InvalidResourceException":
|
|
1434
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1435
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1436
|
-
default:
|
|
1437
|
-
const parsedBody = parsedOutput.body;
|
|
1438
|
-
return throwDefaultError({
|
|
1439
|
-
output,
|
|
1440
|
-
parsedBody,
|
|
1441
|
-
errorCode
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
}, "de_ListLongTermPricingCommandError");
|
|
1445
977
|
var de_ListPickupLocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1446
978
|
if (output.statusCode >= 300) {
|
|
1447
|
-
return
|
|
979
|
+
return de_CommandError(output, context);
|
|
1448
980
|
}
|
|
1449
981
|
const data = await parseBody(output.body, context);
|
|
1450
982
|
let contents = {};
|
|
@@ -1455,28 +987,9 @@ var de_ListPickupLocationsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1455
987
|
};
|
|
1456
988
|
return response;
|
|
1457
989
|
}, "de_ListPickupLocationsCommand");
|
|
1458
|
-
var de_ListPickupLocationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1459
|
-
const parsedOutput = {
|
|
1460
|
-
...output,
|
|
1461
|
-
body: await parseErrorBody(output.body, context)
|
|
1462
|
-
};
|
|
1463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
|
-
switch (errorCode) {
|
|
1465
|
-
case "InvalidResourceException":
|
|
1466
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1467
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1468
|
-
default:
|
|
1469
|
-
const parsedBody = parsedOutput.body;
|
|
1470
|
-
return throwDefaultError({
|
|
1471
|
-
output,
|
|
1472
|
-
parsedBody,
|
|
1473
|
-
errorCode
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
}, "de_ListPickupLocationsCommandError");
|
|
1477
990
|
var de_ListServiceVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1478
991
|
if (output.statusCode >= 300) {
|
|
1479
|
-
return
|
|
992
|
+
return de_CommandError(output, context);
|
|
1480
993
|
}
|
|
1481
994
|
const data = await parseBody(output.body, context);
|
|
1482
995
|
let contents = {};
|
|
@@ -1487,31 +1000,9 @@ var de_ListServiceVersionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1487
1000
|
};
|
|
1488
1001
|
return response;
|
|
1489
1002
|
}, "de_ListServiceVersionsCommand");
|
|
1490
|
-
var de_ListServiceVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1491
|
-
const parsedOutput = {
|
|
1492
|
-
...output,
|
|
1493
|
-
body: await parseErrorBody(output.body, context)
|
|
1494
|
-
};
|
|
1495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
|
-
switch (errorCode) {
|
|
1497
|
-
case "InvalidNextTokenException":
|
|
1498
|
-
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1499
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "InvalidResourceException":
|
|
1501
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1502
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1503
|
-
default:
|
|
1504
|
-
const parsedBody = parsedOutput.body;
|
|
1505
|
-
return throwDefaultError({
|
|
1506
|
-
output,
|
|
1507
|
-
parsedBody,
|
|
1508
|
-
errorCode
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
}, "de_ListServiceVersionsCommandError");
|
|
1512
1003
|
var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1513
1004
|
if (output.statusCode >= 300) {
|
|
1514
|
-
return
|
|
1005
|
+
return de_CommandError(output, context);
|
|
1515
1006
|
}
|
|
1516
1007
|
const data = await parseBody(output.body, context);
|
|
1517
1008
|
let contents = {};
|
|
@@ -1522,40 +1013,9 @@ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1522
1013
|
};
|
|
1523
1014
|
return response;
|
|
1524
1015
|
}, "de_UpdateClusterCommand");
|
|
1525
|
-
var de_UpdateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1526
|
-
const parsedOutput = {
|
|
1527
|
-
...output,
|
|
1528
|
-
body: await parseErrorBody(output.body, context)
|
|
1529
|
-
};
|
|
1530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1531
|
-
switch (errorCode) {
|
|
1532
|
-
case "Ec2RequestFailedException":
|
|
1533
|
-
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
1534
|
-
throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "InvalidInputCombinationException":
|
|
1536
|
-
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
1537
|
-
throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
|
|
1538
|
-
case "InvalidJobStateException":
|
|
1539
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1540
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "InvalidResourceException":
|
|
1542
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1543
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "KMSRequestFailedException":
|
|
1545
|
-
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
1546
|
-
throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
|
|
1547
|
-
default:
|
|
1548
|
-
const parsedBody = parsedOutput.body;
|
|
1549
|
-
return throwDefaultError({
|
|
1550
|
-
output,
|
|
1551
|
-
parsedBody,
|
|
1552
|
-
errorCode
|
|
1553
|
-
});
|
|
1554
|
-
}
|
|
1555
|
-
}, "de_UpdateClusterCommandError");
|
|
1556
1016
|
var de_UpdateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1557
1017
|
if (output.statusCode >= 300) {
|
|
1558
|
-
return
|
|
1018
|
+
return de_CommandError(output, context);
|
|
1559
1019
|
}
|
|
1560
1020
|
const data = await parseBody(output.body, context);
|
|
1561
1021
|
let contents = {};
|
|
@@ -1566,43 +1026,9 @@ var de_UpdateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1566
1026
|
};
|
|
1567
1027
|
return response;
|
|
1568
1028
|
}, "de_UpdateJobCommand");
|
|
1569
|
-
var de_UpdateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1570
|
-
const parsedOutput = {
|
|
1571
|
-
...output,
|
|
1572
|
-
body: await parseErrorBody(output.body, context)
|
|
1573
|
-
};
|
|
1574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
|
-
switch (errorCode) {
|
|
1576
|
-
case "ClusterLimitExceededException":
|
|
1577
|
-
case "com.amazonaws.snowball#ClusterLimitExceededException":
|
|
1578
|
-
throw await de_ClusterLimitExceededExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "Ec2RequestFailedException":
|
|
1580
|
-
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
1581
|
-
throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "InvalidInputCombinationException":
|
|
1583
|
-
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
1584
|
-
throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "InvalidJobStateException":
|
|
1586
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1587
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "InvalidResourceException":
|
|
1589
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1590
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "KMSRequestFailedException":
|
|
1592
|
-
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
1593
|
-
throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
|
|
1594
|
-
default:
|
|
1595
|
-
const parsedBody = parsedOutput.body;
|
|
1596
|
-
return throwDefaultError({
|
|
1597
|
-
output,
|
|
1598
|
-
parsedBody,
|
|
1599
|
-
errorCode
|
|
1600
|
-
});
|
|
1601
|
-
}
|
|
1602
|
-
}, "de_UpdateJobCommandError");
|
|
1603
1029
|
var de_UpdateJobShipmentStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1604
1030
|
if (output.statusCode >= 300) {
|
|
1605
|
-
return
|
|
1031
|
+
return de_CommandError(output, context);
|
|
1606
1032
|
}
|
|
1607
1033
|
const data = await parseBody(output.body, context);
|
|
1608
1034
|
let contents = {};
|
|
@@ -1613,31 +1039,9 @@ var de_UpdateJobShipmentStateCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1613
1039
|
};
|
|
1614
1040
|
return response;
|
|
1615
1041
|
}, "de_UpdateJobShipmentStateCommand");
|
|
1616
|
-
var de_UpdateJobShipmentStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1617
|
-
const parsedOutput = {
|
|
1618
|
-
...output,
|
|
1619
|
-
body: await parseErrorBody(output.body, context)
|
|
1620
|
-
};
|
|
1621
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1622
|
-
switch (errorCode) {
|
|
1623
|
-
case "InvalidJobStateException":
|
|
1624
|
-
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1625
|
-
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1626
|
-
case "InvalidResourceException":
|
|
1627
|
-
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1628
|
-
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1629
|
-
default:
|
|
1630
|
-
const parsedBody = parsedOutput.body;
|
|
1631
|
-
return throwDefaultError({
|
|
1632
|
-
output,
|
|
1633
|
-
parsedBody,
|
|
1634
|
-
errorCode
|
|
1635
|
-
});
|
|
1636
|
-
}
|
|
1637
|
-
}, "de_UpdateJobShipmentStateCommandError");
|
|
1638
1042
|
var de_UpdateLongTermPricingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1639
1043
|
if (output.statusCode >= 300) {
|
|
1640
|
-
return
|
|
1044
|
+
return de_CommandError(output, context);
|
|
1641
1045
|
}
|
|
1642
1046
|
const data = await parseBody(output.body, context);
|
|
1643
1047
|
let contents = {};
|
|
@@ -1648,16 +1052,46 @@ var de_UpdateLongTermPricingCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1648
1052
|
};
|
|
1649
1053
|
return response;
|
|
1650
1054
|
}, "de_UpdateLongTermPricingCommand");
|
|
1651
|
-
var
|
|
1055
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1652
1056
|
const parsedOutput = {
|
|
1653
1057
|
...output,
|
|
1654
1058
|
body: await parseErrorBody(output.body, context)
|
|
1655
1059
|
};
|
|
1656
1060
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
1061
|
switch (errorCode) {
|
|
1062
|
+
case "InvalidJobStateException":
|
|
1063
|
+
case "com.amazonaws.snowball#InvalidJobStateException":
|
|
1064
|
+
throw await de_InvalidJobStateExceptionRes(parsedOutput, context);
|
|
1658
1065
|
case "InvalidResourceException":
|
|
1659
1066
|
case "com.amazonaws.snowball#InvalidResourceException":
|
|
1660
1067
|
throw await de_InvalidResourceExceptionRes(parsedOutput, context);
|
|
1068
|
+
case "KMSRequestFailedException":
|
|
1069
|
+
case "com.amazonaws.snowball#KMSRequestFailedException":
|
|
1070
|
+
throw await de_KMSRequestFailedExceptionRes(parsedOutput, context);
|
|
1071
|
+
case "InvalidAddressException":
|
|
1072
|
+
case "com.amazonaws.snowball#InvalidAddressException":
|
|
1073
|
+
throw await de_InvalidAddressExceptionRes(parsedOutput, context);
|
|
1074
|
+
case "UnsupportedAddressException":
|
|
1075
|
+
case "com.amazonaws.snowball#UnsupportedAddressException":
|
|
1076
|
+
throw await de_UnsupportedAddressExceptionRes(parsedOutput, context);
|
|
1077
|
+
case "Ec2RequestFailedException":
|
|
1078
|
+
case "com.amazonaws.snowball#Ec2RequestFailedException":
|
|
1079
|
+
throw await de_Ec2RequestFailedExceptionRes(parsedOutput, context);
|
|
1080
|
+
case "InvalidInputCombinationException":
|
|
1081
|
+
case "com.amazonaws.snowball#InvalidInputCombinationException":
|
|
1082
|
+
throw await de_InvalidInputCombinationExceptionRes(parsedOutput, context);
|
|
1083
|
+
case "ClusterLimitExceededException":
|
|
1084
|
+
case "com.amazonaws.snowball#ClusterLimitExceededException":
|
|
1085
|
+
throw await de_ClusterLimitExceededExceptionRes(parsedOutput, context);
|
|
1086
|
+
case "ConflictException":
|
|
1087
|
+
case "com.amazonaws.snowball#ConflictException":
|
|
1088
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1089
|
+
case "ReturnShippingLabelAlreadyExistsException":
|
|
1090
|
+
case "com.amazonaws.snowball#ReturnShippingLabelAlreadyExistsException":
|
|
1091
|
+
throw await de_ReturnShippingLabelAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1092
|
+
case "InvalidNextTokenException":
|
|
1093
|
+
case "com.amazonaws.snowball#InvalidNextTokenException":
|
|
1094
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1661
1095
|
default:
|
|
1662
1096
|
const parsedBody = parsedOutput.body;
|
|
1663
1097
|
return throwDefaultError({
|
|
@@ -1666,7 +1100,7 @@ var de_UpdateLongTermPricingCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1666
1100
|
errorCode
|
|
1667
1101
|
});
|
|
1668
1102
|
}
|
|
1669
|
-
}, "
|
|
1103
|
+
}, "de_CommandError");
|
|
1670
1104
|
var de_ClusterLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1671
1105
|
const body = parsedOutput.body;
|
|
1672
1106
|
const deserialized = (0, import_smithy_client._json)(body);
|