@aws-sdk/client-location 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +84 -1851
- package/dist-es/protocols/Aws_restJson1.js +117 -1884
- package/package.json +3 -3
|
@@ -1305,7 +1305,7 @@ export const se_UpdateTrackerCommand = async (input, context) => {
|
|
|
1305
1305
|
};
|
|
1306
1306
|
export const de_AssociateTrackerConsumerCommand = async (output, context) => {
|
|
1307
1307
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
|
-
return
|
|
1308
|
+
return de_CommandError(output, context);
|
|
1309
1309
|
}
|
|
1310
1310
|
const contents = map({
|
|
1311
1311
|
$metadata: deserializeMetadata(output),
|
|
@@ -1313,46 +1313,9 @@ export const de_AssociateTrackerConsumerCommand = async (output, context) => {
|
|
|
1313
1313
|
await collectBody(output.body, context);
|
|
1314
1314
|
return contents;
|
|
1315
1315
|
};
|
|
1316
|
-
const de_AssociateTrackerConsumerCommandError = async (output, context) => {
|
|
1317
|
-
const parsedOutput = {
|
|
1318
|
-
...output,
|
|
1319
|
-
body: await parseErrorBody(output.body, context),
|
|
1320
|
-
};
|
|
1321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1322
|
-
switch (errorCode) {
|
|
1323
|
-
case "AccessDeniedException":
|
|
1324
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1325
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "ConflictException":
|
|
1327
|
-
case "com.amazonaws.location#ConflictException":
|
|
1328
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "InternalServerException":
|
|
1330
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1331
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "ResourceNotFoundException":
|
|
1333
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
1334
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ServiceQuotaExceededException":
|
|
1336
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
1337
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "ThrottlingException":
|
|
1339
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1340
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1341
|
-
case "ValidationException":
|
|
1342
|
-
case "com.amazonaws.location#ValidationException":
|
|
1343
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1344
|
-
default:
|
|
1345
|
-
const parsedBody = parsedOutput.body;
|
|
1346
|
-
return throwDefaultError({
|
|
1347
|
-
output,
|
|
1348
|
-
parsedBody,
|
|
1349
|
-
errorCode,
|
|
1350
|
-
});
|
|
1351
|
-
}
|
|
1352
|
-
};
|
|
1353
1316
|
export const de_BatchDeleteDevicePositionHistoryCommand = async (output, context) => {
|
|
1354
1317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1355
|
-
return
|
|
1318
|
+
return de_CommandError(output, context);
|
|
1356
1319
|
}
|
|
1357
1320
|
const contents = map({
|
|
1358
1321
|
$metadata: deserializeMetadata(output),
|
|
@@ -1364,40 +1327,9 @@ export const de_BatchDeleteDevicePositionHistoryCommand = async (output, context
|
|
|
1364
1327
|
Object.assign(contents, doc);
|
|
1365
1328
|
return contents;
|
|
1366
1329
|
};
|
|
1367
|
-
const de_BatchDeleteDevicePositionHistoryCommandError = async (output, context) => {
|
|
1368
|
-
const parsedOutput = {
|
|
1369
|
-
...output,
|
|
1370
|
-
body: await parseErrorBody(output.body, context),
|
|
1371
|
-
};
|
|
1372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1373
|
-
switch (errorCode) {
|
|
1374
|
-
case "AccessDeniedException":
|
|
1375
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1376
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InternalServerException":
|
|
1378
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1379
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "ResourceNotFoundException":
|
|
1381
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
1382
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ThrottlingException":
|
|
1384
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1385
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ValidationException":
|
|
1387
|
-
case "com.amazonaws.location#ValidationException":
|
|
1388
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode,
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
};
|
|
1398
1330
|
export const de_BatchDeleteGeofenceCommand = async (output, context) => {
|
|
1399
1331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
1332
|
+
return de_CommandError(output, context);
|
|
1401
1333
|
}
|
|
1402
1334
|
const contents = map({
|
|
1403
1335
|
$metadata: deserializeMetadata(output),
|
|
@@ -1409,40 +1341,9 @@ export const de_BatchDeleteGeofenceCommand = async (output, context) => {
|
|
|
1409
1341
|
Object.assign(contents, doc);
|
|
1410
1342
|
return contents;
|
|
1411
1343
|
};
|
|
1412
|
-
const de_BatchDeleteGeofenceCommandError = async (output, context) => {
|
|
1413
|
-
const parsedOutput = {
|
|
1414
|
-
...output,
|
|
1415
|
-
body: await parseErrorBody(output.body, context),
|
|
1416
|
-
};
|
|
1417
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
-
switch (errorCode) {
|
|
1419
|
-
case "AccessDeniedException":
|
|
1420
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1421
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1422
|
-
case "InternalServerException":
|
|
1423
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1424
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ResourceNotFoundException":
|
|
1426
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
1427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "ThrottlingException":
|
|
1429
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1430
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ValidationException":
|
|
1432
|
-
case "com.amazonaws.location#ValidationException":
|
|
1433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1434
|
-
default:
|
|
1435
|
-
const parsedBody = parsedOutput.body;
|
|
1436
|
-
return throwDefaultError({
|
|
1437
|
-
output,
|
|
1438
|
-
parsedBody,
|
|
1439
|
-
errorCode,
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
};
|
|
1443
1344
|
export const de_BatchEvaluateGeofencesCommand = async (output, context) => {
|
|
1444
1345
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1445
|
-
return
|
|
1346
|
+
return de_CommandError(output, context);
|
|
1446
1347
|
}
|
|
1447
1348
|
const contents = map({
|
|
1448
1349
|
$metadata: deserializeMetadata(output),
|
|
@@ -1454,40 +1355,9 @@ export const de_BatchEvaluateGeofencesCommand = async (output, context) => {
|
|
|
1454
1355
|
Object.assign(contents, doc);
|
|
1455
1356
|
return contents;
|
|
1456
1357
|
};
|
|
1457
|
-
const de_BatchEvaluateGeofencesCommandError = async (output, context) => {
|
|
1458
|
-
const parsedOutput = {
|
|
1459
|
-
...output,
|
|
1460
|
-
body: await parseErrorBody(output.body, context),
|
|
1461
|
-
};
|
|
1462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1463
|
-
switch (errorCode) {
|
|
1464
|
-
case "AccessDeniedException":
|
|
1465
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "InternalServerException":
|
|
1468
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1469
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ResourceNotFoundException":
|
|
1471
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
1472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ThrottlingException":
|
|
1474
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1475
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "ValidationException":
|
|
1477
|
-
case "com.amazonaws.location#ValidationException":
|
|
1478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1479
|
-
default:
|
|
1480
|
-
const parsedBody = parsedOutput.body;
|
|
1481
|
-
return throwDefaultError({
|
|
1482
|
-
output,
|
|
1483
|
-
parsedBody,
|
|
1484
|
-
errorCode,
|
|
1485
|
-
});
|
|
1486
|
-
}
|
|
1487
|
-
};
|
|
1488
1358
|
export const de_BatchGetDevicePositionCommand = async (output, context) => {
|
|
1489
1359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1490
|
-
return
|
|
1360
|
+
return de_CommandError(output, context);
|
|
1491
1361
|
}
|
|
1492
1362
|
const contents = map({
|
|
1493
1363
|
$metadata: deserializeMetadata(output),
|
|
@@ -1500,40 +1370,9 @@ export const de_BatchGetDevicePositionCommand = async (output, context) => {
|
|
|
1500
1370
|
Object.assign(contents, doc);
|
|
1501
1371
|
return contents;
|
|
1502
1372
|
};
|
|
1503
|
-
const de_BatchGetDevicePositionCommandError = async (output, context) => {
|
|
1504
|
-
const parsedOutput = {
|
|
1505
|
-
...output,
|
|
1506
|
-
body: await parseErrorBody(output.body, context),
|
|
1507
|
-
};
|
|
1508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
|
-
switch (errorCode) {
|
|
1510
|
-
case "AccessDeniedException":
|
|
1511
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1512
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "InternalServerException":
|
|
1514
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ResourceNotFoundException":
|
|
1517
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
1518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "ThrottlingException":
|
|
1520
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1521
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ValidationException":
|
|
1523
|
-
case "com.amazonaws.location#ValidationException":
|
|
1524
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1525
|
-
default:
|
|
1526
|
-
const parsedBody = parsedOutput.body;
|
|
1527
|
-
return throwDefaultError({
|
|
1528
|
-
output,
|
|
1529
|
-
parsedBody,
|
|
1530
|
-
errorCode,
|
|
1531
|
-
});
|
|
1532
|
-
}
|
|
1533
|
-
};
|
|
1534
1373
|
export const de_BatchPutGeofenceCommand = async (output, context) => {
|
|
1535
1374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1536
|
-
return
|
|
1375
|
+
return de_CommandError(output, context);
|
|
1537
1376
|
}
|
|
1538
1377
|
const contents = map({
|
|
1539
1378
|
$metadata: deserializeMetadata(output),
|
|
@@ -1546,40 +1385,9 @@ export const de_BatchPutGeofenceCommand = async (output, context) => {
|
|
|
1546
1385
|
Object.assign(contents, doc);
|
|
1547
1386
|
return contents;
|
|
1548
1387
|
};
|
|
1549
|
-
const de_BatchPutGeofenceCommandError = async (output, context) => {
|
|
1550
|
-
const parsedOutput = {
|
|
1551
|
-
...output,
|
|
1552
|
-
body: await parseErrorBody(output.body, context),
|
|
1553
|
-
};
|
|
1554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
|
-
switch (errorCode) {
|
|
1556
|
-
case "AccessDeniedException":
|
|
1557
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1558
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "InternalServerException":
|
|
1560
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1561
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "ResourceNotFoundException":
|
|
1563
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
1564
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "ThrottlingException":
|
|
1566
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1567
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "ValidationException":
|
|
1569
|
-
case "com.amazonaws.location#ValidationException":
|
|
1570
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1571
|
-
default:
|
|
1572
|
-
const parsedBody = parsedOutput.body;
|
|
1573
|
-
return throwDefaultError({
|
|
1574
|
-
output,
|
|
1575
|
-
parsedBody,
|
|
1576
|
-
errorCode,
|
|
1577
|
-
});
|
|
1578
|
-
}
|
|
1579
|
-
};
|
|
1580
1388
|
export const de_BatchUpdateDevicePositionCommand = async (output, context) => {
|
|
1581
1389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1582
|
-
return
|
|
1390
|
+
return de_CommandError(output, context);
|
|
1583
1391
|
}
|
|
1584
1392
|
const contents = map({
|
|
1585
1393
|
$metadata: deserializeMetadata(output),
|
|
@@ -1591,40 +1399,9 @@ export const de_BatchUpdateDevicePositionCommand = async (output, context) => {
|
|
|
1591
1399
|
Object.assign(contents, doc);
|
|
1592
1400
|
return contents;
|
|
1593
1401
|
};
|
|
1594
|
-
const de_BatchUpdateDevicePositionCommandError = async (output, context) => {
|
|
1595
|
-
const parsedOutput = {
|
|
1596
|
-
...output,
|
|
1597
|
-
body: await parseErrorBody(output.body, context),
|
|
1598
|
-
};
|
|
1599
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1600
|
-
switch (errorCode) {
|
|
1601
|
-
case "AccessDeniedException":
|
|
1602
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1603
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "InternalServerException":
|
|
1605
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1606
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ResourceNotFoundException":
|
|
1608
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
1609
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1610
|
-
case "ThrottlingException":
|
|
1611
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1612
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1613
|
-
case "ValidationException":
|
|
1614
|
-
case "com.amazonaws.location#ValidationException":
|
|
1615
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1616
|
-
default:
|
|
1617
|
-
const parsedBody = parsedOutput.body;
|
|
1618
|
-
return throwDefaultError({
|
|
1619
|
-
output,
|
|
1620
|
-
parsedBody,
|
|
1621
|
-
errorCode,
|
|
1622
|
-
});
|
|
1623
|
-
}
|
|
1624
|
-
};
|
|
1625
1402
|
export const de_CalculateRouteCommand = async (output, context) => {
|
|
1626
1403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1627
|
-
return
|
|
1404
|
+
return de_CommandError(output, context);
|
|
1628
1405
|
}
|
|
1629
1406
|
const contents = map({
|
|
1630
1407
|
$metadata: deserializeMetadata(output),
|
|
@@ -1637,40 +1414,9 @@ export const de_CalculateRouteCommand = async (output, context) => {
|
|
|
1637
1414
|
Object.assign(contents, doc);
|
|
1638
1415
|
return contents;
|
|
1639
1416
|
};
|
|
1640
|
-
const de_CalculateRouteCommandError = async (output, context) => {
|
|
1641
|
-
const parsedOutput = {
|
|
1642
|
-
...output,
|
|
1643
|
-
body: await parseErrorBody(output.body, context),
|
|
1644
|
-
};
|
|
1645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1646
|
-
switch (errorCode) {
|
|
1647
|
-
case "AccessDeniedException":
|
|
1648
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1649
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "InternalServerException":
|
|
1651
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1652
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "ResourceNotFoundException":
|
|
1654
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
1655
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "ThrottlingException":
|
|
1657
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1658
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ValidationException":
|
|
1660
|
-
case "com.amazonaws.location#ValidationException":
|
|
1661
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1662
|
-
default:
|
|
1663
|
-
const parsedBody = parsedOutput.body;
|
|
1664
|
-
return throwDefaultError({
|
|
1665
|
-
output,
|
|
1666
|
-
parsedBody,
|
|
1667
|
-
errorCode,
|
|
1668
|
-
});
|
|
1669
|
-
}
|
|
1670
|
-
};
|
|
1671
1417
|
export const de_CalculateRouteMatrixCommand = async (output, context) => {
|
|
1672
1418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1673
|
-
return
|
|
1419
|
+
return de_CommandError(output, context);
|
|
1674
1420
|
}
|
|
1675
1421
|
const contents = map({
|
|
1676
1422
|
$metadata: deserializeMetadata(output),
|
|
@@ -1685,40 +1431,9 @@ export const de_CalculateRouteMatrixCommand = async (output, context) => {
|
|
|
1685
1431
|
Object.assign(contents, doc);
|
|
1686
1432
|
return contents;
|
|
1687
1433
|
};
|
|
1688
|
-
const de_CalculateRouteMatrixCommandError = async (output, context) => {
|
|
1689
|
-
const parsedOutput = {
|
|
1690
|
-
...output,
|
|
1691
|
-
body: await parseErrorBody(output.body, context),
|
|
1692
|
-
};
|
|
1693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
switch (errorCode) {
|
|
1695
|
-
case "AccessDeniedException":
|
|
1696
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1697
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1698
|
-
case "InternalServerException":
|
|
1699
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1700
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1701
|
-
case "ResourceNotFoundException":
|
|
1702
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
1703
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "ThrottlingException":
|
|
1705
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1706
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "ValidationException":
|
|
1708
|
-
case "com.amazonaws.location#ValidationException":
|
|
1709
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
return throwDefaultError({
|
|
1713
|
-
output,
|
|
1714
|
-
parsedBody,
|
|
1715
|
-
errorCode,
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
};
|
|
1719
1434
|
export const de_CreateGeofenceCollectionCommand = async (output, context) => {
|
|
1720
1435
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1721
|
-
return
|
|
1436
|
+
return de_CommandError(output, context);
|
|
1722
1437
|
}
|
|
1723
1438
|
const contents = map({
|
|
1724
1439
|
$metadata: deserializeMetadata(output),
|
|
@@ -1732,43 +1447,9 @@ export const de_CreateGeofenceCollectionCommand = async (output, context) => {
|
|
|
1732
1447
|
Object.assign(contents, doc);
|
|
1733
1448
|
return contents;
|
|
1734
1449
|
};
|
|
1735
|
-
const de_CreateGeofenceCollectionCommandError = async (output, context) => {
|
|
1736
|
-
const parsedOutput = {
|
|
1737
|
-
...output,
|
|
1738
|
-
body: await parseErrorBody(output.body, context),
|
|
1739
|
-
};
|
|
1740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
-
switch (errorCode) {
|
|
1742
|
-
case "AccessDeniedException":
|
|
1743
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1744
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "ConflictException":
|
|
1746
|
-
case "com.amazonaws.location#ConflictException":
|
|
1747
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "InternalServerException":
|
|
1749
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1750
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ServiceQuotaExceededException":
|
|
1752
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
1753
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ThrottlingException":
|
|
1755
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1756
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "ValidationException":
|
|
1758
|
-
case "com.amazonaws.location#ValidationException":
|
|
1759
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1760
|
-
default:
|
|
1761
|
-
const parsedBody = parsedOutput.body;
|
|
1762
|
-
return throwDefaultError({
|
|
1763
|
-
output,
|
|
1764
|
-
parsedBody,
|
|
1765
|
-
errorCode,
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
};
|
|
1769
1450
|
export const de_CreateKeyCommand = async (output, context) => {
|
|
1770
1451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1771
|
-
return
|
|
1452
|
+
return de_CommandError(output, context);
|
|
1772
1453
|
}
|
|
1773
1454
|
const contents = map({
|
|
1774
1455
|
$metadata: deserializeMetadata(output),
|
|
@@ -1783,43 +1464,9 @@ export const de_CreateKeyCommand = async (output, context) => {
|
|
|
1783
1464
|
Object.assign(contents, doc);
|
|
1784
1465
|
return contents;
|
|
1785
1466
|
};
|
|
1786
|
-
const de_CreateKeyCommandError = async (output, context) => {
|
|
1787
|
-
const parsedOutput = {
|
|
1788
|
-
...output,
|
|
1789
|
-
body: await parseErrorBody(output.body, context),
|
|
1790
|
-
};
|
|
1791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
|
-
switch (errorCode) {
|
|
1793
|
-
case "AccessDeniedException":
|
|
1794
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1795
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ConflictException":
|
|
1797
|
-
case "com.amazonaws.location#ConflictException":
|
|
1798
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "InternalServerException":
|
|
1800
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1801
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "ServiceQuotaExceededException":
|
|
1803
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
1804
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "ThrottlingException":
|
|
1806
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1807
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "ValidationException":
|
|
1809
|
-
case "com.amazonaws.location#ValidationException":
|
|
1810
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1811
|
-
default:
|
|
1812
|
-
const parsedBody = parsedOutput.body;
|
|
1813
|
-
return throwDefaultError({
|
|
1814
|
-
output,
|
|
1815
|
-
parsedBody,
|
|
1816
|
-
errorCode,
|
|
1817
|
-
});
|
|
1818
|
-
}
|
|
1819
|
-
};
|
|
1820
1467
|
export const de_CreateMapCommand = async (output, context) => {
|
|
1821
1468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1822
|
-
return
|
|
1469
|
+
return de_CommandError(output, context);
|
|
1823
1470
|
}
|
|
1824
1471
|
const contents = map({
|
|
1825
1472
|
$metadata: deserializeMetadata(output),
|
|
@@ -1833,43 +1480,9 @@ export const de_CreateMapCommand = async (output, context) => {
|
|
|
1833
1480
|
Object.assign(contents, doc);
|
|
1834
1481
|
return contents;
|
|
1835
1482
|
};
|
|
1836
|
-
const de_CreateMapCommandError = async (output, context) => {
|
|
1837
|
-
const parsedOutput = {
|
|
1838
|
-
...output,
|
|
1839
|
-
body: await parseErrorBody(output.body, context),
|
|
1840
|
-
};
|
|
1841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
-
switch (errorCode) {
|
|
1843
|
-
case "AccessDeniedException":
|
|
1844
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1845
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "ConflictException":
|
|
1847
|
-
case "com.amazonaws.location#ConflictException":
|
|
1848
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "InternalServerException":
|
|
1850
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1851
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ServiceQuotaExceededException":
|
|
1853
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
1854
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ThrottlingException":
|
|
1856
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1857
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "ValidationException":
|
|
1859
|
-
case "com.amazonaws.location#ValidationException":
|
|
1860
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1861
|
-
default:
|
|
1862
|
-
const parsedBody = parsedOutput.body;
|
|
1863
|
-
return throwDefaultError({
|
|
1864
|
-
output,
|
|
1865
|
-
parsedBody,
|
|
1866
|
-
errorCode,
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
};
|
|
1870
1483
|
export const de_CreatePlaceIndexCommand = async (output, context) => {
|
|
1871
1484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1872
|
-
return
|
|
1485
|
+
return de_CommandError(output, context);
|
|
1873
1486
|
}
|
|
1874
1487
|
const contents = map({
|
|
1875
1488
|
$metadata: deserializeMetadata(output),
|
|
@@ -1883,43 +1496,9 @@ export const de_CreatePlaceIndexCommand = async (output, context) => {
|
|
|
1883
1496
|
Object.assign(contents, doc);
|
|
1884
1497
|
return contents;
|
|
1885
1498
|
};
|
|
1886
|
-
const de_CreatePlaceIndexCommandError = async (output, context) => {
|
|
1887
|
-
const parsedOutput = {
|
|
1888
|
-
...output,
|
|
1889
|
-
body: await parseErrorBody(output.body, context),
|
|
1890
|
-
};
|
|
1891
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
|
-
switch (errorCode) {
|
|
1893
|
-
case "AccessDeniedException":
|
|
1894
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1895
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ConflictException":
|
|
1897
|
-
case "com.amazonaws.location#ConflictException":
|
|
1898
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "InternalServerException":
|
|
1900
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1901
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "ServiceQuotaExceededException":
|
|
1903
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
1904
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "ThrottlingException":
|
|
1906
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1907
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "ValidationException":
|
|
1909
|
-
case "com.amazonaws.location#ValidationException":
|
|
1910
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1911
|
-
default:
|
|
1912
|
-
const parsedBody = parsedOutput.body;
|
|
1913
|
-
return throwDefaultError({
|
|
1914
|
-
output,
|
|
1915
|
-
parsedBody,
|
|
1916
|
-
errorCode,
|
|
1917
|
-
});
|
|
1918
|
-
}
|
|
1919
|
-
};
|
|
1920
1499
|
export const de_CreateRouteCalculatorCommand = async (output, context) => {
|
|
1921
1500
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1922
|
-
return
|
|
1501
|
+
return de_CommandError(output, context);
|
|
1923
1502
|
}
|
|
1924
1503
|
const contents = map({
|
|
1925
1504
|
$metadata: deserializeMetadata(output),
|
|
@@ -1933,43 +1512,9 @@ export const de_CreateRouteCalculatorCommand = async (output, context) => {
|
|
|
1933
1512
|
Object.assign(contents, doc);
|
|
1934
1513
|
return contents;
|
|
1935
1514
|
};
|
|
1936
|
-
const de_CreateRouteCalculatorCommandError = async (output, context) => {
|
|
1937
|
-
const parsedOutput = {
|
|
1938
|
-
...output,
|
|
1939
|
-
body: await parseErrorBody(output.body, context),
|
|
1940
|
-
};
|
|
1941
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1942
|
-
switch (errorCode) {
|
|
1943
|
-
case "AccessDeniedException":
|
|
1944
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1945
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "ConflictException":
|
|
1947
|
-
case "com.amazonaws.location#ConflictException":
|
|
1948
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "InternalServerException":
|
|
1950
|
-
case "com.amazonaws.location#InternalServerException":
|
|
1951
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "ServiceQuotaExceededException":
|
|
1953
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
1954
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "ThrottlingException":
|
|
1956
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
1957
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "ValidationException":
|
|
1959
|
-
case "com.amazonaws.location#ValidationException":
|
|
1960
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1961
|
-
default:
|
|
1962
|
-
const parsedBody = parsedOutput.body;
|
|
1963
|
-
return throwDefaultError({
|
|
1964
|
-
output,
|
|
1965
|
-
parsedBody,
|
|
1966
|
-
errorCode,
|
|
1967
|
-
});
|
|
1968
|
-
}
|
|
1969
|
-
};
|
|
1970
1515
|
export const de_CreateTrackerCommand = async (output, context) => {
|
|
1971
1516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1972
|
-
return
|
|
1517
|
+
return de_CommandError(output, context);
|
|
1973
1518
|
}
|
|
1974
1519
|
const contents = map({
|
|
1975
1520
|
$metadata: deserializeMetadata(output),
|
|
@@ -1983,43 +1528,9 @@ export const de_CreateTrackerCommand = async (output, context) => {
|
|
|
1983
1528
|
Object.assign(contents, doc);
|
|
1984
1529
|
return contents;
|
|
1985
1530
|
};
|
|
1986
|
-
const de_CreateTrackerCommandError = async (output, context) => {
|
|
1987
|
-
const parsedOutput = {
|
|
1988
|
-
...output,
|
|
1989
|
-
body: await parseErrorBody(output.body, context),
|
|
1990
|
-
};
|
|
1991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1992
|
-
switch (errorCode) {
|
|
1993
|
-
case "AccessDeniedException":
|
|
1994
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
1995
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "ConflictException":
|
|
1997
|
-
case "com.amazonaws.location#ConflictException":
|
|
1998
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "InternalServerException":
|
|
2000
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "ServiceQuotaExceededException":
|
|
2003
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2004
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "ThrottlingException":
|
|
2006
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2007
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "ValidationException":
|
|
2009
|
-
case "com.amazonaws.location#ValidationException":
|
|
2010
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2011
|
-
default:
|
|
2012
|
-
const parsedBody = parsedOutput.body;
|
|
2013
|
-
return throwDefaultError({
|
|
2014
|
-
output,
|
|
2015
|
-
parsedBody,
|
|
2016
|
-
errorCode,
|
|
2017
|
-
});
|
|
2018
|
-
}
|
|
2019
|
-
};
|
|
2020
1531
|
export const de_DeleteGeofenceCollectionCommand = async (output, context) => {
|
|
2021
1532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2022
|
-
return
|
|
1533
|
+
return de_CommandError(output, context);
|
|
2023
1534
|
}
|
|
2024
1535
|
const contents = map({
|
|
2025
1536
|
$metadata: deserializeMetadata(output),
|
|
@@ -2027,40 +1538,19 @@ export const de_DeleteGeofenceCollectionCommand = async (output, context) => {
|
|
|
2027
1538
|
await collectBody(output.body, context);
|
|
2028
1539
|
return contents;
|
|
2029
1540
|
};
|
|
2030
|
-
const
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
body: await parseErrorBody(output.body, context),
|
|
2034
|
-
};
|
|
2035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
|
-
switch (errorCode) {
|
|
2037
|
-
case "AccessDeniedException":
|
|
2038
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2039
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "InternalServerException":
|
|
2041
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2042
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "ResourceNotFoundException":
|
|
2044
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2045
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "ThrottlingException":
|
|
2047
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2048
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "ValidationException":
|
|
2050
|
-
case "com.amazonaws.location#ValidationException":
|
|
2051
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2052
|
-
default:
|
|
2053
|
-
const parsedBody = parsedOutput.body;
|
|
2054
|
-
return throwDefaultError({
|
|
2055
|
-
output,
|
|
2056
|
-
parsedBody,
|
|
2057
|
-
errorCode,
|
|
2058
|
-
});
|
|
1541
|
+
export const de_DeleteKeyCommand = async (output, context) => {
|
|
1542
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1543
|
+
return de_CommandError(output, context);
|
|
2059
1544
|
}
|
|
1545
|
+
const contents = map({
|
|
1546
|
+
$metadata: deserializeMetadata(output),
|
|
1547
|
+
});
|
|
1548
|
+
await collectBody(output.body, context);
|
|
1549
|
+
return contents;
|
|
2060
1550
|
};
|
|
2061
|
-
export const
|
|
1551
|
+
export const de_DeleteMapCommand = async (output, context) => {
|
|
2062
1552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2063
|
-
return
|
|
1553
|
+
return de_CommandError(output, context);
|
|
2064
1554
|
}
|
|
2065
1555
|
const contents = map({
|
|
2066
1556
|
$metadata: deserializeMetadata(output),
|
|
@@ -2068,81 +1558,9 @@ export const de_DeleteKeyCommand = async (output, context) => {
|
|
|
2068
1558
|
await collectBody(output.body, context);
|
|
2069
1559
|
return contents;
|
|
2070
1560
|
};
|
|
2071
|
-
const de_DeleteKeyCommandError = async (output, context) => {
|
|
2072
|
-
const parsedOutput = {
|
|
2073
|
-
...output,
|
|
2074
|
-
body: await parseErrorBody(output.body, context),
|
|
2075
|
-
};
|
|
2076
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
-
switch (errorCode) {
|
|
2078
|
-
case "AccessDeniedException":
|
|
2079
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2080
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "InternalServerException":
|
|
2082
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2083
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "ResourceNotFoundException":
|
|
2085
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2086
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "ThrottlingException":
|
|
2088
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2089
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "ValidationException":
|
|
2091
|
-
case "com.amazonaws.location#ValidationException":
|
|
2092
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2093
|
-
default:
|
|
2094
|
-
const parsedBody = parsedOutput.body;
|
|
2095
|
-
return throwDefaultError({
|
|
2096
|
-
output,
|
|
2097
|
-
parsedBody,
|
|
2098
|
-
errorCode,
|
|
2099
|
-
});
|
|
2100
|
-
}
|
|
2101
|
-
};
|
|
2102
|
-
export const de_DeleteMapCommand = async (output, context) => {
|
|
2103
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2104
|
-
return de_DeleteMapCommandError(output, context);
|
|
2105
|
-
}
|
|
2106
|
-
const contents = map({
|
|
2107
|
-
$metadata: deserializeMetadata(output),
|
|
2108
|
-
});
|
|
2109
|
-
await collectBody(output.body, context);
|
|
2110
|
-
return contents;
|
|
2111
|
-
};
|
|
2112
|
-
const de_DeleteMapCommandError = 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 "AccessDeniedException":
|
|
2120
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2121
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "InternalServerException":
|
|
2123
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2124
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "ResourceNotFoundException":
|
|
2126
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2127
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "ThrottlingException":
|
|
2129
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2130
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2131
|
-
case "ValidationException":
|
|
2132
|
-
case "com.amazonaws.location#ValidationException":
|
|
2133
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2134
|
-
default:
|
|
2135
|
-
const parsedBody = parsedOutput.body;
|
|
2136
|
-
return throwDefaultError({
|
|
2137
|
-
output,
|
|
2138
|
-
parsedBody,
|
|
2139
|
-
errorCode,
|
|
2140
|
-
});
|
|
2141
|
-
}
|
|
2142
|
-
};
|
|
2143
1561
|
export const de_DeletePlaceIndexCommand = async (output, context) => {
|
|
2144
1562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2145
|
-
return
|
|
1563
|
+
return de_CommandError(output, context);
|
|
2146
1564
|
}
|
|
2147
1565
|
const contents = map({
|
|
2148
1566
|
$metadata: deserializeMetadata(output),
|
|
@@ -2150,40 +1568,9 @@ export const de_DeletePlaceIndexCommand = async (output, context) => {
|
|
|
2150
1568
|
await collectBody(output.body, context);
|
|
2151
1569
|
return contents;
|
|
2152
1570
|
};
|
|
2153
|
-
const de_DeletePlaceIndexCommandError = async (output, context) => {
|
|
2154
|
-
const parsedOutput = {
|
|
2155
|
-
...output,
|
|
2156
|
-
body: await parseErrorBody(output.body, context),
|
|
2157
|
-
};
|
|
2158
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2159
|
-
switch (errorCode) {
|
|
2160
|
-
case "AccessDeniedException":
|
|
2161
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2162
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "InternalServerException":
|
|
2164
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2165
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "ResourceNotFoundException":
|
|
2167
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2168
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "ThrottlingException":
|
|
2170
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2171
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "ValidationException":
|
|
2173
|
-
case "com.amazonaws.location#ValidationException":
|
|
2174
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2175
|
-
default:
|
|
2176
|
-
const parsedBody = parsedOutput.body;
|
|
2177
|
-
return throwDefaultError({
|
|
2178
|
-
output,
|
|
2179
|
-
parsedBody,
|
|
2180
|
-
errorCode,
|
|
2181
|
-
});
|
|
2182
|
-
}
|
|
2183
|
-
};
|
|
2184
1571
|
export const de_DeleteRouteCalculatorCommand = async (output, context) => {
|
|
2185
1572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2186
|
-
return
|
|
1573
|
+
return de_CommandError(output, context);
|
|
2187
1574
|
}
|
|
2188
1575
|
const contents = map({
|
|
2189
1576
|
$metadata: deserializeMetadata(output),
|
|
@@ -2191,40 +1578,9 @@ export const de_DeleteRouteCalculatorCommand = async (output, context) => {
|
|
|
2191
1578
|
await collectBody(output.body, context);
|
|
2192
1579
|
return contents;
|
|
2193
1580
|
};
|
|
2194
|
-
const de_DeleteRouteCalculatorCommandError = async (output, context) => {
|
|
2195
|
-
const parsedOutput = {
|
|
2196
|
-
...output,
|
|
2197
|
-
body: await parseErrorBody(output.body, context),
|
|
2198
|
-
};
|
|
2199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
|
-
switch (errorCode) {
|
|
2201
|
-
case "AccessDeniedException":
|
|
2202
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2203
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "InternalServerException":
|
|
2205
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2206
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ResourceNotFoundException":
|
|
2208
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2209
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ThrottlingException":
|
|
2211
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2212
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "ValidationException":
|
|
2214
|
-
case "com.amazonaws.location#ValidationException":
|
|
2215
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2216
|
-
default:
|
|
2217
|
-
const parsedBody = parsedOutput.body;
|
|
2218
|
-
return throwDefaultError({
|
|
2219
|
-
output,
|
|
2220
|
-
parsedBody,
|
|
2221
|
-
errorCode,
|
|
2222
|
-
});
|
|
2223
|
-
}
|
|
2224
|
-
};
|
|
2225
1581
|
export const de_DeleteTrackerCommand = async (output, context) => {
|
|
2226
1582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2227
|
-
return
|
|
1583
|
+
return de_CommandError(output, context);
|
|
2228
1584
|
}
|
|
2229
1585
|
const contents = map({
|
|
2230
1586
|
$metadata: deserializeMetadata(output),
|
|
@@ -2232,40 +1588,9 @@ export const de_DeleteTrackerCommand = async (output, context) => {
|
|
|
2232
1588
|
await collectBody(output.body, context);
|
|
2233
1589
|
return contents;
|
|
2234
1590
|
};
|
|
2235
|
-
const de_DeleteTrackerCommandError = async (output, context) => {
|
|
2236
|
-
const parsedOutput = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseErrorBody(output.body, context),
|
|
2239
|
-
};
|
|
2240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
-
switch (errorCode) {
|
|
2242
|
-
case "AccessDeniedException":
|
|
2243
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "InternalServerException":
|
|
2246
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "ResourceNotFoundException":
|
|
2249
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2250
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "ThrottlingException":
|
|
2252
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2253
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "ValidationException":
|
|
2255
|
-
case "com.amazonaws.location#ValidationException":
|
|
2256
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2257
|
-
default:
|
|
2258
|
-
const parsedBody = parsedOutput.body;
|
|
2259
|
-
return throwDefaultError({
|
|
2260
|
-
output,
|
|
2261
|
-
parsedBody,
|
|
2262
|
-
errorCode,
|
|
2263
|
-
});
|
|
2264
|
-
}
|
|
2265
|
-
};
|
|
2266
1591
|
export const de_DescribeGeofenceCollectionCommand = async (output, context) => {
|
|
2267
1592
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2268
|
-
return
|
|
1593
|
+
return de_CommandError(output, context);
|
|
2269
1594
|
}
|
|
2270
1595
|
const contents = map({
|
|
2271
1596
|
$metadata: deserializeMetadata(output),
|
|
@@ -2286,40 +1611,9 @@ export const de_DescribeGeofenceCollectionCommand = async (output, context) => {
|
|
|
2286
1611
|
Object.assign(contents, doc);
|
|
2287
1612
|
return contents;
|
|
2288
1613
|
};
|
|
2289
|
-
const de_DescribeGeofenceCollectionCommandError = async (output, context) => {
|
|
2290
|
-
const parsedOutput = {
|
|
2291
|
-
...output,
|
|
2292
|
-
body: await parseErrorBody(output.body, context),
|
|
2293
|
-
};
|
|
2294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2295
|
-
switch (errorCode) {
|
|
2296
|
-
case "AccessDeniedException":
|
|
2297
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2298
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "InternalServerException":
|
|
2300
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2301
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2302
|
-
case "ResourceNotFoundException":
|
|
2303
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "ThrottlingException":
|
|
2306
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2307
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "ValidationException":
|
|
2309
|
-
case "com.amazonaws.location#ValidationException":
|
|
2310
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2311
|
-
default:
|
|
2312
|
-
const parsedBody = parsedOutput.body;
|
|
2313
|
-
return throwDefaultError({
|
|
2314
|
-
output,
|
|
2315
|
-
parsedBody,
|
|
2316
|
-
errorCode,
|
|
2317
|
-
});
|
|
2318
|
-
}
|
|
2319
|
-
};
|
|
2320
1614
|
export const de_DescribeKeyCommand = async (output, context) => {
|
|
2321
1615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2322
|
-
return
|
|
1616
|
+
return de_CommandError(output, context);
|
|
2323
1617
|
}
|
|
2324
1618
|
const contents = map({
|
|
2325
1619
|
$metadata: deserializeMetadata(output),
|
|
@@ -2339,40 +1633,9 @@ export const de_DescribeKeyCommand = async (output, context) => {
|
|
|
2339
1633
|
Object.assign(contents, doc);
|
|
2340
1634
|
return contents;
|
|
2341
1635
|
};
|
|
2342
|
-
const de_DescribeKeyCommandError = async (output, context) => {
|
|
2343
|
-
const parsedOutput = {
|
|
2344
|
-
...output,
|
|
2345
|
-
body: await parseErrorBody(output.body, context),
|
|
2346
|
-
};
|
|
2347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2348
|
-
switch (errorCode) {
|
|
2349
|
-
case "AccessDeniedException":
|
|
2350
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2351
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "InternalServerException":
|
|
2353
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2354
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "ResourceNotFoundException":
|
|
2356
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2358
|
-
case "ThrottlingException":
|
|
2359
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2360
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2361
|
-
case "ValidationException":
|
|
2362
|
-
case "com.amazonaws.location#ValidationException":
|
|
2363
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2364
|
-
default:
|
|
2365
|
-
const parsedBody = parsedOutput.body;
|
|
2366
|
-
return throwDefaultError({
|
|
2367
|
-
output,
|
|
2368
|
-
parsedBody,
|
|
2369
|
-
errorCode,
|
|
2370
|
-
});
|
|
2371
|
-
}
|
|
2372
|
-
};
|
|
2373
1636
|
export const de_DescribeMapCommand = async (output, context) => {
|
|
2374
1637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2375
|
-
return
|
|
1638
|
+
return de_CommandError(output, context);
|
|
2376
1639
|
}
|
|
2377
1640
|
const contents = map({
|
|
2378
1641
|
$metadata: deserializeMetadata(output),
|
|
@@ -2392,40 +1655,9 @@ export const de_DescribeMapCommand = async (output, context) => {
|
|
|
2392
1655
|
Object.assign(contents, doc);
|
|
2393
1656
|
return contents;
|
|
2394
1657
|
};
|
|
2395
|
-
const de_DescribeMapCommandError = async (output, context) => {
|
|
2396
|
-
const parsedOutput = {
|
|
2397
|
-
...output,
|
|
2398
|
-
body: await parseErrorBody(output.body, context),
|
|
2399
|
-
};
|
|
2400
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2401
|
-
switch (errorCode) {
|
|
2402
|
-
case "AccessDeniedException":
|
|
2403
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2404
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2405
|
-
case "InternalServerException":
|
|
2406
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2407
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "ResourceNotFoundException":
|
|
2409
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2410
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "ThrottlingException":
|
|
2412
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2413
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2414
|
-
case "ValidationException":
|
|
2415
|
-
case "com.amazonaws.location#ValidationException":
|
|
2416
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2417
|
-
default:
|
|
2418
|
-
const parsedBody = parsedOutput.body;
|
|
2419
|
-
return throwDefaultError({
|
|
2420
|
-
output,
|
|
2421
|
-
parsedBody,
|
|
2422
|
-
errorCode,
|
|
2423
|
-
});
|
|
2424
|
-
}
|
|
2425
|
-
};
|
|
2426
1658
|
export const de_DescribePlaceIndexCommand = async (output, context) => {
|
|
2427
1659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2428
|
-
return
|
|
1660
|
+
return de_CommandError(output, context);
|
|
2429
1661
|
}
|
|
2430
1662
|
const contents = map({
|
|
2431
1663
|
$metadata: deserializeMetadata(output),
|
|
@@ -2445,40 +1677,9 @@ export const de_DescribePlaceIndexCommand = async (output, context) => {
|
|
|
2445
1677
|
Object.assign(contents, doc);
|
|
2446
1678
|
return contents;
|
|
2447
1679
|
};
|
|
2448
|
-
const de_DescribePlaceIndexCommandError = async (output, context) => {
|
|
2449
|
-
const parsedOutput = {
|
|
2450
|
-
...output,
|
|
2451
|
-
body: await parseErrorBody(output.body, context),
|
|
2452
|
-
};
|
|
2453
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2454
|
-
switch (errorCode) {
|
|
2455
|
-
case "AccessDeniedException":
|
|
2456
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2457
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "InternalServerException":
|
|
2459
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2460
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "ResourceNotFoundException":
|
|
2462
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2463
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "ThrottlingException":
|
|
2465
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2466
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "ValidationException":
|
|
2468
|
-
case "com.amazonaws.location#ValidationException":
|
|
2469
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2470
|
-
default:
|
|
2471
|
-
const parsedBody = parsedOutput.body;
|
|
2472
|
-
return throwDefaultError({
|
|
2473
|
-
output,
|
|
2474
|
-
parsedBody,
|
|
2475
|
-
errorCode,
|
|
2476
|
-
});
|
|
2477
|
-
}
|
|
2478
|
-
};
|
|
2479
1680
|
export const de_DescribeRouteCalculatorCommand = async (output, context) => {
|
|
2480
1681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2481
|
-
return
|
|
1682
|
+
return de_CommandError(output, context);
|
|
2482
1683
|
}
|
|
2483
1684
|
const contents = map({
|
|
2484
1685
|
$metadata: deserializeMetadata(output),
|
|
@@ -2497,40 +1698,9 @@ export const de_DescribeRouteCalculatorCommand = async (output, context) => {
|
|
|
2497
1698
|
Object.assign(contents, doc);
|
|
2498
1699
|
return contents;
|
|
2499
1700
|
};
|
|
2500
|
-
const de_DescribeRouteCalculatorCommandError = async (output, context) => {
|
|
2501
|
-
const parsedOutput = {
|
|
2502
|
-
...output,
|
|
2503
|
-
body: await parseErrorBody(output.body, context),
|
|
2504
|
-
};
|
|
2505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2506
|
-
switch (errorCode) {
|
|
2507
|
-
case "AccessDeniedException":
|
|
2508
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "InternalServerException":
|
|
2511
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2512
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "ResourceNotFoundException":
|
|
2514
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2515
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2516
|
-
case "ThrottlingException":
|
|
2517
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2518
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2519
|
-
case "ValidationException":
|
|
2520
|
-
case "com.amazonaws.location#ValidationException":
|
|
2521
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2522
|
-
default:
|
|
2523
|
-
const parsedBody = parsedOutput.body;
|
|
2524
|
-
return throwDefaultError({
|
|
2525
|
-
output,
|
|
2526
|
-
parsedBody,
|
|
2527
|
-
errorCode,
|
|
2528
|
-
});
|
|
2529
|
-
}
|
|
2530
|
-
};
|
|
2531
1701
|
export const de_DescribeTrackerCommand = async (output, context) => {
|
|
2532
1702
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2533
|
-
return
|
|
1703
|
+
return de_CommandError(output, context);
|
|
2534
1704
|
}
|
|
2535
1705
|
const contents = map({
|
|
2536
1706
|
$metadata: deserializeMetadata(output),
|
|
@@ -2553,40 +1723,9 @@ export const de_DescribeTrackerCommand = async (output, context) => {
|
|
|
2553
1723
|
Object.assign(contents, doc);
|
|
2554
1724
|
return contents;
|
|
2555
1725
|
};
|
|
2556
|
-
const de_DescribeTrackerCommandError = async (output, context) => {
|
|
2557
|
-
const parsedOutput = {
|
|
2558
|
-
...output,
|
|
2559
|
-
body: await parseErrorBody(output.body, context),
|
|
2560
|
-
};
|
|
2561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2562
|
-
switch (errorCode) {
|
|
2563
|
-
case "AccessDeniedException":
|
|
2564
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2565
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2566
|
-
case "InternalServerException":
|
|
2567
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2568
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2569
|
-
case "ResourceNotFoundException":
|
|
2570
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2571
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2572
|
-
case "ThrottlingException":
|
|
2573
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2574
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2575
|
-
case "ValidationException":
|
|
2576
|
-
case "com.amazonaws.location#ValidationException":
|
|
2577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2578
|
-
default:
|
|
2579
|
-
const parsedBody = parsedOutput.body;
|
|
2580
|
-
return throwDefaultError({
|
|
2581
|
-
output,
|
|
2582
|
-
parsedBody,
|
|
2583
|
-
errorCode,
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
};
|
|
2587
1726
|
export const de_DisassociateTrackerConsumerCommand = async (output, context) => {
|
|
2588
1727
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2589
|
-
return
|
|
1728
|
+
return de_CommandError(output, context);
|
|
2590
1729
|
}
|
|
2591
1730
|
const contents = map({
|
|
2592
1731
|
$metadata: deserializeMetadata(output),
|
|
@@ -2594,40 +1733,9 @@ export const de_DisassociateTrackerConsumerCommand = async (output, context) =>
|
|
|
2594
1733
|
await collectBody(output.body, context);
|
|
2595
1734
|
return contents;
|
|
2596
1735
|
};
|
|
2597
|
-
const de_DisassociateTrackerConsumerCommandError = async (output, context) => {
|
|
2598
|
-
const parsedOutput = {
|
|
2599
|
-
...output,
|
|
2600
|
-
body: await parseErrorBody(output.body, context),
|
|
2601
|
-
};
|
|
2602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2603
|
-
switch (errorCode) {
|
|
2604
|
-
case "AccessDeniedException":
|
|
2605
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2606
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "InternalServerException":
|
|
2608
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2609
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "ResourceNotFoundException":
|
|
2611
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2612
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "ThrottlingException":
|
|
2614
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2615
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "ValidationException":
|
|
2617
|
-
case "com.amazonaws.location#ValidationException":
|
|
2618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2619
|
-
default:
|
|
2620
|
-
const parsedBody = parsedOutput.body;
|
|
2621
|
-
return throwDefaultError({
|
|
2622
|
-
output,
|
|
2623
|
-
parsedBody,
|
|
2624
|
-
errorCode,
|
|
2625
|
-
});
|
|
2626
|
-
}
|
|
2627
|
-
};
|
|
2628
1736
|
export const de_GetDevicePositionCommand = async (output, context) => {
|
|
2629
1737
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2630
|
-
return
|
|
1738
|
+
return de_CommandError(output, context);
|
|
2631
1739
|
}
|
|
2632
1740
|
const contents = map({
|
|
2633
1741
|
$metadata: deserializeMetadata(output),
|
|
@@ -2644,40 +1752,9 @@ export const de_GetDevicePositionCommand = async (output, context) => {
|
|
|
2644
1752
|
Object.assign(contents, doc);
|
|
2645
1753
|
return contents;
|
|
2646
1754
|
};
|
|
2647
|
-
const de_GetDevicePositionCommandError = async (output, context) => {
|
|
2648
|
-
const parsedOutput = {
|
|
2649
|
-
...output,
|
|
2650
|
-
body: await parseErrorBody(output.body, context),
|
|
2651
|
-
};
|
|
2652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2653
|
-
switch (errorCode) {
|
|
2654
|
-
case "AccessDeniedException":
|
|
2655
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2656
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2657
|
-
case "InternalServerException":
|
|
2658
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2659
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "ResourceNotFoundException":
|
|
2661
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2662
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "ThrottlingException":
|
|
2664
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2665
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "ValidationException":
|
|
2667
|
-
case "com.amazonaws.location#ValidationException":
|
|
2668
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2669
|
-
default:
|
|
2670
|
-
const parsedBody = parsedOutput.body;
|
|
2671
|
-
return throwDefaultError({
|
|
2672
|
-
output,
|
|
2673
|
-
parsedBody,
|
|
2674
|
-
errorCode,
|
|
2675
|
-
});
|
|
2676
|
-
}
|
|
2677
|
-
};
|
|
2678
1755
|
export const de_GetDevicePositionHistoryCommand = async (output, context) => {
|
|
2679
1756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2680
|
-
return
|
|
1757
|
+
return de_CommandError(output, context);
|
|
2681
1758
|
}
|
|
2682
1759
|
const contents = map({
|
|
2683
1760
|
$metadata: deserializeMetadata(output),
|
|
@@ -2690,40 +1767,9 @@ export const de_GetDevicePositionHistoryCommand = async (output, context) => {
|
|
|
2690
1767
|
Object.assign(contents, doc);
|
|
2691
1768
|
return contents;
|
|
2692
1769
|
};
|
|
2693
|
-
const de_GetDevicePositionHistoryCommandError = async (output, context) => {
|
|
2694
|
-
const parsedOutput = {
|
|
2695
|
-
...output,
|
|
2696
|
-
body: await parseErrorBody(output.body, context),
|
|
2697
|
-
};
|
|
2698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2699
|
-
switch (errorCode) {
|
|
2700
|
-
case "AccessDeniedException":
|
|
2701
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2702
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2703
|
-
case "InternalServerException":
|
|
2704
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2705
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "ResourceNotFoundException":
|
|
2707
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2708
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "ThrottlingException":
|
|
2710
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2711
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "ValidationException":
|
|
2713
|
-
case "com.amazonaws.location#ValidationException":
|
|
2714
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2715
|
-
default:
|
|
2716
|
-
const parsedBody = parsedOutput.body;
|
|
2717
|
-
return throwDefaultError({
|
|
2718
|
-
output,
|
|
2719
|
-
parsedBody,
|
|
2720
|
-
errorCode,
|
|
2721
|
-
});
|
|
2722
|
-
}
|
|
2723
|
-
};
|
|
2724
1770
|
export const de_GetGeofenceCommand = async (output, context) => {
|
|
2725
1771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2726
|
-
return
|
|
1772
|
+
return de_CommandError(output, context);
|
|
2727
1773
|
}
|
|
2728
1774
|
const contents = map({
|
|
2729
1775
|
$metadata: deserializeMetadata(output),
|
|
@@ -2740,40 +1786,22 @@ export const de_GetGeofenceCommand = async (output, context) => {
|
|
|
2740
1786
|
Object.assign(contents, doc);
|
|
2741
1787
|
return contents;
|
|
2742
1788
|
};
|
|
2743
|
-
const
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
body: await parseErrorBody(output.body, context),
|
|
2747
|
-
};
|
|
2748
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2749
|
-
switch (errorCode) {
|
|
2750
|
-
case "AccessDeniedException":
|
|
2751
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2752
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2753
|
-
case "InternalServerException":
|
|
2754
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2755
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "ResourceNotFoundException":
|
|
2757
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "ThrottlingException":
|
|
2760
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2761
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "ValidationException":
|
|
2763
|
-
case "com.amazonaws.location#ValidationException":
|
|
2764
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2765
|
-
default:
|
|
2766
|
-
const parsedBody = parsedOutput.body;
|
|
2767
|
-
return throwDefaultError({
|
|
2768
|
-
output,
|
|
2769
|
-
parsedBody,
|
|
2770
|
-
errorCode,
|
|
2771
|
-
});
|
|
1789
|
+
export const de_GetMapGlyphsCommand = async (output, context) => {
|
|
1790
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1791
|
+
return de_CommandError(output, context);
|
|
2772
1792
|
}
|
|
1793
|
+
const contents = map({
|
|
1794
|
+
$metadata: deserializeMetadata(output),
|
|
1795
|
+
[_CT]: [, output.headers[_ct]],
|
|
1796
|
+
[_CC]: [, output.headers[_cc]],
|
|
1797
|
+
});
|
|
1798
|
+
const data = await collectBody(output.body, context);
|
|
1799
|
+
contents.Blob = data;
|
|
1800
|
+
return contents;
|
|
2773
1801
|
};
|
|
2774
|
-
export const
|
|
1802
|
+
export const de_GetMapSpritesCommand = async (output, context) => {
|
|
2775
1803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2776
|
-
return
|
|
1804
|
+
return de_CommandError(output, context);
|
|
2777
1805
|
}
|
|
2778
1806
|
const contents = map({
|
|
2779
1807
|
$metadata: deserializeMetadata(output),
|
|
@@ -2784,40 +1812,22 @@ export const de_GetMapGlyphsCommand = async (output, context) => {
|
|
|
2784
1812
|
contents.Blob = data;
|
|
2785
1813
|
return contents;
|
|
2786
1814
|
};
|
|
2787
|
-
const
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
body: await parseErrorBody(output.body, context),
|
|
2791
|
-
};
|
|
2792
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2793
|
-
switch (errorCode) {
|
|
2794
|
-
case "AccessDeniedException":
|
|
2795
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2796
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2797
|
-
case "InternalServerException":
|
|
2798
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2799
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "ResourceNotFoundException":
|
|
2801
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2802
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "ThrottlingException":
|
|
2804
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2805
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2806
|
-
case "ValidationException":
|
|
2807
|
-
case "com.amazonaws.location#ValidationException":
|
|
2808
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2809
|
-
default:
|
|
2810
|
-
const parsedBody = parsedOutput.body;
|
|
2811
|
-
return throwDefaultError({
|
|
2812
|
-
output,
|
|
2813
|
-
parsedBody,
|
|
2814
|
-
errorCode,
|
|
2815
|
-
});
|
|
1815
|
+
export const de_GetMapStyleDescriptorCommand = async (output, context) => {
|
|
1816
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1817
|
+
return de_CommandError(output, context);
|
|
2816
1818
|
}
|
|
1819
|
+
const contents = map({
|
|
1820
|
+
$metadata: deserializeMetadata(output),
|
|
1821
|
+
[_CT]: [, output.headers[_ct]],
|
|
1822
|
+
[_CC]: [, output.headers[_cc]],
|
|
1823
|
+
});
|
|
1824
|
+
const data = await collectBody(output.body, context);
|
|
1825
|
+
contents.Blob = data;
|
|
1826
|
+
return contents;
|
|
2817
1827
|
};
|
|
2818
|
-
export const
|
|
1828
|
+
export const de_GetMapTileCommand = async (output, context) => {
|
|
2819
1829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2820
|
-
return
|
|
1830
|
+
return de_CommandError(output, context);
|
|
2821
1831
|
}
|
|
2822
1832
|
const contents = map({
|
|
2823
1833
|
$metadata: deserializeMetadata(output),
|
|
@@ -2828,128 +1838,9 @@ export const de_GetMapSpritesCommand = async (output, context) => {
|
|
|
2828
1838
|
contents.Blob = data;
|
|
2829
1839
|
return contents;
|
|
2830
1840
|
};
|
|
2831
|
-
const de_GetMapSpritesCommandError = async (output, context) => {
|
|
2832
|
-
const parsedOutput = {
|
|
2833
|
-
...output,
|
|
2834
|
-
body: await parseErrorBody(output.body, context),
|
|
2835
|
-
};
|
|
2836
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2837
|
-
switch (errorCode) {
|
|
2838
|
-
case "AccessDeniedException":
|
|
2839
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2840
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "InternalServerException":
|
|
2842
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2843
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2844
|
-
case "ResourceNotFoundException":
|
|
2845
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2846
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "ThrottlingException":
|
|
2848
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2849
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2850
|
-
case "ValidationException":
|
|
2851
|
-
case "com.amazonaws.location#ValidationException":
|
|
2852
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2853
|
-
default:
|
|
2854
|
-
const parsedBody = parsedOutput.body;
|
|
2855
|
-
return throwDefaultError({
|
|
2856
|
-
output,
|
|
2857
|
-
parsedBody,
|
|
2858
|
-
errorCode,
|
|
2859
|
-
});
|
|
2860
|
-
}
|
|
2861
|
-
};
|
|
2862
|
-
export const de_GetMapStyleDescriptorCommand = async (output, context) => {
|
|
2863
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2864
|
-
return de_GetMapStyleDescriptorCommandError(output, context);
|
|
2865
|
-
}
|
|
2866
|
-
const contents = map({
|
|
2867
|
-
$metadata: deserializeMetadata(output),
|
|
2868
|
-
[_CT]: [, output.headers[_ct]],
|
|
2869
|
-
[_CC]: [, output.headers[_cc]],
|
|
2870
|
-
});
|
|
2871
|
-
const data = await collectBody(output.body, context);
|
|
2872
|
-
contents.Blob = data;
|
|
2873
|
-
return contents;
|
|
2874
|
-
};
|
|
2875
|
-
const de_GetMapStyleDescriptorCommandError = async (output, context) => {
|
|
2876
|
-
const parsedOutput = {
|
|
2877
|
-
...output,
|
|
2878
|
-
body: await parseErrorBody(output.body, context),
|
|
2879
|
-
};
|
|
2880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2881
|
-
switch (errorCode) {
|
|
2882
|
-
case "AccessDeniedException":
|
|
2883
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2884
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "InternalServerException":
|
|
2886
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2887
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "ResourceNotFoundException":
|
|
2889
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2890
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2891
|
-
case "ThrottlingException":
|
|
2892
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2893
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2894
|
-
case "ValidationException":
|
|
2895
|
-
case "com.amazonaws.location#ValidationException":
|
|
2896
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2897
|
-
default:
|
|
2898
|
-
const parsedBody = parsedOutput.body;
|
|
2899
|
-
return throwDefaultError({
|
|
2900
|
-
output,
|
|
2901
|
-
parsedBody,
|
|
2902
|
-
errorCode,
|
|
2903
|
-
});
|
|
2904
|
-
}
|
|
2905
|
-
};
|
|
2906
|
-
export const de_GetMapTileCommand = async (output, context) => {
|
|
2907
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2908
|
-
return de_GetMapTileCommandError(output, context);
|
|
2909
|
-
}
|
|
2910
|
-
const contents = map({
|
|
2911
|
-
$metadata: deserializeMetadata(output),
|
|
2912
|
-
[_CT]: [, output.headers[_ct]],
|
|
2913
|
-
[_CC]: [, output.headers[_cc]],
|
|
2914
|
-
});
|
|
2915
|
-
const data = await collectBody(output.body, context);
|
|
2916
|
-
contents.Blob = data;
|
|
2917
|
-
return contents;
|
|
2918
|
-
};
|
|
2919
|
-
const de_GetMapTileCommandError = async (output, context) => {
|
|
2920
|
-
const parsedOutput = {
|
|
2921
|
-
...output,
|
|
2922
|
-
body: await parseErrorBody(output.body, context),
|
|
2923
|
-
};
|
|
2924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
|
-
switch (errorCode) {
|
|
2926
|
-
case "AccessDeniedException":
|
|
2927
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2928
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "InternalServerException":
|
|
2930
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2931
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "ResourceNotFoundException":
|
|
2933
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2934
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "ThrottlingException":
|
|
2936
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2937
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "ValidationException":
|
|
2939
|
-
case "com.amazonaws.location#ValidationException":
|
|
2940
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2941
|
-
default:
|
|
2942
|
-
const parsedBody = parsedOutput.body;
|
|
2943
|
-
return throwDefaultError({
|
|
2944
|
-
output,
|
|
2945
|
-
parsedBody,
|
|
2946
|
-
errorCode,
|
|
2947
|
-
});
|
|
2948
|
-
}
|
|
2949
|
-
};
|
|
2950
1841
|
export const de_GetPlaceCommand = async (output, context) => {
|
|
2951
1842
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2952
|
-
return
|
|
1843
|
+
return de_CommandError(output, context);
|
|
2953
1844
|
}
|
|
2954
1845
|
const contents = map({
|
|
2955
1846
|
$metadata: deserializeMetadata(output),
|
|
@@ -2961,40 +1852,9 @@ export const de_GetPlaceCommand = async (output, context) => {
|
|
|
2961
1852
|
Object.assign(contents, doc);
|
|
2962
1853
|
return contents;
|
|
2963
1854
|
};
|
|
2964
|
-
const de_GetPlaceCommandError = async (output, context) => {
|
|
2965
|
-
const parsedOutput = {
|
|
2966
|
-
...output,
|
|
2967
|
-
body: await parseErrorBody(output.body, context),
|
|
2968
|
-
};
|
|
2969
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2970
|
-
switch (errorCode) {
|
|
2971
|
-
case "AccessDeniedException":
|
|
2972
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2973
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "InternalServerException":
|
|
2975
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2976
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "ResourceNotFoundException":
|
|
2978
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2979
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2980
|
-
case "ThrottlingException":
|
|
2981
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2982
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2983
|
-
case "ValidationException":
|
|
2984
|
-
case "com.amazonaws.location#ValidationException":
|
|
2985
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2986
|
-
default:
|
|
2987
|
-
const parsedBody = parsedOutput.body;
|
|
2988
|
-
return throwDefaultError({
|
|
2989
|
-
output,
|
|
2990
|
-
parsedBody,
|
|
2991
|
-
errorCode,
|
|
2992
|
-
});
|
|
2993
|
-
}
|
|
2994
|
-
};
|
|
2995
1855
|
export const de_ListDevicePositionsCommand = async (output, context) => {
|
|
2996
1856
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2997
|
-
return
|
|
1857
|
+
return de_CommandError(output, context);
|
|
2998
1858
|
}
|
|
2999
1859
|
const contents = map({
|
|
3000
1860
|
$metadata: deserializeMetadata(output),
|
|
@@ -3007,37 +1867,9 @@ export const de_ListDevicePositionsCommand = async (output, context) => {
|
|
|
3007
1867
|
Object.assign(contents, doc);
|
|
3008
1868
|
return contents;
|
|
3009
1869
|
};
|
|
3010
|
-
const de_ListDevicePositionsCommandError = async (output, context) => {
|
|
3011
|
-
const parsedOutput = {
|
|
3012
|
-
...output,
|
|
3013
|
-
body: await parseErrorBody(output.body, context),
|
|
3014
|
-
};
|
|
3015
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3016
|
-
switch (errorCode) {
|
|
3017
|
-
case "AccessDeniedException":
|
|
3018
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3019
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3020
|
-
case "InternalServerException":
|
|
3021
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3022
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3023
|
-
case "ThrottlingException":
|
|
3024
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3025
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3026
|
-
case "ValidationException":
|
|
3027
|
-
case "com.amazonaws.location#ValidationException":
|
|
3028
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3029
|
-
default:
|
|
3030
|
-
const parsedBody = parsedOutput.body;
|
|
3031
|
-
return throwDefaultError({
|
|
3032
|
-
output,
|
|
3033
|
-
parsedBody,
|
|
3034
|
-
errorCode,
|
|
3035
|
-
});
|
|
3036
|
-
}
|
|
3037
|
-
};
|
|
3038
1870
|
export const de_ListGeofenceCollectionsCommand = async (output, context) => {
|
|
3039
1871
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3040
|
-
return
|
|
1872
|
+
return de_CommandError(output, context);
|
|
3041
1873
|
}
|
|
3042
1874
|
const contents = map({
|
|
3043
1875
|
$metadata: deserializeMetadata(output),
|
|
@@ -3050,37 +1882,9 @@ export const de_ListGeofenceCollectionsCommand = async (output, context) => {
|
|
|
3050
1882
|
Object.assign(contents, doc);
|
|
3051
1883
|
return contents;
|
|
3052
1884
|
};
|
|
3053
|
-
const de_ListGeofenceCollectionsCommandError = async (output, context) => {
|
|
3054
|
-
const parsedOutput = {
|
|
3055
|
-
...output,
|
|
3056
|
-
body: await parseErrorBody(output.body, context),
|
|
3057
|
-
};
|
|
3058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3059
|
-
switch (errorCode) {
|
|
3060
|
-
case "AccessDeniedException":
|
|
3061
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3062
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "InternalServerException":
|
|
3064
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3065
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3066
|
-
case "ThrottlingException":
|
|
3067
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3068
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "ValidationException":
|
|
3070
|
-
case "com.amazonaws.location#ValidationException":
|
|
3071
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3072
|
-
default:
|
|
3073
|
-
const parsedBody = parsedOutput.body;
|
|
3074
|
-
return throwDefaultError({
|
|
3075
|
-
output,
|
|
3076
|
-
parsedBody,
|
|
3077
|
-
errorCode,
|
|
3078
|
-
});
|
|
3079
|
-
}
|
|
3080
|
-
};
|
|
3081
1885
|
export const de_ListGeofencesCommand = async (output, context) => {
|
|
3082
1886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3083
|
-
return
|
|
1887
|
+
return de_CommandError(output, context);
|
|
3084
1888
|
}
|
|
3085
1889
|
const contents = map({
|
|
3086
1890
|
$metadata: deserializeMetadata(output),
|
|
@@ -3093,40 +1897,9 @@ export const de_ListGeofencesCommand = async (output, context) => {
|
|
|
3093
1897
|
Object.assign(contents, doc);
|
|
3094
1898
|
return contents;
|
|
3095
1899
|
};
|
|
3096
|
-
const de_ListGeofencesCommandError = async (output, context) => {
|
|
3097
|
-
const parsedOutput = {
|
|
3098
|
-
...output,
|
|
3099
|
-
body: await parseErrorBody(output.body, context),
|
|
3100
|
-
};
|
|
3101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3102
|
-
switch (errorCode) {
|
|
3103
|
-
case "AccessDeniedException":
|
|
3104
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3105
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3106
|
-
case "InternalServerException":
|
|
3107
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3108
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3109
|
-
case "ResourceNotFoundException":
|
|
3110
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3111
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3112
|
-
case "ThrottlingException":
|
|
3113
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3114
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3115
|
-
case "ValidationException":
|
|
3116
|
-
case "com.amazonaws.location#ValidationException":
|
|
3117
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3118
|
-
default:
|
|
3119
|
-
const parsedBody = parsedOutput.body;
|
|
3120
|
-
return throwDefaultError({
|
|
3121
|
-
output,
|
|
3122
|
-
parsedBody,
|
|
3123
|
-
errorCode,
|
|
3124
|
-
});
|
|
3125
|
-
}
|
|
3126
|
-
};
|
|
3127
1900
|
export const de_ListKeysCommand = async (output, context) => {
|
|
3128
1901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3129
|
-
return
|
|
1902
|
+
return de_CommandError(output, context);
|
|
3130
1903
|
}
|
|
3131
1904
|
const contents = map({
|
|
3132
1905
|
$metadata: deserializeMetadata(output),
|
|
@@ -3139,80 +1912,24 @@ export const de_ListKeysCommand = async (output, context) => {
|
|
|
3139
1912
|
Object.assign(contents, doc);
|
|
3140
1913
|
return contents;
|
|
3141
1914
|
};
|
|
3142
|
-
const
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
body: await parseErrorBody(output.body, context),
|
|
3146
|
-
};
|
|
3147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3148
|
-
switch (errorCode) {
|
|
3149
|
-
case "AccessDeniedException":
|
|
3150
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3152
|
-
case "InternalServerException":
|
|
3153
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3154
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3155
|
-
case "ThrottlingException":
|
|
3156
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3157
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3158
|
-
case "ValidationException":
|
|
3159
|
-
case "com.amazonaws.location#ValidationException":
|
|
3160
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3161
|
-
default:
|
|
3162
|
-
const parsedBody = parsedOutput.body;
|
|
3163
|
-
return throwDefaultError({
|
|
3164
|
-
output,
|
|
3165
|
-
parsedBody,
|
|
3166
|
-
errorCode,
|
|
3167
|
-
});
|
|
3168
|
-
}
|
|
3169
|
-
};
|
|
3170
|
-
export const de_ListMapsCommand = async (output, context) => {
|
|
3171
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3172
|
-
return de_ListMapsCommandError(output, context);
|
|
3173
|
-
}
|
|
3174
|
-
const contents = map({
|
|
3175
|
-
$metadata: deserializeMetadata(output),
|
|
3176
|
-
});
|
|
3177
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3178
|
-
const doc = take(data, {
|
|
3179
|
-
Entries: (_) => de_ListMapsResponseEntryList(_, context),
|
|
3180
|
-
NextToken: __expectString,
|
|
3181
|
-
});
|
|
3182
|
-
Object.assign(contents, doc);
|
|
3183
|
-
return contents;
|
|
3184
|
-
};
|
|
3185
|
-
const de_ListMapsCommandError = async (output, context) => {
|
|
3186
|
-
const parsedOutput = {
|
|
3187
|
-
...output,
|
|
3188
|
-
body: await parseErrorBody(output.body, context),
|
|
3189
|
-
};
|
|
3190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3191
|
-
switch (errorCode) {
|
|
3192
|
-
case "AccessDeniedException":
|
|
3193
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3194
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3195
|
-
case "InternalServerException":
|
|
3196
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3197
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3198
|
-
case "ThrottlingException":
|
|
3199
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3200
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3201
|
-
case "ValidationException":
|
|
3202
|
-
case "com.amazonaws.location#ValidationException":
|
|
3203
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3204
|
-
default:
|
|
3205
|
-
const parsedBody = parsedOutput.body;
|
|
3206
|
-
return throwDefaultError({
|
|
3207
|
-
output,
|
|
3208
|
-
parsedBody,
|
|
3209
|
-
errorCode,
|
|
3210
|
-
});
|
|
1915
|
+
export const de_ListMapsCommand = async (output, context) => {
|
|
1916
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1917
|
+
return de_CommandError(output, context);
|
|
3211
1918
|
}
|
|
1919
|
+
const contents = map({
|
|
1920
|
+
$metadata: deserializeMetadata(output),
|
|
1921
|
+
});
|
|
1922
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1923
|
+
const doc = take(data, {
|
|
1924
|
+
Entries: (_) => de_ListMapsResponseEntryList(_, context),
|
|
1925
|
+
NextToken: __expectString,
|
|
1926
|
+
});
|
|
1927
|
+
Object.assign(contents, doc);
|
|
1928
|
+
return contents;
|
|
3212
1929
|
};
|
|
3213
1930
|
export const de_ListPlaceIndexesCommand = async (output, context) => {
|
|
3214
1931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3215
|
-
return
|
|
1932
|
+
return de_CommandError(output, context);
|
|
3216
1933
|
}
|
|
3217
1934
|
const contents = map({
|
|
3218
1935
|
$metadata: deserializeMetadata(output),
|
|
@@ -3225,37 +1942,9 @@ export const de_ListPlaceIndexesCommand = async (output, context) => {
|
|
|
3225
1942
|
Object.assign(contents, doc);
|
|
3226
1943
|
return contents;
|
|
3227
1944
|
};
|
|
3228
|
-
const de_ListPlaceIndexesCommandError = async (output, context) => {
|
|
3229
|
-
const parsedOutput = {
|
|
3230
|
-
...output,
|
|
3231
|
-
body: await parseErrorBody(output.body, context),
|
|
3232
|
-
};
|
|
3233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3234
|
-
switch (errorCode) {
|
|
3235
|
-
case "AccessDeniedException":
|
|
3236
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3237
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3238
|
-
case "InternalServerException":
|
|
3239
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3240
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3241
|
-
case "ThrottlingException":
|
|
3242
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3243
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3244
|
-
case "ValidationException":
|
|
3245
|
-
case "com.amazonaws.location#ValidationException":
|
|
3246
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3247
|
-
default:
|
|
3248
|
-
const parsedBody = parsedOutput.body;
|
|
3249
|
-
return throwDefaultError({
|
|
3250
|
-
output,
|
|
3251
|
-
parsedBody,
|
|
3252
|
-
errorCode,
|
|
3253
|
-
});
|
|
3254
|
-
}
|
|
3255
|
-
};
|
|
3256
1945
|
export const de_ListRouteCalculatorsCommand = async (output, context) => {
|
|
3257
1946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3258
|
-
return
|
|
1947
|
+
return de_CommandError(output, context);
|
|
3259
1948
|
}
|
|
3260
1949
|
const contents = map({
|
|
3261
1950
|
$metadata: deserializeMetadata(output),
|
|
@@ -3268,37 +1957,9 @@ export const de_ListRouteCalculatorsCommand = async (output, context) => {
|
|
|
3268
1957
|
Object.assign(contents, doc);
|
|
3269
1958
|
return contents;
|
|
3270
1959
|
};
|
|
3271
|
-
const de_ListRouteCalculatorsCommandError = async (output, context) => {
|
|
3272
|
-
const parsedOutput = {
|
|
3273
|
-
...output,
|
|
3274
|
-
body: await parseErrorBody(output.body, context),
|
|
3275
|
-
};
|
|
3276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3277
|
-
switch (errorCode) {
|
|
3278
|
-
case "AccessDeniedException":
|
|
3279
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3280
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3281
|
-
case "InternalServerException":
|
|
3282
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3283
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3284
|
-
case "ThrottlingException":
|
|
3285
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3286
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3287
|
-
case "ValidationException":
|
|
3288
|
-
case "com.amazonaws.location#ValidationException":
|
|
3289
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3290
|
-
default:
|
|
3291
|
-
const parsedBody = parsedOutput.body;
|
|
3292
|
-
return throwDefaultError({
|
|
3293
|
-
output,
|
|
3294
|
-
parsedBody,
|
|
3295
|
-
errorCode,
|
|
3296
|
-
});
|
|
3297
|
-
}
|
|
3298
|
-
};
|
|
3299
1960
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
3300
1961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3301
|
-
return
|
|
1962
|
+
return de_CommandError(output, context);
|
|
3302
1963
|
}
|
|
3303
1964
|
const contents = map({
|
|
3304
1965
|
$metadata: deserializeMetadata(output),
|
|
@@ -3310,40 +1971,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3310
1971
|
Object.assign(contents, doc);
|
|
3311
1972
|
return contents;
|
|
3312
1973
|
};
|
|
3313
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
3314
|
-
const parsedOutput = {
|
|
3315
|
-
...output,
|
|
3316
|
-
body: await parseErrorBody(output.body, context),
|
|
3317
|
-
};
|
|
3318
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3319
|
-
switch (errorCode) {
|
|
3320
|
-
case "AccessDeniedException":
|
|
3321
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3322
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3323
|
-
case "InternalServerException":
|
|
3324
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3325
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3326
|
-
case "ResourceNotFoundException":
|
|
3327
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3328
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3329
|
-
case "ThrottlingException":
|
|
3330
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3331
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3332
|
-
case "ValidationException":
|
|
3333
|
-
case "com.amazonaws.location#ValidationException":
|
|
3334
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3335
|
-
default:
|
|
3336
|
-
const parsedBody = parsedOutput.body;
|
|
3337
|
-
return throwDefaultError({
|
|
3338
|
-
output,
|
|
3339
|
-
parsedBody,
|
|
3340
|
-
errorCode,
|
|
3341
|
-
});
|
|
3342
|
-
}
|
|
3343
|
-
};
|
|
3344
1974
|
export const de_ListTrackerConsumersCommand = async (output, context) => {
|
|
3345
1975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3346
|
-
return
|
|
1976
|
+
return de_CommandError(output, context);
|
|
3347
1977
|
}
|
|
3348
1978
|
const contents = map({
|
|
3349
1979
|
$metadata: deserializeMetadata(output),
|
|
@@ -3356,40 +1986,9 @@ export const de_ListTrackerConsumersCommand = async (output, context) => {
|
|
|
3356
1986
|
Object.assign(contents, doc);
|
|
3357
1987
|
return contents;
|
|
3358
1988
|
};
|
|
3359
|
-
const de_ListTrackerConsumersCommandError = async (output, context) => {
|
|
3360
|
-
const parsedOutput = {
|
|
3361
|
-
...output,
|
|
3362
|
-
body: await parseErrorBody(output.body, context),
|
|
3363
|
-
};
|
|
3364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3365
|
-
switch (errorCode) {
|
|
3366
|
-
case "AccessDeniedException":
|
|
3367
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3368
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3369
|
-
case "InternalServerException":
|
|
3370
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3371
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3372
|
-
case "ResourceNotFoundException":
|
|
3373
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3374
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3375
|
-
case "ThrottlingException":
|
|
3376
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3377
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3378
|
-
case "ValidationException":
|
|
3379
|
-
case "com.amazonaws.location#ValidationException":
|
|
3380
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3381
|
-
default:
|
|
3382
|
-
const parsedBody = parsedOutput.body;
|
|
3383
|
-
return throwDefaultError({
|
|
3384
|
-
output,
|
|
3385
|
-
parsedBody,
|
|
3386
|
-
errorCode,
|
|
3387
|
-
});
|
|
3388
|
-
}
|
|
3389
|
-
};
|
|
3390
1989
|
export const de_ListTrackersCommand = async (output, context) => {
|
|
3391
1990
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3392
|
-
return
|
|
1991
|
+
return de_CommandError(output, context);
|
|
3393
1992
|
}
|
|
3394
1993
|
const contents = map({
|
|
3395
1994
|
$metadata: deserializeMetadata(output),
|
|
@@ -3402,37 +2001,9 @@ export const de_ListTrackersCommand = async (output, context) => {
|
|
|
3402
2001
|
Object.assign(contents, doc);
|
|
3403
2002
|
return contents;
|
|
3404
2003
|
};
|
|
3405
|
-
const de_ListTrackersCommandError = async (output, context) => {
|
|
3406
|
-
const parsedOutput = {
|
|
3407
|
-
...output,
|
|
3408
|
-
body: await parseErrorBody(output.body, context),
|
|
3409
|
-
};
|
|
3410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3411
|
-
switch (errorCode) {
|
|
3412
|
-
case "AccessDeniedException":
|
|
3413
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3414
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3415
|
-
case "InternalServerException":
|
|
3416
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3417
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3418
|
-
case "ThrottlingException":
|
|
3419
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3420
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3421
|
-
case "ValidationException":
|
|
3422
|
-
case "com.amazonaws.location#ValidationException":
|
|
3423
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3424
|
-
default:
|
|
3425
|
-
const parsedBody = parsedOutput.body;
|
|
3426
|
-
return throwDefaultError({
|
|
3427
|
-
output,
|
|
3428
|
-
parsedBody,
|
|
3429
|
-
errorCode,
|
|
3430
|
-
});
|
|
3431
|
-
}
|
|
3432
|
-
};
|
|
3433
2004
|
export const de_PutGeofenceCommand = async (output, context) => {
|
|
3434
2005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3435
|
-
return
|
|
2006
|
+
return de_CommandError(output, context);
|
|
3436
2007
|
}
|
|
3437
2008
|
const contents = map({
|
|
3438
2009
|
$metadata: deserializeMetadata(output),
|
|
@@ -3446,43 +2017,9 @@ export const de_PutGeofenceCommand = async (output, context) => {
|
|
|
3446
2017
|
Object.assign(contents, doc);
|
|
3447
2018
|
return contents;
|
|
3448
2019
|
};
|
|
3449
|
-
const de_PutGeofenceCommandError = async (output, context) => {
|
|
3450
|
-
const parsedOutput = {
|
|
3451
|
-
...output,
|
|
3452
|
-
body: await parseErrorBody(output.body, context),
|
|
3453
|
-
};
|
|
3454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3455
|
-
switch (errorCode) {
|
|
3456
|
-
case "AccessDeniedException":
|
|
3457
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3458
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3459
|
-
case "ConflictException":
|
|
3460
|
-
case "com.amazonaws.location#ConflictException":
|
|
3461
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3462
|
-
case "InternalServerException":
|
|
3463
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3464
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3465
|
-
case "ResourceNotFoundException":
|
|
3466
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3467
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3468
|
-
case "ThrottlingException":
|
|
3469
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3470
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3471
|
-
case "ValidationException":
|
|
3472
|
-
case "com.amazonaws.location#ValidationException":
|
|
3473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3474
|
-
default:
|
|
3475
|
-
const parsedBody = parsedOutput.body;
|
|
3476
|
-
return throwDefaultError({
|
|
3477
|
-
output,
|
|
3478
|
-
parsedBody,
|
|
3479
|
-
errorCode,
|
|
3480
|
-
});
|
|
3481
|
-
}
|
|
3482
|
-
};
|
|
3483
2020
|
export const de_SearchPlaceIndexForPositionCommand = async (output, context) => {
|
|
3484
2021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3485
|
-
return
|
|
2022
|
+
return de_CommandError(output, context);
|
|
3486
2023
|
}
|
|
3487
2024
|
const contents = map({
|
|
3488
2025
|
$metadata: deserializeMetadata(output),
|
|
@@ -3495,86 +2032,24 @@ export const de_SearchPlaceIndexForPositionCommand = async (output, context) =>
|
|
|
3495
2032
|
Object.assign(contents, doc);
|
|
3496
2033
|
return contents;
|
|
3497
2034
|
};
|
|
3498
|
-
const de_SearchPlaceIndexForPositionCommandError = async (output, context) => {
|
|
3499
|
-
const parsedOutput = {
|
|
3500
|
-
...output,
|
|
3501
|
-
body: await parseErrorBody(output.body, context),
|
|
3502
|
-
};
|
|
3503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3504
|
-
switch (errorCode) {
|
|
3505
|
-
case "AccessDeniedException":
|
|
3506
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3507
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3508
|
-
case "InternalServerException":
|
|
3509
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3510
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3511
|
-
case "ResourceNotFoundException":
|
|
3512
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "ThrottlingException":
|
|
3515
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3516
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3517
|
-
case "ValidationException":
|
|
3518
|
-
case "com.amazonaws.location#ValidationException":
|
|
3519
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3520
|
-
default:
|
|
3521
|
-
const parsedBody = parsedOutput.body;
|
|
3522
|
-
return throwDefaultError({
|
|
3523
|
-
output,
|
|
3524
|
-
parsedBody,
|
|
3525
|
-
errorCode,
|
|
3526
|
-
});
|
|
3527
|
-
}
|
|
3528
|
-
};
|
|
3529
2035
|
export const de_SearchPlaceIndexForSuggestionsCommand = async (output, context) => {
|
|
3530
2036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3531
|
-
return
|
|
3532
|
-
}
|
|
3533
|
-
const contents = map({
|
|
3534
|
-
$metadata: deserializeMetadata(output),
|
|
3535
|
-
});
|
|
3536
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3537
|
-
const doc = take(data, {
|
|
3538
|
-
Results: _json,
|
|
3539
|
-
Summary: (_) => de_SearchPlaceIndexForSuggestionsSummary(_, context),
|
|
3540
|
-
});
|
|
3541
|
-
Object.assign(contents, doc);
|
|
3542
|
-
return contents;
|
|
3543
|
-
};
|
|
3544
|
-
const de_SearchPlaceIndexForSuggestionsCommandError = async (output, context) => {
|
|
3545
|
-
const parsedOutput = {
|
|
3546
|
-
...output,
|
|
3547
|
-
body: await parseErrorBody(output.body, context),
|
|
3548
|
-
};
|
|
3549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3550
|
-
switch (errorCode) {
|
|
3551
|
-
case "AccessDeniedException":
|
|
3552
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3553
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3554
|
-
case "InternalServerException":
|
|
3555
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3556
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3557
|
-
case "ResourceNotFoundException":
|
|
3558
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3559
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3560
|
-
case "ThrottlingException":
|
|
3561
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3562
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3563
|
-
case "ValidationException":
|
|
3564
|
-
case "com.amazonaws.location#ValidationException":
|
|
3565
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3566
|
-
default:
|
|
3567
|
-
const parsedBody = parsedOutput.body;
|
|
3568
|
-
return throwDefaultError({
|
|
3569
|
-
output,
|
|
3570
|
-
parsedBody,
|
|
3571
|
-
errorCode,
|
|
3572
|
-
});
|
|
2037
|
+
return de_CommandError(output, context);
|
|
3573
2038
|
}
|
|
2039
|
+
const contents = map({
|
|
2040
|
+
$metadata: deserializeMetadata(output),
|
|
2041
|
+
});
|
|
2042
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2043
|
+
const doc = take(data, {
|
|
2044
|
+
Results: _json,
|
|
2045
|
+
Summary: (_) => de_SearchPlaceIndexForSuggestionsSummary(_, context),
|
|
2046
|
+
});
|
|
2047
|
+
Object.assign(contents, doc);
|
|
2048
|
+
return contents;
|
|
3574
2049
|
};
|
|
3575
2050
|
export const de_SearchPlaceIndexForTextCommand = async (output, context) => {
|
|
3576
2051
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3577
|
-
return
|
|
2052
|
+
return de_CommandError(output, context);
|
|
3578
2053
|
}
|
|
3579
2054
|
const contents = map({
|
|
3580
2055
|
$metadata: deserializeMetadata(output),
|
|
@@ -3587,40 +2062,9 @@ export const de_SearchPlaceIndexForTextCommand = async (output, context) => {
|
|
|
3587
2062
|
Object.assign(contents, doc);
|
|
3588
2063
|
return contents;
|
|
3589
2064
|
};
|
|
3590
|
-
const de_SearchPlaceIndexForTextCommandError = async (output, context) => {
|
|
3591
|
-
const parsedOutput = {
|
|
3592
|
-
...output,
|
|
3593
|
-
body: await parseErrorBody(output.body, context),
|
|
3594
|
-
};
|
|
3595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3596
|
-
switch (errorCode) {
|
|
3597
|
-
case "AccessDeniedException":
|
|
3598
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3599
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3600
|
-
case "InternalServerException":
|
|
3601
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3603
|
-
case "ResourceNotFoundException":
|
|
3604
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3605
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3606
|
-
case "ThrottlingException":
|
|
3607
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3608
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3609
|
-
case "ValidationException":
|
|
3610
|
-
case "com.amazonaws.location#ValidationException":
|
|
3611
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3612
|
-
default:
|
|
3613
|
-
const parsedBody = parsedOutput.body;
|
|
3614
|
-
return throwDefaultError({
|
|
3615
|
-
output,
|
|
3616
|
-
parsedBody,
|
|
3617
|
-
errorCode,
|
|
3618
|
-
});
|
|
3619
|
-
}
|
|
3620
|
-
};
|
|
3621
2065
|
export const de_TagResourceCommand = async (output, context) => {
|
|
3622
2066
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3623
|
-
return
|
|
2067
|
+
return de_CommandError(output, context);
|
|
3624
2068
|
}
|
|
3625
2069
|
const contents = map({
|
|
3626
2070
|
$metadata: deserializeMetadata(output),
|
|
@@ -3628,40 +2072,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
3628
2072
|
await collectBody(output.body, context);
|
|
3629
2073
|
return contents;
|
|
3630
2074
|
};
|
|
3631
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3632
|
-
const parsedOutput = {
|
|
3633
|
-
...output,
|
|
3634
|
-
body: await parseErrorBody(output.body, context),
|
|
3635
|
-
};
|
|
3636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3637
|
-
switch (errorCode) {
|
|
3638
|
-
case "AccessDeniedException":
|
|
3639
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3640
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3641
|
-
case "InternalServerException":
|
|
3642
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3643
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "ResourceNotFoundException":
|
|
3645
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3646
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3647
|
-
case "ThrottlingException":
|
|
3648
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3649
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3650
|
-
case "ValidationException":
|
|
3651
|
-
case "com.amazonaws.location#ValidationException":
|
|
3652
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3653
|
-
default:
|
|
3654
|
-
const parsedBody = parsedOutput.body;
|
|
3655
|
-
return throwDefaultError({
|
|
3656
|
-
output,
|
|
3657
|
-
parsedBody,
|
|
3658
|
-
errorCode,
|
|
3659
|
-
});
|
|
3660
|
-
}
|
|
3661
|
-
};
|
|
3662
2075
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
3663
2076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3664
|
-
return
|
|
2077
|
+
return de_CommandError(output, context);
|
|
3665
2078
|
}
|
|
3666
2079
|
const contents = map({
|
|
3667
2080
|
$metadata: deserializeMetadata(output),
|
|
@@ -3669,40 +2082,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3669
2082
|
await collectBody(output.body, context);
|
|
3670
2083
|
return contents;
|
|
3671
2084
|
};
|
|
3672
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3673
|
-
const parsedOutput = {
|
|
3674
|
-
...output,
|
|
3675
|
-
body: await parseErrorBody(output.body, context),
|
|
3676
|
-
};
|
|
3677
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3678
|
-
switch (errorCode) {
|
|
3679
|
-
case "AccessDeniedException":
|
|
3680
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3681
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3682
|
-
case "InternalServerException":
|
|
3683
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3684
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3685
|
-
case "ResourceNotFoundException":
|
|
3686
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3687
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3688
|
-
case "ThrottlingException":
|
|
3689
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3690
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3691
|
-
case "ValidationException":
|
|
3692
|
-
case "com.amazonaws.location#ValidationException":
|
|
3693
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3694
|
-
default:
|
|
3695
|
-
const parsedBody = parsedOutput.body;
|
|
3696
|
-
return throwDefaultError({
|
|
3697
|
-
output,
|
|
3698
|
-
parsedBody,
|
|
3699
|
-
errorCode,
|
|
3700
|
-
});
|
|
3701
|
-
}
|
|
3702
|
-
};
|
|
3703
2085
|
export const de_UpdateGeofenceCollectionCommand = async (output, context) => {
|
|
3704
2086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3705
|
-
return
|
|
2087
|
+
return de_CommandError(output, context);
|
|
3706
2088
|
}
|
|
3707
2089
|
const contents = map({
|
|
3708
2090
|
$metadata: deserializeMetadata(output),
|
|
@@ -3716,40 +2098,9 @@ export const de_UpdateGeofenceCollectionCommand = async (output, context) => {
|
|
|
3716
2098
|
Object.assign(contents, doc);
|
|
3717
2099
|
return contents;
|
|
3718
2100
|
};
|
|
3719
|
-
const de_UpdateGeofenceCollectionCommandError = async (output, context) => {
|
|
3720
|
-
const parsedOutput = {
|
|
3721
|
-
...output,
|
|
3722
|
-
body: await parseErrorBody(output.body, context),
|
|
3723
|
-
};
|
|
3724
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3725
|
-
switch (errorCode) {
|
|
3726
|
-
case "AccessDeniedException":
|
|
3727
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3728
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3729
|
-
case "InternalServerException":
|
|
3730
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3731
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3732
|
-
case "ResourceNotFoundException":
|
|
3733
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3734
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3735
|
-
case "ThrottlingException":
|
|
3736
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3737
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3738
|
-
case "ValidationException":
|
|
3739
|
-
case "com.amazonaws.location#ValidationException":
|
|
3740
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3741
|
-
default:
|
|
3742
|
-
const parsedBody = parsedOutput.body;
|
|
3743
|
-
return throwDefaultError({
|
|
3744
|
-
output,
|
|
3745
|
-
parsedBody,
|
|
3746
|
-
errorCode,
|
|
3747
|
-
});
|
|
3748
|
-
}
|
|
3749
|
-
};
|
|
3750
2101
|
export const de_UpdateKeyCommand = async (output, context) => {
|
|
3751
2102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3752
|
-
return
|
|
2103
|
+
return de_CommandError(output, context);
|
|
3753
2104
|
}
|
|
3754
2105
|
const contents = map({
|
|
3755
2106
|
$metadata: deserializeMetadata(output),
|
|
@@ -3763,40 +2114,9 @@ export const de_UpdateKeyCommand = async (output, context) => {
|
|
|
3763
2114
|
Object.assign(contents, doc);
|
|
3764
2115
|
return contents;
|
|
3765
2116
|
};
|
|
3766
|
-
const de_UpdateKeyCommandError = async (output, context) => {
|
|
3767
|
-
const parsedOutput = {
|
|
3768
|
-
...output,
|
|
3769
|
-
body: await parseErrorBody(output.body, context),
|
|
3770
|
-
};
|
|
3771
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3772
|
-
switch (errorCode) {
|
|
3773
|
-
case "AccessDeniedException":
|
|
3774
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3775
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3776
|
-
case "InternalServerException":
|
|
3777
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3778
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3779
|
-
case "ResourceNotFoundException":
|
|
3780
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3781
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3782
|
-
case "ThrottlingException":
|
|
3783
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3784
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3785
|
-
case "ValidationException":
|
|
3786
|
-
case "com.amazonaws.location#ValidationException":
|
|
3787
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3788
|
-
default:
|
|
3789
|
-
const parsedBody = parsedOutput.body;
|
|
3790
|
-
return throwDefaultError({
|
|
3791
|
-
output,
|
|
3792
|
-
parsedBody,
|
|
3793
|
-
errorCode,
|
|
3794
|
-
});
|
|
3795
|
-
}
|
|
3796
|
-
};
|
|
3797
2117
|
export const de_UpdateMapCommand = async (output, context) => {
|
|
3798
2118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3799
|
-
return
|
|
2119
|
+
return de_CommandError(output, context);
|
|
3800
2120
|
}
|
|
3801
2121
|
const contents = map({
|
|
3802
2122
|
$metadata: deserializeMetadata(output),
|
|
@@ -3810,40 +2130,9 @@ export const de_UpdateMapCommand = async (output, context) => {
|
|
|
3810
2130
|
Object.assign(contents, doc);
|
|
3811
2131
|
return contents;
|
|
3812
2132
|
};
|
|
3813
|
-
const de_UpdateMapCommandError = async (output, context) => {
|
|
3814
|
-
const parsedOutput = {
|
|
3815
|
-
...output,
|
|
3816
|
-
body: await parseErrorBody(output.body, context),
|
|
3817
|
-
};
|
|
3818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3819
|
-
switch (errorCode) {
|
|
3820
|
-
case "AccessDeniedException":
|
|
3821
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3822
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3823
|
-
case "InternalServerException":
|
|
3824
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3825
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3826
|
-
case "ResourceNotFoundException":
|
|
3827
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3829
|
-
case "ThrottlingException":
|
|
3830
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3831
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3832
|
-
case "ValidationException":
|
|
3833
|
-
case "com.amazonaws.location#ValidationException":
|
|
3834
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3835
|
-
default:
|
|
3836
|
-
const parsedBody = parsedOutput.body;
|
|
3837
|
-
return throwDefaultError({
|
|
3838
|
-
output,
|
|
3839
|
-
parsedBody,
|
|
3840
|
-
errorCode,
|
|
3841
|
-
});
|
|
3842
|
-
}
|
|
3843
|
-
};
|
|
3844
2133
|
export const de_UpdatePlaceIndexCommand = async (output, context) => {
|
|
3845
2134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3846
|
-
return
|
|
2135
|
+
return de_CommandError(output, context);
|
|
3847
2136
|
}
|
|
3848
2137
|
const contents = map({
|
|
3849
2138
|
$metadata: deserializeMetadata(output),
|
|
@@ -3857,40 +2146,9 @@ export const de_UpdatePlaceIndexCommand = async (output, context) => {
|
|
|
3857
2146
|
Object.assign(contents, doc);
|
|
3858
2147
|
return contents;
|
|
3859
2148
|
};
|
|
3860
|
-
const de_UpdatePlaceIndexCommandError = async (output, context) => {
|
|
3861
|
-
const parsedOutput = {
|
|
3862
|
-
...output,
|
|
3863
|
-
body: await parseErrorBody(output.body, context),
|
|
3864
|
-
};
|
|
3865
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3866
|
-
switch (errorCode) {
|
|
3867
|
-
case "AccessDeniedException":
|
|
3868
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3869
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3870
|
-
case "InternalServerException":
|
|
3871
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3872
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3873
|
-
case "ResourceNotFoundException":
|
|
3874
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3875
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3876
|
-
case "ThrottlingException":
|
|
3877
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3878
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3879
|
-
case "ValidationException":
|
|
3880
|
-
case "com.amazonaws.location#ValidationException":
|
|
3881
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3882
|
-
default:
|
|
3883
|
-
const parsedBody = parsedOutput.body;
|
|
3884
|
-
return throwDefaultError({
|
|
3885
|
-
output,
|
|
3886
|
-
parsedBody,
|
|
3887
|
-
errorCode,
|
|
3888
|
-
});
|
|
3889
|
-
}
|
|
3890
|
-
};
|
|
3891
2149
|
export const de_UpdateRouteCalculatorCommand = async (output, context) => {
|
|
3892
2150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3893
|
-
return
|
|
2151
|
+
return de_CommandError(output, context);
|
|
3894
2152
|
}
|
|
3895
2153
|
const contents = map({
|
|
3896
2154
|
$metadata: deserializeMetadata(output),
|
|
@@ -3904,40 +2162,9 @@ export const de_UpdateRouteCalculatorCommand = async (output, context) => {
|
|
|
3904
2162
|
Object.assign(contents, doc);
|
|
3905
2163
|
return contents;
|
|
3906
2164
|
};
|
|
3907
|
-
const de_UpdateRouteCalculatorCommandError = async (output, context) => {
|
|
3908
|
-
const parsedOutput = {
|
|
3909
|
-
...output,
|
|
3910
|
-
body: await parseErrorBody(output.body, context),
|
|
3911
|
-
};
|
|
3912
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3913
|
-
switch (errorCode) {
|
|
3914
|
-
case "AccessDeniedException":
|
|
3915
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3916
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3917
|
-
case "InternalServerException":
|
|
3918
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3919
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3920
|
-
case "ResourceNotFoundException":
|
|
3921
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3922
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3923
|
-
case "ThrottlingException":
|
|
3924
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3925
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3926
|
-
case "ValidationException":
|
|
3927
|
-
case "com.amazonaws.location#ValidationException":
|
|
3928
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3929
|
-
default:
|
|
3930
|
-
const parsedBody = parsedOutput.body;
|
|
3931
|
-
return throwDefaultError({
|
|
3932
|
-
output,
|
|
3933
|
-
parsedBody,
|
|
3934
|
-
errorCode,
|
|
3935
|
-
});
|
|
3936
|
-
}
|
|
3937
|
-
};
|
|
3938
2165
|
export const de_UpdateTrackerCommand = async (output, context) => {
|
|
3939
2166
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3940
|
-
return
|
|
2167
|
+
return de_CommandError(output, context);
|
|
3941
2168
|
}
|
|
3942
2169
|
const contents = map({
|
|
3943
2170
|
$metadata: deserializeMetadata(output),
|
|
@@ -3951,7 +2178,7 @@ export const de_UpdateTrackerCommand = async (output, context) => {
|
|
|
3951
2178
|
Object.assign(contents, doc);
|
|
3952
2179
|
return contents;
|
|
3953
2180
|
};
|
|
3954
|
-
const
|
|
2181
|
+
const de_CommandError = async (output, context) => {
|
|
3955
2182
|
const parsedOutput = {
|
|
3956
2183
|
...output,
|
|
3957
2184
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3961,12 +2188,18 @@ const de_UpdateTrackerCommandError = async (output, context) => {
|
|
|
3961
2188
|
case "AccessDeniedException":
|
|
3962
2189
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3963
2190
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2191
|
+
case "ConflictException":
|
|
2192
|
+
case "com.amazonaws.location#ConflictException":
|
|
2193
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3964
2194
|
case "InternalServerException":
|
|
3965
2195
|
case "com.amazonaws.location#InternalServerException":
|
|
3966
2196
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3967
2197
|
case "ResourceNotFoundException":
|
|
3968
2198
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3969
2199
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2200
|
+
case "ServiceQuotaExceededException":
|
|
2201
|
+
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2202
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3970
2203
|
case "ThrottlingException":
|
|
3971
2204
|
case "com.amazonaws.location#ThrottlingException":
|
|
3972
2205
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|