@aws-sdk/client-tnb 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +53 -1039
- package/dist-es/protocols/Aws_restJson1.js +44 -1030
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -891,7 +891,7 @@ var se_ValidateSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (i
|
|
|
891
891
|
}, "se_ValidateSolNetworkPackageContentCommand");
|
|
892
892
|
var de_CancelSolNetworkOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
893
893
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
894
|
-
return
|
|
894
|
+
return de_CommandError(output, context);
|
|
895
895
|
}
|
|
896
896
|
const contents = (0, import_smithy_client.map)({
|
|
897
897
|
$metadata: deserializeMetadata(output)
|
|
@@ -899,40 +899,9 @@ var de_CancelSolNetworkOperationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
899
899
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
900
900
|
return contents;
|
|
901
901
|
}, "de_CancelSolNetworkOperationCommand");
|
|
902
|
-
var de_CancelSolNetworkOperationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
903
|
-
const parsedOutput = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseErrorBody(output.body, context)
|
|
906
|
-
};
|
|
907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
-
switch (errorCode) {
|
|
909
|
-
case "AccessDeniedException":
|
|
910
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
911
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
912
|
-
case "InternalServerException":
|
|
913
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
914
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ResourceNotFoundException":
|
|
916
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ThrottlingException":
|
|
919
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
920
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
921
|
-
case "ValidationException":
|
|
922
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
923
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
924
|
-
default:
|
|
925
|
-
const parsedBody = parsedOutput.body;
|
|
926
|
-
return throwDefaultError({
|
|
927
|
-
output,
|
|
928
|
-
parsedBody,
|
|
929
|
-
errorCode
|
|
930
|
-
});
|
|
931
|
-
}
|
|
932
|
-
}, "de_CancelSolNetworkOperationCommandError");
|
|
933
902
|
var de_CreateSolFunctionPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
934
903
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
935
|
-
return
|
|
904
|
+
return de_CommandError(output, context);
|
|
936
905
|
}
|
|
937
906
|
const contents = (0, import_smithy_client.map)({
|
|
938
907
|
$metadata: deserializeMetadata(output)
|
|
@@ -949,40 +918,9 @@ var de_CreateSolFunctionPackageCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
949
918
|
Object.assign(contents, doc);
|
|
950
919
|
return contents;
|
|
951
920
|
}, "de_CreateSolFunctionPackageCommand");
|
|
952
|
-
var de_CreateSolFunctionPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
953
|
-
const parsedOutput = {
|
|
954
|
-
...output,
|
|
955
|
-
body: await parseErrorBody(output.body, context)
|
|
956
|
-
};
|
|
957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
-
switch (errorCode) {
|
|
959
|
-
case "AccessDeniedException":
|
|
960
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
961
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
962
|
-
case "InternalServerException":
|
|
963
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
964
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ServiceQuotaExceededException":
|
|
966
|
-
case "com.amazonaws.tnb#ServiceQuotaExceededException":
|
|
967
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
968
|
-
case "ThrottlingException":
|
|
969
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
970
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
971
|
-
case "ValidationException":
|
|
972
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
973
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
974
|
-
default:
|
|
975
|
-
const parsedBody = parsedOutput.body;
|
|
976
|
-
return throwDefaultError({
|
|
977
|
-
output,
|
|
978
|
-
parsedBody,
|
|
979
|
-
errorCode
|
|
980
|
-
});
|
|
981
|
-
}
|
|
982
|
-
}, "de_CreateSolFunctionPackageCommandError");
|
|
983
921
|
var de_CreateSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
984
922
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
985
|
-
return
|
|
923
|
+
return de_CommandError(output, context);
|
|
986
924
|
}
|
|
987
925
|
const contents = (0, import_smithy_client.map)({
|
|
988
926
|
$metadata: deserializeMetadata(output)
|
|
@@ -998,43 +936,9 @@ var de_CreateSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
998
936
|
Object.assign(contents, doc);
|
|
999
937
|
return contents;
|
|
1000
938
|
}, "de_CreateSolNetworkInstanceCommand");
|
|
1001
|
-
var de_CreateSolNetworkInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1002
|
-
const parsedOutput = {
|
|
1003
|
-
...output,
|
|
1004
|
-
body: await parseErrorBody(output.body, context)
|
|
1005
|
-
};
|
|
1006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
|
-
switch (errorCode) {
|
|
1008
|
-
case "AccessDeniedException":
|
|
1009
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1010
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "InternalServerException":
|
|
1012
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1013
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ResourceNotFoundException":
|
|
1015
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1016
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ServiceQuotaExceededException":
|
|
1018
|
-
case "com.amazonaws.tnb#ServiceQuotaExceededException":
|
|
1019
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ThrottlingException":
|
|
1021
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1022
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ValidationException":
|
|
1024
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1025
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1026
|
-
default:
|
|
1027
|
-
const parsedBody = parsedOutput.body;
|
|
1028
|
-
return throwDefaultError({
|
|
1029
|
-
output,
|
|
1030
|
-
parsedBody,
|
|
1031
|
-
errorCode
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
}, "de_CreateSolNetworkInstanceCommandError");
|
|
1035
939
|
var de_CreateSolNetworkPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1036
940
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1037
|
-
return
|
|
941
|
+
return de_CommandError(output, context);
|
|
1038
942
|
}
|
|
1039
943
|
const contents = (0, import_smithy_client.map)({
|
|
1040
944
|
$metadata: deserializeMetadata(output)
|
|
@@ -1051,40 +955,9 @@ var de_CreateSolNetworkPackageCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1051
955
|
Object.assign(contents, doc);
|
|
1052
956
|
return contents;
|
|
1053
957
|
}, "de_CreateSolNetworkPackageCommand");
|
|
1054
|
-
var de_CreateSolNetworkPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1055
|
-
const parsedOutput = {
|
|
1056
|
-
...output,
|
|
1057
|
-
body: await parseErrorBody(output.body, context)
|
|
1058
|
-
};
|
|
1059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
|
-
switch (errorCode) {
|
|
1061
|
-
case "AccessDeniedException":
|
|
1062
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1063
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "InternalServerException":
|
|
1065
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ServiceQuotaExceededException":
|
|
1068
|
-
case "com.amazonaws.tnb#ServiceQuotaExceededException":
|
|
1069
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ThrottlingException":
|
|
1071
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1072
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ValidationException":
|
|
1074
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1075
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1076
|
-
default:
|
|
1077
|
-
const parsedBody = parsedOutput.body;
|
|
1078
|
-
return throwDefaultError({
|
|
1079
|
-
output,
|
|
1080
|
-
parsedBody,
|
|
1081
|
-
errorCode
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
}, "de_CreateSolNetworkPackageCommandError");
|
|
1085
958
|
var de_DeleteSolFunctionPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
959
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1087
|
-
return
|
|
960
|
+
return de_CommandError(output, context);
|
|
1088
961
|
}
|
|
1089
962
|
const contents = (0, import_smithy_client.map)({
|
|
1090
963
|
$metadata: deserializeMetadata(output)
|
|
@@ -1092,40 +965,9 @@ var de_DeleteSolFunctionPackageCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1092
965
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1093
966
|
return contents;
|
|
1094
967
|
}, "de_DeleteSolFunctionPackageCommand");
|
|
1095
|
-
var de_DeleteSolFunctionPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1096
|
-
const parsedOutput = {
|
|
1097
|
-
...output,
|
|
1098
|
-
body: await parseErrorBody(output.body, context)
|
|
1099
|
-
};
|
|
1100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
-
switch (errorCode) {
|
|
1102
|
-
case "AccessDeniedException":
|
|
1103
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1104
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "InternalServerException":
|
|
1106
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1107
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1108
|
-
case "ResourceNotFoundException":
|
|
1109
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1110
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ThrottlingException":
|
|
1112
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1113
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ValidationException":
|
|
1115
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
return throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
errorCode
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
}, "de_DeleteSolFunctionPackageCommandError");
|
|
1126
968
|
var de_DeleteSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1127
969
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1128
|
-
return
|
|
970
|
+
return de_CommandError(output, context);
|
|
1129
971
|
}
|
|
1130
972
|
const contents = (0, import_smithy_client.map)({
|
|
1131
973
|
$metadata: deserializeMetadata(output)
|
|
@@ -1133,40 +975,9 @@ var de_DeleteSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1133
975
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1134
976
|
return contents;
|
|
1135
977
|
}, "de_DeleteSolNetworkInstanceCommand");
|
|
1136
|
-
var de_DeleteSolNetworkInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1137
|
-
const parsedOutput = {
|
|
1138
|
-
...output,
|
|
1139
|
-
body: await parseErrorBody(output.body, context)
|
|
1140
|
-
};
|
|
1141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
|
-
switch (errorCode) {
|
|
1143
|
-
case "AccessDeniedException":
|
|
1144
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1145
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "InternalServerException":
|
|
1147
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1148
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "ResourceNotFoundException":
|
|
1150
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1151
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ThrottlingException":
|
|
1153
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1154
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "ValidationException":
|
|
1156
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1157
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1158
|
-
default:
|
|
1159
|
-
const parsedBody = parsedOutput.body;
|
|
1160
|
-
return throwDefaultError({
|
|
1161
|
-
output,
|
|
1162
|
-
parsedBody,
|
|
1163
|
-
errorCode
|
|
1164
|
-
});
|
|
1165
|
-
}
|
|
1166
|
-
}, "de_DeleteSolNetworkInstanceCommandError");
|
|
1167
978
|
var de_DeleteSolNetworkPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1168
979
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1169
|
-
return
|
|
980
|
+
return de_CommandError(output, context);
|
|
1170
981
|
}
|
|
1171
982
|
const contents = (0, import_smithy_client.map)({
|
|
1172
983
|
$metadata: deserializeMetadata(output)
|
|
@@ -1174,40 +985,9 @@ var de_DeleteSolNetworkPackageCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1174
985
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1175
986
|
return contents;
|
|
1176
987
|
}, "de_DeleteSolNetworkPackageCommand");
|
|
1177
|
-
var de_DeleteSolNetworkPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1178
|
-
const parsedOutput = {
|
|
1179
|
-
...output,
|
|
1180
|
-
body: await parseErrorBody(output.body, context)
|
|
1181
|
-
};
|
|
1182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
|
-
switch (errorCode) {
|
|
1184
|
-
case "AccessDeniedException":
|
|
1185
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1186
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "InternalServerException":
|
|
1188
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1189
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ResourceNotFoundException":
|
|
1191
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1192
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ThrottlingException":
|
|
1194
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1195
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "ValidationException":
|
|
1197
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1198
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1199
|
-
default:
|
|
1200
|
-
const parsedBody = parsedOutput.body;
|
|
1201
|
-
return throwDefaultError({
|
|
1202
|
-
output,
|
|
1203
|
-
parsedBody,
|
|
1204
|
-
errorCode
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
}, "de_DeleteSolNetworkPackageCommandError");
|
|
1208
988
|
var de_GetSolFunctionInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1209
989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1210
|
-
return
|
|
990
|
+
return de_CommandError(output, context);
|
|
1211
991
|
}
|
|
1212
992
|
const contents = (0, import_smithy_client.map)({
|
|
1213
993
|
$metadata: deserializeMetadata(output)
|
|
@@ -1230,40 +1010,9 @@ var de_GetSolFunctionInstanceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1230
1010
|
Object.assign(contents, doc);
|
|
1231
1011
|
return contents;
|
|
1232
1012
|
}, "de_GetSolFunctionInstanceCommand");
|
|
1233
|
-
var de_GetSolFunctionInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1234
|
-
const parsedOutput = {
|
|
1235
|
-
...output,
|
|
1236
|
-
body: await parseErrorBody(output.body, context)
|
|
1237
|
-
};
|
|
1238
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
|
-
switch (errorCode) {
|
|
1240
|
-
case "AccessDeniedException":
|
|
1241
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1242
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "InternalServerException":
|
|
1244
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1245
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "ResourceNotFoundException":
|
|
1247
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1248
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ThrottlingException":
|
|
1250
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1251
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "ValidationException":
|
|
1253
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1254
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1255
|
-
default:
|
|
1256
|
-
const parsedBody = parsedOutput.body;
|
|
1257
|
-
return throwDefaultError({
|
|
1258
|
-
output,
|
|
1259
|
-
parsedBody,
|
|
1260
|
-
errorCode
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
}, "de_GetSolFunctionInstanceCommandError");
|
|
1264
1013
|
var de_GetSolFunctionPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1265
1014
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1266
|
-
return
|
|
1015
|
+
return de_CommandError(output, context);
|
|
1267
1016
|
}
|
|
1268
1017
|
const contents = (0, import_smithy_client.map)({
|
|
1269
1018
|
$metadata: deserializeMetadata(output)
|
|
@@ -1285,40 +1034,9 @@ var de_GetSolFunctionPackageCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1285
1034
|
Object.assign(contents, doc);
|
|
1286
1035
|
return contents;
|
|
1287
1036
|
}, "de_GetSolFunctionPackageCommand");
|
|
1288
|
-
var de_GetSolFunctionPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1289
|
-
const parsedOutput = {
|
|
1290
|
-
...output,
|
|
1291
|
-
body: await parseErrorBody(output.body, context)
|
|
1292
|
-
};
|
|
1293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
|
-
switch (errorCode) {
|
|
1295
|
-
case "AccessDeniedException":
|
|
1296
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1297
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "InternalServerException":
|
|
1299
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1300
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1301
|
-
case "ResourceNotFoundException":
|
|
1302
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1303
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "ThrottlingException":
|
|
1305
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1306
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "ValidationException":
|
|
1308
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1309
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1310
|
-
default:
|
|
1311
|
-
const parsedBody = parsedOutput.body;
|
|
1312
|
-
return throwDefaultError({
|
|
1313
|
-
output,
|
|
1314
|
-
parsedBody,
|
|
1315
|
-
errorCode
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
}, "de_GetSolFunctionPackageCommandError");
|
|
1319
1037
|
var de_GetSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1320
1038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1321
|
-
return
|
|
1039
|
+
return de_CommandError(output, context);
|
|
1322
1040
|
}
|
|
1323
1041
|
const contents = (0, import_smithy_client.map)({
|
|
1324
1042
|
$metadata: deserializeMetadata(output),
|
|
@@ -1328,40 +1046,9 @@ var de_GetSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1328
1046
|
contents.packageContent = data;
|
|
1329
1047
|
return contents;
|
|
1330
1048
|
}, "de_GetSolFunctionPackageContentCommand");
|
|
1331
|
-
var de_GetSolFunctionPackageContentCommandError = /* @__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.tnb#AccessDeniedException":
|
|
1340
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "InternalServerException":
|
|
1342
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1343
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1344
|
-
case "ResourceNotFoundException":
|
|
1345
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1346
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1347
|
-
case "ThrottlingException":
|
|
1348
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1349
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1350
|
-
case "ValidationException":
|
|
1351
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1352
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1353
|
-
default:
|
|
1354
|
-
const parsedBody = parsedOutput.body;
|
|
1355
|
-
return throwDefaultError({
|
|
1356
|
-
output,
|
|
1357
|
-
parsedBody,
|
|
1358
|
-
errorCode
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
}, "de_GetSolFunctionPackageContentCommandError");
|
|
1362
1049
|
var de_GetSolFunctionPackageDescriptorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1363
1050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1364
|
-
return
|
|
1051
|
+
return de_CommandError(output, context);
|
|
1365
1052
|
}
|
|
1366
1053
|
const contents = (0, import_smithy_client.map)({
|
|
1367
1054
|
$metadata: deserializeMetadata(output),
|
|
@@ -1371,40 +1058,9 @@ var de_GetSolFunctionPackageDescriptorCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1371
1058
|
contents.vnfd = data;
|
|
1372
1059
|
return contents;
|
|
1373
1060
|
}, "de_GetSolFunctionPackageDescriptorCommand");
|
|
1374
|
-
var de_GetSolFunctionPackageDescriptorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1375
|
-
const parsedOutput = {
|
|
1376
|
-
...output,
|
|
1377
|
-
body: await parseErrorBody(output.body, context)
|
|
1378
|
-
};
|
|
1379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
|
-
switch (errorCode) {
|
|
1381
|
-
case "AccessDeniedException":
|
|
1382
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1383
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "InternalServerException":
|
|
1385
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1386
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "ResourceNotFoundException":
|
|
1388
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1389
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ThrottlingException":
|
|
1391
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1392
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ValidationException":
|
|
1394
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1395
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1396
|
-
default:
|
|
1397
|
-
const parsedBody = parsedOutput.body;
|
|
1398
|
-
return throwDefaultError({
|
|
1399
|
-
output,
|
|
1400
|
-
parsedBody,
|
|
1401
|
-
errorCode
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
|
-
}, "de_GetSolFunctionPackageDescriptorCommandError");
|
|
1405
1061
|
var de_GetSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1406
1062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1407
|
-
return
|
|
1063
|
+
return de_CommandError(output, context);
|
|
1408
1064
|
}
|
|
1409
1065
|
const contents = (0, import_smithy_client.map)({
|
|
1410
1066
|
$metadata: deserializeMetadata(output)
|
|
@@ -1425,40 +1081,9 @@ var de_GetSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1425
1081
|
Object.assign(contents, doc);
|
|
1426
1082
|
return contents;
|
|
1427
1083
|
}, "de_GetSolNetworkInstanceCommand");
|
|
1428
|
-
var de_GetSolNetworkInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
-
const parsedOutput = {
|
|
1430
|
-
...output,
|
|
1431
|
-
body: await parseErrorBody(output.body, context)
|
|
1432
|
-
};
|
|
1433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
switch (errorCode) {
|
|
1435
|
-
case "AccessDeniedException":
|
|
1436
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1437
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "InternalServerException":
|
|
1439
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1440
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "ResourceNotFoundException":
|
|
1442
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1443
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1444
|
-
case "ThrottlingException":
|
|
1445
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1446
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "ValidationException":
|
|
1448
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1449
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1450
|
-
default:
|
|
1451
|
-
const parsedBody = parsedOutput.body;
|
|
1452
|
-
return throwDefaultError({
|
|
1453
|
-
output,
|
|
1454
|
-
parsedBody,
|
|
1455
|
-
errorCode
|
|
1456
|
-
});
|
|
1457
|
-
}
|
|
1458
|
-
}, "de_GetSolNetworkInstanceCommandError");
|
|
1459
1084
|
var de_GetSolNetworkOperationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1460
1085
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1461
|
-
return
|
|
1086
|
+
return de_CommandError(output, context);
|
|
1462
1087
|
}
|
|
1463
1088
|
const contents = (0, import_smithy_client.map)({
|
|
1464
1089
|
$metadata: deserializeMetadata(output)
|
|
@@ -1478,40 +1103,9 @@ var de_GetSolNetworkOperationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1478
1103
|
Object.assign(contents, doc);
|
|
1479
1104
|
return contents;
|
|
1480
1105
|
}, "de_GetSolNetworkOperationCommand");
|
|
1481
|
-
var de_GetSolNetworkOperationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1482
|
-
const parsedOutput = {
|
|
1483
|
-
...output,
|
|
1484
|
-
body: await parseErrorBody(output.body, context)
|
|
1485
|
-
};
|
|
1486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
|
-
switch (errorCode) {
|
|
1488
|
-
case "AccessDeniedException":
|
|
1489
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1490
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "InternalServerException":
|
|
1492
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1493
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1494
|
-
case "ResourceNotFoundException":
|
|
1495
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1496
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1497
|
-
case "ThrottlingException":
|
|
1498
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1499
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "ValidationException":
|
|
1501
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1502
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1503
|
-
default:
|
|
1504
|
-
const parsedBody = parsedOutput.body;
|
|
1505
|
-
return throwDefaultError({
|
|
1506
|
-
output,
|
|
1507
|
-
parsedBody,
|
|
1508
|
-
errorCode
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
}, "de_GetSolNetworkOperationCommandError");
|
|
1512
1106
|
var de_GetSolNetworkPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1513
1107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1514
|
-
return
|
|
1108
|
+
return de_CommandError(output, context);
|
|
1515
1109
|
}
|
|
1516
1110
|
const contents = (0, import_smithy_client.map)({
|
|
1517
1111
|
$metadata: deserializeMetadata(output)
|
|
@@ -1533,40 +1127,9 @@ var de_GetSolNetworkPackageCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1533
1127
|
Object.assign(contents, doc);
|
|
1534
1128
|
return contents;
|
|
1535
1129
|
}, "de_GetSolNetworkPackageCommand");
|
|
1536
|
-
var de_GetSolNetworkPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1537
|
-
const parsedOutput = {
|
|
1538
|
-
...output,
|
|
1539
|
-
body: await parseErrorBody(output.body, context)
|
|
1540
|
-
};
|
|
1541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1542
|
-
switch (errorCode) {
|
|
1543
|
-
case "AccessDeniedException":
|
|
1544
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1545
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "InternalServerException":
|
|
1547
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1548
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ResourceNotFoundException":
|
|
1550
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ThrottlingException":
|
|
1553
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1554
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ValidationException":
|
|
1556
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1557
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1558
|
-
default:
|
|
1559
|
-
const parsedBody = parsedOutput.body;
|
|
1560
|
-
return throwDefaultError({
|
|
1561
|
-
output,
|
|
1562
|
-
parsedBody,
|
|
1563
|
-
errorCode
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
}, "de_GetSolNetworkPackageCommandError");
|
|
1567
1130
|
var de_GetSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1568
1131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1569
|
-
return
|
|
1132
|
+
return de_CommandError(output, context);
|
|
1570
1133
|
}
|
|
1571
1134
|
const contents = (0, import_smithy_client.map)({
|
|
1572
1135
|
$metadata: deserializeMetadata(output),
|
|
@@ -1576,40 +1139,9 @@ var de_GetSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (output
|
|
|
1576
1139
|
contents.nsdContent = data;
|
|
1577
1140
|
return contents;
|
|
1578
1141
|
}, "de_GetSolNetworkPackageContentCommand");
|
|
1579
|
-
var de_GetSolNetworkPackageContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1580
|
-
const parsedOutput = {
|
|
1581
|
-
...output,
|
|
1582
|
-
body: await parseErrorBody(output.body, context)
|
|
1583
|
-
};
|
|
1584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
-
switch (errorCode) {
|
|
1586
|
-
case "AccessDeniedException":
|
|
1587
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1588
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "InternalServerException":
|
|
1590
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1591
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ResourceNotFoundException":
|
|
1593
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ThrottlingException":
|
|
1596
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1597
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ValidationException":
|
|
1599
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1600
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1601
|
-
default:
|
|
1602
|
-
const parsedBody = parsedOutput.body;
|
|
1603
|
-
return throwDefaultError({
|
|
1604
|
-
output,
|
|
1605
|
-
parsedBody,
|
|
1606
|
-
errorCode
|
|
1607
|
-
});
|
|
1608
|
-
}
|
|
1609
|
-
}, "de_GetSolNetworkPackageContentCommandError");
|
|
1610
1142
|
var de_GetSolNetworkPackageDescriptorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1611
1143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1612
|
-
return
|
|
1144
|
+
return de_CommandError(output, context);
|
|
1613
1145
|
}
|
|
1614
1146
|
const contents = (0, import_smithy_client.map)({
|
|
1615
1147
|
$metadata: deserializeMetadata(output),
|
|
@@ -1619,40 +1151,9 @@ var de_GetSolNetworkPackageDescriptorCommand = /* @__PURE__ */ __name(async (out
|
|
|
1619
1151
|
contents.nsd = data;
|
|
1620
1152
|
return contents;
|
|
1621
1153
|
}, "de_GetSolNetworkPackageDescriptorCommand");
|
|
1622
|
-
var de_GetSolNetworkPackageDescriptorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1623
|
-
const parsedOutput = {
|
|
1624
|
-
...output,
|
|
1625
|
-
body: await parseErrorBody(output.body, context)
|
|
1626
|
-
};
|
|
1627
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
-
switch (errorCode) {
|
|
1629
|
-
case "AccessDeniedException":
|
|
1630
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1631
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1632
|
-
case "InternalServerException":
|
|
1633
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1634
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "ResourceNotFoundException":
|
|
1636
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "ThrottlingException":
|
|
1639
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1640
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "ValidationException":
|
|
1642
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1643
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1644
|
-
default:
|
|
1645
|
-
const parsedBody = parsedOutput.body;
|
|
1646
|
-
return throwDefaultError({
|
|
1647
|
-
output,
|
|
1648
|
-
parsedBody,
|
|
1649
|
-
errorCode
|
|
1650
|
-
});
|
|
1651
|
-
}
|
|
1652
|
-
}, "de_GetSolNetworkPackageDescriptorCommandError");
|
|
1653
1154
|
var de_InstantiateSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1654
1155
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1655
|
-
return
|
|
1156
|
+
return de_CommandError(output, context);
|
|
1656
1157
|
}
|
|
1657
1158
|
const contents = (0, import_smithy_client.map)({
|
|
1658
1159
|
$metadata: deserializeMetadata(output)
|
|
@@ -1665,43 +1166,9 @@ var de_InstantiateSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1665
1166
|
Object.assign(contents, doc);
|
|
1666
1167
|
return contents;
|
|
1667
1168
|
}, "de_InstantiateSolNetworkInstanceCommand");
|
|
1668
|
-
var de_InstantiateSolNetworkInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1669
|
-
const parsedOutput = {
|
|
1670
|
-
...output,
|
|
1671
|
-
body: await parseErrorBody(output.body, context)
|
|
1672
|
-
};
|
|
1673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
-
switch (errorCode) {
|
|
1675
|
-
case "AccessDeniedException":
|
|
1676
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1677
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "InternalServerException":
|
|
1679
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1680
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ResourceNotFoundException":
|
|
1682
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1683
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ServiceQuotaExceededException":
|
|
1685
|
-
case "com.amazonaws.tnb#ServiceQuotaExceededException":
|
|
1686
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ThrottlingException":
|
|
1688
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1689
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ValidationException":
|
|
1691
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1692
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1693
|
-
default:
|
|
1694
|
-
const parsedBody = parsedOutput.body;
|
|
1695
|
-
return throwDefaultError({
|
|
1696
|
-
output,
|
|
1697
|
-
parsedBody,
|
|
1698
|
-
errorCode
|
|
1699
|
-
});
|
|
1700
|
-
}
|
|
1701
|
-
}, "de_InstantiateSolNetworkInstanceCommandError");
|
|
1702
1169
|
var de_ListSolFunctionInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1703
1170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1704
|
-
return
|
|
1171
|
+
return de_CommandError(output, context);
|
|
1705
1172
|
}
|
|
1706
1173
|
const contents = (0, import_smithy_client.map)({
|
|
1707
1174
|
$metadata: deserializeMetadata(output)
|
|
@@ -1714,37 +1181,9 @@ var de_ListSolFunctionInstancesCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1714
1181
|
Object.assign(contents, doc);
|
|
1715
1182
|
return contents;
|
|
1716
1183
|
}, "de_ListSolFunctionInstancesCommand");
|
|
1717
|
-
var de_ListSolFunctionInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1718
|
-
const parsedOutput = {
|
|
1719
|
-
...output,
|
|
1720
|
-
body: await parseErrorBody(output.body, context)
|
|
1721
|
-
};
|
|
1722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
|
-
switch (errorCode) {
|
|
1724
|
-
case "AccessDeniedException":
|
|
1725
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1726
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "InternalServerException":
|
|
1728
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1729
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "ThrottlingException":
|
|
1731
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1732
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "ValidationException":
|
|
1734
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1735
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1736
|
-
default:
|
|
1737
|
-
const parsedBody = parsedOutput.body;
|
|
1738
|
-
return throwDefaultError({
|
|
1739
|
-
output,
|
|
1740
|
-
parsedBody,
|
|
1741
|
-
errorCode
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
}, "de_ListSolFunctionInstancesCommandError");
|
|
1745
1184
|
var de_ListSolFunctionPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1746
1185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1747
|
-
return
|
|
1186
|
+
return de_CommandError(output, context);
|
|
1748
1187
|
}
|
|
1749
1188
|
const contents = (0, import_smithy_client.map)({
|
|
1750
1189
|
$metadata: deserializeMetadata(output)
|
|
@@ -1757,37 +1196,9 @@ var de_ListSolFunctionPackagesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1757
1196
|
Object.assign(contents, doc);
|
|
1758
1197
|
return contents;
|
|
1759
1198
|
}, "de_ListSolFunctionPackagesCommand");
|
|
1760
|
-
var de_ListSolFunctionPackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1761
|
-
const parsedOutput = {
|
|
1762
|
-
...output,
|
|
1763
|
-
body: await parseErrorBody(output.body, context)
|
|
1764
|
-
};
|
|
1765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
-
switch (errorCode) {
|
|
1767
|
-
case "AccessDeniedException":
|
|
1768
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1769
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "InternalServerException":
|
|
1771
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1772
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "ThrottlingException":
|
|
1774
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1775
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "ValidationException":
|
|
1777
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1778
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1779
|
-
default:
|
|
1780
|
-
const parsedBody = parsedOutput.body;
|
|
1781
|
-
return throwDefaultError({
|
|
1782
|
-
output,
|
|
1783
|
-
parsedBody,
|
|
1784
|
-
errorCode
|
|
1785
|
-
});
|
|
1786
|
-
}
|
|
1787
|
-
}, "de_ListSolFunctionPackagesCommandError");
|
|
1788
1199
|
var de_ListSolNetworkInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1789
1200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1790
|
-
return
|
|
1201
|
+
return de_CommandError(output, context);
|
|
1791
1202
|
}
|
|
1792
1203
|
const contents = (0, import_smithy_client.map)({
|
|
1793
1204
|
$metadata: deserializeMetadata(output)
|
|
@@ -1800,37 +1211,9 @@ var de_ListSolNetworkInstancesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1800
1211
|
Object.assign(contents, doc);
|
|
1801
1212
|
return contents;
|
|
1802
1213
|
}, "de_ListSolNetworkInstancesCommand");
|
|
1803
|
-
var de_ListSolNetworkInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1804
|
-
const parsedOutput = {
|
|
1805
|
-
...output,
|
|
1806
|
-
body: await parseErrorBody(output.body, context)
|
|
1807
|
-
};
|
|
1808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1809
|
-
switch (errorCode) {
|
|
1810
|
-
case "AccessDeniedException":
|
|
1811
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1812
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "InternalServerException":
|
|
1814
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1815
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "ThrottlingException":
|
|
1817
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1818
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "ValidationException":
|
|
1820
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1821
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1822
|
-
default:
|
|
1823
|
-
const parsedBody = parsedOutput.body;
|
|
1824
|
-
return throwDefaultError({
|
|
1825
|
-
output,
|
|
1826
|
-
parsedBody,
|
|
1827
|
-
errorCode
|
|
1828
|
-
});
|
|
1829
|
-
}
|
|
1830
|
-
}, "de_ListSolNetworkInstancesCommandError");
|
|
1831
1214
|
var de_ListSolNetworkOperationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1832
1215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1833
|
-
return
|
|
1216
|
+
return de_CommandError(output, context);
|
|
1834
1217
|
}
|
|
1835
1218
|
const contents = (0, import_smithy_client.map)({
|
|
1836
1219
|
$metadata: deserializeMetadata(output)
|
|
@@ -1843,37 +1226,9 @@ var de_ListSolNetworkOperationsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1843
1226
|
Object.assign(contents, doc);
|
|
1844
1227
|
return contents;
|
|
1845
1228
|
}, "de_ListSolNetworkOperationsCommand");
|
|
1846
|
-
var de_ListSolNetworkOperationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1847
|
-
const parsedOutput = {
|
|
1848
|
-
...output,
|
|
1849
|
-
body: await parseErrorBody(output.body, context)
|
|
1850
|
-
};
|
|
1851
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
|
-
switch (errorCode) {
|
|
1853
|
-
case "AccessDeniedException":
|
|
1854
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1855
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1856
|
-
case "InternalServerException":
|
|
1857
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1858
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1859
|
-
case "ThrottlingException":
|
|
1860
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1861
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "ValidationException":
|
|
1863
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1864
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1865
|
-
default:
|
|
1866
|
-
const parsedBody = parsedOutput.body;
|
|
1867
|
-
return throwDefaultError({
|
|
1868
|
-
output,
|
|
1869
|
-
parsedBody,
|
|
1870
|
-
errorCode
|
|
1871
|
-
});
|
|
1872
|
-
}
|
|
1873
|
-
}, "de_ListSolNetworkOperationsCommandError");
|
|
1874
1229
|
var de_ListSolNetworkPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1875
1230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1876
|
-
return
|
|
1231
|
+
return de_CommandError(output, context);
|
|
1877
1232
|
}
|
|
1878
1233
|
const contents = (0, import_smithy_client.map)({
|
|
1879
1234
|
$metadata: deserializeMetadata(output)
|
|
@@ -1886,37 +1241,9 @@ var de_ListSolNetworkPackagesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1886
1241
|
Object.assign(contents, doc);
|
|
1887
1242
|
return contents;
|
|
1888
1243
|
}, "de_ListSolNetworkPackagesCommand");
|
|
1889
|
-
var de_ListSolNetworkPackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1890
|
-
const parsedOutput = {
|
|
1891
|
-
...output,
|
|
1892
|
-
body: await parseErrorBody(output.body, context)
|
|
1893
|
-
};
|
|
1894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
|
-
switch (errorCode) {
|
|
1896
|
-
case "AccessDeniedException":
|
|
1897
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1898
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "InternalServerException":
|
|
1900
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1901
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "ThrottlingException":
|
|
1903
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1904
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "ValidationException":
|
|
1906
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1907
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1908
|
-
default:
|
|
1909
|
-
const parsedBody = parsedOutput.body;
|
|
1910
|
-
return throwDefaultError({
|
|
1911
|
-
output,
|
|
1912
|
-
parsedBody,
|
|
1913
|
-
errorCode
|
|
1914
|
-
});
|
|
1915
|
-
}
|
|
1916
|
-
}, "de_ListSolNetworkPackagesCommandError");
|
|
1917
1244
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1918
1245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1919
|
-
return
|
|
1246
|
+
return de_CommandError(output, context);
|
|
1920
1247
|
}
|
|
1921
1248
|
const contents = (0, import_smithy_client.map)({
|
|
1922
1249
|
$metadata: deserializeMetadata(output)
|
|
@@ -1928,90 +1255,28 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1928
1255
|
Object.assign(contents, doc);
|
|
1929
1256
|
return contents;
|
|
1930
1257
|
}, "de_ListTagsForResourceCommand");
|
|
1931
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1932
|
-
const parsedOutput = {
|
|
1933
|
-
...output,
|
|
1934
|
-
body: await parseErrorBody(output.body, context)
|
|
1935
|
-
};
|
|
1936
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
|
-
switch (errorCode) {
|
|
1938
|
-
case "AccessDeniedException":
|
|
1939
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1940
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "InternalServerException":
|
|
1942
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1943
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "ResourceNotFoundException":
|
|
1945
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1946
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "ThrottlingException":
|
|
1948
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1949
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "ValidationException":
|
|
1951
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
1952
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1953
|
-
default:
|
|
1954
|
-
const parsedBody = parsedOutput.body;
|
|
1955
|
-
return throwDefaultError({
|
|
1956
|
-
output,
|
|
1957
|
-
parsedBody,
|
|
1958
|
-
errorCode
|
|
1959
|
-
});
|
|
1960
|
-
}
|
|
1961
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1962
1258
|
var de_PutSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1963
1259
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1964
|
-
return
|
|
1965
|
-
}
|
|
1966
|
-
const contents = (0, import_smithy_client.map)({
|
|
1967
|
-
$metadata: deserializeMetadata(output)
|
|
1968
|
-
});
|
|
1969
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1970
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1971
|
-
id: import_smithy_client.expectString,
|
|
1972
|
-
metadata: import_smithy_client._json,
|
|
1973
|
-
vnfProductName: import_smithy_client.expectString,
|
|
1974
|
-
vnfProvider: import_smithy_client.expectString,
|
|
1975
|
-
vnfdId: import_smithy_client.expectString,
|
|
1976
|
-
vnfdVersion: import_smithy_client.expectString
|
|
1977
|
-
});
|
|
1978
|
-
Object.assign(contents, doc);
|
|
1979
|
-
return contents;
|
|
1980
|
-
}, "de_PutSolFunctionPackageContentCommand");
|
|
1981
|
-
var de_PutSolFunctionPackageContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1982
|
-
const parsedOutput = {
|
|
1983
|
-
...output,
|
|
1984
|
-
body: await parseErrorBody(output.body, context)
|
|
1985
|
-
};
|
|
1986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1987
|
-
switch (errorCode) {
|
|
1988
|
-
case "AccessDeniedException":
|
|
1989
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
1990
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1991
|
-
case "InternalServerException":
|
|
1992
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
1993
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "ResourceNotFoundException":
|
|
1995
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
1996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "ThrottlingException":
|
|
1998
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
1999
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "ValidationException":
|
|
2001
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
2002
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2003
|
-
default:
|
|
2004
|
-
const parsedBody = parsedOutput.body;
|
|
2005
|
-
return throwDefaultError({
|
|
2006
|
-
output,
|
|
2007
|
-
parsedBody,
|
|
2008
|
-
errorCode
|
|
2009
|
-
});
|
|
1260
|
+
return de_CommandError(output, context);
|
|
2010
1261
|
}
|
|
2011
|
-
|
|
1262
|
+
const contents = (0, import_smithy_client.map)({
|
|
1263
|
+
$metadata: deserializeMetadata(output)
|
|
1264
|
+
});
|
|
1265
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1266
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1267
|
+
id: import_smithy_client.expectString,
|
|
1268
|
+
metadata: import_smithy_client._json,
|
|
1269
|
+
vnfProductName: import_smithy_client.expectString,
|
|
1270
|
+
vnfProvider: import_smithy_client.expectString,
|
|
1271
|
+
vnfdId: import_smithy_client.expectString,
|
|
1272
|
+
vnfdVersion: import_smithy_client.expectString
|
|
1273
|
+
});
|
|
1274
|
+
Object.assign(contents, doc);
|
|
1275
|
+
return contents;
|
|
1276
|
+
}, "de_PutSolFunctionPackageContentCommand");
|
|
2012
1277
|
var de_PutSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2013
1278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2014
|
-
return
|
|
1279
|
+
return de_CommandError(output, context);
|
|
2015
1280
|
}
|
|
2016
1281
|
const contents = (0, import_smithy_client.map)({
|
|
2017
1282
|
$metadata: deserializeMetadata(output)
|
|
@@ -2029,40 +1294,9 @@ var de_PutSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (output
|
|
|
2029
1294
|
Object.assign(contents, doc);
|
|
2030
1295
|
return contents;
|
|
2031
1296
|
}, "de_PutSolNetworkPackageContentCommand");
|
|
2032
|
-
var de_PutSolNetworkPackageContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2033
|
-
const parsedOutput = {
|
|
2034
|
-
...output,
|
|
2035
|
-
body: await parseErrorBody(output.body, context)
|
|
2036
|
-
};
|
|
2037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
|
-
switch (errorCode) {
|
|
2039
|
-
case "AccessDeniedException":
|
|
2040
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
2041
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "InternalServerException":
|
|
2043
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
2044
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "ResourceNotFoundException":
|
|
2046
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
2047
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "ThrottlingException":
|
|
2049
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
2050
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ValidationException":
|
|
2052
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
2053
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2054
|
-
default:
|
|
2055
|
-
const parsedBody = parsedOutput.body;
|
|
2056
|
-
return throwDefaultError({
|
|
2057
|
-
output,
|
|
2058
|
-
parsedBody,
|
|
2059
|
-
errorCode
|
|
2060
|
-
});
|
|
2061
|
-
}
|
|
2062
|
-
}, "de_PutSolNetworkPackageContentCommandError");
|
|
2063
1297
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2064
1298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2065
|
-
return
|
|
1299
|
+
return de_CommandError(output, context);
|
|
2066
1300
|
}
|
|
2067
1301
|
const contents = (0, import_smithy_client.map)({
|
|
2068
1302
|
$metadata: deserializeMetadata(output)
|
|
@@ -2070,40 +1304,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2070
1304
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2071
1305
|
return contents;
|
|
2072
1306
|
}, "de_TagResourceCommand");
|
|
2073
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2074
|
-
const parsedOutput = {
|
|
2075
|
-
...output,
|
|
2076
|
-
body: await parseErrorBody(output.body, context)
|
|
2077
|
-
};
|
|
2078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
|
-
switch (errorCode) {
|
|
2080
|
-
case "AccessDeniedException":
|
|
2081
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
2082
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "InternalServerException":
|
|
2084
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
2085
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2086
|
-
case "ResourceNotFoundException":
|
|
2087
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
2088
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2089
|
-
case "ThrottlingException":
|
|
2090
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
2091
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2092
|
-
case "ValidationException":
|
|
2093
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
2094
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2095
|
-
default:
|
|
2096
|
-
const parsedBody = parsedOutput.body;
|
|
2097
|
-
return throwDefaultError({
|
|
2098
|
-
output,
|
|
2099
|
-
parsedBody,
|
|
2100
|
-
errorCode
|
|
2101
|
-
});
|
|
2102
|
-
}
|
|
2103
|
-
}, "de_TagResourceCommandError");
|
|
2104
1307
|
var de_TerminateSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2105
1308
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2106
|
-
return
|
|
1309
|
+
return de_CommandError(output, context);
|
|
2107
1310
|
}
|
|
2108
1311
|
const contents = (0, import_smithy_client.map)({
|
|
2109
1312
|
$metadata: deserializeMetadata(output)
|
|
@@ -2116,43 +1319,9 @@ var de_TerminateSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output
|
|
|
2116
1319
|
Object.assign(contents, doc);
|
|
2117
1320
|
return contents;
|
|
2118
1321
|
}, "de_TerminateSolNetworkInstanceCommand");
|
|
2119
|
-
var de_TerminateSolNetworkInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2120
|
-
const parsedOutput = {
|
|
2121
|
-
...output,
|
|
2122
|
-
body: await parseErrorBody(output.body, context)
|
|
2123
|
-
};
|
|
2124
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2125
|
-
switch (errorCode) {
|
|
2126
|
-
case "AccessDeniedException":
|
|
2127
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
2128
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2129
|
-
case "InternalServerException":
|
|
2130
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
2131
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2132
|
-
case "ResourceNotFoundException":
|
|
2133
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
2134
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2135
|
-
case "ServiceQuotaExceededException":
|
|
2136
|
-
case "com.amazonaws.tnb#ServiceQuotaExceededException":
|
|
2137
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "ThrottlingException":
|
|
2139
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
2140
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2141
|
-
case "ValidationException":
|
|
2142
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
2143
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2144
|
-
default:
|
|
2145
|
-
const parsedBody = parsedOutput.body;
|
|
2146
|
-
return throwDefaultError({
|
|
2147
|
-
output,
|
|
2148
|
-
parsedBody,
|
|
2149
|
-
errorCode
|
|
2150
|
-
});
|
|
2151
|
-
}
|
|
2152
|
-
}, "de_TerminateSolNetworkInstanceCommandError");
|
|
2153
1322
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2154
1323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2155
|
-
return
|
|
1324
|
+
return de_CommandError(output, context);
|
|
2156
1325
|
}
|
|
2157
1326
|
const contents = (0, import_smithy_client.map)({
|
|
2158
1327
|
$metadata: deserializeMetadata(output)
|
|
@@ -2160,40 +1329,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2160
1329
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2161
1330
|
return contents;
|
|
2162
1331
|
}, "de_UntagResourceCommand");
|
|
2163
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2164
|
-
const parsedOutput = {
|
|
2165
|
-
...output,
|
|
2166
|
-
body: await parseErrorBody(output.body, context)
|
|
2167
|
-
};
|
|
2168
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2169
|
-
switch (errorCode) {
|
|
2170
|
-
case "AccessDeniedException":
|
|
2171
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
2172
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2173
|
-
case "InternalServerException":
|
|
2174
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
2175
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "ResourceNotFoundException":
|
|
2177
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
2178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "ThrottlingException":
|
|
2180
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
2181
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "ValidationException":
|
|
2183
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
2184
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2185
|
-
default:
|
|
2186
|
-
const parsedBody = parsedOutput.body;
|
|
2187
|
-
return throwDefaultError({
|
|
2188
|
-
output,
|
|
2189
|
-
parsedBody,
|
|
2190
|
-
errorCode
|
|
2191
|
-
});
|
|
2192
|
-
}
|
|
2193
|
-
}, "de_UntagResourceCommandError");
|
|
2194
1332
|
var de_UpdateSolFunctionPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2195
1333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2196
|
-
return
|
|
1334
|
+
return de_CommandError(output, context);
|
|
2197
1335
|
}
|
|
2198
1336
|
const contents = (0, import_smithy_client.map)({
|
|
2199
1337
|
$metadata: deserializeMetadata(output)
|
|
@@ -2205,40 +1343,9 @@ var de_UpdateSolFunctionPackageCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2205
1343
|
Object.assign(contents, doc);
|
|
2206
1344
|
return contents;
|
|
2207
1345
|
}, "de_UpdateSolFunctionPackageCommand");
|
|
2208
|
-
var de_UpdateSolFunctionPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2209
|
-
const parsedOutput = {
|
|
2210
|
-
...output,
|
|
2211
|
-
body: await parseErrorBody(output.body, context)
|
|
2212
|
-
};
|
|
2213
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
|
-
switch (errorCode) {
|
|
2215
|
-
case "AccessDeniedException":
|
|
2216
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
2217
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "InternalServerException":
|
|
2219
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
2220
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "ResourceNotFoundException":
|
|
2222
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
2223
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "ThrottlingException":
|
|
2225
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
2226
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ValidationException":
|
|
2228
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
2229
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2230
|
-
default:
|
|
2231
|
-
const parsedBody = parsedOutput.body;
|
|
2232
|
-
return throwDefaultError({
|
|
2233
|
-
output,
|
|
2234
|
-
parsedBody,
|
|
2235
|
-
errorCode
|
|
2236
|
-
});
|
|
2237
|
-
}
|
|
2238
|
-
}, "de_UpdateSolFunctionPackageCommandError");
|
|
2239
1346
|
var de_UpdateSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2240
1347
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2241
|
-
return
|
|
1348
|
+
return de_CommandError(output, context);
|
|
2242
1349
|
}
|
|
2243
1350
|
const contents = (0, import_smithy_client.map)({
|
|
2244
1351
|
$metadata: deserializeMetadata(output)
|
|
@@ -2251,43 +1358,9 @@ var de_UpdateSolNetworkInstanceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2251
1358
|
Object.assign(contents, doc);
|
|
2252
1359
|
return contents;
|
|
2253
1360
|
}, "de_UpdateSolNetworkInstanceCommand");
|
|
2254
|
-
var de_UpdateSolNetworkInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2255
|
-
const parsedOutput = {
|
|
2256
|
-
...output,
|
|
2257
|
-
body: await parseErrorBody(output.body, context)
|
|
2258
|
-
};
|
|
2259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
|
-
switch (errorCode) {
|
|
2261
|
-
case "AccessDeniedException":
|
|
2262
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
2263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "InternalServerException":
|
|
2265
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
2266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "ResourceNotFoundException":
|
|
2268
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
2269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "ServiceQuotaExceededException":
|
|
2271
|
-
case "com.amazonaws.tnb#ServiceQuotaExceededException":
|
|
2272
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "ThrottlingException":
|
|
2274
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
2275
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "ValidationException":
|
|
2277
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
2278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2279
|
-
default:
|
|
2280
|
-
const parsedBody = parsedOutput.body;
|
|
2281
|
-
return throwDefaultError({
|
|
2282
|
-
output,
|
|
2283
|
-
parsedBody,
|
|
2284
|
-
errorCode
|
|
2285
|
-
});
|
|
2286
|
-
}
|
|
2287
|
-
}, "de_UpdateSolNetworkInstanceCommandError");
|
|
2288
1361
|
var de_UpdateSolNetworkPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2289
1362
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2290
|
-
return
|
|
1363
|
+
return de_CommandError(output, context);
|
|
2291
1364
|
}
|
|
2292
1365
|
const contents = (0, import_smithy_client.map)({
|
|
2293
1366
|
$metadata: deserializeMetadata(output)
|
|
@@ -2299,40 +1372,9 @@ var de_UpdateSolNetworkPackageCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2299
1372
|
Object.assign(contents, doc);
|
|
2300
1373
|
return contents;
|
|
2301
1374
|
}, "de_UpdateSolNetworkPackageCommand");
|
|
2302
|
-
var de_UpdateSolNetworkPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2303
|
-
const parsedOutput = {
|
|
2304
|
-
...output,
|
|
2305
|
-
body: await parseErrorBody(output.body, context)
|
|
2306
|
-
};
|
|
2307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
|
-
switch (errorCode) {
|
|
2309
|
-
case "AccessDeniedException":
|
|
2310
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
2311
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "InternalServerException":
|
|
2313
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
2314
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "ResourceNotFoundException":
|
|
2316
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
2317
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "ThrottlingException":
|
|
2319
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
2320
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "ValidationException":
|
|
2322
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
2323
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2324
|
-
default:
|
|
2325
|
-
const parsedBody = parsedOutput.body;
|
|
2326
|
-
return throwDefaultError({
|
|
2327
|
-
output,
|
|
2328
|
-
parsedBody,
|
|
2329
|
-
errorCode
|
|
2330
|
-
});
|
|
2331
|
-
}
|
|
2332
|
-
}, "de_UpdateSolNetworkPackageCommandError");
|
|
2333
1375
|
var de_ValidateSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2334
1376
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2335
|
-
return
|
|
1377
|
+
return de_CommandError(output, context);
|
|
2336
1378
|
}
|
|
2337
1379
|
const contents = (0, import_smithy_client.map)({
|
|
2338
1380
|
$metadata: deserializeMetadata(output)
|
|
@@ -2349,40 +1391,9 @@ var de_ValidateSolFunctionPackageContentCommand = /* @__PURE__ */ __name(async (
|
|
|
2349
1391
|
Object.assign(contents, doc);
|
|
2350
1392
|
return contents;
|
|
2351
1393
|
}, "de_ValidateSolFunctionPackageContentCommand");
|
|
2352
|
-
var de_ValidateSolFunctionPackageContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2353
|
-
const parsedOutput = {
|
|
2354
|
-
...output,
|
|
2355
|
-
body: await parseErrorBody(output.body, context)
|
|
2356
|
-
};
|
|
2357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
|
-
switch (errorCode) {
|
|
2359
|
-
case "AccessDeniedException":
|
|
2360
|
-
case "com.amazonaws.tnb#AccessDeniedException":
|
|
2361
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "InternalServerException":
|
|
2363
|
-
case "com.amazonaws.tnb#InternalServerException":
|
|
2364
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ResourceNotFoundException":
|
|
2366
|
-
case "com.amazonaws.tnb#ResourceNotFoundException":
|
|
2367
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "ThrottlingException":
|
|
2369
|
-
case "com.amazonaws.tnb#ThrottlingException":
|
|
2370
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "ValidationException":
|
|
2372
|
-
case "com.amazonaws.tnb#ValidationException":
|
|
2373
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2374
|
-
default:
|
|
2375
|
-
const parsedBody = parsedOutput.body;
|
|
2376
|
-
return throwDefaultError({
|
|
2377
|
-
output,
|
|
2378
|
-
parsedBody,
|
|
2379
|
-
errorCode
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
}, "de_ValidateSolFunctionPackageContentCommandError");
|
|
2383
1394
|
var de_ValidateSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2384
1395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2385
|
-
return
|
|
1396
|
+
return de_CommandError(output, context);
|
|
2386
1397
|
}
|
|
2387
1398
|
const contents = (0, import_smithy_client.map)({
|
|
2388
1399
|
$metadata: deserializeMetadata(output)
|
|
@@ -2400,7 +1411,7 @@ var de_ValidateSolNetworkPackageContentCommand = /* @__PURE__ */ __name(async (o
|
|
|
2400
1411
|
Object.assign(contents, doc);
|
|
2401
1412
|
return contents;
|
|
2402
1413
|
}, "de_ValidateSolNetworkPackageContentCommand");
|
|
2403
|
-
var
|
|
1414
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2404
1415
|
const parsedOutput = {
|
|
2405
1416
|
...output,
|
|
2406
1417
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2422,6 +1433,9 @@ var de_ValidateSolNetworkPackageContentCommandError = /* @__PURE__ */ __name(asy
|
|
|
2422
1433
|
case "ValidationException":
|
|
2423
1434
|
case "com.amazonaws.tnb#ValidationException":
|
|
2424
1435
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1436
|
+
case "ServiceQuotaExceededException":
|
|
1437
|
+
case "com.amazonaws.tnb#ServiceQuotaExceededException":
|
|
1438
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2425
1439
|
default:
|
|
2426
1440
|
const parsedBody = parsedOutput.body;
|
|
2427
1441
|
return throwDefaultError({
|
|
@@ -2430,7 +1444,7 @@ var de_ValidateSolNetworkPackageContentCommandError = /* @__PURE__ */ __name(asy
|
|
|
2430
1444
|
errorCode
|
|
2431
1445
|
});
|
|
2432
1446
|
}
|
|
2433
|
-
}, "
|
|
1447
|
+
}, "de_CommandError");
|
|
2434
1448
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(TnbServiceException);
|
|
2435
1449
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2436
1450
|
const contents = (0, import_smithy_client.map)({});
|