@aws-sdk/client-panorama 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +53 -986
- package/dist-es/protocols/Aws_restJson1.js +69 -1002
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1003,7 +1003,7 @@ var se_UpdateDeviceMetadataCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
1003
1003
|
}, "se_UpdateDeviceMetadataCommand");
|
|
1004
1004
|
var de_CreateApplicationInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1005
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1007
1007
|
}
|
|
1008
1008
|
const contents = (0, import_smithy_client.map)({
|
|
1009
1009
|
$metadata: deserializeMetadata(output)
|
|
@@ -1015,37 +1015,9 @@ var de_CreateApplicationInstanceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1015
1015
|
Object.assign(contents, doc);
|
|
1016
1016
|
return contents;
|
|
1017
1017
|
}, "de_CreateApplicationInstanceCommand");
|
|
1018
|
-
var de_CreateApplicationInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
|
-
const parsedOutput = {
|
|
1020
|
-
...output,
|
|
1021
|
-
body: await parseErrorBody(output.body, context)
|
|
1022
|
-
};
|
|
1023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
|
-
switch (errorCode) {
|
|
1025
|
-
case "AccessDeniedException":
|
|
1026
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1027
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "InternalServerException":
|
|
1029
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1030
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ServiceQuotaExceededException":
|
|
1032
|
-
case "com.amazonaws.panorama#ServiceQuotaExceededException":
|
|
1033
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "ValidationException":
|
|
1035
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1036
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1037
|
-
default:
|
|
1038
|
-
const parsedBody = parsedOutput.body;
|
|
1039
|
-
return throwDefaultError({
|
|
1040
|
-
output,
|
|
1041
|
-
parsedBody,
|
|
1042
|
-
errorCode
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
}, "de_CreateApplicationInstanceCommandError");
|
|
1046
1018
|
var de_CreateJobForDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1047
1019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1048
|
-
return
|
|
1020
|
+
return de_CommandError(output, context);
|
|
1049
1021
|
}
|
|
1050
1022
|
const contents = (0, import_smithy_client.map)({
|
|
1051
1023
|
$metadata: deserializeMetadata(output)
|
|
@@ -1057,40 +1029,9 @@ var de_CreateJobForDevicesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1057
1029
|
Object.assign(contents, doc);
|
|
1058
1030
|
return contents;
|
|
1059
1031
|
}, "de_CreateJobForDevicesCommand");
|
|
1060
|
-
var de_CreateJobForDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1061
|
-
const parsedOutput = {
|
|
1062
|
-
...output,
|
|
1063
|
-
body: await parseErrorBody(output.body, context)
|
|
1064
|
-
};
|
|
1065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1066
|
-
switch (errorCode) {
|
|
1067
|
-
case "AccessDeniedException":
|
|
1068
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1069
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ConflictException":
|
|
1071
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1072
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "InternalServerException":
|
|
1074
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1075
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ResourceNotFoundException":
|
|
1077
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1078
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ValidationException":
|
|
1080
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1081
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1082
|
-
default:
|
|
1083
|
-
const parsedBody = parsedOutput.body;
|
|
1084
|
-
return throwDefaultError({
|
|
1085
|
-
output,
|
|
1086
|
-
parsedBody,
|
|
1087
|
-
errorCode
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
}, "de_CreateJobForDevicesCommandError");
|
|
1091
1032
|
var de_CreateNodeFromTemplateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1092
1033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1093
|
-
return
|
|
1034
|
+
return de_CommandError(output, context);
|
|
1094
1035
|
}
|
|
1095
1036
|
const contents = (0, import_smithy_client.map)({
|
|
1096
1037
|
$metadata: deserializeMetadata(output)
|
|
@@ -1102,37 +1043,9 @@ var de_CreateNodeFromTemplateJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1102
1043
|
Object.assign(contents, doc);
|
|
1103
1044
|
return contents;
|
|
1104
1045
|
}, "de_CreateNodeFromTemplateJobCommand");
|
|
1105
|
-
var de_CreateNodeFromTemplateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1106
|
-
const parsedOutput = {
|
|
1107
|
-
...output,
|
|
1108
|
-
body: await parseErrorBody(output.body, context)
|
|
1109
|
-
};
|
|
1110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
|
-
switch (errorCode) {
|
|
1112
|
-
case "AccessDeniedException":
|
|
1113
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1114
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ConflictException":
|
|
1116
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1117
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "InternalServerException":
|
|
1119
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1120
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ValidationException":
|
|
1122
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1123
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1124
|
-
default:
|
|
1125
|
-
const parsedBody = parsedOutput.body;
|
|
1126
|
-
return throwDefaultError({
|
|
1127
|
-
output,
|
|
1128
|
-
parsedBody,
|
|
1129
|
-
errorCode
|
|
1130
|
-
});
|
|
1131
|
-
}
|
|
1132
|
-
}, "de_CreateNodeFromTemplateJobCommandError");
|
|
1133
1046
|
var de_CreatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1134
1047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1135
|
-
return
|
|
1048
|
+
return de_CommandError(output, context);
|
|
1136
1049
|
}
|
|
1137
1050
|
const contents = (0, import_smithy_client.map)({
|
|
1138
1051
|
$metadata: deserializeMetadata(output)
|
|
@@ -1146,37 +1059,9 @@ var de_CreatePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1146
1059
|
Object.assign(contents, doc);
|
|
1147
1060
|
return contents;
|
|
1148
1061
|
}, "de_CreatePackageCommand");
|
|
1149
|
-
var de_CreatePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1150
|
-
const parsedOutput = {
|
|
1151
|
-
...output,
|
|
1152
|
-
body: await parseErrorBody(output.body, context)
|
|
1153
|
-
};
|
|
1154
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
|
-
switch (errorCode) {
|
|
1156
|
-
case "AccessDeniedException":
|
|
1157
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1158
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ConflictException":
|
|
1160
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1161
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "InternalServerException":
|
|
1163
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1164
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ValidationException":
|
|
1166
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1167
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1168
|
-
default:
|
|
1169
|
-
const parsedBody = parsedOutput.body;
|
|
1170
|
-
return throwDefaultError({
|
|
1171
|
-
output,
|
|
1172
|
-
parsedBody,
|
|
1173
|
-
errorCode
|
|
1174
|
-
});
|
|
1175
|
-
}
|
|
1176
|
-
}, "de_CreatePackageCommandError");
|
|
1177
1062
|
var de_CreatePackageImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1178
1063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1179
|
-
return
|
|
1064
|
+
return de_CommandError(output, context);
|
|
1180
1065
|
}
|
|
1181
1066
|
const contents = (0, import_smithy_client.map)({
|
|
1182
1067
|
$metadata: deserializeMetadata(output)
|
|
@@ -1188,37 +1073,9 @@ var de_CreatePackageImportJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1188
1073
|
Object.assign(contents, doc);
|
|
1189
1074
|
return contents;
|
|
1190
1075
|
}, "de_CreatePackageImportJobCommand");
|
|
1191
|
-
var de_CreatePackageImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context)
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "AccessDeniedException":
|
|
1199
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1200
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "ConflictException":
|
|
1202
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1203
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "InternalServerException":
|
|
1205
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1206
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ValidationException":
|
|
1208
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
}, "de_CreatePackageImportJobCommandError");
|
|
1219
1076
|
var de_DeleteDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1220
1077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
1078
|
+
return de_CommandError(output, context);
|
|
1222
1079
|
}
|
|
1223
1080
|
const contents = (0, import_smithy_client.map)({
|
|
1224
1081
|
$metadata: deserializeMetadata(output)
|
|
@@ -1230,40 +1087,9 @@ var de_DeleteDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1230
1087
|
Object.assign(contents, doc);
|
|
1231
1088
|
return contents;
|
|
1232
1089
|
}, "de_DeleteDeviceCommand");
|
|
1233
|
-
var de_DeleteDeviceCommandError = /* @__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.panorama#AccessDeniedException":
|
|
1242
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "ConflictException":
|
|
1244
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1245
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "InternalServerException":
|
|
1247
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1248
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "ResourceNotFoundException":
|
|
1250
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1251
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "ValidationException":
|
|
1253
|
-
case "com.amazonaws.panorama#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_DeleteDeviceCommandError");
|
|
1264
1090
|
var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1265
1091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1266
|
-
return
|
|
1092
|
+
return de_CommandError(output, context);
|
|
1267
1093
|
}
|
|
1268
1094
|
const contents = (0, import_smithy_client.map)({
|
|
1269
1095
|
$metadata: deserializeMetadata(output)
|
|
@@ -1271,40 +1097,9 @@ var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1271
1097
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1272
1098
|
return contents;
|
|
1273
1099
|
}, "de_DeletePackageCommand");
|
|
1274
|
-
var de_DeletePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1275
|
-
const parsedOutput = {
|
|
1276
|
-
...output,
|
|
1277
|
-
body: await parseErrorBody(output.body, context)
|
|
1278
|
-
};
|
|
1279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
|
-
switch (errorCode) {
|
|
1281
|
-
case "AccessDeniedException":
|
|
1282
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1283
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ConflictException":
|
|
1285
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1286
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "InternalServerException":
|
|
1288
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1289
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ResourceNotFoundException":
|
|
1291
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1292
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "ValidationException":
|
|
1294
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1295
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1296
|
-
default:
|
|
1297
|
-
const parsedBody = parsedOutput.body;
|
|
1298
|
-
return throwDefaultError({
|
|
1299
|
-
output,
|
|
1300
|
-
parsedBody,
|
|
1301
|
-
errorCode
|
|
1302
|
-
});
|
|
1303
|
-
}
|
|
1304
|
-
}, "de_DeletePackageCommandError");
|
|
1305
1100
|
var de_DeregisterPackageVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1306
1101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
|
-
return
|
|
1102
|
+
return de_CommandError(output, context);
|
|
1308
1103
|
}
|
|
1309
1104
|
const contents = (0, import_smithy_client.map)({
|
|
1310
1105
|
$metadata: deserializeMetadata(output)
|
|
@@ -1312,40 +1107,9 @@ var de_DeregisterPackageVersionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1312
1107
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1313
1108
|
return contents;
|
|
1314
1109
|
}, "de_DeregisterPackageVersionCommand");
|
|
1315
|
-
var de_DeregisterPackageVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1316
|
-
const parsedOutput = {
|
|
1317
|
-
...output,
|
|
1318
|
-
body: await parseErrorBody(output.body, context)
|
|
1319
|
-
};
|
|
1320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
|
-
switch (errorCode) {
|
|
1322
|
-
case "AccessDeniedException":
|
|
1323
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1324
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1325
|
-
case "ConflictException":
|
|
1326
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1327
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "InternalServerException":
|
|
1329
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1330
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "ResourceNotFoundException":
|
|
1332
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ValidationException":
|
|
1335
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1336
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
|
-
default:
|
|
1338
|
-
const parsedBody = parsedOutput.body;
|
|
1339
|
-
return throwDefaultError({
|
|
1340
|
-
output,
|
|
1341
|
-
parsedBody,
|
|
1342
|
-
errorCode
|
|
1343
|
-
});
|
|
1344
|
-
}
|
|
1345
|
-
}, "de_DeregisterPackageVersionCommandError");
|
|
1346
1110
|
var de_DescribeApplicationInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1347
1111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1348
|
-
return
|
|
1112
|
+
return de_CommandError(output, context);
|
|
1349
1113
|
}
|
|
1350
1114
|
const contents = (0, import_smithy_client.map)({
|
|
1351
1115
|
$metadata: deserializeMetadata(output)
|
|
@@ -1371,40 +1135,9 @@ var de_DescribeApplicationInstanceCommand = /* @__PURE__ */ __name(async (output
|
|
|
1371
1135
|
Object.assign(contents, doc);
|
|
1372
1136
|
return contents;
|
|
1373
1137
|
}, "de_DescribeApplicationInstanceCommand");
|
|
1374
|
-
var de_DescribeApplicationInstanceCommandError = /* @__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.panorama#AccessDeniedException":
|
|
1383
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "ConflictException":
|
|
1385
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1386
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "InternalServerException":
|
|
1388
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1389
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "ResourceNotFoundException":
|
|
1391
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1392
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ValidationException":
|
|
1394
|
-
case "com.amazonaws.panorama#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_DescribeApplicationInstanceCommandError");
|
|
1405
1138
|
var de_DescribeApplicationInstanceDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1406
1139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1407
|
-
return
|
|
1140
|
+
return de_CommandError(output, context);
|
|
1408
1141
|
}
|
|
1409
1142
|
const contents = (0, import_smithy_client.map)({
|
|
1410
1143
|
$metadata: deserializeMetadata(output)
|
|
@@ -1423,40 +1156,9 @@ var de_DescribeApplicationInstanceDetailsCommand = /* @__PURE__ */ __name(async
|
|
|
1423
1156
|
Object.assign(contents, doc);
|
|
1424
1157
|
return contents;
|
|
1425
1158
|
}, "de_DescribeApplicationInstanceDetailsCommand");
|
|
1426
|
-
var de_DescribeApplicationInstanceDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1427
|
-
const parsedOutput = {
|
|
1428
|
-
...output,
|
|
1429
|
-
body: await parseErrorBody(output.body, context)
|
|
1430
|
-
};
|
|
1431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
|
-
switch (errorCode) {
|
|
1433
|
-
case "AccessDeniedException":
|
|
1434
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1435
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "ConflictException":
|
|
1437
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1438
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "InternalServerException":
|
|
1440
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1441
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1442
|
-
case "ResourceNotFoundException":
|
|
1443
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1444
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1445
|
-
case "ValidationException":
|
|
1446
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1448
|
-
default:
|
|
1449
|
-
const parsedBody = parsedOutput.body;
|
|
1450
|
-
return throwDefaultError({
|
|
1451
|
-
output,
|
|
1452
|
-
parsedBody,
|
|
1453
|
-
errorCode
|
|
1454
|
-
});
|
|
1455
|
-
}
|
|
1456
|
-
}, "de_DescribeApplicationInstanceDetailsCommandError");
|
|
1457
1159
|
var de_DescribeDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1458
1160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1459
|
-
return
|
|
1161
|
+
return de_CommandError(output, context);
|
|
1460
1162
|
}
|
|
1461
1163
|
const contents = (0, import_smithy_client.map)({
|
|
1462
1164
|
$metadata: deserializeMetadata(output)
|
|
@@ -1487,37 +1189,9 @@ var de_DescribeDeviceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1487
1189
|
Object.assign(contents, doc);
|
|
1488
1190
|
return contents;
|
|
1489
1191
|
}, "de_DescribeDeviceCommand");
|
|
1490
|
-
var de_DescribeDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1491
|
-
const parsedOutput = {
|
|
1492
|
-
...output,
|
|
1493
|
-
body: await parseErrorBody(output.body, context)
|
|
1494
|
-
};
|
|
1495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
|
-
switch (errorCode) {
|
|
1497
|
-
case "AccessDeniedException":
|
|
1498
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1499
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "InternalServerException":
|
|
1501
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1502
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ResourceNotFoundException":
|
|
1504
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1505
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "ValidationException":
|
|
1507
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1508
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1509
|
-
default:
|
|
1510
|
-
const parsedBody = parsedOutput.body;
|
|
1511
|
-
return throwDefaultError({
|
|
1512
|
-
output,
|
|
1513
|
-
parsedBody,
|
|
1514
|
-
errorCode
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
}, "de_DescribeDeviceCommandError");
|
|
1518
1192
|
var de_DescribeDeviceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1519
1193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1520
|
-
return
|
|
1194
|
+
return de_CommandError(output, context);
|
|
1521
1195
|
}
|
|
1522
1196
|
const contents = (0, import_smithy_client.map)({
|
|
1523
1197
|
$metadata: deserializeMetadata(output)
|
|
@@ -1537,40 +1211,9 @@ var de_DescribeDeviceJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1537
1211
|
Object.assign(contents, doc);
|
|
1538
1212
|
return contents;
|
|
1539
1213
|
}, "de_DescribeDeviceJobCommand");
|
|
1540
|
-
var de_DescribeDeviceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1541
|
-
const parsedOutput = {
|
|
1542
|
-
...output,
|
|
1543
|
-
body: await parseErrorBody(output.body, context)
|
|
1544
|
-
};
|
|
1545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
-
switch (errorCode) {
|
|
1547
|
-
case "AccessDeniedException":
|
|
1548
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1549
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ConflictException":
|
|
1551
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1552
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "InternalServerException":
|
|
1554
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1555
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "ResourceNotFoundException":
|
|
1557
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1558
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "ValidationException":
|
|
1560
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1561
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1562
|
-
default:
|
|
1563
|
-
const parsedBody = parsedOutput.body;
|
|
1564
|
-
return throwDefaultError({
|
|
1565
|
-
output,
|
|
1566
|
-
parsedBody,
|
|
1567
|
-
errorCode
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
}, "de_DescribeDeviceJobCommandError");
|
|
1571
1214
|
var de_DescribeNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1572
1215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
1216
|
+
return de_CommandError(output, context);
|
|
1574
1217
|
}
|
|
1575
1218
|
const contents = (0, import_smithy_client.map)({
|
|
1576
1219
|
$metadata: deserializeMetadata(output)
|
|
@@ -1595,40 +1238,9 @@ var de_DescribeNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1595
1238
|
Object.assign(contents, doc);
|
|
1596
1239
|
return contents;
|
|
1597
1240
|
}, "de_DescribeNodeCommand");
|
|
1598
|
-
var de_DescribeNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context)
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "AccessDeniedException":
|
|
1606
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1607
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "ConflictException":
|
|
1609
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1610
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "InternalServerException":
|
|
1612
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1613
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "ResourceNotFoundException":
|
|
1615
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1616
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "ValidationException":
|
|
1618
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1619
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1620
|
-
default:
|
|
1621
|
-
const parsedBody = parsedOutput.body;
|
|
1622
|
-
return throwDefaultError({
|
|
1623
|
-
output,
|
|
1624
|
-
parsedBody,
|
|
1625
|
-
errorCode
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
}, "de_DescribeNodeCommandError");
|
|
1629
1241
|
var de_DescribeNodeFromTemplateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1630
1242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1631
|
-
return
|
|
1243
|
+
return de_CommandError(output, context);
|
|
1632
1244
|
}
|
|
1633
1245
|
const contents = (0, import_smithy_client.map)({
|
|
1634
1246
|
$metadata: deserializeMetadata(output)
|
|
@@ -1650,38 +1262,10 @@ var de_DescribeNodeFromTemplateJobCommand = /* @__PURE__ */ __name(async (output
|
|
|
1650
1262
|
});
|
|
1651
1263
|
Object.assign(contents, doc);
|
|
1652
1264
|
return contents;
|
|
1653
|
-
}, "de_DescribeNodeFromTemplateJobCommand");
|
|
1654
|
-
var de_DescribeNodeFromTemplateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1655
|
-
const parsedOutput = {
|
|
1656
|
-
...output,
|
|
1657
|
-
body: await parseErrorBody(output.body, context)
|
|
1658
|
-
};
|
|
1659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
|
-
switch (errorCode) {
|
|
1661
|
-
case "AccessDeniedException":
|
|
1662
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1663
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "ConflictException":
|
|
1665
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1666
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "InternalServerException":
|
|
1668
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1669
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ValidationException":
|
|
1671
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1672
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1673
|
-
default:
|
|
1674
|
-
const parsedBody = parsedOutput.body;
|
|
1675
|
-
return throwDefaultError({
|
|
1676
|
-
output,
|
|
1677
|
-
parsedBody,
|
|
1678
|
-
errorCode
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
}, "de_DescribeNodeFromTemplateJobCommandError");
|
|
1265
|
+
}, "de_DescribeNodeFromTemplateJobCommand");
|
|
1682
1266
|
var de_DescribePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
1267
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1684
|
-
return
|
|
1268
|
+
return de_CommandError(output, context);
|
|
1685
1269
|
}
|
|
1686
1270
|
const contents = (0, import_smithy_client.map)({
|
|
1687
1271
|
$metadata: deserializeMetadata(output)
|
|
@@ -1700,40 +1284,9 @@ var de_DescribePackageCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1700
1284
|
Object.assign(contents, doc);
|
|
1701
1285
|
return contents;
|
|
1702
1286
|
}, "de_DescribePackageCommand");
|
|
1703
|
-
var de_DescribePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1704
|
-
const parsedOutput = {
|
|
1705
|
-
...output,
|
|
1706
|
-
body: await parseErrorBody(output.body, context)
|
|
1707
|
-
};
|
|
1708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
|
-
switch (errorCode) {
|
|
1710
|
-
case "AccessDeniedException":
|
|
1711
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1712
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ConflictException":
|
|
1714
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1715
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "InternalServerException":
|
|
1717
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1718
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1719
|
-
case "ResourceNotFoundException":
|
|
1720
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1721
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "ValidationException":
|
|
1723
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1725
|
-
default:
|
|
1726
|
-
const parsedBody = parsedOutput.body;
|
|
1727
|
-
return throwDefaultError({
|
|
1728
|
-
output,
|
|
1729
|
-
parsedBody,
|
|
1730
|
-
errorCode
|
|
1731
|
-
});
|
|
1732
|
-
}
|
|
1733
|
-
}, "de_DescribePackageCommandError");
|
|
1734
1287
|
var de_DescribePackageImportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1735
1288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1736
|
-
return
|
|
1289
|
+
return de_CommandError(output, context);
|
|
1737
1290
|
}
|
|
1738
1291
|
const contents = (0, import_smithy_client.map)({
|
|
1739
1292
|
$metadata: deserializeMetadata(output)
|
|
@@ -1755,37 +1308,9 @@ var de_DescribePackageImportJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1755
1308
|
Object.assign(contents, doc);
|
|
1756
1309
|
return contents;
|
|
1757
1310
|
}, "de_DescribePackageImportJobCommand");
|
|
1758
|
-
var de_DescribePackageImportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1759
|
-
const parsedOutput = {
|
|
1760
|
-
...output,
|
|
1761
|
-
body: await parseErrorBody(output.body, context)
|
|
1762
|
-
};
|
|
1763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
|
-
switch (errorCode) {
|
|
1765
|
-
case "AccessDeniedException":
|
|
1766
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1767
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1768
|
-
case "ConflictException":
|
|
1769
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1770
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "InternalServerException":
|
|
1772
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1773
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "ValidationException":
|
|
1775
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1776
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1777
|
-
default:
|
|
1778
|
-
const parsedBody = parsedOutput.body;
|
|
1779
|
-
return throwDefaultError({
|
|
1780
|
-
output,
|
|
1781
|
-
parsedBody,
|
|
1782
|
-
errorCode
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
}, "de_DescribePackageImportJobCommandError");
|
|
1786
1311
|
var de_DescribePackageVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1787
1312
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1788
|
-
return
|
|
1313
|
+
return de_CommandError(output, context);
|
|
1789
1314
|
}
|
|
1790
1315
|
const contents = (0, import_smithy_client.map)({
|
|
1791
1316
|
$metadata: deserializeMetadata(output)
|
|
@@ -1806,40 +1331,9 @@ var de_DescribePackageVersionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1806
1331
|
Object.assign(contents, doc);
|
|
1807
1332
|
return contents;
|
|
1808
1333
|
}, "de_DescribePackageVersionCommand");
|
|
1809
|
-
var de_DescribePackageVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1810
|
-
const parsedOutput = {
|
|
1811
|
-
...output,
|
|
1812
|
-
body: await parseErrorBody(output.body, context)
|
|
1813
|
-
};
|
|
1814
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
|
-
switch (errorCode) {
|
|
1816
|
-
case "AccessDeniedException":
|
|
1817
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1818
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "ConflictException":
|
|
1820
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1821
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "InternalServerException":
|
|
1823
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1824
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "ResourceNotFoundException":
|
|
1826
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1827
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ValidationException":
|
|
1829
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1830
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1831
|
-
default:
|
|
1832
|
-
const parsedBody = parsedOutput.body;
|
|
1833
|
-
return throwDefaultError({
|
|
1834
|
-
output,
|
|
1835
|
-
parsedBody,
|
|
1836
|
-
errorCode
|
|
1837
|
-
});
|
|
1838
|
-
}
|
|
1839
|
-
}, "de_DescribePackageVersionCommandError");
|
|
1840
1334
|
var de_ListApplicationInstanceDependenciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1841
1335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1842
|
-
return
|
|
1336
|
+
return de_CommandError(output, context);
|
|
1843
1337
|
}
|
|
1844
1338
|
const contents = (0, import_smithy_client.map)({
|
|
1845
1339
|
$metadata: deserializeMetadata(output)
|
|
@@ -1852,31 +1346,9 @@ var de_ListApplicationInstanceDependenciesCommand = /* @__PURE__ */ __name(async
|
|
|
1852
1346
|
Object.assign(contents, doc);
|
|
1853
1347
|
return contents;
|
|
1854
1348
|
}, "de_ListApplicationInstanceDependenciesCommand");
|
|
1855
|
-
var de_ListApplicationInstanceDependenciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1856
|
-
const parsedOutput = {
|
|
1857
|
-
...output,
|
|
1858
|
-
body: await parseErrorBody(output.body, context)
|
|
1859
|
-
};
|
|
1860
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1861
|
-
switch (errorCode) {
|
|
1862
|
-
case "AccessDeniedException":
|
|
1863
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1864
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1865
|
-
case "InternalServerException":
|
|
1866
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1867
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1868
|
-
default:
|
|
1869
|
-
const parsedBody = parsedOutput.body;
|
|
1870
|
-
return throwDefaultError({
|
|
1871
|
-
output,
|
|
1872
|
-
parsedBody,
|
|
1873
|
-
errorCode
|
|
1874
|
-
});
|
|
1875
|
-
}
|
|
1876
|
-
}, "de_ListApplicationInstanceDependenciesCommandError");
|
|
1877
1349
|
var de_ListApplicationInstanceNodeInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1878
1350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1879
|
-
return
|
|
1351
|
+
return de_CommandError(output, context);
|
|
1880
1352
|
}
|
|
1881
1353
|
const contents = (0, import_smithy_client.map)({
|
|
1882
1354
|
$metadata: deserializeMetadata(output)
|
|
@@ -1889,31 +1361,9 @@ var de_ListApplicationInstanceNodeInstancesCommand = /* @__PURE__ */ __name(asyn
|
|
|
1889
1361
|
Object.assign(contents, doc);
|
|
1890
1362
|
return contents;
|
|
1891
1363
|
}, "de_ListApplicationInstanceNodeInstancesCommand");
|
|
1892
|
-
var de_ListApplicationInstanceNodeInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1893
|
-
const parsedOutput = {
|
|
1894
|
-
...output,
|
|
1895
|
-
body: await parseErrorBody(output.body, context)
|
|
1896
|
-
};
|
|
1897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1898
|
-
switch (errorCode) {
|
|
1899
|
-
case "AccessDeniedException":
|
|
1900
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1901
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "InternalServerException":
|
|
1903
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1904
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1905
|
-
default:
|
|
1906
|
-
const parsedBody = parsedOutput.body;
|
|
1907
|
-
return throwDefaultError({
|
|
1908
|
-
output,
|
|
1909
|
-
parsedBody,
|
|
1910
|
-
errorCode
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
}, "de_ListApplicationInstanceNodeInstancesCommandError");
|
|
1914
1364
|
var de_ListApplicationInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1915
1365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1916
|
-
return
|
|
1366
|
+
return de_CommandError(output, context);
|
|
1917
1367
|
}
|
|
1918
1368
|
const contents = (0, import_smithy_client.map)({
|
|
1919
1369
|
$metadata: deserializeMetadata(output)
|
|
@@ -1926,31 +1376,9 @@ var de_ListApplicationInstancesCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1926
1376
|
Object.assign(contents, doc);
|
|
1927
1377
|
return contents;
|
|
1928
1378
|
}, "de_ListApplicationInstancesCommand");
|
|
1929
|
-
var de_ListApplicationInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1930
|
-
const parsedOutput = {
|
|
1931
|
-
...output,
|
|
1932
|
-
body: await parseErrorBody(output.body, context)
|
|
1933
|
-
};
|
|
1934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
|
-
switch (errorCode) {
|
|
1936
|
-
case "AccessDeniedException":
|
|
1937
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1938
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "InternalServerException":
|
|
1940
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1941
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1942
|
-
default:
|
|
1943
|
-
const parsedBody = parsedOutput.body;
|
|
1944
|
-
return throwDefaultError({
|
|
1945
|
-
output,
|
|
1946
|
-
parsedBody,
|
|
1947
|
-
errorCode
|
|
1948
|
-
});
|
|
1949
|
-
}
|
|
1950
|
-
}, "de_ListApplicationInstancesCommandError");
|
|
1951
1379
|
var de_ListDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1952
1380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1953
|
-
return
|
|
1381
|
+
return de_CommandError(output, context);
|
|
1954
1382
|
}
|
|
1955
1383
|
const contents = (0, import_smithy_client.map)({
|
|
1956
1384
|
$metadata: deserializeMetadata(output)
|
|
@@ -1963,37 +1391,9 @@ var de_ListDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1963
1391
|
Object.assign(contents, doc);
|
|
1964
1392
|
return contents;
|
|
1965
1393
|
}, "de_ListDevicesCommand");
|
|
1966
|
-
var de_ListDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1967
|
-
const parsedOutput = {
|
|
1968
|
-
...output,
|
|
1969
|
-
body: await parseErrorBody(output.body, context)
|
|
1970
|
-
};
|
|
1971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
|
-
switch (errorCode) {
|
|
1973
|
-
case "AccessDeniedException":
|
|
1974
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
1975
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "ConflictException":
|
|
1977
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
1978
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1979
|
-
case "InternalServerException":
|
|
1980
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
1981
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1982
|
-
case "ValidationException":
|
|
1983
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
1984
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1985
|
-
default:
|
|
1986
|
-
const parsedBody = parsedOutput.body;
|
|
1987
|
-
return throwDefaultError({
|
|
1988
|
-
output,
|
|
1989
|
-
parsedBody,
|
|
1990
|
-
errorCode
|
|
1991
|
-
});
|
|
1992
|
-
}
|
|
1993
|
-
}, "de_ListDevicesCommandError");
|
|
1994
1394
|
var de_ListDevicesJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1995
1395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1996
|
-
return
|
|
1396
|
+
return de_CommandError(output, context);
|
|
1997
1397
|
}
|
|
1998
1398
|
const contents = (0, import_smithy_client.map)({
|
|
1999
1399
|
$metadata: deserializeMetadata(output)
|
|
@@ -2006,40 +1406,9 @@ var de_ListDevicesJobsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2006
1406
|
Object.assign(contents, doc);
|
|
2007
1407
|
return contents;
|
|
2008
1408
|
}, "de_ListDevicesJobsCommand");
|
|
2009
|
-
var de_ListDevicesJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2010
|
-
const parsedOutput = {
|
|
2011
|
-
...output,
|
|
2012
|
-
body: await parseErrorBody(output.body, context)
|
|
2013
|
-
};
|
|
2014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2015
|
-
switch (errorCode) {
|
|
2016
|
-
case "AccessDeniedException":
|
|
2017
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
2018
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "ConflictException":
|
|
2020
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
2021
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "InternalServerException":
|
|
2023
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2024
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "ResourceNotFoundException":
|
|
2026
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
2027
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "ValidationException":
|
|
2029
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2030
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2031
|
-
default:
|
|
2032
|
-
const parsedBody = parsedOutput.body;
|
|
2033
|
-
return throwDefaultError({
|
|
2034
|
-
output,
|
|
2035
|
-
parsedBody,
|
|
2036
|
-
errorCode
|
|
2037
|
-
});
|
|
2038
|
-
}
|
|
2039
|
-
}, "de_ListDevicesJobsCommandError");
|
|
2040
1409
|
var de_ListNodeFromTemplateJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2041
1410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2042
|
-
return
|
|
1411
|
+
return de_CommandError(output, context);
|
|
2043
1412
|
}
|
|
2044
1413
|
const contents = (0, import_smithy_client.map)({
|
|
2045
1414
|
$metadata: deserializeMetadata(output)
|
|
@@ -2052,77 +1421,24 @@ var de_ListNodeFromTemplateJobsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2052
1421
|
Object.assign(contents, doc);
|
|
2053
1422
|
return contents;
|
|
2054
1423
|
}, "de_ListNodeFromTemplateJobsCommand");
|
|
2055
|
-
var de_ListNodeFromTemplateJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2056
|
-
const parsedOutput = {
|
|
2057
|
-
...output,
|
|
2058
|
-
body: await parseErrorBody(output.body, context)
|
|
2059
|
-
};
|
|
2060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
|
-
switch (errorCode) {
|
|
2062
|
-
case "AccessDeniedException":
|
|
2063
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
2064
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "ConflictException":
|
|
2066
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
2067
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "InternalServerException":
|
|
2069
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2070
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ValidationException":
|
|
2072
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2073
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2074
|
-
default:
|
|
2075
|
-
const parsedBody = parsedOutput.body;
|
|
2076
|
-
return throwDefaultError({
|
|
2077
|
-
output,
|
|
2078
|
-
parsedBody,
|
|
2079
|
-
errorCode
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
}, "de_ListNodeFromTemplateJobsCommandError");
|
|
2083
1424
|
var de_ListNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
1425
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2085
|
-
return
|
|
1426
|
+
return de_CommandError(output, context);
|
|
2086
1427
|
}
|
|
2087
1428
|
const contents = (0, import_smithy_client.map)({
|
|
2088
1429
|
$metadata: deserializeMetadata(output)
|
|
2089
1430
|
});
|
|
2090
1431
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2091
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2092
|
-
NextToken: import_smithy_client.expectString,
|
|
2093
|
-
Nodes: (_) => de_NodesList(_, context)
|
|
2094
|
-
});
|
|
2095
|
-
Object.assign(contents, doc);
|
|
2096
|
-
return contents;
|
|
2097
|
-
}, "de_ListNodesCommand");
|
|
2098
|
-
var de_ListNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2099
|
-
const parsedOutput = {
|
|
2100
|
-
...output,
|
|
2101
|
-
body: await parseErrorBody(output.body, context)
|
|
2102
|
-
};
|
|
2103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
|
-
switch (errorCode) {
|
|
2105
|
-
case "ConflictException":
|
|
2106
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
2107
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "InternalServerException":
|
|
2109
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "ValidationException":
|
|
2112
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2113
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2114
|
-
default:
|
|
2115
|
-
const parsedBody = parsedOutput.body;
|
|
2116
|
-
return throwDefaultError({
|
|
2117
|
-
output,
|
|
2118
|
-
parsedBody,
|
|
2119
|
-
errorCode
|
|
2120
|
-
});
|
|
2121
|
-
}
|
|
2122
|
-
}, "de_ListNodesCommandError");
|
|
1432
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1433
|
+
NextToken: import_smithy_client.expectString,
|
|
1434
|
+
Nodes: (_) => de_NodesList(_, context)
|
|
1435
|
+
});
|
|
1436
|
+
Object.assign(contents, doc);
|
|
1437
|
+
return contents;
|
|
1438
|
+
}, "de_ListNodesCommand");
|
|
2123
1439
|
var de_ListPackageImportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2124
1440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2125
|
-
return
|
|
1441
|
+
return de_CommandError(output, context);
|
|
2126
1442
|
}
|
|
2127
1443
|
const contents = (0, import_smithy_client.map)({
|
|
2128
1444
|
$metadata: deserializeMetadata(output)
|
|
@@ -2135,37 +1451,9 @@ var de_ListPackageImportJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2135
1451
|
Object.assign(contents, doc);
|
|
2136
1452
|
return contents;
|
|
2137
1453
|
}, "de_ListPackageImportJobsCommand");
|
|
2138
|
-
var de_ListPackageImportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2139
|
-
const parsedOutput = {
|
|
2140
|
-
...output,
|
|
2141
|
-
body: await parseErrorBody(output.body, context)
|
|
2142
|
-
};
|
|
2143
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2144
|
-
switch (errorCode) {
|
|
2145
|
-
case "AccessDeniedException":
|
|
2146
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
2147
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "ConflictException":
|
|
2149
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
2150
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "InternalServerException":
|
|
2152
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2153
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "ValidationException":
|
|
2155
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2156
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2157
|
-
default:
|
|
2158
|
-
const parsedBody = parsedOutput.body;
|
|
2159
|
-
return throwDefaultError({
|
|
2160
|
-
output,
|
|
2161
|
-
parsedBody,
|
|
2162
|
-
errorCode
|
|
2163
|
-
});
|
|
2164
|
-
}
|
|
2165
|
-
}, "de_ListPackageImportJobsCommandError");
|
|
2166
1454
|
var de_ListPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2167
1455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2168
|
-
return
|
|
1456
|
+
return de_CommandError(output, context);
|
|
2169
1457
|
}
|
|
2170
1458
|
const contents = (0, import_smithy_client.map)({
|
|
2171
1459
|
$metadata: deserializeMetadata(output)
|
|
@@ -2178,40 +1466,9 @@ var de_ListPackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2178
1466
|
Object.assign(contents, doc);
|
|
2179
1467
|
return contents;
|
|
2180
1468
|
}, "de_ListPackagesCommand");
|
|
2181
|
-
var de_ListPackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2182
|
-
const parsedOutput = {
|
|
2183
|
-
...output,
|
|
2184
|
-
body: await parseErrorBody(output.body, context)
|
|
2185
|
-
};
|
|
2186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2187
|
-
switch (errorCode) {
|
|
2188
|
-
case "AccessDeniedException":
|
|
2189
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
2190
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "ConflictException":
|
|
2192
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
2193
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "InternalServerException":
|
|
2195
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2196
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ResourceNotFoundException":
|
|
2198
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
2199
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "ValidationException":
|
|
2201
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2203
|
-
default:
|
|
2204
|
-
const parsedBody = parsedOutput.body;
|
|
2205
|
-
return throwDefaultError({
|
|
2206
|
-
output,
|
|
2207
|
-
parsedBody,
|
|
2208
|
-
errorCode
|
|
2209
|
-
});
|
|
2210
|
-
}
|
|
2211
|
-
}, "de_ListPackagesCommandError");
|
|
2212
1469
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2213
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2214
|
-
return
|
|
1471
|
+
return de_CommandError(output, context);
|
|
2215
1472
|
}
|
|
2216
1473
|
const contents = (0, import_smithy_client.map)({
|
|
2217
1474
|
$metadata: deserializeMetadata(output)
|
|
@@ -2223,34 +1480,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2223
1480
|
Object.assign(contents, doc);
|
|
2224
1481
|
return contents;
|
|
2225
1482
|
}, "de_ListTagsForResourceCommand");
|
|
2226
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2227
|
-
const parsedOutput = {
|
|
2228
|
-
...output,
|
|
2229
|
-
body: await parseErrorBody(output.body, context)
|
|
2230
|
-
};
|
|
2231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2232
|
-
switch (errorCode) {
|
|
2233
|
-
case "InternalServerException":
|
|
2234
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2235
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "ResourceNotFoundException":
|
|
2237
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
2238
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2239
|
-
case "ValidationException":
|
|
2240
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2241
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2242
|
-
default:
|
|
2243
|
-
const parsedBody = parsedOutput.body;
|
|
2244
|
-
return throwDefaultError({
|
|
2245
|
-
output,
|
|
2246
|
-
parsedBody,
|
|
2247
|
-
errorCode
|
|
2248
|
-
});
|
|
2249
|
-
}
|
|
2250
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2251
1483
|
var de_ProvisionDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2252
1484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2253
|
-
return
|
|
1485
|
+
return de_CommandError(output, context);
|
|
2254
1486
|
}
|
|
2255
1487
|
const contents = (0, import_smithy_client.map)({
|
|
2256
1488
|
$metadata: deserializeMetadata(output)
|
|
@@ -2266,40 +1498,9 @@ var de_ProvisionDeviceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2266
1498
|
Object.assign(contents, doc);
|
|
2267
1499
|
return contents;
|
|
2268
1500
|
}, "de_ProvisionDeviceCommand");
|
|
2269
|
-
var de_ProvisionDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2270
|
-
const parsedOutput = {
|
|
2271
|
-
...output,
|
|
2272
|
-
body: await parseErrorBody(output.body, context)
|
|
2273
|
-
};
|
|
2274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2275
|
-
switch (errorCode) {
|
|
2276
|
-
case "AccessDeniedException":
|
|
2277
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
2278
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "ConflictException":
|
|
2280
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
2281
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "InternalServerException":
|
|
2283
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2284
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "ServiceQuotaExceededException":
|
|
2286
|
-
case "com.amazonaws.panorama#ServiceQuotaExceededException":
|
|
2287
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "ValidationException":
|
|
2289
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2290
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2291
|
-
default:
|
|
2292
|
-
const parsedBody = parsedOutput.body;
|
|
2293
|
-
return throwDefaultError({
|
|
2294
|
-
output,
|
|
2295
|
-
parsedBody,
|
|
2296
|
-
errorCode
|
|
2297
|
-
});
|
|
2298
|
-
}
|
|
2299
|
-
}, "de_ProvisionDeviceCommandError");
|
|
2300
1501
|
var de_RegisterPackageVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2301
1502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2302
|
-
return
|
|
1503
|
+
return de_CommandError(output, context);
|
|
2303
1504
|
}
|
|
2304
1505
|
const contents = (0, import_smithy_client.map)({
|
|
2305
1506
|
$metadata: deserializeMetadata(output)
|
|
@@ -2307,37 +1508,9 @@ var de_RegisterPackageVersionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2307
1508
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2308
1509
|
return contents;
|
|
2309
1510
|
}, "de_RegisterPackageVersionCommand");
|
|
2310
|
-
var de_RegisterPackageVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2311
|
-
const parsedOutput = {
|
|
2312
|
-
...output,
|
|
2313
|
-
body: await parseErrorBody(output.body, context)
|
|
2314
|
-
};
|
|
2315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2316
|
-
switch (errorCode) {
|
|
2317
|
-
case "AccessDeniedException":
|
|
2318
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
2319
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2320
|
-
case "ConflictException":
|
|
2321
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
2322
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2323
|
-
case "InternalServerException":
|
|
2324
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2325
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "ValidationException":
|
|
2327
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2328
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2329
|
-
default:
|
|
2330
|
-
const parsedBody = parsedOutput.body;
|
|
2331
|
-
return throwDefaultError({
|
|
2332
|
-
output,
|
|
2333
|
-
parsedBody,
|
|
2334
|
-
errorCode
|
|
2335
|
-
});
|
|
2336
|
-
}
|
|
2337
|
-
}, "de_RegisterPackageVersionCommandError");
|
|
2338
1511
|
var de_RemoveApplicationInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
1512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2340
|
-
return
|
|
1513
|
+
return de_CommandError(output, context);
|
|
2341
1514
|
}
|
|
2342
1515
|
const contents = (0, import_smithy_client.map)({
|
|
2343
1516
|
$metadata: deserializeMetadata(output)
|
|
@@ -2345,40 +1518,9 @@ var de_RemoveApplicationInstanceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2345
1518
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2346
1519
|
return contents;
|
|
2347
1520
|
}, "de_RemoveApplicationInstanceCommand");
|
|
2348
|
-
var de_RemoveApplicationInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2349
|
-
const parsedOutput = {
|
|
2350
|
-
...output,
|
|
2351
|
-
body: await parseErrorBody(output.body, context)
|
|
2352
|
-
};
|
|
2353
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
|
-
switch (errorCode) {
|
|
2355
|
-
case "AccessDeniedException":
|
|
2356
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
2357
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2358
|
-
case "ConflictException":
|
|
2359
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
2360
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2361
|
-
case "InternalServerException":
|
|
2362
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2363
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2364
|
-
case "ResourceNotFoundException":
|
|
2365
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
2366
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2367
|
-
case "ValidationException":
|
|
2368
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2369
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2370
|
-
default:
|
|
2371
|
-
const parsedBody = parsedOutput.body;
|
|
2372
|
-
return throwDefaultError({
|
|
2373
|
-
output,
|
|
2374
|
-
parsedBody,
|
|
2375
|
-
errorCode
|
|
2376
|
-
});
|
|
2377
|
-
}
|
|
2378
|
-
}, "de_RemoveApplicationInstanceCommandError");
|
|
2379
1521
|
var de_SignalApplicationInstanceNodeInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2380
1522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2381
|
-
return
|
|
1523
|
+
return de_CommandError(output, context);
|
|
2382
1524
|
}
|
|
2383
1525
|
const contents = (0, import_smithy_client.map)({
|
|
2384
1526
|
$metadata: deserializeMetadata(output)
|
|
@@ -2390,37 +1532,9 @@ var de_SignalApplicationInstanceNodeInstancesCommand = /* @__PURE__ */ __name(as
|
|
|
2390
1532
|
Object.assign(contents, doc);
|
|
2391
1533
|
return contents;
|
|
2392
1534
|
}, "de_SignalApplicationInstanceNodeInstancesCommand");
|
|
2393
|
-
var de_SignalApplicationInstanceNodeInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2394
|
-
const parsedOutput = {
|
|
2395
|
-
...output,
|
|
2396
|
-
body: await parseErrorBody(output.body, context)
|
|
2397
|
-
};
|
|
2398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2399
|
-
switch (errorCode) {
|
|
2400
|
-
case "AccessDeniedException":
|
|
2401
|
-
case "com.amazonaws.panorama#AccessDeniedException":
|
|
2402
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "InternalServerException":
|
|
2404
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2405
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "ServiceQuotaExceededException":
|
|
2407
|
-
case "com.amazonaws.panorama#ServiceQuotaExceededException":
|
|
2408
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "ValidationException":
|
|
2410
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2411
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2412
|
-
default:
|
|
2413
|
-
const parsedBody = parsedOutput.body;
|
|
2414
|
-
return throwDefaultError({
|
|
2415
|
-
output,
|
|
2416
|
-
parsedBody,
|
|
2417
|
-
errorCode
|
|
2418
|
-
});
|
|
2419
|
-
}
|
|
2420
|
-
}, "de_SignalApplicationInstanceNodeInstancesCommandError");
|
|
2421
1535
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2422
1536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2423
|
-
return
|
|
1537
|
+
return de_CommandError(output, context);
|
|
2424
1538
|
}
|
|
2425
1539
|
const contents = (0, import_smithy_client.map)({
|
|
2426
1540
|
$metadata: deserializeMetadata(output)
|
|
@@ -2428,34 +1542,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2428
1542
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2429
1543
|
return contents;
|
|
2430
1544
|
}, "de_TagResourceCommand");
|
|
2431
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2432
|
-
const parsedOutput = {
|
|
2433
|
-
...output,
|
|
2434
|
-
body: await parseErrorBody(output.body, context)
|
|
2435
|
-
};
|
|
2436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2437
|
-
switch (errorCode) {
|
|
2438
|
-
case "InternalServerException":
|
|
2439
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2440
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "ResourceNotFoundException":
|
|
2442
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
2443
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "ValidationException":
|
|
2445
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2446
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2447
|
-
default:
|
|
2448
|
-
const parsedBody = parsedOutput.body;
|
|
2449
|
-
return throwDefaultError({
|
|
2450
|
-
output,
|
|
2451
|
-
parsedBody,
|
|
2452
|
-
errorCode
|
|
2453
|
-
});
|
|
2454
|
-
}
|
|
2455
|
-
}, "de_TagResourceCommandError");
|
|
2456
1545
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2457
1546
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2458
|
-
return
|
|
1547
|
+
return de_CommandError(output, context);
|
|
2459
1548
|
}
|
|
2460
1549
|
const contents = (0, import_smithy_client.map)({
|
|
2461
1550
|
$metadata: deserializeMetadata(output)
|
|
@@ -2463,34 +1552,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2463
1552
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2464
1553
|
return contents;
|
|
2465
1554
|
}, "de_UntagResourceCommand");
|
|
2466
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2467
|
-
const parsedOutput = {
|
|
2468
|
-
...output,
|
|
2469
|
-
body: await parseErrorBody(output.body, context)
|
|
2470
|
-
};
|
|
2471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2472
|
-
switch (errorCode) {
|
|
2473
|
-
case "InternalServerException":
|
|
2474
|
-
case "com.amazonaws.panorama#InternalServerException":
|
|
2475
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "ResourceNotFoundException":
|
|
2477
|
-
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
2478
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2479
|
-
case "ValidationException":
|
|
2480
|
-
case "com.amazonaws.panorama#ValidationException":
|
|
2481
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2482
|
-
default:
|
|
2483
|
-
const parsedBody = parsedOutput.body;
|
|
2484
|
-
return throwDefaultError({
|
|
2485
|
-
output,
|
|
2486
|
-
parsedBody,
|
|
2487
|
-
errorCode
|
|
2488
|
-
});
|
|
2489
|
-
}
|
|
2490
|
-
}, "de_UntagResourceCommandError");
|
|
2491
1555
|
var de_UpdateDeviceMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2492
1556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2493
|
-
return
|
|
1557
|
+
return de_CommandError(output, context);
|
|
2494
1558
|
}
|
|
2495
1559
|
const contents = (0, import_smithy_client.map)({
|
|
2496
1560
|
$metadata: deserializeMetadata(output)
|
|
@@ -2502,7 +1566,7 @@ var de_UpdateDeviceMetadataCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2502
1566
|
Object.assign(contents, doc);
|
|
2503
1567
|
return contents;
|
|
2504
1568
|
}, "de_UpdateDeviceMetadataCommand");
|
|
2505
|
-
var
|
|
1569
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2506
1570
|
const parsedOutput = {
|
|
2507
1571
|
...output,
|
|
2508
1572
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2512,18 +1576,21 @@ var de_UpdateDeviceMetadataCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
2512
1576
|
case "AccessDeniedException":
|
|
2513
1577
|
case "com.amazonaws.panorama#AccessDeniedException":
|
|
2514
1578
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "ConflictException":
|
|
2516
|
-
case "com.amazonaws.panorama#ConflictException":
|
|
2517
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2518
1579
|
case "InternalServerException":
|
|
2519
1580
|
case "com.amazonaws.panorama#InternalServerException":
|
|
2520
1581
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "
|
|
2522
|
-
case "com.amazonaws.panorama#
|
|
2523
|
-
throw await
|
|
1582
|
+
case "ServiceQuotaExceededException":
|
|
1583
|
+
case "com.amazonaws.panorama#ServiceQuotaExceededException":
|
|
1584
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2524
1585
|
case "ValidationException":
|
|
2525
1586
|
case "com.amazonaws.panorama#ValidationException":
|
|
2526
1587
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1588
|
+
case "ConflictException":
|
|
1589
|
+
case "com.amazonaws.panorama#ConflictException":
|
|
1590
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1591
|
+
case "ResourceNotFoundException":
|
|
1592
|
+
case "com.amazonaws.panorama#ResourceNotFoundException":
|
|
1593
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2527
1594
|
default:
|
|
2528
1595
|
const parsedBody = parsedOutput.body;
|
|
2529
1596
|
return throwDefaultError({
|
|
@@ -2532,7 +1599,7 @@ var de_UpdateDeviceMetadataCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
2532
1599
|
errorCode
|
|
2533
1600
|
});
|
|
2534
1601
|
}
|
|
2535
|
-
}, "
|
|
1602
|
+
}, "de_CommandError");
|
|
2536
1603
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(PanoramaServiceException);
|
|
2537
1604
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2538
1605
|
const contents = (0, import_smithy_client.map)({});
|