@aws-sdk/client-iot-wireless 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +129 -3519
- package/dist-es/protocols/Aws_restJson1.js +280 -3670
- package/package.json +3 -3
|
@@ -1428,7 +1428,7 @@ export const se_UpdateWirelessGatewayCommand = async (input, context) => {
|
|
|
1428
1428
|
};
|
|
1429
1429
|
export const de_AssociateAwsAccountWithPartnerAccountCommand = async (output, context) => {
|
|
1430
1430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1431
|
-
return
|
|
1431
|
+
return de_CommandError(output, context);
|
|
1432
1432
|
}
|
|
1433
1433
|
const contents = map({
|
|
1434
1434
|
$metadata: deserializeMetadata(output),
|
|
@@ -1441,43 +1441,9 @@ export const de_AssociateAwsAccountWithPartnerAccountCommand = async (output, co
|
|
|
1441
1441
|
Object.assign(contents, doc);
|
|
1442
1442
|
return contents;
|
|
1443
1443
|
};
|
|
1444
|
-
const de_AssociateAwsAccountWithPartnerAccountCommandError = async (output, context) => {
|
|
1445
|
-
const parsedOutput = {
|
|
1446
|
-
...output,
|
|
1447
|
-
body: await parseErrorBody(output.body, context),
|
|
1448
|
-
};
|
|
1449
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1450
|
-
switch (errorCode) {
|
|
1451
|
-
case "AccessDeniedException":
|
|
1452
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1453
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1454
|
-
case "ConflictException":
|
|
1455
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1456
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1457
|
-
case "InternalServerException":
|
|
1458
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1459
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1460
|
-
case "ResourceNotFoundException":
|
|
1461
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1462
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "ThrottlingException":
|
|
1464
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1465
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "ValidationException":
|
|
1467
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1468
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1469
|
-
default:
|
|
1470
|
-
const parsedBody = parsedOutput.body;
|
|
1471
|
-
return throwDefaultError({
|
|
1472
|
-
output,
|
|
1473
|
-
parsedBody,
|
|
1474
|
-
errorCode,
|
|
1475
|
-
});
|
|
1476
|
-
}
|
|
1477
|
-
};
|
|
1478
1444
|
export const de_AssociateMulticastGroupWithFuotaTaskCommand = async (output, context) => {
|
|
1479
1445
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1480
|
-
return
|
|
1446
|
+
return de_CommandError(output, context);
|
|
1481
1447
|
}
|
|
1482
1448
|
const contents = map({
|
|
1483
1449
|
$metadata: deserializeMetadata(output),
|
|
@@ -1485,43 +1451,9 @@ export const de_AssociateMulticastGroupWithFuotaTaskCommand = async (output, con
|
|
|
1485
1451
|
await collectBody(output.body, context);
|
|
1486
1452
|
return contents;
|
|
1487
1453
|
};
|
|
1488
|
-
const de_AssociateMulticastGroupWithFuotaTaskCommandError = async (output, context) => {
|
|
1489
|
-
const parsedOutput = {
|
|
1490
|
-
...output,
|
|
1491
|
-
body: await parseErrorBody(output.body, context),
|
|
1492
|
-
};
|
|
1493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1494
|
-
switch (errorCode) {
|
|
1495
|
-
case "AccessDeniedException":
|
|
1496
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1497
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ConflictException":
|
|
1499
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1500
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1501
|
-
case "InternalServerException":
|
|
1502
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1503
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1504
|
-
case "ResourceNotFoundException":
|
|
1505
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1506
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "ThrottlingException":
|
|
1508
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1509
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "ValidationException":
|
|
1511
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1512
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1513
|
-
default:
|
|
1514
|
-
const parsedBody = parsedOutput.body;
|
|
1515
|
-
return throwDefaultError({
|
|
1516
|
-
output,
|
|
1517
|
-
parsedBody,
|
|
1518
|
-
errorCode,
|
|
1519
|
-
});
|
|
1520
|
-
}
|
|
1521
|
-
};
|
|
1522
1454
|
export const de_AssociateWirelessDeviceWithFuotaTaskCommand = async (output, context) => {
|
|
1523
1455
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1524
|
-
return
|
|
1456
|
+
return de_CommandError(output, context);
|
|
1525
1457
|
}
|
|
1526
1458
|
const contents = map({
|
|
1527
1459
|
$metadata: deserializeMetadata(output),
|
|
@@ -1529,43 +1461,9 @@ export const de_AssociateWirelessDeviceWithFuotaTaskCommand = async (output, con
|
|
|
1529
1461
|
await collectBody(output.body, context);
|
|
1530
1462
|
return contents;
|
|
1531
1463
|
};
|
|
1532
|
-
const de_AssociateWirelessDeviceWithFuotaTaskCommandError = async (output, context) => {
|
|
1533
|
-
const parsedOutput = {
|
|
1534
|
-
...output,
|
|
1535
|
-
body: await parseErrorBody(output.body, context),
|
|
1536
|
-
};
|
|
1537
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1538
|
-
switch (errorCode) {
|
|
1539
|
-
case "AccessDeniedException":
|
|
1540
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1541
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "ConflictException":
|
|
1543
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1544
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "InternalServerException":
|
|
1546
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1547
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1548
|
-
case "ResourceNotFoundException":
|
|
1549
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1550
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1551
|
-
case "ThrottlingException":
|
|
1552
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1553
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1554
|
-
case "ValidationException":
|
|
1555
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1556
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1557
|
-
default:
|
|
1558
|
-
const parsedBody = parsedOutput.body;
|
|
1559
|
-
return throwDefaultError({
|
|
1560
|
-
output,
|
|
1561
|
-
parsedBody,
|
|
1562
|
-
errorCode,
|
|
1563
|
-
});
|
|
1564
|
-
}
|
|
1565
|
-
};
|
|
1566
1464
|
export const de_AssociateWirelessDeviceWithMulticastGroupCommand = async (output, context) => {
|
|
1567
1465
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1568
|
-
return
|
|
1466
|
+
return de_CommandError(output, context);
|
|
1569
1467
|
}
|
|
1570
1468
|
const contents = map({
|
|
1571
1469
|
$metadata: deserializeMetadata(output),
|
|
@@ -1573,43 +1471,9 @@ export const de_AssociateWirelessDeviceWithMulticastGroupCommand = async (output
|
|
|
1573
1471
|
await collectBody(output.body, context);
|
|
1574
1472
|
return contents;
|
|
1575
1473
|
};
|
|
1576
|
-
const de_AssociateWirelessDeviceWithMulticastGroupCommandError = async (output, context) => {
|
|
1577
|
-
const parsedOutput = {
|
|
1578
|
-
...output,
|
|
1579
|
-
body: await parseErrorBody(output.body, context),
|
|
1580
|
-
};
|
|
1581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
-
switch (errorCode) {
|
|
1583
|
-
case "AccessDeniedException":
|
|
1584
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1585
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "ConflictException":
|
|
1587
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1588
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "InternalServerException":
|
|
1590
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1591
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ResourceNotFoundException":
|
|
1593
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ThrottlingException":
|
|
1596
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1597
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ValidationException":
|
|
1599
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1600
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1601
|
-
default:
|
|
1602
|
-
const parsedBody = parsedOutput.body;
|
|
1603
|
-
return throwDefaultError({
|
|
1604
|
-
output,
|
|
1605
|
-
parsedBody,
|
|
1606
|
-
errorCode,
|
|
1607
|
-
});
|
|
1608
|
-
}
|
|
1609
|
-
};
|
|
1610
1474
|
export const de_AssociateWirelessDeviceWithThingCommand = async (output, context) => {
|
|
1611
1475
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1612
|
-
return
|
|
1476
|
+
return de_CommandError(output, context);
|
|
1613
1477
|
}
|
|
1614
1478
|
const contents = map({
|
|
1615
1479
|
$metadata: deserializeMetadata(output),
|
|
@@ -1617,43 +1481,9 @@ export const de_AssociateWirelessDeviceWithThingCommand = async (output, context
|
|
|
1617
1481
|
await collectBody(output.body, context);
|
|
1618
1482
|
return contents;
|
|
1619
1483
|
};
|
|
1620
|
-
const de_AssociateWirelessDeviceWithThingCommandError = async (output, context) => {
|
|
1621
|
-
const parsedOutput = {
|
|
1622
|
-
...output,
|
|
1623
|
-
body: await parseErrorBody(output.body, context),
|
|
1624
|
-
};
|
|
1625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
|
-
switch (errorCode) {
|
|
1627
|
-
case "AccessDeniedException":
|
|
1628
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1629
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "ConflictException":
|
|
1631
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1632
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "InternalServerException":
|
|
1634
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1635
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "ResourceNotFoundException":
|
|
1637
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1638
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ThrottlingException":
|
|
1640
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1641
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ValidationException":
|
|
1643
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1644
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1645
|
-
default:
|
|
1646
|
-
const parsedBody = parsedOutput.body;
|
|
1647
|
-
return throwDefaultError({
|
|
1648
|
-
output,
|
|
1649
|
-
parsedBody,
|
|
1650
|
-
errorCode,
|
|
1651
|
-
});
|
|
1652
|
-
}
|
|
1653
|
-
};
|
|
1654
1484
|
export const de_AssociateWirelessGatewayWithCertificateCommand = async (output, context) => {
|
|
1655
1485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1656
|
-
return
|
|
1486
|
+
return de_CommandError(output, context);
|
|
1657
1487
|
}
|
|
1658
1488
|
const contents = map({
|
|
1659
1489
|
$metadata: deserializeMetadata(output),
|
|
@@ -1665,43 +1495,9 @@ export const de_AssociateWirelessGatewayWithCertificateCommand = async (output,
|
|
|
1665
1495
|
Object.assign(contents, doc);
|
|
1666
1496
|
return contents;
|
|
1667
1497
|
};
|
|
1668
|
-
const de_AssociateWirelessGatewayWithCertificateCommandError = async (output, context) => {
|
|
1669
|
-
const parsedOutput = {
|
|
1670
|
-
...output,
|
|
1671
|
-
body: await parseErrorBody(output.body, context),
|
|
1672
|
-
};
|
|
1673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
-
switch (errorCode) {
|
|
1675
|
-
case "AccessDeniedException":
|
|
1676
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1677
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "ConflictException":
|
|
1679
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1680
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "InternalServerException":
|
|
1682
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1683
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ResourceNotFoundException":
|
|
1685
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1686
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ThrottlingException":
|
|
1688
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1689
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ValidationException":
|
|
1691
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1692
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1693
|
-
default:
|
|
1694
|
-
const parsedBody = parsedOutput.body;
|
|
1695
|
-
return throwDefaultError({
|
|
1696
|
-
output,
|
|
1697
|
-
parsedBody,
|
|
1698
|
-
errorCode,
|
|
1699
|
-
});
|
|
1700
|
-
}
|
|
1701
|
-
};
|
|
1702
1498
|
export const de_AssociateWirelessGatewayWithThingCommand = async (output, context) => {
|
|
1703
1499
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1704
|
-
return
|
|
1500
|
+
return de_CommandError(output, context);
|
|
1705
1501
|
}
|
|
1706
1502
|
const contents = map({
|
|
1707
1503
|
$metadata: deserializeMetadata(output),
|
|
@@ -1709,43 +1505,9 @@ export const de_AssociateWirelessGatewayWithThingCommand = async (output, contex
|
|
|
1709
1505
|
await collectBody(output.body, context);
|
|
1710
1506
|
return contents;
|
|
1711
1507
|
};
|
|
1712
|
-
const de_AssociateWirelessGatewayWithThingCommandError = async (output, context) => {
|
|
1713
|
-
const parsedOutput = {
|
|
1714
|
-
...output,
|
|
1715
|
-
body: await parseErrorBody(output.body, context),
|
|
1716
|
-
};
|
|
1717
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
-
switch (errorCode) {
|
|
1719
|
-
case "AccessDeniedException":
|
|
1720
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1721
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "ConflictException":
|
|
1723
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1724
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "InternalServerException":
|
|
1726
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1727
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "ResourceNotFoundException":
|
|
1729
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1730
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "ThrottlingException":
|
|
1732
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1733
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ValidationException":
|
|
1735
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1736
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1737
|
-
default:
|
|
1738
|
-
const parsedBody = parsedOutput.body;
|
|
1739
|
-
return throwDefaultError({
|
|
1740
|
-
output,
|
|
1741
|
-
parsedBody,
|
|
1742
|
-
errorCode,
|
|
1743
|
-
});
|
|
1744
|
-
}
|
|
1745
|
-
};
|
|
1746
1508
|
export const de_CancelMulticastGroupSessionCommand = async (output, context) => {
|
|
1747
1509
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1748
|
-
return
|
|
1510
|
+
return de_CommandError(output, context);
|
|
1749
1511
|
}
|
|
1750
1512
|
const contents = map({
|
|
1751
1513
|
$metadata: deserializeMetadata(output),
|
|
@@ -1753,43 +1515,9 @@ export const de_CancelMulticastGroupSessionCommand = async (output, context) =>
|
|
|
1753
1515
|
await collectBody(output.body, context);
|
|
1754
1516
|
return contents;
|
|
1755
1517
|
};
|
|
1756
|
-
const de_CancelMulticastGroupSessionCommandError = async (output, context) => {
|
|
1757
|
-
const parsedOutput = {
|
|
1758
|
-
...output,
|
|
1759
|
-
body: await parseErrorBody(output.body, context),
|
|
1760
|
-
};
|
|
1761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
|
-
switch (errorCode) {
|
|
1763
|
-
case "AccessDeniedException":
|
|
1764
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1765
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "ConflictException":
|
|
1767
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1768
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1769
|
-
case "InternalServerException":
|
|
1770
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1771
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1772
|
-
case "ResourceNotFoundException":
|
|
1773
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1774
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1775
|
-
case "ThrottlingException":
|
|
1776
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1777
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ValidationException":
|
|
1779
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1780
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1781
|
-
default:
|
|
1782
|
-
const parsedBody = parsedOutput.body;
|
|
1783
|
-
return throwDefaultError({
|
|
1784
|
-
output,
|
|
1785
|
-
parsedBody,
|
|
1786
|
-
errorCode,
|
|
1787
|
-
});
|
|
1788
|
-
}
|
|
1789
|
-
};
|
|
1790
1518
|
export const de_CreateDestinationCommand = async (output, context) => {
|
|
1791
1519
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1792
|
-
return
|
|
1520
|
+
return de_CommandError(output, context);
|
|
1793
1521
|
}
|
|
1794
1522
|
const contents = map({
|
|
1795
1523
|
$metadata: deserializeMetadata(output),
|
|
@@ -1802,43 +1530,9 @@ export const de_CreateDestinationCommand = async (output, context) => {
|
|
|
1802
1530
|
Object.assign(contents, doc);
|
|
1803
1531
|
return contents;
|
|
1804
1532
|
};
|
|
1805
|
-
const de_CreateDestinationCommandError = async (output, context) => {
|
|
1806
|
-
const parsedOutput = {
|
|
1807
|
-
...output,
|
|
1808
|
-
body: await parseErrorBody(output.body, context),
|
|
1809
|
-
};
|
|
1810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
|
-
switch (errorCode) {
|
|
1812
|
-
case "AccessDeniedException":
|
|
1813
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1814
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1815
|
-
case "ConflictException":
|
|
1816
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1817
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1818
|
-
case "InternalServerException":
|
|
1819
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1820
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1821
|
-
case "ResourceNotFoundException":
|
|
1822
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1823
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1824
|
-
case "ThrottlingException":
|
|
1825
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1826
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1827
|
-
case "ValidationException":
|
|
1828
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1829
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1830
|
-
default:
|
|
1831
|
-
const parsedBody = parsedOutput.body;
|
|
1832
|
-
return throwDefaultError({
|
|
1833
|
-
output,
|
|
1834
|
-
parsedBody,
|
|
1835
|
-
errorCode,
|
|
1836
|
-
});
|
|
1837
|
-
}
|
|
1838
|
-
};
|
|
1839
1533
|
export const de_CreateDeviceProfileCommand = async (output, context) => {
|
|
1840
1534
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1841
|
-
return
|
|
1535
|
+
return de_CommandError(output, context);
|
|
1842
1536
|
}
|
|
1843
1537
|
const contents = map({
|
|
1844
1538
|
$metadata: deserializeMetadata(output),
|
|
@@ -1851,40 +1545,9 @@ export const de_CreateDeviceProfileCommand = async (output, context) => {
|
|
|
1851
1545
|
Object.assign(contents, doc);
|
|
1852
1546
|
return contents;
|
|
1853
1547
|
};
|
|
1854
|
-
const de_CreateDeviceProfileCommandError = async (output, context) => {
|
|
1855
|
-
const parsedOutput = {
|
|
1856
|
-
...output,
|
|
1857
|
-
body: await parseErrorBody(output.body, context),
|
|
1858
|
-
};
|
|
1859
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1860
|
-
switch (errorCode) {
|
|
1861
|
-
case "AccessDeniedException":
|
|
1862
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1863
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "ConflictException":
|
|
1865
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1866
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1867
|
-
case "InternalServerException":
|
|
1868
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1869
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1870
|
-
case "ThrottlingException":
|
|
1871
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1872
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "ValidationException":
|
|
1874
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1875
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1876
|
-
default:
|
|
1877
|
-
const parsedBody = parsedOutput.body;
|
|
1878
|
-
return throwDefaultError({
|
|
1879
|
-
output,
|
|
1880
|
-
parsedBody,
|
|
1881
|
-
errorCode,
|
|
1882
|
-
});
|
|
1883
|
-
}
|
|
1884
|
-
};
|
|
1885
1548
|
export const de_CreateFuotaTaskCommand = async (output, context) => {
|
|
1886
1549
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1887
|
-
return
|
|
1550
|
+
return de_CommandError(output, context);
|
|
1888
1551
|
}
|
|
1889
1552
|
const contents = map({
|
|
1890
1553
|
$metadata: deserializeMetadata(output),
|
|
@@ -1897,43 +1560,9 @@ export const de_CreateFuotaTaskCommand = async (output, context) => {
|
|
|
1897
1560
|
Object.assign(contents, doc);
|
|
1898
1561
|
return contents;
|
|
1899
1562
|
};
|
|
1900
|
-
const de_CreateFuotaTaskCommandError = async (output, context) => {
|
|
1901
|
-
const parsedOutput = {
|
|
1902
|
-
...output,
|
|
1903
|
-
body: await parseErrorBody(output.body, context),
|
|
1904
|
-
};
|
|
1905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1906
|
-
switch (errorCode) {
|
|
1907
|
-
case "AccessDeniedException":
|
|
1908
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1909
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "ConflictException":
|
|
1911
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1912
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "InternalServerException":
|
|
1914
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1915
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "ResourceNotFoundException":
|
|
1917
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1918
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ThrottlingException":
|
|
1920
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1921
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "ValidationException":
|
|
1923
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1924
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1925
|
-
default:
|
|
1926
|
-
const parsedBody = parsedOutput.body;
|
|
1927
|
-
return throwDefaultError({
|
|
1928
|
-
output,
|
|
1929
|
-
parsedBody,
|
|
1930
|
-
errorCode,
|
|
1931
|
-
});
|
|
1932
|
-
}
|
|
1933
|
-
};
|
|
1934
1563
|
export const de_CreateMulticastGroupCommand = async (output, context) => {
|
|
1935
1564
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1936
|
-
return
|
|
1565
|
+
return de_CommandError(output, context);
|
|
1937
1566
|
}
|
|
1938
1567
|
const contents = map({
|
|
1939
1568
|
$metadata: deserializeMetadata(output),
|
|
@@ -1946,43 +1575,9 @@ export const de_CreateMulticastGroupCommand = async (output, context) => {
|
|
|
1946
1575
|
Object.assign(contents, doc);
|
|
1947
1576
|
return contents;
|
|
1948
1577
|
};
|
|
1949
|
-
const de_CreateMulticastGroupCommandError = async (output, context) => {
|
|
1950
|
-
const parsedOutput = {
|
|
1951
|
-
...output,
|
|
1952
|
-
body: await parseErrorBody(output.body, context),
|
|
1953
|
-
};
|
|
1954
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1955
|
-
switch (errorCode) {
|
|
1956
|
-
case "AccessDeniedException":
|
|
1957
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
1958
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "ConflictException":
|
|
1960
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
1961
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "InternalServerException":
|
|
1963
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
1964
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "ResourceNotFoundException":
|
|
1966
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
1967
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "ThrottlingException":
|
|
1969
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
1970
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1971
|
-
case "ValidationException":
|
|
1972
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
1973
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1974
|
-
default:
|
|
1975
|
-
const parsedBody = parsedOutput.body;
|
|
1976
|
-
return throwDefaultError({
|
|
1977
|
-
output,
|
|
1978
|
-
parsedBody,
|
|
1979
|
-
errorCode,
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
1578
|
export const de_CreateNetworkAnalyzerConfigurationCommand = async (output, context) => {
|
|
1984
1579
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1985
|
-
return
|
|
1580
|
+
return de_CommandError(output, context);
|
|
1986
1581
|
}
|
|
1987
1582
|
const contents = map({
|
|
1988
1583
|
$metadata: deserializeMetadata(output),
|
|
@@ -1995,43 +1590,9 @@ export const de_CreateNetworkAnalyzerConfigurationCommand = async (output, conte
|
|
|
1995
1590
|
Object.assign(contents, doc);
|
|
1996
1591
|
return contents;
|
|
1997
1592
|
};
|
|
1998
|
-
const de_CreateNetworkAnalyzerConfigurationCommandError = async (output, context) => {
|
|
1999
|
-
const parsedOutput = {
|
|
2000
|
-
...output,
|
|
2001
|
-
body: await parseErrorBody(output.body, context),
|
|
2002
|
-
};
|
|
2003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2004
|
-
switch (errorCode) {
|
|
2005
|
-
case "AccessDeniedException":
|
|
2006
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2007
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "ConflictException":
|
|
2009
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2010
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "InternalServerException":
|
|
2012
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2013
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "ResourceNotFoundException":
|
|
2015
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2016
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "ThrottlingException":
|
|
2018
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2019
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "ValidationException":
|
|
2021
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2022
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2023
|
-
default:
|
|
2024
|
-
const parsedBody = parsedOutput.body;
|
|
2025
|
-
return throwDefaultError({
|
|
2026
|
-
output,
|
|
2027
|
-
parsedBody,
|
|
2028
|
-
errorCode,
|
|
2029
|
-
});
|
|
2030
|
-
}
|
|
2031
|
-
};
|
|
2032
1593
|
export const de_CreateServiceProfileCommand = async (output, context) => {
|
|
2033
1594
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2034
|
-
return
|
|
1595
|
+
return de_CommandError(output, context);
|
|
2035
1596
|
}
|
|
2036
1597
|
const contents = map({
|
|
2037
1598
|
$metadata: deserializeMetadata(output),
|
|
@@ -2044,40 +1605,9 @@ export const de_CreateServiceProfileCommand = async (output, context) => {
|
|
|
2044
1605
|
Object.assign(contents, doc);
|
|
2045
1606
|
return contents;
|
|
2046
1607
|
};
|
|
2047
|
-
const de_CreateServiceProfileCommandError = async (output, context) => {
|
|
2048
|
-
const parsedOutput = {
|
|
2049
|
-
...output,
|
|
2050
|
-
body: await parseErrorBody(output.body, context),
|
|
2051
|
-
};
|
|
2052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2053
|
-
switch (errorCode) {
|
|
2054
|
-
case "AccessDeniedException":
|
|
2055
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2056
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2057
|
-
case "ConflictException":
|
|
2058
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2059
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2060
|
-
case "InternalServerException":
|
|
2061
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2062
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ThrottlingException":
|
|
2064
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2065
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "ValidationException":
|
|
2067
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2068
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2069
|
-
default:
|
|
2070
|
-
const parsedBody = parsedOutput.body;
|
|
2071
|
-
return throwDefaultError({
|
|
2072
|
-
output,
|
|
2073
|
-
parsedBody,
|
|
2074
|
-
errorCode,
|
|
2075
|
-
});
|
|
2076
|
-
}
|
|
2077
|
-
};
|
|
2078
1608
|
export const de_CreateWirelessDeviceCommand = async (output, context) => {
|
|
2079
1609
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2080
|
-
return
|
|
1610
|
+
return de_CommandError(output, context);
|
|
2081
1611
|
}
|
|
2082
1612
|
const contents = map({
|
|
2083
1613
|
$metadata: deserializeMetadata(output),
|
|
@@ -2090,43 +1620,9 @@ export const de_CreateWirelessDeviceCommand = async (output, context) => {
|
|
|
2090
1620
|
Object.assign(contents, doc);
|
|
2091
1621
|
return contents;
|
|
2092
1622
|
};
|
|
2093
|
-
const de_CreateWirelessDeviceCommandError = async (output, context) => {
|
|
2094
|
-
const parsedOutput = {
|
|
2095
|
-
...output,
|
|
2096
|
-
body: await parseErrorBody(output.body, context),
|
|
2097
|
-
};
|
|
2098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2099
|
-
switch (errorCode) {
|
|
2100
|
-
case "AccessDeniedException":
|
|
2101
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2102
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "ConflictException":
|
|
2104
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2105
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "InternalServerException":
|
|
2107
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2108
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "ResourceNotFoundException":
|
|
2110
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2111
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ThrottlingException":
|
|
2113
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2114
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ValidationException":
|
|
2116
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2117
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2118
|
-
default:
|
|
2119
|
-
const parsedBody = parsedOutput.body;
|
|
2120
|
-
return throwDefaultError({
|
|
2121
|
-
output,
|
|
2122
|
-
parsedBody,
|
|
2123
|
-
errorCode,
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
};
|
|
2127
1623
|
export const de_CreateWirelessGatewayCommand = async (output, context) => {
|
|
2128
1624
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2129
|
-
return
|
|
1625
|
+
return de_CommandError(output, context);
|
|
2130
1626
|
}
|
|
2131
1627
|
const contents = map({
|
|
2132
1628
|
$metadata: deserializeMetadata(output),
|
|
@@ -2139,40 +1635,9 @@ export const de_CreateWirelessGatewayCommand = async (output, context) => {
|
|
|
2139
1635
|
Object.assign(contents, doc);
|
|
2140
1636
|
return contents;
|
|
2141
1637
|
};
|
|
2142
|
-
const de_CreateWirelessGatewayCommandError = async (output, context) => {
|
|
2143
|
-
const parsedOutput = {
|
|
2144
|
-
...output,
|
|
2145
|
-
body: await parseErrorBody(output.body, context),
|
|
2146
|
-
};
|
|
2147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
|
-
switch (errorCode) {
|
|
2149
|
-
case "AccessDeniedException":
|
|
2150
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "ConflictException":
|
|
2153
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2154
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "InternalServerException":
|
|
2156
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2157
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "ThrottlingException":
|
|
2159
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2160
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "ValidationException":
|
|
2162
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2163
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2164
|
-
default:
|
|
2165
|
-
const parsedBody = parsedOutput.body;
|
|
2166
|
-
return throwDefaultError({
|
|
2167
|
-
output,
|
|
2168
|
-
parsedBody,
|
|
2169
|
-
errorCode,
|
|
2170
|
-
});
|
|
2171
|
-
}
|
|
2172
|
-
};
|
|
2173
1638
|
export const de_CreateWirelessGatewayTaskCommand = async (output, context) => {
|
|
2174
1639
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2175
|
-
return
|
|
1640
|
+
return de_CommandError(output, context);
|
|
2176
1641
|
}
|
|
2177
1642
|
const contents = map({
|
|
2178
1643
|
$metadata: deserializeMetadata(output),
|
|
@@ -2185,43 +1650,9 @@ export const de_CreateWirelessGatewayTaskCommand = async (output, context) => {
|
|
|
2185
1650
|
Object.assign(contents, doc);
|
|
2186
1651
|
return contents;
|
|
2187
1652
|
};
|
|
2188
|
-
const de_CreateWirelessGatewayTaskCommandError = async (output, context) => {
|
|
2189
|
-
const parsedOutput = {
|
|
2190
|
-
...output,
|
|
2191
|
-
body: await parseErrorBody(output.body, context),
|
|
2192
|
-
};
|
|
2193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
-
switch (errorCode) {
|
|
2195
|
-
case "AccessDeniedException":
|
|
2196
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2197
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "ConflictException":
|
|
2199
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2200
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "InternalServerException":
|
|
2202
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2203
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "ResourceNotFoundException":
|
|
2205
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2206
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ThrottlingException":
|
|
2208
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2209
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ValidationException":
|
|
2211
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2212
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2213
|
-
default:
|
|
2214
|
-
const parsedBody = parsedOutput.body;
|
|
2215
|
-
return throwDefaultError({
|
|
2216
|
-
output,
|
|
2217
|
-
parsedBody,
|
|
2218
|
-
errorCode,
|
|
2219
|
-
});
|
|
2220
|
-
}
|
|
2221
|
-
};
|
|
2222
1653
|
export const de_CreateWirelessGatewayTaskDefinitionCommand = async (output, context) => {
|
|
2223
1654
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2224
|
-
return
|
|
1655
|
+
return de_CommandError(output, context);
|
|
2225
1656
|
}
|
|
2226
1657
|
const contents = map({
|
|
2227
1658
|
$metadata: deserializeMetadata(output),
|
|
@@ -2234,43 +1665,9 @@ export const de_CreateWirelessGatewayTaskDefinitionCommand = async (output, cont
|
|
|
2234
1665
|
Object.assign(contents, doc);
|
|
2235
1666
|
return contents;
|
|
2236
1667
|
};
|
|
2237
|
-
const de_CreateWirelessGatewayTaskDefinitionCommandError = async (output, context) => {
|
|
2238
|
-
const parsedOutput = {
|
|
2239
|
-
...output,
|
|
2240
|
-
body: await parseErrorBody(output.body, context),
|
|
2241
|
-
};
|
|
2242
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
|
-
switch (errorCode) {
|
|
2244
|
-
case "AccessDeniedException":
|
|
2245
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2246
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ConflictException":
|
|
2248
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2249
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "InternalServerException":
|
|
2251
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2252
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2253
|
-
case "ResourceNotFoundException":
|
|
2254
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2255
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2256
|
-
case "ThrottlingException":
|
|
2257
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2258
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2259
|
-
case "ValidationException":
|
|
2260
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2261
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2262
|
-
default:
|
|
2263
|
-
const parsedBody = parsedOutput.body;
|
|
2264
|
-
return throwDefaultError({
|
|
2265
|
-
output,
|
|
2266
|
-
parsedBody,
|
|
2267
|
-
errorCode,
|
|
2268
|
-
});
|
|
2269
|
-
}
|
|
2270
|
-
};
|
|
2271
1668
|
export const de_DeleteDestinationCommand = async (output, context) => {
|
|
2272
1669
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2273
|
-
return
|
|
1670
|
+
return de_CommandError(output, context);
|
|
2274
1671
|
}
|
|
2275
1672
|
const contents = map({
|
|
2276
1673
|
$metadata: deserializeMetadata(output),
|
|
@@ -2278,43 +1675,9 @@ export const de_DeleteDestinationCommand = async (output, context) => {
|
|
|
2278
1675
|
await collectBody(output.body, context);
|
|
2279
1676
|
return contents;
|
|
2280
1677
|
};
|
|
2281
|
-
const de_DeleteDestinationCommandError = async (output, context) => {
|
|
2282
|
-
const parsedOutput = {
|
|
2283
|
-
...output,
|
|
2284
|
-
body: await parseErrorBody(output.body, context),
|
|
2285
|
-
};
|
|
2286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2287
|
-
switch (errorCode) {
|
|
2288
|
-
case "AccessDeniedException":
|
|
2289
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2290
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "ConflictException":
|
|
2292
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2293
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "InternalServerException":
|
|
2295
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2296
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2297
|
-
case "ResourceNotFoundException":
|
|
2298
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2299
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "ThrottlingException":
|
|
2301
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2302
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "ValidationException":
|
|
2304
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2305
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2306
|
-
default:
|
|
2307
|
-
const parsedBody = parsedOutput.body;
|
|
2308
|
-
return throwDefaultError({
|
|
2309
|
-
output,
|
|
2310
|
-
parsedBody,
|
|
2311
|
-
errorCode,
|
|
2312
|
-
});
|
|
2313
|
-
}
|
|
2314
|
-
};
|
|
2315
1678
|
export const de_DeleteDeviceProfileCommand = async (output, context) => {
|
|
2316
1679
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2317
|
-
return
|
|
1680
|
+
return de_CommandError(output, context);
|
|
2318
1681
|
}
|
|
2319
1682
|
const contents = map({
|
|
2320
1683
|
$metadata: deserializeMetadata(output),
|
|
@@ -2322,43 +1685,9 @@ export const de_DeleteDeviceProfileCommand = async (output, context) => {
|
|
|
2322
1685
|
await collectBody(output.body, context);
|
|
2323
1686
|
return contents;
|
|
2324
1687
|
};
|
|
2325
|
-
const de_DeleteDeviceProfileCommandError = async (output, context) => {
|
|
2326
|
-
const parsedOutput = {
|
|
2327
|
-
...output,
|
|
2328
|
-
body: await parseErrorBody(output.body, context),
|
|
2329
|
-
};
|
|
2330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2331
|
-
switch (errorCode) {
|
|
2332
|
-
case "AccessDeniedException":
|
|
2333
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2334
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "ConflictException":
|
|
2336
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2337
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2338
|
-
case "InternalServerException":
|
|
2339
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2340
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2341
|
-
case "ResourceNotFoundException":
|
|
2342
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2343
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "ThrottlingException":
|
|
2345
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2346
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "ValidationException":
|
|
2348
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2349
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2350
|
-
default:
|
|
2351
|
-
const parsedBody = parsedOutput.body;
|
|
2352
|
-
return throwDefaultError({
|
|
2353
|
-
output,
|
|
2354
|
-
parsedBody,
|
|
2355
|
-
errorCode,
|
|
2356
|
-
});
|
|
2357
|
-
}
|
|
2358
|
-
};
|
|
2359
1688
|
export const de_DeleteFuotaTaskCommand = async (output, context) => {
|
|
2360
1689
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2361
|
-
return
|
|
1690
|
+
return de_CommandError(output, context);
|
|
2362
1691
|
}
|
|
2363
1692
|
const contents = map({
|
|
2364
1693
|
$metadata: deserializeMetadata(output),
|
|
@@ -2366,40 +1695,9 @@ export const de_DeleteFuotaTaskCommand = async (output, context) => {
|
|
|
2366
1695
|
await collectBody(output.body, context);
|
|
2367
1696
|
return contents;
|
|
2368
1697
|
};
|
|
2369
|
-
const de_DeleteFuotaTaskCommandError = async (output, context) => {
|
|
2370
|
-
const parsedOutput = {
|
|
2371
|
-
...output,
|
|
2372
|
-
body: await parseErrorBody(output.body, context),
|
|
2373
|
-
};
|
|
2374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2375
|
-
switch (errorCode) {
|
|
2376
|
-
case "AccessDeniedException":
|
|
2377
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2378
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "InternalServerException":
|
|
2380
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2381
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "ResourceNotFoundException":
|
|
2383
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "ThrottlingException":
|
|
2386
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2387
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "ValidationException":
|
|
2389
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2390
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2391
|
-
default:
|
|
2392
|
-
const parsedBody = parsedOutput.body;
|
|
2393
|
-
return throwDefaultError({
|
|
2394
|
-
output,
|
|
2395
|
-
parsedBody,
|
|
2396
|
-
errorCode,
|
|
2397
|
-
});
|
|
2398
|
-
}
|
|
2399
|
-
};
|
|
2400
1698
|
export const de_DeleteMulticastGroupCommand = async (output, context) => {
|
|
2401
1699
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2402
|
-
return
|
|
1700
|
+
return de_CommandError(output, context);
|
|
2403
1701
|
}
|
|
2404
1702
|
const contents = map({
|
|
2405
1703
|
$metadata: deserializeMetadata(output),
|
|
@@ -2407,43 +1705,9 @@ export const de_DeleteMulticastGroupCommand = async (output, context) => {
|
|
|
2407
1705
|
await collectBody(output.body, context);
|
|
2408
1706
|
return contents;
|
|
2409
1707
|
};
|
|
2410
|
-
const de_DeleteMulticastGroupCommandError = async (output, context) => {
|
|
2411
|
-
const parsedOutput = {
|
|
2412
|
-
...output,
|
|
2413
|
-
body: await parseErrorBody(output.body, context),
|
|
2414
|
-
};
|
|
2415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2416
|
-
switch (errorCode) {
|
|
2417
|
-
case "AccessDeniedException":
|
|
2418
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2419
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "ConflictException":
|
|
2421
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2422
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "InternalServerException":
|
|
2424
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2425
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "ResourceNotFoundException":
|
|
2427
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2428
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "ThrottlingException":
|
|
2430
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2431
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "ValidationException":
|
|
2433
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2434
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2435
|
-
default:
|
|
2436
|
-
const parsedBody = parsedOutput.body;
|
|
2437
|
-
return throwDefaultError({
|
|
2438
|
-
output,
|
|
2439
|
-
parsedBody,
|
|
2440
|
-
errorCode,
|
|
2441
|
-
});
|
|
2442
|
-
}
|
|
2443
|
-
};
|
|
2444
1708
|
export const de_DeleteNetworkAnalyzerConfigurationCommand = async (output, context) => {
|
|
2445
1709
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2446
|
-
return
|
|
1710
|
+
return de_CommandError(output, context);
|
|
2447
1711
|
}
|
|
2448
1712
|
const contents = map({
|
|
2449
1713
|
$metadata: deserializeMetadata(output),
|
|
@@ -2451,374 +1715,9 @@ export const de_DeleteNetworkAnalyzerConfigurationCommand = async (output, conte
|
|
|
2451
1715
|
await collectBody(output.body, context);
|
|
2452
1716
|
return contents;
|
|
2453
1717
|
};
|
|
2454
|
-
const de_DeleteNetworkAnalyzerConfigurationCommandError = async (output, context) => {
|
|
2455
|
-
const parsedOutput = {
|
|
2456
|
-
...output,
|
|
2457
|
-
body: await parseErrorBody(output.body, context),
|
|
2458
|
-
};
|
|
2459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2460
|
-
switch (errorCode) {
|
|
2461
|
-
case "AccessDeniedException":
|
|
2462
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2463
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "ConflictException":
|
|
2465
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2466
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "InternalServerException":
|
|
2468
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2469
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "ResourceNotFoundException":
|
|
2471
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "ThrottlingException":
|
|
2474
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2475
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "ValidationException":
|
|
2477
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2479
|
-
default:
|
|
2480
|
-
const parsedBody = parsedOutput.body;
|
|
2481
|
-
return throwDefaultError({
|
|
2482
|
-
output,
|
|
2483
|
-
parsedBody,
|
|
2484
|
-
errorCode,
|
|
2485
|
-
});
|
|
2486
|
-
}
|
|
2487
|
-
};
|
|
2488
1718
|
export const de_DeleteQueuedMessagesCommand = async (output, context) => {
|
|
2489
1719
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2490
|
-
return
|
|
2491
|
-
}
|
|
2492
|
-
const contents = map({
|
|
2493
|
-
$metadata: deserializeMetadata(output),
|
|
2494
|
-
});
|
|
2495
|
-
await collectBody(output.body, context);
|
|
2496
|
-
return contents;
|
|
2497
|
-
};
|
|
2498
|
-
const de_DeleteQueuedMessagesCommandError = async (output, context) => {
|
|
2499
|
-
const parsedOutput = {
|
|
2500
|
-
...output,
|
|
2501
|
-
body: await parseErrorBody(output.body, context),
|
|
2502
|
-
};
|
|
2503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2504
|
-
switch (errorCode) {
|
|
2505
|
-
case "AccessDeniedException":
|
|
2506
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2507
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "InternalServerException":
|
|
2509
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2510
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2511
|
-
case "ResourceNotFoundException":
|
|
2512
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "ThrottlingException":
|
|
2515
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2516
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2517
|
-
case "ValidationException":
|
|
2518
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2519
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2520
|
-
default:
|
|
2521
|
-
const parsedBody = parsedOutput.body;
|
|
2522
|
-
return throwDefaultError({
|
|
2523
|
-
output,
|
|
2524
|
-
parsedBody,
|
|
2525
|
-
errorCode,
|
|
2526
|
-
});
|
|
2527
|
-
}
|
|
2528
|
-
};
|
|
2529
|
-
export const de_DeleteServiceProfileCommand = async (output, context) => {
|
|
2530
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2531
|
-
return de_DeleteServiceProfileCommandError(output, context);
|
|
2532
|
-
}
|
|
2533
|
-
const contents = map({
|
|
2534
|
-
$metadata: deserializeMetadata(output),
|
|
2535
|
-
});
|
|
2536
|
-
await collectBody(output.body, context);
|
|
2537
|
-
return contents;
|
|
2538
|
-
};
|
|
2539
|
-
const de_DeleteServiceProfileCommandError = async (output, context) => {
|
|
2540
|
-
const parsedOutput = {
|
|
2541
|
-
...output,
|
|
2542
|
-
body: await parseErrorBody(output.body, context),
|
|
2543
|
-
};
|
|
2544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2545
|
-
switch (errorCode) {
|
|
2546
|
-
case "AccessDeniedException":
|
|
2547
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2548
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "ConflictException":
|
|
2550
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2551
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "InternalServerException":
|
|
2553
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2554
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2555
|
-
case "ResourceNotFoundException":
|
|
2556
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2558
|
-
case "ThrottlingException":
|
|
2559
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2560
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2561
|
-
case "ValidationException":
|
|
2562
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2563
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2564
|
-
default:
|
|
2565
|
-
const parsedBody = parsedOutput.body;
|
|
2566
|
-
return throwDefaultError({
|
|
2567
|
-
output,
|
|
2568
|
-
parsedBody,
|
|
2569
|
-
errorCode,
|
|
2570
|
-
});
|
|
2571
|
-
}
|
|
2572
|
-
};
|
|
2573
|
-
export const de_DeleteWirelessDeviceCommand = async (output, context) => {
|
|
2574
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2575
|
-
return de_DeleteWirelessDeviceCommandError(output, context);
|
|
2576
|
-
}
|
|
2577
|
-
const contents = map({
|
|
2578
|
-
$metadata: deserializeMetadata(output),
|
|
2579
|
-
});
|
|
2580
|
-
await collectBody(output.body, context);
|
|
2581
|
-
return contents;
|
|
2582
|
-
};
|
|
2583
|
-
const de_DeleteWirelessDeviceCommandError = async (output, context) => {
|
|
2584
|
-
const parsedOutput = {
|
|
2585
|
-
...output,
|
|
2586
|
-
body: await parseErrorBody(output.body, context),
|
|
2587
|
-
};
|
|
2588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2589
|
-
switch (errorCode) {
|
|
2590
|
-
case "AccessDeniedException":
|
|
2591
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2592
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "InternalServerException":
|
|
2594
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2595
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "ResourceNotFoundException":
|
|
2597
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2598
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2599
|
-
case "ThrottlingException":
|
|
2600
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2601
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2602
|
-
case "ValidationException":
|
|
2603
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2604
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2605
|
-
default:
|
|
2606
|
-
const parsedBody = parsedOutput.body;
|
|
2607
|
-
return throwDefaultError({
|
|
2608
|
-
output,
|
|
2609
|
-
parsedBody,
|
|
2610
|
-
errorCode,
|
|
2611
|
-
});
|
|
2612
|
-
}
|
|
2613
|
-
};
|
|
2614
|
-
export const de_DeleteWirelessDeviceImportTaskCommand = async (output, context) => {
|
|
2615
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2616
|
-
return de_DeleteWirelessDeviceImportTaskCommandError(output, context);
|
|
2617
|
-
}
|
|
2618
|
-
const contents = map({
|
|
2619
|
-
$metadata: deserializeMetadata(output),
|
|
2620
|
-
});
|
|
2621
|
-
await collectBody(output.body, context);
|
|
2622
|
-
return contents;
|
|
2623
|
-
};
|
|
2624
|
-
const de_DeleteWirelessDeviceImportTaskCommandError = async (output, context) => {
|
|
2625
|
-
const parsedOutput = {
|
|
2626
|
-
...output,
|
|
2627
|
-
body: await parseErrorBody(output.body, context),
|
|
2628
|
-
};
|
|
2629
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2630
|
-
switch (errorCode) {
|
|
2631
|
-
case "AccessDeniedException":
|
|
2632
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2633
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2634
|
-
case "ConflictException":
|
|
2635
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2636
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2637
|
-
case "InternalServerException":
|
|
2638
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2639
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2640
|
-
case "ResourceNotFoundException":
|
|
2641
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2642
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2643
|
-
case "ThrottlingException":
|
|
2644
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2645
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2646
|
-
case "ValidationException":
|
|
2647
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2648
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2649
|
-
default:
|
|
2650
|
-
const parsedBody = parsedOutput.body;
|
|
2651
|
-
return throwDefaultError({
|
|
2652
|
-
output,
|
|
2653
|
-
parsedBody,
|
|
2654
|
-
errorCode,
|
|
2655
|
-
});
|
|
2656
|
-
}
|
|
2657
|
-
};
|
|
2658
|
-
export const de_DeleteWirelessGatewayCommand = async (output, context) => {
|
|
2659
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2660
|
-
return de_DeleteWirelessGatewayCommandError(output, context);
|
|
2661
|
-
}
|
|
2662
|
-
const contents = map({
|
|
2663
|
-
$metadata: deserializeMetadata(output),
|
|
2664
|
-
});
|
|
2665
|
-
await collectBody(output.body, context);
|
|
2666
|
-
return contents;
|
|
2667
|
-
};
|
|
2668
|
-
const de_DeleteWirelessGatewayCommandError = async (output, context) => {
|
|
2669
|
-
const parsedOutput = {
|
|
2670
|
-
...output,
|
|
2671
|
-
body: await parseErrorBody(output.body, context),
|
|
2672
|
-
};
|
|
2673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2674
|
-
switch (errorCode) {
|
|
2675
|
-
case "AccessDeniedException":
|
|
2676
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2677
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "InternalServerException":
|
|
2679
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2680
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "ResourceNotFoundException":
|
|
2682
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2683
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "ThrottlingException":
|
|
2685
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2686
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2687
|
-
case "ValidationException":
|
|
2688
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2690
|
-
default:
|
|
2691
|
-
const parsedBody = parsedOutput.body;
|
|
2692
|
-
return throwDefaultError({
|
|
2693
|
-
output,
|
|
2694
|
-
parsedBody,
|
|
2695
|
-
errorCode,
|
|
2696
|
-
});
|
|
2697
|
-
}
|
|
2698
|
-
};
|
|
2699
|
-
export const de_DeleteWirelessGatewayTaskCommand = async (output, context) => {
|
|
2700
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2701
|
-
return de_DeleteWirelessGatewayTaskCommandError(output, context);
|
|
2702
|
-
}
|
|
2703
|
-
const contents = map({
|
|
2704
|
-
$metadata: deserializeMetadata(output),
|
|
2705
|
-
});
|
|
2706
|
-
await collectBody(output.body, context);
|
|
2707
|
-
return contents;
|
|
2708
|
-
};
|
|
2709
|
-
const de_DeleteWirelessGatewayTaskCommandError = async (output, context) => {
|
|
2710
|
-
const parsedOutput = {
|
|
2711
|
-
...output,
|
|
2712
|
-
body: await parseErrorBody(output.body, context),
|
|
2713
|
-
};
|
|
2714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
|
-
switch (errorCode) {
|
|
2716
|
-
case "AccessDeniedException":
|
|
2717
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2718
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "InternalServerException":
|
|
2720
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2721
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "ResourceNotFoundException":
|
|
2723
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2724
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "ThrottlingException":
|
|
2726
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2727
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "ValidationException":
|
|
2729
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2731
|
-
default:
|
|
2732
|
-
const parsedBody = parsedOutput.body;
|
|
2733
|
-
return throwDefaultError({
|
|
2734
|
-
output,
|
|
2735
|
-
parsedBody,
|
|
2736
|
-
errorCode,
|
|
2737
|
-
});
|
|
2738
|
-
}
|
|
2739
|
-
};
|
|
2740
|
-
export const de_DeleteWirelessGatewayTaskDefinitionCommand = async (output, context) => {
|
|
2741
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2742
|
-
return de_DeleteWirelessGatewayTaskDefinitionCommandError(output, context);
|
|
2743
|
-
}
|
|
2744
|
-
const contents = map({
|
|
2745
|
-
$metadata: deserializeMetadata(output),
|
|
2746
|
-
});
|
|
2747
|
-
await collectBody(output.body, context);
|
|
2748
|
-
return contents;
|
|
2749
|
-
};
|
|
2750
|
-
const de_DeleteWirelessGatewayTaskDefinitionCommandError = async (output, context) => {
|
|
2751
|
-
const parsedOutput = {
|
|
2752
|
-
...output,
|
|
2753
|
-
body: await parseErrorBody(output.body, context),
|
|
2754
|
-
};
|
|
2755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2756
|
-
switch (errorCode) {
|
|
2757
|
-
case "AccessDeniedException":
|
|
2758
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2759
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "InternalServerException":
|
|
2761
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2762
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "ResourceNotFoundException":
|
|
2764
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2765
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "ThrottlingException":
|
|
2767
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2768
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2769
|
-
case "ValidationException":
|
|
2770
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2771
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2772
|
-
default:
|
|
2773
|
-
const parsedBody = parsedOutput.body;
|
|
2774
|
-
return throwDefaultError({
|
|
2775
|
-
output,
|
|
2776
|
-
parsedBody,
|
|
2777
|
-
errorCode,
|
|
2778
|
-
});
|
|
2779
|
-
}
|
|
2780
|
-
};
|
|
2781
|
-
export const de_DeregisterWirelessDeviceCommand = async (output, context) => {
|
|
2782
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2783
|
-
return de_DeregisterWirelessDeviceCommandError(output, context);
|
|
2784
|
-
}
|
|
2785
|
-
const contents = map({
|
|
2786
|
-
$metadata: deserializeMetadata(output),
|
|
2787
|
-
});
|
|
2788
|
-
await collectBody(output.body, context);
|
|
2789
|
-
return contents;
|
|
2790
|
-
};
|
|
2791
|
-
const de_DeregisterWirelessDeviceCommandError = async (output, context) => {
|
|
2792
|
-
const parsedOutput = {
|
|
2793
|
-
...output,
|
|
2794
|
-
body: await parseErrorBody(output.body, context),
|
|
2795
|
-
};
|
|
2796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
-
switch (errorCode) {
|
|
2798
|
-
case "InternalServerException":
|
|
2799
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "ResourceNotFoundException":
|
|
2802
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2803
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ThrottlingException":
|
|
2805
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2806
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ValidationException":
|
|
2808
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2809
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2810
|
-
default:
|
|
2811
|
-
const parsedBody = parsedOutput.body;
|
|
2812
|
-
return throwDefaultError({
|
|
2813
|
-
output,
|
|
2814
|
-
parsedBody,
|
|
2815
|
-
errorCode,
|
|
2816
|
-
});
|
|
2817
|
-
}
|
|
2818
|
-
};
|
|
2819
|
-
export const de_DisassociateAwsAccountFromPartnerAccountCommand = async (output, context) => {
|
|
2820
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2821
|
-
return de_DisassociateAwsAccountFromPartnerAccountCommandError(output, context);
|
|
1720
|
+
return de_CommandError(output, context);
|
|
2822
1721
|
}
|
|
2823
1722
|
const contents = map({
|
|
2824
1723
|
$metadata: deserializeMetadata(output),
|
|
@@ -2826,37 +1725,19 @@ export const de_DisassociateAwsAccountFromPartnerAccountCommand = async (output,
|
|
|
2826
1725
|
await collectBody(output.body, context);
|
|
2827
1726
|
return contents;
|
|
2828
1727
|
};
|
|
2829
|
-
const
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
body: await parseErrorBody(output.body, context),
|
|
2833
|
-
};
|
|
2834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2835
|
-
switch (errorCode) {
|
|
2836
|
-
case "InternalServerException":
|
|
2837
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2838
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "ResourceNotFoundException":
|
|
2840
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2841
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "ThrottlingException":
|
|
2843
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2844
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "ValidationException":
|
|
2846
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2847
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2848
|
-
default:
|
|
2849
|
-
const parsedBody = parsedOutput.body;
|
|
2850
|
-
return throwDefaultError({
|
|
2851
|
-
output,
|
|
2852
|
-
parsedBody,
|
|
2853
|
-
errorCode,
|
|
2854
|
-
});
|
|
1728
|
+
export const de_DeleteServiceProfileCommand = async (output, context) => {
|
|
1729
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1730
|
+
return de_CommandError(output, context);
|
|
2855
1731
|
}
|
|
1732
|
+
const contents = map({
|
|
1733
|
+
$metadata: deserializeMetadata(output),
|
|
1734
|
+
});
|
|
1735
|
+
await collectBody(output.body, context);
|
|
1736
|
+
return contents;
|
|
2856
1737
|
};
|
|
2857
|
-
export const
|
|
1738
|
+
export const de_DeleteWirelessDeviceCommand = async (output, context) => {
|
|
2858
1739
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2859
|
-
return
|
|
1740
|
+
return de_CommandError(output, context);
|
|
2860
1741
|
}
|
|
2861
1742
|
const contents = map({
|
|
2862
1743
|
$metadata: deserializeMetadata(output),
|
|
@@ -2864,40 +1745,19 @@ export const de_DisassociateMulticastGroupFromFuotaTaskCommand = async (output,
|
|
|
2864
1745
|
await collectBody(output.body, context);
|
|
2865
1746
|
return contents;
|
|
2866
1747
|
};
|
|
2867
|
-
const
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
body: await parseErrorBody(output.body, context),
|
|
2871
|
-
};
|
|
2872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2873
|
-
switch (errorCode) {
|
|
2874
|
-
case "AccessDeniedException":
|
|
2875
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2876
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2877
|
-
case "ConflictException":
|
|
2878
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2879
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2880
|
-
case "InternalServerException":
|
|
2881
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2882
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "ResourceNotFoundException":
|
|
2884
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2886
|
-
case "ValidationException":
|
|
2887
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2888
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2889
|
-
default:
|
|
2890
|
-
const parsedBody = parsedOutput.body;
|
|
2891
|
-
return throwDefaultError({
|
|
2892
|
-
output,
|
|
2893
|
-
parsedBody,
|
|
2894
|
-
errorCode,
|
|
2895
|
-
});
|
|
1748
|
+
export const de_DeleteWirelessDeviceImportTaskCommand = async (output, context) => {
|
|
1749
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1750
|
+
return de_CommandError(output, context);
|
|
2896
1751
|
}
|
|
1752
|
+
const contents = map({
|
|
1753
|
+
$metadata: deserializeMetadata(output),
|
|
1754
|
+
});
|
|
1755
|
+
await collectBody(output.body, context);
|
|
1756
|
+
return contents;
|
|
2897
1757
|
};
|
|
2898
|
-
export const
|
|
1758
|
+
export const de_DeleteWirelessGatewayCommand = async (output, context) => {
|
|
2899
1759
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2900
|
-
return
|
|
1760
|
+
return de_CommandError(output, context);
|
|
2901
1761
|
}
|
|
2902
1762
|
const contents = map({
|
|
2903
1763
|
$metadata: deserializeMetadata(output),
|
|
@@ -2905,43 +1765,19 @@ export const de_DisassociateWirelessDeviceFromFuotaTaskCommand = async (output,
|
|
|
2905
1765
|
await collectBody(output.body, context);
|
|
2906
1766
|
return contents;
|
|
2907
1767
|
};
|
|
2908
|
-
const
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
body: await parseErrorBody(output.body, context),
|
|
2912
|
-
};
|
|
2913
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2914
|
-
switch (errorCode) {
|
|
2915
|
-
case "AccessDeniedException":
|
|
2916
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2917
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2918
|
-
case "ConflictException":
|
|
2919
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
2920
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2921
|
-
case "InternalServerException":
|
|
2922
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2923
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2924
|
-
case "ResourceNotFoundException":
|
|
2925
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2926
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "ThrottlingException":
|
|
2928
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2929
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2930
|
-
case "ValidationException":
|
|
2931
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2932
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2933
|
-
default:
|
|
2934
|
-
const parsedBody = parsedOutput.body;
|
|
2935
|
-
return throwDefaultError({
|
|
2936
|
-
output,
|
|
2937
|
-
parsedBody,
|
|
2938
|
-
errorCode,
|
|
2939
|
-
});
|
|
1768
|
+
export const de_DeleteWirelessGatewayTaskCommand = async (output, context) => {
|
|
1769
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1770
|
+
return de_CommandError(output, context);
|
|
2940
1771
|
}
|
|
1772
|
+
const contents = map({
|
|
1773
|
+
$metadata: deserializeMetadata(output),
|
|
1774
|
+
});
|
|
1775
|
+
await collectBody(output.body, context);
|
|
1776
|
+
return contents;
|
|
2941
1777
|
};
|
|
2942
|
-
export const
|
|
1778
|
+
export const de_DeleteWirelessGatewayTaskDefinitionCommand = async (output, context) => {
|
|
2943
1779
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2944
|
-
return
|
|
1780
|
+
return de_CommandError(output, context);
|
|
2945
1781
|
}
|
|
2946
1782
|
const contents = map({
|
|
2947
1783
|
$metadata: deserializeMetadata(output),
|
|
@@ -2949,40 +1785,19 @@ export const de_DisassociateWirelessDeviceFromMulticastGroupCommand = async (out
|
|
|
2949
1785
|
await collectBody(output.body, context);
|
|
2950
1786
|
return contents;
|
|
2951
1787
|
};
|
|
2952
|
-
const
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
body: await parseErrorBody(output.body, context),
|
|
2956
|
-
};
|
|
2957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
|
-
switch (errorCode) {
|
|
2959
|
-
case "AccessDeniedException":
|
|
2960
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
2961
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2962
|
-
case "InternalServerException":
|
|
2963
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
2964
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2965
|
-
case "ResourceNotFoundException":
|
|
2966
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
2967
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2968
|
-
case "ThrottlingException":
|
|
2969
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
2970
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2971
|
-
case "ValidationException":
|
|
2972
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
2973
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2974
|
-
default:
|
|
2975
|
-
const parsedBody = parsedOutput.body;
|
|
2976
|
-
return throwDefaultError({
|
|
2977
|
-
output,
|
|
2978
|
-
parsedBody,
|
|
2979
|
-
errorCode,
|
|
2980
|
-
});
|
|
1788
|
+
export const de_DeregisterWirelessDeviceCommand = async (output, context) => {
|
|
1789
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1790
|
+
return de_CommandError(output, context);
|
|
2981
1791
|
}
|
|
1792
|
+
const contents = map({
|
|
1793
|
+
$metadata: deserializeMetadata(output),
|
|
1794
|
+
});
|
|
1795
|
+
await collectBody(output.body, context);
|
|
1796
|
+
return contents;
|
|
2982
1797
|
};
|
|
2983
|
-
export const
|
|
1798
|
+
export const de_DisassociateAwsAccountFromPartnerAccountCommand = async (output, context) => {
|
|
2984
1799
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2985
|
-
return
|
|
1800
|
+
return de_CommandError(output, context);
|
|
2986
1801
|
}
|
|
2987
1802
|
const contents = map({
|
|
2988
1803
|
$metadata: deserializeMetadata(output),
|
|
@@ -2990,43 +1805,19 @@ export const de_DisassociateWirelessDeviceFromThingCommand = async (output, cont
|
|
|
2990
1805
|
await collectBody(output.body, context);
|
|
2991
1806
|
return contents;
|
|
2992
1807
|
};
|
|
2993
|
-
const
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
body: await parseErrorBody(output.body, context),
|
|
2997
|
-
};
|
|
2998
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2999
|
-
switch (errorCode) {
|
|
3000
|
-
case "AccessDeniedException":
|
|
3001
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3002
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3003
|
-
case "ConflictException":
|
|
3004
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
3005
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "InternalServerException":
|
|
3007
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3008
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "ResourceNotFoundException":
|
|
3010
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3011
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3012
|
-
case "ThrottlingException":
|
|
3013
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3014
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "ValidationException":
|
|
3016
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3017
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3018
|
-
default:
|
|
3019
|
-
const parsedBody = parsedOutput.body;
|
|
3020
|
-
return throwDefaultError({
|
|
3021
|
-
output,
|
|
3022
|
-
parsedBody,
|
|
3023
|
-
errorCode,
|
|
3024
|
-
});
|
|
1808
|
+
export const de_DisassociateMulticastGroupFromFuotaTaskCommand = async (output, context) => {
|
|
1809
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1810
|
+
return de_CommandError(output, context);
|
|
3025
1811
|
}
|
|
1812
|
+
const contents = map({
|
|
1813
|
+
$metadata: deserializeMetadata(output),
|
|
1814
|
+
});
|
|
1815
|
+
await collectBody(output.body, context);
|
|
1816
|
+
return contents;
|
|
3026
1817
|
};
|
|
3027
|
-
export const
|
|
1818
|
+
export const de_DisassociateWirelessDeviceFromFuotaTaskCommand = async (output, context) => {
|
|
3028
1819
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3029
|
-
return
|
|
1820
|
+
return de_CommandError(output, context);
|
|
3030
1821
|
}
|
|
3031
1822
|
const contents = map({
|
|
3032
1823
|
$metadata: deserializeMetadata(output),
|
|
@@ -3034,40 +1825,19 @@ export const de_DisassociateWirelessGatewayFromCertificateCommand = async (outpu
|
|
|
3034
1825
|
await collectBody(output.body, context);
|
|
3035
1826
|
return contents;
|
|
3036
1827
|
};
|
|
3037
|
-
const
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
body: await parseErrorBody(output.body, context),
|
|
3041
|
-
};
|
|
3042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3043
|
-
switch (errorCode) {
|
|
3044
|
-
case "AccessDeniedException":
|
|
3045
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3046
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3047
|
-
case "InternalServerException":
|
|
3048
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3049
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3050
|
-
case "ResourceNotFoundException":
|
|
3051
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3052
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3053
|
-
case "ThrottlingException":
|
|
3054
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3055
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "ValidationException":
|
|
3057
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3058
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3059
|
-
default:
|
|
3060
|
-
const parsedBody = parsedOutput.body;
|
|
3061
|
-
return throwDefaultError({
|
|
3062
|
-
output,
|
|
3063
|
-
parsedBody,
|
|
3064
|
-
errorCode,
|
|
3065
|
-
});
|
|
1828
|
+
export const de_DisassociateWirelessDeviceFromMulticastGroupCommand = async (output, context) => {
|
|
1829
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1830
|
+
return de_CommandError(output, context);
|
|
3066
1831
|
}
|
|
1832
|
+
const contents = map({
|
|
1833
|
+
$metadata: deserializeMetadata(output),
|
|
1834
|
+
});
|
|
1835
|
+
await collectBody(output.body, context);
|
|
1836
|
+
return contents;
|
|
3067
1837
|
};
|
|
3068
|
-
export const
|
|
1838
|
+
export const de_DisassociateWirelessDeviceFromThingCommand = async (output, context) => {
|
|
3069
1839
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3070
|
-
return
|
|
1840
|
+
return de_CommandError(output, context);
|
|
3071
1841
|
}
|
|
3072
1842
|
const contents = map({
|
|
3073
1843
|
$metadata: deserializeMetadata(output),
|
|
@@ -3075,43 +1845,29 @@ export const de_DisassociateWirelessGatewayFromThingCommand = async (output, con
|
|
|
3075
1845
|
await collectBody(output.body, context);
|
|
3076
1846
|
return contents;
|
|
3077
1847
|
};
|
|
3078
|
-
const
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
case "InternalServerException":
|
|
3092
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3093
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3094
|
-
case "ResourceNotFoundException":
|
|
3095
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3096
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3097
|
-
case "ThrottlingException":
|
|
3098
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3099
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3100
|
-
case "ValidationException":
|
|
3101
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3102
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3103
|
-
default:
|
|
3104
|
-
const parsedBody = parsedOutput.body;
|
|
3105
|
-
return throwDefaultError({
|
|
3106
|
-
output,
|
|
3107
|
-
parsedBody,
|
|
3108
|
-
errorCode,
|
|
3109
|
-
});
|
|
1848
|
+
export const de_DisassociateWirelessGatewayFromCertificateCommand = async (output, context) => {
|
|
1849
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1850
|
+
return de_CommandError(output, context);
|
|
1851
|
+
}
|
|
1852
|
+
const contents = map({
|
|
1853
|
+
$metadata: deserializeMetadata(output),
|
|
1854
|
+
});
|
|
1855
|
+
await collectBody(output.body, context);
|
|
1856
|
+
return contents;
|
|
1857
|
+
};
|
|
1858
|
+
export const de_DisassociateWirelessGatewayFromThingCommand = async (output, context) => {
|
|
1859
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1860
|
+
return de_CommandError(output, context);
|
|
3110
1861
|
}
|
|
1862
|
+
const contents = map({
|
|
1863
|
+
$metadata: deserializeMetadata(output),
|
|
1864
|
+
});
|
|
1865
|
+
await collectBody(output.body, context);
|
|
1866
|
+
return contents;
|
|
3111
1867
|
};
|
|
3112
1868
|
export const de_GetDestinationCommand = async (output, context) => {
|
|
3113
1869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3114
|
-
return
|
|
1870
|
+
return de_CommandError(output, context);
|
|
3115
1871
|
}
|
|
3116
1872
|
const contents = map({
|
|
3117
1873
|
$metadata: deserializeMetadata(output),
|
|
@@ -3128,40 +1884,9 @@ export const de_GetDestinationCommand = async (output, context) => {
|
|
|
3128
1884
|
Object.assign(contents, doc);
|
|
3129
1885
|
return contents;
|
|
3130
1886
|
};
|
|
3131
|
-
const de_GetDestinationCommandError = async (output, context) => {
|
|
3132
|
-
const parsedOutput = {
|
|
3133
|
-
...output,
|
|
3134
|
-
body: await parseErrorBody(output.body, context),
|
|
3135
|
-
};
|
|
3136
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3137
|
-
switch (errorCode) {
|
|
3138
|
-
case "AccessDeniedException":
|
|
3139
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3140
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3141
|
-
case "InternalServerException":
|
|
3142
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3143
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3144
|
-
case "ResourceNotFoundException":
|
|
3145
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3146
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3147
|
-
case "ThrottlingException":
|
|
3148
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3149
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "ValidationException":
|
|
3151
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3152
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3153
|
-
default:
|
|
3154
|
-
const parsedBody = parsedOutput.body;
|
|
3155
|
-
return throwDefaultError({
|
|
3156
|
-
output,
|
|
3157
|
-
parsedBody,
|
|
3158
|
-
errorCode,
|
|
3159
|
-
});
|
|
3160
|
-
}
|
|
3161
|
-
};
|
|
3162
1887
|
export const de_GetDeviceProfileCommand = async (output, context) => {
|
|
3163
1888
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3164
|
-
return
|
|
1889
|
+
return de_CommandError(output, context);
|
|
3165
1890
|
}
|
|
3166
1891
|
const contents = map({
|
|
3167
1892
|
$metadata: deserializeMetadata(output),
|
|
@@ -3177,40 +1902,9 @@ export const de_GetDeviceProfileCommand = async (output, context) => {
|
|
|
3177
1902
|
Object.assign(contents, doc);
|
|
3178
1903
|
return contents;
|
|
3179
1904
|
};
|
|
3180
|
-
const de_GetDeviceProfileCommandError = async (output, context) => {
|
|
3181
|
-
const parsedOutput = {
|
|
3182
|
-
...output,
|
|
3183
|
-
body: await parseErrorBody(output.body, context),
|
|
3184
|
-
};
|
|
3185
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3186
|
-
switch (errorCode) {
|
|
3187
|
-
case "AccessDeniedException":
|
|
3188
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3189
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3190
|
-
case "InternalServerException":
|
|
3191
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3192
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3193
|
-
case "ResourceNotFoundException":
|
|
3194
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3195
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3196
|
-
case "ThrottlingException":
|
|
3197
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3198
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3199
|
-
case "ValidationException":
|
|
3200
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3201
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3202
|
-
default:
|
|
3203
|
-
const parsedBody = parsedOutput.body;
|
|
3204
|
-
return throwDefaultError({
|
|
3205
|
-
output,
|
|
3206
|
-
parsedBody,
|
|
3207
|
-
errorCode,
|
|
3208
|
-
});
|
|
3209
|
-
}
|
|
3210
|
-
};
|
|
3211
1905
|
export const de_GetEventConfigurationByResourceTypesCommand = async (output, context) => {
|
|
3212
1906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3213
|
-
return
|
|
1907
|
+
return de_CommandError(output, context);
|
|
3214
1908
|
}
|
|
3215
1909
|
const contents = map({
|
|
3216
1910
|
$metadata: deserializeMetadata(output),
|
|
@@ -3226,34 +1920,9 @@ export const de_GetEventConfigurationByResourceTypesCommand = async (output, con
|
|
|
3226
1920
|
Object.assign(contents, doc);
|
|
3227
1921
|
return contents;
|
|
3228
1922
|
};
|
|
3229
|
-
const de_GetEventConfigurationByResourceTypesCommandError = async (output, context) => {
|
|
3230
|
-
const parsedOutput = {
|
|
3231
|
-
...output,
|
|
3232
|
-
body: await parseErrorBody(output.body, context),
|
|
3233
|
-
};
|
|
3234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3235
|
-
switch (errorCode) {
|
|
3236
|
-
case "AccessDeniedException":
|
|
3237
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3238
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3239
|
-
case "InternalServerException":
|
|
3240
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3241
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3242
|
-
case "ThrottlingException":
|
|
3243
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3244
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3245
|
-
default:
|
|
3246
|
-
const parsedBody = parsedOutput.body;
|
|
3247
|
-
return throwDefaultError({
|
|
3248
|
-
output,
|
|
3249
|
-
parsedBody,
|
|
3250
|
-
errorCode,
|
|
3251
|
-
});
|
|
3252
|
-
}
|
|
3253
|
-
};
|
|
3254
1923
|
export const de_GetFuotaTaskCommand = async (output, context) => {
|
|
3255
1924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3256
|
-
return
|
|
1925
|
+
return de_CommandError(output, context);
|
|
3257
1926
|
}
|
|
3258
1927
|
const contents = map({
|
|
3259
1928
|
$metadata: deserializeMetadata(output),
|
|
@@ -3276,40 +1945,9 @@ export const de_GetFuotaTaskCommand = async (output, context) => {
|
|
|
3276
1945
|
Object.assign(contents, doc);
|
|
3277
1946
|
return contents;
|
|
3278
1947
|
};
|
|
3279
|
-
const de_GetFuotaTaskCommandError = async (output, context) => {
|
|
3280
|
-
const parsedOutput = {
|
|
3281
|
-
...output,
|
|
3282
|
-
body: await parseErrorBody(output.body, context),
|
|
3283
|
-
};
|
|
3284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3285
|
-
switch (errorCode) {
|
|
3286
|
-
case "AccessDeniedException":
|
|
3287
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3288
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3289
|
-
case "InternalServerException":
|
|
3290
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3291
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3292
|
-
case "ResourceNotFoundException":
|
|
3293
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3294
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3295
|
-
case "ThrottlingException":
|
|
3296
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3297
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "ValidationException":
|
|
3299
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3300
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3301
|
-
default:
|
|
3302
|
-
const parsedBody = parsedOutput.body;
|
|
3303
|
-
return throwDefaultError({
|
|
3304
|
-
output,
|
|
3305
|
-
parsedBody,
|
|
3306
|
-
errorCode,
|
|
3307
|
-
});
|
|
3308
|
-
}
|
|
3309
|
-
};
|
|
3310
1948
|
export const de_GetLogLevelsByResourceTypesCommand = async (output, context) => {
|
|
3311
1949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3312
|
-
return
|
|
1950
|
+
return de_CommandError(output, context);
|
|
3313
1951
|
}
|
|
3314
1952
|
const contents = map({
|
|
3315
1953
|
$metadata: deserializeMetadata(output),
|
|
@@ -3323,40 +1961,9 @@ export const de_GetLogLevelsByResourceTypesCommand = async (output, context) =>
|
|
|
3323
1961
|
Object.assign(contents, doc);
|
|
3324
1962
|
return contents;
|
|
3325
1963
|
};
|
|
3326
|
-
const de_GetLogLevelsByResourceTypesCommandError = async (output, context) => {
|
|
3327
|
-
const parsedOutput = {
|
|
3328
|
-
...output,
|
|
3329
|
-
body: await parseErrorBody(output.body, context),
|
|
3330
|
-
};
|
|
3331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3332
|
-
switch (errorCode) {
|
|
3333
|
-
case "AccessDeniedException":
|
|
3334
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3335
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3336
|
-
case "InternalServerException":
|
|
3337
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3338
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3339
|
-
case "ResourceNotFoundException":
|
|
3340
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3341
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3342
|
-
case "ThrottlingException":
|
|
3343
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3344
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3345
|
-
case "ValidationException":
|
|
3346
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3347
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3348
|
-
default:
|
|
3349
|
-
const parsedBody = parsedOutput.body;
|
|
3350
|
-
return throwDefaultError({
|
|
3351
|
-
output,
|
|
3352
|
-
parsedBody,
|
|
3353
|
-
errorCode,
|
|
3354
|
-
});
|
|
3355
|
-
}
|
|
3356
|
-
};
|
|
3357
1964
|
export const de_GetMulticastGroupCommand = async (output, context) => {
|
|
3358
1965
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3359
|
-
return
|
|
1966
|
+
return de_CommandError(output, context);
|
|
3360
1967
|
}
|
|
3361
1968
|
const contents = map({
|
|
3362
1969
|
$metadata: deserializeMetadata(output),
|
|
@@ -3374,40 +1981,9 @@ export const de_GetMulticastGroupCommand = async (output, context) => {
|
|
|
3374
1981
|
Object.assign(contents, doc);
|
|
3375
1982
|
return contents;
|
|
3376
1983
|
};
|
|
3377
|
-
const de_GetMulticastGroupCommandError = async (output, context) => {
|
|
3378
|
-
const parsedOutput = {
|
|
3379
|
-
...output,
|
|
3380
|
-
body: await parseErrorBody(output.body, context),
|
|
3381
|
-
};
|
|
3382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3383
|
-
switch (errorCode) {
|
|
3384
|
-
case "AccessDeniedException":
|
|
3385
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3386
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3387
|
-
case "InternalServerException":
|
|
3388
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3389
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3390
|
-
case "ResourceNotFoundException":
|
|
3391
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3392
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3393
|
-
case "ThrottlingException":
|
|
3394
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3395
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3396
|
-
case "ValidationException":
|
|
3397
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3398
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3399
|
-
default:
|
|
3400
|
-
const parsedBody = parsedOutput.body;
|
|
3401
|
-
return throwDefaultError({
|
|
3402
|
-
output,
|
|
3403
|
-
parsedBody,
|
|
3404
|
-
errorCode,
|
|
3405
|
-
});
|
|
3406
|
-
}
|
|
3407
|
-
};
|
|
3408
1984
|
export const de_GetMulticastGroupSessionCommand = async (output, context) => {
|
|
3409
1985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3410
|
-
return
|
|
1986
|
+
return de_CommandError(output, context);
|
|
3411
1987
|
}
|
|
3412
1988
|
const contents = map({
|
|
3413
1989
|
$metadata: deserializeMetadata(output),
|
|
@@ -3419,40 +1995,9 @@ export const de_GetMulticastGroupSessionCommand = async (output, context) => {
|
|
|
3419
1995
|
Object.assign(contents, doc);
|
|
3420
1996
|
return contents;
|
|
3421
1997
|
};
|
|
3422
|
-
const de_GetMulticastGroupSessionCommandError = async (output, context) => {
|
|
3423
|
-
const parsedOutput = {
|
|
3424
|
-
...output,
|
|
3425
|
-
body: await parseErrorBody(output.body, context),
|
|
3426
|
-
};
|
|
3427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3428
|
-
switch (errorCode) {
|
|
3429
|
-
case "AccessDeniedException":
|
|
3430
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3431
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3432
|
-
case "InternalServerException":
|
|
3433
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3434
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3435
|
-
case "ResourceNotFoundException":
|
|
3436
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3437
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3438
|
-
case "ThrottlingException":
|
|
3439
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3440
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3441
|
-
case "ValidationException":
|
|
3442
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3443
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3444
|
-
default:
|
|
3445
|
-
const parsedBody = parsedOutput.body;
|
|
3446
|
-
return throwDefaultError({
|
|
3447
|
-
output,
|
|
3448
|
-
parsedBody,
|
|
3449
|
-
errorCode,
|
|
3450
|
-
});
|
|
3451
|
-
}
|
|
3452
|
-
};
|
|
3453
1998
|
export const de_GetNetworkAnalyzerConfigurationCommand = async (output, context) => {
|
|
3454
1999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3455
|
-
return
|
|
2000
|
+
return de_CommandError(output, context);
|
|
3456
2001
|
}
|
|
3457
2002
|
const contents = map({
|
|
3458
2003
|
$metadata: deserializeMetadata(output),
|
|
@@ -3463,47 +2008,16 @@ export const de_GetNetworkAnalyzerConfigurationCommand = async (output, context)
|
|
|
3463
2008
|
Description: __expectString,
|
|
3464
2009
|
MulticastGroups: _json,
|
|
3465
2010
|
Name: __expectString,
|
|
3466
|
-
TraceContent: _json,
|
|
3467
|
-
WirelessDevices: _json,
|
|
3468
|
-
WirelessGateways: _json,
|
|
3469
|
-
});
|
|
3470
|
-
Object.assign(contents, doc);
|
|
3471
|
-
return contents;
|
|
3472
|
-
};
|
|
3473
|
-
const de_GetNetworkAnalyzerConfigurationCommandError = async (output, context) => {
|
|
3474
|
-
const parsedOutput = {
|
|
3475
|
-
...output,
|
|
3476
|
-
body: await parseErrorBody(output.body, context),
|
|
3477
|
-
};
|
|
3478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3479
|
-
switch (errorCode) {
|
|
3480
|
-
case "AccessDeniedException":
|
|
3481
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3482
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3483
|
-
case "InternalServerException":
|
|
3484
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3485
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3486
|
-
case "ResourceNotFoundException":
|
|
3487
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3488
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3489
|
-
case "ThrottlingException":
|
|
3490
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3491
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3492
|
-
case "ValidationException":
|
|
3493
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3494
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3495
|
-
default:
|
|
3496
|
-
const parsedBody = parsedOutput.body;
|
|
3497
|
-
return throwDefaultError({
|
|
3498
|
-
output,
|
|
3499
|
-
parsedBody,
|
|
3500
|
-
errorCode,
|
|
3501
|
-
});
|
|
3502
|
-
}
|
|
2011
|
+
TraceContent: _json,
|
|
2012
|
+
WirelessDevices: _json,
|
|
2013
|
+
WirelessGateways: _json,
|
|
2014
|
+
});
|
|
2015
|
+
Object.assign(contents, doc);
|
|
2016
|
+
return contents;
|
|
3503
2017
|
};
|
|
3504
2018
|
export const de_GetPartnerAccountCommand = async (output, context) => {
|
|
3505
2019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3506
|
-
return
|
|
2020
|
+
return de_CommandError(output, context);
|
|
3507
2021
|
}
|
|
3508
2022
|
const contents = map({
|
|
3509
2023
|
$metadata: deserializeMetadata(output),
|
|
@@ -3516,37 +2030,9 @@ export const de_GetPartnerAccountCommand = async (output, context) => {
|
|
|
3516
2030
|
Object.assign(contents, doc);
|
|
3517
2031
|
return contents;
|
|
3518
2032
|
};
|
|
3519
|
-
const de_GetPartnerAccountCommandError = async (output, context) => {
|
|
3520
|
-
const parsedOutput = {
|
|
3521
|
-
...output,
|
|
3522
|
-
body: await parseErrorBody(output.body, context),
|
|
3523
|
-
};
|
|
3524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3525
|
-
switch (errorCode) {
|
|
3526
|
-
case "InternalServerException":
|
|
3527
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3528
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3529
|
-
case "ResourceNotFoundException":
|
|
3530
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "ThrottlingException":
|
|
3533
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3534
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3535
|
-
case "ValidationException":
|
|
3536
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3537
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3538
|
-
default:
|
|
3539
|
-
const parsedBody = parsedOutput.body;
|
|
3540
|
-
return throwDefaultError({
|
|
3541
|
-
output,
|
|
3542
|
-
parsedBody,
|
|
3543
|
-
errorCode,
|
|
3544
|
-
});
|
|
3545
|
-
}
|
|
3546
|
-
};
|
|
3547
2033
|
export const de_GetPositionCommand = async (output, context) => {
|
|
3548
2034
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3549
|
-
return
|
|
2035
|
+
return de_CommandError(output, context);
|
|
3550
2036
|
}
|
|
3551
2037
|
const contents = map({
|
|
3552
2038
|
$metadata: deserializeMetadata(output),
|
|
@@ -3563,40 +2049,9 @@ export const de_GetPositionCommand = async (output, context) => {
|
|
|
3563
2049
|
Object.assign(contents, doc);
|
|
3564
2050
|
return contents;
|
|
3565
2051
|
};
|
|
3566
|
-
const de_GetPositionCommandError = async (output, context) => {
|
|
3567
|
-
const parsedOutput = {
|
|
3568
|
-
...output,
|
|
3569
|
-
body: await parseErrorBody(output.body, context),
|
|
3570
|
-
};
|
|
3571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3572
|
-
switch (errorCode) {
|
|
3573
|
-
case "AccessDeniedException":
|
|
3574
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3575
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3576
|
-
case "InternalServerException":
|
|
3577
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3578
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3579
|
-
case "ResourceNotFoundException":
|
|
3580
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3581
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3582
|
-
case "ThrottlingException":
|
|
3583
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3584
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3585
|
-
case "ValidationException":
|
|
3586
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3587
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3588
|
-
default:
|
|
3589
|
-
const parsedBody = parsedOutput.body;
|
|
3590
|
-
return throwDefaultError({
|
|
3591
|
-
output,
|
|
3592
|
-
parsedBody,
|
|
3593
|
-
errorCode,
|
|
3594
|
-
});
|
|
3595
|
-
}
|
|
3596
|
-
};
|
|
3597
2052
|
export const de_GetPositionConfigurationCommand = async (output, context) => {
|
|
3598
2053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3599
|
-
return
|
|
2054
|
+
return de_CommandError(output, context);
|
|
3600
2055
|
}
|
|
3601
2056
|
const contents = map({
|
|
3602
2057
|
$metadata: deserializeMetadata(output),
|
|
@@ -3609,40 +2064,9 @@ export const de_GetPositionConfigurationCommand = async (output, context) => {
|
|
|
3609
2064
|
Object.assign(contents, doc);
|
|
3610
2065
|
return contents;
|
|
3611
2066
|
};
|
|
3612
|
-
const de_GetPositionConfigurationCommandError = async (output, context) => {
|
|
3613
|
-
const parsedOutput = {
|
|
3614
|
-
...output,
|
|
3615
|
-
body: await parseErrorBody(output.body, context),
|
|
3616
|
-
};
|
|
3617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3618
|
-
switch (errorCode) {
|
|
3619
|
-
case "AccessDeniedException":
|
|
3620
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3621
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3622
|
-
case "InternalServerException":
|
|
3623
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3624
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3625
|
-
case "ResourceNotFoundException":
|
|
3626
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3627
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "ThrottlingException":
|
|
3629
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3630
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3631
|
-
case "ValidationException":
|
|
3632
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3633
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3634
|
-
default:
|
|
3635
|
-
const parsedBody = parsedOutput.body;
|
|
3636
|
-
return throwDefaultError({
|
|
3637
|
-
output,
|
|
3638
|
-
parsedBody,
|
|
3639
|
-
errorCode,
|
|
3640
|
-
});
|
|
3641
|
-
}
|
|
3642
|
-
};
|
|
3643
2067
|
export const de_GetPositionEstimateCommand = async (output, context) => {
|
|
3644
2068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3645
|
-
return
|
|
2069
|
+
return de_CommandError(output, context);
|
|
3646
2070
|
}
|
|
3647
2071
|
const contents = map({
|
|
3648
2072
|
$metadata: deserializeMetadata(output),
|
|
@@ -3651,40 +2075,9 @@ export const de_GetPositionEstimateCommand = async (output, context) => {
|
|
|
3651
2075
|
contents.GeoJsonPayload = data;
|
|
3652
2076
|
return contents;
|
|
3653
2077
|
};
|
|
3654
|
-
const de_GetPositionEstimateCommandError = async (output, context) => {
|
|
3655
|
-
const parsedOutput = {
|
|
3656
|
-
...output,
|
|
3657
|
-
body: await parseErrorBody(output.body, context),
|
|
3658
|
-
};
|
|
3659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3660
|
-
switch (errorCode) {
|
|
3661
|
-
case "AccessDeniedException":
|
|
3662
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3663
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3664
|
-
case "InternalServerException":
|
|
3665
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3666
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3667
|
-
case "ResourceNotFoundException":
|
|
3668
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3669
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3670
|
-
case "ThrottlingException":
|
|
3671
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3672
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3673
|
-
case "ValidationException":
|
|
3674
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3675
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3676
|
-
default:
|
|
3677
|
-
const parsedBody = parsedOutput.body;
|
|
3678
|
-
return throwDefaultError({
|
|
3679
|
-
output,
|
|
3680
|
-
parsedBody,
|
|
3681
|
-
errorCode,
|
|
3682
|
-
});
|
|
3683
|
-
}
|
|
3684
|
-
};
|
|
3685
2078
|
export const de_GetResourceEventConfigurationCommand = async (output, context) => {
|
|
3686
2079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3687
|
-
return
|
|
2080
|
+
return de_CommandError(output, context);
|
|
3688
2081
|
}
|
|
3689
2082
|
const contents = map({
|
|
3690
2083
|
$metadata: deserializeMetadata(output),
|
|
@@ -3700,40 +2093,9 @@ export const de_GetResourceEventConfigurationCommand = async (output, context) =
|
|
|
3700
2093
|
Object.assign(contents, doc);
|
|
3701
2094
|
return contents;
|
|
3702
2095
|
};
|
|
3703
|
-
const de_GetResourceEventConfigurationCommandError = async (output, context) => {
|
|
3704
|
-
const parsedOutput = {
|
|
3705
|
-
...output,
|
|
3706
|
-
body: await parseErrorBody(output.body, context),
|
|
3707
|
-
};
|
|
3708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3709
|
-
switch (errorCode) {
|
|
3710
|
-
case "AccessDeniedException":
|
|
3711
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3712
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3713
|
-
case "InternalServerException":
|
|
3714
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3715
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3716
|
-
case "ResourceNotFoundException":
|
|
3717
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3718
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3719
|
-
case "ThrottlingException":
|
|
3720
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3721
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3722
|
-
case "ValidationException":
|
|
3723
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3725
|
-
default:
|
|
3726
|
-
const parsedBody = parsedOutput.body;
|
|
3727
|
-
return throwDefaultError({
|
|
3728
|
-
output,
|
|
3729
|
-
parsedBody,
|
|
3730
|
-
errorCode,
|
|
3731
|
-
});
|
|
3732
|
-
}
|
|
3733
|
-
};
|
|
3734
2096
|
export const de_GetResourceLogLevelCommand = async (output, context) => {
|
|
3735
2097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3736
|
-
return
|
|
2098
|
+
return de_CommandError(output, context);
|
|
3737
2099
|
}
|
|
3738
2100
|
const contents = map({
|
|
3739
2101
|
$metadata: deserializeMetadata(output),
|
|
@@ -3745,126 +2107,36 @@ export const de_GetResourceLogLevelCommand = async (output, context) => {
|
|
|
3745
2107
|
Object.assign(contents, doc);
|
|
3746
2108
|
return contents;
|
|
3747
2109
|
};
|
|
3748
|
-
const de_GetResourceLogLevelCommandError = async (output, context) => {
|
|
3749
|
-
const parsedOutput = {
|
|
3750
|
-
...output,
|
|
3751
|
-
body: await parseErrorBody(output.body, context),
|
|
3752
|
-
};
|
|
3753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3754
|
-
switch (errorCode) {
|
|
3755
|
-
case "AccessDeniedException":
|
|
3756
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3757
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3758
|
-
case "InternalServerException":
|
|
3759
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3760
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3761
|
-
case "ResourceNotFoundException":
|
|
3762
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3763
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3764
|
-
case "ThrottlingException":
|
|
3765
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3766
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3767
|
-
case "ValidationException":
|
|
3768
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3769
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3770
|
-
default:
|
|
3771
|
-
const parsedBody = parsedOutput.body;
|
|
3772
|
-
return throwDefaultError({
|
|
3773
|
-
output,
|
|
3774
|
-
parsedBody,
|
|
3775
|
-
errorCode,
|
|
3776
|
-
});
|
|
3777
|
-
}
|
|
3778
|
-
};
|
|
3779
2110
|
export const de_GetResourcePositionCommand = async (output, context) => {
|
|
3780
2111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3781
|
-
return
|
|
2112
|
+
return de_CommandError(output, context);
|
|
3782
2113
|
}
|
|
3783
2114
|
const contents = map({
|
|
3784
2115
|
$metadata: deserializeMetadata(output),
|
|
3785
2116
|
});
|
|
3786
2117
|
const data = await collectBody(output.body, context);
|
|
3787
|
-
contents.GeoJsonPayload = data;
|
|
3788
|
-
return contents;
|
|
3789
|
-
};
|
|
3790
|
-
const
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
body: await parseErrorBody(output.body, context),
|
|
3794
|
-
};
|
|
3795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3796
|
-
switch (errorCode) {
|
|
3797
|
-
case "AccessDeniedException":
|
|
3798
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3799
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3800
|
-
case "InternalServerException":
|
|
3801
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3802
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3803
|
-
case "ResourceNotFoundException":
|
|
3804
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3805
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3806
|
-
case "ThrottlingException":
|
|
3807
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3808
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3809
|
-
case "ValidationException":
|
|
3810
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3811
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3812
|
-
default:
|
|
3813
|
-
const parsedBody = parsedOutput.body;
|
|
3814
|
-
return throwDefaultError({
|
|
3815
|
-
output,
|
|
3816
|
-
parsedBody,
|
|
3817
|
-
errorCode,
|
|
3818
|
-
});
|
|
3819
|
-
}
|
|
3820
|
-
};
|
|
3821
|
-
export const de_GetServiceEndpointCommand = async (output, context) => {
|
|
3822
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3823
|
-
return de_GetServiceEndpointCommandError(output, context);
|
|
3824
|
-
}
|
|
3825
|
-
const contents = map({
|
|
3826
|
-
$metadata: deserializeMetadata(output),
|
|
3827
|
-
});
|
|
3828
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3829
|
-
const doc = take(data, {
|
|
3830
|
-
ServerTrust: __expectString,
|
|
3831
|
-
ServiceEndpoint: __expectString,
|
|
3832
|
-
ServiceType: __expectString,
|
|
3833
|
-
});
|
|
3834
|
-
Object.assign(contents, doc);
|
|
3835
|
-
return contents;
|
|
3836
|
-
};
|
|
3837
|
-
const de_GetServiceEndpointCommandError = async (output, context) => {
|
|
3838
|
-
const parsedOutput = {
|
|
3839
|
-
...output,
|
|
3840
|
-
body: await parseErrorBody(output.body, context),
|
|
3841
|
-
};
|
|
3842
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3843
|
-
switch (errorCode) {
|
|
3844
|
-
case "AccessDeniedException":
|
|
3845
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3846
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3847
|
-
case "InternalServerException":
|
|
3848
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3849
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3850
|
-
case "ThrottlingException":
|
|
3851
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3852
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3853
|
-
case "ValidationException":
|
|
3854
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3855
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3856
|
-
default:
|
|
3857
|
-
const parsedBody = parsedOutput.body;
|
|
3858
|
-
return throwDefaultError({
|
|
3859
|
-
output,
|
|
3860
|
-
parsedBody,
|
|
3861
|
-
errorCode,
|
|
3862
|
-
});
|
|
2118
|
+
contents.GeoJsonPayload = data;
|
|
2119
|
+
return contents;
|
|
2120
|
+
};
|
|
2121
|
+
export const de_GetServiceEndpointCommand = async (output, context) => {
|
|
2122
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2123
|
+
return de_CommandError(output, context);
|
|
3863
2124
|
}
|
|
2125
|
+
const contents = map({
|
|
2126
|
+
$metadata: deserializeMetadata(output),
|
|
2127
|
+
});
|
|
2128
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2129
|
+
const doc = take(data, {
|
|
2130
|
+
ServerTrust: __expectString,
|
|
2131
|
+
ServiceEndpoint: __expectString,
|
|
2132
|
+
ServiceType: __expectString,
|
|
2133
|
+
});
|
|
2134
|
+
Object.assign(contents, doc);
|
|
2135
|
+
return contents;
|
|
3864
2136
|
};
|
|
3865
2137
|
export const de_GetServiceProfileCommand = async (output, context) => {
|
|
3866
2138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3867
|
-
return
|
|
2139
|
+
return de_CommandError(output, context);
|
|
3868
2140
|
}
|
|
3869
2141
|
const contents = map({
|
|
3870
2142
|
$metadata: deserializeMetadata(output),
|
|
@@ -3879,40 +2151,9 @@ export const de_GetServiceProfileCommand = async (output, context) => {
|
|
|
3879
2151
|
Object.assign(contents, doc);
|
|
3880
2152
|
return contents;
|
|
3881
2153
|
};
|
|
3882
|
-
const de_GetServiceProfileCommandError = async (output, context) => {
|
|
3883
|
-
const parsedOutput = {
|
|
3884
|
-
...output,
|
|
3885
|
-
body: await parseErrorBody(output.body, context),
|
|
3886
|
-
};
|
|
3887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3888
|
-
switch (errorCode) {
|
|
3889
|
-
case "AccessDeniedException":
|
|
3890
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3891
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3892
|
-
case "InternalServerException":
|
|
3893
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3894
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3895
|
-
case "ResourceNotFoundException":
|
|
3896
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3897
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3898
|
-
case "ThrottlingException":
|
|
3899
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3900
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3901
|
-
case "ValidationException":
|
|
3902
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3903
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3904
|
-
default:
|
|
3905
|
-
const parsedBody = parsedOutput.body;
|
|
3906
|
-
return throwDefaultError({
|
|
3907
|
-
output,
|
|
3908
|
-
parsedBody,
|
|
3909
|
-
errorCode,
|
|
3910
|
-
});
|
|
3911
|
-
}
|
|
3912
|
-
};
|
|
3913
2154
|
export const de_GetWirelessDeviceCommand = async (output, context) => {
|
|
3914
2155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3915
|
-
return
|
|
2156
|
+
return de_CommandError(output, context);
|
|
3916
2157
|
}
|
|
3917
2158
|
const contents = map({
|
|
3918
2159
|
$metadata: deserializeMetadata(output),
|
|
@@ -3934,40 +2175,9 @@ export const de_GetWirelessDeviceCommand = async (output, context) => {
|
|
|
3934
2175
|
Object.assign(contents, doc);
|
|
3935
2176
|
return contents;
|
|
3936
2177
|
};
|
|
3937
|
-
const de_GetWirelessDeviceCommandError = async (output, context) => {
|
|
3938
|
-
const parsedOutput = {
|
|
3939
|
-
...output,
|
|
3940
|
-
body: await parseErrorBody(output.body, context),
|
|
3941
|
-
};
|
|
3942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3943
|
-
switch (errorCode) {
|
|
3944
|
-
case "AccessDeniedException":
|
|
3945
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
3946
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3947
|
-
case "InternalServerException":
|
|
3948
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
3949
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3950
|
-
case "ResourceNotFoundException":
|
|
3951
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
3952
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3953
|
-
case "ThrottlingException":
|
|
3954
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
3955
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3956
|
-
case "ValidationException":
|
|
3957
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
3958
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3959
|
-
default:
|
|
3960
|
-
const parsedBody = parsedOutput.body;
|
|
3961
|
-
return throwDefaultError({
|
|
3962
|
-
output,
|
|
3963
|
-
parsedBody,
|
|
3964
|
-
errorCode,
|
|
3965
|
-
});
|
|
3966
|
-
}
|
|
3967
|
-
};
|
|
3968
2178
|
export const de_GetWirelessDeviceImportTaskCommand = async (output, context) => {
|
|
3969
2179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3970
|
-
return
|
|
2180
|
+
return de_CommandError(output, context);
|
|
3971
2181
|
}
|
|
3972
2182
|
const contents = map({
|
|
3973
2183
|
$metadata: deserializeMetadata(output),
|
|
@@ -3989,43 +2199,9 @@ export const de_GetWirelessDeviceImportTaskCommand = async (output, context) =>
|
|
|
3989
2199
|
Object.assign(contents, doc);
|
|
3990
2200
|
return contents;
|
|
3991
2201
|
};
|
|
3992
|
-
const de_GetWirelessDeviceImportTaskCommandError = async (output, context) => {
|
|
3993
|
-
const parsedOutput = {
|
|
3994
|
-
...output,
|
|
3995
|
-
body: await parseErrorBody(output.body, context),
|
|
3996
|
-
};
|
|
3997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3998
|
-
switch (errorCode) {
|
|
3999
|
-
case "AccessDeniedException":
|
|
4000
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4001
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4002
|
-
case "ConflictException":
|
|
4003
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
4004
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4005
|
-
case "InternalServerException":
|
|
4006
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4008
|
-
case "ResourceNotFoundException":
|
|
4009
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4010
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4011
|
-
case "ThrottlingException":
|
|
4012
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4013
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4014
|
-
case "ValidationException":
|
|
4015
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4016
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4017
|
-
default:
|
|
4018
|
-
const parsedBody = parsedOutput.body;
|
|
4019
|
-
return throwDefaultError({
|
|
4020
|
-
output,
|
|
4021
|
-
parsedBody,
|
|
4022
|
-
errorCode,
|
|
4023
|
-
});
|
|
4024
|
-
}
|
|
4025
|
-
};
|
|
4026
2202
|
export const de_GetWirelessDeviceStatisticsCommand = async (output, context) => {
|
|
4027
2203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4028
|
-
return
|
|
2204
|
+
return de_CommandError(output, context);
|
|
4029
2205
|
}
|
|
4030
2206
|
const contents = map({
|
|
4031
2207
|
$metadata: deserializeMetadata(output),
|
|
@@ -4040,40 +2216,9 @@ export const de_GetWirelessDeviceStatisticsCommand = async (output, context) =>
|
|
|
4040
2216
|
Object.assign(contents, doc);
|
|
4041
2217
|
return contents;
|
|
4042
2218
|
};
|
|
4043
|
-
const de_GetWirelessDeviceStatisticsCommandError = async (output, context) => {
|
|
4044
|
-
const parsedOutput = {
|
|
4045
|
-
...output,
|
|
4046
|
-
body: await parseErrorBody(output.body, context),
|
|
4047
|
-
};
|
|
4048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4049
|
-
switch (errorCode) {
|
|
4050
|
-
case "AccessDeniedException":
|
|
4051
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4052
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4053
|
-
case "InternalServerException":
|
|
4054
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4055
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4056
|
-
case "ResourceNotFoundException":
|
|
4057
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4058
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4059
|
-
case "ThrottlingException":
|
|
4060
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4061
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4062
|
-
case "ValidationException":
|
|
4063
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4064
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4065
|
-
default:
|
|
4066
|
-
const parsedBody = parsedOutput.body;
|
|
4067
|
-
return throwDefaultError({
|
|
4068
|
-
output,
|
|
4069
|
-
parsedBody,
|
|
4070
|
-
errorCode,
|
|
4071
|
-
});
|
|
4072
|
-
}
|
|
4073
|
-
};
|
|
4074
2219
|
export const de_GetWirelessGatewayCommand = async (output, context) => {
|
|
4075
2220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4076
|
-
return
|
|
2221
|
+
return de_CommandError(output, context);
|
|
4077
2222
|
}
|
|
4078
2223
|
const contents = map({
|
|
4079
2224
|
$metadata: deserializeMetadata(output),
|
|
@@ -4091,761 +2236,225 @@ export const de_GetWirelessGatewayCommand = async (output, context) => {
|
|
|
4091
2236
|
Object.assign(contents, doc);
|
|
4092
2237
|
return contents;
|
|
4093
2238
|
};
|
|
4094
|
-
const
|
|
4095
|
-
const parsedOutput = {
|
|
4096
|
-
...output,
|
|
4097
|
-
body: await parseErrorBody(output.body, context),
|
|
4098
|
-
};
|
|
4099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4100
|
-
switch (errorCode) {
|
|
4101
|
-
case "AccessDeniedException":
|
|
4102
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4103
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4104
|
-
case "InternalServerException":
|
|
4105
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4106
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4107
|
-
case "ResourceNotFoundException":
|
|
4108
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4109
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4110
|
-
case "ThrottlingException":
|
|
4111
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4112
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4113
|
-
case "ValidationException":
|
|
4114
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4116
|
-
default:
|
|
4117
|
-
const parsedBody = parsedOutput.body;
|
|
4118
|
-
return throwDefaultError({
|
|
4119
|
-
output,
|
|
4120
|
-
parsedBody,
|
|
4121
|
-
errorCode,
|
|
4122
|
-
});
|
|
4123
|
-
}
|
|
4124
|
-
};
|
|
4125
|
-
export const de_GetWirelessGatewayCertificateCommand = async (output, context) => {
|
|
4126
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4127
|
-
return de_GetWirelessGatewayCertificateCommandError(output, context);
|
|
4128
|
-
}
|
|
4129
|
-
const contents = map({
|
|
4130
|
-
$metadata: deserializeMetadata(output),
|
|
4131
|
-
});
|
|
4132
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4133
|
-
const doc = take(data, {
|
|
4134
|
-
IotCertificateId: __expectString,
|
|
4135
|
-
LoRaWANNetworkServerCertificateId: __expectString,
|
|
4136
|
-
});
|
|
4137
|
-
Object.assign(contents, doc);
|
|
4138
|
-
return contents;
|
|
4139
|
-
};
|
|
4140
|
-
const de_GetWirelessGatewayCertificateCommandError = async (output, context) => {
|
|
4141
|
-
const parsedOutput = {
|
|
4142
|
-
...output,
|
|
4143
|
-
body: await parseErrorBody(output.body, context),
|
|
4144
|
-
};
|
|
4145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4146
|
-
switch (errorCode) {
|
|
4147
|
-
case "AccessDeniedException":
|
|
4148
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4149
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4150
|
-
case "InternalServerException":
|
|
4151
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4152
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4153
|
-
case "ResourceNotFoundException":
|
|
4154
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4155
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4156
|
-
case "ThrottlingException":
|
|
4157
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4158
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4159
|
-
case "ValidationException":
|
|
4160
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4161
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4162
|
-
default:
|
|
4163
|
-
const parsedBody = parsedOutput.body;
|
|
4164
|
-
return throwDefaultError({
|
|
4165
|
-
output,
|
|
4166
|
-
parsedBody,
|
|
4167
|
-
errorCode,
|
|
4168
|
-
});
|
|
4169
|
-
}
|
|
4170
|
-
};
|
|
4171
|
-
export const de_GetWirelessGatewayFirmwareInformationCommand = async (output, context) => {
|
|
4172
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4173
|
-
return de_GetWirelessGatewayFirmwareInformationCommandError(output, context);
|
|
4174
|
-
}
|
|
4175
|
-
const contents = map({
|
|
4176
|
-
$metadata: deserializeMetadata(output),
|
|
4177
|
-
});
|
|
4178
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4179
|
-
const doc = take(data, {
|
|
4180
|
-
LoRaWAN: _json,
|
|
4181
|
-
});
|
|
4182
|
-
Object.assign(contents, doc);
|
|
4183
|
-
return contents;
|
|
4184
|
-
};
|
|
4185
|
-
const de_GetWirelessGatewayFirmwareInformationCommandError = async (output, context) => {
|
|
4186
|
-
const parsedOutput = {
|
|
4187
|
-
...output,
|
|
4188
|
-
body: await parseErrorBody(output.body, context),
|
|
4189
|
-
};
|
|
4190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4191
|
-
switch (errorCode) {
|
|
4192
|
-
case "AccessDeniedException":
|
|
4193
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4194
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4195
|
-
case "InternalServerException":
|
|
4196
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4197
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4198
|
-
case "ResourceNotFoundException":
|
|
4199
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4201
|
-
case "ThrottlingException":
|
|
4202
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4203
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4204
|
-
case "ValidationException":
|
|
4205
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4206
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4207
|
-
default:
|
|
4208
|
-
const parsedBody = parsedOutput.body;
|
|
4209
|
-
return throwDefaultError({
|
|
4210
|
-
output,
|
|
4211
|
-
parsedBody,
|
|
4212
|
-
errorCode,
|
|
4213
|
-
});
|
|
4214
|
-
}
|
|
4215
|
-
};
|
|
4216
|
-
export const de_GetWirelessGatewayStatisticsCommand = async (output, context) => {
|
|
2239
|
+
export const de_GetWirelessGatewayCertificateCommand = async (output, context) => {
|
|
4217
2240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4218
|
-
return
|
|
2241
|
+
return de_CommandError(output, context);
|
|
4219
2242
|
}
|
|
4220
2243
|
const contents = map({
|
|
4221
2244
|
$metadata: deserializeMetadata(output),
|
|
4222
2245
|
});
|
|
4223
2246
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4224
2247
|
const doc = take(data, {
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
WirelessGatewayId: __expectString,
|
|
2248
|
+
IotCertificateId: __expectString,
|
|
2249
|
+
LoRaWANNetworkServerCertificateId: __expectString,
|
|
4228
2250
|
});
|
|
4229
2251
|
Object.assign(contents, doc);
|
|
4230
2252
|
return contents;
|
|
4231
2253
|
};
|
|
4232
|
-
const
|
|
4233
|
-
const parsedOutput = {
|
|
4234
|
-
...output,
|
|
4235
|
-
body: await parseErrorBody(output.body, context),
|
|
4236
|
-
};
|
|
4237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4238
|
-
switch (errorCode) {
|
|
4239
|
-
case "AccessDeniedException":
|
|
4240
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4241
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4242
|
-
case "InternalServerException":
|
|
4243
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4244
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4245
|
-
case "ResourceNotFoundException":
|
|
4246
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4248
|
-
case "ThrottlingException":
|
|
4249
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4250
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4251
|
-
case "ValidationException":
|
|
4252
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4253
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4254
|
-
default:
|
|
4255
|
-
const parsedBody = parsedOutput.body;
|
|
4256
|
-
return throwDefaultError({
|
|
4257
|
-
output,
|
|
4258
|
-
parsedBody,
|
|
4259
|
-
errorCode,
|
|
4260
|
-
});
|
|
4261
|
-
}
|
|
4262
|
-
};
|
|
4263
|
-
export const de_GetWirelessGatewayTaskCommand = async (output, context) => {
|
|
2254
|
+
export const de_GetWirelessGatewayFirmwareInformationCommand = async (output, context) => {
|
|
4264
2255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4265
|
-
return
|
|
2256
|
+
return de_CommandError(output, context);
|
|
4266
2257
|
}
|
|
4267
2258
|
const contents = map({
|
|
4268
2259
|
$metadata: deserializeMetadata(output),
|
|
4269
2260
|
});
|
|
4270
2261
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4271
2262
|
const doc = take(data, {
|
|
4272
|
-
|
|
4273
|
-
Status: __expectString,
|
|
4274
|
-
TaskCreatedAt: __expectString,
|
|
4275
|
-
WirelessGatewayId: __expectString,
|
|
4276
|
-
WirelessGatewayTaskDefinitionId: __expectString,
|
|
2263
|
+
LoRaWAN: _json,
|
|
4277
2264
|
});
|
|
4278
2265
|
Object.assign(contents, doc);
|
|
4279
2266
|
return contents;
|
|
4280
2267
|
};
|
|
4281
|
-
const
|
|
4282
|
-
const parsedOutput = {
|
|
4283
|
-
...output,
|
|
4284
|
-
body: await parseErrorBody(output.body, context),
|
|
4285
|
-
};
|
|
4286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4287
|
-
switch (errorCode) {
|
|
4288
|
-
case "AccessDeniedException":
|
|
4289
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4290
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4291
|
-
case "InternalServerException":
|
|
4292
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4293
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4294
|
-
case "ResourceNotFoundException":
|
|
4295
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4296
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4297
|
-
case "ThrottlingException":
|
|
4298
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4299
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4300
|
-
case "ValidationException":
|
|
4301
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4302
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4303
|
-
default:
|
|
4304
|
-
const parsedBody = parsedOutput.body;
|
|
4305
|
-
return throwDefaultError({
|
|
4306
|
-
output,
|
|
4307
|
-
parsedBody,
|
|
4308
|
-
errorCode,
|
|
4309
|
-
});
|
|
4310
|
-
}
|
|
4311
|
-
};
|
|
4312
|
-
export const de_GetWirelessGatewayTaskDefinitionCommand = async (output, context) => {
|
|
2268
|
+
export const de_GetWirelessGatewayStatisticsCommand = async (output, context) => {
|
|
4313
2269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4314
|
-
return
|
|
2270
|
+
return de_CommandError(output, context);
|
|
4315
2271
|
}
|
|
4316
2272
|
const contents = map({
|
|
4317
2273
|
$metadata: deserializeMetadata(output),
|
|
4318
2274
|
});
|
|
4319
2275
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4320
2276
|
const doc = take(data, {
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
Update: _json,
|
|
2277
|
+
ConnectionStatus: __expectString,
|
|
2278
|
+
LastUplinkReceivedAt: __expectString,
|
|
2279
|
+
WirelessGatewayId: __expectString,
|
|
4325
2280
|
});
|
|
4326
2281
|
Object.assign(contents, doc);
|
|
4327
2282
|
return contents;
|
|
4328
2283
|
};
|
|
4329
|
-
const
|
|
4330
|
-
const parsedOutput = {
|
|
4331
|
-
...output,
|
|
4332
|
-
body: await parseErrorBody(output.body, context),
|
|
4333
|
-
};
|
|
4334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4335
|
-
switch (errorCode) {
|
|
4336
|
-
case "AccessDeniedException":
|
|
4337
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4338
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4339
|
-
case "InternalServerException":
|
|
4340
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4341
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4342
|
-
case "ResourceNotFoundException":
|
|
4343
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4344
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4345
|
-
case "ThrottlingException":
|
|
4346
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4347
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4348
|
-
case "ValidationException":
|
|
4349
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4350
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4351
|
-
default:
|
|
4352
|
-
const parsedBody = parsedOutput.body;
|
|
4353
|
-
return throwDefaultError({
|
|
4354
|
-
output,
|
|
4355
|
-
parsedBody,
|
|
4356
|
-
errorCode,
|
|
4357
|
-
});
|
|
4358
|
-
}
|
|
4359
|
-
};
|
|
4360
|
-
export const de_ListDestinationsCommand = async (output, context) => {
|
|
2284
|
+
export const de_GetWirelessGatewayTaskCommand = async (output, context) => {
|
|
4361
2285
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4362
|
-
return
|
|
2286
|
+
return de_CommandError(output, context);
|
|
4363
2287
|
}
|
|
4364
2288
|
const contents = map({
|
|
4365
2289
|
$metadata: deserializeMetadata(output),
|
|
4366
2290
|
});
|
|
4367
2291
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4368
2292
|
const doc = take(data, {
|
|
4369
|
-
|
|
4370
|
-
|
|
2293
|
+
LastUplinkReceivedAt: __expectString,
|
|
2294
|
+
Status: __expectString,
|
|
2295
|
+
TaskCreatedAt: __expectString,
|
|
2296
|
+
WirelessGatewayId: __expectString,
|
|
2297
|
+
WirelessGatewayTaskDefinitionId: __expectString,
|
|
4371
2298
|
});
|
|
4372
2299
|
Object.assign(contents, doc);
|
|
4373
2300
|
return contents;
|
|
4374
2301
|
};
|
|
4375
|
-
const
|
|
4376
|
-
const parsedOutput = {
|
|
4377
|
-
...output,
|
|
4378
|
-
body: await parseErrorBody(output.body, context),
|
|
4379
|
-
};
|
|
4380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4381
|
-
switch (errorCode) {
|
|
4382
|
-
case "AccessDeniedException":
|
|
4383
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4384
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4385
|
-
case "InternalServerException":
|
|
4386
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4387
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4388
|
-
case "ThrottlingException":
|
|
4389
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4390
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4391
|
-
case "ValidationException":
|
|
4392
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4393
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4394
|
-
default:
|
|
4395
|
-
const parsedBody = parsedOutput.body;
|
|
4396
|
-
return throwDefaultError({
|
|
4397
|
-
output,
|
|
4398
|
-
parsedBody,
|
|
4399
|
-
errorCode,
|
|
4400
|
-
});
|
|
4401
|
-
}
|
|
4402
|
-
};
|
|
4403
|
-
export const de_ListDeviceProfilesCommand = async (output, context) => {
|
|
2302
|
+
export const de_GetWirelessGatewayTaskDefinitionCommand = async (output, context) => {
|
|
4404
2303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4405
|
-
return
|
|
2304
|
+
return de_CommandError(output, context);
|
|
4406
2305
|
}
|
|
4407
2306
|
const contents = map({
|
|
4408
2307
|
$metadata: deserializeMetadata(output),
|
|
4409
2308
|
});
|
|
4410
2309
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4411
2310
|
const doc = take(data, {
|
|
4412
|
-
|
|
4413
|
-
|
|
2311
|
+
Arn: __expectString,
|
|
2312
|
+
AutoCreateTasks: __expectBoolean,
|
|
2313
|
+
Name: __expectString,
|
|
2314
|
+
Update: _json,
|
|
4414
2315
|
});
|
|
4415
2316
|
Object.assign(contents, doc);
|
|
4416
2317
|
return contents;
|
|
4417
2318
|
};
|
|
4418
|
-
const
|
|
4419
|
-
const parsedOutput = {
|
|
4420
|
-
...output,
|
|
4421
|
-
body: await parseErrorBody(output.body, context),
|
|
4422
|
-
};
|
|
4423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4424
|
-
switch (errorCode) {
|
|
4425
|
-
case "AccessDeniedException":
|
|
4426
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4427
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4428
|
-
case "InternalServerException":
|
|
4429
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4430
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4431
|
-
case "ThrottlingException":
|
|
4432
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4433
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4434
|
-
case "ValidationException":
|
|
4435
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4436
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4437
|
-
default:
|
|
4438
|
-
const parsedBody = parsedOutput.body;
|
|
4439
|
-
return throwDefaultError({
|
|
4440
|
-
output,
|
|
4441
|
-
parsedBody,
|
|
4442
|
-
errorCode,
|
|
4443
|
-
});
|
|
4444
|
-
}
|
|
4445
|
-
};
|
|
4446
|
-
export const de_ListDevicesForWirelessDeviceImportTaskCommand = async (output, context) => {
|
|
2319
|
+
export const de_ListDestinationsCommand = async (output, context) => {
|
|
4447
2320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4448
|
-
return
|
|
2321
|
+
return de_CommandError(output, context);
|
|
4449
2322
|
}
|
|
4450
2323
|
const contents = map({
|
|
4451
2324
|
$metadata: deserializeMetadata(output),
|
|
4452
2325
|
});
|
|
4453
2326
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4454
2327
|
const doc = take(data, {
|
|
4455
|
-
|
|
4456
|
-
ImportedWirelessDeviceList: (_) => de_ImportedWirelessDeviceList(_, context),
|
|
2328
|
+
DestinationList: _json,
|
|
4457
2329
|
NextToken: __expectString,
|
|
4458
2330
|
});
|
|
4459
2331
|
Object.assign(contents, doc);
|
|
4460
2332
|
return contents;
|
|
4461
2333
|
};
|
|
4462
|
-
const
|
|
4463
|
-
const parsedOutput = {
|
|
4464
|
-
...output,
|
|
4465
|
-
body: await parseErrorBody(output.body, context),
|
|
4466
|
-
};
|
|
4467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4468
|
-
switch (errorCode) {
|
|
4469
|
-
case "AccessDeniedException":
|
|
4470
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4471
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4472
|
-
case "ConflictException":
|
|
4473
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
4474
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4475
|
-
case "InternalServerException":
|
|
4476
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4478
|
-
case "ResourceNotFoundException":
|
|
4479
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4481
|
-
case "ThrottlingException":
|
|
4482
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4483
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4484
|
-
case "ValidationException":
|
|
4485
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4487
|
-
default:
|
|
4488
|
-
const parsedBody = parsedOutput.body;
|
|
4489
|
-
return throwDefaultError({
|
|
4490
|
-
output,
|
|
4491
|
-
parsedBody,
|
|
4492
|
-
errorCode,
|
|
4493
|
-
});
|
|
4494
|
-
}
|
|
4495
|
-
};
|
|
4496
|
-
export const de_ListEventConfigurationsCommand = async (output, context) => {
|
|
2334
|
+
export const de_ListDeviceProfilesCommand = async (output, context) => {
|
|
4497
2335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4498
|
-
return
|
|
2336
|
+
return de_CommandError(output, context);
|
|
4499
2337
|
}
|
|
4500
2338
|
const contents = map({
|
|
4501
2339
|
$metadata: deserializeMetadata(output),
|
|
4502
2340
|
});
|
|
4503
2341
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4504
2342
|
const doc = take(data, {
|
|
4505
|
-
|
|
2343
|
+
DeviceProfileList: _json,
|
|
4506
2344
|
NextToken: __expectString,
|
|
4507
2345
|
});
|
|
4508
2346
|
Object.assign(contents, doc);
|
|
4509
2347
|
return contents;
|
|
4510
2348
|
};
|
|
4511
|
-
const
|
|
4512
|
-
const parsedOutput = {
|
|
4513
|
-
...output,
|
|
4514
|
-
body: await parseErrorBody(output.body, context),
|
|
4515
|
-
};
|
|
4516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4517
|
-
switch (errorCode) {
|
|
4518
|
-
case "AccessDeniedException":
|
|
4519
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4520
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4521
|
-
case "InternalServerException":
|
|
4522
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4523
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4524
|
-
case "ThrottlingException":
|
|
4525
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4526
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4527
|
-
case "ValidationException":
|
|
4528
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4529
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4530
|
-
default:
|
|
4531
|
-
const parsedBody = parsedOutput.body;
|
|
4532
|
-
return throwDefaultError({
|
|
4533
|
-
output,
|
|
4534
|
-
parsedBody,
|
|
4535
|
-
errorCode,
|
|
4536
|
-
});
|
|
4537
|
-
}
|
|
4538
|
-
};
|
|
4539
|
-
export const de_ListFuotaTasksCommand = async (output, context) => {
|
|
2349
|
+
export const de_ListDevicesForWirelessDeviceImportTaskCommand = async (output, context) => {
|
|
4540
2350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4541
|
-
return
|
|
2351
|
+
return de_CommandError(output, context);
|
|
4542
2352
|
}
|
|
4543
2353
|
const contents = map({
|
|
4544
2354
|
$metadata: deserializeMetadata(output),
|
|
4545
2355
|
});
|
|
4546
2356
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4547
2357
|
const doc = take(data, {
|
|
4548
|
-
|
|
2358
|
+
DestinationName: __expectString,
|
|
2359
|
+
ImportedWirelessDeviceList: (_) => de_ImportedWirelessDeviceList(_, context),
|
|
4549
2360
|
NextToken: __expectString,
|
|
4550
2361
|
});
|
|
4551
2362
|
Object.assign(contents, doc);
|
|
4552
2363
|
return contents;
|
|
4553
2364
|
};
|
|
4554
|
-
const
|
|
4555
|
-
const parsedOutput = {
|
|
4556
|
-
...output,
|
|
4557
|
-
body: await parseErrorBody(output.body, context),
|
|
4558
|
-
};
|
|
4559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4560
|
-
switch (errorCode) {
|
|
4561
|
-
case "AccessDeniedException":
|
|
4562
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4563
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4564
|
-
case "InternalServerException":
|
|
4565
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4566
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4567
|
-
case "ThrottlingException":
|
|
4568
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4569
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4570
|
-
case "ValidationException":
|
|
4571
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4572
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4573
|
-
default:
|
|
4574
|
-
const parsedBody = parsedOutput.body;
|
|
4575
|
-
return throwDefaultError({
|
|
4576
|
-
output,
|
|
4577
|
-
parsedBody,
|
|
4578
|
-
errorCode,
|
|
4579
|
-
});
|
|
4580
|
-
}
|
|
4581
|
-
};
|
|
4582
|
-
export const de_ListMulticastGroupsCommand = async (output, context) => {
|
|
2365
|
+
export const de_ListEventConfigurationsCommand = async (output, context) => {
|
|
4583
2366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4584
|
-
return
|
|
2367
|
+
return de_CommandError(output, context);
|
|
4585
2368
|
}
|
|
4586
2369
|
const contents = map({
|
|
4587
2370
|
$metadata: deserializeMetadata(output),
|
|
4588
2371
|
});
|
|
4589
2372
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4590
2373
|
const doc = take(data, {
|
|
4591
|
-
|
|
2374
|
+
EventConfigurationsList: _json,
|
|
4592
2375
|
NextToken: __expectString,
|
|
4593
2376
|
});
|
|
4594
2377
|
Object.assign(contents, doc);
|
|
4595
2378
|
return contents;
|
|
4596
2379
|
};
|
|
4597
|
-
const
|
|
4598
|
-
const parsedOutput = {
|
|
4599
|
-
...output,
|
|
4600
|
-
body: await parseErrorBody(output.body, context),
|
|
4601
|
-
};
|
|
4602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4603
|
-
switch (errorCode) {
|
|
4604
|
-
case "AccessDeniedException":
|
|
4605
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4606
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4607
|
-
case "InternalServerException":
|
|
4608
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4609
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4610
|
-
case "ThrottlingException":
|
|
4611
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4612
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4613
|
-
case "ValidationException":
|
|
4614
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4615
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4616
|
-
default:
|
|
4617
|
-
const parsedBody = parsedOutput.body;
|
|
4618
|
-
return throwDefaultError({
|
|
4619
|
-
output,
|
|
4620
|
-
parsedBody,
|
|
4621
|
-
errorCode,
|
|
4622
|
-
});
|
|
4623
|
-
}
|
|
4624
|
-
};
|
|
4625
|
-
export const de_ListMulticastGroupsByFuotaTaskCommand = async (output, context) => {
|
|
2380
|
+
export const de_ListFuotaTasksCommand = async (output, context) => {
|
|
4626
2381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4627
|
-
return
|
|
2382
|
+
return de_CommandError(output, context);
|
|
4628
2383
|
}
|
|
4629
2384
|
const contents = map({
|
|
4630
2385
|
$metadata: deserializeMetadata(output),
|
|
4631
2386
|
});
|
|
4632
2387
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4633
2388
|
const doc = take(data, {
|
|
4634
|
-
|
|
2389
|
+
FuotaTaskList: _json,
|
|
4635
2390
|
NextToken: __expectString,
|
|
4636
2391
|
});
|
|
4637
2392
|
Object.assign(contents, doc);
|
|
4638
2393
|
return contents;
|
|
4639
2394
|
};
|
|
4640
|
-
const
|
|
4641
|
-
const parsedOutput = {
|
|
4642
|
-
...output,
|
|
4643
|
-
body: await parseErrorBody(output.body, context),
|
|
4644
|
-
};
|
|
4645
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4646
|
-
switch (errorCode) {
|
|
4647
|
-
case "AccessDeniedException":
|
|
4648
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4649
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4650
|
-
case "InternalServerException":
|
|
4651
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4652
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4653
|
-
case "ResourceNotFoundException":
|
|
4654
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4655
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4656
|
-
case "ThrottlingException":
|
|
4657
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4658
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4659
|
-
case "ValidationException":
|
|
4660
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4661
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4662
|
-
default:
|
|
4663
|
-
const parsedBody = parsedOutput.body;
|
|
4664
|
-
return throwDefaultError({
|
|
4665
|
-
output,
|
|
4666
|
-
parsedBody,
|
|
4667
|
-
errorCode,
|
|
4668
|
-
});
|
|
4669
|
-
}
|
|
4670
|
-
};
|
|
4671
|
-
export const de_ListNetworkAnalyzerConfigurationsCommand = async (output, context) => {
|
|
2395
|
+
export const de_ListMulticastGroupsCommand = async (output, context) => {
|
|
4672
2396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4673
|
-
return
|
|
2397
|
+
return de_CommandError(output, context);
|
|
4674
2398
|
}
|
|
4675
2399
|
const contents = map({
|
|
4676
2400
|
$metadata: deserializeMetadata(output),
|
|
4677
2401
|
});
|
|
4678
2402
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4679
2403
|
const doc = take(data, {
|
|
4680
|
-
|
|
2404
|
+
MulticastGroupList: _json,
|
|
4681
2405
|
NextToken: __expectString,
|
|
4682
2406
|
});
|
|
4683
2407
|
Object.assign(contents, doc);
|
|
4684
2408
|
return contents;
|
|
4685
2409
|
};
|
|
4686
|
-
const
|
|
4687
|
-
const parsedOutput = {
|
|
4688
|
-
...output,
|
|
4689
|
-
body: await parseErrorBody(output.body, context),
|
|
4690
|
-
};
|
|
4691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4692
|
-
switch (errorCode) {
|
|
4693
|
-
case "AccessDeniedException":
|
|
4694
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4695
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4696
|
-
case "InternalServerException":
|
|
4697
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4698
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4699
|
-
case "ThrottlingException":
|
|
4700
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4701
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4702
|
-
case "ValidationException":
|
|
4703
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4704
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4705
|
-
default:
|
|
4706
|
-
const parsedBody = parsedOutput.body;
|
|
4707
|
-
return throwDefaultError({
|
|
4708
|
-
output,
|
|
4709
|
-
parsedBody,
|
|
4710
|
-
errorCode,
|
|
4711
|
-
});
|
|
4712
|
-
}
|
|
4713
|
-
};
|
|
4714
|
-
export const de_ListPartnerAccountsCommand = async (output, context) => {
|
|
2410
|
+
export const de_ListMulticastGroupsByFuotaTaskCommand = async (output, context) => {
|
|
4715
2411
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4716
|
-
return
|
|
2412
|
+
return de_CommandError(output, context);
|
|
4717
2413
|
}
|
|
4718
2414
|
const contents = map({
|
|
4719
2415
|
$metadata: deserializeMetadata(output),
|
|
4720
2416
|
});
|
|
4721
2417
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4722
2418
|
const doc = take(data, {
|
|
2419
|
+
MulticastGroupList: _json,
|
|
4723
2420
|
NextToken: __expectString,
|
|
4724
|
-
Sidewalk: _json,
|
|
4725
2421
|
});
|
|
4726
2422
|
Object.assign(contents, doc);
|
|
4727
2423
|
return contents;
|
|
4728
2424
|
};
|
|
4729
|
-
const
|
|
4730
|
-
const parsedOutput = {
|
|
4731
|
-
...output,
|
|
4732
|
-
body: await parseErrorBody(output.body, context),
|
|
4733
|
-
};
|
|
4734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4735
|
-
switch (errorCode) {
|
|
4736
|
-
case "InternalServerException":
|
|
4737
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4738
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4739
|
-
case "ResourceNotFoundException":
|
|
4740
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4741
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4742
|
-
case "ThrottlingException":
|
|
4743
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4744
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4745
|
-
case "ValidationException":
|
|
4746
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4747
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4748
|
-
default:
|
|
4749
|
-
const parsedBody = parsedOutput.body;
|
|
4750
|
-
return throwDefaultError({
|
|
4751
|
-
output,
|
|
4752
|
-
parsedBody,
|
|
4753
|
-
errorCode,
|
|
4754
|
-
});
|
|
4755
|
-
}
|
|
4756
|
-
};
|
|
4757
|
-
export const de_ListPositionConfigurationsCommand = async (output, context) => {
|
|
2425
|
+
export const de_ListNetworkAnalyzerConfigurationsCommand = async (output, context) => {
|
|
4758
2426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4759
|
-
return
|
|
2427
|
+
return de_CommandError(output, context);
|
|
4760
2428
|
}
|
|
4761
2429
|
const contents = map({
|
|
4762
2430
|
$metadata: deserializeMetadata(output),
|
|
4763
2431
|
});
|
|
4764
2432
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4765
2433
|
const doc = take(data, {
|
|
2434
|
+
NetworkAnalyzerConfigurationList: _json,
|
|
4766
2435
|
NextToken: __expectString,
|
|
4767
|
-
PositionConfigurationList: _json,
|
|
4768
2436
|
});
|
|
4769
2437
|
Object.assign(contents, doc);
|
|
4770
2438
|
return contents;
|
|
4771
2439
|
};
|
|
4772
|
-
const
|
|
4773
|
-
const parsedOutput = {
|
|
4774
|
-
...output,
|
|
4775
|
-
body: await parseErrorBody(output.body, context),
|
|
4776
|
-
};
|
|
4777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4778
|
-
switch (errorCode) {
|
|
4779
|
-
case "AccessDeniedException":
|
|
4780
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4781
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4782
|
-
case "InternalServerException":
|
|
4783
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4784
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4785
|
-
case "ThrottlingException":
|
|
4786
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4787
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4788
|
-
case "ValidationException":
|
|
4789
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4790
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4791
|
-
default:
|
|
4792
|
-
const parsedBody = parsedOutput.body;
|
|
4793
|
-
return throwDefaultError({
|
|
4794
|
-
output,
|
|
4795
|
-
parsedBody,
|
|
4796
|
-
errorCode,
|
|
4797
|
-
});
|
|
4798
|
-
}
|
|
4799
|
-
};
|
|
4800
|
-
export const de_ListQueuedMessagesCommand = async (output, context) => {
|
|
2440
|
+
export const de_ListPartnerAccountsCommand = async (output, context) => {
|
|
4801
2441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4802
|
-
return
|
|
2442
|
+
return de_CommandError(output, context);
|
|
4803
2443
|
}
|
|
4804
2444
|
const contents = map({
|
|
4805
2445
|
$metadata: deserializeMetadata(output),
|
|
4806
2446
|
});
|
|
4807
2447
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4808
2448
|
const doc = take(data, {
|
|
4809
|
-
DownlinkQueueMessagesList: _json,
|
|
4810
2449
|
NextToken: __expectString,
|
|
2450
|
+
Sidewalk: _json,
|
|
4811
2451
|
});
|
|
4812
2452
|
Object.assign(contents, doc);
|
|
4813
2453
|
return contents;
|
|
4814
2454
|
};
|
|
4815
|
-
const
|
|
4816
|
-
const parsedOutput = {
|
|
4817
|
-
...output,
|
|
4818
|
-
body: await parseErrorBody(output.body, context),
|
|
4819
|
-
};
|
|
4820
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4821
|
-
switch (errorCode) {
|
|
4822
|
-
case "AccessDeniedException":
|
|
4823
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4824
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4825
|
-
case "InternalServerException":
|
|
4826
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4827
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4828
|
-
case "ResourceNotFoundException":
|
|
4829
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4830
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4831
|
-
case "ThrottlingException":
|
|
4832
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4833
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4834
|
-
case "ValidationException":
|
|
4835
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4836
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4837
|
-
default:
|
|
4838
|
-
const parsedBody = parsedOutput.body;
|
|
4839
|
-
return throwDefaultError({
|
|
4840
|
-
output,
|
|
4841
|
-
parsedBody,
|
|
4842
|
-
errorCode,
|
|
4843
|
-
});
|
|
4844
|
-
}
|
|
4845
|
-
};
|
|
4846
|
-
export const de_ListServiceProfilesCommand = async (output, context) => {
|
|
2455
|
+
export const de_ListPositionConfigurationsCommand = async (output, context) => {
|
|
4847
2456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4848
|
-
return
|
|
2457
|
+
return de_CommandError(output, context);
|
|
4849
2458
|
}
|
|
4850
2459
|
const contents = map({
|
|
4851
2460
|
$metadata: deserializeMetadata(output),
|
|
@@ -4853,42 +2462,44 @@ export const de_ListServiceProfilesCommand = async (output, context) => {
|
|
|
4853
2462
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4854
2463
|
const doc = take(data, {
|
|
4855
2464
|
NextToken: __expectString,
|
|
4856
|
-
|
|
2465
|
+
PositionConfigurationList: _json,
|
|
4857
2466
|
});
|
|
4858
2467
|
Object.assign(contents, doc);
|
|
4859
2468
|
return contents;
|
|
4860
2469
|
};
|
|
4861
|
-
const
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4880
|
-
default:
|
|
4881
|
-
const parsedBody = parsedOutput.body;
|
|
4882
|
-
return throwDefaultError({
|
|
4883
|
-
output,
|
|
4884
|
-
parsedBody,
|
|
4885
|
-
errorCode,
|
|
4886
|
-
});
|
|
2470
|
+
export const de_ListQueuedMessagesCommand = async (output, context) => {
|
|
2471
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2472
|
+
return de_CommandError(output, context);
|
|
2473
|
+
}
|
|
2474
|
+
const contents = map({
|
|
2475
|
+
$metadata: deserializeMetadata(output),
|
|
2476
|
+
});
|
|
2477
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2478
|
+
const doc = take(data, {
|
|
2479
|
+
DownlinkQueueMessagesList: _json,
|
|
2480
|
+
NextToken: __expectString,
|
|
2481
|
+
});
|
|
2482
|
+
Object.assign(contents, doc);
|
|
2483
|
+
return contents;
|
|
2484
|
+
};
|
|
2485
|
+
export const de_ListServiceProfilesCommand = async (output, context) => {
|
|
2486
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2487
|
+
return de_CommandError(output, context);
|
|
4887
2488
|
}
|
|
2489
|
+
const contents = map({
|
|
2490
|
+
$metadata: deserializeMetadata(output),
|
|
2491
|
+
});
|
|
2492
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2493
|
+
const doc = take(data, {
|
|
2494
|
+
NextToken: __expectString,
|
|
2495
|
+
ServiceProfileList: _json,
|
|
2496
|
+
});
|
|
2497
|
+
Object.assign(contents, doc);
|
|
2498
|
+
return contents;
|
|
4888
2499
|
};
|
|
4889
2500
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
4890
2501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4891
|
-
return
|
|
2502
|
+
return de_CommandError(output, context);
|
|
4892
2503
|
}
|
|
4893
2504
|
const contents = map({
|
|
4894
2505
|
$metadata: deserializeMetadata(output),
|
|
@@ -4900,40 +2511,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
4900
2511
|
Object.assign(contents, doc);
|
|
4901
2512
|
return contents;
|
|
4902
2513
|
};
|
|
4903
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
4904
|
-
const parsedOutput = {
|
|
4905
|
-
...output,
|
|
4906
|
-
body: await parseErrorBody(output.body, context),
|
|
4907
|
-
};
|
|
4908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4909
|
-
switch (errorCode) {
|
|
4910
|
-
case "ConflictException":
|
|
4911
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
4912
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4913
|
-
case "InternalServerException":
|
|
4914
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4915
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4916
|
-
case "ResourceNotFoundException":
|
|
4917
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4918
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4919
|
-
case "ThrottlingException":
|
|
4920
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4921
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4922
|
-
case "ValidationException":
|
|
4923
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4924
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4925
|
-
default:
|
|
4926
|
-
const parsedBody = parsedOutput.body;
|
|
4927
|
-
return throwDefaultError({
|
|
4928
|
-
output,
|
|
4929
|
-
parsedBody,
|
|
4930
|
-
errorCode,
|
|
4931
|
-
});
|
|
4932
|
-
}
|
|
4933
|
-
};
|
|
4934
2514
|
export const de_ListWirelessDeviceImportTasksCommand = async (output, context) => {
|
|
4935
2515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4936
|
-
return
|
|
2516
|
+
return de_CommandError(output, context);
|
|
4937
2517
|
}
|
|
4938
2518
|
const contents = map({
|
|
4939
2519
|
$metadata: deserializeMetadata(output),
|
|
@@ -4946,43 +2526,9 @@ export const de_ListWirelessDeviceImportTasksCommand = async (output, context) =
|
|
|
4946
2526
|
Object.assign(contents, doc);
|
|
4947
2527
|
return contents;
|
|
4948
2528
|
};
|
|
4949
|
-
const de_ListWirelessDeviceImportTasksCommandError = async (output, context) => {
|
|
4950
|
-
const parsedOutput = {
|
|
4951
|
-
...output,
|
|
4952
|
-
body: await parseErrorBody(output.body, context),
|
|
4953
|
-
};
|
|
4954
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4955
|
-
switch (errorCode) {
|
|
4956
|
-
case "AccessDeniedException":
|
|
4957
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
4958
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4959
|
-
case "ConflictException":
|
|
4960
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
4961
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4962
|
-
case "InternalServerException":
|
|
4963
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
4964
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4965
|
-
case "ResourceNotFoundException":
|
|
4966
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
4967
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4968
|
-
case "ThrottlingException":
|
|
4969
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
4970
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4971
|
-
case "ValidationException":
|
|
4972
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
4973
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4974
|
-
default:
|
|
4975
|
-
const parsedBody = parsedOutput.body;
|
|
4976
|
-
return throwDefaultError({
|
|
4977
|
-
output,
|
|
4978
|
-
parsedBody,
|
|
4979
|
-
errorCode,
|
|
4980
|
-
});
|
|
4981
|
-
}
|
|
4982
|
-
};
|
|
4983
2529
|
export const de_ListWirelessDevicesCommand = async (output, context) => {
|
|
4984
2530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4985
|
-
return
|
|
2531
|
+
return de_CommandError(output, context);
|
|
4986
2532
|
}
|
|
4987
2533
|
const contents = map({
|
|
4988
2534
|
$metadata: deserializeMetadata(output),
|
|
@@ -4995,37 +2541,9 @@ export const de_ListWirelessDevicesCommand = async (output, context) => {
|
|
|
4995
2541
|
Object.assign(contents, doc);
|
|
4996
2542
|
return contents;
|
|
4997
2543
|
};
|
|
4998
|
-
const de_ListWirelessDevicesCommandError = async (output, context) => {
|
|
4999
|
-
const parsedOutput = {
|
|
5000
|
-
...output,
|
|
5001
|
-
body: await parseErrorBody(output.body, context),
|
|
5002
|
-
};
|
|
5003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5004
|
-
switch (errorCode) {
|
|
5005
|
-
case "AccessDeniedException":
|
|
5006
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5007
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5008
|
-
case "InternalServerException":
|
|
5009
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5010
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5011
|
-
case "ThrottlingException":
|
|
5012
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5013
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5014
|
-
case "ValidationException":
|
|
5015
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5016
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5017
|
-
default:
|
|
5018
|
-
const parsedBody = parsedOutput.body;
|
|
5019
|
-
return throwDefaultError({
|
|
5020
|
-
output,
|
|
5021
|
-
parsedBody,
|
|
5022
|
-
errorCode,
|
|
5023
|
-
});
|
|
5024
|
-
}
|
|
5025
|
-
};
|
|
5026
2544
|
export const de_ListWirelessGatewaysCommand = async (output, context) => {
|
|
5027
2545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5028
|
-
return
|
|
2546
|
+
return de_CommandError(output, context);
|
|
5029
2547
|
}
|
|
5030
2548
|
const contents = map({
|
|
5031
2549
|
$metadata: deserializeMetadata(output),
|
|
@@ -5038,37 +2556,9 @@ export const de_ListWirelessGatewaysCommand = async (output, context) => {
|
|
|
5038
2556
|
Object.assign(contents, doc);
|
|
5039
2557
|
return contents;
|
|
5040
2558
|
};
|
|
5041
|
-
const de_ListWirelessGatewaysCommandError = async (output, context) => {
|
|
5042
|
-
const parsedOutput = {
|
|
5043
|
-
...output,
|
|
5044
|
-
body: await parseErrorBody(output.body, context),
|
|
5045
|
-
};
|
|
5046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5047
|
-
switch (errorCode) {
|
|
5048
|
-
case "AccessDeniedException":
|
|
5049
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5050
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5051
|
-
case "InternalServerException":
|
|
5052
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5053
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5054
|
-
case "ThrottlingException":
|
|
5055
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5056
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5057
|
-
case "ValidationException":
|
|
5058
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5059
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5060
|
-
default:
|
|
5061
|
-
const parsedBody = parsedOutput.body;
|
|
5062
|
-
return throwDefaultError({
|
|
5063
|
-
output,
|
|
5064
|
-
parsedBody,
|
|
5065
|
-
errorCode,
|
|
5066
|
-
});
|
|
5067
|
-
}
|
|
5068
|
-
};
|
|
5069
2559
|
export const de_ListWirelessGatewayTaskDefinitionsCommand = async (output, context) => {
|
|
5070
2560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5071
|
-
return
|
|
2561
|
+
return de_CommandError(output, context);
|
|
5072
2562
|
}
|
|
5073
2563
|
const contents = map({
|
|
5074
2564
|
$metadata: deserializeMetadata(output),
|
|
@@ -5081,37 +2571,9 @@ export const de_ListWirelessGatewayTaskDefinitionsCommand = async (output, conte
|
|
|
5081
2571
|
Object.assign(contents, doc);
|
|
5082
2572
|
return contents;
|
|
5083
2573
|
};
|
|
5084
|
-
const de_ListWirelessGatewayTaskDefinitionsCommandError = async (output, context) => {
|
|
5085
|
-
const parsedOutput = {
|
|
5086
|
-
...output,
|
|
5087
|
-
body: await parseErrorBody(output.body, context),
|
|
5088
|
-
};
|
|
5089
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5090
|
-
switch (errorCode) {
|
|
5091
|
-
case "AccessDeniedException":
|
|
5092
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5093
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5094
|
-
case "InternalServerException":
|
|
5095
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5096
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5097
|
-
case "ThrottlingException":
|
|
5098
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5099
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5100
|
-
case "ValidationException":
|
|
5101
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5102
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5103
|
-
default:
|
|
5104
|
-
const parsedBody = parsedOutput.body;
|
|
5105
|
-
return throwDefaultError({
|
|
5106
|
-
output,
|
|
5107
|
-
parsedBody,
|
|
5108
|
-
errorCode,
|
|
5109
|
-
});
|
|
5110
|
-
}
|
|
5111
|
-
};
|
|
5112
2574
|
export const de_PutPositionConfigurationCommand = async (output, context) => {
|
|
5113
2575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5114
|
-
return
|
|
2576
|
+
return de_CommandError(output, context);
|
|
5115
2577
|
}
|
|
5116
2578
|
const contents = map({
|
|
5117
2579
|
$metadata: deserializeMetadata(output),
|
|
@@ -5119,40 +2581,9 @@ export const de_PutPositionConfigurationCommand = async (output, context) => {
|
|
|
5119
2581
|
await collectBody(output.body, context);
|
|
5120
2582
|
return contents;
|
|
5121
2583
|
};
|
|
5122
|
-
const de_PutPositionConfigurationCommandError = async (output, context) => {
|
|
5123
|
-
const parsedOutput = {
|
|
5124
|
-
...output,
|
|
5125
|
-
body: await parseErrorBody(output.body, context),
|
|
5126
|
-
};
|
|
5127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5128
|
-
switch (errorCode) {
|
|
5129
|
-
case "AccessDeniedException":
|
|
5130
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5131
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5132
|
-
case "InternalServerException":
|
|
5133
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5134
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5135
|
-
case "ResourceNotFoundException":
|
|
5136
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5137
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5138
|
-
case "ThrottlingException":
|
|
5139
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5140
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5141
|
-
case "ValidationException":
|
|
5142
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5143
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5144
|
-
default:
|
|
5145
|
-
const parsedBody = parsedOutput.body;
|
|
5146
|
-
return throwDefaultError({
|
|
5147
|
-
output,
|
|
5148
|
-
parsedBody,
|
|
5149
|
-
errorCode,
|
|
5150
|
-
});
|
|
5151
|
-
}
|
|
5152
|
-
};
|
|
5153
2584
|
export const de_PutResourceLogLevelCommand = async (output, context) => {
|
|
5154
2585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5155
|
-
return
|
|
2586
|
+
return de_CommandError(output, context);
|
|
5156
2587
|
}
|
|
5157
2588
|
const contents = map({
|
|
5158
2589
|
$metadata: deserializeMetadata(output),
|
|
@@ -5160,81 +2591,19 @@ export const de_PutResourceLogLevelCommand = async (output, context) => {
|
|
|
5160
2591
|
await collectBody(output.body, context);
|
|
5161
2592
|
return contents;
|
|
5162
2593
|
};
|
|
5163
|
-
const de_PutResourceLogLevelCommandError = async (output, context) => {
|
|
5164
|
-
const parsedOutput = {
|
|
5165
|
-
...output,
|
|
5166
|
-
body: await parseErrorBody(output.body, context),
|
|
5167
|
-
};
|
|
5168
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5169
|
-
switch (errorCode) {
|
|
5170
|
-
case "AccessDeniedException":
|
|
5171
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5172
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5173
|
-
case "InternalServerException":
|
|
5174
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5175
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5176
|
-
case "ResourceNotFoundException":
|
|
5177
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5178
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5179
|
-
case "ThrottlingException":
|
|
5180
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5181
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5182
|
-
case "ValidationException":
|
|
5183
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5184
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5185
|
-
default:
|
|
5186
|
-
const parsedBody = parsedOutput.body;
|
|
5187
|
-
return throwDefaultError({
|
|
5188
|
-
output,
|
|
5189
|
-
parsedBody,
|
|
5190
|
-
errorCode,
|
|
5191
|
-
});
|
|
5192
|
-
}
|
|
5193
|
-
};
|
|
5194
2594
|
export const de_ResetAllResourceLogLevelsCommand = async (output, context) => {
|
|
5195
2595
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5196
|
-
return
|
|
2596
|
+
return de_CommandError(output, context);
|
|
5197
2597
|
}
|
|
5198
2598
|
const contents = map({
|
|
5199
2599
|
$metadata: deserializeMetadata(output),
|
|
5200
2600
|
});
|
|
5201
2601
|
await collectBody(output.body, context);
|
|
5202
|
-
return contents;
|
|
5203
|
-
};
|
|
5204
|
-
const de_ResetAllResourceLogLevelsCommandError = async (output, context) => {
|
|
5205
|
-
const parsedOutput = {
|
|
5206
|
-
...output,
|
|
5207
|
-
body: await parseErrorBody(output.body, context),
|
|
5208
|
-
};
|
|
5209
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5210
|
-
switch (errorCode) {
|
|
5211
|
-
case "AccessDeniedException":
|
|
5212
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5213
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5214
|
-
case "InternalServerException":
|
|
5215
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5216
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5217
|
-
case "ResourceNotFoundException":
|
|
5218
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5219
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5220
|
-
case "ThrottlingException":
|
|
5221
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5222
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5223
|
-
case "ValidationException":
|
|
5224
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5225
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5226
|
-
default:
|
|
5227
|
-
const parsedBody = parsedOutput.body;
|
|
5228
|
-
return throwDefaultError({
|
|
5229
|
-
output,
|
|
5230
|
-
parsedBody,
|
|
5231
|
-
errorCode,
|
|
5232
|
-
});
|
|
5233
|
-
}
|
|
2602
|
+
return contents;
|
|
5234
2603
|
};
|
|
5235
2604
|
export const de_ResetResourceLogLevelCommand = async (output, context) => {
|
|
5236
2605
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5237
|
-
return
|
|
2606
|
+
return de_CommandError(output, context);
|
|
5238
2607
|
}
|
|
5239
2608
|
const contents = map({
|
|
5240
2609
|
$metadata: deserializeMetadata(output),
|
|
@@ -5242,40 +2611,9 @@ export const de_ResetResourceLogLevelCommand = async (output, context) => {
|
|
|
5242
2611
|
await collectBody(output.body, context);
|
|
5243
2612
|
return contents;
|
|
5244
2613
|
};
|
|
5245
|
-
const de_ResetResourceLogLevelCommandError = async (output, context) => {
|
|
5246
|
-
const parsedOutput = {
|
|
5247
|
-
...output,
|
|
5248
|
-
body: await parseErrorBody(output.body, context),
|
|
5249
|
-
};
|
|
5250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5251
|
-
switch (errorCode) {
|
|
5252
|
-
case "AccessDeniedException":
|
|
5253
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5254
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5255
|
-
case "InternalServerException":
|
|
5256
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5257
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5258
|
-
case "ResourceNotFoundException":
|
|
5259
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5260
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5261
|
-
case "ThrottlingException":
|
|
5262
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5263
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5264
|
-
case "ValidationException":
|
|
5265
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5266
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5267
|
-
default:
|
|
5268
|
-
const parsedBody = parsedOutput.body;
|
|
5269
|
-
return throwDefaultError({
|
|
5270
|
-
output,
|
|
5271
|
-
parsedBody,
|
|
5272
|
-
errorCode,
|
|
5273
|
-
});
|
|
5274
|
-
}
|
|
5275
|
-
};
|
|
5276
2614
|
export const de_SendDataToMulticastGroupCommand = async (output, context) => {
|
|
5277
2615
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
5278
|
-
return
|
|
2616
|
+
return de_CommandError(output, context);
|
|
5279
2617
|
}
|
|
5280
2618
|
const contents = map({
|
|
5281
2619
|
$metadata: deserializeMetadata(output),
|
|
@@ -5287,43 +2625,9 @@ export const de_SendDataToMulticastGroupCommand = async (output, context) => {
|
|
|
5287
2625
|
Object.assign(contents, doc);
|
|
5288
2626
|
return contents;
|
|
5289
2627
|
};
|
|
5290
|
-
const de_SendDataToMulticastGroupCommandError = async (output, context) => {
|
|
5291
|
-
const parsedOutput = {
|
|
5292
|
-
...output,
|
|
5293
|
-
body: await parseErrorBody(output.body, context),
|
|
5294
|
-
};
|
|
5295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5296
|
-
switch (errorCode) {
|
|
5297
|
-
case "AccessDeniedException":
|
|
5298
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5299
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5300
|
-
case "ConflictException":
|
|
5301
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5302
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5303
|
-
case "InternalServerException":
|
|
5304
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5306
|
-
case "ResourceNotFoundException":
|
|
5307
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5309
|
-
case "ThrottlingException":
|
|
5310
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5311
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5312
|
-
case "ValidationException":
|
|
5313
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5314
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5315
|
-
default:
|
|
5316
|
-
const parsedBody = parsedOutput.body;
|
|
5317
|
-
return throwDefaultError({
|
|
5318
|
-
output,
|
|
5319
|
-
parsedBody,
|
|
5320
|
-
errorCode,
|
|
5321
|
-
});
|
|
5322
|
-
}
|
|
5323
|
-
};
|
|
5324
2628
|
export const de_SendDataToWirelessDeviceCommand = async (output, context) => {
|
|
5325
2629
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
5326
|
-
return
|
|
2630
|
+
return de_CommandError(output, context);
|
|
5327
2631
|
}
|
|
5328
2632
|
const contents = map({
|
|
5329
2633
|
$metadata: deserializeMetadata(output),
|
|
@@ -5335,37 +2639,9 @@ export const de_SendDataToWirelessDeviceCommand = async (output, context) => {
|
|
|
5335
2639
|
Object.assign(contents, doc);
|
|
5336
2640
|
return contents;
|
|
5337
2641
|
};
|
|
5338
|
-
const de_SendDataToWirelessDeviceCommandError = async (output, context) => {
|
|
5339
|
-
const parsedOutput = {
|
|
5340
|
-
...output,
|
|
5341
|
-
body: await parseErrorBody(output.body, context),
|
|
5342
|
-
};
|
|
5343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5344
|
-
switch (errorCode) {
|
|
5345
|
-
case "InternalServerException":
|
|
5346
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5347
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5348
|
-
case "ResourceNotFoundException":
|
|
5349
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5350
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5351
|
-
case "ThrottlingException":
|
|
5352
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5353
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5354
|
-
case "ValidationException":
|
|
5355
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5356
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5357
|
-
default:
|
|
5358
|
-
const parsedBody = parsedOutput.body;
|
|
5359
|
-
return throwDefaultError({
|
|
5360
|
-
output,
|
|
5361
|
-
parsedBody,
|
|
5362
|
-
errorCode,
|
|
5363
|
-
});
|
|
5364
|
-
}
|
|
5365
|
-
};
|
|
5366
2642
|
export const de_StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = async (output, context) => {
|
|
5367
2643
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5368
|
-
return
|
|
2644
|
+
return de_CommandError(output, context);
|
|
5369
2645
|
}
|
|
5370
2646
|
const contents = map({
|
|
5371
2647
|
$metadata: deserializeMetadata(output),
|
|
@@ -5373,40 +2649,9 @@ export const de_StartBulkAssociateWirelessDeviceWithMulticastGroupCommand = asyn
|
|
|
5373
2649
|
await collectBody(output.body, context);
|
|
5374
2650
|
return contents;
|
|
5375
2651
|
};
|
|
5376
|
-
const de_StartBulkAssociateWirelessDeviceWithMulticastGroupCommandError = async (output, context) => {
|
|
5377
|
-
const parsedOutput = {
|
|
5378
|
-
...output,
|
|
5379
|
-
body: await parseErrorBody(output.body, context),
|
|
5380
|
-
};
|
|
5381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5382
|
-
switch (errorCode) {
|
|
5383
|
-
case "AccessDeniedException":
|
|
5384
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5385
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5386
|
-
case "InternalServerException":
|
|
5387
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5388
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5389
|
-
case "ResourceNotFoundException":
|
|
5390
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5391
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5392
|
-
case "ThrottlingException":
|
|
5393
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5394
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5395
|
-
case "ValidationException":
|
|
5396
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5397
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5398
|
-
default:
|
|
5399
|
-
const parsedBody = parsedOutput.body;
|
|
5400
|
-
return throwDefaultError({
|
|
5401
|
-
output,
|
|
5402
|
-
parsedBody,
|
|
5403
|
-
errorCode,
|
|
5404
|
-
});
|
|
5405
|
-
}
|
|
5406
|
-
};
|
|
5407
2652
|
export const de_StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = async (output, context) => {
|
|
5408
2653
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5409
|
-
return
|
|
2654
|
+
return de_CommandError(output, context);
|
|
5410
2655
|
}
|
|
5411
2656
|
const contents = map({
|
|
5412
2657
|
$metadata: deserializeMetadata(output),
|
|
@@ -5414,40 +2659,9 @@ export const de_StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand = a
|
|
|
5414
2659
|
await collectBody(output.body, context);
|
|
5415
2660
|
return contents;
|
|
5416
2661
|
};
|
|
5417
|
-
const de_StartBulkDisassociateWirelessDeviceFromMulticastGroupCommandError = async (output, context) => {
|
|
5418
|
-
const parsedOutput = {
|
|
5419
|
-
...output,
|
|
5420
|
-
body: await parseErrorBody(output.body, context),
|
|
5421
|
-
};
|
|
5422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5423
|
-
switch (errorCode) {
|
|
5424
|
-
case "AccessDeniedException":
|
|
5425
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5426
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5427
|
-
case "InternalServerException":
|
|
5428
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5429
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5430
|
-
case "ResourceNotFoundException":
|
|
5431
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5432
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5433
|
-
case "ThrottlingException":
|
|
5434
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5435
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5436
|
-
case "ValidationException":
|
|
5437
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5438
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5439
|
-
default:
|
|
5440
|
-
const parsedBody = parsedOutput.body;
|
|
5441
|
-
return throwDefaultError({
|
|
5442
|
-
output,
|
|
5443
|
-
parsedBody,
|
|
5444
|
-
errorCode,
|
|
5445
|
-
});
|
|
5446
|
-
}
|
|
5447
|
-
};
|
|
5448
2662
|
export const de_StartFuotaTaskCommand = async (output, context) => {
|
|
5449
2663
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5450
|
-
return
|
|
2664
|
+
return de_CommandError(output, context);
|
|
5451
2665
|
}
|
|
5452
2666
|
const contents = map({
|
|
5453
2667
|
$metadata: deserializeMetadata(output),
|
|
@@ -5455,43 +2669,9 @@ export const de_StartFuotaTaskCommand = async (output, context) => {
|
|
|
5455
2669
|
await collectBody(output.body, context);
|
|
5456
2670
|
return contents;
|
|
5457
2671
|
};
|
|
5458
|
-
const de_StartFuotaTaskCommandError = async (output, context) => {
|
|
5459
|
-
const parsedOutput = {
|
|
5460
|
-
...output,
|
|
5461
|
-
body: await parseErrorBody(output.body, context),
|
|
5462
|
-
};
|
|
5463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5464
|
-
switch (errorCode) {
|
|
5465
|
-
case "AccessDeniedException":
|
|
5466
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5467
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5468
|
-
case "ConflictException":
|
|
5469
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5470
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5471
|
-
case "InternalServerException":
|
|
5472
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5473
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5474
|
-
case "ResourceNotFoundException":
|
|
5475
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5476
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5477
|
-
case "ThrottlingException":
|
|
5478
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5479
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5480
|
-
case "ValidationException":
|
|
5481
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5482
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5483
|
-
default:
|
|
5484
|
-
const parsedBody = parsedOutput.body;
|
|
5485
|
-
return throwDefaultError({
|
|
5486
|
-
output,
|
|
5487
|
-
parsedBody,
|
|
5488
|
-
errorCode,
|
|
5489
|
-
});
|
|
5490
|
-
}
|
|
5491
|
-
};
|
|
5492
2672
|
export const de_StartMulticastGroupSessionCommand = async (output, context) => {
|
|
5493
2673
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5494
|
-
return
|
|
2674
|
+
return de_CommandError(output, context);
|
|
5495
2675
|
}
|
|
5496
2676
|
const contents = map({
|
|
5497
2677
|
$metadata: deserializeMetadata(output),
|
|
@@ -5499,92 +2679,24 @@ export const de_StartMulticastGroupSessionCommand = async (output, context) => {
|
|
|
5499
2679
|
await collectBody(output.body, context);
|
|
5500
2680
|
return contents;
|
|
5501
2681
|
};
|
|
5502
|
-
const de_StartMulticastGroupSessionCommandError = async (output, context) => {
|
|
5503
|
-
const parsedOutput = {
|
|
5504
|
-
...output,
|
|
5505
|
-
body: await parseErrorBody(output.body, context),
|
|
5506
|
-
};
|
|
5507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5508
|
-
switch (errorCode) {
|
|
5509
|
-
case "AccessDeniedException":
|
|
5510
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5512
|
-
case "ConflictException":
|
|
5513
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5514
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5515
|
-
case "InternalServerException":
|
|
5516
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5517
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5518
|
-
case "ResourceNotFoundException":
|
|
5519
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5520
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5521
|
-
case "ThrottlingException":
|
|
5522
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5523
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5524
|
-
case "ValidationException":
|
|
5525
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5526
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5527
|
-
default:
|
|
5528
|
-
const parsedBody = parsedOutput.body;
|
|
5529
|
-
return throwDefaultError({
|
|
5530
|
-
output,
|
|
5531
|
-
parsedBody,
|
|
5532
|
-
errorCode,
|
|
5533
|
-
});
|
|
5534
|
-
}
|
|
5535
|
-
};
|
|
5536
2682
|
export const de_StartSingleWirelessDeviceImportTaskCommand = async (output, context) => {
|
|
5537
2683
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
5538
|
-
return
|
|
2684
|
+
return de_CommandError(output, context);
|
|
5539
2685
|
}
|
|
5540
2686
|
const contents = map({
|
|
5541
2687
|
$metadata: deserializeMetadata(output),
|
|
5542
2688
|
});
|
|
5543
2689
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5544
|
-
const doc = take(data, {
|
|
5545
|
-
Arn: __expectString,
|
|
5546
|
-
Id: __expectString,
|
|
5547
|
-
});
|
|
5548
|
-
Object.assign(contents, doc);
|
|
5549
|
-
return contents;
|
|
5550
|
-
};
|
|
5551
|
-
const de_StartSingleWirelessDeviceImportTaskCommandError = async (output, context) => {
|
|
5552
|
-
const parsedOutput = {
|
|
5553
|
-
...output,
|
|
5554
|
-
body: await parseErrorBody(output.body, context),
|
|
5555
|
-
};
|
|
5556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5557
|
-
switch (errorCode) {
|
|
5558
|
-
case "AccessDeniedException":
|
|
5559
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5560
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5561
|
-
case "ConflictException":
|
|
5562
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5563
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5564
|
-
case "InternalServerException":
|
|
5565
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5566
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5567
|
-
case "ResourceNotFoundException":
|
|
5568
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5569
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5570
|
-
case "ThrottlingException":
|
|
5571
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5572
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5573
|
-
case "ValidationException":
|
|
5574
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5575
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5576
|
-
default:
|
|
5577
|
-
const parsedBody = parsedOutput.body;
|
|
5578
|
-
return throwDefaultError({
|
|
5579
|
-
output,
|
|
5580
|
-
parsedBody,
|
|
5581
|
-
errorCode,
|
|
5582
|
-
});
|
|
5583
|
-
}
|
|
2690
|
+
const doc = take(data, {
|
|
2691
|
+
Arn: __expectString,
|
|
2692
|
+
Id: __expectString,
|
|
2693
|
+
});
|
|
2694
|
+
Object.assign(contents, doc);
|
|
2695
|
+
return contents;
|
|
5584
2696
|
};
|
|
5585
2697
|
export const de_StartWirelessDeviceImportTaskCommand = async (output, context) => {
|
|
5586
2698
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
5587
|
-
return
|
|
2699
|
+
return de_CommandError(output, context);
|
|
5588
2700
|
}
|
|
5589
2701
|
const contents = map({
|
|
5590
2702
|
$metadata: deserializeMetadata(output),
|
|
@@ -5597,43 +2709,9 @@ export const de_StartWirelessDeviceImportTaskCommand = async (output, context) =
|
|
|
5597
2709
|
Object.assign(contents, doc);
|
|
5598
2710
|
return contents;
|
|
5599
2711
|
};
|
|
5600
|
-
const de_StartWirelessDeviceImportTaskCommandError = async (output, context) => {
|
|
5601
|
-
const parsedOutput = {
|
|
5602
|
-
...output,
|
|
5603
|
-
body: await parseErrorBody(output.body, context),
|
|
5604
|
-
};
|
|
5605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5606
|
-
switch (errorCode) {
|
|
5607
|
-
case "AccessDeniedException":
|
|
5608
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5609
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5610
|
-
case "ConflictException":
|
|
5611
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5612
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5613
|
-
case "InternalServerException":
|
|
5614
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5615
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5616
|
-
case "ResourceNotFoundException":
|
|
5617
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5618
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5619
|
-
case "ThrottlingException":
|
|
5620
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5621
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5622
|
-
case "ValidationException":
|
|
5623
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5624
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5625
|
-
default:
|
|
5626
|
-
const parsedBody = parsedOutput.body;
|
|
5627
|
-
return throwDefaultError({
|
|
5628
|
-
output,
|
|
5629
|
-
parsedBody,
|
|
5630
|
-
errorCode,
|
|
5631
|
-
});
|
|
5632
|
-
}
|
|
5633
|
-
};
|
|
5634
2712
|
export const de_TagResourceCommand = async (output, context) => {
|
|
5635
2713
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5636
|
-
return
|
|
2714
|
+
return de_CommandError(output, context);
|
|
5637
2715
|
}
|
|
5638
2716
|
const contents = map({
|
|
5639
2717
|
$metadata: deserializeMetadata(output),
|
|
@@ -5641,43 +2719,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
5641
2719
|
await collectBody(output.body, context);
|
|
5642
2720
|
return contents;
|
|
5643
2721
|
};
|
|
5644
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
5645
|
-
const parsedOutput = {
|
|
5646
|
-
...output,
|
|
5647
|
-
body: await parseErrorBody(output.body, context),
|
|
5648
|
-
};
|
|
5649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5650
|
-
switch (errorCode) {
|
|
5651
|
-
case "ConflictException":
|
|
5652
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5653
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5654
|
-
case "InternalServerException":
|
|
5655
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5656
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5657
|
-
case "ResourceNotFoundException":
|
|
5658
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5660
|
-
case "ThrottlingException":
|
|
5661
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5662
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5663
|
-
case "TooManyTagsException":
|
|
5664
|
-
case "com.amazonaws.iotwireless#TooManyTagsException":
|
|
5665
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
5666
|
-
case "ValidationException":
|
|
5667
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5668
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5669
|
-
default:
|
|
5670
|
-
const parsedBody = parsedOutput.body;
|
|
5671
|
-
return throwDefaultError({
|
|
5672
|
-
output,
|
|
5673
|
-
parsedBody,
|
|
5674
|
-
errorCode,
|
|
5675
|
-
});
|
|
5676
|
-
}
|
|
5677
|
-
};
|
|
5678
2722
|
export const de_TestWirelessDeviceCommand = async (output, context) => {
|
|
5679
2723
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5680
|
-
return
|
|
2724
|
+
return de_CommandError(output, context);
|
|
5681
2725
|
}
|
|
5682
2726
|
const contents = map({
|
|
5683
2727
|
$metadata: deserializeMetadata(output),
|
|
@@ -5689,37 +2733,9 @@ export const de_TestWirelessDeviceCommand = async (output, context) => {
|
|
|
5689
2733
|
Object.assign(contents, doc);
|
|
5690
2734
|
return contents;
|
|
5691
2735
|
};
|
|
5692
|
-
const de_TestWirelessDeviceCommandError = async (output, context) => {
|
|
5693
|
-
const parsedOutput = {
|
|
5694
|
-
...output,
|
|
5695
|
-
body: await parseErrorBody(output.body, context),
|
|
5696
|
-
};
|
|
5697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5698
|
-
switch (errorCode) {
|
|
5699
|
-
case "InternalServerException":
|
|
5700
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5701
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5702
|
-
case "ResourceNotFoundException":
|
|
5703
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5704
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5705
|
-
case "ThrottlingException":
|
|
5706
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5707
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5708
|
-
case "ValidationException":
|
|
5709
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5710
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5711
|
-
default:
|
|
5712
|
-
const parsedBody = parsedOutput.body;
|
|
5713
|
-
return throwDefaultError({
|
|
5714
|
-
output,
|
|
5715
|
-
parsedBody,
|
|
5716
|
-
errorCode,
|
|
5717
|
-
});
|
|
5718
|
-
}
|
|
5719
|
-
};
|
|
5720
2736
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
5721
2737
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5722
|
-
return
|
|
2738
|
+
return de_CommandError(output, context);
|
|
5723
2739
|
}
|
|
5724
2740
|
const contents = map({
|
|
5725
2741
|
$metadata: deserializeMetadata(output),
|
|
@@ -5727,40 +2743,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
5727
2743
|
await collectBody(output.body, context);
|
|
5728
2744
|
return contents;
|
|
5729
2745
|
};
|
|
5730
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
5731
|
-
const parsedOutput = {
|
|
5732
|
-
...output,
|
|
5733
|
-
body: await parseErrorBody(output.body, context),
|
|
5734
|
-
};
|
|
5735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5736
|
-
switch (errorCode) {
|
|
5737
|
-
case "ConflictException":
|
|
5738
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5739
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5740
|
-
case "InternalServerException":
|
|
5741
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5742
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5743
|
-
case "ResourceNotFoundException":
|
|
5744
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5746
|
-
case "ThrottlingException":
|
|
5747
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5748
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5749
|
-
case "ValidationException":
|
|
5750
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5751
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5752
|
-
default:
|
|
5753
|
-
const parsedBody = parsedOutput.body;
|
|
5754
|
-
return throwDefaultError({
|
|
5755
|
-
output,
|
|
5756
|
-
parsedBody,
|
|
5757
|
-
errorCode,
|
|
5758
|
-
});
|
|
5759
|
-
}
|
|
5760
|
-
};
|
|
5761
2746
|
export const de_UpdateDestinationCommand = async (output, context) => {
|
|
5762
2747
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5763
|
-
return
|
|
2748
|
+
return de_CommandError(output, context);
|
|
5764
2749
|
}
|
|
5765
2750
|
const contents = map({
|
|
5766
2751
|
$metadata: deserializeMetadata(output),
|
|
@@ -5768,40 +2753,9 @@ export const de_UpdateDestinationCommand = async (output, context) => {
|
|
|
5768
2753
|
await collectBody(output.body, context);
|
|
5769
2754
|
return contents;
|
|
5770
2755
|
};
|
|
5771
|
-
const de_UpdateDestinationCommandError = async (output, context) => {
|
|
5772
|
-
const parsedOutput = {
|
|
5773
|
-
...output,
|
|
5774
|
-
body: await parseErrorBody(output.body, context),
|
|
5775
|
-
};
|
|
5776
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5777
|
-
switch (errorCode) {
|
|
5778
|
-
case "AccessDeniedException":
|
|
5779
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5780
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5781
|
-
case "InternalServerException":
|
|
5782
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5783
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5784
|
-
case "ResourceNotFoundException":
|
|
5785
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5786
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5787
|
-
case "ThrottlingException":
|
|
5788
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5789
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5790
|
-
case "ValidationException":
|
|
5791
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5792
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5793
|
-
default:
|
|
5794
|
-
const parsedBody = parsedOutput.body;
|
|
5795
|
-
return throwDefaultError({
|
|
5796
|
-
output,
|
|
5797
|
-
parsedBody,
|
|
5798
|
-
errorCode,
|
|
5799
|
-
});
|
|
5800
|
-
}
|
|
5801
|
-
};
|
|
5802
2756
|
export const de_UpdateEventConfigurationByResourceTypesCommand = async (output, context) => {
|
|
5803
2757
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5804
|
-
return
|
|
2758
|
+
return de_CommandError(output, context);
|
|
5805
2759
|
}
|
|
5806
2760
|
const contents = map({
|
|
5807
2761
|
$metadata: deserializeMetadata(output),
|
|
@@ -5809,37 +2763,9 @@ export const de_UpdateEventConfigurationByResourceTypesCommand = async (output,
|
|
|
5809
2763
|
await collectBody(output.body, context);
|
|
5810
2764
|
return contents;
|
|
5811
2765
|
};
|
|
5812
|
-
const de_UpdateEventConfigurationByResourceTypesCommandError = async (output, context) => {
|
|
5813
|
-
const parsedOutput = {
|
|
5814
|
-
...output,
|
|
5815
|
-
body: await parseErrorBody(output.body, context),
|
|
5816
|
-
};
|
|
5817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5818
|
-
switch (errorCode) {
|
|
5819
|
-
case "AccessDeniedException":
|
|
5820
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5821
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5822
|
-
case "InternalServerException":
|
|
5823
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5824
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5825
|
-
case "ThrottlingException":
|
|
5826
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5827
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5828
|
-
case "ValidationException":
|
|
5829
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5830
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5831
|
-
default:
|
|
5832
|
-
const parsedBody = parsedOutput.body;
|
|
5833
|
-
return throwDefaultError({
|
|
5834
|
-
output,
|
|
5835
|
-
parsedBody,
|
|
5836
|
-
errorCode,
|
|
5837
|
-
});
|
|
5838
|
-
}
|
|
5839
|
-
};
|
|
5840
2766
|
export const de_UpdateFuotaTaskCommand = async (output, context) => {
|
|
5841
2767
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5842
|
-
return
|
|
2768
|
+
return de_CommandError(output, context);
|
|
5843
2769
|
}
|
|
5844
2770
|
const contents = map({
|
|
5845
2771
|
$metadata: deserializeMetadata(output),
|
|
@@ -5847,87 +2773,19 @@ export const de_UpdateFuotaTaskCommand = async (output, context) => {
|
|
|
5847
2773
|
await collectBody(output.body, context);
|
|
5848
2774
|
return contents;
|
|
5849
2775
|
};
|
|
5850
|
-
const de_UpdateFuotaTaskCommandError = async (output, context) => {
|
|
5851
|
-
const parsedOutput = {
|
|
5852
|
-
...output,
|
|
5853
|
-
body: await parseErrorBody(output.body, context),
|
|
5854
|
-
};
|
|
5855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5856
|
-
switch (errorCode) {
|
|
5857
|
-
case "AccessDeniedException":
|
|
5858
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5859
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5860
|
-
case "ConflictException":
|
|
5861
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5862
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5863
|
-
case "InternalServerException":
|
|
5864
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5865
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5866
|
-
case "ResourceNotFoundException":
|
|
5867
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5868
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5869
|
-
case "ThrottlingException":
|
|
5870
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5871
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5872
|
-
case "ValidationException":
|
|
5873
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5874
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5875
|
-
default:
|
|
5876
|
-
const parsedBody = parsedOutput.body;
|
|
5877
|
-
return throwDefaultError({
|
|
5878
|
-
output,
|
|
5879
|
-
parsedBody,
|
|
5880
|
-
errorCode,
|
|
5881
|
-
});
|
|
5882
|
-
}
|
|
5883
|
-
};
|
|
5884
2776
|
export const de_UpdateLogLevelsByResourceTypesCommand = async (output, context) => {
|
|
5885
2777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5886
|
-
return
|
|
2778
|
+
return de_CommandError(output, context);
|
|
5887
2779
|
}
|
|
5888
2780
|
const contents = map({
|
|
5889
|
-
$metadata: deserializeMetadata(output),
|
|
5890
|
-
});
|
|
5891
|
-
await collectBody(output.body, context);
|
|
5892
|
-
return contents;
|
|
5893
|
-
};
|
|
5894
|
-
const de_UpdateLogLevelsByResourceTypesCommandError = async (output, context) => {
|
|
5895
|
-
const parsedOutput = {
|
|
5896
|
-
...output,
|
|
5897
|
-
body: await parseErrorBody(output.body, context),
|
|
5898
|
-
};
|
|
5899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5900
|
-
switch (errorCode) {
|
|
5901
|
-
case "AccessDeniedException":
|
|
5902
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5903
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5904
|
-
case "ConflictException":
|
|
5905
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5906
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5907
|
-
case "InternalServerException":
|
|
5908
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5909
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5910
|
-
case "ResourceNotFoundException":
|
|
5911
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5912
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5913
|
-
case "ThrottlingException":
|
|
5914
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5915
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5916
|
-
case "ValidationException":
|
|
5917
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5918
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5919
|
-
default:
|
|
5920
|
-
const parsedBody = parsedOutput.body;
|
|
5921
|
-
return throwDefaultError({
|
|
5922
|
-
output,
|
|
5923
|
-
parsedBody,
|
|
5924
|
-
errorCode,
|
|
5925
|
-
});
|
|
5926
|
-
}
|
|
2781
|
+
$metadata: deserializeMetadata(output),
|
|
2782
|
+
});
|
|
2783
|
+
await collectBody(output.body, context);
|
|
2784
|
+
return contents;
|
|
5927
2785
|
};
|
|
5928
2786
|
export const de_UpdateMulticastGroupCommand = async (output, context) => {
|
|
5929
2787
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5930
|
-
return
|
|
2788
|
+
return de_CommandError(output, context);
|
|
5931
2789
|
}
|
|
5932
2790
|
const contents = map({
|
|
5933
2791
|
$metadata: deserializeMetadata(output),
|
|
@@ -5935,43 +2793,9 @@ export const de_UpdateMulticastGroupCommand = async (output, context) => {
|
|
|
5935
2793
|
await collectBody(output.body, context);
|
|
5936
2794
|
return contents;
|
|
5937
2795
|
};
|
|
5938
|
-
const de_UpdateMulticastGroupCommandError = async (output, context) => {
|
|
5939
|
-
const parsedOutput = {
|
|
5940
|
-
...output,
|
|
5941
|
-
body: await parseErrorBody(output.body, context),
|
|
5942
|
-
};
|
|
5943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5944
|
-
switch (errorCode) {
|
|
5945
|
-
case "AccessDeniedException":
|
|
5946
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5947
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5948
|
-
case "ConflictException":
|
|
5949
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
5950
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5951
|
-
case "InternalServerException":
|
|
5952
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5953
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5954
|
-
case "ResourceNotFoundException":
|
|
5955
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5956
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5957
|
-
case "ThrottlingException":
|
|
5958
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
5959
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5960
|
-
case "ValidationException":
|
|
5961
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
5962
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5963
|
-
default:
|
|
5964
|
-
const parsedBody = parsedOutput.body;
|
|
5965
|
-
return throwDefaultError({
|
|
5966
|
-
output,
|
|
5967
|
-
parsedBody,
|
|
5968
|
-
errorCode,
|
|
5969
|
-
});
|
|
5970
|
-
}
|
|
5971
|
-
};
|
|
5972
2796
|
export const de_UpdateNetworkAnalyzerConfigurationCommand = async (output, context) => {
|
|
5973
2797
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5974
|
-
return
|
|
2798
|
+
return de_CommandError(output, context);
|
|
5975
2799
|
}
|
|
5976
2800
|
const contents = map({
|
|
5977
2801
|
$metadata: deserializeMetadata(output),
|
|
@@ -5979,40 +2803,9 @@ export const de_UpdateNetworkAnalyzerConfigurationCommand = async (output, conte
|
|
|
5979
2803
|
await collectBody(output.body, context);
|
|
5980
2804
|
return contents;
|
|
5981
2805
|
};
|
|
5982
|
-
const de_UpdateNetworkAnalyzerConfigurationCommandError = async (output, context) => {
|
|
5983
|
-
const parsedOutput = {
|
|
5984
|
-
...output,
|
|
5985
|
-
body: await parseErrorBody(output.body, context),
|
|
5986
|
-
};
|
|
5987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5988
|
-
switch (errorCode) {
|
|
5989
|
-
case "AccessDeniedException":
|
|
5990
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
5991
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5992
|
-
case "InternalServerException":
|
|
5993
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
5994
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5995
|
-
case "ResourceNotFoundException":
|
|
5996
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
5997
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5998
|
-
case "ThrottlingException":
|
|
5999
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6000
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6001
|
-
case "ValidationException":
|
|
6002
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
6003
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6004
|
-
default:
|
|
6005
|
-
const parsedBody = parsedOutput.body;
|
|
6006
|
-
return throwDefaultError({
|
|
6007
|
-
output,
|
|
6008
|
-
parsedBody,
|
|
6009
|
-
errorCode,
|
|
6010
|
-
});
|
|
6011
|
-
}
|
|
6012
|
-
};
|
|
6013
2806
|
export const de_UpdatePartnerAccountCommand = async (output, context) => {
|
|
6014
2807
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6015
|
-
return
|
|
2808
|
+
return de_CommandError(output, context);
|
|
6016
2809
|
}
|
|
6017
2810
|
const contents = map({
|
|
6018
2811
|
$metadata: deserializeMetadata(output),
|
|
@@ -6020,37 +2813,9 @@ export const de_UpdatePartnerAccountCommand = async (output, context) => {
|
|
|
6020
2813
|
await collectBody(output.body, context);
|
|
6021
2814
|
return contents;
|
|
6022
2815
|
};
|
|
6023
|
-
const de_UpdatePartnerAccountCommandError = async (output, context) => {
|
|
6024
|
-
const parsedOutput = {
|
|
6025
|
-
...output,
|
|
6026
|
-
body: await parseErrorBody(output.body, context),
|
|
6027
|
-
};
|
|
6028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6029
|
-
switch (errorCode) {
|
|
6030
|
-
case "InternalServerException":
|
|
6031
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6032
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6033
|
-
case "ResourceNotFoundException":
|
|
6034
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
6035
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6036
|
-
case "ThrottlingException":
|
|
6037
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6038
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6039
|
-
case "ValidationException":
|
|
6040
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
6041
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6042
|
-
default:
|
|
6043
|
-
const parsedBody = parsedOutput.body;
|
|
6044
|
-
return throwDefaultError({
|
|
6045
|
-
output,
|
|
6046
|
-
parsedBody,
|
|
6047
|
-
errorCode,
|
|
6048
|
-
});
|
|
6049
|
-
}
|
|
6050
|
-
};
|
|
6051
2816
|
export const de_UpdatePositionCommand = async (output, context) => {
|
|
6052
2817
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6053
|
-
return
|
|
2818
|
+
return de_CommandError(output, context);
|
|
6054
2819
|
}
|
|
6055
2820
|
const contents = map({
|
|
6056
2821
|
$metadata: deserializeMetadata(output),
|
|
@@ -6058,40 +2823,9 @@ export const de_UpdatePositionCommand = async (output, context) => {
|
|
|
6058
2823
|
await collectBody(output.body, context);
|
|
6059
2824
|
return contents;
|
|
6060
2825
|
};
|
|
6061
|
-
const de_UpdatePositionCommandError = async (output, context) => {
|
|
6062
|
-
const parsedOutput = {
|
|
6063
|
-
...output,
|
|
6064
|
-
body: await parseErrorBody(output.body, context),
|
|
6065
|
-
};
|
|
6066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6067
|
-
switch (errorCode) {
|
|
6068
|
-
case "AccessDeniedException":
|
|
6069
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6070
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6071
|
-
case "InternalServerException":
|
|
6072
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6073
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6074
|
-
case "ResourceNotFoundException":
|
|
6075
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
6076
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6077
|
-
case "ThrottlingException":
|
|
6078
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6079
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6080
|
-
case "ValidationException":
|
|
6081
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
6082
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6083
|
-
default:
|
|
6084
|
-
const parsedBody = parsedOutput.body;
|
|
6085
|
-
return throwDefaultError({
|
|
6086
|
-
output,
|
|
6087
|
-
parsedBody,
|
|
6088
|
-
errorCode,
|
|
6089
|
-
});
|
|
6090
|
-
}
|
|
6091
|
-
};
|
|
6092
2826
|
export const de_UpdateResourceEventConfigurationCommand = async (output, context) => {
|
|
6093
2827
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6094
|
-
return
|
|
2828
|
+
return de_CommandError(output, context);
|
|
6095
2829
|
}
|
|
6096
2830
|
const contents = map({
|
|
6097
2831
|
$metadata: deserializeMetadata(output),
|
|
@@ -6099,43 +2833,9 @@ export const de_UpdateResourceEventConfigurationCommand = async (output, context
|
|
|
6099
2833
|
await collectBody(output.body, context);
|
|
6100
2834
|
return contents;
|
|
6101
2835
|
};
|
|
6102
|
-
const de_UpdateResourceEventConfigurationCommandError = async (output, context) => {
|
|
6103
|
-
const parsedOutput = {
|
|
6104
|
-
...output,
|
|
6105
|
-
body: await parseErrorBody(output.body, context),
|
|
6106
|
-
};
|
|
6107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6108
|
-
switch (errorCode) {
|
|
6109
|
-
case "AccessDeniedException":
|
|
6110
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6111
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6112
|
-
case "ConflictException":
|
|
6113
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
6114
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6115
|
-
case "InternalServerException":
|
|
6116
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6117
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6118
|
-
case "ResourceNotFoundException":
|
|
6119
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
6120
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6121
|
-
case "ThrottlingException":
|
|
6122
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6123
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6124
|
-
case "ValidationException":
|
|
6125
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
6126
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6127
|
-
default:
|
|
6128
|
-
const parsedBody = parsedOutput.body;
|
|
6129
|
-
return throwDefaultError({
|
|
6130
|
-
output,
|
|
6131
|
-
parsedBody,
|
|
6132
|
-
errorCode,
|
|
6133
|
-
});
|
|
6134
|
-
}
|
|
6135
|
-
};
|
|
6136
2836
|
export const de_UpdateResourcePositionCommand = async (output, context) => {
|
|
6137
2837
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6138
|
-
return
|
|
2838
|
+
return de_CommandError(output, context);
|
|
6139
2839
|
}
|
|
6140
2840
|
const contents = map({
|
|
6141
2841
|
$metadata: deserializeMetadata(output),
|
|
@@ -6143,40 +2843,9 @@ export const de_UpdateResourcePositionCommand = async (output, context) => {
|
|
|
6143
2843
|
await collectBody(output.body, context);
|
|
6144
2844
|
return contents;
|
|
6145
2845
|
};
|
|
6146
|
-
const de_UpdateResourcePositionCommandError = async (output, context) => {
|
|
6147
|
-
const parsedOutput = {
|
|
6148
|
-
...output,
|
|
6149
|
-
body: await parseErrorBody(output.body, context),
|
|
6150
|
-
};
|
|
6151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6152
|
-
switch (errorCode) {
|
|
6153
|
-
case "AccessDeniedException":
|
|
6154
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6155
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6156
|
-
case "InternalServerException":
|
|
6157
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6158
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6159
|
-
case "ResourceNotFoundException":
|
|
6160
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
6161
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6162
|
-
case "ThrottlingException":
|
|
6163
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6164
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6165
|
-
case "ValidationException":
|
|
6166
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
6167
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6168
|
-
default:
|
|
6169
|
-
const parsedBody = parsedOutput.body;
|
|
6170
|
-
return throwDefaultError({
|
|
6171
|
-
output,
|
|
6172
|
-
parsedBody,
|
|
6173
|
-
errorCode,
|
|
6174
|
-
});
|
|
6175
|
-
}
|
|
6176
|
-
};
|
|
6177
2846
|
export const de_UpdateWirelessDeviceCommand = async (output, context) => {
|
|
6178
2847
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6179
|
-
return
|
|
2848
|
+
return de_CommandError(output, context);
|
|
6180
2849
|
}
|
|
6181
2850
|
const contents = map({
|
|
6182
2851
|
$metadata: deserializeMetadata(output),
|
|
@@ -6184,40 +2853,9 @@ export const de_UpdateWirelessDeviceCommand = async (output, context) => {
|
|
|
6184
2853
|
await collectBody(output.body, context);
|
|
6185
2854
|
return contents;
|
|
6186
2855
|
};
|
|
6187
|
-
const de_UpdateWirelessDeviceCommandError = async (output, context) => {
|
|
6188
|
-
const parsedOutput = {
|
|
6189
|
-
...output,
|
|
6190
|
-
body: await parseErrorBody(output.body, context),
|
|
6191
|
-
};
|
|
6192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6193
|
-
switch (errorCode) {
|
|
6194
|
-
case "AccessDeniedException":
|
|
6195
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6196
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6197
|
-
case "InternalServerException":
|
|
6198
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6199
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6200
|
-
case "ResourceNotFoundException":
|
|
6201
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
6202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6203
|
-
case "ThrottlingException":
|
|
6204
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6205
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6206
|
-
case "ValidationException":
|
|
6207
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
6208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6209
|
-
default:
|
|
6210
|
-
const parsedBody = parsedOutput.body;
|
|
6211
|
-
return throwDefaultError({
|
|
6212
|
-
output,
|
|
6213
|
-
parsedBody,
|
|
6214
|
-
errorCode,
|
|
6215
|
-
});
|
|
6216
|
-
}
|
|
6217
|
-
};
|
|
6218
2856
|
export const de_UpdateWirelessDeviceImportTaskCommand = async (output, context) => {
|
|
6219
2857
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6220
|
-
return
|
|
2858
|
+
return de_CommandError(output, context);
|
|
6221
2859
|
}
|
|
6222
2860
|
const contents = map({
|
|
6223
2861
|
$metadata: deserializeMetadata(output),
|
|
@@ -6225,43 +2863,9 @@ export const de_UpdateWirelessDeviceImportTaskCommand = async (output, context)
|
|
|
6225
2863
|
await collectBody(output.body, context);
|
|
6226
2864
|
return contents;
|
|
6227
2865
|
};
|
|
6228
|
-
const de_UpdateWirelessDeviceImportTaskCommandError = async (output, context) => {
|
|
6229
|
-
const parsedOutput = {
|
|
6230
|
-
...output,
|
|
6231
|
-
body: await parseErrorBody(output.body, context),
|
|
6232
|
-
};
|
|
6233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6234
|
-
switch (errorCode) {
|
|
6235
|
-
case "AccessDeniedException":
|
|
6236
|
-
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6237
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
6238
|
-
case "ConflictException":
|
|
6239
|
-
case "com.amazonaws.iotwireless#ConflictException":
|
|
6240
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6241
|
-
case "InternalServerException":
|
|
6242
|
-
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6243
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6244
|
-
case "ResourceNotFoundException":
|
|
6245
|
-
case "com.amazonaws.iotwireless#ResourceNotFoundException":
|
|
6246
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
6247
|
-
case "ThrottlingException":
|
|
6248
|
-
case "com.amazonaws.iotwireless#ThrottlingException":
|
|
6249
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6250
|
-
case "ValidationException":
|
|
6251
|
-
case "com.amazonaws.iotwireless#ValidationException":
|
|
6252
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6253
|
-
default:
|
|
6254
|
-
const parsedBody = parsedOutput.body;
|
|
6255
|
-
return throwDefaultError({
|
|
6256
|
-
output,
|
|
6257
|
-
parsedBody,
|
|
6258
|
-
errorCode,
|
|
6259
|
-
});
|
|
6260
|
-
}
|
|
6261
|
-
};
|
|
6262
2866
|
export const de_UpdateWirelessGatewayCommand = async (output, context) => {
|
|
6263
2867
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
6264
|
-
return
|
|
2868
|
+
return de_CommandError(output, context);
|
|
6265
2869
|
}
|
|
6266
2870
|
const contents = map({
|
|
6267
2871
|
$metadata: deserializeMetadata(output),
|
|
@@ -6269,7 +2873,7 @@ export const de_UpdateWirelessGatewayCommand = async (output, context) => {
|
|
|
6269
2873
|
await collectBody(output.body, context);
|
|
6270
2874
|
return contents;
|
|
6271
2875
|
};
|
|
6272
|
-
const
|
|
2876
|
+
const de_CommandError = async (output, context) => {
|
|
6273
2877
|
const parsedOutput = {
|
|
6274
2878
|
...output,
|
|
6275
2879
|
body: await parseErrorBody(output.body, context),
|
|
@@ -6279,6 +2883,9 @@ const de_UpdateWirelessGatewayCommandError = async (output, context) => {
|
|
|
6279
2883
|
case "AccessDeniedException":
|
|
6280
2884
|
case "com.amazonaws.iotwireless#AccessDeniedException":
|
|
6281
2885
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2886
|
+
case "ConflictException":
|
|
2887
|
+
case "com.amazonaws.iotwireless#ConflictException":
|
|
2888
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6282
2889
|
case "InternalServerException":
|
|
6283
2890
|
case "com.amazonaws.iotwireless#InternalServerException":
|
|
6284
2891
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -6291,6 +2898,9 @@ const de_UpdateWirelessGatewayCommandError = async (output, context) => {
|
|
|
6291
2898
|
case "ValidationException":
|
|
6292
2899
|
case "com.amazonaws.iotwireless#ValidationException":
|
|
6293
2900
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2901
|
+
case "TooManyTagsException":
|
|
2902
|
+
case "com.amazonaws.iotwireless#TooManyTagsException":
|
|
2903
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
6294
2904
|
default:
|
|
6295
2905
|
const parsedBody = parsedOutput.body;
|
|
6296
2906
|
return throwDefaultError({
|