@aws-sdk/client-sagemaker-geospatial 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 +27 -615
- package/dist-es/protocols/Aws_restJson1.js +48 -636
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1225,7 +1225,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1225
1225
|
}, "se_UntagResourceCommand");
|
|
1226
1226
|
var de_DeleteEarthObservationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1227
1227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1228
|
-
return
|
|
1228
|
+
return de_CommandError(output, context);
|
|
1229
1229
|
}
|
|
1230
1230
|
const contents = (0, import_smithy_client.map)({
|
|
1231
1231
|
$metadata: deserializeMetadata(output)
|
|
@@ -1233,43 +1233,9 @@ var de_DeleteEarthObservationJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1233
1233
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1234
1234
|
return contents;
|
|
1235
1235
|
}, "de_DeleteEarthObservationJobCommand");
|
|
1236
|
-
var de_DeleteEarthObservationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1237
|
-
const parsedOutput = {
|
|
1238
|
-
...output,
|
|
1239
|
-
body: await parseErrorBody(output.body, context)
|
|
1240
|
-
};
|
|
1241
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
-
switch (errorCode) {
|
|
1243
|
-
case "AccessDeniedException":
|
|
1244
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1245
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "ConflictException":
|
|
1247
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1248
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1249
|
-
case "InternalServerException":
|
|
1250
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1251
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "ResourceNotFoundException":
|
|
1253
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1254
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "ThrottlingException":
|
|
1256
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1257
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "ValidationException":
|
|
1259
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1260
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1261
|
-
default:
|
|
1262
|
-
const parsedBody = parsedOutput.body;
|
|
1263
|
-
return throwDefaultError({
|
|
1264
|
-
output,
|
|
1265
|
-
parsedBody,
|
|
1266
|
-
errorCode
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
|
-
}, "de_DeleteEarthObservationJobCommandError");
|
|
1270
1236
|
var de_DeleteVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1271
1237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1272
|
-
return
|
|
1238
|
+
return de_CommandError(output, context);
|
|
1273
1239
|
}
|
|
1274
1240
|
const contents = (0, import_smithy_client.map)({
|
|
1275
1241
|
$metadata: deserializeMetadata(output)
|
|
@@ -1277,43 +1243,9 @@ var de_DeleteVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1277
1243
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1278
1244
|
return contents;
|
|
1279
1245
|
}, "de_DeleteVectorEnrichmentJobCommand");
|
|
1280
|
-
var de_DeleteVectorEnrichmentJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1281
|
-
const parsedOutput = {
|
|
1282
|
-
...output,
|
|
1283
|
-
body: await parseErrorBody(output.body, context)
|
|
1284
|
-
};
|
|
1285
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
|
-
switch (errorCode) {
|
|
1287
|
-
case "AccessDeniedException":
|
|
1288
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1289
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1290
|
-
case "ConflictException":
|
|
1291
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1292
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1293
|
-
case "InternalServerException":
|
|
1294
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1295
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1296
|
-
case "ResourceNotFoundException":
|
|
1297
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1298
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1299
|
-
case "ThrottlingException":
|
|
1300
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1301
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1302
|
-
case "ValidationException":
|
|
1303
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1304
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1305
|
-
default:
|
|
1306
|
-
const parsedBody = parsedOutput.body;
|
|
1307
|
-
return throwDefaultError({
|
|
1308
|
-
output,
|
|
1309
|
-
parsedBody,
|
|
1310
|
-
errorCode
|
|
1311
|
-
});
|
|
1312
|
-
}
|
|
1313
|
-
}, "de_DeleteVectorEnrichmentJobCommandError");
|
|
1314
1246
|
var de_ExportEarthObservationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
1247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1316
|
-
return
|
|
1248
|
+
return de_CommandError(output, context);
|
|
1317
1249
|
}
|
|
1318
1250
|
const contents = (0, import_smithy_client.map)({
|
|
1319
1251
|
$metadata: deserializeMetadata(output)
|
|
@@ -1330,46 +1262,9 @@ var de_ExportEarthObservationJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1330
1262
|
Object.assign(contents, doc);
|
|
1331
1263
|
return contents;
|
|
1332
1264
|
}, "de_ExportEarthObservationJobCommand");
|
|
1333
|
-
var de_ExportEarthObservationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1334
|
-
const parsedOutput = {
|
|
1335
|
-
...output,
|
|
1336
|
-
body: await parseErrorBody(output.body, context)
|
|
1337
|
-
};
|
|
1338
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1339
|
-
switch (errorCode) {
|
|
1340
|
-
case "AccessDeniedException":
|
|
1341
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1342
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "ConflictException":
|
|
1344
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1345
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "InternalServerException":
|
|
1347
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1348
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ResourceNotFoundException":
|
|
1350
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1351
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1352
|
-
case "ServiceQuotaExceededException":
|
|
1353
|
-
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
1354
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "ThrottlingException":
|
|
1356
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1357
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1358
|
-
case "ValidationException":
|
|
1359
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1360
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1361
|
-
default:
|
|
1362
|
-
const parsedBody = parsedOutput.body;
|
|
1363
|
-
return throwDefaultError({
|
|
1364
|
-
output,
|
|
1365
|
-
parsedBody,
|
|
1366
|
-
errorCode
|
|
1367
|
-
});
|
|
1368
|
-
}
|
|
1369
|
-
}, "de_ExportEarthObservationJobCommandError");
|
|
1370
1265
|
var de_ExportVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1371
1266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1372
|
-
return
|
|
1267
|
+
return de_CommandError(output, context);
|
|
1373
1268
|
}
|
|
1374
1269
|
const contents = (0, import_smithy_client.map)({
|
|
1375
1270
|
$metadata: deserializeMetadata(output)
|
|
@@ -1385,46 +1280,9 @@ var de_ExportVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1385
1280
|
Object.assign(contents, doc);
|
|
1386
1281
|
return contents;
|
|
1387
1282
|
}, "de_ExportVectorEnrichmentJobCommand");
|
|
1388
|
-
var de_ExportVectorEnrichmentJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1389
|
-
const parsedOutput = {
|
|
1390
|
-
...output,
|
|
1391
|
-
body: await parseErrorBody(output.body, context)
|
|
1392
|
-
};
|
|
1393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1394
|
-
switch (errorCode) {
|
|
1395
|
-
case "AccessDeniedException":
|
|
1396
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1397
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ConflictException":
|
|
1399
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1400
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1401
|
-
case "InternalServerException":
|
|
1402
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1403
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "ResourceNotFoundException":
|
|
1405
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1406
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "ServiceQuotaExceededException":
|
|
1408
|
-
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
1409
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "ThrottlingException":
|
|
1411
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1412
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "ValidationException":
|
|
1414
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1415
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1416
|
-
default:
|
|
1417
|
-
const parsedBody = parsedOutput.body;
|
|
1418
|
-
return throwDefaultError({
|
|
1419
|
-
output,
|
|
1420
|
-
parsedBody,
|
|
1421
|
-
errorCode
|
|
1422
|
-
});
|
|
1423
|
-
}
|
|
1424
|
-
}, "de_ExportVectorEnrichmentJobCommandError");
|
|
1425
1283
|
var de_GetEarthObservationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1426
1284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1427
|
-
return
|
|
1285
|
+
return de_CommandError(output, context);
|
|
1428
1286
|
}
|
|
1429
1287
|
const contents = (0, import_smithy_client.map)({
|
|
1430
1288
|
$metadata: deserializeMetadata(output)
|
|
@@ -1449,40 +1307,9 @@ var de_GetEarthObservationJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1449
1307
|
Object.assign(contents, doc);
|
|
1450
1308
|
return contents;
|
|
1451
1309
|
}, "de_GetEarthObservationJobCommand");
|
|
1452
|
-
var de_GetEarthObservationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context)
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "AccessDeniedException":
|
|
1460
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1461
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "InternalServerException":
|
|
1463
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1464
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ResourceNotFoundException":
|
|
1466
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ThrottlingException":
|
|
1469
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1470
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "ValidationException":
|
|
1472
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1474
|
-
default:
|
|
1475
|
-
const parsedBody = parsedOutput.body;
|
|
1476
|
-
return throwDefaultError({
|
|
1477
|
-
output,
|
|
1478
|
-
parsedBody,
|
|
1479
|
-
errorCode
|
|
1480
|
-
});
|
|
1481
|
-
}
|
|
1482
|
-
}, "de_GetEarthObservationJobCommandError");
|
|
1483
1310
|
var de_GetRasterDataCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1484
1311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1485
|
-
return
|
|
1312
|
+
return de_CommandError(output, context);
|
|
1486
1313
|
}
|
|
1487
1314
|
const contents = (0, import_smithy_client.map)({
|
|
1488
1315
|
$metadata: deserializeMetadata(output)
|
|
@@ -1501,40 +1328,9 @@ var de_GetRasterDataCollectionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1501
1328
|
Object.assign(contents, doc);
|
|
1502
1329
|
return contents;
|
|
1503
1330
|
}, "de_GetRasterDataCollectionCommand");
|
|
1504
|
-
var de_GetRasterDataCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1505
|
-
const parsedOutput = {
|
|
1506
|
-
...output,
|
|
1507
|
-
body: await parseErrorBody(output.body, context)
|
|
1508
|
-
};
|
|
1509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
|
-
switch (errorCode) {
|
|
1511
|
-
case "AccessDeniedException":
|
|
1512
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1513
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1514
|
-
case "InternalServerException":
|
|
1515
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1516
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "ResourceNotFoundException":
|
|
1518
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1519
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "ThrottlingException":
|
|
1521
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1522
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "ValidationException":
|
|
1524
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1525
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1526
|
-
default:
|
|
1527
|
-
const parsedBody = parsedOutput.body;
|
|
1528
|
-
return throwDefaultError({
|
|
1529
|
-
output,
|
|
1530
|
-
parsedBody,
|
|
1531
|
-
errorCode
|
|
1532
|
-
});
|
|
1533
|
-
}
|
|
1534
|
-
}, "de_GetRasterDataCollectionCommandError");
|
|
1535
1331
|
var de_GetTileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1536
1332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1537
|
-
return
|
|
1333
|
+
return de_CommandError(output, context);
|
|
1538
1334
|
}
|
|
1539
1335
|
const contents = (0, import_smithy_client.map)({
|
|
1540
1336
|
$metadata: deserializeMetadata(output)
|
|
@@ -1544,40 +1340,9 @@ var de_GetTileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1544
1340
|
contents.BinaryFile = data;
|
|
1545
1341
|
return contents;
|
|
1546
1342
|
}, "de_GetTileCommand");
|
|
1547
|
-
var de_GetTileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1548
|
-
const parsedOutput = {
|
|
1549
|
-
...output,
|
|
1550
|
-
body: await parseErrorBody(output.body, context)
|
|
1551
|
-
};
|
|
1552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
|
-
switch (errorCode) {
|
|
1554
|
-
case "AccessDeniedException":
|
|
1555
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1556
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1557
|
-
case "InternalServerException":
|
|
1558
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1559
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "ResourceNotFoundException":
|
|
1561
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ThrottlingException":
|
|
1564
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1565
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1566
|
-
case "ValidationException":
|
|
1567
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1568
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1569
|
-
default:
|
|
1570
|
-
const parsedBody = parsedOutput.body;
|
|
1571
|
-
return throwDefaultError({
|
|
1572
|
-
output,
|
|
1573
|
-
parsedBody,
|
|
1574
|
-
errorCode
|
|
1575
|
-
});
|
|
1576
|
-
}
|
|
1577
|
-
}, "de_GetTileCommandError");
|
|
1578
1343
|
var de_GetVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1579
1344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1580
|
-
return
|
|
1345
|
+
return de_CommandError(output, context);
|
|
1581
1346
|
}
|
|
1582
1347
|
const contents = (0, import_smithy_client.map)({
|
|
1583
1348
|
$metadata: deserializeMetadata(output)
|
|
@@ -1602,40 +1367,9 @@ var de_GetVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1602
1367
|
Object.assign(contents, doc);
|
|
1603
1368
|
return contents;
|
|
1604
1369
|
}, "de_GetVectorEnrichmentJobCommand");
|
|
1605
|
-
var de_GetVectorEnrichmentJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1606
|
-
const parsedOutput = {
|
|
1607
|
-
...output,
|
|
1608
|
-
body: await parseErrorBody(output.body, context)
|
|
1609
|
-
};
|
|
1610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1611
|
-
switch (errorCode) {
|
|
1612
|
-
case "AccessDeniedException":
|
|
1613
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1614
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1615
|
-
case "InternalServerException":
|
|
1616
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1617
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1618
|
-
case "ResourceNotFoundException":
|
|
1619
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1620
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1621
|
-
case "ThrottlingException":
|
|
1622
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1623
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "ValidationException":
|
|
1625
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1626
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1627
|
-
default:
|
|
1628
|
-
const parsedBody = parsedOutput.body;
|
|
1629
|
-
return throwDefaultError({
|
|
1630
|
-
output,
|
|
1631
|
-
parsedBody,
|
|
1632
|
-
errorCode
|
|
1633
|
-
});
|
|
1634
|
-
}
|
|
1635
|
-
}, "de_GetVectorEnrichmentJobCommandError");
|
|
1636
1370
|
var de_ListEarthObservationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1637
1371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1638
|
-
return
|
|
1372
|
+
return de_CommandError(output, context);
|
|
1639
1373
|
}
|
|
1640
1374
|
const contents = (0, import_smithy_client.map)({
|
|
1641
1375
|
$metadata: deserializeMetadata(output)
|
|
@@ -1648,40 +1382,9 @@ var de_ListEarthObservationJobsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1648
1382
|
Object.assign(contents, doc);
|
|
1649
1383
|
return contents;
|
|
1650
1384
|
}, "de_ListEarthObservationJobsCommand");
|
|
1651
|
-
var de_ListEarthObservationJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1652
|
-
const parsedOutput = {
|
|
1653
|
-
...output,
|
|
1654
|
-
body: await parseErrorBody(output.body, context)
|
|
1655
|
-
};
|
|
1656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
|
-
switch (errorCode) {
|
|
1658
|
-
case "AccessDeniedException":
|
|
1659
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1660
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "InternalServerException":
|
|
1662
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1663
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "ResourceNotFoundException":
|
|
1665
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1666
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "ThrottlingException":
|
|
1668
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1669
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ValidationException":
|
|
1671
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1672
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1673
|
-
default:
|
|
1674
|
-
const parsedBody = parsedOutput.body;
|
|
1675
|
-
return throwDefaultError({
|
|
1676
|
-
output,
|
|
1677
|
-
parsedBody,
|
|
1678
|
-
errorCode
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
}, "de_ListEarthObservationJobsCommandError");
|
|
1682
1385
|
var de_ListRasterDataCollectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1683
1386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1684
|
-
return
|
|
1387
|
+
return de_CommandError(output, context);
|
|
1685
1388
|
}
|
|
1686
1389
|
const contents = (0, import_smithy_client.map)({
|
|
1687
1390
|
$metadata: deserializeMetadata(output)
|
|
@@ -1694,40 +1397,9 @@ var de_ListRasterDataCollectionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1694
1397
|
Object.assign(contents, doc);
|
|
1695
1398
|
return contents;
|
|
1696
1399
|
}, "de_ListRasterDataCollectionsCommand");
|
|
1697
|
-
var de_ListRasterDataCollectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1698
|
-
const parsedOutput = {
|
|
1699
|
-
...output,
|
|
1700
|
-
body: await parseErrorBody(output.body, context)
|
|
1701
|
-
};
|
|
1702
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
-
switch (errorCode) {
|
|
1704
|
-
case "AccessDeniedException":
|
|
1705
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1706
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "InternalServerException":
|
|
1708
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1709
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "ResourceNotFoundException":
|
|
1711
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1712
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ThrottlingException":
|
|
1714
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1715
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "ValidationException":
|
|
1717
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1718
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1719
|
-
default:
|
|
1720
|
-
const parsedBody = parsedOutput.body;
|
|
1721
|
-
return throwDefaultError({
|
|
1722
|
-
output,
|
|
1723
|
-
parsedBody,
|
|
1724
|
-
errorCode
|
|
1725
|
-
});
|
|
1726
|
-
}
|
|
1727
|
-
}, "de_ListRasterDataCollectionsCommandError");
|
|
1728
1400
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1729
1401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1730
|
-
return
|
|
1402
|
+
return de_CommandError(output, context);
|
|
1731
1403
|
}
|
|
1732
1404
|
const contents = (0, import_smithy_client.map)({
|
|
1733
1405
|
$metadata: deserializeMetadata(output)
|
|
@@ -1739,40 +1411,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1739
1411
|
Object.assign(contents, doc);
|
|
1740
1412
|
return contents;
|
|
1741
1413
|
}, "de_ListTagsForResourceCommand");
|
|
1742
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1743
|
-
const parsedOutput = {
|
|
1744
|
-
...output,
|
|
1745
|
-
body: await parseErrorBody(output.body, context)
|
|
1746
|
-
};
|
|
1747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1748
|
-
switch (errorCode) {
|
|
1749
|
-
case "AccessDeniedException":
|
|
1750
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1751
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "InternalServerException":
|
|
1753
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1754
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "ResourceNotFoundException":
|
|
1756
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1757
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "ThrottlingException":
|
|
1759
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1760
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "ValidationException":
|
|
1762
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1763
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1764
|
-
default:
|
|
1765
|
-
const parsedBody = parsedOutput.body;
|
|
1766
|
-
return throwDefaultError({
|
|
1767
|
-
output,
|
|
1768
|
-
parsedBody,
|
|
1769
|
-
errorCode
|
|
1770
|
-
});
|
|
1771
|
-
}
|
|
1772
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1773
1414
|
var de_ListVectorEnrichmentJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1774
1415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1775
|
-
return
|
|
1416
|
+
return de_CommandError(output, context);
|
|
1776
1417
|
}
|
|
1777
1418
|
const contents = (0, import_smithy_client.map)({
|
|
1778
1419
|
$metadata: deserializeMetadata(output)
|
|
@@ -1785,40 +1426,9 @@ var de_ListVectorEnrichmentJobsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1785
1426
|
Object.assign(contents, doc);
|
|
1786
1427
|
return contents;
|
|
1787
1428
|
}, "de_ListVectorEnrichmentJobsCommand");
|
|
1788
|
-
var de_ListVectorEnrichmentJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1789
|
-
const parsedOutput = {
|
|
1790
|
-
...output,
|
|
1791
|
-
body: await parseErrorBody(output.body, context)
|
|
1792
|
-
};
|
|
1793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
|
-
switch (errorCode) {
|
|
1795
|
-
case "AccessDeniedException":
|
|
1796
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1797
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "InternalServerException":
|
|
1799
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "ResourceNotFoundException":
|
|
1802
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1803
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "ThrottlingException":
|
|
1805
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1806
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "ValidationException":
|
|
1808
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1809
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1810
|
-
default:
|
|
1811
|
-
const parsedBody = parsedOutput.body;
|
|
1812
|
-
return throwDefaultError({
|
|
1813
|
-
output,
|
|
1814
|
-
parsedBody,
|
|
1815
|
-
errorCode
|
|
1816
|
-
});
|
|
1817
|
-
}
|
|
1818
|
-
}, "de_ListVectorEnrichmentJobsCommandError");
|
|
1819
1429
|
var de_SearchRasterDataCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1820
1430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1821
|
-
return
|
|
1431
|
+
return de_CommandError(output, context);
|
|
1822
1432
|
}
|
|
1823
1433
|
const contents = (0, import_smithy_client.map)({
|
|
1824
1434
|
$metadata: deserializeMetadata(output)
|
|
@@ -1832,40 +1442,9 @@ var de_SearchRasterDataCollectionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1832
1442
|
Object.assign(contents, doc);
|
|
1833
1443
|
return contents;
|
|
1834
1444
|
}, "de_SearchRasterDataCollectionCommand");
|
|
1835
|
-
var de_SearchRasterDataCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1836
|
-
const parsedOutput = {
|
|
1837
|
-
...output,
|
|
1838
|
-
body: await parseErrorBody(output.body, context)
|
|
1839
|
-
};
|
|
1840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
|
-
switch (errorCode) {
|
|
1842
|
-
case "AccessDeniedException":
|
|
1843
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1844
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "InternalServerException":
|
|
1846
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1847
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "ResourceNotFoundException":
|
|
1849
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1850
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "ThrottlingException":
|
|
1852
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1853
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "ValidationException":
|
|
1855
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1856
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1857
|
-
default:
|
|
1858
|
-
const parsedBody = parsedOutput.body;
|
|
1859
|
-
return throwDefaultError({
|
|
1860
|
-
output,
|
|
1861
|
-
parsedBody,
|
|
1862
|
-
errorCode
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
|
-
}, "de_SearchRasterDataCollectionCommandError");
|
|
1866
1445
|
var de_StartEarthObservationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1867
1446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1868
|
-
return
|
|
1447
|
+
return de_CommandError(output, context);
|
|
1869
1448
|
}
|
|
1870
1449
|
const contents = (0, import_smithy_client.map)({
|
|
1871
1450
|
$metadata: deserializeMetadata(output)
|
|
@@ -1886,46 +1465,9 @@ var de_StartEarthObservationJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1886
1465
|
Object.assign(contents, doc);
|
|
1887
1466
|
return contents;
|
|
1888
1467
|
}, "de_StartEarthObservationJobCommand");
|
|
1889
|
-
var de_StartEarthObservationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1890
|
-
const parsedOutput = {
|
|
1891
|
-
...output,
|
|
1892
|
-
body: await parseErrorBody(output.body, context)
|
|
1893
|
-
};
|
|
1894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
|
-
switch (errorCode) {
|
|
1896
|
-
case "AccessDeniedException":
|
|
1897
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1898
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "ConflictException":
|
|
1900
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1901
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "InternalServerException":
|
|
1903
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1904
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "ResourceNotFoundException":
|
|
1906
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1907
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "ServiceQuotaExceededException":
|
|
1909
|
-
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
1910
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "ThrottlingException":
|
|
1912
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1913
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "ValidationException":
|
|
1915
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1916
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1917
|
-
default:
|
|
1918
|
-
const parsedBody = parsedOutput.body;
|
|
1919
|
-
return throwDefaultError({
|
|
1920
|
-
output,
|
|
1921
|
-
parsedBody,
|
|
1922
|
-
errorCode
|
|
1923
|
-
});
|
|
1924
|
-
}
|
|
1925
|
-
}, "de_StartEarthObservationJobCommandError");
|
|
1926
1468
|
var de_StartVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1927
1469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1928
|
-
return
|
|
1470
|
+
return de_CommandError(output, context);
|
|
1929
1471
|
}
|
|
1930
1472
|
const contents = (0, import_smithy_client.map)({
|
|
1931
1473
|
$metadata: deserializeMetadata(output)
|
|
@@ -1947,46 +1489,9 @@ var de_StartVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1947
1489
|
Object.assign(contents, doc);
|
|
1948
1490
|
return contents;
|
|
1949
1491
|
}, "de_StartVectorEnrichmentJobCommand");
|
|
1950
|
-
var de_StartVectorEnrichmentJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1951
|
-
const parsedOutput = {
|
|
1952
|
-
...output,
|
|
1953
|
-
body: await parseErrorBody(output.body, context)
|
|
1954
|
-
};
|
|
1955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
|
-
switch (errorCode) {
|
|
1957
|
-
case "AccessDeniedException":
|
|
1958
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
1959
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "ConflictException":
|
|
1961
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1962
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1963
|
-
case "InternalServerException":
|
|
1964
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
1965
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "ResourceNotFoundException":
|
|
1967
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
1968
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "ServiceQuotaExceededException":
|
|
1970
|
-
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
1971
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "ThrottlingException":
|
|
1973
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
1974
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "ValidationException":
|
|
1976
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
1977
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1978
|
-
default:
|
|
1979
|
-
const parsedBody = parsedOutput.body;
|
|
1980
|
-
return throwDefaultError({
|
|
1981
|
-
output,
|
|
1982
|
-
parsedBody,
|
|
1983
|
-
errorCode
|
|
1984
|
-
});
|
|
1985
|
-
}
|
|
1986
|
-
}, "de_StartVectorEnrichmentJobCommandError");
|
|
1987
1492
|
var de_StopEarthObservationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1988
1493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1989
|
-
return
|
|
1494
|
+
return de_CommandError(output, context);
|
|
1990
1495
|
}
|
|
1991
1496
|
const contents = (0, import_smithy_client.map)({
|
|
1992
1497
|
$metadata: deserializeMetadata(output)
|
|
@@ -1994,43 +1499,9 @@ var de_StopEarthObservationJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1994
1499
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1995
1500
|
return contents;
|
|
1996
1501
|
}, "de_StopEarthObservationJobCommand");
|
|
1997
|
-
var de_StopEarthObservationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1998
|
-
const parsedOutput = {
|
|
1999
|
-
...output,
|
|
2000
|
-
body: await parseErrorBody(output.body, context)
|
|
2001
|
-
};
|
|
2002
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
|
-
switch (errorCode) {
|
|
2004
|
-
case "AccessDeniedException":
|
|
2005
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
2006
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "ConflictException":
|
|
2008
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
2009
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "InternalServerException":
|
|
2011
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
2012
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "ResourceNotFoundException":
|
|
2014
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
2015
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2016
|
-
case "ThrottlingException":
|
|
2017
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
2018
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2019
|
-
case "ValidationException":
|
|
2020
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
2021
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2022
|
-
default:
|
|
2023
|
-
const parsedBody = parsedOutput.body;
|
|
2024
|
-
return throwDefaultError({
|
|
2025
|
-
output,
|
|
2026
|
-
parsedBody,
|
|
2027
|
-
errorCode
|
|
2028
|
-
});
|
|
2029
|
-
}
|
|
2030
|
-
}, "de_StopEarthObservationJobCommandError");
|
|
2031
1502
|
var de_StopVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2032
1503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2033
|
-
return
|
|
1504
|
+
return de_CommandError(output, context);
|
|
2034
1505
|
}
|
|
2035
1506
|
const contents = (0, import_smithy_client.map)({
|
|
2036
1507
|
$metadata: deserializeMetadata(output)
|
|
@@ -2038,43 +1509,9 @@ var de_StopVectorEnrichmentJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2038
1509
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2039
1510
|
return contents;
|
|
2040
1511
|
}, "de_StopVectorEnrichmentJobCommand");
|
|
2041
|
-
var de_StopVectorEnrichmentJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2042
|
-
const parsedOutput = {
|
|
2043
|
-
...output,
|
|
2044
|
-
body: await parseErrorBody(output.body, context)
|
|
2045
|
-
};
|
|
2046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2047
|
-
switch (errorCode) {
|
|
2048
|
-
case "AccessDeniedException":
|
|
2049
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
2050
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ConflictException":
|
|
2052
|
-
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
2053
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "InternalServerException":
|
|
2055
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
2056
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "ResourceNotFoundException":
|
|
2058
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
2059
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "ThrottlingException":
|
|
2061
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
2062
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ValidationException":
|
|
2064
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
2065
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2066
|
-
default:
|
|
2067
|
-
const parsedBody = parsedOutput.body;
|
|
2068
|
-
return throwDefaultError({
|
|
2069
|
-
output,
|
|
2070
|
-
parsedBody,
|
|
2071
|
-
errorCode
|
|
2072
|
-
});
|
|
2073
|
-
}
|
|
2074
|
-
}, "de_StopVectorEnrichmentJobCommandError");
|
|
2075
1512
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2076
1513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2077
|
-
return
|
|
1514
|
+
return de_CommandError(output, context);
|
|
2078
1515
|
}
|
|
2079
1516
|
const contents = (0, import_smithy_client.map)({
|
|
2080
1517
|
$metadata: deserializeMetadata(output)
|
|
@@ -2082,40 +1519,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2082
1519
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2083
1520
|
return contents;
|
|
2084
1521
|
}, "de_TagResourceCommand");
|
|
2085
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2086
|
-
const parsedOutput = {
|
|
2087
|
-
...output,
|
|
2088
|
-
body: await parseErrorBody(output.body, context)
|
|
2089
|
-
};
|
|
2090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
-
switch (errorCode) {
|
|
2092
|
-
case "AccessDeniedException":
|
|
2093
|
-
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
2094
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "InternalServerException":
|
|
2096
|
-
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
2097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2098
|
-
case "ResourceNotFoundException":
|
|
2099
|
-
case "com.amazonaws.sagemakergeospatial#ResourceNotFoundException":
|
|
2100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2101
|
-
case "ThrottlingException":
|
|
2102
|
-
case "com.amazonaws.sagemakergeospatial#ThrottlingException":
|
|
2103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ValidationException":
|
|
2105
|
-
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
2106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2107
|
-
default:
|
|
2108
|
-
const parsedBody = parsedOutput.body;
|
|
2109
|
-
return throwDefaultError({
|
|
2110
|
-
output,
|
|
2111
|
-
parsedBody,
|
|
2112
|
-
errorCode
|
|
2113
|
-
});
|
|
2114
|
-
}
|
|
2115
|
-
}, "de_TagResourceCommandError");
|
|
2116
1522
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2117
1523
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2118
|
-
return
|
|
1524
|
+
return de_CommandError(output, context);
|
|
2119
1525
|
}
|
|
2120
1526
|
const contents = (0, import_smithy_client.map)({
|
|
2121
1527
|
$metadata: deserializeMetadata(output)
|
|
@@ -2123,7 +1529,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2123
1529
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2124
1530
|
return contents;
|
|
2125
1531
|
}, "de_UntagResourceCommand");
|
|
2126
|
-
var
|
|
1532
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2127
1533
|
const parsedOutput = {
|
|
2128
1534
|
...output,
|
|
2129
1535
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2133,6 +1539,9 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
2133
1539
|
case "AccessDeniedException":
|
|
2134
1540
|
case "com.amazonaws.sagemakergeospatial#AccessDeniedException":
|
|
2135
1541
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1542
|
+
case "ConflictException":
|
|
1543
|
+
case "com.amazonaws.sagemakergeospatial#ConflictException":
|
|
1544
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2136
1545
|
case "InternalServerException":
|
|
2137
1546
|
case "com.amazonaws.sagemakergeospatial#InternalServerException":
|
|
2138
1547
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -2145,6 +1554,9 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
2145
1554
|
case "ValidationException":
|
|
2146
1555
|
case "com.amazonaws.sagemakergeospatial#ValidationException":
|
|
2147
1556
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1557
|
+
case "ServiceQuotaExceededException":
|
|
1558
|
+
case "com.amazonaws.sagemakergeospatial#ServiceQuotaExceededException":
|
|
1559
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2148
1560
|
default:
|
|
2149
1561
|
const parsedBody = parsedOutput.body;
|
|
2150
1562
|
return throwDefaultError({
|
|
@@ -2153,7 +1565,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
2153
1565
|
errorCode
|
|
2154
1566
|
});
|
|
2155
1567
|
}
|
|
2156
|
-
}, "
|
|
1568
|
+
}, "de_CommandError");
|
|
2157
1569
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SageMakerGeospatialServiceException);
|
|
2158
1570
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2159
1571
|
const contents = (0, import_smithy_client.map)({});
|