@aws-sdk/client-greengrass 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +94 -1814
- package/dist-es/protocols/Aws_restJson1.js +101 -1821
- package/package.json +3 -3
|
@@ -1147,7 +1147,7 @@ export const se_UpdateThingRuntimeConfigurationCommand = async (input, context)
|
|
|
1147
1147
|
};
|
|
1148
1148
|
export const de_AssociateRoleToGroupCommand = async (output, context) => {
|
|
1149
1149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
|
-
return
|
|
1150
|
+
return de_CommandError(output, context);
|
|
1151
1151
|
}
|
|
1152
1152
|
const contents = map({
|
|
1153
1153
|
$metadata: deserializeMetadata(output),
|
|
@@ -1159,31 +1159,9 @@ export const de_AssociateRoleToGroupCommand = async (output, context) => {
|
|
|
1159
1159
|
Object.assign(contents, doc);
|
|
1160
1160
|
return contents;
|
|
1161
1161
|
};
|
|
1162
|
-
const de_AssociateRoleToGroupCommandError = async (output, context) => {
|
|
1163
|
-
const parsedOutput = {
|
|
1164
|
-
...output,
|
|
1165
|
-
body: await parseErrorBody(output.body, context),
|
|
1166
|
-
};
|
|
1167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
-
switch (errorCode) {
|
|
1169
|
-
case "BadRequestException":
|
|
1170
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1171
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "InternalServerErrorException":
|
|
1173
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
1174
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1175
|
-
default:
|
|
1176
|
-
const parsedBody = parsedOutput.body;
|
|
1177
|
-
return throwDefaultError({
|
|
1178
|
-
output,
|
|
1179
|
-
parsedBody,
|
|
1180
|
-
errorCode,
|
|
1181
|
-
});
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
1162
|
export const de_AssociateServiceRoleToAccountCommand = async (output, context) => {
|
|
1185
1163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
1164
|
+
return de_CommandError(output, context);
|
|
1187
1165
|
}
|
|
1188
1166
|
const contents = map({
|
|
1189
1167
|
$metadata: deserializeMetadata(output),
|
|
@@ -1195,31 +1173,9 @@ export const de_AssociateServiceRoleToAccountCommand = async (output, context) =
|
|
|
1195
1173
|
Object.assign(contents, doc);
|
|
1196
1174
|
return contents;
|
|
1197
1175
|
};
|
|
1198
|
-
const de_AssociateServiceRoleToAccountCommandError = async (output, context) => {
|
|
1199
|
-
const parsedOutput = {
|
|
1200
|
-
...output,
|
|
1201
|
-
body: await parseErrorBody(output.body, context),
|
|
1202
|
-
};
|
|
1203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1204
|
-
switch (errorCode) {
|
|
1205
|
-
case "BadRequestException":
|
|
1206
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1207
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "InternalServerErrorException":
|
|
1209
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
1210
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1211
|
-
default:
|
|
1212
|
-
const parsedBody = parsedOutput.body;
|
|
1213
|
-
return throwDefaultError({
|
|
1214
|
-
output,
|
|
1215
|
-
parsedBody,
|
|
1216
|
-
errorCode,
|
|
1217
|
-
});
|
|
1218
|
-
}
|
|
1219
|
-
};
|
|
1220
1176
|
export const de_CreateConnectorDefinitionCommand = async (output, context) => {
|
|
1221
1177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
|
-
return
|
|
1178
|
+
return de_CommandError(output, context);
|
|
1223
1179
|
}
|
|
1224
1180
|
const contents = map({
|
|
1225
1181
|
$metadata: deserializeMetadata(output),
|
|
@@ -1237,28 +1193,9 @@ export const de_CreateConnectorDefinitionCommand = async (output, context) => {
|
|
|
1237
1193
|
Object.assign(contents, doc);
|
|
1238
1194
|
return contents;
|
|
1239
1195
|
};
|
|
1240
|
-
const de_CreateConnectorDefinitionCommandError = async (output, context) => {
|
|
1241
|
-
const parsedOutput = {
|
|
1242
|
-
...output,
|
|
1243
|
-
body: await parseErrorBody(output.body, context),
|
|
1244
|
-
};
|
|
1245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
-
switch (errorCode) {
|
|
1247
|
-
case "BadRequestException":
|
|
1248
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1249
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1250
|
-
default:
|
|
1251
|
-
const parsedBody = parsedOutput.body;
|
|
1252
|
-
return throwDefaultError({
|
|
1253
|
-
output,
|
|
1254
|
-
parsedBody,
|
|
1255
|
-
errorCode,
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
};
|
|
1259
1196
|
export const de_CreateConnectorDefinitionVersionCommand = async (output, context) => {
|
|
1260
1197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1261
|
-
return
|
|
1198
|
+
return de_CommandError(output, context);
|
|
1262
1199
|
}
|
|
1263
1200
|
const contents = map({
|
|
1264
1201
|
$metadata: deserializeMetadata(output),
|
|
@@ -1273,28 +1210,9 @@ export const de_CreateConnectorDefinitionVersionCommand = async (output, context
|
|
|
1273
1210
|
Object.assign(contents, doc);
|
|
1274
1211
|
return contents;
|
|
1275
1212
|
};
|
|
1276
|
-
const de_CreateConnectorDefinitionVersionCommandError = async (output, context) => {
|
|
1277
|
-
const parsedOutput = {
|
|
1278
|
-
...output,
|
|
1279
|
-
body: await parseErrorBody(output.body, context),
|
|
1280
|
-
};
|
|
1281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
|
-
switch (errorCode) {
|
|
1283
|
-
case "BadRequestException":
|
|
1284
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1285
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1286
|
-
default:
|
|
1287
|
-
const parsedBody = parsedOutput.body;
|
|
1288
|
-
return throwDefaultError({
|
|
1289
|
-
output,
|
|
1290
|
-
parsedBody,
|
|
1291
|
-
errorCode,
|
|
1292
|
-
});
|
|
1293
|
-
}
|
|
1294
|
-
};
|
|
1295
1213
|
export const de_CreateCoreDefinitionCommand = async (output, context) => {
|
|
1296
1214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1297
|
-
return
|
|
1215
|
+
return de_CommandError(output, context);
|
|
1298
1216
|
}
|
|
1299
1217
|
const contents = map({
|
|
1300
1218
|
$metadata: deserializeMetadata(output),
|
|
@@ -1312,28 +1230,9 @@ export const de_CreateCoreDefinitionCommand = async (output, context) => {
|
|
|
1312
1230
|
Object.assign(contents, doc);
|
|
1313
1231
|
return contents;
|
|
1314
1232
|
};
|
|
1315
|
-
const de_CreateCoreDefinitionCommandError = 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 "BadRequestException":
|
|
1323
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1324
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1325
|
-
default:
|
|
1326
|
-
const parsedBody = parsedOutput.body;
|
|
1327
|
-
return throwDefaultError({
|
|
1328
|
-
output,
|
|
1329
|
-
parsedBody,
|
|
1330
|
-
errorCode,
|
|
1331
|
-
});
|
|
1332
|
-
}
|
|
1333
|
-
};
|
|
1334
1233
|
export const de_CreateCoreDefinitionVersionCommand = async (output, context) => {
|
|
1335
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1336
|
-
return
|
|
1235
|
+
return de_CommandError(output, context);
|
|
1337
1236
|
}
|
|
1338
1237
|
const contents = map({
|
|
1339
1238
|
$metadata: deserializeMetadata(output),
|
|
@@ -1348,28 +1247,9 @@ export const de_CreateCoreDefinitionVersionCommand = async (output, context) =>
|
|
|
1348
1247
|
Object.assign(contents, doc);
|
|
1349
1248
|
return contents;
|
|
1350
1249
|
};
|
|
1351
|
-
const de_CreateCoreDefinitionVersionCommandError = async (output, context) => {
|
|
1352
|
-
const parsedOutput = {
|
|
1353
|
-
...output,
|
|
1354
|
-
body: await parseErrorBody(output.body, context),
|
|
1355
|
-
};
|
|
1356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
|
-
switch (errorCode) {
|
|
1358
|
-
case "BadRequestException":
|
|
1359
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1360
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1361
|
-
default:
|
|
1362
|
-
const parsedBody = parsedOutput.body;
|
|
1363
|
-
return throwDefaultError({
|
|
1364
|
-
output,
|
|
1365
|
-
parsedBody,
|
|
1366
|
-
errorCode,
|
|
1367
|
-
});
|
|
1368
|
-
}
|
|
1369
|
-
};
|
|
1370
1250
|
export const de_CreateDeploymentCommand = async (output, context) => {
|
|
1371
1251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1372
|
-
return
|
|
1252
|
+
return de_CommandError(output, context);
|
|
1373
1253
|
}
|
|
1374
1254
|
const contents = map({
|
|
1375
1255
|
$metadata: deserializeMetadata(output),
|
|
@@ -1382,28 +1262,9 @@ export const de_CreateDeploymentCommand = async (output, context) => {
|
|
|
1382
1262
|
Object.assign(contents, doc);
|
|
1383
1263
|
return contents;
|
|
1384
1264
|
};
|
|
1385
|
-
const de_CreateDeploymentCommandError = async (output, context) => {
|
|
1386
|
-
const parsedOutput = {
|
|
1387
|
-
...output,
|
|
1388
|
-
body: await parseErrorBody(output.body, context),
|
|
1389
|
-
};
|
|
1390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
|
-
switch (errorCode) {
|
|
1392
|
-
case "BadRequestException":
|
|
1393
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1394
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1395
|
-
default:
|
|
1396
|
-
const parsedBody = parsedOutput.body;
|
|
1397
|
-
return throwDefaultError({
|
|
1398
|
-
output,
|
|
1399
|
-
parsedBody,
|
|
1400
|
-
errorCode,
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
1265
|
export const de_CreateDeviceDefinitionCommand = async (output, context) => {
|
|
1405
1266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1406
|
-
return
|
|
1267
|
+
return de_CommandError(output, context);
|
|
1407
1268
|
}
|
|
1408
1269
|
const contents = map({
|
|
1409
1270
|
$metadata: deserializeMetadata(output),
|
|
@@ -1421,28 +1282,9 @@ export const de_CreateDeviceDefinitionCommand = async (output, context) => {
|
|
|
1421
1282
|
Object.assign(contents, doc);
|
|
1422
1283
|
return contents;
|
|
1423
1284
|
};
|
|
1424
|
-
const de_CreateDeviceDefinitionCommandError = async (output, context) => {
|
|
1425
|
-
const parsedOutput = {
|
|
1426
|
-
...output,
|
|
1427
|
-
body: await parseErrorBody(output.body, context),
|
|
1428
|
-
};
|
|
1429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
|
-
switch (errorCode) {
|
|
1431
|
-
case "BadRequestException":
|
|
1432
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1433
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1434
|
-
default:
|
|
1435
|
-
const parsedBody = parsedOutput.body;
|
|
1436
|
-
return throwDefaultError({
|
|
1437
|
-
output,
|
|
1438
|
-
parsedBody,
|
|
1439
|
-
errorCode,
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
};
|
|
1443
1285
|
export const de_CreateDeviceDefinitionVersionCommand = async (output, context) => {
|
|
1444
1286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1445
|
-
return
|
|
1287
|
+
return de_CommandError(output, context);
|
|
1446
1288
|
}
|
|
1447
1289
|
const contents = map({
|
|
1448
1290
|
$metadata: deserializeMetadata(output),
|
|
@@ -1457,28 +1299,9 @@ export const de_CreateDeviceDefinitionVersionCommand = async (output, context) =
|
|
|
1457
1299
|
Object.assign(contents, doc);
|
|
1458
1300
|
return contents;
|
|
1459
1301
|
};
|
|
1460
|
-
const de_CreateDeviceDefinitionVersionCommandError = async (output, context) => {
|
|
1461
|
-
const parsedOutput = {
|
|
1462
|
-
...output,
|
|
1463
|
-
body: await parseErrorBody(output.body, context),
|
|
1464
|
-
};
|
|
1465
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
-
switch (errorCode) {
|
|
1467
|
-
case "BadRequestException":
|
|
1468
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1469
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1470
|
-
default:
|
|
1471
|
-
const parsedBody = parsedOutput.body;
|
|
1472
|
-
return throwDefaultError({
|
|
1473
|
-
output,
|
|
1474
|
-
parsedBody,
|
|
1475
|
-
errorCode,
|
|
1476
|
-
});
|
|
1477
|
-
}
|
|
1478
|
-
};
|
|
1479
1302
|
export const de_CreateFunctionDefinitionCommand = async (output, context) => {
|
|
1480
1303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
-
return
|
|
1304
|
+
return de_CommandError(output, context);
|
|
1482
1305
|
}
|
|
1483
1306
|
const contents = map({
|
|
1484
1307
|
$metadata: deserializeMetadata(output),
|
|
@@ -1496,28 +1319,9 @@ export const de_CreateFunctionDefinitionCommand = async (output, context) => {
|
|
|
1496
1319
|
Object.assign(contents, doc);
|
|
1497
1320
|
return contents;
|
|
1498
1321
|
};
|
|
1499
|
-
const de_CreateFunctionDefinitionCommandError = async (output, context) => {
|
|
1500
|
-
const parsedOutput = {
|
|
1501
|
-
...output,
|
|
1502
|
-
body: await parseErrorBody(output.body, context),
|
|
1503
|
-
};
|
|
1504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
|
-
switch (errorCode) {
|
|
1506
|
-
case "BadRequestException":
|
|
1507
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1508
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1509
|
-
default:
|
|
1510
|
-
const parsedBody = parsedOutput.body;
|
|
1511
|
-
return throwDefaultError({
|
|
1512
|
-
output,
|
|
1513
|
-
parsedBody,
|
|
1514
|
-
errorCode,
|
|
1515
|
-
});
|
|
1516
|
-
}
|
|
1517
|
-
};
|
|
1518
1322
|
export const de_CreateFunctionDefinitionVersionCommand = async (output, context) => {
|
|
1519
1323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1520
|
-
return
|
|
1324
|
+
return de_CommandError(output, context);
|
|
1521
1325
|
}
|
|
1522
1326
|
const contents = map({
|
|
1523
1327
|
$metadata: deserializeMetadata(output),
|
|
@@ -1532,28 +1336,9 @@ export const de_CreateFunctionDefinitionVersionCommand = async (output, context)
|
|
|
1532
1336
|
Object.assign(contents, doc);
|
|
1533
1337
|
return contents;
|
|
1534
1338
|
};
|
|
1535
|
-
const de_CreateFunctionDefinitionVersionCommandError = async (output, context) => {
|
|
1536
|
-
const parsedOutput = {
|
|
1537
|
-
...output,
|
|
1538
|
-
body: await parseErrorBody(output.body, context),
|
|
1539
|
-
};
|
|
1540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1541
|
-
switch (errorCode) {
|
|
1542
|
-
case "BadRequestException":
|
|
1543
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1544
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1545
|
-
default:
|
|
1546
|
-
const parsedBody = parsedOutput.body;
|
|
1547
|
-
return throwDefaultError({
|
|
1548
|
-
output,
|
|
1549
|
-
parsedBody,
|
|
1550
|
-
errorCode,
|
|
1551
|
-
});
|
|
1552
|
-
}
|
|
1553
|
-
};
|
|
1554
1339
|
export const de_CreateGroupCommand = async (output, context) => {
|
|
1555
1340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1556
|
-
return
|
|
1341
|
+
return de_CommandError(output, context);
|
|
1557
1342
|
}
|
|
1558
1343
|
const contents = map({
|
|
1559
1344
|
$metadata: deserializeMetadata(output),
|
|
@@ -1571,28 +1356,9 @@ export const de_CreateGroupCommand = async (output, context) => {
|
|
|
1571
1356
|
Object.assign(contents, doc);
|
|
1572
1357
|
return contents;
|
|
1573
1358
|
};
|
|
1574
|
-
const de_CreateGroupCommandError = async (output, context) => {
|
|
1575
|
-
const parsedOutput = {
|
|
1576
|
-
...output,
|
|
1577
|
-
body: await parseErrorBody(output.body, context),
|
|
1578
|
-
};
|
|
1579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
case "BadRequestException":
|
|
1582
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1583
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1584
|
-
default:
|
|
1585
|
-
const parsedBody = parsedOutput.body;
|
|
1586
|
-
return throwDefaultError({
|
|
1587
|
-
output,
|
|
1588
|
-
parsedBody,
|
|
1589
|
-
errorCode,
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
1359
|
export const de_CreateGroupCertificateAuthorityCommand = async (output, context) => {
|
|
1594
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
|
-
return
|
|
1361
|
+
return de_CommandError(output, context);
|
|
1596
1362
|
}
|
|
1597
1363
|
const contents = map({
|
|
1598
1364
|
$metadata: deserializeMetadata(output),
|
|
@@ -1604,31 +1370,9 @@ export const de_CreateGroupCertificateAuthorityCommand = async (output, context)
|
|
|
1604
1370
|
Object.assign(contents, doc);
|
|
1605
1371
|
return contents;
|
|
1606
1372
|
};
|
|
1607
|
-
const de_CreateGroupCertificateAuthorityCommandError = async (output, context) => {
|
|
1608
|
-
const parsedOutput = {
|
|
1609
|
-
...output,
|
|
1610
|
-
body: await parseErrorBody(output.body, context),
|
|
1611
|
-
};
|
|
1612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
|
-
switch (errorCode) {
|
|
1614
|
-
case "BadRequestException":
|
|
1615
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1616
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1617
|
-
case "InternalServerErrorException":
|
|
1618
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
1619
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1620
|
-
default:
|
|
1621
|
-
const parsedBody = parsedOutput.body;
|
|
1622
|
-
return throwDefaultError({
|
|
1623
|
-
output,
|
|
1624
|
-
parsedBody,
|
|
1625
|
-
errorCode,
|
|
1626
|
-
});
|
|
1627
|
-
}
|
|
1628
|
-
};
|
|
1629
1373
|
export const de_CreateGroupVersionCommand = async (output, context) => {
|
|
1630
1374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1631
|
-
return
|
|
1375
|
+
return de_CommandError(output, context);
|
|
1632
1376
|
}
|
|
1633
1377
|
const contents = map({
|
|
1634
1378
|
$metadata: deserializeMetadata(output),
|
|
@@ -1643,28 +1387,9 @@ export const de_CreateGroupVersionCommand = async (output, context) => {
|
|
|
1643
1387
|
Object.assign(contents, doc);
|
|
1644
1388
|
return contents;
|
|
1645
1389
|
};
|
|
1646
|
-
const de_CreateGroupVersionCommandError = async (output, context) => {
|
|
1647
|
-
const parsedOutput = {
|
|
1648
|
-
...output,
|
|
1649
|
-
body: await parseErrorBody(output.body, context),
|
|
1650
|
-
};
|
|
1651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1652
|
-
switch (errorCode) {
|
|
1653
|
-
case "BadRequestException":
|
|
1654
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1655
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1656
|
-
default:
|
|
1657
|
-
const parsedBody = parsedOutput.body;
|
|
1658
|
-
return throwDefaultError({
|
|
1659
|
-
output,
|
|
1660
|
-
parsedBody,
|
|
1661
|
-
errorCode,
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
};
|
|
1665
1390
|
export const de_CreateLoggerDefinitionCommand = async (output, context) => {
|
|
1666
1391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1667
|
-
return
|
|
1392
|
+
return de_CommandError(output, context);
|
|
1668
1393
|
}
|
|
1669
1394
|
const contents = map({
|
|
1670
1395
|
$metadata: deserializeMetadata(output),
|
|
@@ -1682,28 +1407,9 @@ export const de_CreateLoggerDefinitionCommand = async (output, context) => {
|
|
|
1682
1407
|
Object.assign(contents, doc);
|
|
1683
1408
|
return contents;
|
|
1684
1409
|
};
|
|
1685
|
-
const de_CreateLoggerDefinitionCommandError = async (output, context) => {
|
|
1686
|
-
const parsedOutput = {
|
|
1687
|
-
...output,
|
|
1688
|
-
body: await parseErrorBody(output.body, context),
|
|
1689
|
-
};
|
|
1690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1691
|
-
switch (errorCode) {
|
|
1692
|
-
case "BadRequestException":
|
|
1693
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1694
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1695
|
-
default:
|
|
1696
|
-
const parsedBody = parsedOutput.body;
|
|
1697
|
-
return throwDefaultError({
|
|
1698
|
-
output,
|
|
1699
|
-
parsedBody,
|
|
1700
|
-
errorCode,
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
};
|
|
1704
1410
|
export const de_CreateLoggerDefinitionVersionCommand = async (output, context) => {
|
|
1705
1411
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1706
|
-
return
|
|
1412
|
+
return de_CommandError(output, context);
|
|
1707
1413
|
}
|
|
1708
1414
|
const contents = map({
|
|
1709
1415
|
$metadata: deserializeMetadata(output),
|
|
@@ -1718,28 +1424,9 @@ export const de_CreateLoggerDefinitionVersionCommand = async (output, context) =
|
|
|
1718
1424
|
Object.assign(contents, doc);
|
|
1719
1425
|
return contents;
|
|
1720
1426
|
};
|
|
1721
|
-
const de_CreateLoggerDefinitionVersionCommandError = async (output, context) => {
|
|
1722
|
-
const parsedOutput = {
|
|
1723
|
-
...output,
|
|
1724
|
-
body: await parseErrorBody(output.body, context),
|
|
1725
|
-
};
|
|
1726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
|
-
switch (errorCode) {
|
|
1728
|
-
case "BadRequestException":
|
|
1729
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1730
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1731
|
-
default:
|
|
1732
|
-
const parsedBody = parsedOutput.body;
|
|
1733
|
-
return throwDefaultError({
|
|
1734
|
-
output,
|
|
1735
|
-
parsedBody,
|
|
1736
|
-
errorCode,
|
|
1737
|
-
});
|
|
1738
|
-
}
|
|
1739
|
-
};
|
|
1740
1427
|
export const de_CreateResourceDefinitionCommand = async (output, context) => {
|
|
1741
1428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1742
|
-
return
|
|
1429
|
+
return de_CommandError(output, context);
|
|
1743
1430
|
}
|
|
1744
1431
|
const contents = map({
|
|
1745
1432
|
$metadata: deserializeMetadata(output),
|
|
@@ -1757,28 +1444,9 @@ export const de_CreateResourceDefinitionCommand = async (output, context) => {
|
|
|
1757
1444
|
Object.assign(contents, doc);
|
|
1758
1445
|
return contents;
|
|
1759
1446
|
};
|
|
1760
|
-
const de_CreateResourceDefinitionCommandError = 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 "BadRequestException":
|
|
1768
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1769
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1770
|
-
default:
|
|
1771
|
-
const parsedBody = parsedOutput.body;
|
|
1772
|
-
return throwDefaultError({
|
|
1773
|
-
output,
|
|
1774
|
-
parsedBody,
|
|
1775
|
-
errorCode,
|
|
1776
|
-
});
|
|
1777
|
-
}
|
|
1778
|
-
};
|
|
1779
1447
|
export const de_CreateResourceDefinitionVersionCommand = async (output, context) => {
|
|
1780
1448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1781
|
-
return
|
|
1449
|
+
return de_CommandError(output, context);
|
|
1782
1450
|
}
|
|
1783
1451
|
const contents = map({
|
|
1784
1452
|
$metadata: deserializeMetadata(output),
|
|
@@ -1793,28 +1461,9 @@ export const de_CreateResourceDefinitionVersionCommand = async (output, context)
|
|
|
1793
1461
|
Object.assign(contents, doc);
|
|
1794
1462
|
return contents;
|
|
1795
1463
|
};
|
|
1796
|
-
const de_CreateResourceDefinitionVersionCommandError = async (output, context) => {
|
|
1797
|
-
const parsedOutput = {
|
|
1798
|
-
...output,
|
|
1799
|
-
body: await parseErrorBody(output.body, context),
|
|
1800
|
-
};
|
|
1801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
-
switch (errorCode) {
|
|
1803
|
-
case "BadRequestException":
|
|
1804
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1805
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1806
|
-
default:
|
|
1807
|
-
const parsedBody = parsedOutput.body;
|
|
1808
|
-
return throwDefaultError({
|
|
1809
|
-
output,
|
|
1810
|
-
parsedBody,
|
|
1811
|
-
errorCode,
|
|
1812
|
-
});
|
|
1813
|
-
}
|
|
1814
|
-
};
|
|
1815
1464
|
export const de_CreateSoftwareUpdateJobCommand = async (output, context) => {
|
|
1816
1465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1817
|
-
return
|
|
1466
|
+
return de_CommandError(output, context);
|
|
1818
1467
|
}
|
|
1819
1468
|
const contents = map({
|
|
1820
1469
|
$metadata: deserializeMetadata(output),
|
|
@@ -1828,31 +1477,9 @@ export const de_CreateSoftwareUpdateJobCommand = async (output, context) => {
|
|
|
1828
1477
|
Object.assign(contents, doc);
|
|
1829
1478
|
return contents;
|
|
1830
1479
|
};
|
|
1831
|
-
const de_CreateSoftwareUpdateJobCommandError = async (output, context) => {
|
|
1832
|
-
const parsedOutput = {
|
|
1833
|
-
...output,
|
|
1834
|
-
body: await parseErrorBody(output.body, context),
|
|
1835
|
-
};
|
|
1836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
|
-
switch (errorCode) {
|
|
1838
|
-
case "BadRequestException":
|
|
1839
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1840
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "InternalServerErrorException":
|
|
1842
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
1843
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
1844
|
-
default:
|
|
1845
|
-
const parsedBody = parsedOutput.body;
|
|
1846
|
-
return throwDefaultError({
|
|
1847
|
-
output,
|
|
1848
|
-
parsedBody,
|
|
1849
|
-
errorCode,
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
};
|
|
1853
1480
|
export const de_CreateSubscriptionDefinitionCommand = async (output, context) => {
|
|
1854
1481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1855
|
-
return
|
|
1482
|
+
return de_CommandError(output, context);
|
|
1856
1483
|
}
|
|
1857
1484
|
const contents = map({
|
|
1858
1485
|
$metadata: deserializeMetadata(output),
|
|
@@ -1870,28 +1497,9 @@ export const de_CreateSubscriptionDefinitionCommand = async (output, context) =>
|
|
|
1870
1497
|
Object.assign(contents, doc);
|
|
1871
1498
|
return contents;
|
|
1872
1499
|
};
|
|
1873
|
-
const de_CreateSubscriptionDefinitionCommandError = async (output, context) => {
|
|
1874
|
-
const parsedOutput = {
|
|
1875
|
-
...output,
|
|
1876
|
-
body: await parseErrorBody(output.body, context),
|
|
1877
|
-
};
|
|
1878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1879
|
-
switch (errorCode) {
|
|
1880
|
-
case "BadRequestException":
|
|
1881
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1882
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1883
|
-
default:
|
|
1884
|
-
const parsedBody = parsedOutput.body;
|
|
1885
|
-
return throwDefaultError({
|
|
1886
|
-
output,
|
|
1887
|
-
parsedBody,
|
|
1888
|
-
errorCode,
|
|
1889
|
-
});
|
|
1890
|
-
}
|
|
1891
|
-
};
|
|
1892
1500
|
export const de_CreateSubscriptionDefinitionVersionCommand = async (output, context) => {
|
|
1893
1501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1894
|
-
return
|
|
1502
|
+
return de_CommandError(output, context);
|
|
1895
1503
|
}
|
|
1896
1504
|
const contents = map({
|
|
1897
1505
|
$metadata: deserializeMetadata(output),
|
|
@@ -1906,28 +1514,9 @@ export const de_CreateSubscriptionDefinitionVersionCommand = async (output, cont
|
|
|
1906
1514
|
Object.assign(contents, doc);
|
|
1907
1515
|
return contents;
|
|
1908
1516
|
};
|
|
1909
|
-
const de_CreateSubscriptionDefinitionVersionCommandError = async (output, context) => {
|
|
1910
|
-
const parsedOutput = {
|
|
1911
|
-
...output,
|
|
1912
|
-
body: await parseErrorBody(output.body, context),
|
|
1913
|
-
};
|
|
1914
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
|
-
switch (errorCode) {
|
|
1916
|
-
case "BadRequestException":
|
|
1917
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1918
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1919
|
-
default:
|
|
1920
|
-
const parsedBody = parsedOutput.body;
|
|
1921
|
-
return throwDefaultError({
|
|
1922
|
-
output,
|
|
1923
|
-
parsedBody,
|
|
1924
|
-
errorCode,
|
|
1925
|
-
});
|
|
1926
|
-
}
|
|
1927
|
-
};
|
|
1928
1517
|
export const de_DeleteConnectorDefinitionCommand = async (output, context) => {
|
|
1929
1518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1930
|
-
return
|
|
1519
|
+
return de_CommandError(output, context);
|
|
1931
1520
|
}
|
|
1932
1521
|
const contents = map({
|
|
1933
1522
|
$metadata: deserializeMetadata(output),
|
|
@@ -1935,28 +1524,9 @@ export const de_DeleteConnectorDefinitionCommand = async (output, context) => {
|
|
|
1935
1524
|
await collectBody(output.body, context);
|
|
1936
1525
|
return contents;
|
|
1937
1526
|
};
|
|
1938
|
-
const de_DeleteConnectorDefinitionCommandError = async (output, context) => {
|
|
1939
|
-
const parsedOutput = {
|
|
1940
|
-
...output,
|
|
1941
|
-
body: await parseErrorBody(output.body, context),
|
|
1942
|
-
};
|
|
1943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
|
-
switch (errorCode) {
|
|
1945
|
-
case "BadRequestException":
|
|
1946
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1947
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1948
|
-
default:
|
|
1949
|
-
const parsedBody = parsedOutput.body;
|
|
1950
|
-
return throwDefaultError({
|
|
1951
|
-
output,
|
|
1952
|
-
parsedBody,
|
|
1953
|
-
errorCode,
|
|
1954
|
-
});
|
|
1955
|
-
}
|
|
1956
|
-
};
|
|
1957
1527
|
export const de_DeleteCoreDefinitionCommand = async (output, context) => {
|
|
1958
1528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1959
|
-
return
|
|
1529
|
+
return de_CommandError(output, context);
|
|
1960
1530
|
}
|
|
1961
1531
|
const contents = map({
|
|
1962
1532
|
$metadata: deserializeMetadata(output),
|
|
@@ -1964,28 +1534,9 @@ export const de_DeleteCoreDefinitionCommand = async (output, context) => {
|
|
|
1964
1534
|
await collectBody(output.body, context);
|
|
1965
1535
|
return contents;
|
|
1966
1536
|
};
|
|
1967
|
-
const de_DeleteCoreDefinitionCommandError = async (output, context) => {
|
|
1968
|
-
const parsedOutput = {
|
|
1969
|
-
...output,
|
|
1970
|
-
body: await parseErrorBody(output.body, context),
|
|
1971
|
-
};
|
|
1972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
-
switch (errorCode) {
|
|
1974
|
-
case "BadRequestException":
|
|
1975
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
1976
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1977
|
-
default:
|
|
1978
|
-
const parsedBody = parsedOutput.body;
|
|
1979
|
-
return throwDefaultError({
|
|
1980
|
-
output,
|
|
1981
|
-
parsedBody,
|
|
1982
|
-
errorCode,
|
|
1983
|
-
});
|
|
1984
|
-
}
|
|
1985
|
-
};
|
|
1986
1537
|
export const de_DeleteDeviceDefinitionCommand = async (output, context) => {
|
|
1987
1538
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1988
|
-
return
|
|
1539
|
+
return de_CommandError(output, context);
|
|
1989
1540
|
}
|
|
1990
1541
|
const contents = map({
|
|
1991
1542
|
$metadata: deserializeMetadata(output),
|
|
@@ -1993,28 +1544,9 @@ export const de_DeleteDeviceDefinitionCommand = async (output, context) => {
|
|
|
1993
1544
|
await collectBody(output.body, context);
|
|
1994
1545
|
return contents;
|
|
1995
1546
|
};
|
|
1996
|
-
const de_DeleteDeviceDefinitionCommandError = async (output, context) => {
|
|
1997
|
-
const parsedOutput = {
|
|
1998
|
-
...output,
|
|
1999
|
-
body: await parseErrorBody(output.body, context),
|
|
2000
|
-
};
|
|
2001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2002
|
-
switch (errorCode) {
|
|
2003
|
-
case "BadRequestException":
|
|
2004
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2005
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2006
|
-
default:
|
|
2007
|
-
const parsedBody = parsedOutput.body;
|
|
2008
|
-
return throwDefaultError({
|
|
2009
|
-
output,
|
|
2010
|
-
parsedBody,
|
|
2011
|
-
errorCode,
|
|
2012
|
-
});
|
|
2013
|
-
}
|
|
2014
|
-
};
|
|
2015
1547
|
export const de_DeleteFunctionDefinitionCommand = async (output, context) => {
|
|
2016
1548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2017
|
-
return
|
|
1549
|
+
return de_CommandError(output, context);
|
|
2018
1550
|
}
|
|
2019
1551
|
const contents = map({
|
|
2020
1552
|
$metadata: deserializeMetadata(output),
|
|
@@ -2022,28 +1554,9 @@ export const de_DeleteFunctionDefinitionCommand = async (output, context) => {
|
|
|
2022
1554
|
await collectBody(output.body, context);
|
|
2023
1555
|
return contents;
|
|
2024
1556
|
};
|
|
2025
|
-
const de_DeleteFunctionDefinitionCommandError = async (output, context) => {
|
|
2026
|
-
const parsedOutput = {
|
|
2027
|
-
...output,
|
|
2028
|
-
body: await parseErrorBody(output.body, context),
|
|
2029
|
-
};
|
|
2030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
|
-
switch (errorCode) {
|
|
2032
|
-
case "BadRequestException":
|
|
2033
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2034
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2035
|
-
default:
|
|
2036
|
-
const parsedBody = parsedOutput.body;
|
|
2037
|
-
return throwDefaultError({
|
|
2038
|
-
output,
|
|
2039
|
-
parsedBody,
|
|
2040
|
-
errorCode,
|
|
2041
|
-
});
|
|
2042
|
-
}
|
|
2043
|
-
};
|
|
2044
1557
|
export const de_DeleteGroupCommand = async (output, context) => {
|
|
2045
1558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2046
|
-
return
|
|
1559
|
+
return de_CommandError(output, context);
|
|
2047
1560
|
}
|
|
2048
1561
|
const contents = map({
|
|
2049
1562
|
$metadata: deserializeMetadata(output),
|
|
@@ -2051,28 +1564,9 @@ export const de_DeleteGroupCommand = async (output, context) => {
|
|
|
2051
1564
|
await collectBody(output.body, context);
|
|
2052
1565
|
return contents;
|
|
2053
1566
|
};
|
|
2054
|
-
const de_DeleteGroupCommandError = async (output, context) => {
|
|
2055
|
-
const parsedOutput = {
|
|
2056
|
-
...output,
|
|
2057
|
-
body: await parseErrorBody(output.body, context),
|
|
2058
|
-
};
|
|
2059
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2060
|
-
switch (errorCode) {
|
|
2061
|
-
case "BadRequestException":
|
|
2062
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2063
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2064
|
-
default:
|
|
2065
|
-
const parsedBody = parsedOutput.body;
|
|
2066
|
-
return throwDefaultError({
|
|
2067
|
-
output,
|
|
2068
|
-
parsedBody,
|
|
2069
|
-
errorCode,
|
|
2070
|
-
});
|
|
2071
|
-
}
|
|
2072
|
-
};
|
|
2073
1567
|
export const de_DeleteLoggerDefinitionCommand = async (output, context) => {
|
|
2074
1568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2075
|
-
return
|
|
1569
|
+
return de_CommandError(output, context);
|
|
2076
1570
|
}
|
|
2077
1571
|
const contents = map({
|
|
2078
1572
|
$metadata: deserializeMetadata(output),
|
|
@@ -2080,28 +1574,19 @@ export const de_DeleteLoggerDefinitionCommand = async (output, context) => {
|
|
|
2080
1574
|
await collectBody(output.body, context);
|
|
2081
1575
|
return contents;
|
|
2082
1576
|
};
|
|
2083
|
-
const
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
body: await parseErrorBody(output.body, context),
|
|
2087
|
-
};
|
|
2088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
|
-
switch (errorCode) {
|
|
2090
|
-
case "BadRequestException":
|
|
2091
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2092
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2093
|
-
default:
|
|
2094
|
-
const parsedBody = parsedOutput.body;
|
|
2095
|
-
return throwDefaultError({
|
|
2096
|
-
output,
|
|
2097
|
-
parsedBody,
|
|
2098
|
-
errorCode,
|
|
2099
|
-
});
|
|
1577
|
+
export const de_DeleteResourceDefinitionCommand = async (output, context) => {
|
|
1578
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1579
|
+
return de_CommandError(output, context);
|
|
2100
1580
|
}
|
|
1581
|
+
const contents = map({
|
|
1582
|
+
$metadata: deserializeMetadata(output),
|
|
1583
|
+
});
|
|
1584
|
+
await collectBody(output.body, context);
|
|
1585
|
+
return contents;
|
|
2101
1586
|
};
|
|
2102
|
-
export const
|
|
1587
|
+
export const de_DeleteSubscriptionDefinitionCommand = async (output, context) => {
|
|
2103
1588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2104
|
-
return
|
|
1589
|
+
return de_CommandError(output, context);
|
|
2105
1590
|
}
|
|
2106
1591
|
const contents = map({
|
|
2107
1592
|
$metadata: deserializeMetadata(output),
|
|
@@ -2109,57 +1594,9 @@ export const de_DeleteResourceDefinitionCommand = async (output, context) => {
|
|
|
2109
1594
|
await collectBody(output.body, context);
|
|
2110
1595
|
return contents;
|
|
2111
1596
|
};
|
|
2112
|
-
const de_DeleteResourceDefinitionCommandError = async (output, context) => {
|
|
2113
|
-
const parsedOutput = {
|
|
2114
|
-
...output,
|
|
2115
|
-
body: await parseErrorBody(output.body, context),
|
|
2116
|
-
};
|
|
2117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2118
|
-
switch (errorCode) {
|
|
2119
|
-
case "BadRequestException":
|
|
2120
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2121
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2122
|
-
default:
|
|
2123
|
-
const parsedBody = parsedOutput.body;
|
|
2124
|
-
return throwDefaultError({
|
|
2125
|
-
output,
|
|
2126
|
-
parsedBody,
|
|
2127
|
-
errorCode,
|
|
2128
|
-
});
|
|
2129
|
-
}
|
|
2130
|
-
};
|
|
2131
|
-
export const de_DeleteSubscriptionDefinitionCommand = async (output, context) => {
|
|
2132
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2133
|
-
return de_DeleteSubscriptionDefinitionCommandError(output, context);
|
|
2134
|
-
}
|
|
2135
|
-
const contents = map({
|
|
2136
|
-
$metadata: deserializeMetadata(output),
|
|
2137
|
-
});
|
|
2138
|
-
await collectBody(output.body, context);
|
|
2139
|
-
return contents;
|
|
2140
|
-
};
|
|
2141
|
-
const de_DeleteSubscriptionDefinitionCommandError = async (output, context) => {
|
|
2142
|
-
const parsedOutput = {
|
|
2143
|
-
...output,
|
|
2144
|
-
body: await parseErrorBody(output.body, context),
|
|
2145
|
-
};
|
|
2146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2147
|
-
switch (errorCode) {
|
|
2148
|
-
case "BadRequestException":
|
|
2149
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2150
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2151
|
-
default:
|
|
2152
|
-
const parsedBody = parsedOutput.body;
|
|
2153
|
-
return throwDefaultError({
|
|
2154
|
-
output,
|
|
2155
|
-
parsedBody,
|
|
2156
|
-
errorCode,
|
|
2157
|
-
});
|
|
2158
|
-
}
|
|
2159
|
-
};
|
|
2160
1597
|
export const de_DisassociateRoleFromGroupCommand = async (output, context) => {
|
|
2161
1598
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2162
|
-
return
|
|
1599
|
+
return de_CommandError(output, context);
|
|
2163
1600
|
}
|
|
2164
1601
|
const contents = map({
|
|
2165
1602
|
$metadata: deserializeMetadata(output),
|
|
@@ -2171,31 +1608,9 @@ export const de_DisassociateRoleFromGroupCommand = async (output, context) => {
|
|
|
2171
1608
|
Object.assign(contents, doc);
|
|
2172
1609
|
return contents;
|
|
2173
1610
|
};
|
|
2174
|
-
const de_DisassociateRoleFromGroupCommandError = async (output, context) => {
|
|
2175
|
-
const parsedOutput = {
|
|
2176
|
-
...output,
|
|
2177
|
-
body: await parseErrorBody(output.body, context),
|
|
2178
|
-
};
|
|
2179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
|
-
switch (errorCode) {
|
|
2181
|
-
case "BadRequestException":
|
|
2182
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2183
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2184
|
-
case "InternalServerErrorException":
|
|
2185
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
2186
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2187
|
-
default:
|
|
2188
|
-
const parsedBody = parsedOutput.body;
|
|
2189
|
-
return throwDefaultError({
|
|
2190
|
-
output,
|
|
2191
|
-
parsedBody,
|
|
2192
|
-
errorCode,
|
|
2193
|
-
});
|
|
2194
|
-
}
|
|
2195
|
-
};
|
|
2196
1611
|
export const de_DisassociateServiceRoleFromAccountCommand = async (output, context) => {
|
|
2197
1612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2198
|
-
return
|
|
1613
|
+
return de_CommandError(output, context);
|
|
2199
1614
|
}
|
|
2200
1615
|
const contents = map({
|
|
2201
1616
|
$metadata: deserializeMetadata(output),
|
|
@@ -2207,28 +1622,9 @@ export const de_DisassociateServiceRoleFromAccountCommand = async (output, conte
|
|
|
2207
1622
|
Object.assign(contents, doc);
|
|
2208
1623
|
return contents;
|
|
2209
1624
|
};
|
|
2210
|
-
const de_DisassociateServiceRoleFromAccountCommandError = async (output, context) => {
|
|
2211
|
-
const parsedOutput = {
|
|
2212
|
-
...output,
|
|
2213
|
-
body: await parseErrorBody(output.body, context),
|
|
2214
|
-
};
|
|
2215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2216
|
-
switch (errorCode) {
|
|
2217
|
-
case "InternalServerErrorException":
|
|
2218
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
2219
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2220
|
-
default:
|
|
2221
|
-
const parsedBody = parsedOutput.body;
|
|
2222
|
-
return throwDefaultError({
|
|
2223
|
-
output,
|
|
2224
|
-
parsedBody,
|
|
2225
|
-
errorCode,
|
|
2226
|
-
});
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2229
1625
|
export const de_GetAssociatedRoleCommand = async (output, context) => {
|
|
2230
1626
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2231
|
-
return
|
|
1627
|
+
return de_CommandError(output, context);
|
|
2232
1628
|
}
|
|
2233
1629
|
const contents = map({
|
|
2234
1630
|
$metadata: deserializeMetadata(output),
|
|
@@ -2241,31 +1637,9 @@ export const de_GetAssociatedRoleCommand = async (output, context) => {
|
|
|
2241
1637
|
Object.assign(contents, doc);
|
|
2242
1638
|
return contents;
|
|
2243
1639
|
};
|
|
2244
|
-
const de_GetAssociatedRoleCommandError = async (output, context) => {
|
|
2245
|
-
const parsedOutput = {
|
|
2246
|
-
...output,
|
|
2247
|
-
body: await parseErrorBody(output.body, context),
|
|
2248
|
-
};
|
|
2249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
|
-
switch (errorCode) {
|
|
2251
|
-
case "BadRequestException":
|
|
2252
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2253
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "InternalServerErrorException":
|
|
2255
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
2256
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2257
|
-
default:
|
|
2258
|
-
const parsedBody = parsedOutput.body;
|
|
2259
|
-
return throwDefaultError({
|
|
2260
|
-
output,
|
|
2261
|
-
parsedBody,
|
|
2262
|
-
errorCode,
|
|
2263
|
-
});
|
|
2264
|
-
}
|
|
2265
|
-
};
|
|
2266
1640
|
export const de_GetBulkDeploymentStatusCommand = async (output, context) => {
|
|
2267
1641
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2268
|
-
return
|
|
1642
|
+
return de_CommandError(output, context);
|
|
2269
1643
|
}
|
|
2270
1644
|
const contents = map({
|
|
2271
1645
|
$metadata: deserializeMetadata(output),
|
|
@@ -2282,28 +1656,9 @@ export const de_GetBulkDeploymentStatusCommand = async (output, context) => {
|
|
|
2282
1656
|
Object.assign(contents, doc);
|
|
2283
1657
|
return contents;
|
|
2284
1658
|
};
|
|
2285
|
-
const de_GetBulkDeploymentStatusCommandError = async (output, context) => {
|
|
2286
|
-
const parsedOutput = {
|
|
2287
|
-
...output,
|
|
2288
|
-
body: await parseErrorBody(output.body, context),
|
|
2289
|
-
};
|
|
2290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
|
-
switch (errorCode) {
|
|
2292
|
-
case "BadRequestException":
|
|
2293
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2294
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2295
|
-
default:
|
|
2296
|
-
const parsedBody = parsedOutput.body;
|
|
2297
|
-
return throwDefaultError({
|
|
2298
|
-
output,
|
|
2299
|
-
parsedBody,
|
|
2300
|
-
errorCode,
|
|
2301
|
-
});
|
|
2302
|
-
}
|
|
2303
|
-
};
|
|
2304
1659
|
export const de_GetConnectivityInfoCommand = async (output, context) => {
|
|
2305
1660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2306
|
-
return
|
|
1661
|
+
return de_CommandError(output, context);
|
|
2307
1662
|
}
|
|
2308
1663
|
const contents = map({
|
|
2309
1664
|
$metadata: deserializeMetadata(output),
|
|
@@ -2316,31 +1671,9 @@ export const de_GetConnectivityInfoCommand = async (output, context) => {
|
|
|
2316
1671
|
Object.assign(contents, doc);
|
|
2317
1672
|
return contents;
|
|
2318
1673
|
};
|
|
2319
|
-
const de_GetConnectivityInfoCommandError = async (output, context) => {
|
|
2320
|
-
const parsedOutput = {
|
|
2321
|
-
...output,
|
|
2322
|
-
body: await parseErrorBody(output.body, context),
|
|
2323
|
-
};
|
|
2324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
|
-
switch (errorCode) {
|
|
2326
|
-
case "BadRequestException":
|
|
2327
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2328
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "InternalServerErrorException":
|
|
2330
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
2331
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2332
|
-
default:
|
|
2333
|
-
const parsedBody = parsedOutput.body;
|
|
2334
|
-
return throwDefaultError({
|
|
2335
|
-
output,
|
|
2336
|
-
parsedBody,
|
|
2337
|
-
errorCode,
|
|
2338
|
-
});
|
|
2339
|
-
}
|
|
2340
|
-
};
|
|
2341
1674
|
export const de_GetConnectorDefinitionCommand = async (output, context) => {
|
|
2342
1675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2343
|
-
return
|
|
1676
|
+
return de_CommandError(output, context);
|
|
2344
1677
|
}
|
|
2345
1678
|
const contents = map({
|
|
2346
1679
|
$metadata: deserializeMetadata(output),
|
|
@@ -2359,28 +1692,9 @@ export const de_GetConnectorDefinitionCommand = async (output, context) => {
|
|
|
2359
1692
|
Object.assign(contents, doc);
|
|
2360
1693
|
return contents;
|
|
2361
1694
|
};
|
|
2362
|
-
const de_GetConnectorDefinitionCommandError = async (output, context) => {
|
|
2363
|
-
const parsedOutput = {
|
|
2364
|
-
...output,
|
|
2365
|
-
body: await parseErrorBody(output.body, context),
|
|
2366
|
-
};
|
|
2367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2368
|
-
switch (errorCode) {
|
|
2369
|
-
case "BadRequestException":
|
|
2370
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2371
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2372
|
-
default:
|
|
2373
|
-
const parsedBody = parsedOutput.body;
|
|
2374
|
-
return throwDefaultError({
|
|
2375
|
-
output,
|
|
2376
|
-
parsedBody,
|
|
2377
|
-
errorCode,
|
|
2378
|
-
});
|
|
2379
|
-
}
|
|
2380
|
-
};
|
|
2381
1695
|
export const de_GetConnectorDefinitionVersionCommand = async (output, context) => {
|
|
2382
1696
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2383
|
-
return
|
|
1697
|
+
return de_CommandError(output, context);
|
|
2384
1698
|
}
|
|
2385
1699
|
const contents = map({
|
|
2386
1700
|
$metadata: deserializeMetadata(output),
|
|
@@ -2397,28 +1711,9 @@ export const de_GetConnectorDefinitionVersionCommand = async (output, context) =
|
|
|
2397
1711
|
Object.assign(contents, doc);
|
|
2398
1712
|
return contents;
|
|
2399
1713
|
};
|
|
2400
|
-
const de_GetConnectorDefinitionVersionCommandError = async (output, context) => {
|
|
2401
|
-
const parsedOutput = {
|
|
2402
|
-
...output,
|
|
2403
|
-
body: await parseErrorBody(output.body, context),
|
|
2404
|
-
};
|
|
2405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2406
|
-
switch (errorCode) {
|
|
2407
|
-
case "BadRequestException":
|
|
2408
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2409
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2410
|
-
default:
|
|
2411
|
-
const parsedBody = parsedOutput.body;
|
|
2412
|
-
return throwDefaultError({
|
|
2413
|
-
output,
|
|
2414
|
-
parsedBody,
|
|
2415
|
-
errorCode,
|
|
2416
|
-
});
|
|
2417
|
-
}
|
|
2418
|
-
};
|
|
2419
1714
|
export const de_GetCoreDefinitionCommand = async (output, context) => {
|
|
2420
1715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2421
|
-
return
|
|
1716
|
+
return de_CommandError(output, context);
|
|
2422
1717
|
}
|
|
2423
1718
|
const contents = map({
|
|
2424
1719
|
$metadata: deserializeMetadata(output),
|
|
@@ -2437,28 +1732,9 @@ export const de_GetCoreDefinitionCommand = async (output, context) => {
|
|
|
2437
1732
|
Object.assign(contents, doc);
|
|
2438
1733
|
return contents;
|
|
2439
1734
|
};
|
|
2440
|
-
const de_GetCoreDefinitionCommandError = async (output, context) => {
|
|
2441
|
-
const parsedOutput = {
|
|
2442
|
-
...output,
|
|
2443
|
-
body: await parseErrorBody(output.body, context),
|
|
2444
|
-
};
|
|
2445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2446
|
-
switch (errorCode) {
|
|
2447
|
-
case "BadRequestException":
|
|
2448
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2449
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2450
|
-
default:
|
|
2451
|
-
const parsedBody = parsedOutput.body;
|
|
2452
|
-
return throwDefaultError({
|
|
2453
|
-
output,
|
|
2454
|
-
parsedBody,
|
|
2455
|
-
errorCode,
|
|
2456
|
-
});
|
|
2457
|
-
}
|
|
2458
|
-
};
|
|
2459
1735
|
export const de_GetCoreDefinitionVersionCommand = async (output, context) => {
|
|
2460
1736
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2461
|
-
return
|
|
1737
|
+
return de_CommandError(output, context);
|
|
2462
1738
|
}
|
|
2463
1739
|
const contents = map({
|
|
2464
1740
|
$metadata: deserializeMetadata(output),
|
|
@@ -2475,28 +1751,9 @@ export const de_GetCoreDefinitionVersionCommand = async (output, context) => {
|
|
|
2475
1751
|
Object.assign(contents, doc);
|
|
2476
1752
|
return contents;
|
|
2477
1753
|
};
|
|
2478
|
-
const de_GetCoreDefinitionVersionCommandError = async (output, context) => {
|
|
2479
|
-
const parsedOutput = {
|
|
2480
|
-
...output,
|
|
2481
|
-
body: await parseErrorBody(output.body, context),
|
|
2482
|
-
};
|
|
2483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2484
|
-
switch (errorCode) {
|
|
2485
|
-
case "BadRequestException":
|
|
2486
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2487
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2488
|
-
default:
|
|
2489
|
-
const parsedBody = parsedOutput.body;
|
|
2490
|
-
return throwDefaultError({
|
|
2491
|
-
output,
|
|
2492
|
-
parsedBody,
|
|
2493
|
-
errorCode,
|
|
2494
|
-
});
|
|
2495
|
-
}
|
|
2496
|
-
};
|
|
2497
1754
|
export const de_GetDeploymentStatusCommand = async (output, context) => {
|
|
2498
1755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2499
|
-
return
|
|
1756
|
+
return de_CommandError(output, context);
|
|
2500
1757
|
}
|
|
2501
1758
|
const contents = map({
|
|
2502
1759
|
$metadata: deserializeMetadata(output),
|
|
@@ -2512,28 +1769,9 @@ export const de_GetDeploymentStatusCommand = async (output, context) => {
|
|
|
2512
1769
|
Object.assign(contents, doc);
|
|
2513
1770
|
return contents;
|
|
2514
1771
|
};
|
|
2515
|
-
const de_GetDeploymentStatusCommandError = async (output, context) => {
|
|
2516
|
-
const parsedOutput = {
|
|
2517
|
-
...output,
|
|
2518
|
-
body: await parseErrorBody(output.body, context),
|
|
2519
|
-
};
|
|
2520
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2521
|
-
switch (errorCode) {
|
|
2522
|
-
case "BadRequestException":
|
|
2523
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2524
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2525
|
-
default:
|
|
2526
|
-
const parsedBody = parsedOutput.body;
|
|
2527
|
-
return throwDefaultError({
|
|
2528
|
-
output,
|
|
2529
|
-
parsedBody,
|
|
2530
|
-
errorCode,
|
|
2531
|
-
});
|
|
2532
|
-
}
|
|
2533
|
-
};
|
|
2534
1772
|
export const de_GetDeviceDefinitionCommand = async (output, context) => {
|
|
2535
1773
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2536
|
-
return
|
|
1774
|
+
return de_CommandError(output, context);
|
|
2537
1775
|
}
|
|
2538
1776
|
const contents = map({
|
|
2539
1777
|
$metadata: deserializeMetadata(output),
|
|
@@ -2552,28 +1790,9 @@ export const de_GetDeviceDefinitionCommand = async (output, context) => {
|
|
|
2552
1790
|
Object.assign(contents, doc);
|
|
2553
1791
|
return contents;
|
|
2554
1792
|
};
|
|
2555
|
-
const de_GetDeviceDefinitionCommandError = async (output, context) => {
|
|
2556
|
-
const parsedOutput = {
|
|
2557
|
-
...output,
|
|
2558
|
-
body: await parseErrorBody(output.body, context),
|
|
2559
|
-
};
|
|
2560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2561
|
-
switch (errorCode) {
|
|
2562
|
-
case "BadRequestException":
|
|
2563
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2564
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2565
|
-
default:
|
|
2566
|
-
const parsedBody = parsedOutput.body;
|
|
2567
|
-
return throwDefaultError({
|
|
2568
|
-
output,
|
|
2569
|
-
parsedBody,
|
|
2570
|
-
errorCode,
|
|
2571
|
-
});
|
|
2572
|
-
}
|
|
2573
|
-
};
|
|
2574
1793
|
export const de_GetDeviceDefinitionVersionCommand = async (output, context) => {
|
|
2575
1794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2576
|
-
return
|
|
1795
|
+
return de_CommandError(output, context);
|
|
2577
1796
|
}
|
|
2578
1797
|
const contents = map({
|
|
2579
1798
|
$metadata: deserializeMetadata(output),
|
|
@@ -2590,28 +1809,9 @@ export const de_GetDeviceDefinitionVersionCommand = async (output, context) => {
|
|
|
2590
1809
|
Object.assign(contents, doc);
|
|
2591
1810
|
return contents;
|
|
2592
1811
|
};
|
|
2593
|
-
const de_GetDeviceDefinitionVersionCommandError = async (output, context) => {
|
|
2594
|
-
const parsedOutput = {
|
|
2595
|
-
...output,
|
|
2596
|
-
body: await parseErrorBody(output.body, context),
|
|
2597
|
-
};
|
|
2598
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2599
|
-
switch (errorCode) {
|
|
2600
|
-
case "BadRequestException":
|
|
2601
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2602
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2603
|
-
default:
|
|
2604
|
-
const parsedBody = parsedOutput.body;
|
|
2605
|
-
return throwDefaultError({
|
|
2606
|
-
output,
|
|
2607
|
-
parsedBody,
|
|
2608
|
-
errorCode,
|
|
2609
|
-
});
|
|
2610
|
-
}
|
|
2611
|
-
};
|
|
2612
1812
|
export const de_GetFunctionDefinitionCommand = async (output, context) => {
|
|
2613
1813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2614
|
-
return
|
|
1814
|
+
return de_CommandError(output, context);
|
|
2615
1815
|
}
|
|
2616
1816
|
const contents = map({
|
|
2617
1817
|
$metadata: deserializeMetadata(output),
|
|
@@ -2630,28 +1830,9 @@ export const de_GetFunctionDefinitionCommand = async (output, context) => {
|
|
|
2630
1830
|
Object.assign(contents, doc);
|
|
2631
1831
|
return contents;
|
|
2632
1832
|
};
|
|
2633
|
-
const de_GetFunctionDefinitionCommandError = async (output, context) => {
|
|
2634
|
-
const parsedOutput = {
|
|
2635
|
-
...output,
|
|
2636
|
-
body: await parseErrorBody(output.body, context),
|
|
2637
|
-
};
|
|
2638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2639
|
-
switch (errorCode) {
|
|
2640
|
-
case "BadRequestException":
|
|
2641
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2642
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2643
|
-
default:
|
|
2644
|
-
const parsedBody = parsedOutput.body;
|
|
2645
|
-
return throwDefaultError({
|
|
2646
|
-
output,
|
|
2647
|
-
parsedBody,
|
|
2648
|
-
errorCode,
|
|
2649
|
-
});
|
|
2650
|
-
}
|
|
2651
|
-
};
|
|
2652
1833
|
export const de_GetFunctionDefinitionVersionCommand = async (output, context) => {
|
|
2653
1834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2654
|
-
return
|
|
1835
|
+
return de_CommandError(output, context);
|
|
2655
1836
|
}
|
|
2656
1837
|
const contents = map({
|
|
2657
1838
|
$metadata: deserializeMetadata(output),
|
|
@@ -2668,28 +1849,9 @@ export const de_GetFunctionDefinitionVersionCommand = async (output, context) =>
|
|
|
2668
1849
|
Object.assign(contents, doc);
|
|
2669
1850
|
return contents;
|
|
2670
1851
|
};
|
|
2671
|
-
const de_GetFunctionDefinitionVersionCommandError = async (output, context) => {
|
|
2672
|
-
const parsedOutput = {
|
|
2673
|
-
...output,
|
|
2674
|
-
body: await parseErrorBody(output.body, context),
|
|
2675
|
-
};
|
|
2676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2677
|
-
switch (errorCode) {
|
|
2678
|
-
case "BadRequestException":
|
|
2679
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2680
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2681
|
-
default:
|
|
2682
|
-
const parsedBody = parsedOutput.body;
|
|
2683
|
-
return throwDefaultError({
|
|
2684
|
-
output,
|
|
2685
|
-
parsedBody,
|
|
2686
|
-
errorCode,
|
|
2687
|
-
});
|
|
2688
|
-
}
|
|
2689
|
-
};
|
|
2690
1852
|
export const de_GetGroupCommand = async (output, context) => {
|
|
2691
1853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2692
|
-
return
|
|
1854
|
+
return de_CommandError(output, context);
|
|
2693
1855
|
}
|
|
2694
1856
|
const contents = map({
|
|
2695
1857
|
$metadata: deserializeMetadata(output),
|
|
@@ -2708,28 +1870,9 @@ export const de_GetGroupCommand = async (output, context) => {
|
|
|
2708
1870
|
Object.assign(contents, doc);
|
|
2709
1871
|
return contents;
|
|
2710
1872
|
};
|
|
2711
|
-
const de_GetGroupCommandError = async (output, context) => {
|
|
2712
|
-
const parsedOutput = {
|
|
2713
|
-
...output,
|
|
2714
|
-
body: await parseErrorBody(output.body, context),
|
|
2715
|
-
};
|
|
2716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
-
switch (errorCode) {
|
|
2718
|
-
case "BadRequestException":
|
|
2719
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2720
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2721
|
-
default:
|
|
2722
|
-
const parsedBody = parsedOutput.body;
|
|
2723
|
-
return throwDefaultError({
|
|
2724
|
-
output,
|
|
2725
|
-
parsedBody,
|
|
2726
|
-
errorCode,
|
|
2727
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
};
|
|
2730
1873
|
export const de_GetGroupCertificateAuthorityCommand = async (output, context) => {
|
|
2731
1874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2732
|
-
return
|
|
1875
|
+
return de_CommandError(output, context);
|
|
2733
1876
|
}
|
|
2734
1877
|
const contents = map({
|
|
2735
1878
|
$metadata: deserializeMetadata(output),
|
|
@@ -2743,31 +1886,9 @@ export const de_GetGroupCertificateAuthorityCommand = async (output, context) =>
|
|
|
2743
1886
|
Object.assign(contents, doc);
|
|
2744
1887
|
return contents;
|
|
2745
1888
|
};
|
|
2746
|
-
const de_GetGroupCertificateAuthorityCommandError = async (output, context) => {
|
|
2747
|
-
const parsedOutput = {
|
|
2748
|
-
...output,
|
|
2749
|
-
body: await parseErrorBody(output.body, context),
|
|
2750
|
-
};
|
|
2751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2752
|
-
switch (errorCode) {
|
|
2753
|
-
case "BadRequestException":
|
|
2754
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2755
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "InternalServerErrorException":
|
|
2757
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
2758
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2759
|
-
default:
|
|
2760
|
-
const parsedBody = parsedOutput.body;
|
|
2761
|
-
return throwDefaultError({
|
|
2762
|
-
output,
|
|
2763
|
-
parsedBody,
|
|
2764
|
-
errorCode,
|
|
2765
|
-
});
|
|
2766
|
-
}
|
|
2767
|
-
};
|
|
2768
1889
|
export const de_GetGroupCertificateConfigurationCommand = async (output, context) => {
|
|
2769
1890
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2770
|
-
return
|
|
1891
|
+
return de_CommandError(output, context);
|
|
2771
1892
|
}
|
|
2772
1893
|
const contents = map({
|
|
2773
1894
|
$metadata: deserializeMetadata(output),
|
|
@@ -2781,31 +1902,9 @@ export const de_GetGroupCertificateConfigurationCommand = async (output, context
|
|
|
2781
1902
|
Object.assign(contents, doc);
|
|
2782
1903
|
return contents;
|
|
2783
1904
|
};
|
|
2784
|
-
const de_GetGroupCertificateConfigurationCommandError = async (output, context) => {
|
|
2785
|
-
const parsedOutput = {
|
|
2786
|
-
...output,
|
|
2787
|
-
body: await parseErrorBody(output.body, context),
|
|
2788
|
-
};
|
|
2789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2790
|
-
switch (errorCode) {
|
|
2791
|
-
case "BadRequestException":
|
|
2792
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2793
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2794
|
-
case "InternalServerErrorException":
|
|
2795
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
2796
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
2797
|
-
default:
|
|
2798
|
-
const parsedBody = parsedOutput.body;
|
|
2799
|
-
return throwDefaultError({
|
|
2800
|
-
output,
|
|
2801
|
-
parsedBody,
|
|
2802
|
-
errorCode,
|
|
2803
|
-
});
|
|
2804
|
-
}
|
|
2805
|
-
};
|
|
2806
1905
|
export const de_GetGroupVersionCommand = async (output, context) => {
|
|
2807
1906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2808
|
-
return
|
|
1907
|
+
return de_CommandError(output, context);
|
|
2809
1908
|
}
|
|
2810
1909
|
const contents = map({
|
|
2811
1910
|
$metadata: deserializeMetadata(output),
|
|
@@ -2821,28 +1920,9 @@ export const de_GetGroupVersionCommand = async (output, context) => {
|
|
|
2821
1920
|
Object.assign(contents, doc);
|
|
2822
1921
|
return contents;
|
|
2823
1922
|
};
|
|
2824
|
-
const de_GetGroupVersionCommandError = async (output, context) => {
|
|
2825
|
-
const parsedOutput = {
|
|
2826
|
-
...output,
|
|
2827
|
-
body: await parseErrorBody(output.body, context),
|
|
2828
|
-
};
|
|
2829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2830
|
-
switch (errorCode) {
|
|
2831
|
-
case "BadRequestException":
|
|
2832
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2833
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2834
|
-
default:
|
|
2835
|
-
const parsedBody = parsedOutput.body;
|
|
2836
|
-
return throwDefaultError({
|
|
2837
|
-
output,
|
|
2838
|
-
parsedBody,
|
|
2839
|
-
errorCode,
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
};
|
|
2843
1923
|
export const de_GetLoggerDefinitionCommand = async (output, context) => {
|
|
2844
1924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2845
|
-
return
|
|
1925
|
+
return de_CommandError(output, context);
|
|
2846
1926
|
}
|
|
2847
1927
|
const contents = map({
|
|
2848
1928
|
$metadata: deserializeMetadata(output),
|
|
@@ -2861,28 +1941,9 @@ export const de_GetLoggerDefinitionCommand = async (output, context) => {
|
|
|
2861
1941
|
Object.assign(contents, doc);
|
|
2862
1942
|
return contents;
|
|
2863
1943
|
};
|
|
2864
|
-
const de_GetLoggerDefinitionCommandError = async (output, context) => {
|
|
2865
|
-
const parsedOutput = {
|
|
2866
|
-
...output,
|
|
2867
|
-
body: await parseErrorBody(output.body, context),
|
|
2868
|
-
};
|
|
2869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2870
|
-
switch (errorCode) {
|
|
2871
|
-
case "BadRequestException":
|
|
2872
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2873
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2874
|
-
default:
|
|
2875
|
-
const parsedBody = parsedOutput.body;
|
|
2876
|
-
return throwDefaultError({
|
|
2877
|
-
output,
|
|
2878
|
-
parsedBody,
|
|
2879
|
-
errorCode,
|
|
2880
|
-
});
|
|
2881
|
-
}
|
|
2882
|
-
};
|
|
2883
1944
|
export const de_GetLoggerDefinitionVersionCommand = async (output, context) => {
|
|
2884
1945
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2885
|
-
return
|
|
1946
|
+
return de_CommandError(output, context);
|
|
2886
1947
|
}
|
|
2887
1948
|
const contents = map({
|
|
2888
1949
|
$metadata: deserializeMetadata(output),
|
|
@@ -2898,28 +1959,9 @@ export const de_GetLoggerDefinitionVersionCommand = async (output, context) => {
|
|
|
2898
1959
|
Object.assign(contents, doc);
|
|
2899
1960
|
return contents;
|
|
2900
1961
|
};
|
|
2901
|
-
const de_GetLoggerDefinitionVersionCommandError = async (output, context) => {
|
|
2902
|
-
const parsedOutput = {
|
|
2903
|
-
...output,
|
|
2904
|
-
body: await parseErrorBody(output.body, context),
|
|
2905
|
-
};
|
|
2906
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2907
|
-
switch (errorCode) {
|
|
2908
|
-
case "BadRequestException":
|
|
2909
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2910
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2911
|
-
default:
|
|
2912
|
-
const parsedBody = parsedOutput.body;
|
|
2913
|
-
return throwDefaultError({
|
|
2914
|
-
output,
|
|
2915
|
-
parsedBody,
|
|
2916
|
-
errorCode,
|
|
2917
|
-
});
|
|
2918
|
-
}
|
|
2919
|
-
};
|
|
2920
1962
|
export const de_GetResourceDefinitionCommand = async (output, context) => {
|
|
2921
1963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2922
|
-
return
|
|
1964
|
+
return de_CommandError(output, context);
|
|
2923
1965
|
}
|
|
2924
1966
|
const contents = map({
|
|
2925
1967
|
$metadata: deserializeMetadata(output),
|
|
@@ -2938,28 +1980,9 @@ export const de_GetResourceDefinitionCommand = async (output, context) => {
|
|
|
2938
1980
|
Object.assign(contents, doc);
|
|
2939
1981
|
return contents;
|
|
2940
1982
|
};
|
|
2941
|
-
const de_GetResourceDefinitionCommandError = async (output, context) => {
|
|
2942
|
-
const parsedOutput = {
|
|
2943
|
-
...output,
|
|
2944
|
-
body: await parseErrorBody(output.body, context),
|
|
2945
|
-
};
|
|
2946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2947
|
-
switch (errorCode) {
|
|
2948
|
-
case "BadRequestException":
|
|
2949
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2950
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2951
|
-
default:
|
|
2952
|
-
const parsedBody = parsedOutput.body;
|
|
2953
|
-
return throwDefaultError({
|
|
2954
|
-
output,
|
|
2955
|
-
parsedBody,
|
|
2956
|
-
errorCode,
|
|
2957
|
-
});
|
|
2958
|
-
}
|
|
2959
|
-
};
|
|
2960
1983
|
export const de_GetResourceDefinitionVersionCommand = async (output, context) => {
|
|
2961
1984
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2962
|
-
return
|
|
1985
|
+
return de_CommandError(output, context);
|
|
2963
1986
|
}
|
|
2964
1987
|
const contents = map({
|
|
2965
1988
|
$metadata: deserializeMetadata(output),
|
|
@@ -2975,28 +1998,9 @@ export const de_GetResourceDefinitionVersionCommand = async (output, context) =>
|
|
|
2975
1998
|
Object.assign(contents, doc);
|
|
2976
1999
|
return contents;
|
|
2977
2000
|
};
|
|
2978
|
-
const de_GetResourceDefinitionVersionCommandError = async (output, context) => {
|
|
2979
|
-
const parsedOutput = {
|
|
2980
|
-
...output,
|
|
2981
|
-
body: await parseErrorBody(output.body, context),
|
|
2982
|
-
};
|
|
2983
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2984
|
-
switch (errorCode) {
|
|
2985
|
-
case "BadRequestException":
|
|
2986
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
2987
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2988
|
-
default:
|
|
2989
|
-
const parsedBody = parsedOutput.body;
|
|
2990
|
-
return throwDefaultError({
|
|
2991
|
-
output,
|
|
2992
|
-
parsedBody,
|
|
2993
|
-
errorCode,
|
|
2994
|
-
});
|
|
2995
|
-
}
|
|
2996
|
-
};
|
|
2997
2001
|
export const de_GetServiceRoleForAccountCommand = async (output, context) => {
|
|
2998
2002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2999
|
-
return
|
|
2003
|
+
return de_CommandError(output, context);
|
|
3000
2004
|
}
|
|
3001
2005
|
const contents = map({
|
|
3002
2006
|
$metadata: deserializeMetadata(output),
|
|
@@ -3009,28 +2013,9 @@ export const de_GetServiceRoleForAccountCommand = async (output, context) => {
|
|
|
3009
2013
|
Object.assign(contents, doc);
|
|
3010
2014
|
return contents;
|
|
3011
2015
|
};
|
|
3012
|
-
const de_GetServiceRoleForAccountCommandError = async (output, context) => {
|
|
3013
|
-
const parsedOutput = {
|
|
3014
|
-
...output,
|
|
3015
|
-
body: await parseErrorBody(output.body, context),
|
|
3016
|
-
};
|
|
3017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3018
|
-
switch (errorCode) {
|
|
3019
|
-
case "InternalServerErrorException":
|
|
3020
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
3021
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3022
|
-
default:
|
|
3023
|
-
const parsedBody = parsedOutput.body;
|
|
3024
|
-
return throwDefaultError({
|
|
3025
|
-
output,
|
|
3026
|
-
parsedBody,
|
|
3027
|
-
errorCode,
|
|
3028
|
-
});
|
|
3029
|
-
}
|
|
3030
|
-
};
|
|
3031
2016
|
export const de_GetSubscriptionDefinitionCommand = async (output, context) => {
|
|
3032
2017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3033
|
-
return
|
|
2018
|
+
return de_CommandError(output, context);
|
|
3034
2019
|
}
|
|
3035
2020
|
const contents = map({
|
|
3036
2021
|
$metadata: deserializeMetadata(output),
|
|
@@ -3049,28 +2034,9 @@ export const de_GetSubscriptionDefinitionCommand = async (output, context) => {
|
|
|
3049
2034
|
Object.assign(contents, doc);
|
|
3050
2035
|
return contents;
|
|
3051
2036
|
};
|
|
3052
|
-
const de_GetSubscriptionDefinitionCommandError = async (output, context) => {
|
|
3053
|
-
const parsedOutput = {
|
|
3054
|
-
...output,
|
|
3055
|
-
body: await parseErrorBody(output.body, context),
|
|
3056
|
-
};
|
|
3057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3058
|
-
switch (errorCode) {
|
|
3059
|
-
case "BadRequestException":
|
|
3060
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3061
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3062
|
-
default:
|
|
3063
|
-
const parsedBody = parsedOutput.body;
|
|
3064
|
-
return throwDefaultError({
|
|
3065
|
-
output,
|
|
3066
|
-
parsedBody,
|
|
3067
|
-
errorCode,
|
|
3068
|
-
});
|
|
3069
|
-
}
|
|
3070
|
-
};
|
|
3071
2037
|
export const de_GetSubscriptionDefinitionVersionCommand = async (output, context) => {
|
|
3072
2038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3073
|
-
return
|
|
2039
|
+
return de_CommandError(output, context);
|
|
3074
2040
|
}
|
|
3075
2041
|
const contents = map({
|
|
3076
2042
|
$metadata: deserializeMetadata(output),
|
|
@@ -3087,28 +2053,9 @@ export const de_GetSubscriptionDefinitionVersionCommand = async (output, context
|
|
|
3087
2053
|
Object.assign(contents, doc);
|
|
3088
2054
|
return contents;
|
|
3089
2055
|
};
|
|
3090
|
-
const de_GetSubscriptionDefinitionVersionCommandError = async (output, context) => {
|
|
3091
|
-
const parsedOutput = {
|
|
3092
|
-
...output,
|
|
3093
|
-
body: await parseErrorBody(output.body, context),
|
|
3094
|
-
};
|
|
3095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3096
|
-
switch (errorCode) {
|
|
3097
|
-
case "BadRequestException":
|
|
3098
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3099
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3100
|
-
default:
|
|
3101
|
-
const parsedBody = parsedOutput.body;
|
|
3102
|
-
return throwDefaultError({
|
|
3103
|
-
output,
|
|
3104
|
-
parsedBody,
|
|
3105
|
-
errorCode,
|
|
3106
|
-
});
|
|
3107
|
-
}
|
|
3108
|
-
};
|
|
3109
2056
|
export const de_GetThingRuntimeConfigurationCommand = async (output, context) => {
|
|
3110
2057
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3111
|
-
return
|
|
2058
|
+
return de_CommandError(output, context);
|
|
3112
2059
|
}
|
|
3113
2060
|
const contents = map({
|
|
3114
2061
|
$metadata: deserializeMetadata(output),
|
|
@@ -3120,31 +2067,9 @@ export const de_GetThingRuntimeConfigurationCommand = async (output, context) =>
|
|
|
3120
2067
|
Object.assign(contents, doc);
|
|
3121
2068
|
return contents;
|
|
3122
2069
|
};
|
|
3123
|
-
const de_GetThingRuntimeConfigurationCommandError = async (output, context) => {
|
|
3124
|
-
const parsedOutput = {
|
|
3125
|
-
...output,
|
|
3126
|
-
body: await parseErrorBody(output.body, context),
|
|
3127
|
-
};
|
|
3128
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3129
|
-
switch (errorCode) {
|
|
3130
|
-
case "BadRequestException":
|
|
3131
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3132
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3133
|
-
case "InternalServerErrorException":
|
|
3134
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
3135
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3136
|
-
default:
|
|
3137
|
-
const parsedBody = parsedOutput.body;
|
|
3138
|
-
return throwDefaultError({
|
|
3139
|
-
output,
|
|
3140
|
-
parsedBody,
|
|
3141
|
-
errorCode,
|
|
3142
|
-
});
|
|
3143
|
-
}
|
|
3144
|
-
};
|
|
3145
2070
|
export const de_ListBulkDeploymentDetailedReportsCommand = async (output, context) => {
|
|
3146
2071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3147
|
-
return
|
|
2072
|
+
return de_CommandError(output, context);
|
|
3148
2073
|
}
|
|
3149
2074
|
const contents = map({
|
|
3150
2075
|
$metadata: deserializeMetadata(output),
|
|
@@ -3157,28 +2082,9 @@ export const de_ListBulkDeploymentDetailedReportsCommand = async (output, contex
|
|
|
3157
2082
|
Object.assign(contents, doc);
|
|
3158
2083
|
return contents;
|
|
3159
2084
|
};
|
|
3160
|
-
const de_ListBulkDeploymentDetailedReportsCommandError = async (output, context) => {
|
|
3161
|
-
const parsedOutput = {
|
|
3162
|
-
...output,
|
|
3163
|
-
body: await parseErrorBody(output.body, context),
|
|
3164
|
-
};
|
|
3165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3166
|
-
switch (errorCode) {
|
|
3167
|
-
case "BadRequestException":
|
|
3168
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3169
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3170
|
-
default:
|
|
3171
|
-
const parsedBody = parsedOutput.body;
|
|
3172
|
-
return throwDefaultError({
|
|
3173
|
-
output,
|
|
3174
|
-
parsedBody,
|
|
3175
|
-
errorCode,
|
|
3176
|
-
});
|
|
3177
|
-
}
|
|
3178
|
-
};
|
|
3179
2085
|
export const de_ListBulkDeploymentsCommand = async (output, context) => {
|
|
3180
2086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3181
|
-
return
|
|
2087
|
+
return de_CommandError(output, context);
|
|
3182
2088
|
}
|
|
3183
2089
|
const contents = map({
|
|
3184
2090
|
$metadata: deserializeMetadata(output),
|
|
@@ -3191,28 +2097,9 @@ export const de_ListBulkDeploymentsCommand = async (output, context) => {
|
|
|
3191
2097
|
Object.assign(contents, doc);
|
|
3192
2098
|
return contents;
|
|
3193
2099
|
};
|
|
3194
|
-
const de_ListBulkDeploymentsCommandError = async (output, context) => {
|
|
3195
|
-
const parsedOutput = {
|
|
3196
|
-
...output,
|
|
3197
|
-
body: await parseErrorBody(output.body, context),
|
|
3198
|
-
};
|
|
3199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3200
|
-
switch (errorCode) {
|
|
3201
|
-
case "BadRequestException":
|
|
3202
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3203
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3204
|
-
default:
|
|
3205
|
-
const parsedBody = parsedOutput.body;
|
|
3206
|
-
return throwDefaultError({
|
|
3207
|
-
output,
|
|
3208
|
-
parsedBody,
|
|
3209
|
-
errorCode,
|
|
3210
|
-
});
|
|
3211
|
-
}
|
|
3212
|
-
};
|
|
3213
2100
|
export const de_ListConnectorDefinitionsCommand = async (output, context) => {
|
|
3214
2101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3215
|
-
return
|
|
2102
|
+
return de_CommandError(output, context);
|
|
3216
2103
|
}
|
|
3217
2104
|
const contents = map({
|
|
3218
2105
|
$metadata: deserializeMetadata(output),
|
|
@@ -3225,22 +2112,9 @@ export const de_ListConnectorDefinitionsCommand = async (output, context) => {
|
|
|
3225
2112
|
Object.assign(contents, doc);
|
|
3226
2113
|
return contents;
|
|
3227
2114
|
};
|
|
3228
|
-
const de_ListConnectorDefinitionsCommandError = async (output, context) => {
|
|
3229
|
-
const parsedOutput = {
|
|
3230
|
-
...output,
|
|
3231
|
-
body: await parseErrorBody(output.body, context),
|
|
3232
|
-
};
|
|
3233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3234
|
-
const parsedBody = parsedOutput.body;
|
|
3235
|
-
return throwDefaultError({
|
|
3236
|
-
output,
|
|
3237
|
-
parsedBody,
|
|
3238
|
-
errorCode,
|
|
3239
|
-
});
|
|
3240
|
-
};
|
|
3241
2115
|
export const de_ListConnectorDefinitionVersionsCommand = async (output, context) => {
|
|
3242
2116
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3243
|
-
return
|
|
2117
|
+
return de_CommandError(output, context);
|
|
3244
2118
|
}
|
|
3245
2119
|
const contents = map({
|
|
3246
2120
|
$metadata: deserializeMetadata(output),
|
|
@@ -3253,28 +2127,9 @@ export const de_ListConnectorDefinitionVersionsCommand = async (output, context)
|
|
|
3253
2127
|
Object.assign(contents, doc);
|
|
3254
2128
|
return contents;
|
|
3255
2129
|
};
|
|
3256
|
-
const de_ListConnectorDefinitionVersionsCommandError = async (output, context) => {
|
|
3257
|
-
const parsedOutput = {
|
|
3258
|
-
...output,
|
|
3259
|
-
body: await parseErrorBody(output.body, context),
|
|
3260
|
-
};
|
|
3261
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3262
|
-
switch (errorCode) {
|
|
3263
|
-
case "BadRequestException":
|
|
3264
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3265
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3266
|
-
default:
|
|
3267
|
-
const parsedBody = parsedOutput.body;
|
|
3268
|
-
return throwDefaultError({
|
|
3269
|
-
output,
|
|
3270
|
-
parsedBody,
|
|
3271
|
-
errorCode,
|
|
3272
|
-
});
|
|
3273
|
-
}
|
|
3274
|
-
};
|
|
3275
2130
|
export const de_ListCoreDefinitionsCommand = async (output, context) => {
|
|
3276
2131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3277
|
-
return
|
|
2132
|
+
return de_CommandError(output, context);
|
|
3278
2133
|
}
|
|
3279
2134
|
const contents = map({
|
|
3280
2135
|
$metadata: deserializeMetadata(output),
|
|
@@ -3287,22 +2142,9 @@ export const de_ListCoreDefinitionsCommand = async (output, context) => {
|
|
|
3287
2142
|
Object.assign(contents, doc);
|
|
3288
2143
|
return contents;
|
|
3289
2144
|
};
|
|
3290
|
-
const de_ListCoreDefinitionsCommandError = async (output, context) => {
|
|
3291
|
-
const parsedOutput = {
|
|
3292
|
-
...output,
|
|
3293
|
-
body: await parseErrorBody(output.body, context),
|
|
3294
|
-
};
|
|
3295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3296
|
-
const parsedBody = parsedOutput.body;
|
|
3297
|
-
return throwDefaultError({
|
|
3298
|
-
output,
|
|
3299
|
-
parsedBody,
|
|
3300
|
-
errorCode,
|
|
3301
|
-
});
|
|
3302
|
-
};
|
|
3303
2145
|
export const de_ListCoreDefinitionVersionsCommand = async (output, context) => {
|
|
3304
2146
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3305
|
-
return
|
|
2147
|
+
return de_CommandError(output, context);
|
|
3306
2148
|
}
|
|
3307
2149
|
const contents = map({
|
|
3308
2150
|
$metadata: deserializeMetadata(output),
|
|
@@ -3315,28 +2157,9 @@ export const de_ListCoreDefinitionVersionsCommand = async (output, context) => {
|
|
|
3315
2157
|
Object.assign(contents, doc);
|
|
3316
2158
|
return contents;
|
|
3317
2159
|
};
|
|
3318
|
-
const de_ListCoreDefinitionVersionsCommandError = async (output, context) => {
|
|
3319
|
-
const parsedOutput = {
|
|
3320
|
-
...output,
|
|
3321
|
-
body: await parseErrorBody(output.body, context),
|
|
3322
|
-
};
|
|
3323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3324
|
-
switch (errorCode) {
|
|
3325
|
-
case "BadRequestException":
|
|
3326
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3327
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3328
|
-
default:
|
|
3329
|
-
const parsedBody = parsedOutput.body;
|
|
3330
|
-
return throwDefaultError({
|
|
3331
|
-
output,
|
|
3332
|
-
parsedBody,
|
|
3333
|
-
errorCode,
|
|
3334
|
-
});
|
|
3335
|
-
}
|
|
3336
|
-
};
|
|
3337
2160
|
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
3338
2161
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3339
|
-
return
|
|
2162
|
+
return de_CommandError(output, context);
|
|
3340
2163
|
}
|
|
3341
2164
|
const contents = map({
|
|
3342
2165
|
$metadata: deserializeMetadata(output),
|
|
@@ -3349,28 +2172,9 @@ export const de_ListDeploymentsCommand = async (output, context) => {
|
|
|
3349
2172
|
Object.assign(contents, doc);
|
|
3350
2173
|
return contents;
|
|
3351
2174
|
};
|
|
3352
|
-
const de_ListDeploymentsCommandError = async (output, context) => {
|
|
3353
|
-
const parsedOutput = {
|
|
3354
|
-
...output,
|
|
3355
|
-
body: await parseErrorBody(output.body, context),
|
|
3356
|
-
};
|
|
3357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3358
|
-
switch (errorCode) {
|
|
3359
|
-
case "BadRequestException":
|
|
3360
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3361
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3362
|
-
default:
|
|
3363
|
-
const parsedBody = parsedOutput.body;
|
|
3364
|
-
return throwDefaultError({
|
|
3365
|
-
output,
|
|
3366
|
-
parsedBody,
|
|
3367
|
-
errorCode,
|
|
3368
|
-
});
|
|
3369
|
-
}
|
|
3370
|
-
};
|
|
3371
2175
|
export const de_ListDeviceDefinitionsCommand = async (output, context) => {
|
|
3372
2176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3373
|
-
return
|
|
2177
|
+
return de_CommandError(output, context);
|
|
3374
2178
|
}
|
|
3375
2179
|
const contents = map({
|
|
3376
2180
|
$metadata: deserializeMetadata(output),
|
|
@@ -3383,22 +2187,9 @@ export const de_ListDeviceDefinitionsCommand = async (output, context) => {
|
|
|
3383
2187
|
Object.assign(contents, doc);
|
|
3384
2188
|
return contents;
|
|
3385
2189
|
};
|
|
3386
|
-
const de_ListDeviceDefinitionsCommandError = async (output, context) => {
|
|
3387
|
-
const parsedOutput = {
|
|
3388
|
-
...output,
|
|
3389
|
-
body: await parseErrorBody(output.body, context),
|
|
3390
|
-
};
|
|
3391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3392
|
-
const parsedBody = parsedOutput.body;
|
|
3393
|
-
return throwDefaultError({
|
|
3394
|
-
output,
|
|
3395
|
-
parsedBody,
|
|
3396
|
-
errorCode,
|
|
3397
|
-
});
|
|
3398
|
-
};
|
|
3399
2190
|
export const de_ListDeviceDefinitionVersionsCommand = async (output, context) => {
|
|
3400
2191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3401
|
-
return
|
|
2192
|
+
return de_CommandError(output, context);
|
|
3402
2193
|
}
|
|
3403
2194
|
const contents = map({
|
|
3404
2195
|
$metadata: deserializeMetadata(output),
|
|
@@ -3411,28 +2202,9 @@ export const de_ListDeviceDefinitionVersionsCommand = async (output, context) =>
|
|
|
3411
2202
|
Object.assign(contents, doc);
|
|
3412
2203
|
return contents;
|
|
3413
2204
|
};
|
|
3414
|
-
const de_ListDeviceDefinitionVersionsCommandError = async (output, context) => {
|
|
3415
|
-
const parsedOutput = {
|
|
3416
|
-
...output,
|
|
3417
|
-
body: await parseErrorBody(output.body, context),
|
|
3418
|
-
};
|
|
3419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3420
|
-
switch (errorCode) {
|
|
3421
|
-
case "BadRequestException":
|
|
3422
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3423
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3424
|
-
default:
|
|
3425
|
-
const parsedBody = parsedOutput.body;
|
|
3426
|
-
return throwDefaultError({
|
|
3427
|
-
output,
|
|
3428
|
-
parsedBody,
|
|
3429
|
-
errorCode,
|
|
3430
|
-
});
|
|
3431
|
-
}
|
|
3432
|
-
};
|
|
3433
2205
|
export const de_ListFunctionDefinitionsCommand = async (output, context) => {
|
|
3434
2206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3435
|
-
return
|
|
2207
|
+
return de_CommandError(output, context);
|
|
3436
2208
|
}
|
|
3437
2209
|
const contents = map({
|
|
3438
2210
|
$metadata: deserializeMetadata(output),
|
|
@@ -3445,22 +2217,9 @@ export const de_ListFunctionDefinitionsCommand = async (output, context) => {
|
|
|
3445
2217
|
Object.assign(contents, doc);
|
|
3446
2218
|
return contents;
|
|
3447
2219
|
};
|
|
3448
|
-
const de_ListFunctionDefinitionsCommandError = async (output, context) => {
|
|
3449
|
-
const parsedOutput = {
|
|
3450
|
-
...output,
|
|
3451
|
-
body: await parseErrorBody(output.body, context),
|
|
3452
|
-
};
|
|
3453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3454
|
-
const parsedBody = parsedOutput.body;
|
|
3455
|
-
return throwDefaultError({
|
|
3456
|
-
output,
|
|
3457
|
-
parsedBody,
|
|
3458
|
-
errorCode,
|
|
3459
|
-
});
|
|
3460
|
-
};
|
|
3461
2220
|
export const de_ListFunctionDefinitionVersionsCommand = async (output, context) => {
|
|
3462
2221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3463
|
-
return
|
|
2222
|
+
return de_CommandError(output, context);
|
|
3464
2223
|
}
|
|
3465
2224
|
const contents = map({
|
|
3466
2225
|
$metadata: deserializeMetadata(output),
|
|
@@ -3473,28 +2232,9 @@ export const de_ListFunctionDefinitionVersionsCommand = async (output, context)
|
|
|
3473
2232
|
Object.assign(contents, doc);
|
|
3474
2233
|
return contents;
|
|
3475
2234
|
};
|
|
3476
|
-
const de_ListFunctionDefinitionVersionsCommandError = async (output, context) => {
|
|
3477
|
-
const parsedOutput = {
|
|
3478
|
-
...output,
|
|
3479
|
-
body: await parseErrorBody(output.body, context),
|
|
3480
|
-
};
|
|
3481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3482
|
-
switch (errorCode) {
|
|
3483
|
-
case "BadRequestException":
|
|
3484
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3485
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3486
|
-
default:
|
|
3487
|
-
const parsedBody = parsedOutput.body;
|
|
3488
|
-
return throwDefaultError({
|
|
3489
|
-
output,
|
|
3490
|
-
parsedBody,
|
|
3491
|
-
errorCode,
|
|
3492
|
-
});
|
|
3493
|
-
}
|
|
3494
|
-
};
|
|
3495
2235
|
export const de_ListGroupCertificateAuthoritiesCommand = async (output, context) => {
|
|
3496
2236
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3497
|
-
return
|
|
2237
|
+
return de_CommandError(output, context);
|
|
3498
2238
|
}
|
|
3499
2239
|
const contents = map({
|
|
3500
2240
|
$metadata: deserializeMetadata(output),
|
|
@@ -3506,31 +2246,9 @@ export const de_ListGroupCertificateAuthoritiesCommand = async (output, context)
|
|
|
3506
2246
|
Object.assign(contents, doc);
|
|
3507
2247
|
return contents;
|
|
3508
2248
|
};
|
|
3509
|
-
const de_ListGroupCertificateAuthoritiesCommandError = async (output, context) => {
|
|
3510
|
-
const parsedOutput = {
|
|
3511
|
-
...output,
|
|
3512
|
-
body: await parseErrorBody(output.body, context),
|
|
3513
|
-
};
|
|
3514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3515
|
-
switch (errorCode) {
|
|
3516
|
-
case "BadRequestException":
|
|
3517
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3518
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3519
|
-
case "InternalServerErrorException":
|
|
3520
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
3521
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3522
|
-
default:
|
|
3523
|
-
const parsedBody = parsedOutput.body;
|
|
3524
|
-
return throwDefaultError({
|
|
3525
|
-
output,
|
|
3526
|
-
parsedBody,
|
|
3527
|
-
errorCode,
|
|
3528
|
-
});
|
|
3529
|
-
}
|
|
3530
|
-
};
|
|
3531
2249
|
export const de_ListGroupsCommand = async (output, context) => {
|
|
3532
2250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3533
|
-
return
|
|
2251
|
+
return de_CommandError(output, context);
|
|
3534
2252
|
}
|
|
3535
2253
|
const contents = map({
|
|
3536
2254
|
$metadata: deserializeMetadata(output),
|
|
@@ -3543,22 +2261,9 @@ export const de_ListGroupsCommand = async (output, context) => {
|
|
|
3543
2261
|
Object.assign(contents, doc);
|
|
3544
2262
|
return contents;
|
|
3545
2263
|
};
|
|
3546
|
-
const de_ListGroupsCommandError = async (output, context) => {
|
|
3547
|
-
const parsedOutput = {
|
|
3548
|
-
...output,
|
|
3549
|
-
body: await parseErrorBody(output.body, context),
|
|
3550
|
-
};
|
|
3551
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3552
|
-
const parsedBody = parsedOutput.body;
|
|
3553
|
-
return throwDefaultError({
|
|
3554
|
-
output,
|
|
3555
|
-
parsedBody,
|
|
3556
|
-
errorCode,
|
|
3557
|
-
});
|
|
3558
|
-
};
|
|
3559
2264
|
export const de_ListGroupVersionsCommand = async (output, context) => {
|
|
3560
2265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3561
|
-
return
|
|
2266
|
+
return de_CommandError(output, context);
|
|
3562
2267
|
}
|
|
3563
2268
|
const contents = map({
|
|
3564
2269
|
$metadata: deserializeMetadata(output),
|
|
@@ -3571,28 +2276,9 @@ export const de_ListGroupVersionsCommand = async (output, context) => {
|
|
|
3571
2276
|
Object.assign(contents, doc);
|
|
3572
2277
|
return contents;
|
|
3573
2278
|
};
|
|
3574
|
-
const de_ListGroupVersionsCommandError = async (output, context) => {
|
|
3575
|
-
const parsedOutput = {
|
|
3576
|
-
...output,
|
|
3577
|
-
body: await parseErrorBody(output.body, context),
|
|
3578
|
-
};
|
|
3579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3580
|
-
switch (errorCode) {
|
|
3581
|
-
case "BadRequestException":
|
|
3582
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3583
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3584
|
-
default:
|
|
3585
|
-
const parsedBody = parsedOutput.body;
|
|
3586
|
-
return throwDefaultError({
|
|
3587
|
-
output,
|
|
3588
|
-
parsedBody,
|
|
3589
|
-
errorCode,
|
|
3590
|
-
});
|
|
3591
|
-
}
|
|
3592
|
-
};
|
|
3593
2279
|
export const de_ListLoggerDefinitionsCommand = async (output, context) => {
|
|
3594
2280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3595
|
-
return
|
|
2281
|
+
return de_CommandError(output, context);
|
|
3596
2282
|
}
|
|
3597
2283
|
const contents = map({
|
|
3598
2284
|
$metadata: deserializeMetadata(output),
|
|
@@ -3605,22 +2291,9 @@ export const de_ListLoggerDefinitionsCommand = async (output, context) => {
|
|
|
3605
2291
|
Object.assign(contents, doc);
|
|
3606
2292
|
return contents;
|
|
3607
2293
|
};
|
|
3608
|
-
const de_ListLoggerDefinitionsCommandError = async (output, context) => {
|
|
3609
|
-
const parsedOutput = {
|
|
3610
|
-
...output,
|
|
3611
|
-
body: await parseErrorBody(output.body, context),
|
|
3612
|
-
};
|
|
3613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3614
|
-
const parsedBody = parsedOutput.body;
|
|
3615
|
-
return throwDefaultError({
|
|
3616
|
-
output,
|
|
3617
|
-
parsedBody,
|
|
3618
|
-
errorCode,
|
|
3619
|
-
});
|
|
3620
|
-
};
|
|
3621
2294
|
export const de_ListLoggerDefinitionVersionsCommand = async (output, context) => {
|
|
3622
2295
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3623
|
-
return
|
|
2296
|
+
return de_CommandError(output, context);
|
|
3624
2297
|
}
|
|
3625
2298
|
const contents = map({
|
|
3626
2299
|
$metadata: deserializeMetadata(output),
|
|
@@ -3633,28 +2306,9 @@ export const de_ListLoggerDefinitionVersionsCommand = async (output, context) =>
|
|
|
3633
2306
|
Object.assign(contents, doc);
|
|
3634
2307
|
return contents;
|
|
3635
2308
|
};
|
|
3636
|
-
const de_ListLoggerDefinitionVersionsCommandError = async (output, context) => {
|
|
3637
|
-
const parsedOutput = {
|
|
3638
|
-
...output,
|
|
3639
|
-
body: await parseErrorBody(output.body, context),
|
|
3640
|
-
};
|
|
3641
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3642
|
-
switch (errorCode) {
|
|
3643
|
-
case "BadRequestException":
|
|
3644
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3645
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3646
|
-
default:
|
|
3647
|
-
const parsedBody = parsedOutput.body;
|
|
3648
|
-
return throwDefaultError({
|
|
3649
|
-
output,
|
|
3650
|
-
parsedBody,
|
|
3651
|
-
errorCode,
|
|
3652
|
-
});
|
|
3653
|
-
}
|
|
3654
|
-
};
|
|
3655
2309
|
export const de_ListResourceDefinitionsCommand = async (output, context) => {
|
|
3656
2310
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3657
|
-
return
|
|
2311
|
+
return de_CommandError(output, context);
|
|
3658
2312
|
}
|
|
3659
2313
|
const contents = map({
|
|
3660
2314
|
$metadata: deserializeMetadata(output),
|
|
@@ -3667,22 +2321,9 @@ export const de_ListResourceDefinitionsCommand = async (output, context) => {
|
|
|
3667
2321
|
Object.assign(contents, doc);
|
|
3668
2322
|
return contents;
|
|
3669
2323
|
};
|
|
3670
|
-
const de_ListResourceDefinitionsCommandError = async (output, context) => {
|
|
3671
|
-
const parsedOutput = {
|
|
3672
|
-
...output,
|
|
3673
|
-
body: await parseErrorBody(output.body, context),
|
|
3674
|
-
};
|
|
3675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3676
|
-
const parsedBody = parsedOutput.body;
|
|
3677
|
-
return throwDefaultError({
|
|
3678
|
-
output,
|
|
3679
|
-
parsedBody,
|
|
3680
|
-
errorCode,
|
|
3681
|
-
});
|
|
3682
|
-
};
|
|
3683
2324
|
export const de_ListResourceDefinitionVersionsCommand = async (output, context) => {
|
|
3684
2325
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3685
|
-
return
|
|
2326
|
+
return de_CommandError(output, context);
|
|
3686
2327
|
}
|
|
3687
2328
|
const contents = map({
|
|
3688
2329
|
$metadata: deserializeMetadata(output),
|
|
@@ -3695,28 +2336,9 @@ export const de_ListResourceDefinitionVersionsCommand = async (output, context)
|
|
|
3695
2336
|
Object.assign(contents, doc);
|
|
3696
2337
|
return contents;
|
|
3697
2338
|
};
|
|
3698
|
-
const de_ListResourceDefinitionVersionsCommandError = async (output, context) => {
|
|
3699
|
-
const parsedOutput = {
|
|
3700
|
-
...output,
|
|
3701
|
-
body: await parseErrorBody(output.body, context),
|
|
3702
|
-
};
|
|
3703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3704
|
-
switch (errorCode) {
|
|
3705
|
-
case "BadRequestException":
|
|
3706
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3707
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3708
|
-
default:
|
|
3709
|
-
const parsedBody = parsedOutput.body;
|
|
3710
|
-
return throwDefaultError({
|
|
3711
|
-
output,
|
|
3712
|
-
parsedBody,
|
|
3713
|
-
errorCode,
|
|
3714
|
-
});
|
|
3715
|
-
}
|
|
3716
|
-
};
|
|
3717
2339
|
export const de_ListSubscriptionDefinitionsCommand = async (output, context) => {
|
|
3718
2340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3719
|
-
return
|
|
2341
|
+
return de_CommandError(output, context);
|
|
3720
2342
|
}
|
|
3721
2343
|
const contents = map({
|
|
3722
2344
|
$metadata: deserializeMetadata(output),
|
|
@@ -3729,22 +2351,9 @@ export const de_ListSubscriptionDefinitionsCommand = async (output, context) =>
|
|
|
3729
2351
|
Object.assign(contents, doc);
|
|
3730
2352
|
return contents;
|
|
3731
2353
|
};
|
|
3732
|
-
const de_ListSubscriptionDefinitionsCommandError = async (output, context) => {
|
|
3733
|
-
const parsedOutput = {
|
|
3734
|
-
...output,
|
|
3735
|
-
body: await parseErrorBody(output.body, context),
|
|
3736
|
-
};
|
|
3737
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3738
|
-
const parsedBody = parsedOutput.body;
|
|
3739
|
-
return throwDefaultError({
|
|
3740
|
-
output,
|
|
3741
|
-
parsedBody,
|
|
3742
|
-
errorCode,
|
|
3743
|
-
});
|
|
3744
|
-
};
|
|
3745
2354
|
export const de_ListSubscriptionDefinitionVersionsCommand = async (output, context) => {
|
|
3746
2355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3747
|
-
return
|
|
2356
|
+
return de_CommandError(output, context);
|
|
3748
2357
|
}
|
|
3749
2358
|
const contents = map({
|
|
3750
2359
|
$metadata: deserializeMetadata(output),
|
|
@@ -3757,28 +2366,9 @@ export const de_ListSubscriptionDefinitionVersionsCommand = async (output, conte
|
|
|
3757
2366
|
Object.assign(contents, doc);
|
|
3758
2367
|
return contents;
|
|
3759
2368
|
};
|
|
3760
|
-
const de_ListSubscriptionDefinitionVersionsCommandError = async (output, context) => {
|
|
3761
|
-
const parsedOutput = {
|
|
3762
|
-
...output,
|
|
3763
|
-
body: await parseErrorBody(output.body, context),
|
|
3764
|
-
};
|
|
3765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3766
|
-
switch (errorCode) {
|
|
3767
|
-
case "BadRequestException":
|
|
3768
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3769
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3770
|
-
default:
|
|
3771
|
-
const parsedBody = parsedOutput.body;
|
|
3772
|
-
return throwDefaultError({
|
|
3773
|
-
output,
|
|
3774
|
-
parsedBody,
|
|
3775
|
-
errorCode,
|
|
3776
|
-
});
|
|
3777
|
-
}
|
|
3778
|
-
};
|
|
3779
2369
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3780
2370
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3781
|
-
return
|
|
2371
|
+
return de_CommandError(output, context);
|
|
3782
2372
|
}
|
|
3783
2373
|
const contents = map({
|
|
3784
2374
|
$metadata: deserializeMetadata(output),
|
|
@@ -3790,28 +2380,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3790
2380
|
Object.assign(contents, doc);
|
|
3791
2381
|
return contents;
|
|
3792
2382
|
};
|
|
3793
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3794
|
-
const parsedOutput = {
|
|
3795
|
-
...output,
|
|
3796
|
-
body: await parseErrorBody(output.body, context),
|
|
3797
|
-
};
|
|
3798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3799
|
-
switch (errorCode) {
|
|
3800
|
-
case "BadRequestException":
|
|
3801
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3802
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3803
|
-
default:
|
|
3804
|
-
const parsedBody = parsedOutput.body;
|
|
3805
|
-
return throwDefaultError({
|
|
3806
|
-
output,
|
|
3807
|
-
parsedBody,
|
|
3808
|
-
errorCode,
|
|
3809
|
-
});
|
|
3810
|
-
}
|
|
3811
|
-
};
|
|
3812
2383
|
export const de_ResetDeploymentsCommand = async (output, context) => {
|
|
3813
2384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3814
|
-
return
|
|
2385
|
+
return de_CommandError(output, context);
|
|
3815
2386
|
}
|
|
3816
2387
|
const contents = map({
|
|
3817
2388
|
$metadata: deserializeMetadata(output),
|
|
@@ -3824,28 +2395,9 @@ export const de_ResetDeploymentsCommand = async (output, context) => {
|
|
|
3824
2395
|
Object.assign(contents, doc);
|
|
3825
2396
|
return contents;
|
|
3826
2397
|
};
|
|
3827
|
-
const de_ResetDeploymentsCommandError = async (output, context) => {
|
|
3828
|
-
const parsedOutput = {
|
|
3829
|
-
...output,
|
|
3830
|
-
body: await parseErrorBody(output.body, context),
|
|
3831
|
-
};
|
|
3832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3833
|
-
switch (errorCode) {
|
|
3834
|
-
case "BadRequestException":
|
|
3835
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3836
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3837
|
-
default:
|
|
3838
|
-
const parsedBody = parsedOutput.body;
|
|
3839
|
-
return throwDefaultError({
|
|
3840
|
-
output,
|
|
3841
|
-
parsedBody,
|
|
3842
|
-
errorCode,
|
|
3843
|
-
});
|
|
3844
|
-
}
|
|
3845
|
-
};
|
|
3846
2398
|
export const de_StartBulkDeploymentCommand = async (output, context) => {
|
|
3847
2399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3848
|
-
return
|
|
2400
|
+
return de_CommandError(output, context);
|
|
3849
2401
|
}
|
|
3850
2402
|
const contents = map({
|
|
3851
2403
|
$metadata: deserializeMetadata(output),
|
|
@@ -3858,28 +2410,9 @@ export const de_StartBulkDeploymentCommand = async (output, context) => {
|
|
|
3858
2410
|
Object.assign(contents, doc);
|
|
3859
2411
|
return contents;
|
|
3860
2412
|
};
|
|
3861
|
-
const de_StartBulkDeploymentCommandError = async (output, context) => {
|
|
3862
|
-
const parsedOutput = {
|
|
3863
|
-
...output,
|
|
3864
|
-
body: await parseErrorBody(output.body, context),
|
|
3865
|
-
};
|
|
3866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3867
|
-
switch (errorCode) {
|
|
3868
|
-
case "BadRequestException":
|
|
3869
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3870
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3871
|
-
default:
|
|
3872
|
-
const parsedBody = parsedOutput.body;
|
|
3873
|
-
return throwDefaultError({
|
|
3874
|
-
output,
|
|
3875
|
-
parsedBody,
|
|
3876
|
-
errorCode,
|
|
3877
|
-
});
|
|
3878
|
-
}
|
|
3879
|
-
};
|
|
3880
2413
|
export const de_StopBulkDeploymentCommand = async (output, context) => {
|
|
3881
2414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3882
|
-
return
|
|
2415
|
+
return de_CommandError(output, context);
|
|
3883
2416
|
}
|
|
3884
2417
|
const contents = map({
|
|
3885
2418
|
$metadata: deserializeMetadata(output),
|
|
@@ -3887,28 +2420,9 @@ export const de_StopBulkDeploymentCommand = async (output, context) => {
|
|
|
3887
2420
|
await collectBody(output.body, context);
|
|
3888
2421
|
return contents;
|
|
3889
2422
|
};
|
|
3890
|
-
const de_StopBulkDeploymentCommandError = async (output, context) => {
|
|
3891
|
-
const parsedOutput = {
|
|
3892
|
-
...output,
|
|
3893
|
-
body: await parseErrorBody(output.body, context),
|
|
3894
|
-
};
|
|
3895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3896
|
-
switch (errorCode) {
|
|
3897
|
-
case "BadRequestException":
|
|
3898
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3899
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3900
|
-
default:
|
|
3901
|
-
const parsedBody = parsedOutput.body;
|
|
3902
|
-
return throwDefaultError({
|
|
3903
|
-
output,
|
|
3904
|
-
parsedBody,
|
|
3905
|
-
errorCode,
|
|
3906
|
-
});
|
|
3907
|
-
}
|
|
3908
|
-
};
|
|
3909
2423
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3910
2424
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3911
|
-
return
|
|
2425
|
+
return de_CommandError(output, context);
|
|
3912
2426
|
}
|
|
3913
2427
|
const contents = map({
|
|
3914
2428
|
$metadata: deserializeMetadata(output),
|
|
@@ -3916,28 +2430,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3916
2430
|
await collectBody(output.body, context);
|
|
3917
2431
|
return contents;
|
|
3918
2432
|
};
|
|
3919
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3920
|
-
const parsedOutput = {
|
|
3921
|
-
...output,
|
|
3922
|
-
body: await parseErrorBody(output.body, context),
|
|
3923
|
-
};
|
|
3924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3925
|
-
switch (errorCode) {
|
|
3926
|
-
case "BadRequestException":
|
|
3927
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3928
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3929
|
-
default:
|
|
3930
|
-
const parsedBody = parsedOutput.body;
|
|
3931
|
-
return throwDefaultError({
|
|
3932
|
-
output,
|
|
3933
|
-
parsedBody,
|
|
3934
|
-
errorCode,
|
|
3935
|
-
});
|
|
3936
|
-
}
|
|
3937
|
-
};
|
|
3938
2433
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3939
2434
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3940
|
-
return
|
|
2435
|
+
return de_CommandError(output, context);
|
|
3941
2436
|
}
|
|
3942
2437
|
const contents = map({
|
|
3943
2438
|
$metadata: deserializeMetadata(output),
|
|
@@ -3945,28 +2440,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3945
2440
|
await collectBody(output.body, context);
|
|
3946
2441
|
return contents;
|
|
3947
2442
|
};
|
|
3948
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3949
|
-
const parsedOutput = {
|
|
3950
|
-
...output,
|
|
3951
|
-
body: await parseErrorBody(output.body, context),
|
|
3952
|
-
};
|
|
3953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3954
|
-
switch (errorCode) {
|
|
3955
|
-
case "BadRequestException":
|
|
3956
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3957
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3958
|
-
default:
|
|
3959
|
-
const parsedBody = parsedOutput.body;
|
|
3960
|
-
return throwDefaultError({
|
|
3961
|
-
output,
|
|
3962
|
-
parsedBody,
|
|
3963
|
-
errorCode,
|
|
3964
|
-
});
|
|
3965
|
-
}
|
|
3966
|
-
};
|
|
3967
2443
|
export const de_UpdateConnectivityInfoCommand = async (output, context) => {
|
|
3968
2444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3969
|
-
return
|
|
2445
|
+
return de_CommandError(output, context);
|
|
3970
2446
|
}
|
|
3971
2447
|
const contents = map({
|
|
3972
2448
|
$metadata: deserializeMetadata(output),
|
|
@@ -3979,31 +2455,9 @@ export const de_UpdateConnectivityInfoCommand = async (output, context) => {
|
|
|
3979
2455
|
Object.assign(contents, doc);
|
|
3980
2456
|
return contents;
|
|
3981
2457
|
};
|
|
3982
|
-
const de_UpdateConnectivityInfoCommandError = async (output, context) => {
|
|
3983
|
-
const parsedOutput = {
|
|
3984
|
-
...output,
|
|
3985
|
-
body: await parseErrorBody(output.body, context),
|
|
3986
|
-
};
|
|
3987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3988
|
-
switch (errorCode) {
|
|
3989
|
-
case "BadRequestException":
|
|
3990
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
3991
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3992
|
-
case "InternalServerErrorException":
|
|
3993
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
3994
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
3995
|
-
default:
|
|
3996
|
-
const parsedBody = parsedOutput.body;
|
|
3997
|
-
return throwDefaultError({
|
|
3998
|
-
output,
|
|
3999
|
-
parsedBody,
|
|
4000
|
-
errorCode,
|
|
4001
|
-
});
|
|
4002
|
-
}
|
|
4003
|
-
};
|
|
4004
2458
|
export const de_UpdateConnectorDefinitionCommand = async (output, context) => {
|
|
4005
2459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4006
|
-
return
|
|
2460
|
+
return de_CommandError(output, context);
|
|
4007
2461
|
}
|
|
4008
2462
|
const contents = map({
|
|
4009
2463
|
$metadata: deserializeMetadata(output),
|
|
@@ -4011,28 +2465,9 @@ export const de_UpdateConnectorDefinitionCommand = async (output, context) => {
|
|
|
4011
2465
|
await collectBody(output.body, context);
|
|
4012
2466
|
return contents;
|
|
4013
2467
|
};
|
|
4014
|
-
const de_UpdateConnectorDefinitionCommandError = async (output, context) => {
|
|
4015
|
-
const parsedOutput = {
|
|
4016
|
-
...output,
|
|
4017
|
-
body: await parseErrorBody(output.body, context),
|
|
4018
|
-
};
|
|
4019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4020
|
-
switch (errorCode) {
|
|
4021
|
-
case "BadRequestException":
|
|
4022
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
4023
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4024
|
-
default:
|
|
4025
|
-
const parsedBody = parsedOutput.body;
|
|
4026
|
-
return throwDefaultError({
|
|
4027
|
-
output,
|
|
4028
|
-
parsedBody,
|
|
4029
|
-
errorCode,
|
|
4030
|
-
});
|
|
4031
|
-
}
|
|
4032
|
-
};
|
|
4033
2468
|
export const de_UpdateCoreDefinitionCommand = async (output, context) => {
|
|
4034
2469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4035
|
-
return
|
|
2470
|
+
return de_CommandError(output, context);
|
|
4036
2471
|
}
|
|
4037
2472
|
const contents = map({
|
|
4038
2473
|
$metadata: deserializeMetadata(output),
|
|
@@ -4040,28 +2475,9 @@ export const de_UpdateCoreDefinitionCommand = async (output, context) => {
|
|
|
4040
2475
|
await collectBody(output.body, context);
|
|
4041
2476
|
return contents;
|
|
4042
2477
|
};
|
|
4043
|
-
const de_UpdateCoreDefinitionCommandError = async (output, context) => {
|
|
4044
|
-
const parsedOutput = {
|
|
4045
|
-
...output,
|
|
4046
|
-
body: await parseErrorBody(output.body, context),
|
|
4047
|
-
};
|
|
4048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4049
|
-
switch (errorCode) {
|
|
4050
|
-
case "BadRequestException":
|
|
4051
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
4052
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4053
|
-
default:
|
|
4054
|
-
const parsedBody = parsedOutput.body;
|
|
4055
|
-
return throwDefaultError({
|
|
4056
|
-
output,
|
|
4057
|
-
parsedBody,
|
|
4058
|
-
errorCode,
|
|
4059
|
-
});
|
|
4060
|
-
}
|
|
4061
|
-
};
|
|
4062
2478
|
export const de_UpdateDeviceDefinitionCommand = async (output, context) => {
|
|
4063
2479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4064
|
-
return
|
|
2480
|
+
return de_CommandError(output, context);
|
|
4065
2481
|
}
|
|
4066
2482
|
const contents = map({
|
|
4067
2483
|
$metadata: deserializeMetadata(output),
|
|
@@ -4069,28 +2485,9 @@ export const de_UpdateDeviceDefinitionCommand = async (output, context) => {
|
|
|
4069
2485
|
await collectBody(output.body, context);
|
|
4070
2486
|
return contents;
|
|
4071
2487
|
};
|
|
4072
|
-
const de_UpdateDeviceDefinitionCommandError = async (output, context) => {
|
|
4073
|
-
const parsedOutput = {
|
|
4074
|
-
...output,
|
|
4075
|
-
body: await parseErrorBody(output.body, context),
|
|
4076
|
-
};
|
|
4077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4078
|
-
switch (errorCode) {
|
|
4079
|
-
case "BadRequestException":
|
|
4080
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
4081
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4082
|
-
default:
|
|
4083
|
-
const parsedBody = parsedOutput.body;
|
|
4084
|
-
return throwDefaultError({
|
|
4085
|
-
output,
|
|
4086
|
-
parsedBody,
|
|
4087
|
-
errorCode,
|
|
4088
|
-
});
|
|
4089
|
-
}
|
|
4090
|
-
};
|
|
4091
2488
|
export const de_UpdateFunctionDefinitionCommand = async (output, context) => {
|
|
4092
2489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4093
|
-
return
|
|
2490
|
+
return de_CommandError(output, context);
|
|
4094
2491
|
}
|
|
4095
2492
|
const contents = map({
|
|
4096
2493
|
$metadata: deserializeMetadata(output),
|
|
@@ -4098,28 +2495,9 @@ export const de_UpdateFunctionDefinitionCommand = async (output, context) => {
|
|
|
4098
2495
|
await collectBody(output.body, context);
|
|
4099
2496
|
return contents;
|
|
4100
2497
|
};
|
|
4101
|
-
const de_UpdateFunctionDefinitionCommandError = async (output, context) => {
|
|
4102
|
-
const parsedOutput = {
|
|
4103
|
-
...output,
|
|
4104
|
-
body: await parseErrorBody(output.body, context),
|
|
4105
|
-
};
|
|
4106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4107
|
-
switch (errorCode) {
|
|
4108
|
-
case "BadRequestException":
|
|
4109
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
4110
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4111
|
-
default:
|
|
4112
|
-
const parsedBody = parsedOutput.body;
|
|
4113
|
-
return throwDefaultError({
|
|
4114
|
-
output,
|
|
4115
|
-
parsedBody,
|
|
4116
|
-
errorCode,
|
|
4117
|
-
});
|
|
4118
|
-
}
|
|
4119
|
-
};
|
|
4120
2498
|
export const de_UpdateGroupCommand = async (output, context) => {
|
|
4121
2499
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4122
|
-
return
|
|
2500
|
+
return de_CommandError(output, context);
|
|
4123
2501
|
}
|
|
4124
2502
|
const contents = map({
|
|
4125
2503
|
$metadata: deserializeMetadata(output),
|
|
@@ -4127,28 +2505,9 @@ export const de_UpdateGroupCommand = async (output, context) => {
|
|
|
4127
2505
|
await collectBody(output.body, context);
|
|
4128
2506
|
return contents;
|
|
4129
2507
|
};
|
|
4130
|
-
const de_UpdateGroupCommandError = async (output, context) => {
|
|
4131
|
-
const parsedOutput = {
|
|
4132
|
-
...output,
|
|
4133
|
-
body: await parseErrorBody(output.body, context),
|
|
4134
|
-
};
|
|
4135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4136
|
-
switch (errorCode) {
|
|
4137
|
-
case "BadRequestException":
|
|
4138
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
4139
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4140
|
-
default:
|
|
4141
|
-
const parsedBody = parsedOutput.body;
|
|
4142
|
-
return throwDefaultError({
|
|
4143
|
-
output,
|
|
4144
|
-
parsedBody,
|
|
4145
|
-
errorCode,
|
|
4146
|
-
});
|
|
4147
|
-
}
|
|
4148
|
-
};
|
|
4149
2508
|
export const de_UpdateGroupCertificateConfigurationCommand = async (output, context) => {
|
|
4150
2509
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4151
|
-
return
|
|
2510
|
+
return de_CommandError(output, context);
|
|
4152
2511
|
}
|
|
4153
2512
|
const contents = map({
|
|
4154
2513
|
$metadata: deserializeMetadata(output),
|
|
@@ -4162,31 +2521,9 @@ export const de_UpdateGroupCertificateConfigurationCommand = async (output, cont
|
|
|
4162
2521
|
Object.assign(contents, doc);
|
|
4163
2522
|
return contents;
|
|
4164
2523
|
};
|
|
4165
|
-
const de_UpdateGroupCertificateConfigurationCommandError = async (output, context) => {
|
|
4166
|
-
const parsedOutput = {
|
|
4167
|
-
...output,
|
|
4168
|
-
body: await parseErrorBody(output.body, context),
|
|
4169
|
-
};
|
|
4170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4171
|
-
switch (errorCode) {
|
|
4172
|
-
case "BadRequestException":
|
|
4173
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
4174
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4175
|
-
case "InternalServerErrorException":
|
|
4176
|
-
case "com.amazonaws.greengrass#InternalServerErrorException":
|
|
4177
|
-
throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
|
|
4178
|
-
default:
|
|
4179
|
-
const parsedBody = parsedOutput.body;
|
|
4180
|
-
return throwDefaultError({
|
|
4181
|
-
output,
|
|
4182
|
-
parsedBody,
|
|
4183
|
-
errorCode,
|
|
4184
|
-
});
|
|
4185
|
-
}
|
|
4186
|
-
};
|
|
4187
2524
|
export const de_UpdateLoggerDefinitionCommand = async (output, context) => {
|
|
4188
2525
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4189
|
-
return
|
|
2526
|
+
return de_CommandError(output, context);
|
|
4190
2527
|
}
|
|
4191
2528
|
const contents = map({
|
|
4192
2529
|
$metadata: deserializeMetadata(output),
|
|
@@ -4194,28 +2531,9 @@ export const de_UpdateLoggerDefinitionCommand = async (output, context) => {
|
|
|
4194
2531
|
await collectBody(output.body, context);
|
|
4195
2532
|
return contents;
|
|
4196
2533
|
};
|
|
4197
|
-
const de_UpdateLoggerDefinitionCommandError = async (output, context) => {
|
|
4198
|
-
const parsedOutput = {
|
|
4199
|
-
...output,
|
|
4200
|
-
body: await parseErrorBody(output.body, context),
|
|
4201
|
-
};
|
|
4202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4203
|
-
switch (errorCode) {
|
|
4204
|
-
case "BadRequestException":
|
|
4205
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
4206
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4207
|
-
default:
|
|
4208
|
-
const parsedBody = parsedOutput.body;
|
|
4209
|
-
return throwDefaultError({
|
|
4210
|
-
output,
|
|
4211
|
-
parsedBody,
|
|
4212
|
-
errorCode,
|
|
4213
|
-
});
|
|
4214
|
-
}
|
|
4215
|
-
};
|
|
4216
2534
|
export const de_UpdateResourceDefinitionCommand = async (output, context) => {
|
|
4217
2535
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4218
|
-
return
|
|
2536
|
+
return de_CommandError(output, context);
|
|
4219
2537
|
}
|
|
4220
2538
|
const contents = map({
|
|
4221
2539
|
$metadata: deserializeMetadata(output),
|
|
@@ -4223,28 +2541,9 @@ export const de_UpdateResourceDefinitionCommand = async (output, context) => {
|
|
|
4223
2541
|
await collectBody(output.body, context);
|
|
4224
2542
|
return contents;
|
|
4225
2543
|
};
|
|
4226
|
-
const de_UpdateResourceDefinitionCommandError = async (output, context) => {
|
|
4227
|
-
const parsedOutput = {
|
|
4228
|
-
...output,
|
|
4229
|
-
body: await parseErrorBody(output.body, context),
|
|
4230
|
-
};
|
|
4231
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4232
|
-
switch (errorCode) {
|
|
4233
|
-
case "BadRequestException":
|
|
4234
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
4235
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4236
|
-
default:
|
|
4237
|
-
const parsedBody = parsedOutput.body;
|
|
4238
|
-
return throwDefaultError({
|
|
4239
|
-
output,
|
|
4240
|
-
parsedBody,
|
|
4241
|
-
errorCode,
|
|
4242
|
-
});
|
|
4243
|
-
}
|
|
4244
|
-
};
|
|
4245
2544
|
export const de_UpdateSubscriptionDefinitionCommand = async (output, context) => {
|
|
4246
2545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4247
|
-
return
|
|
2546
|
+
return de_CommandError(output, context);
|
|
4248
2547
|
}
|
|
4249
2548
|
const contents = map({
|
|
4250
2549
|
$metadata: deserializeMetadata(output),
|
|
@@ -4252,28 +2551,9 @@ export const de_UpdateSubscriptionDefinitionCommand = async (output, context) =>
|
|
|
4252
2551
|
await collectBody(output.body, context);
|
|
4253
2552
|
return contents;
|
|
4254
2553
|
};
|
|
4255
|
-
const de_UpdateSubscriptionDefinitionCommandError = async (output, context) => {
|
|
4256
|
-
const parsedOutput = {
|
|
4257
|
-
...output,
|
|
4258
|
-
body: await parseErrorBody(output.body, context),
|
|
4259
|
-
};
|
|
4260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4261
|
-
switch (errorCode) {
|
|
4262
|
-
case "BadRequestException":
|
|
4263
|
-
case "com.amazonaws.greengrass#BadRequestException":
|
|
4264
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
4265
|
-
default:
|
|
4266
|
-
const parsedBody = parsedOutput.body;
|
|
4267
|
-
return throwDefaultError({
|
|
4268
|
-
output,
|
|
4269
|
-
parsedBody,
|
|
4270
|
-
errorCode,
|
|
4271
|
-
});
|
|
4272
|
-
}
|
|
4273
|
-
};
|
|
4274
2554
|
export const de_UpdateThingRuntimeConfigurationCommand = async (output, context) => {
|
|
4275
2555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4276
|
-
return
|
|
2556
|
+
return de_CommandError(output, context);
|
|
4277
2557
|
}
|
|
4278
2558
|
const contents = map({
|
|
4279
2559
|
$metadata: deserializeMetadata(output),
|
|
@@ -4281,7 +2561,7 @@ export const de_UpdateThingRuntimeConfigurationCommand = async (output, context)
|
|
|
4281
2561
|
await collectBody(output.body, context);
|
|
4282
2562
|
return contents;
|
|
4283
2563
|
};
|
|
4284
|
-
const
|
|
2564
|
+
const de_CommandError = async (output, context) => {
|
|
4285
2565
|
const parsedOutput = {
|
|
4286
2566
|
...output,
|
|
4287
2567
|
body: await parseErrorBody(output.body, context),
|