@aws-sdk/client-managedblockchain 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 +80 -907
- package/dist-es/protocols/Aws_restJson1.js +117 -944
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -872,7 +872,7 @@ var se_VoteOnProposalCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
872
872
|
}, "se_VoteOnProposalCommand");
|
|
873
873
|
var de_CreateAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
874
874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
875
|
-
return
|
|
875
|
+
return de_CommandError(output, context);
|
|
876
876
|
}
|
|
877
877
|
const contents = (0, import_smithy_client.map)({
|
|
878
878
|
$metadata: deserializeMetadata(output)
|
|
@@ -886,46 +886,9 @@ var de_CreateAccessorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
886
886
|
Object.assign(contents, doc);
|
|
887
887
|
return contents;
|
|
888
888
|
}, "de_CreateAccessorCommand");
|
|
889
|
-
var de_CreateAccessorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
890
|
-
const parsedOutput = {
|
|
891
|
-
...output,
|
|
892
|
-
body: await parseErrorBody(output.body, context)
|
|
893
|
-
};
|
|
894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
-
switch (errorCode) {
|
|
896
|
-
case "AccessDeniedException":
|
|
897
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
898
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
899
|
-
case "InternalServiceErrorException":
|
|
900
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
901
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
902
|
-
case "InvalidRequestException":
|
|
903
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
904
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ResourceAlreadyExistsException":
|
|
906
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
907
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ResourceLimitExceededException":
|
|
909
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
910
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ThrottlingException":
|
|
912
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
913
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
914
|
-
case "TooManyTagsException":
|
|
915
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
916
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
917
|
-
default:
|
|
918
|
-
const parsedBody = parsedOutput.body;
|
|
919
|
-
return throwDefaultError({
|
|
920
|
-
output,
|
|
921
|
-
parsedBody,
|
|
922
|
-
errorCode
|
|
923
|
-
});
|
|
924
|
-
}
|
|
925
|
-
}, "de_CreateAccessorCommandError");
|
|
926
889
|
var de_CreateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
927
890
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
|
-
return
|
|
891
|
+
return de_CommandError(output, context);
|
|
929
892
|
}
|
|
930
893
|
const contents = (0, import_smithy_client.map)({
|
|
931
894
|
$metadata: deserializeMetadata(output)
|
|
@@ -937,52 +900,9 @@ var de_CreateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
937
900
|
Object.assign(contents, doc);
|
|
938
901
|
return contents;
|
|
939
902
|
}, "de_CreateMemberCommand");
|
|
940
|
-
var de_CreateMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
941
|
-
const parsedOutput = {
|
|
942
|
-
...output,
|
|
943
|
-
body: await parseErrorBody(output.body, context)
|
|
944
|
-
};
|
|
945
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
-
switch (errorCode) {
|
|
947
|
-
case "AccessDeniedException":
|
|
948
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
949
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
950
|
-
case "InternalServiceErrorException":
|
|
951
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
952
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
953
|
-
case "InvalidRequestException":
|
|
954
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
955
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ResourceAlreadyExistsException":
|
|
957
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
958
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ResourceLimitExceededException":
|
|
960
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
961
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ResourceNotFoundException":
|
|
963
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
964
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ResourceNotReadyException":
|
|
966
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
967
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
968
|
-
case "ThrottlingException":
|
|
969
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
970
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
971
|
-
case "TooManyTagsException":
|
|
972
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
973
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
974
|
-
default:
|
|
975
|
-
const parsedBody = parsedOutput.body;
|
|
976
|
-
return throwDefaultError({
|
|
977
|
-
output,
|
|
978
|
-
parsedBody,
|
|
979
|
-
errorCode
|
|
980
|
-
});
|
|
981
|
-
}
|
|
982
|
-
}, "de_CreateMemberCommandError");
|
|
983
903
|
var de_CreateNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
984
904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
986
906
|
}
|
|
987
907
|
const contents = (0, import_smithy_client.map)({
|
|
988
908
|
$metadata: deserializeMetadata(output)
|
|
@@ -995,46 +915,9 @@ var de_CreateNetworkCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
995
915
|
Object.assign(contents, doc);
|
|
996
916
|
return contents;
|
|
997
917
|
}, "de_CreateNetworkCommand");
|
|
998
|
-
var de_CreateNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
999
|
-
const parsedOutput = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseErrorBody(output.body, context)
|
|
1002
|
-
};
|
|
1003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "AccessDeniedException":
|
|
1006
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1007
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "InternalServiceErrorException":
|
|
1009
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1010
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "InvalidRequestException":
|
|
1012
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1013
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ResourceAlreadyExistsException":
|
|
1015
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
1016
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ResourceLimitExceededException":
|
|
1018
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
1019
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ThrottlingException":
|
|
1021
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1022
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "TooManyTagsException":
|
|
1024
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
1025
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1026
|
-
default:
|
|
1027
|
-
const parsedBody = parsedOutput.body;
|
|
1028
|
-
return throwDefaultError({
|
|
1029
|
-
output,
|
|
1030
|
-
parsedBody,
|
|
1031
|
-
errorCode
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
}, "de_CreateNetworkCommandError");
|
|
1035
918
|
var de_CreateNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1036
919
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
|
-
return
|
|
920
|
+
return de_CommandError(output, context);
|
|
1038
921
|
}
|
|
1039
922
|
const contents = (0, import_smithy_client.map)({
|
|
1040
923
|
$metadata: deserializeMetadata(output)
|
|
@@ -1046,52 +929,9 @@ var de_CreateNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1046
929
|
Object.assign(contents, doc);
|
|
1047
930
|
return contents;
|
|
1048
931
|
}, "de_CreateNodeCommand");
|
|
1049
|
-
var de_CreateNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1050
|
-
const parsedOutput = {
|
|
1051
|
-
...output,
|
|
1052
|
-
body: await parseErrorBody(output.body, context)
|
|
1053
|
-
};
|
|
1054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
|
-
switch (errorCode) {
|
|
1056
|
-
case "AccessDeniedException":
|
|
1057
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1058
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "InternalServiceErrorException":
|
|
1060
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1061
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "InvalidRequestException":
|
|
1063
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1064
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ResourceAlreadyExistsException":
|
|
1066
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
1067
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ResourceLimitExceededException":
|
|
1069
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
1070
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ResourceNotFoundException":
|
|
1072
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ResourceNotReadyException":
|
|
1075
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1076
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "ThrottlingException":
|
|
1078
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1079
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "TooManyTagsException":
|
|
1081
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
1082
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1083
|
-
default:
|
|
1084
|
-
const parsedBody = parsedOutput.body;
|
|
1085
|
-
return throwDefaultError({
|
|
1086
|
-
output,
|
|
1087
|
-
parsedBody,
|
|
1088
|
-
errorCode
|
|
1089
|
-
});
|
|
1090
|
-
}
|
|
1091
|
-
}, "de_CreateNodeCommandError");
|
|
1092
932
|
var de_CreateProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1093
933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1094
|
-
return
|
|
934
|
+
return de_CommandError(output, context);
|
|
1095
935
|
}
|
|
1096
936
|
const contents = (0, import_smithy_client.map)({
|
|
1097
937
|
$metadata: deserializeMetadata(output)
|
|
@@ -1103,46 +943,9 @@ var de_CreateProposalCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1103
943
|
Object.assign(contents, doc);
|
|
1104
944
|
return contents;
|
|
1105
945
|
}, "de_CreateProposalCommand");
|
|
1106
|
-
var de_CreateProposalCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1107
|
-
const parsedOutput = {
|
|
1108
|
-
...output,
|
|
1109
|
-
body: await parseErrorBody(output.body, context)
|
|
1110
|
-
};
|
|
1111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1112
|
-
switch (errorCode) {
|
|
1113
|
-
case "AccessDeniedException":
|
|
1114
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1115
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "InternalServiceErrorException":
|
|
1117
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1118
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "InvalidRequestException":
|
|
1120
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1121
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1122
|
-
case "ResourceNotFoundException":
|
|
1123
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1124
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "ResourceNotReadyException":
|
|
1126
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1127
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ThrottlingException":
|
|
1129
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1130
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "TooManyTagsException":
|
|
1132
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
1133
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1134
|
-
default:
|
|
1135
|
-
const parsedBody = parsedOutput.body;
|
|
1136
|
-
return throwDefaultError({
|
|
1137
|
-
output,
|
|
1138
|
-
parsedBody,
|
|
1139
|
-
errorCode
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
}, "de_CreateProposalCommandError");
|
|
1143
946
|
var de_DeleteAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1144
947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1145
|
-
return
|
|
948
|
+
return de_CommandError(output, context);
|
|
1146
949
|
}
|
|
1147
950
|
const contents = (0, import_smithy_client.map)({
|
|
1148
951
|
$metadata: deserializeMetadata(output)
|
|
@@ -1150,40 +953,9 @@ var de_DeleteAccessorCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1150
953
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1151
954
|
return contents;
|
|
1152
955
|
}, "de_DeleteAccessorCommand");
|
|
1153
|
-
var de_DeleteAccessorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1154
|
-
const parsedOutput = {
|
|
1155
|
-
...output,
|
|
1156
|
-
body: await parseErrorBody(output.body, context)
|
|
1157
|
-
};
|
|
1158
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
|
-
switch (errorCode) {
|
|
1160
|
-
case "AccessDeniedException":
|
|
1161
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1162
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "InternalServiceErrorException":
|
|
1164
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1165
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "InvalidRequestException":
|
|
1167
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1168
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1169
|
-
case "ResourceNotFoundException":
|
|
1170
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1171
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ThrottlingException":
|
|
1173
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1174
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1175
|
-
default:
|
|
1176
|
-
const parsedBody = parsedOutput.body;
|
|
1177
|
-
return throwDefaultError({
|
|
1178
|
-
output,
|
|
1179
|
-
parsedBody,
|
|
1180
|
-
errorCode
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
}, "de_DeleteAccessorCommandError");
|
|
1184
956
|
var de_DeleteMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1185
957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
958
|
+
return de_CommandError(output, context);
|
|
1187
959
|
}
|
|
1188
960
|
const contents = (0, import_smithy_client.map)({
|
|
1189
961
|
$metadata: deserializeMetadata(output)
|
|
@@ -1191,177 +963,47 @@ var de_DeleteMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1191
963
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1192
964
|
return contents;
|
|
1193
965
|
}, "de_DeleteMemberCommand");
|
|
1194
|
-
var de_DeleteMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1195
|
-
const parsedOutput = {
|
|
1196
|
-
...output,
|
|
1197
|
-
body: await parseErrorBody(output.body, context)
|
|
1198
|
-
};
|
|
1199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
-
switch (errorCode) {
|
|
1201
|
-
case "AccessDeniedException":
|
|
1202
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1203
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "InternalServiceErrorException":
|
|
1205
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1206
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "InvalidRequestException":
|
|
1208
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1209
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "ResourceNotFoundException":
|
|
1211
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1212
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "ResourceNotReadyException":
|
|
1214
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1215
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ThrottlingException":
|
|
1217
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1218
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1219
|
-
default:
|
|
1220
|
-
const parsedBody = parsedOutput.body;
|
|
1221
|
-
return throwDefaultError({
|
|
1222
|
-
output,
|
|
1223
|
-
parsedBody,
|
|
1224
|
-
errorCode
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
}, "de_DeleteMemberCommandError");
|
|
1228
966
|
var de_DeleteNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1229
967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1230
|
-
return
|
|
968
|
+
return de_CommandError(output, context);
|
|
1231
969
|
}
|
|
1232
970
|
const contents = (0, import_smithy_client.map)({
|
|
1233
971
|
$metadata: deserializeMetadata(output)
|
|
1234
972
|
});
|
|
1235
973
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1236
|
-
return contents;
|
|
1237
|
-
}, "de_DeleteNodeCommand");
|
|
1238
|
-
var
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1257
|
-
case "ResourceNotReadyException":
|
|
1258
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1259
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "ThrottlingException":
|
|
1261
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1262
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1263
|
-
default:
|
|
1264
|
-
const parsedBody = parsedOutput.body;
|
|
1265
|
-
return throwDefaultError({
|
|
1266
|
-
output,
|
|
1267
|
-
parsedBody,
|
|
1268
|
-
errorCode
|
|
1269
|
-
});
|
|
1270
|
-
}
|
|
1271
|
-
}, "de_DeleteNodeCommandError");
|
|
1272
|
-
var de_GetAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1273
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1274
|
-
return de_GetAccessorCommandError(output, context);
|
|
1275
|
-
}
|
|
1276
|
-
const contents = (0, import_smithy_client.map)({
|
|
1277
|
-
$metadata: deserializeMetadata(output)
|
|
1278
|
-
});
|
|
1279
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1280
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1281
|
-
Accessor: (_) => de_Accessor(_, context)
|
|
1282
|
-
});
|
|
1283
|
-
Object.assign(contents, doc);
|
|
1284
|
-
return contents;
|
|
1285
|
-
}, "de_GetAccessorCommand");
|
|
1286
|
-
var de_GetAccessorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1287
|
-
const parsedOutput = {
|
|
1288
|
-
...output,
|
|
1289
|
-
body: await parseErrorBody(output.body, context)
|
|
1290
|
-
};
|
|
1291
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
|
-
switch (errorCode) {
|
|
1293
|
-
case "AccessDeniedException":
|
|
1294
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1295
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "InternalServiceErrorException":
|
|
1297
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1298
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "InvalidRequestException":
|
|
1300
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1301
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ResourceNotFoundException":
|
|
1303
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1305
|
-
case "ThrottlingException":
|
|
1306
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1307
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1308
|
-
default:
|
|
1309
|
-
const parsedBody = parsedOutput.body;
|
|
1310
|
-
return throwDefaultError({
|
|
1311
|
-
output,
|
|
1312
|
-
parsedBody,
|
|
1313
|
-
errorCode
|
|
1314
|
-
});
|
|
1315
|
-
}
|
|
1316
|
-
}, "de_GetAccessorCommandError");
|
|
1317
|
-
var de_GetMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1318
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
|
-
return de_GetMemberCommandError(output, context);
|
|
1320
|
-
}
|
|
1321
|
-
const contents = (0, import_smithy_client.map)({
|
|
1322
|
-
$metadata: deserializeMetadata(output)
|
|
1323
|
-
});
|
|
1324
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1325
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1326
|
-
Member: (_) => de_Member(_, context)
|
|
1327
|
-
});
|
|
1328
|
-
Object.assign(contents, doc);
|
|
1329
|
-
return contents;
|
|
1330
|
-
}, "de_GetMemberCommand");
|
|
1331
|
-
var de_GetMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1332
|
-
const parsedOutput = {
|
|
1333
|
-
...output,
|
|
1334
|
-
body: await parseErrorBody(output.body, context)
|
|
1335
|
-
};
|
|
1336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1337
|
-
switch (errorCode) {
|
|
1338
|
-
case "AccessDeniedException":
|
|
1339
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1340
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "InternalServiceErrorException":
|
|
1342
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1343
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "InvalidRequestException":
|
|
1345
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1346
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "ResourceNotFoundException":
|
|
1348
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1349
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ThrottlingException":
|
|
1351
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1352
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1353
|
-
default:
|
|
1354
|
-
const parsedBody = parsedOutput.body;
|
|
1355
|
-
return throwDefaultError({
|
|
1356
|
-
output,
|
|
1357
|
-
parsedBody,
|
|
1358
|
-
errorCode
|
|
1359
|
-
});
|
|
974
|
+
return contents;
|
|
975
|
+
}, "de_DeleteNodeCommand");
|
|
976
|
+
var de_GetAccessorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
977
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
978
|
+
return de_CommandError(output, context);
|
|
979
|
+
}
|
|
980
|
+
const contents = (0, import_smithy_client.map)({
|
|
981
|
+
$metadata: deserializeMetadata(output)
|
|
982
|
+
});
|
|
983
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
984
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
985
|
+
Accessor: (_) => de_Accessor(_, context)
|
|
986
|
+
});
|
|
987
|
+
Object.assign(contents, doc);
|
|
988
|
+
return contents;
|
|
989
|
+
}, "de_GetAccessorCommand");
|
|
990
|
+
var de_GetMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
991
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
992
|
+
return de_CommandError(output, context);
|
|
1360
993
|
}
|
|
1361
|
-
|
|
994
|
+
const contents = (0, import_smithy_client.map)({
|
|
995
|
+
$metadata: deserializeMetadata(output)
|
|
996
|
+
});
|
|
997
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
998
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
999
|
+
Member: (_) => de_Member(_, context)
|
|
1000
|
+
});
|
|
1001
|
+
Object.assign(contents, doc);
|
|
1002
|
+
return contents;
|
|
1003
|
+
}, "de_GetMemberCommand");
|
|
1362
1004
|
var de_GetNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1363
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1365
1007
|
}
|
|
1366
1008
|
const contents = (0, import_smithy_client.map)({
|
|
1367
1009
|
$metadata: deserializeMetadata(output)
|
|
@@ -1373,40 +1015,9 @@ var de_GetNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1373
1015
|
Object.assign(contents, doc);
|
|
1374
1016
|
return contents;
|
|
1375
1017
|
}, "de_GetNetworkCommand");
|
|
1376
|
-
var de_GetNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1377
|
-
const parsedOutput = {
|
|
1378
|
-
...output,
|
|
1379
|
-
body: await parseErrorBody(output.body, context)
|
|
1380
|
-
};
|
|
1381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
-
switch (errorCode) {
|
|
1383
|
-
case "AccessDeniedException":
|
|
1384
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1385
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "InternalServiceErrorException":
|
|
1387
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1388
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "InvalidRequestException":
|
|
1390
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1391
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ResourceNotFoundException":
|
|
1393
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1394
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ThrottlingException":
|
|
1396
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1397
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1398
|
-
default:
|
|
1399
|
-
const parsedBody = parsedOutput.body;
|
|
1400
|
-
return throwDefaultError({
|
|
1401
|
-
output,
|
|
1402
|
-
parsedBody,
|
|
1403
|
-
errorCode
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
}, "de_GetNetworkCommandError");
|
|
1407
1018
|
var de_GetNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1408
1019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
1410
1021
|
}
|
|
1411
1022
|
const contents = (0, import_smithy_client.map)({
|
|
1412
1023
|
$metadata: deserializeMetadata(output)
|
|
@@ -1418,40 +1029,9 @@ var de_GetNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1418
1029
|
Object.assign(contents, doc);
|
|
1419
1030
|
return contents;
|
|
1420
1031
|
}, "de_GetNodeCommand");
|
|
1421
|
-
var de_GetNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1422
|
-
const parsedOutput = {
|
|
1423
|
-
...output,
|
|
1424
|
-
body: await parseErrorBody(output.body, context)
|
|
1425
|
-
};
|
|
1426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
|
-
switch (errorCode) {
|
|
1428
|
-
case "AccessDeniedException":
|
|
1429
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1430
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "InternalServiceErrorException":
|
|
1432
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1433
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "InvalidRequestException":
|
|
1435
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1436
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ResourceNotFoundException":
|
|
1438
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1439
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "ThrottlingException":
|
|
1441
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1442
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1443
|
-
default:
|
|
1444
|
-
const parsedBody = parsedOutput.body;
|
|
1445
|
-
return throwDefaultError({
|
|
1446
|
-
output,
|
|
1447
|
-
parsedBody,
|
|
1448
|
-
errorCode
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
}, "de_GetNodeCommandError");
|
|
1452
1032
|
var de_GetProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1453
1033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1454
|
-
return
|
|
1034
|
+
return de_CommandError(output, context);
|
|
1455
1035
|
}
|
|
1456
1036
|
const contents = (0, import_smithy_client.map)({
|
|
1457
1037
|
$metadata: deserializeMetadata(output)
|
|
@@ -1463,40 +1043,9 @@ var de_GetProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1463
1043
|
Object.assign(contents, doc);
|
|
1464
1044
|
return contents;
|
|
1465
1045
|
}, "de_GetProposalCommand");
|
|
1466
|
-
var de_GetProposalCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1467
|
-
const parsedOutput = {
|
|
1468
|
-
...output,
|
|
1469
|
-
body: await parseErrorBody(output.body, context)
|
|
1470
|
-
};
|
|
1471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
|
-
switch (errorCode) {
|
|
1473
|
-
case "AccessDeniedException":
|
|
1474
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1475
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "InternalServiceErrorException":
|
|
1477
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1478
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "InvalidRequestException":
|
|
1480
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1481
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "ResourceNotFoundException":
|
|
1483
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1484
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "ThrottlingException":
|
|
1486
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1487
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1488
|
-
default:
|
|
1489
|
-
const parsedBody = parsedOutput.body;
|
|
1490
|
-
return throwDefaultError({
|
|
1491
|
-
output,
|
|
1492
|
-
parsedBody,
|
|
1493
|
-
errorCode
|
|
1494
|
-
});
|
|
1495
|
-
}
|
|
1496
|
-
}, "de_GetProposalCommandError");
|
|
1497
1046
|
var de_ListAccessorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1498
1047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
|
-
return
|
|
1048
|
+
return de_CommandError(output, context);
|
|
1500
1049
|
}
|
|
1501
1050
|
const contents = (0, import_smithy_client.map)({
|
|
1502
1051
|
$metadata: deserializeMetadata(output)
|
|
@@ -1509,37 +1058,9 @@ var de_ListAccessorsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1509
1058
|
Object.assign(contents, doc);
|
|
1510
1059
|
return contents;
|
|
1511
1060
|
}, "de_ListAccessorsCommand");
|
|
1512
|
-
var de_ListAccessorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1513
|
-
const parsedOutput = {
|
|
1514
|
-
...output,
|
|
1515
|
-
body: await parseErrorBody(output.body, context)
|
|
1516
|
-
};
|
|
1517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
-
switch (errorCode) {
|
|
1519
|
-
case "AccessDeniedException":
|
|
1520
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1521
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "InternalServiceErrorException":
|
|
1523
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1524
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "InvalidRequestException":
|
|
1526
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1527
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "ThrottlingException":
|
|
1529
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1530
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1531
|
-
default:
|
|
1532
|
-
const parsedBody = parsedOutput.body;
|
|
1533
|
-
return throwDefaultError({
|
|
1534
|
-
output,
|
|
1535
|
-
parsedBody,
|
|
1536
|
-
errorCode
|
|
1537
|
-
});
|
|
1538
|
-
}
|
|
1539
|
-
}, "de_ListAccessorsCommandError");
|
|
1540
1061
|
var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1541
1062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1542
|
-
return
|
|
1063
|
+
return de_CommandError(output, context);
|
|
1543
1064
|
}
|
|
1544
1065
|
const contents = (0, import_smithy_client.map)({
|
|
1545
1066
|
$metadata: deserializeMetadata(output)
|
|
@@ -1552,43 +1073,9 @@ var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1552
1073
|
Object.assign(contents, doc);
|
|
1553
1074
|
return contents;
|
|
1554
1075
|
}, "de_ListInvitationsCommand");
|
|
1555
|
-
var de_ListInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1556
|
-
const parsedOutput = {
|
|
1557
|
-
...output,
|
|
1558
|
-
body: await parseErrorBody(output.body, context)
|
|
1559
|
-
};
|
|
1560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
|
-
switch (errorCode) {
|
|
1562
|
-
case "AccessDeniedException":
|
|
1563
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1564
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "InternalServiceErrorException":
|
|
1566
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1567
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "InvalidRequestException":
|
|
1569
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1570
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "ResourceLimitExceededException":
|
|
1572
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
1573
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "ResourceNotFoundException":
|
|
1575
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ThrottlingException":
|
|
1578
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1579
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1580
|
-
default:
|
|
1581
|
-
const parsedBody = parsedOutput.body;
|
|
1582
|
-
return throwDefaultError({
|
|
1583
|
-
output,
|
|
1584
|
-
parsedBody,
|
|
1585
|
-
errorCode
|
|
1586
|
-
});
|
|
1587
|
-
}
|
|
1588
|
-
}, "de_ListInvitationsCommandError");
|
|
1589
1076
|
var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1590
1077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1591
|
-
return
|
|
1078
|
+
return de_CommandError(output, context);
|
|
1592
1079
|
}
|
|
1593
1080
|
const contents = (0, import_smithy_client.map)({
|
|
1594
1081
|
$metadata: deserializeMetadata(output)
|
|
@@ -1601,37 +1088,9 @@ var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1601
1088
|
Object.assign(contents, doc);
|
|
1602
1089
|
return contents;
|
|
1603
1090
|
}, "de_ListMembersCommand");
|
|
1604
|
-
var de_ListMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1605
|
-
const parsedOutput = {
|
|
1606
|
-
...output,
|
|
1607
|
-
body: await parseErrorBody(output.body, context)
|
|
1608
|
-
};
|
|
1609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1610
|
-
switch (errorCode) {
|
|
1611
|
-
case "AccessDeniedException":
|
|
1612
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1613
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "InternalServiceErrorException":
|
|
1615
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1616
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "InvalidRequestException":
|
|
1618
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1619
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "ThrottlingException":
|
|
1621
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1622
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1623
|
-
default:
|
|
1624
|
-
const parsedBody = parsedOutput.body;
|
|
1625
|
-
return throwDefaultError({
|
|
1626
|
-
output,
|
|
1627
|
-
parsedBody,
|
|
1628
|
-
errorCode
|
|
1629
|
-
});
|
|
1630
|
-
}
|
|
1631
|
-
}, "de_ListMembersCommandError");
|
|
1632
1091
|
var de_ListNetworksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1633
1092
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1634
|
-
return
|
|
1093
|
+
return de_CommandError(output, context);
|
|
1635
1094
|
}
|
|
1636
1095
|
const contents = (0, import_smithy_client.map)({
|
|
1637
1096
|
$metadata: deserializeMetadata(output)
|
|
@@ -1644,80 +1103,24 @@ var de_ListNetworksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1644
1103
|
Object.assign(contents, doc);
|
|
1645
1104
|
return contents;
|
|
1646
1105
|
}, "de_ListNetworksCommand");
|
|
1647
|
-
var de_ListNetworksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1648
|
-
const parsedOutput = {
|
|
1649
|
-
...output,
|
|
1650
|
-
body: await parseErrorBody(output.body, context)
|
|
1651
|
-
};
|
|
1652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1653
|
-
switch (errorCode) {
|
|
1654
|
-
case "AccessDeniedException":
|
|
1655
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1656
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1657
|
-
case "InternalServiceErrorException":
|
|
1658
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1659
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "InvalidRequestException":
|
|
1661
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1662
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ThrottlingException":
|
|
1664
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1665
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1666
|
-
default:
|
|
1667
|
-
const parsedBody = parsedOutput.body;
|
|
1668
|
-
return throwDefaultError({
|
|
1669
|
-
output,
|
|
1670
|
-
parsedBody,
|
|
1671
|
-
errorCode
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
}, "de_ListNetworksCommandError");
|
|
1675
1106
|
var de_ListNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1676
1107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1677
|
-
return
|
|
1108
|
+
return de_CommandError(output, context);
|
|
1678
1109
|
}
|
|
1679
1110
|
const contents = (0, import_smithy_client.map)({
|
|
1680
1111
|
$metadata: deserializeMetadata(output)
|
|
1681
1112
|
});
|
|
1682
1113
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1683
1114
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1684
|
-
NextToken: import_smithy_client.expectString,
|
|
1685
|
-
Nodes: (_) => de_NodeSummaryList(_, context)
|
|
1686
|
-
});
|
|
1687
|
-
Object.assign(contents, doc);
|
|
1688
|
-
return contents;
|
|
1689
|
-
}, "de_ListNodesCommand");
|
|
1690
|
-
var de_ListNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1691
|
-
const parsedOutput = {
|
|
1692
|
-
...output,
|
|
1693
|
-
body: await parseErrorBody(output.body, context)
|
|
1694
|
-
};
|
|
1695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1696
|
-
switch (errorCode) {
|
|
1697
|
-
case "AccessDeniedException":
|
|
1698
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1699
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "InternalServiceErrorException":
|
|
1701
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1702
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "InvalidRequestException":
|
|
1704
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1705
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "ThrottlingException":
|
|
1707
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1708
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1709
|
-
default:
|
|
1710
|
-
const parsedBody = parsedOutput.body;
|
|
1711
|
-
return throwDefaultError({
|
|
1712
|
-
output,
|
|
1713
|
-
parsedBody,
|
|
1714
|
-
errorCode
|
|
1715
|
-
});
|
|
1716
|
-
}
|
|
1717
|
-
}, "de_ListNodesCommandError");
|
|
1115
|
+
NextToken: import_smithy_client.expectString,
|
|
1116
|
+
Nodes: (_) => de_NodeSummaryList(_, context)
|
|
1117
|
+
});
|
|
1118
|
+
Object.assign(contents, doc);
|
|
1119
|
+
return contents;
|
|
1120
|
+
}, "de_ListNodesCommand");
|
|
1718
1121
|
var de_ListProposalsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1719
1122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1720
|
-
return
|
|
1123
|
+
return de_CommandError(output, context);
|
|
1721
1124
|
}
|
|
1722
1125
|
const contents = (0, import_smithy_client.map)({
|
|
1723
1126
|
$metadata: deserializeMetadata(output)
|
|
@@ -1730,40 +1133,9 @@ var de_ListProposalsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1730
1133
|
Object.assign(contents, doc);
|
|
1731
1134
|
return contents;
|
|
1732
1135
|
}, "de_ListProposalsCommand");
|
|
1733
|
-
var de_ListProposalsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1734
|
-
const parsedOutput = {
|
|
1735
|
-
...output,
|
|
1736
|
-
body: await parseErrorBody(output.body, context)
|
|
1737
|
-
};
|
|
1738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1739
|
-
switch (errorCode) {
|
|
1740
|
-
case "AccessDeniedException":
|
|
1741
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1742
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1743
|
-
case "InternalServiceErrorException":
|
|
1744
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1745
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "InvalidRequestException":
|
|
1747
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1748
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "ResourceNotFoundException":
|
|
1750
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1751
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "ThrottlingException":
|
|
1753
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1754
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1755
|
-
default:
|
|
1756
|
-
const parsedBody = parsedOutput.body;
|
|
1757
|
-
return throwDefaultError({
|
|
1758
|
-
output,
|
|
1759
|
-
parsedBody,
|
|
1760
|
-
errorCode
|
|
1761
|
-
});
|
|
1762
|
-
}
|
|
1763
|
-
}, "de_ListProposalsCommandError");
|
|
1764
1136
|
var de_ListProposalVotesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1765
1137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1766
|
-
return
|
|
1138
|
+
return de_CommandError(output, context);
|
|
1767
1139
|
}
|
|
1768
1140
|
const contents = (0, import_smithy_client.map)({
|
|
1769
1141
|
$metadata: deserializeMetadata(output)
|
|
@@ -1776,37 +1148,9 @@ var de_ListProposalVotesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1776
1148
|
Object.assign(contents, doc);
|
|
1777
1149
|
return contents;
|
|
1778
1150
|
}, "de_ListProposalVotesCommand");
|
|
1779
|
-
var de_ListProposalVotesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1780
|
-
const parsedOutput = {
|
|
1781
|
-
...output,
|
|
1782
|
-
body: await parseErrorBody(output.body, context)
|
|
1783
|
-
};
|
|
1784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
|
-
switch (errorCode) {
|
|
1786
|
-
case "AccessDeniedException":
|
|
1787
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1788
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "InternalServiceErrorException":
|
|
1790
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1791
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "InvalidRequestException":
|
|
1793
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1794
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "ThrottlingException":
|
|
1796
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1797
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1798
|
-
default:
|
|
1799
|
-
const parsedBody = parsedOutput.body;
|
|
1800
|
-
return throwDefaultError({
|
|
1801
|
-
output,
|
|
1802
|
-
parsedBody,
|
|
1803
|
-
errorCode
|
|
1804
|
-
});
|
|
1805
|
-
}
|
|
1806
|
-
}, "de_ListProposalVotesCommandError");
|
|
1807
1151
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1808
1152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1809
|
-
return
|
|
1153
|
+
return de_CommandError(output, context);
|
|
1810
1154
|
}
|
|
1811
1155
|
const contents = (0, import_smithy_client.map)({
|
|
1812
1156
|
$metadata: deserializeMetadata(output)
|
|
@@ -1818,37 +1162,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1818
1162
|
Object.assign(contents, doc);
|
|
1819
1163
|
return contents;
|
|
1820
1164
|
}, "de_ListTagsForResourceCommand");
|
|
1821
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1822
|
-
const parsedOutput = {
|
|
1823
|
-
...output,
|
|
1824
|
-
body: await parseErrorBody(output.body, context)
|
|
1825
|
-
};
|
|
1826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1827
|
-
switch (errorCode) {
|
|
1828
|
-
case "InternalServiceErrorException":
|
|
1829
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1830
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "InvalidRequestException":
|
|
1832
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1833
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "ResourceNotFoundException":
|
|
1835
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1836
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ResourceNotReadyException":
|
|
1838
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1839
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1840
|
-
default:
|
|
1841
|
-
const parsedBody = parsedOutput.body;
|
|
1842
|
-
return throwDefaultError({
|
|
1843
|
-
output,
|
|
1844
|
-
parsedBody,
|
|
1845
|
-
errorCode
|
|
1846
|
-
});
|
|
1847
|
-
}
|
|
1848
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1849
1165
|
var de_RejectInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1850
1166
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1851
|
-
return
|
|
1167
|
+
return de_CommandError(output, context);
|
|
1852
1168
|
}
|
|
1853
1169
|
const contents = (0, import_smithy_client.map)({
|
|
1854
1170
|
$metadata: deserializeMetadata(output)
|
|
@@ -1856,43 +1172,9 @@ var de_RejectInvitationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1856
1172
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1857
1173
|
return contents;
|
|
1858
1174
|
}, "de_RejectInvitationCommand");
|
|
1859
|
-
var de_RejectInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1860
|
-
const parsedOutput = {
|
|
1861
|
-
...output,
|
|
1862
|
-
body: await parseErrorBody(output.body, context)
|
|
1863
|
-
};
|
|
1864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
-
switch (errorCode) {
|
|
1866
|
-
case "AccessDeniedException":
|
|
1867
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1868
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "IllegalActionException":
|
|
1870
|
-
case "com.amazonaws.managedblockchain#IllegalActionException":
|
|
1871
|
-
throw await de_IllegalActionExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "InternalServiceErrorException":
|
|
1873
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1874
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "InvalidRequestException":
|
|
1876
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1877
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "ResourceNotFoundException":
|
|
1879
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1880
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "ThrottlingException":
|
|
1882
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1883
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1884
|
-
default:
|
|
1885
|
-
const parsedBody = parsedOutput.body;
|
|
1886
|
-
return throwDefaultError({
|
|
1887
|
-
output,
|
|
1888
|
-
parsedBody,
|
|
1889
|
-
errorCode
|
|
1890
|
-
});
|
|
1891
|
-
}
|
|
1892
|
-
}, "de_RejectInvitationCommandError");
|
|
1893
1175
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1894
1176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1895
|
-
return
|
|
1177
|
+
return de_CommandError(output, context);
|
|
1896
1178
|
}
|
|
1897
1179
|
const contents = (0, import_smithy_client.map)({
|
|
1898
1180
|
$metadata: deserializeMetadata(output)
|
|
@@ -1900,40 +1182,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1900
1182
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1901
1183
|
return contents;
|
|
1902
1184
|
}, "de_TagResourceCommand");
|
|
1903
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1904
|
-
const parsedOutput = {
|
|
1905
|
-
...output,
|
|
1906
|
-
body: await parseErrorBody(output.body, context)
|
|
1907
|
-
};
|
|
1908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1909
|
-
switch (errorCode) {
|
|
1910
|
-
case "InternalServiceErrorException":
|
|
1911
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1912
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "InvalidRequestException":
|
|
1914
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1915
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "ResourceNotFoundException":
|
|
1917
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1918
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ResourceNotReadyException":
|
|
1920
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1921
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "TooManyTagsException":
|
|
1923
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
1924
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1925
|
-
default:
|
|
1926
|
-
const parsedBody = parsedOutput.body;
|
|
1927
|
-
return throwDefaultError({
|
|
1928
|
-
output,
|
|
1929
|
-
parsedBody,
|
|
1930
|
-
errorCode
|
|
1931
|
-
});
|
|
1932
|
-
}
|
|
1933
|
-
}, "de_TagResourceCommandError");
|
|
1934
1185
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1935
1186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1936
|
-
return
|
|
1187
|
+
return de_CommandError(output, context);
|
|
1937
1188
|
}
|
|
1938
1189
|
const contents = (0, import_smithy_client.map)({
|
|
1939
1190
|
$metadata: deserializeMetadata(output)
|
|
@@ -1941,37 +1192,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1941
1192
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1942
1193
|
return contents;
|
|
1943
1194
|
}, "de_UntagResourceCommand");
|
|
1944
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1945
|
-
const parsedOutput = {
|
|
1946
|
-
...output,
|
|
1947
|
-
body: await parseErrorBody(output.body, context)
|
|
1948
|
-
};
|
|
1949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
-
switch (errorCode) {
|
|
1951
|
-
case "InternalServiceErrorException":
|
|
1952
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1953
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "InvalidRequestException":
|
|
1955
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1956
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "ResourceNotFoundException":
|
|
1958
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1959
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "ResourceNotReadyException":
|
|
1961
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1962
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1963
|
-
default:
|
|
1964
|
-
const parsedBody = parsedOutput.body;
|
|
1965
|
-
return throwDefaultError({
|
|
1966
|
-
output,
|
|
1967
|
-
parsedBody,
|
|
1968
|
-
errorCode
|
|
1969
|
-
});
|
|
1970
|
-
}
|
|
1971
|
-
}, "de_UntagResourceCommandError");
|
|
1972
1195
|
var de_UpdateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1973
1196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1974
|
-
return
|
|
1197
|
+
return de_CommandError(output, context);
|
|
1975
1198
|
}
|
|
1976
1199
|
const contents = (0, import_smithy_client.map)({
|
|
1977
1200
|
$metadata: deserializeMetadata(output)
|
|
@@ -1979,40 +1202,9 @@ var de_UpdateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1979
1202
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1980
1203
|
return contents;
|
|
1981
1204
|
}, "de_UpdateMemberCommand");
|
|
1982
|
-
var de_UpdateMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1983
|
-
const parsedOutput = {
|
|
1984
|
-
...output,
|
|
1985
|
-
body: await parseErrorBody(output.body, context)
|
|
1986
|
-
};
|
|
1987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
-
switch (errorCode) {
|
|
1989
|
-
case "AccessDeniedException":
|
|
1990
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1991
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "InternalServiceErrorException":
|
|
1993
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1994
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "InvalidRequestException":
|
|
1996
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1997
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "ResourceNotFoundException":
|
|
1999
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
2000
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "ThrottlingException":
|
|
2002
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
2003
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2004
|
-
default:
|
|
2005
|
-
const parsedBody = parsedOutput.body;
|
|
2006
|
-
return throwDefaultError({
|
|
2007
|
-
output,
|
|
2008
|
-
parsedBody,
|
|
2009
|
-
errorCode
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
}, "de_UpdateMemberCommandError");
|
|
2013
1205
|
var de_UpdateNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2014
1206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2015
|
-
return
|
|
1207
|
+
return de_CommandError(output, context);
|
|
2016
1208
|
}
|
|
2017
1209
|
const contents = (0, import_smithy_client.map)({
|
|
2018
1210
|
$metadata: deserializeMetadata(output)
|
|
@@ -2020,40 +1212,9 @@ var de_UpdateNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2020
1212
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2021
1213
|
return contents;
|
|
2022
1214
|
}, "de_UpdateNodeCommand");
|
|
2023
|
-
var de_UpdateNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2024
|
-
const parsedOutput = {
|
|
2025
|
-
...output,
|
|
2026
|
-
body: await parseErrorBody(output.body, context)
|
|
2027
|
-
};
|
|
2028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
|
-
switch (errorCode) {
|
|
2030
|
-
case "AccessDeniedException":
|
|
2031
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
2032
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "InternalServiceErrorException":
|
|
2034
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
2035
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2036
|
-
case "InvalidRequestException":
|
|
2037
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
2038
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2039
|
-
case "ResourceNotFoundException":
|
|
2040
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
2041
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "ThrottlingException":
|
|
2043
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
2044
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2045
|
-
default:
|
|
2046
|
-
const parsedBody = parsedOutput.body;
|
|
2047
|
-
return throwDefaultError({
|
|
2048
|
-
output,
|
|
2049
|
-
parsedBody,
|
|
2050
|
-
errorCode
|
|
2051
|
-
});
|
|
2052
|
-
}
|
|
2053
|
-
}, "de_UpdateNodeCommandError");
|
|
2054
1215
|
var de_VoteOnProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2055
1216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2056
|
-
return
|
|
1217
|
+
return de_CommandError(output, context);
|
|
2057
1218
|
}
|
|
2058
1219
|
const contents = (0, import_smithy_client.map)({
|
|
2059
1220
|
$metadata: deserializeMetadata(output)
|
|
@@ -2061,7 +1222,7 @@ var de_VoteOnProposalCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2061
1222
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2062
1223
|
return contents;
|
|
2063
1224
|
}, "de_VoteOnProposalCommand");
|
|
2064
|
-
var
|
|
1225
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2065
1226
|
const parsedOutput = {
|
|
2066
1227
|
...output,
|
|
2067
1228
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2071,21 +1232,33 @@ var de_VoteOnProposalCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
2071
1232
|
case "AccessDeniedException":
|
|
2072
1233
|
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
2073
1234
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "IllegalActionException":
|
|
2075
|
-
case "com.amazonaws.managedblockchain#IllegalActionException":
|
|
2076
|
-
throw await de_IllegalActionExceptionRes(parsedOutput, context);
|
|
2077
1235
|
case "InternalServiceErrorException":
|
|
2078
1236
|
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
2079
1237
|
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
2080
1238
|
case "InvalidRequestException":
|
|
2081
1239
|
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
2082
1240
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "
|
|
2084
|
-
case "com.amazonaws.managedblockchain#
|
|
2085
|
-
throw await
|
|
1241
|
+
case "ResourceAlreadyExistsException":
|
|
1242
|
+
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
1243
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1244
|
+
case "ResourceLimitExceededException":
|
|
1245
|
+
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
1246
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2086
1247
|
case "ThrottlingException":
|
|
2087
1248
|
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
2088
1249
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1250
|
+
case "TooManyTagsException":
|
|
1251
|
+
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
1252
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1253
|
+
case "ResourceNotFoundException":
|
|
1254
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1255
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
+
case "ResourceNotReadyException":
|
|
1257
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1258
|
+
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1259
|
+
case "IllegalActionException":
|
|
1260
|
+
case "com.amazonaws.managedblockchain#IllegalActionException":
|
|
1261
|
+
throw await de_IllegalActionExceptionRes(parsedOutput, context);
|
|
2089
1262
|
default:
|
|
2090
1263
|
const parsedBody = parsedOutput.body;
|
|
2091
1264
|
return throwDefaultError({
|
|
@@ -2094,7 +1267,7 @@ var de_VoteOnProposalCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
2094
1267
|
errorCode
|
|
2095
1268
|
});
|
|
2096
1269
|
}
|
|
2097
|
-
}, "
|
|
1270
|
+
}, "de_CommandError");
|
|
2098
1271
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ManagedBlockchainServiceException);
|
|
2099
1272
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2100
1273
|
const contents = (0, import_smithy_client.map)({});
|