@aws-sdk/client-resource-explorer-2 3.504.0 → 3.509.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 +58 -687
- package/dist-es/protocols/Aws_restJson1.js +50 -679
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -751,7 +751,7 @@ var se_UpdateViewCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
751
751
|
}, "se_UpdateViewCommand");
|
|
752
752
|
var de_AssociateDefaultViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
753
753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
754
|
-
return
|
|
754
|
+
return de_CommandError(output, context);
|
|
755
755
|
}
|
|
756
756
|
const contents = (0, import_smithy_client.map)({
|
|
757
757
|
$metadata: deserializeMetadata(output)
|
|
@@ -763,40 +763,9 @@ var de_AssociateDefaultViewCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
763
763
|
Object.assign(contents, doc);
|
|
764
764
|
return contents;
|
|
765
765
|
}, "de_AssociateDefaultViewCommand");
|
|
766
|
-
var de_AssociateDefaultViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
767
|
-
const parsedOutput = {
|
|
768
|
-
...output,
|
|
769
|
-
body: await parseErrorBody(output.body, context)
|
|
770
|
-
};
|
|
771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
|
-
switch (errorCode) {
|
|
773
|
-
case "AccessDeniedException":
|
|
774
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
775
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
776
|
-
case "InternalServerException":
|
|
777
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
778
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
779
|
-
case "ResourceNotFoundException":
|
|
780
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
781
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
782
|
-
case "ThrottlingException":
|
|
783
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ValidationException":
|
|
786
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
788
|
-
default:
|
|
789
|
-
const parsedBody = parsedOutput.body;
|
|
790
|
-
return throwDefaultError({
|
|
791
|
-
output,
|
|
792
|
-
parsedBody,
|
|
793
|
-
errorCode
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
}, "de_AssociateDefaultViewCommandError");
|
|
797
766
|
var de_BatchGetViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
798
767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
799
|
-
return
|
|
768
|
+
return de_CommandError(output, context);
|
|
800
769
|
}
|
|
801
770
|
const contents = (0, import_smithy_client.map)({
|
|
802
771
|
$metadata: deserializeMetadata(output)
|
|
@@ -809,40 +778,9 @@ var de_BatchGetViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
809
778
|
Object.assign(contents, doc);
|
|
810
779
|
return contents;
|
|
811
780
|
}, "de_BatchGetViewCommand");
|
|
812
|
-
var de_BatchGetViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
813
|
-
const parsedOutput = {
|
|
814
|
-
...output,
|
|
815
|
-
body: await parseErrorBody(output.body, context)
|
|
816
|
-
};
|
|
817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
|
-
switch (errorCode) {
|
|
819
|
-
case "AccessDeniedException":
|
|
820
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
821
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
822
|
-
case "InternalServerException":
|
|
823
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
824
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
825
|
-
case "ThrottlingException":
|
|
826
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
827
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
828
|
-
case "UnauthorizedException":
|
|
829
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
830
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
831
|
-
case "ValidationException":
|
|
832
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
833
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
834
|
-
default:
|
|
835
|
-
const parsedBody = parsedOutput.body;
|
|
836
|
-
return throwDefaultError({
|
|
837
|
-
output,
|
|
838
|
-
parsedBody,
|
|
839
|
-
errorCode
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
}, "de_BatchGetViewCommandError");
|
|
843
781
|
var de_CreateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
844
782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
845
|
-
return
|
|
783
|
+
return de_CommandError(output, context);
|
|
846
784
|
}
|
|
847
785
|
const contents = (0, import_smithy_client.map)({
|
|
848
786
|
$metadata: deserializeMetadata(output)
|
|
@@ -856,40 +794,9 @@ var de_CreateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
856
794
|
Object.assign(contents, doc);
|
|
857
795
|
return contents;
|
|
858
796
|
}, "de_CreateIndexCommand");
|
|
859
|
-
var de_CreateIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
860
|
-
const parsedOutput = {
|
|
861
|
-
...output,
|
|
862
|
-
body: await parseErrorBody(output.body, context)
|
|
863
|
-
};
|
|
864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
|
-
switch (errorCode) {
|
|
866
|
-
case "AccessDeniedException":
|
|
867
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
868
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
869
|
-
case "ConflictException":
|
|
870
|
-
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
871
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
872
|
-
case "InternalServerException":
|
|
873
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
874
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ThrottlingException":
|
|
876
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
877
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ValidationException":
|
|
879
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
880
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
|
-
default:
|
|
882
|
-
const parsedBody = parsedOutput.body;
|
|
883
|
-
return throwDefaultError({
|
|
884
|
-
output,
|
|
885
|
-
parsedBody,
|
|
886
|
-
errorCode
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
}, "de_CreateIndexCommandError");
|
|
890
797
|
var de_CreateViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
891
798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
-
return
|
|
799
|
+
return de_CommandError(output, context);
|
|
893
800
|
}
|
|
894
801
|
const contents = (0, import_smithy_client.map)({
|
|
895
802
|
$metadata: deserializeMetadata(output)
|
|
@@ -901,46 +808,9 @@ var de_CreateViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
901
808
|
Object.assign(contents, doc);
|
|
902
809
|
return contents;
|
|
903
810
|
}, "de_CreateViewCommand");
|
|
904
|
-
var de_CreateViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
905
|
-
const parsedOutput = {
|
|
906
|
-
...output,
|
|
907
|
-
body: await parseErrorBody(output.body, context)
|
|
908
|
-
};
|
|
909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "AccessDeniedException":
|
|
912
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
913
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ConflictException":
|
|
915
|
-
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
916
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
917
|
-
case "InternalServerException":
|
|
918
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
919
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
920
|
-
case "ServiceQuotaExceededException":
|
|
921
|
-
case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
|
|
922
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
923
|
-
case "ThrottlingException":
|
|
924
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
925
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
926
|
-
case "UnauthorizedException":
|
|
927
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
928
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ValidationException":
|
|
930
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
931
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
932
|
-
default:
|
|
933
|
-
const parsedBody = parsedOutput.body;
|
|
934
|
-
return throwDefaultError({
|
|
935
|
-
output,
|
|
936
|
-
parsedBody,
|
|
937
|
-
errorCode
|
|
938
|
-
});
|
|
939
|
-
}
|
|
940
|
-
}, "de_CreateViewCommandError");
|
|
941
811
|
var de_DeleteIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
942
812
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
943
|
-
return
|
|
813
|
+
return de_CommandError(output, context);
|
|
944
814
|
}
|
|
945
815
|
const contents = (0, import_smithy_client.map)({
|
|
946
816
|
$metadata: deserializeMetadata(output)
|
|
@@ -954,40 +824,9 @@ var de_DeleteIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
954
824
|
Object.assign(contents, doc);
|
|
955
825
|
return contents;
|
|
956
826
|
}, "de_DeleteIndexCommand");
|
|
957
|
-
var de_DeleteIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
958
|
-
const parsedOutput = {
|
|
959
|
-
...output,
|
|
960
|
-
body: await parseErrorBody(output.body, context)
|
|
961
|
-
};
|
|
962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
-
switch (errorCode) {
|
|
964
|
-
case "AccessDeniedException":
|
|
965
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
966
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
967
|
-
case "InternalServerException":
|
|
968
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
969
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ResourceNotFoundException":
|
|
971
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
972
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
973
|
-
case "ThrottlingException":
|
|
974
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
975
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ValidationException":
|
|
977
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
978
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
979
|
-
default:
|
|
980
|
-
const parsedBody = parsedOutput.body;
|
|
981
|
-
return throwDefaultError({
|
|
982
|
-
output,
|
|
983
|
-
parsedBody,
|
|
984
|
-
errorCode
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
}, "de_DeleteIndexCommandError");
|
|
988
827
|
var de_DeleteViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
989
828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
990
|
-
return
|
|
829
|
+
return de_CommandError(output, context);
|
|
991
830
|
}
|
|
992
831
|
const contents = (0, import_smithy_client.map)({
|
|
993
832
|
$metadata: deserializeMetadata(output)
|
|
@@ -999,43 +838,9 @@ var de_DeleteViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
999
838
|
Object.assign(contents, doc);
|
|
1000
839
|
return contents;
|
|
1001
840
|
}, "de_DeleteViewCommand");
|
|
1002
|
-
var de_DeleteViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1003
|
-
const parsedOutput = {
|
|
1004
|
-
...output,
|
|
1005
|
-
body: await parseErrorBody(output.body, context)
|
|
1006
|
-
};
|
|
1007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
-
switch (errorCode) {
|
|
1009
|
-
case "AccessDeniedException":
|
|
1010
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "InternalServerException":
|
|
1013
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1014
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "ResourceNotFoundException":
|
|
1016
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1017
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "ThrottlingException":
|
|
1019
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1020
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "UnauthorizedException":
|
|
1022
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1023
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "ValidationException":
|
|
1025
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1026
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1027
|
-
default:
|
|
1028
|
-
const parsedBody = parsedOutput.body;
|
|
1029
|
-
return throwDefaultError({
|
|
1030
|
-
output,
|
|
1031
|
-
parsedBody,
|
|
1032
|
-
errorCode
|
|
1033
|
-
});
|
|
1034
|
-
}
|
|
1035
|
-
}, "de_DeleteViewCommandError");
|
|
1036
841
|
var de_DisassociateDefaultViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1037
842
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1038
|
-
return
|
|
843
|
+
return de_CommandError(output, context);
|
|
1039
844
|
}
|
|
1040
845
|
const contents = (0, import_smithy_client.map)({
|
|
1041
846
|
$metadata: deserializeMetadata(output)
|
|
@@ -1043,40 +848,9 @@ var de_DisassociateDefaultViewCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1043
848
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1044
849
|
return contents;
|
|
1045
850
|
}, "de_DisassociateDefaultViewCommand");
|
|
1046
|
-
var de_DisassociateDefaultViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1047
|
-
const parsedOutput = {
|
|
1048
|
-
...output,
|
|
1049
|
-
body: await parseErrorBody(output.body, context)
|
|
1050
|
-
};
|
|
1051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
-
switch (errorCode) {
|
|
1053
|
-
case "AccessDeniedException":
|
|
1054
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1055
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "InternalServerException":
|
|
1057
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1058
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ResourceNotFoundException":
|
|
1060
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1061
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ThrottlingException":
|
|
1063
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1064
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ValidationException":
|
|
1066
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1067
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1068
|
-
default:
|
|
1069
|
-
const parsedBody = parsedOutput.body;
|
|
1070
|
-
return throwDefaultError({
|
|
1071
|
-
output,
|
|
1072
|
-
parsedBody,
|
|
1073
|
-
errorCode
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
}, "de_DisassociateDefaultViewCommandError");
|
|
1077
851
|
var de_GetAccountLevelServiceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1078
852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1079
|
-
return
|
|
853
|
+
return de_CommandError(output, context);
|
|
1080
854
|
}
|
|
1081
855
|
const contents = (0, import_smithy_client.map)({
|
|
1082
856
|
$metadata: deserializeMetadata(output)
|
|
@@ -1088,37 +862,9 @@ var de_GetAccountLevelServiceConfigurationCommand = /* @__PURE__ */ __name(async
|
|
|
1088
862
|
Object.assign(contents, doc);
|
|
1089
863
|
return contents;
|
|
1090
864
|
}, "de_GetAccountLevelServiceConfigurationCommand");
|
|
1091
|
-
var de_GetAccountLevelServiceConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1092
|
-
const parsedOutput = {
|
|
1093
|
-
...output,
|
|
1094
|
-
body: await parseErrorBody(output.body, context)
|
|
1095
|
-
};
|
|
1096
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
|
-
switch (errorCode) {
|
|
1098
|
-
case "AccessDeniedException":
|
|
1099
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1100
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "InternalServerException":
|
|
1102
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1103
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ResourceNotFoundException":
|
|
1105
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ThrottlingException":
|
|
1108
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1109
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1110
|
-
default:
|
|
1111
|
-
const parsedBody = parsedOutput.body;
|
|
1112
|
-
return throwDefaultError({
|
|
1113
|
-
output,
|
|
1114
|
-
parsedBody,
|
|
1115
|
-
errorCode
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
}, "de_GetAccountLevelServiceConfigurationCommandError");
|
|
1119
865
|
var de_GetDefaultViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1120
866
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1121
|
-
return
|
|
867
|
+
return de_CommandError(output, context);
|
|
1122
868
|
}
|
|
1123
869
|
const contents = (0, import_smithy_client.map)({
|
|
1124
870
|
$metadata: deserializeMetadata(output)
|
|
@@ -1130,40 +876,9 @@ var de_GetDefaultViewCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1130
876
|
Object.assign(contents, doc);
|
|
1131
877
|
return contents;
|
|
1132
878
|
}, "de_GetDefaultViewCommand");
|
|
1133
|
-
var de_GetDefaultViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1134
|
-
const parsedOutput = {
|
|
1135
|
-
...output,
|
|
1136
|
-
body: await parseErrorBody(output.body, context)
|
|
1137
|
-
};
|
|
1138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
-
switch (errorCode) {
|
|
1140
|
-
case "AccessDeniedException":
|
|
1141
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1142
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "InternalServerException":
|
|
1144
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1145
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "ResourceNotFoundException":
|
|
1147
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1148
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "ThrottlingException":
|
|
1150
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1151
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ValidationException":
|
|
1153
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1154
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1155
|
-
default:
|
|
1156
|
-
const parsedBody = parsedOutput.body;
|
|
1157
|
-
return throwDefaultError({
|
|
1158
|
-
output,
|
|
1159
|
-
parsedBody,
|
|
1160
|
-
errorCode
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
}, "de_GetDefaultViewCommandError");
|
|
1164
879
|
var de_GetIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1165
880
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
|
-
return
|
|
881
|
+
return de_CommandError(output, context);
|
|
1167
882
|
}
|
|
1168
883
|
const contents = (0, import_smithy_client.map)({
|
|
1169
884
|
$metadata: deserializeMetadata(output)
|
|
@@ -1182,40 +897,9 @@ var de_GetIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1182
897
|
Object.assign(contents, doc);
|
|
1183
898
|
return contents;
|
|
1184
899
|
}, "de_GetIndexCommand");
|
|
1185
|
-
var de_GetIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1186
|
-
const parsedOutput = {
|
|
1187
|
-
...output,
|
|
1188
|
-
body: await parseErrorBody(output.body, context)
|
|
1189
|
-
};
|
|
1190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
|
-
switch (errorCode) {
|
|
1192
|
-
case "AccessDeniedException":
|
|
1193
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1194
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1195
|
-
case "InternalServerException":
|
|
1196
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1197
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "ResourceNotFoundException":
|
|
1199
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ThrottlingException":
|
|
1202
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1203
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "ValidationException":
|
|
1205
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1206
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1207
|
-
default:
|
|
1208
|
-
const parsedBody = parsedOutput.body;
|
|
1209
|
-
return throwDefaultError({
|
|
1210
|
-
output,
|
|
1211
|
-
parsedBody,
|
|
1212
|
-
errorCode
|
|
1213
|
-
});
|
|
1214
|
-
}
|
|
1215
|
-
}, "de_GetIndexCommandError");
|
|
1216
900
|
var de_GetViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1217
901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1218
|
-
return
|
|
902
|
+
return de_CommandError(output, context);
|
|
1219
903
|
}
|
|
1220
904
|
const contents = (0, import_smithy_client.map)({
|
|
1221
905
|
$metadata: deserializeMetadata(output)
|
|
@@ -1228,129 +912,39 @@ var de_GetViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1228
912
|
Object.assign(contents, doc);
|
|
1229
913
|
return contents;
|
|
1230
914
|
}, "de_GetViewCommand");
|
|
1231
|
-
var de_GetViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1232
|
-
const parsedOutput = {
|
|
1233
|
-
...output,
|
|
1234
|
-
body: await parseErrorBody(output.body, context)
|
|
1235
|
-
};
|
|
1236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
|
-
switch (errorCode) {
|
|
1238
|
-
case "AccessDeniedException":
|
|
1239
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1240
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1241
|
-
case "InternalServerException":
|
|
1242
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1243
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1244
|
-
case "ResourceNotFoundException":
|
|
1245
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1246
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1247
|
-
case "ThrottlingException":
|
|
1248
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1249
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1250
|
-
case "UnauthorizedException":
|
|
1251
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1252
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ValidationException":
|
|
1254
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1255
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1256
|
-
default:
|
|
1257
|
-
const parsedBody = parsedOutput.body;
|
|
1258
|
-
return throwDefaultError({
|
|
1259
|
-
output,
|
|
1260
|
-
parsedBody,
|
|
1261
|
-
errorCode
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
}, "de_GetViewCommandError");
|
|
1265
915
|
var de_ListIndexesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1266
916
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1267
|
-
return
|
|
1268
|
-
}
|
|
1269
|
-
const contents = (0, import_smithy_client.map)({
|
|
1270
|
-
$metadata: deserializeMetadata(output)
|
|
1271
|
-
});
|
|
1272
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1273
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1274
|
-
Indexes: import_smithy_client._json,
|
|
1275
|
-
NextToken: import_smithy_client.expectString
|
|
1276
|
-
});
|
|
1277
|
-
Object.assign(contents, doc);
|
|
1278
|
-
return contents;
|
|
1279
|
-
}, "de_ListIndexesCommand");
|
|
1280
|
-
var de_ListIndexesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1281
|
-
const parsedOutput = {
|
|
1282
|
-
...output,
|
|
1283
|
-
body: await parseErrorBody(output.body, context)
|
|
1284
|
-
};
|
|
1285
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
|
-
switch (errorCode) {
|
|
1287
|
-
case "AccessDeniedException":
|
|
1288
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1289
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "InternalServerException":
|
|
1291
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1292
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "ThrottlingException":
|
|
1294
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1295
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ValidationException":
|
|
1297
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1298
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1299
|
-
default:
|
|
1300
|
-
const parsedBody = parsedOutput.body;
|
|
1301
|
-
return throwDefaultError({
|
|
1302
|
-
output,
|
|
1303
|
-
parsedBody,
|
|
1304
|
-
errorCode
|
|
1305
|
-
});
|
|
1306
|
-
}
|
|
1307
|
-
}, "de_ListIndexesCommandError");
|
|
1308
|
-
var de_ListIndexesForMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1309
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1310
|
-
return de_ListIndexesForMembersCommandError(output, context);
|
|
917
|
+
return de_CommandError(output, context);
|
|
1311
918
|
}
|
|
1312
919
|
const contents = (0, import_smithy_client.map)({
|
|
1313
|
-
$metadata: deserializeMetadata(output)
|
|
1314
|
-
});
|
|
1315
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1316
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1317
|
-
Indexes: import_smithy_client._json,
|
|
1318
|
-
NextToken: import_smithy_client.expectString
|
|
1319
|
-
});
|
|
1320
|
-
Object.assign(contents, doc);
|
|
1321
|
-
return contents;
|
|
1322
|
-
}, "
|
|
1323
|
-
var
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
body: await parseErrorBody(output.body, context)
|
|
1327
|
-
};
|
|
1328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
|
-
switch (errorCode) {
|
|
1330
|
-
case "AccessDeniedException":
|
|
1331
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1332
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "InternalServerException":
|
|
1334
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1335
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "ThrottlingException":
|
|
1337
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1338
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "ValidationException":
|
|
1340
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1341
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1342
|
-
default:
|
|
1343
|
-
const parsedBody = parsedOutput.body;
|
|
1344
|
-
return throwDefaultError({
|
|
1345
|
-
output,
|
|
1346
|
-
parsedBody,
|
|
1347
|
-
errorCode
|
|
1348
|
-
});
|
|
920
|
+
$metadata: deserializeMetadata(output)
|
|
921
|
+
});
|
|
922
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
923
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
924
|
+
Indexes: import_smithy_client._json,
|
|
925
|
+
NextToken: import_smithy_client.expectString
|
|
926
|
+
});
|
|
927
|
+
Object.assign(contents, doc);
|
|
928
|
+
return contents;
|
|
929
|
+
}, "de_ListIndexesCommand");
|
|
930
|
+
var de_ListIndexesForMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
931
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
932
|
+
return de_CommandError(output, context);
|
|
1349
933
|
}
|
|
1350
|
-
|
|
934
|
+
const contents = (0, import_smithy_client.map)({
|
|
935
|
+
$metadata: deserializeMetadata(output)
|
|
936
|
+
});
|
|
937
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
938
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
939
|
+
Indexes: import_smithy_client._json,
|
|
940
|
+
NextToken: import_smithy_client.expectString
|
|
941
|
+
});
|
|
942
|
+
Object.assign(contents, doc);
|
|
943
|
+
return contents;
|
|
944
|
+
}, "de_ListIndexesForMembersCommand");
|
|
1351
945
|
var de_ListSupportedResourceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1352
946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
-
return
|
|
947
|
+
return de_CommandError(output, context);
|
|
1354
948
|
}
|
|
1355
949
|
const contents = (0, import_smithy_client.map)({
|
|
1356
950
|
$metadata: deserializeMetadata(output)
|
|
@@ -1363,37 +957,9 @@ var de_ListSupportedResourceTypesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1363
957
|
Object.assign(contents, doc);
|
|
1364
958
|
return contents;
|
|
1365
959
|
}, "de_ListSupportedResourceTypesCommand");
|
|
1366
|
-
var de_ListSupportedResourceTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1367
|
-
const parsedOutput = {
|
|
1368
|
-
...output,
|
|
1369
|
-
body: await parseErrorBody(output.body, context)
|
|
1370
|
-
};
|
|
1371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
|
-
switch (errorCode) {
|
|
1373
|
-
case "AccessDeniedException":
|
|
1374
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1375
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "InternalServerException":
|
|
1377
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1378
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "ThrottlingException":
|
|
1380
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1381
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ValidationException":
|
|
1383
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1384
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1385
|
-
default:
|
|
1386
|
-
const parsedBody = parsedOutput.body;
|
|
1387
|
-
return throwDefaultError({
|
|
1388
|
-
output,
|
|
1389
|
-
parsedBody,
|
|
1390
|
-
errorCode
|
|
1391
|
-
});
|
|
1392
|
-
}
|
|
1393
|
-
}, "de_ListSupportedResourceTypesCommandError");
|
|
1394
960
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1395
961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1396
|
-
return
|
|
962
|
+
return de_CommandError(output, context);
|
|
1397
963
|
}
|
|
1398
964
|
const contents = (0, import_smithy_client.map)({
|
|
1399
965
|
$metadata: deserializeMetadata(output)
|
|
@@ -1405,43 +971,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1405
971
|
Object.assign(contents, doc);
|
|
1406
972
|
return contents;
|
|
1407
973
|
}, "de_ListTagsForResourceCommand");
|
|
1408
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1409
|
-
const parsedOutput = {
|
|
1410
|
-
...output,
|
|
1411
|
-
body: await parseErrorBody(output.body, context)
|
|
1412
|
-
};
|
|
1413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
|
-
switch (errorCode) {
|
|
1415
|
-
case "AccessDeniedException":
|
|
1416
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1417
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "InternalServerException":
|
|
1419
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1420
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "ResourceNotFoundException":
|
|
1422
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1423
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "ThrottlingException":
|
|
1425
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1426
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "UnauthorizedException":
|
|
1428
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1429
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "ValidationException":
|
|
1431
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1432
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1433
|
-
default:
|
|
1434
|
-
const parsedBody = parsedOutput.body;
|
|
1435
|
-
return throwDefaultError({
|
|
1436
|
-
output,
|
|
1437
|
-
parsedBody,
|
|
1438
|
-
errorCode
|
|
1439
|
-
});
|
|
1440
|
-
}
|
|
1441
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1442
974
|
var de_ListViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1443
975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1444
|
-
return
|
|
976
|
+
return de_CommandError(output, context);
|
|
1445
977
|
}
|
|
1446
978
|
const contents = (0, import_smithy_client.map)({
|
|
1447
979
|
$metadata: deserializeMetadata(output)
|
|
@@ -1454,37 +986,9 @@ var de_ListViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1454
986
|
Object.assign(contents, doc);
|
|
1455
987
|
return contents;
|
|
1456
988
|
}, "de_ListViewsCommand");
|
|
1457
|
-
var de_ListViewsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1458
|
-
const parsedOutput = {
|
|
1459
|
-
...output,
|
|
1460
|
-
body: await parseErrorBody(output.body, context)
|
|
1461
|
-
};
|
|
1462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
|
-
switch (errorCode) {
|
|
1464
|
-
case "AccessDeniedException":
|
|
1465
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "InternalServerException":
|
|
1468
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1469
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ThrottlingException":
|
|
1471
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1472
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ValidationException":
|
|
1474
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1475
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1476
|
-
default:
|
|
1477
|
-
const parsedBody = parsedOutput.body;
|
|
1478
|
-
return throwDefaultError({
|
|
1479
|
-
output,
|
|
1480
|
-
parsedBody,
|
|
1481
|
-
errorCode
|
|
1482
|
-
});
|
|
1483
|
-
}
|
|
1484
|
-
}, "de_ListViewsCommandError");
|
|
1485
989
|
var de_SearchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1486
990
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1487
|
-
return
|
|
991
|
+
return de_CommandError(output, context);
|
|
1488
992
|
}
|
|
1489
993
|
const contents = (0, import_smithy_client.map)({
|
|
1490
994
|
$metadata: deserializeMetadata(output)
|
|
@@ -1499,43 +1003,9 @@ var de_SearchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1499
1003
|
Object.assign(contents, doc);
|
|
1500
1004
|
return contents;
|
|
1501
1005
|
}, "de_SearchCommand");
|
|
1502
|
-
var de_SearchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1503
|
-
const parsedOutput = {
|
|
1504
|
-
...output,
|
|
1505
|
-
body: await parseErrorBody(output.body, context)
|
|
1506
|
-
};
|
|
1507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
|
-
switch (errorCode) {
|
|
1509
|
-
case "AccessDeniedException":
|
|
1510
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "InternalServerException":
|
|
1513
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1514
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ResourceNotFoundException":
|
|
1516
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1517
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1518
|
-
case "ThrottlingException":
|
|
1519
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1520
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1521
|
-
case "UnauthorizedException":
|
|
1522
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1523
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1524
|
-
case "ValidationException":
|
|
1525
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1526
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1527
|
-
default:
|
|
1528
|
-
const parsedBody = parsedOutput.body;
|
|
1529
|
-
return throwDefaultError({
|
|
1530
|
-
output,
|
|
1531
|
-
parsedBody,
|
|
1532
|
-
errorCode
|
|
1533
|
-
});
|
|
1534
|
-
}
|
|
1535
|
-
}, "de_SearchCommandError");
|
|
1536
1006
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1537
1007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1538
|
-
return
|
|
1008
|
+
return de_CommandError(output, context);
|
|
1539
1009
|
}
|
|
1540
1010
|
const contents = (0, import_smithy_client.map)({
|
|
1541
1011
|
$metadata: deserializeMetadata(output)
|
|
@@ -1543,43 +1013,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1543
1013
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1544
1014
|
return contents;
|
|
1545
1015
|
}, "de_TagResourceCommand");
|
|
1546
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1547
|
-
const parsedOutput = {
|
|
1548
|
-
...output,
|
|
1549
|
-
body: await parseErrorBody(output.body, context)
|
|
1550
|
-
};
|
|
1551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
|
-
switch (errorCode) {
|
|
1553
|
-
case "AccessDeniedException":
|
|
1554
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1555
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "ConflictException":
|
|
1557
|
-
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
1558
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "InternalServerException":
|
|
1560
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1561
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "ThrottlingException":
|
|
1563
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1564
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "UnauthorizedException":
|
|
1566
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1567
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "ValidationException":
|
|
1569
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1571
|
-
default:
|
|
1572
|
-
const parsedBody = parsedOutput.body;
|
|
1573
|
-
return throwDefaultError({
|
|
1574
|
-
output,
|
|
1575
|
-
parsedBody,
|
|
1576
|
-
errorCode
|
|
1577
|
-
});
|
|
1578
|
-
}
|
|
1579
|
-
}, "de_TagResourceCommandError");
|
|
1580
1016
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1581
1017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1582
|
-
return
|
|
1018
|
+
return de_CommandError(output, context);
|
|
1583
1019
|
}
|
|
1584
1020
|
const contents = (0, import_smithy_client.map)({
|
|
1585
1021
|
$metadata: deserializeMetadata(output)
|
|
@@ -1587,43 +1023,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1587
1023
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1588
1024
|
return contents;
|
|
1589
1025
|
}, "de_UntagResourceCommand");
|
|
1590
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1591
|
-
const parsedOutput = {
|
|
1592
|
-
...output,
|
|
1593
|
-
body: await parseErrorBody(output.body, context)
|
|
1594
|
-
};
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "AccessDeniedException":
|
|
1598
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1599
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "InternalServerException":
|
|
1601
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "ResourceNotFoundException":
|
|
1604
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "ThrottlingException":
|
|
1607
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "UnauthorizedException":
|
|
1610
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1611
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1612
|
-
case "ValidationException":
|
|
1613
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1614
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1615
|
-
default:
|
|
1616
|
-
const parsedBody = parsedOutput.body;
|
|
1617
|
-
return throwDefaultError({
|
|
1618
|
-
output,
|
|
1619
|
-
parsedBody,
|
|
1620
|
-
errorCode
|
|
1621
|
-
});
|
|
1622
|
-
}
|
|
1623
|
-
}, "de_UntagResourceCommandError");
|
|
1624
1026
|
var de_UpdateIndexTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1625
1027
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1626
|
-
return
|
|
1028
|
+
return de_CommandError(output, context);
|
|
1627
1029
|
}
|
|
1628
1030
|
const contents = (0, import_smithy_client.map)({
|
|
1629
1031
|
$metadata: deserializeMetadata(output)
|
|
@@ -1638,46 +1040,9 @@ var de_UpdateIndexTypeCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1638
1040
|
Object.assign(contents, doc);
|
|
1639
1041
|
return contents;
|
|
1640
1042
|
}, "de_UpdateIndexTypeCommand");
|
|
1641
|
-
var de_UpdateIndexTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1642
|
-
const parsedOutput = {
|
|
1643
|
-
...output,
|
|
1644
|
-
body: await parseErrorBody(output.body, context)
|
|
1645
|
-
};
|
|
1646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1647
|
-
switch (errorCode) {
|
|
1648
|
-
case "AccessDeniedException":
|
|
1649
|
-
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
1650
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1651
|
-
case "ConflictException":
|
|
1652
|
-
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
1653
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1654
|
-
case "InternalServerException":
|
|
1655
|
-
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1656
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "ResourceNotFoundException":
|
|
1658
|
-
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "ServiceQuotaExceededException":
|
|
1661
|
-
case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
|
|
1662
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ThrottlingException":
|
|
1664
|
-
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1665
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "ValidationException":
|
|
1667
|
-
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1668
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1669
|
-
default:
|
|
1670
|
-
const parsedBody = parsedOutput.body;
|
|
1671
|
-
return throwDefaultError({
|
|
1672
|
-
output,
|
|
1673
|
-
parsedBody,
|
|
1674
|
-
errorCode
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
}, "de_UpdateIndexTypeCommandError");
|
|
1678
1043
|
var de_UpdateViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1679
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1680
|
-
return
|
|
1045
|
+
return de_CommandError(output, context);
|
|
1681
1046
|
}
|
|
1682
1047
|
const contents = (0, import_smithy_client.map)({
|
|
1683
1048
|
$metadata: deserializeMetadata(output)
|
|
@@ -1689,7 +1054,7 @@ var de_UpdateViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1689
1054
|
Object.assign(contents, doc);
|
|
1690
1055
|
return contents;
|
|
1691
1056
|
}, "de_UpdateViewCommand");
|
|
1692
|
-
var
|
|
1057
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1693
1058
|
const parsedOutput = {
|
|
1694
1059
|
...output,
|
|
1695
1060
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1702,18 +1067,24 @@ var de_UpdateViewCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1702
1067
|
case "InternalServerException":
|
|
1703
1068
|
case "com.amazonaws.resourceexplorer2#InternalServerException":
|
|
1704
1069
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "
|
|
1706
|
-
case "com.amazonaws.resourceexplorer2#
|
|
1707
|
-
throw await
|
|
1070
|
+
case "ResourceNotFoundException":
|
|
1071
|
+
case "com.amazonaws.resourceexplorer2#ResourceNotFoundException":
|
|
1072
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1708
1073
|
case "ThrottlingException":
|
|
1709
1074
|
case "com.amazonaws.resourceexplorer2#ThrottlingException":
|
|
1710
1075
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "UnauthorizedException":
|
|
1712
|
-
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1713
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1714
1076
|
case "ValidationException":
|
|
1715
1077
|
case "com.amazonaws.resourceexplorer2#ValidationException":
|
|
1716
1078
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1079
|
+
case "UnauthorizedException":
|
|
1080
|
+
case "com.amazonaws.resourceexplorer2#UnauthorizedException":
|
|
1081
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1082
|
+
case "ConflictException":
|
|
1083
|
+
case "com.amazonaws.resourceexplorer2#ConflictException":
|
|
1084
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1085
|
+
case "ServiceQuotaExceededException":
|
|
1086
|
+
case "com.amazonaws.resourceexplorer2#ServiceQuotaExceededException":
|
|
1087
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1717
1088
|
default:
|
|
1718
1089
|
const parsedBody = parsedOutput.body;
|
|
1719
1090
|
return throwDefaultError({
|
|
@@ -1722,7 +1093,7 @@ var de_UpdateViewCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1722
1093
|
errorCode
|
|
1723
1094
|
});
|
|
1724
1095
|
}
|
|
1725
|
-
}, "
|
|
1096
|
+
}, "de_CommandError");
|
|
1726
1097
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ResourceExplorer2ServiceException);
|
|
1727
1098
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1728
1099
|
const contents = (0, import_smithy_client.map)({});
|