@aws-sdk/client-workmail 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +185 -2650
- package/dist-es/protocols/Aws_json1_1.js +355 -2820
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1338,7 +1338,7 @@ var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1338
1338
|
}, "se_UpdateUserCommand");
|
|
1339
1339
|
var de_AssociateDelegateToResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1340
1340
|
if (output.statusCode >= 300) {
|
|
1341
|
-
return
|
|
1341
|
+
return de_CommandError(output, context);
|
|
1342
1342
|
}
|
|
1343
1343
|
const data = await parseBody(output.body, context);
|
|
1344
1344
|
let contents = {};
|
|
@@ -1349,43 +1349,9 @@ var de_AssociateDelegateToResourceCommand = /* @__PURE__ */ __name(async (output
|
|
|
1349
1349
|
};
|
|
1350
1350
|
return response;
|
|
1351
1351
|
}, "de_AssociateDelegateToResourceCommand");
|
|
1352
|
-
var de_AssociateDelegateToResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1353
|
-
const parsedOutput = {
|
|
1354
|
-
...output,
|
|
1355
|
-
body: await parseErrorBody(output.body, context)
|
|
1356
|
-
};
|
|
1357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1358
|
-
switch (errorCode) {
|
|
1359
|
-
case "EntityNotFoundException":
|
|
1360
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1361
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1362
|
-
case "EntityStateException":
|
|
1363
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1364
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1365
|
-
case "InvalidParameterException":
|
|
1366
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1367
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "OrganizationNotFoundException":
|
|
1369
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1370
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1371
|
-
case "OrganizationStateException":
|
|
1372
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1373
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "UnsupportedOperationException":
|
|
1375
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1376
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1377
|
-
default:
|
|
1378
|
-
const parsedBody = parsedOutput.body;
|
|
1379
|
-
return throwDefaultError({
|
|
1380
|
-
output,
|
|
1381
|
-
parsedBody,
|
|
1382
|
-
errorCode
|
|
1383
|
-
});
|
|
1384
|
-
}
|
|
1385
|
-
}, "de_AssociateDelegateToResourceCommandError");
|
|
1386
1352
|
var de_AssociateMemberToGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1387
1353
|
if (output.statusCode >= 300) {
|
|
1388
|
-
return
|
|
1354
|
+
return de_CommandError(output, context);
|
|
1389
1355
|
}
|
|
1390
1356
|
const data = await parseBody(output.body, context);
|
|
1391
1357
|
let contents = {};
|
|
@@ -1396,49 +1362,9 @@ var de_AssociateMemberToGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1396
1362
|
};
|
|
1397
1363
|
return response;
|
|
1398
1364
|
}, "de_AssociateMemberToGroupCommand");
|
|
1399
|
-
var de_AssociateMemberToGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1400
|
-
const parsedOutput = {
|
|
1401
|
-
...output,
|
|
1402
|
-
body: await parseErrorBody(output.body, context)
|
|
1403
|
-
};
|
|
1404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
|
-
switch (errorCode) {
|
|
1406
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
1407
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
1408
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "DirectoryUnavailableException":
|
|
1410
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1411
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "EntityNotFoundException":
|
|
1413
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1414
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "EntityStateException":
|
|
1416
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1417
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "InvalidParameterException":
|
|
1419
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1420
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "OrganizationNotFoundException":
|
|
1422
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1423
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "OrganizationStateException":
|
|
1425
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1426
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "UnsupportedOperationException":
|
|
1428
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1429
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody,
|
|
1435
|
-
errorCode
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
}, "de_AssociateMemberToGroupCommandError");
|
|
1439
1365
|
var de_AssumeImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1440
1366
|
if (output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
1367
|
+
return de_CommandError(output, context);
|
|
1442
1368
|
}
|
|
1443
1369
|
const data = await parseBody(output.body, context);
|
|
1444
1370
|
let contents = {};
|
|
@@ -1449,37 +1375,9 @@ var de_AssumeImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1449
1375
|
};
|
|
1450
1376
|
return response;
|
|
1451
1377
|
}, "de_AssumeImpersonationRoleCommand");
|
|
1452
|
-
var de_AssumeImpersonationRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context)
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "InvalidParameterException":
|
|
1460
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1461
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "OrganizationNotFoundException":
|
|
1463
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1464
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "OrganizationStateException":
|
|
1466
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1467
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "ResourceNotFoundException":
|
|
1469
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
1470
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1471
|
-
default:
|
|
1472
|
-
const parsedBody = parsedOutput.body;
|
|
1473
|
-
return throwDefaultError({
|
|
1474
|
-
output,
|
|
1475
|
-
parsedBody,
|
|
1476
|
-
errorCode
|
|
1477
|
-
});
|
|
1478
|
-
}
|
|
1479
|
-
}, "de_AssumeImpersonationRoleCommandError");
|
|
1480
1378
|
var de_CancelMailboxExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1481
1379
|
if (output.statusCode >= 300) {
|
|
1482
|
-
return
|
|
1380
|
+
return de_CommandError(output, context);
|
|
1483
1381
|
}
|
|
1484
1382
|
const data = await parseBody(output.body, context);
|
|
1485
1383
|
let contents = {};
|
|
@@ -1490,37 +1388,9 @@ var de_CancelMailboxExportJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1490
1388
|
};
|
|
1491
1389
|
return response;
|
|
1492
1390
|
}, "de_CancelMailboxExportJobCommand");
|
|
1493
|
-
var de_CancelMailboxExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1494
|
-
const parsedOutput = {
|
|
1495
|
-
...output,
|
|
1496
|
-
body: await parseErrorBody(output.body, context)
|
|
1497
|
-
};
|
|
1498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1499
|
-
switch (errorCode) {
|
|
1500
|
-
case "EntityNotFoundException":
|
|
1501
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1502
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "InvalidParameterException":
|
|
1504
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1505
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1506
|
-
case "OrganizationNotFoundException":
|
|
1507
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1508
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "OrganizationStateException":
|
|
1510
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1511
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1512
|
-
default:
|
|
1513
|
-
const parsedBody = parsedOutput.body;
|
|
1514
|
-
return throwDefaultError({
|
|
1515
|
-
output,
|
|
1516
|
-
parsedBody,
|
|
1517
|
-
errorCode
|
|
1518
|
-
});
|
|
1519
|
-
}
|
|
1520
|
-
}, "de_CancelMailboxExportJobCommandError");
|
|
1521
1391
|
var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1522
1392
|
if (output.statusCode >= 300) {
|
|
1523
|
-
return
|
|
1393
|
+
return de_CommandError(output, context);
|
|
1524
1394
|
}
|
|
1525
1395
|
const data = await parseBody(output.body, context);
|
|
1526
1396
|
let contents = {};
|
|
@@ -1531,52 +1401,9 @@ var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1531
1401
|
};
|
|
1532
1402
|
return response;
|
|
1533
1403
|
}, "de_CreateAliasCommand");
|
|
1534
|
-
var de_CreateAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1535
|
-
const parsedOutput = {
|
|
1536
|
-
...output,
|
|
1537
|
-
body: await parseErrorBody(output.body, context)
|
|
1538
|
-
};
|
|
1539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
|
-
switch (errorCode) {
|
|
1541
|
-
case "EmailAddressInUseException":
|
|
1542
|
-
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
1543
|
-
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "EntityNotFoundException":
|
|
1545
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1546
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "EntityStateException":
|
|
1548
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1549
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "InvalidParameterException":
|
|
1551
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1552
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "LimitExceededException":
|
|
1554
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
1555
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "MailDomainNotFoundException":
|
|
1557
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
1558
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "MailDomainStateException":
|
|
1560
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
1561
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "OrganizationNotFoundException":
|
|
1563
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1564
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "OrganizationStateException":
|
|
1566
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1567
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1568
|
-
default:
|
|
1569
|
-
const parsedBody = parsedOutput.body;
|
|
1570
|
-
return throwDefaultError({
|
|
1571
|
-
output,
|
|
1572
|
-
parsedBody,
|
|
1573
|
-
errorCode
|
|
1574
|
-
});
|
|
1575
|
-
}
|
|
1576
|
-
}, "de_CreateAliasCommandError");
|
|
1577
1404
|
var de_CreateAvailabilityConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1578
1405
|
if (output.statusCode >= 300) {
|
|
1579
|
-
return
|
|
1406
|
+
return de_CommandError(output, context);
|
|
1580
1407
|
}
|
|
1581
1408
|
const data = await parseBody(output.body, context);
|
|
1582
1409
|
let contents = {};
|
|
@@ -1587,40 +1414,9 @@ var de_CreateAvailabilityConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1587
1414
|
};
|
|
1588
1415
|
return response;
|
|
1589
1416
|
}, "de_CreateAvailabilityConfigurationCommand");
|
|
1590
|
-
var de_CreateAvailabilityConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1591
|
-
const parsedOutput = {
|
|
1592
|
-
...output,
|
|
1593
|
-
body: await parseErrorBody(output.body, context)
|
|
1594
|
-
};
|
|
1595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1596
|
-
switch (errorCode) {
|
|
1597
|
-
case "InvalidParameterException":
|
|
1598
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1599
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "LimitExceededException":
|
|
1601
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
1602
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "NameAvailabilityException":
|
|
1604
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
1605
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "OrganizationNotFoundException":
|
|
1607
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1608
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1609
|
-
case "OrganizationStateException":
|
|
1610
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1611
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1612
|
-
default:
|
|
1613
|
-
const parsedBody = parsedOutput.body;
|
|
1614
|
-
return throwDefaultError({
|
|
1615
|
-
output,
|
|
1616
|
-
parsedBody,
|
|
1617
|
-
errorCode
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
}, "de_CreateAvailabilityConfigurationCommandError");
|
|
1621
1417
|
var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1622
1418
|
if (output.statusCode >= 300) {
|
|
1623
|
-
return
|
|
1419
|
+
return de_CommandError(output, context);
|
|
1624
1420
|
}
|
|
1625
1421
|
const data = await parseBody(output.body, context);
|
|
1626
1422
|
let contents = {};
|
|
@@ -1631,49 +1427,9 @@ var de_CreateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1631
1427
|
};
|
|
1632
1428
|
return response;
|
|
1633
1429
|
}, "de_CreateGroupCommand");
|
|
1634
|
-
var de_CreateGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1635
|
-
const parsedOutput = {
|
|
1636
|
-
...output,
|
|
1637
|
-
body: await parseErrorBody(output.body, context)
|
|
1638
|
-
};
|
|
1639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
-
switch (errorCode) {
|
|
1641
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
1642
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
1643
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "DirectoryUnavailableException":
|
|
1645
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1646
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "InvalidParameterException":
|
|
1648
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1649
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "NameAvailabilityException":
|
|
1651
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
1652
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "OrganizationNotFoundException":
|
|
1654
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1655
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "OrganizationStateException":
|
|
1657
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1658
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ReservedNameException":
|
|
1660
|
-
case "com.amazonaws.workmail#ReservedNameException":
|
|
1661
|
-
throw await de_ReservedNameExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "UnsupportedOperationException":
|
|
1663
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1664
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1665
|
-
default:
|
|
1666
|
-
const parsedBody = parsedOutput.body;
|
|
1667
|
-
return throwDefaultError({
|
|
1668
|
-
output,
|
|
1669
|
-
parsedBody,
|
|
1670
|
-
errorCode
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
}, "de_CreateGroupCommandError");
|
|
1674
1430
|
var de_CreateImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1675
1431
|
if (output.statusCode >= 300) {
|
|
1676
|
-
return
|
|
1432
|
+
return de_CommandError(output, context);
|
|
1677
1433
|
}
|
|
1678
1434
|
const data = await parseBody(output.body, context);
|
|
1679
1435
|
let contents = {};
|
|
@@ -1684,84 +1440,22 @@ var de_CreateImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1684
1440
|
};
|
|
1685
1441
|
return response;
|
|
1686
1442
|
}, "de_CreateImpersonationRoleCommand");
|
|
1687
|
-
var
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
case "EntityStateException":
|
|
1698
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1699
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1700
|
-
case "InvalidParameterException":
|
|
1701
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1702
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "LimitExceededException":
|
|
1704
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
1705
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "OrganizationNotFoundException":
|
|
1707
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1708
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "OrganizationStateException":
|
|
1710
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1711
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1712
|
-
default:
|
|
1713
|
-
const parsedBody = parsedOutput.body;
|
|
1714
|
-
return throwDefaultError({
|
|
1715
|
-
output,
|
|
1716
|
-
parsedBody,
|
|
1717
|
-
errorCode
|
|
1718
|
-
});
|
|
1719
|
-
}
|
|
1720
|
-
}, "de_CreateImpersonationRoleCommandError");
|
|
1721
|
-
var de_CreateMobileDeviceAccessRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1722
|
-
if (output.statusCode >= 300) {
|
|
1723
|
-
return de_CreateMobileDeviceAccessRuleCommandError(output, context);
|
|
1724
|
-
}
|
|
1725
|
-
const data = await parseBody(output.body, context);
|
|
1726
|
-
let contents = {};
|
|
1727
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1728
|
-
const response = {
|
|
1729
|
-
$metadata: deserializeMetadata(output),
|
|
1730
|
-
...contents
|
|
1443
|
+
var de_CreateMobileDeviceAccessRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1444
|
+
if (output.statusCode >= 300) {
|
|
1445
|
+
return de_CommandError(output, context);
|
|
1446
|
+
}
|
|
1447
|
+
const data = await parseBody(output.body, context);
|
|
1448
|
+
let contents = {};
|
|
1449
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1450
|
+
const response = {
|
|
1451
|
+
$metadata: deserializeMetadata(output),
|
|
1452
|
+
...contents
|
|
1731
1453
|
};
|
|
1732
1454
|
return response;
|
|
1733
1455
|
}, "de_CreateMobileDeviceAccessRuleCommand");
|
|
1734
|
-
var de_CreateMobileDeviceAccessRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1735
|
-
const parsedOutput = {
|
|
1736
|
-
...output,
|
|
1737
|
-
body: await parseErrorBody(output.body, context)
|
|
1738
|
-
};
|
|
1739
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1740
|
-
switch (errorCode) {
|
|
1741
|
-
case "InvalidParameterException":
|
|
1742
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1743
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1744
|
-
case "LimitExceededException":
|
|
1745
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
1746
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "OrganizationNotFoundException":
|
|
1748
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1749
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "OrganizationStateException":
|
|
1751
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1752
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1753
|
-
default:
|
|
1754
|
-
const parsedBody = parsedOutput.body;
|
|
1755
|
-
return throwDefaultError({
|
|
1756
|
-
output,
|
|
1757
|
-
parsedBody,
|
|
1758
|
-
errorCode
|
|
1759
|
-
});
|
|
1760
|
-
}
|
|
1761
|
-
}, "de_CreateMobileDeviceAccessRuleCommandError");
|
|
1762
1456
|
var de_CreateOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1763
1457
|
if (output.statusCode >= 300) {
|
|
1764
|
-
return
|
|
1458
|
+
return de_CommandError(output, context);
|
|
1765
1459
|
}
|
|
1766
1460
|
const data = await parseBody(output.body, context);
|
|
1767
1461
|
let contents = {};
|
|
@@ -1772,40 +1466,9 @@ var de_CreateOrganizationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1772
1466
|
};
|
|
1773
1467
|
return response;
|
|
1774
1468
|
}, "de_CreateOrganizationCommand");
|
|
1775
|
-
var de_CreateOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1776
|
-
const parsedOutput = {
|
|
1777
|
-
...output,
|
|
1778
|
-
body: await parseErrorBody(output.body, context)
|
|
1779
|
-
};
|
|
1780
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1781
|
-
switch (errorCode) {
|
|
1782
|
-
case "DirectoryInUseException":
|
|
1783
|
-
case "com.amazonaws.workmail#DirectoryInUseException":
|
|
1784
|
-
throw await de_DirectoryInUseExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "DirectoryUnavailableException":
|
|
1786
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1787
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1788
|
-
case "InvalidParameterException":
|
|
1789
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1790
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1791
|
-
case "LimitExceededException":
|
|
1792
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
1793
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "NameAvailabilityException":
|
|
1795
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
1796
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
1797
|
-
default:
|
|
1798
|
-
const parsedBody = parsedOutput.body;
|
|
1799
|
-
return throwDefaultError({
|
|
1800
|
-
output,
|
|
1801
|
-
parsedBody,
|
|
1802
|
-
errorCode
|
|
1803
|
-
});
|
|
1804
|
-
}
|
|
1805
|
-
}, "de_CreateOrganizationCommandError");
|
|
1806
1469
|
var de_CreateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1807
1470
|
if (output.statusCode >= 300) {
|
|
1808
|
-
return
|
|
1471
|
+
return de_CommandError(output, context);
|
|
1809
1472
|
}
|
|
1810
1473
|
const data = await parseBody(output.body, context);
|
|
1811
1474
|
let contents = {};
|
|
@@ -1816,49 +1479,9 @@ var de_CreateResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1816
1479
|
};
|
|
1817
1480
|
return response;
|
|
1818
1481
|
}, "de_CreateResourceCommand");
|
|
1819
|
-
var de_CreateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1820
|
-
const parsedOutput = {
|
|
1821
|
-
...output,
|
|
1822
|
-
body: await parseErrorBody(output.body, context)
|
|
1823
|
-
};
|
|
1824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
|
-
switch (errorCode) {
|
|
1826
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
1827
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
1828
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "DirectoryUnavailableException":
|
|
1830
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1831
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "InvalidParameterException":
|
|
1833
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1834
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "NameAvailabilityException":
|
|
1836
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
1837
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "OrganizationNotFoundException":
|
|
1839
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1840
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "OrganizationStateException":
|
|
1842
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1843
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "ReservedNameException":
|
|
1845
|
-
case "com.amazonaws.workmail#ReservedNameException":
|
|
1846
|
-
throw await de_ReservedNameExceptionRes(parsedOutput, context);
|
|
1847
|
-
case "UnsupportedOperationException":
|
|
1848
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1849
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1850
|
-
default:
|
|
1851
|
-
const parsedBody = parsedOutput.body;
|
|
1852
|
-
return throwDefaultError({
|
|
1853
|
-
output,
|
|
1854
|
-
parsedBody,
|
|
1855
|
-
errorCode
|
|
1856
|
-
});
|
|
1857
|
-
}
|
|
1858
|
-
}, "de_CreateResourceCommandError");
|
|
1859
1482
|
var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1860
1483
|
if (output.statusCode >= 300) {
|
|
1861
|
-
return
|
|
1484
|
+
return de_CommandError(output, context);
|
|
1862
1485
|
}
|
|
1863
1486
|
const data = await parseBody(output.body, context);
|
|
1864
1487
|
let contents = {};
|
|
@@ -1869,52 +1492,9 @@ var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1869
1492
|
};
|
|
1870
1493
|
return response;
|
|
1871
1494
|
}, "de_CreateUserCommand");
|
|
1872
|
-
var de_CreateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1873
|
-
const parsedOutput = {
|
|
1874
|
-
...output,
|
|
1875
|
-
body: await parseErrorBody(output.body, context)
|
|
1876
|
-
};
|
|
1877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
|
-
switch (errorCode) {
|
|
1879
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
1880
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
1881
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "DirectoryUnavailableException":
|
|
1883
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
1884
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "InvalidParameterException":
|
|
1886
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1887
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "InvalidPasswordException":
|
|
1889
|
-
case "com.amazonaws.workmail#InvalidPasswordException":
|
|
1890
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "NameAvailabilityException":
|
|
1892
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
1893
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "OrganizationNotFoundException":
|
|
1895
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1896
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "OrganizationStateException":
|
|
1898
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1899
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ReservedNameException":
|
|
1901
|
-
case "com.amazonaws.workmail#ReservedNameException":
|
|
1902
|
-
throw await de_ReservedNameExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "UnsupportedOperationException":
|
|
1904
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
1905
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1906
|
-
default:
|
|
1907
|
-
const parsedBody = parsedOutput.body;
|
|
1908
|
-
return throwDefaultError({
|
|
1909
|
-
output,
|
|
1910
|
-
parsedBody,
|
|
1911
|
-
errorCode
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
|
-
}, "de_CreateUserCommandError");
|
|
1915
1495
|
var de_DeleteAccessControlRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1916
1496
|
if (output.statusCode >= 300) {
|
|
1917
|
-
return
|
|
1497
|
+
return de_CommandError(output, context);
|
|
1918
1498
|
}
|
|
1919
1499
|
const data = await parseBody(output.body, context);
|
|
1920
1500
|
let contents = {};
|
|
@@ -1925,31 +1505,9 @@ var de_DeleteAccessControlRuleCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1925
1505
|
};
|
|
1926
1506
|
return response;
|
|
1927
1507
|
}, "de_DeleteAccessControlRuleCommand");
|
|
1928
|
-
var de_DeleteAccessControlRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1929
|
-
const parsedOutput = {
|
|
1930
|
-
...output,
|
|
1931
|
-
body: await parseErrorBody(output.body, context)
|
|
1932
|
-
};
|
|
1933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1934
|
-
switch (errorCode) {
|
|
1935
|
-
case "OrganizationNotFoundException":
|
|
1936
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1937
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1938
|
-
case "OrganizationStateException":
|
|
1939
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1940
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1941
|
-
default:
|
|
1942
|
-
const parsedBody = parsedOutput.body;
|
|
1943
|
-
return throwDefaultError({
|
|
1944
|
-
output,
|
|
1945
|
-
parsedBody,
|
|
1946
|
-
errorCode
|
|
1947
|
-
});
|
|
1948
|
-
}
|
|
1949
|
-
}, "de_DeleteAccessControlRuleCommandError");
|
|
1950
1508
|
var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1951
1509
|
if (output.statusCode >= 300) {
|
|
1952
|
-
return
|
|
1510
|
+
return de_CommandError(output, context);
|
|
1953
1511
|
}
|
|
1954
1512
|
const data = await parseBody(output.body, context);
|
|
1955
1513
|
let contents = {};
|
|
@@ -1960,40 +1518,9 @@ var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1960
1518
|
};
|
|
1961
1519
|
return response;
|
|
1962
1520
|
}, "de_DeleteAliasCommand");
|
|
1963
|
-
var de_DeleteAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1964
|
-
const parsedOutput = {
|
|
1965
|
-
...output,
|
|
1966
|
-
body: await parseErrorBody(output.body, context)
|
|
1967
|
-
};
|
|
1968
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1969
|
-
switch (errorCode) {
|
|
1970
|
-
case "EntityNotFoundException":
|
|
1971
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
1972
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "EntityStateException":
|
|
1974
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
1975
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "InvalidParameterException":
|
|
1977
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
1978
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1979
|
-
case "OrganizationNotFoundException":
|
|
1980
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
1981
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
1982
|
-
case "OrganizationStateException":
|
|
1983
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
1984
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
1985
|
-
default:
|
|
1986
|
-
const parsedBody = parsedOutput.body;
|
|
1987
|
-
return throwDefaultError({
|
|
1988
|
-
output,
|
|
1989
|
-
parsedBody,
|
|
1990
|
-
errorCode
|
|
1991
|
-
});
|
|
1992
|
-
}
|
|
1993
|
-
}, "de_DeleteAliasCommandError");
|
|
1994
1521
|
var de_DeleteAvailabilityConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1995
1522
|
if (output.statusCode >= 300) {
|
|
1996
|
-
return
|
|
1523
|
+
return de_CommandError(output, context);
|
|
1997
1524
|
}
|
|
1998
1525
|
const data = await parseBody(output.body, context);
|
|
1999
1526
|
let contents = {};
|
|
@@ -2004,31 +1531,9 @@ var de_DeleteAvailabilityConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2004
1531
|
};
|
|
2005
1532
|
return response;
|
|
2006
1533
|
}, "de_DeleteAvailabilityConfigurationCommand");
|
|
2007
|
-
var de_DeleteAvailabilityConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2008
|
-
const parsedOutput = {
|
|
2009
|
-
...output,
|
|
2010
|
-
body: await parseErrorBody(output.body, context)
|
|
2011
|
-
};
|
|
2012
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
|
-
switch (errorCode) {
|
|
2014
|
-
case "OrganizationNotFoundException":
|
|
2015
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2016
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "OrganizationStateException":
|
|
2018
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2019
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2020
|
-
default:
|
|
2021
|
-
const parsedBody = parsedOutput.body;
|
|
2022
|
-
return throwDefaultError({
|
|
2023
|
-
output,
|
|
2024
|
-
parsedBody,
|
|
2025
|
-
errorCode
|
|
2026
|
-
});
|
|
2027
|
-
}
|
|
2028
|
-
}, "de_DeleteAvailabilityConfigurationCommandError");
|
|
2029
1534
|
var de_DeleteEmailMonitoringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2030
1535
|
if (output.statusCode >= 300) {
|
|
2031
|
-
return
|
|
1536
|
+
return de_CommandError(output, context);
|
|
2032
1537
|
}
|
|
2033
1538
|
const data = await parseBody(output.body, context);
|
|
2034
1539
|
let contents = {};
|
|
@@ -2039,34 +1544,9 @@ var de_DeleteEmailMonitoringConfigurationCommand = /* @__PURE__ */ __name(async
|
|
|
2039
1544
|
};
|
|
2040
1545
|
return response;
|
|
2041
1546
|
}, "de_DeleteEmailMonitoringConfigurationCommand");
|
|
2042
|
-
var de_DeleteEmailMonitoringConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2043
|
-
const parsedOutput = {
|
|
2044
|
-
...output,
|
|
2045
|
-
body: await parseErrorBody(output.body, context)
|
|
2046
|
-
};
|
|
2047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
|
-
switch (errorCode) {
|
|
2049
|
-
case "InvalidParameterException":
|
|
2050
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2051
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "OrganizationNotFoundException":
|
|
2053
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2054
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "OrganizationStateException":
|
|
2056
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2057
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2058
|
-
default:
|
|
2059
|
-
const parsedBody = parsedOutput.body;
|
|
2060
|
-
return throwDefaultError({
|
|
2061
|
-
output,
|
|
2062
|
-
parsedBody,
|
|
2063
|
-
errorCode
|
|
2064
|
-
});
|
|
2065
|
-
}
|
|
2066
|
-
}, "de_DeleteEmailMonitoringConfigurationCommandError");
|
|
2067
1547
|
var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2068
1548
|
if (output.statusCode >= 300) {
|
|
2069
|
-
return
|
|
1549
|
+
return de_CommandError(output, context);
|
|
2070
1550
|
}
|
|
2071
1551
|
const data = await parseBody(output.body, context);
|
|
2072
1552
|
let contents = {};
|
|
@@ -2077,46 +1557,9 @@ var de_DeleteGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2077
1557
|
};
|
|
2078
1558
|
return response;
|
|
2079
1559
|
}, "de_DeleteGroupCommand");
|
|
2080
|
-
var de_DeleteGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2081
|
-
const parsedOutput = {
|
|
2082
|
-
...output,
|
|
2083
|
-
body: await parseErrorBody(output.body, context)
|
|
2084
|
-
};
|
|
2085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2086
|
-
switch (errorCode) {
|
|
2087
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
2088
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
2089
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "DirectoryUnavailableException":
|
|
2091
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
2092
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "EntityStateException":
|
|
2094
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2095
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "InvalidParameterException":
|
|
2097
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2098
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "OrganizationNotFoundException":
|
|
2100
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2101
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "OrganizationStateException":
|
|
2103
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2104
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "UnsupportedOperationException":
|
|
2106
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
2107
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2108
|
-
default:
|
|
2109
|
-
const parsedBody = parsedOutput.body;
|
|
2110
|
-
return throwDefaultError({
|
|
2111
|
-
output,
|
|
2112
|
-
parsedBody,
|
|
2113
|
-
errorCode
|
|
2114
|
-
});
|
|
2115
|
-
}
|
|
2116
|
-
}, "de_DeleteGroupCommandError");
|
|
2117
1560
|
var de_DeleteImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2118
1561
|
if (output.statusCode >= 300) {
|
|
2119
|
-
return
|
|
1562
|
+
return de_CommandError(output, context);
|
|
2120
1563
|
}
|
|
2121
1564
|
const data = await parseBody(output.body, context);
|
|
2122
1565
|
let contents = {};
|
|
@@ -2127,34 +1570,9 @@ var de_DeleteImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2127
1570
|
};
|
|
2128
1571
|
return response;
|
|
2129
1572
|
}, "de_DeleteImpersonationRoleCommand");
|
|
2130
|
-
var de_DeleteImpersonationRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2131
|
-
const parsedOutput = {
|
|
2132
|
-
...output,
|
|
2133
|
-
body: await parseErrorBody(output.body, context)
|
|
2134
|
-
};
|
|
2135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
-
switch (errorCode) {
|
|
2137
|
-
case "InvalidParameterException":
|
|
2138
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2139
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "OrganizationNotFoundException":
|
|
2141
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2142
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "OrganizationStateException":
|
|
2144
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2145
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2146
|
-
default:
|
|
2147
|
-
const parsedBody = parsedOutput.body;
|
|
2148
|
-
return throwDefaultError({
|
|
2149
|
-
output,
|
|
2150
|
-
parsedBody,
|
|
2151
|
-
errorCode
|
|
2152
|
-
});
|
|
2153
|
-
}
|
|
2154
|
-
}, "de_DeleteImpersonationRoleCommandError");
|
|
2155
1573
|
var de_DeleteMailboxPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2156
1574
|
if (output.statusCode >= 300) {
|
|
2157
|
-
return
|
|
1575
|
+
return de_CommandError(output, context);
|
|
2158
1576
|
}
|
|
2159
1577
|
const data = await parseBody(output.body, context);
|
|
2160
1578
|
let contents = {};
|
|
@@ -2165,40 +1583,9 @@ var de_DeleteMailboxPermissionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2165
1583
|
};
|
|
2166
1584
|
return response;
|
|
2167
1585
|
}, "de_DeleteMailboxPermissionsCommand");
|
|
2168
|
-
var de_DeleteMailboxPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2169
|
-
const parsedOutput = {
|
|
2170
|
-
...output,
|
|
2171
|
-
body: await parseErrorBody(output.body, context)
|
|
2172
|
-
};
|
|
2173
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2174
|
-
switch (errorCode) {
|
|
2175
|
-
case "EntityNotFoundException":
|
|
2176
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2177
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2178
|
-
case "EntityStateException":
|
|
2179
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2180
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2181
|
-
case "InvalidParameterException":
|
|
2182
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2183
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2184
|
-
case "OrganizationNotFoundException":
|
|
2185
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2186
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "OrganizationStateException":
|
|
2188
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2189
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2190
|
-
default:
|
|
2191
|
-
const parsedBody = parsedOutput.body;
|
|
2192
|
-
return throwDefaultError({
|
|
2193
|
-
output,
|
|
2194
|
-
parsedBody,
|
|
2195
|
-
errorCode
|
|
2196
|
-
});
|
|
2197
|
-
}
|
|
2198
|
-
}, "de_DeleteMailboxPermissionsCommandError");
|
|
2199
1586
|
var de_DeleteMobileDeviceAccessOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2200
1587
|
if (output.statusCode >= 300) {
|
|
2201
|
-
return
|
|
1588
|
+
return de_CommandError(output, context);
|
|
2202
1589
|
}
|
|
2203
1590
|
const data = await parseBody(output.body, context);
|
|
2204
1591
|
let contents = {};
|
|
@@ -2209,37 +1596,9 @@ var de_DeleteMobileDeviceAccessOverrideCommand = /* @__PURE__ */ __name(async (o
|
|
|
2209
1596
|
};
|
|
2210
1597
|
return response;
|
|
2211
1598
|
}, "de_DeleteMobileDeviceAccessOverrideCommand");
|
|
2212
|
-
var de_DeleteMobileDeviceAccessOverrideCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2213
|
-
const parsedOutput = {
|
|
2214
|
-
...output,
|
|
2215
|
-
body: await parseErrorBody(output.body, context)
|
|
2216
|
-
};
|
|
2217
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2218
|
-
switch (errorCode) {
|
|
2219
|
-
case "EntityNotFoundException":
|
|
2220
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2221
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2222
|
-
case "InvalidParameterException":
|
|
2223
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2224
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "OrganizationNotFoundException":
|
|
2226
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2227
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "OrganizationStateException":
|
|
2229
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2230
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2231
|
-
default:
|
|
2232
|
-
const parsedBody = parsedOutput.body;
|
|
2233
|
-
return throwDefaultError({
|
|
2234
|
-
output,
|
|
2235
|
-
parsedBody,
|
|
2236
|
-
errorCode
|
|
2237
|
-
});
|
|
2238
|
-
}
|
|
2239
|
-
}, "de_DeleteMobileDeviceAccessOverrideCommandError");
|
|
2240
1599
|
var de_DeleteMobileDeviceAccessRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2241
1600
|
if (output.statusCode >= 300) {
|
|
2242
|
-
return
|
|
1601
|
+
return de_CommandError(output, context);
|
|
2243
1602
|
}
|
|
2244
1603
|
const data = await parseBody(output.body, context);
|
|
2245
1604
|
let contents = {};
|
|
@@ -2250,34 +1609,9 @@ var de_DeleteMobileDeviceAccessRuleCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2250
1609
|
};
|
|
2251
1610
|
return response;
|
|
2252
1611
|
}, "de_DeleteMobileDeviceAccessRuleCommand");
|
|
2253
|
-
var de_DeleteMobileDeviceAccessRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2254
|
-
const parsedOutput = {
|
|
2255
|
-
...output,
|
|
2256
|
-
body: await parseErrorBody(output.body, context)
|
|
2257
|
-
};
|
|
2258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
|
-
switch (errorCode) {
|
|
2260
|
-
case "InvalidParameterException":
|
|
2261
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2262
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "OrganizationNotFoundException":
|
|
2264
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2265
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "OrganizationStateException":
|
|
2267
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2268
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2269
|
-
default:
|
|
2270
|
-
const parsedBody = parsedOutput.body;
|
|
2271
|
-
return throwDefaultError({
|
|
2272
|
-
output,
|
|
2273
|
-
parsedBody,
|
|
2274
|
-
errorCode
|
|
2275
|
-
});
|
|
2276
|
-
}
|
|
2277
|
-
}, "de_DeleteMobileDeviceAccessRuleCommandError");
|
|
2278
1612
|
var de_DeleteOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2279
1613
|
if (output.statusCode >= 300) {
|
|
2280
|
-
return
|
|
1614
|
+
return de_CommandError(output, context);
|
|
2281
1615
|
}
|
|
2282
1616
|
const data = await parseBody(output.body, context);
|
|
2283
1617
|
let contents = {};
|
|
@@ -2288,34 +1622,9 @@ var de_DeleteOrganizationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2288
1622
|
};
|
|
2289
1623
|
return response;
|
|
2290
1624
|
}, "de_DeleteOrganizationCommand");
|
|
2291
|
-
var de_DeleteOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2292
|
-
const parsedOutput = {
|
|
2293
|
-
...output,
|
|
2294
|
-
body: await parseErrorBody(output.body, context)
|
|
2295
|
-
};
|
|
2296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2297
|
-
switch (errorCode) {
|
|
2298
|
-
case "InvalidParameterException":
|
|
2299
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2300
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "OrganizationNotFoundException":
|
|
2302
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2303
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "OrganizationStateException":
|
|
2305
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2306
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2307
|
-
default:
|
|
2308
|
-
const parsedBody = parsedOutput.body;
|
|
2309
|
-
return throwDefaultError({
|
|
2310
|
-
output,
|
|
2311
|
-
parsedBody,
|
|
2312
|
-
errorCode
|
|
2313
|
-
});
|
|
2314
|
-
}
|
|
2315
|
-
}, "de_DeleteOrganizationCommandError");
|
|
2316
1625
|
var de_DeleteResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2317
1626
|
if (output.statusCode >= 300) {
|
|
2318
|
-
return
|
|
1627
|
+
return de_CommandError(output, context);
|
|
2319
1628
|
}
|
|
2320
1629
|
const data = await parseBody(output.body, context);
|
|
2321
1630
|
let contents = {};
|
|
@@ -2326,40 +1635,9 @@ var de_DeleteResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2326
1635
|
};
|
|
2327
1636
|
return response;
|
|
2328
1637
|
}, "de_DeleteResourceCommand");
|
|
2329
|
-
var de_DeleteResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2330
|
-
const parsedOutput = {
|
|
2331
|
-
...output,
|
|
2332
|
-
body: await parseErrorBody(output.body, context)
|
|
2333
|
-
};
|
|
2334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2335
|
-
switch (errorCode) {
|
|
2336
|
-
case "EntityStateException":
|
|
2337
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2338
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "InvalidParameterException":
|
|
2340
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2341
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "OrganizationNotFoundException":
|
|
2343
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2344
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "OrganizationStateException":
|
|
2346
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2347
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "UnsupportedOperationException":
|
|
2349
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
2350
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2351
|
-
default:
|
|
2352
|
-
const parsedBody = parsedOutput.body;
|
|
2353
|
-
return throwDefaultError({
|
|
2354
|
-
output,
|
|
2355
|
-
parsedBody,
|
|
2356
|
-
errorCode
|
|
2357
|
-
});
|
|
2358
|
-
}
|
|
2359
|
-
}, "de_DeleteResourceCommandError");
|
|
2360
1638
|
var de_DeleteRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2361
1639
|
if (output.statusCode >= 300) {
|
|
2362
|
-
return
|
|
1640
|
+
return de_CommandError(output, context);
|
|
2363
1641
|
}
|
|
2364
1642
|
const data = await parseBody(output.body, context);
|
|
2365
1643
|
let contents = {};
|
|
@@ -2370,34 +1648,9 @@ var de_DeleteRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2370
1648
|
};
|
|
2371
1649
|
return response;
|
|
2372
1650
|
}, "de_DeleteRetentionPolicyCommand");
|
|
2373
|
-
var de_DeleteRetentionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2374
|
-
const parsedOutput = {
|
|
2375
|
-
...output,
|
|
2376
|
-
body: await parseErrorBody(output.body, context)
|
|
2377
|
-
};
|
|
2378
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2379
|
-
switch (errorCode) {
|
|
2380
|
-
case "InvalidParameterException":
|
|
2381
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2382
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2383
|
-
case "OrganizationNotFoundException":
|
|
2384
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2385
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2386
|
-
case "OrganizationStateException":
|
|
2387
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2388
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2389
|
-
default:
|
|
2390
|
-
const parsedBody = parsedOutput.body;
|
|
2391
|
-
return throwDefaultError({
|
|
2392
|
-
output,
|
|
2393
|
-
parsedBody,
|
|
2394
|
-
errorCode
|
|
2395
|
-
});
|
|
2396
|
-
}
|
|
2397
|
-
}, "de_DeleteRetentionPolicyCommandError");
|
|
2398
1651
|
var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2399
1652
|
if (output.statusCode >= 300) {
|
|
2400
|
-
return
|
|
1653
|
+
return de_CommandError(output, context);
|
|
2401
1654
|
}
|
|
2402
1655
|
const data = await parseBody(output.body, context);
|
|
2403
1656
|
let contents = {};
|
|
@@ -2408,46 +1661,9 @@ var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2408
1661
|
};
|
|
2409
1662
|
return response;
|
|
2410
1663
|
}, "de_DeleteUserCommand");
|
|
2411
|
-
var de_DeleteUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2412
|
-
const parsedOutput = {
|
|
2413
|
-
...output,
|
|
2414
|
-
body: await parseErrorBody(output.body, context)
|
|
2415
|
-
};
|
|
2416
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2417
|
-
switch (errorCode) {
|
|
2418
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
2419
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
2420
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "DirectoryUnavailableException":
|
|
2422
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
2423
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "EntityStateException":
|
|
2425
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2426
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "InvalidParameterException":
|
|
2428
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2429
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "OrganizationNotFoundException":
|
|
2431
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2432
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "OrganizationStateException":
|
|
2434
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2435
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "UnsupportedOperationException":
|
|
2437
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
2438
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2439
|
-
default:
|
|
2440
|
-
const parsedBody = parsedOutput.body;
|
|
2441
|
-
return throwDefaultError({
|
|
2442
|
-
output,
|
|
2443
|
-
parsedBody,
|
|
2444
|
-
errorCode
|
|
2445
|
-
});
|
|
2446
|
-
}
|
|
2447
|
-
}, "de_DeleteUserCommandError");
|
|
2448
1664
|
var de_DeregisterFromWorkMailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2449
1665
|
if (output.statusCode >= 300) {
|
|
2450
|
-
return
|
|
1666
|
+
return de_CommandError(output, context);
|
|
2451
1667
|
}
|
|
2452
1668
|
const data = await parseBody(output.body, context);
|
|
2453
1669
|
let contents = {};
|
|
@@ -2458,84 +1674,22 @@ var de_DeregisterFromWorkMailCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2458
1674
|
};
|
|
2459
1675
|
return response;
|
|
2460
1676
|
}, "de_DeregisterFromWorkMailCommand");
|
|
2461
|
-
var
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
case "EntityStateException":
|
|
2472
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2473
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "InvalidParameterException":
|
|
2475
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2476
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "OrganizationNotFoundException":
|
|
2478
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2479
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "OrganizationStateException":
|
|
2481
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2482
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2483
|
-
default:
|
|
2484
|
-
const parsedBody = parsedOutput.body;
|
|
2485
|
-
return throwDefaultError({
|
|
2486
|
-
output,
|
|
2487
|
-
parsedBody,
|
|
2488
|
-
errorCode
|
|
2489
|
-
});
|
|
2490
|
-
}
|
|
2491
|
-
}, "de_DeregisterFromWorkMailCommandError");
|
|
2492
|
-
var de_DeregisterMailDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2493
|
-
if (output.statusCode >= 300) {
|
|
2494
|
-
return de_DeregisterMailDomainCommandError(output, context);
|
|
2495
|
-
}
|
|
2496
|
-
const data = await parseBody(output.body, context);
|
|
2497
|
-
let contents = {};
|
|
2498
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2499
|
-
const response = {
|
|
2500
|
-
$metadata: deserializeMetadata(output),
|
|
2501
|
-
...contents
|
|
1677
|
+
var de_DeregisterMailDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1678
|
+
if (output.statusCode >= 300) {
|
|
1679
|
+
return de_CommandError(output, context);
|
|
1680
|
+
}
|
|
1681
|
+
const data = await parseBody(output.body, context);
|
|
1682
|
+
let contents = {};
|
|
1683
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1684
|
+
const response = {
|
|
1685
|
+
$metadata: deserializeMetadata(output),
|
|
1686
|
+
...contents
|
|
2502
1687
|
};
|
|
2503
1688
|
return response;
|
|
2504
1689
|
}, "de_DeregisterMailDomainCommand");
|
|
2505
|
-
var de_DeregisterMailDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2506
|
-
const parsedOutput = {
|
|
2507
|
-
...output,
|
|
2508
|
-
body: await parseErrorBody(output.body, context)
|
|
2509
|
-
};
|
|
2510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2511
|
-
switch (errorCode) {
|
|
2512
|
-
case "InvalidCustomSesConfigurationException":
|
|
2513
|
-
case "com.amazonaws.workmail#InvalidCustomSesConfigurationException":
|
|
2514
|
-
throw await de_InvalidCustomSesConfigurationExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "InvalidParameterException":
|
|
2516
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2517
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "MailDomainInUseException":
|
|
2519
|
-
case "com.amazonaws.workmail#MailDomainInUseException":
|
|
2520
|
-
throw await de_MailDomainInUseExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "OrganizationNotFoundException":
|
|
2522
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2523
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2524
|
-
case "OrganizationStateException":
|
|
2525
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2526
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2527
|
-
default:
|
|
2528
|
-
const parsedBody = parsedOutput.body;
|
|
2529
|
-
return throwDefaultError({
|
|
2530
|
-
output,
|
|
2531
|
-
parsedBody,
|
|
2532
|
-
errorCode
|
|
2533
|
-
});
|
|
2534
|
-
}
|
|
2535
|
-
}, "de_DeregisterMailDomainCommandError");
|
|
2536
1690
|
var de_DescribeEmailMonitoringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2537
1691
|
if (output.statusCode >= 300) {
|
|
2538
|
-
return
|
|
1692
|
+
return de_CommandError(output, context);
|
|
2539
1693
|
}
|
|
2540
1694
|
const data = await parseBody(output.body, context);
|
|
2541
1695
|
let contents = {};
|
|
@@ -2546,37 +1700,9 @@ var de_DescribeEmailMonitoringConfigurationCommand = /* @__PURE__ */ __name(asyn
|
|
|
2546
1700
|
};
|
|
2547
1701
|
return response;
|
|
2548
1702
|
}, "de_DescribeEmailMonitoringConfigurationCommand");
|
|
2549
|
-
var de_DescribeEmailMonitoringConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2550
|
-
const parsedOutput = {
|
|
2551
|
-
...output,
|
|
2552
|
-
body: await parseErrorBody(output.body, context)
|
|
2553
|
-
};
|
|
2554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2555
|
-
switch (errorCode) {
|
|
2556
|
-
case "InvalidParameterException":
|
|
2557
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2558
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "OrganizationNotFoundException":
|
|
2560
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2561
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "OrganizationStateException":
|
|
2563
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2564
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "ResourceNotFoundException":
|
|
2566
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
2567
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2568
|
-
default:
|
|
2569
|
-
const parsedBody = parsedOutput.body;
|
|
2570
|
-
return throwDefaultError({
|
|
2571
|
-
output,
|
|
2572
|
-
parsedBody,
|
|
2573
|
-
errorCode
|
|
2574
|
-
});
|
|
2575
|
-
}
|
|
2576
|
-
}, "de_DescribeEmailMonitoringConfigurationCommandError");
|
|
2577
1703
|
var de_DescribeEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2578
1704
|
if (output.statusCode >= 300) {
|
|
2579
|
-
return
|
|
1705
|
+
return de_CommandError(output, context);
|
|
2580
1706
|
}
|
|
2581
1707
|
const data = await parseBody(output.body, context);
|
|
2582
1708
|
let contents = {};
|
|
@@ -2587,37 +1713,9 @@ var de_DescribeEntityCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2587
1713
|
};
|
|
2588
1714
|
return response;
|
|
2589
1715
|
}, "de_DescribeEntityCommand");
|
|
2590
|
-
var de_DescribeEntityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2591
|
-
const parsedOutput = {
|
|
2592
|
-
...output,
|
|
2593
|
-
body: await parseErrorBody(output.body, context)
|
|
2594
|
-
};
|
|
2595
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
|
-
switch (errorCode) {
|
|
2597
|
-
case "EntityNotFoundException":
|
|
2598
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2599
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2600
|
-
case "InvalidParameterException":
|
|
2601
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2602
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "OrganizationNotFoundException":
|
|
2604
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2605
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2606
|
-
case "OrganizationStateException":
|
|
2607
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2608
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2609
|
-
default:
|
|
2610
|
-
const parsedBody = parsedOutput.body;
|
|
2611
|
-
return throwDefaultError({
|
|
2612
|
-
output,
|
|
2613
|
-
parsedBody,
|
|
2614
|
-
errorCode
|
|
2615
|
-
});
|
|
2616
|
-
}
|
|
2617
|
-
}, "de_DescribeEntityCommandError");
|
|
2618
1716
|
var de_DescribeGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2619
1717
|
if (output.statusCode >= 300) {
|
|
2620
|
-
return
|
|
1718
|
+
return de_CommandError(output, context);
|
|
2621
1719
|
}
|
|
2622
1720
|
const data = await parseBody(output.body, context);
|
|
2623
1721
|
let contents = {};
|
|
@@ -2628,37 +1726,9 @@ var de_DescribeGroupCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2628
1726
|
};
|
|
2629
1727
|
return response;
|
|
2630
1728
|
}, "de_DescribeGroupCommand");
|
|
2631
|
-
var de_DescribeGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2632
|
-
const parsedOutput = {
|
|
2633
|
-
...output,
|
|
2634
|
-
body: await parseErrorBody(output.body, context)
|
|
2635
|
-
};
|
|
2636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2637
|
-
switch (errorCode) {
|
|
2638
|
-
case "EntityNotFoundException":
|
|
2639
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2640
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2641
|
-
case "InvalidParameterException":
|
|
2642
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2643
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2644
|
-
case "OrganizationNotFoundException":
|
|
2645
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2646
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2647
|
-
case "OrganizationStateException":
|
|
2648
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2649
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2650
|
-
default:
|
|
2651
|
-
const parsedBody = parsedOutput.body;
|
|
2652
|
-
return throwDefaultError({
|
|
2653
|
-
output,
|
|
2654
|
-
parsedBody,
|
|
2655
|
-
errorCode
|
|
2656
|
-
});
|
|
2657
|
-
}
|
|
2658
|
-
}, "de_DescribeGroupCommandError");
|
|
2659
1729
|
var de_DescribeInboundDmarcSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2660
1730
|
if (output.statusCode >= 300) {
|
|
2661
|
-
return
|
|
1731
|
+
return de_CommandError(output, context);
|
|
2662
1732
|
}
|
|
2663
1733
|
const data = await parseBody(output.body, context);
|
|
2664
1734
|
let contents = {};
|
|
@@ -2669,31 +1739,9 @@ var de_DescribeInboundDmarcSettingsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2669
1739
|
};
|
|
2670
1740
|
return response;
|
|
2671
1741
|
}, "de_DescribeInboundDmarcSettingsCommand");
|
|
2672
|
-
var de_DescribeInboundDmarcSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2673
|
-
const parsedOutput = {
|
|
2674
|
-
...output,
|
|
2675
|
-
body: await parseErrorBody(output.body, context)
|
|
2676
|
-
};
|
|
2677
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2678
|
-
switch (errorCode) {
|
|
2679
|
-
case "OrganizationNotFoundException":
|
|
2680
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2681
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2682
|
-
case "OrganizationStateException":
|
|
2683
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2684
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2685
|
-
default:
|
|
2686
|
-
const parsedBody = parsedOutput.body;
|
|
2687
|
-
return throwDefaultError({
|
|
2688
|
-
output,
|
|
2689
|
-
parsedBody,
|
|
2690
|
-
errorCode
|
|
2691
|
-
});
|
|
2692
|
-
}
|
|
2693
|
-
}, "de_DescribeInboundDmarcSettingsCommandError");
|
|
2694
1742
|
var de_DescribeMailboxExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2695
1743
|
if (output.statusCode >= 300) {
|
|
2696
|
-
return
|
|
1744
|
+
return de_CommandError(output, context);
|
|
2697
1745
|
}
|
|
2698
1746
|
const data = await parseBody(output.body, context);
|
|
2699
1747
|
let contents = {};
|
|
@@ -2704,37 +1752,9 @@ var de_DescribeMailboxExportJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2704
1752
|
};
|
|
2705
1753
|
return response;
|
|
2706
1754
|
}, "de_DescribeMailboxExportJobCommand");
|
|
2707
|
-
var de_DescribeMailboxExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2708
|
-
const parsedOutput = {
|
|
2709
|
-
...output,
|
|
2710
|
-
body: await parseErrorBody(output.body, context)
|
|
2711
|
-
};
|
|
2712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2713
|
-
switch (errorCode) {
|
|
2714
|
-
case "EntityNotFoundException":
|
|
2715
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2716
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2717
|
-
case "InvalidParameterException":
|
|
2718
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2719
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2720
|
-
case "OrganizationNotFoundException":
|
|
2721
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2722
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2723
|
-
case "OrganizationStateException":
|
|
2724
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2725
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2726
|
-
default:
|
|
2727
|
-
const parsedBody = parsedOutput.body;
|
|
2728
|
-
return throwDefaultError({
|
|
2729
|
-
output,
|
|
2730
|
-
parsedBody,
|
|
2731
|
-
errorCode
|
|
2732
|
-
});
|
|
2733
|
-
}
|
|
2734
|
-
}, "de_DescribeMailboxExportJobCommandError");
|
|
2735
1755
|
var de_DescribeOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2736
1756
|
if (output.statusCode >= 300) {
|
|
2737
|
-
return
|
|
1757
|
+
return de_CommandError(output, context);
|
|
2738
1758
|
}
|
|
2739
1759
|
const data = await parseBody(output.body, context);
|
|
2740
1760
|
let contents = {};
|
|
@@ -2745,31 +1765,9 @@ var de_DescribeOrganizationCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2745
1765
|
};
|
|
2746
1766
|
return response;
|
|
2747
1767
|
}, "de_DescribeOrganizationCommand");
|
|
2748
|
-
var de_DescribeOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2749
|
-
const parsedOutput = {
|
|
2750
|
-
...output,
|
|
2751
|
-
body: await parseErrorBody(output.body, context)
|
|
2752
|
-
};
|
|
2753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2754
|
-
switch (errorCode) {
|
|
2755
|
-
case "InvalidParameterException":
|
|
2756
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2757
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "OrganizationNotFoundException":
|
|
2759
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2760
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2761
|
-
default:
|
|
2762
|
-
const parsedBody = parsedOutput.body;
|
|
2763
|
-
return throwDefaultError({
|
|
2764
|
-
output,
|
|
2765
|
-
parsedBody,
|
|
2766
|
-
errorCode
|
|
2767
|
-
});
|
|
2768
|
-
}
|
|
2769
|
-
}, "de_DescribeOrganizationCommandError");
|
|
2770
1768
|
var de_DescribeResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2771
1769
|
if (output.statusCode >= 300) {
|
|
2772
|
-
return
|
|
1770
|
+
return de_CommandError(output, context);
|
|
2773
1771
|
}
|
|
2774
1772
|
const data = await parseBody(output.body, context);
|
|
2775
1773
|
let contents = {};
|
|
@@ -2780,40 +1778,9 @@ var de_DescribeResourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2780
1778
|
};
|
|
2781
1779
|
return response;
|
|
2782
1780
|
}, "de_DescribeResourceCommand");
|
|
2783
|
-
var de_DescribeResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2784
|
-
const parsedOutput = {
|
|
2785
|
-
...output,
|
|
2786
|
-
body: await parseErrorBody(output.body, context)
|
|
2787
|
-
};
|
|
2788
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2789
|
-
switch (errorCode) {
|
|
2790
|
-
case "EntityNotFoundException":
|
|
2791
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2792
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "InvalidParameterException":
|
|
2794
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2795
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2796
|
-
case "OrganizationNotFoundException":
|
|
2797
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2798
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2799
|
-
case "OrganizationStateException":
|
|
2800
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2801
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2802
|
-
case "UnsupportedOperationException":
|
|
2803
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
2804
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2805
|
-
default:
|
|
2806
|
-
const parsedBody = parsedOutput.body;
|
|
2807
|
-
return throwDefaultError({
|
|
2808
|
-
output,
|
|
2809
|
-
parsedBody,
|
|
2810
|
-
errorCode
|
|
2811
|
-
});
|
|
2812
|
-
}
|
|
2813
|
-
}, "de_DescribeResourceCommandError");
|
|
2814
1781
|
var de_DescribeUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2815
1782
|
if (output.statusCode >= 300) {
|
|
2816
|
-
return
|
|
1783
|
+
return de_CommandError(output, context);
|
|
2817
1784
|
}
|
|
2818
1785
|
const data = await parseBody(output.body, context);
|
|
2819
1786
|
let contents = {};
|
|
@@ -2824,84 +1791,22 @@ var de_DescribeUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2824
1791
|
};
|
|
2825
1792
|
return response;
|
|
2826
1793
|
}, "de_DescribeUserCommand");
|
|
2827
|
-
var
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
case "InvalidParameterException":
|
|
2838
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2839
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "OrganizationNotFoundException":
|
|
2841
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2842
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "OrganizationStateException":
|
|
2844
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2845
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2846
|
-
default:
|
|
2847
|
-
const parsedBody = parsedOutput.body;
|
|
2848
|
-
return throwDefaultError({
|
|
2849
|
-
output,
|
|
2850
|
-
parsedBody,
|
|
2851
|
-
errorCode
|
|
2852
|
-
});
|
|
2853
|
-
}
|
|
2854
|
-
}, "de_DescribeUserCommandError");
|
|
2855
|
-
var de_DisassociateDelegateFromResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2856
|
-
if (output.statusCode >= 300) {
|
|
2857
|
-
return de_DisassociateDelegateFromResourceCommandError(output, context);
|
|
2858
|
-
}
|
|
2859
|
-
const data = await parseBody(output.body, context);
|
|
2860
|
-
let contents = {};
|
|
2861
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2862
|
-
const response = {
|
|
2863
|
-
$metadata: deserializeMetadata(output),
|
|
2864
|
-
...contents
|
|
1794
|
+
var de_DisassociateDelegateFromResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1795
|
+
if (output.statusCode >= 300) {
|
|
1796
|
+
return de_CommandError(output, context);
|
|
1797
|
+
}
|
|
1798
|
+
const data = await parseBody(output.body, context);
|
|
1799
|
+
let contents = {};
|
|
1800
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1801
|
+
const response = {
|
|
1802
|
+
$metadata: deserializeMetadata(output),
|
|
1803
|
+
...contents
|
|
2865
1804
|
};
|
|
2866
1805
|
return response;
|
|
2867
1806
|
}, "de_DisassociateDelegateFromResourceCommand");
|
|
2868
|
-
var de_DisassociateDelegateFromResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2869
|
-
const parsedOutput = {
|
|
2870
|
-
...output,
|
|
2871
|
-
body: await parseErrorBody(output.body, context)
|
|
2872
|
-
};
|
|
2873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2874
|
-
switch (errorCode) {
|
|
2875
|
-
case "EntityNotFoundException":
|
|
2876
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2877
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2878
|
-
case "EntityStateException":
|
|
2879
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2880
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "InvalidParameterException":
|
|
2882
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2883
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "OrganizationNotFoundException":
|
|
2885
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2886
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "OrganizationStateException":
|
|
2888
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2889
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "UnsupportedOperationException":
|
|
2891
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
2892
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2893
|
-
default:
|
|
2894
|
-
const parsedBody = parsedOutput.body;
|
|
2895
|
-
return throwDefaultError({
|
|
2896
|
-
output,
|
|
2897
|
-
parsedBody,
|
|
2898
|
-
errorCode
|
|
2899
|
-
});
|
|
2900
|
-
}
|
|
2901
|
-
}, "de_DisassociateDelegateFromResourceCommandError");
|
|
2902
1807
|
var de_DisassociateMemberFromGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2903
1808
|
if (output.statusCode >= 300) {
|
|
2904
|
-
return
|
|
1809
|
+
return de_CommandError(output, context);
|
|
2905
1810
|
}
|
|
2906
1811
|
const data = await parseBody(output.body, context);
|
|
2907
1812
|
let contents = {};
|
|
@@ -2912,49 +1817,9 @@ var de_DisassociateMemberFromGroupCommand = /* @__PURE__ */ __name(async (output
|
|
|
2912
1817
|
};
|
|
2913
1818
|
return response;
|
|
2914
1819
|
}, "de_DisassociateMemberFromGroupCommand");
|
|
2915
|
-
var de_DisassociateMemberFromGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2916
|
-
const parsedOutput = {
|
|
2917
|
-
...output,
|
|
2918
|
-
body: await parseErrorBody(output.body, context)
|
|
2919
|
-
};
|
|
2920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
|
-
switch (errorCode) {
|
|
2922
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
2923
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
2924
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2925
|
-
case "DirectoryUnavailableException":
|
|
2926
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
2927
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "EntityNotFoundException":
|
|
2929
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2930
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "EntityStateException":
|
|
2932
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
2933
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "InvalidParameterException":
|
|
2935
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2936
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "OrganizationNotFoundException":
|
|
2938
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2939
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "OrganizationStateException":
|
|
2941
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2942
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "UnsupportedOperationException":
|
|
2944
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
2945
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2946
|
-
default:
|
|
2947
|
-
const parsedBody = parsedOutput.body;
|
|
2948
|
-
return throwDefaultError({
|
|
2949
|
-
output,
|
|
2950
|
-
parsedBody,
|
|
2951
|
-
errorCode
|
|
2952
|
-
});
|
|
2953
|
-
}
|
|
2954
|
-
}, "de_DisassociateMemberFromGroupCommandError");
|
|
2955
1820
|
var de_GetAccessControlEffectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2956
1821
|
if (output.statusCode >= 300) {
|
|
2957
|
-
return
|
|
1822
|
+
return de_CommandError(output, context);
|
|
2958
1823
|
}
|
|
2959
1824
|
const data = await parseBody(output.body, context);
|
|
2960
1825
|
let contents = {};
|
|
@@ -2965,40 +1830,9 @@ var de_GetAccessControlEffectCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2965
1830
|
};
|
|
2966
1831
|
return response;
|
|
2967
1832
|
}, "de_GetAccessControlEffectCommand");
|
|
2968
|
-
var de_GetAccessControlEffectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2969
|
-
const parsedOutput = {
|
|
2970
|
-
...output,
|
|
2971
|
-
body: await parseErrorBody(output.body, context)
|
|
2972
|
-
};
|
|
2973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2974
|
-
switch (errorCode) {
|
|
2975
|
-
case "EntityNotFoundException":
|
|
2976
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
2977
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "InvalidParameterException":
|
|
2979
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
2980
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "OrganizationNotFoundException":
|
|
2982
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
2983
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "OrganizationStateException":
|
|
2985
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
2986
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "ResourceNotFoundException":
|
|
2988
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
2989
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2990
|
-
default:
|
|
2991
|
-
const parsedBody = parsedOutput.body;
|
|
2992
|
-
return throwDefaultError({
|
|
2993
|
-
output,
|
|
2994
|
-
parsedBody,
|
|
2995
|
-
errorCode
|
|
2996
|
-
});
|
|
2997
|
-
}
|
|
2998
|
-
}, "de_GetAccessControlEffectCommandError");
|
|
2999
1833
|
var de_GetDefaultRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3000
1834
|
if (output.statusCode >= 300) {
|
|
3001
|
-
return
|
|
1835
|
+
return de_CommandError(output, context);
|
|
3002
1836
|
}
|
|
3003
1837
|
const data = await parseBody(output.body, context);
|
|
3004
1838
|
let contents = {};
|
|
@@ -3009,37 +1843,9 @@ var de_GetDefaultRetentionPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3009
1843
|
};
|
|
3010
1844
|
return response;
|
|
3011
1845
|
}, "de_GetDefaultRetentionPolicyCommand");
|
|
3012
|
-
var de_GetDefaultRetentionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3013
|
-
const parsedOutput = {
|
|
3014
|
-
...output,
|
|
3015
|
-
body: await parseErrorBody(output.body, context)
|
|
3016
|
-
};
|
|
3017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3018
|
-
switch (errorCode) {
|
|
3019
|
-
case "EntityNotFoundException":
|
|
3020
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3021
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3022
|
-
case "InvalidParameterException":
|
|
3023
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3024
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "OrganizationNotFoundException":
|
|
3026
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3027
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "OrganizationStateException":
|
|
3029
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3030
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3031
|
-
default:
|
|
3032
|
-
const parsedBody = parsedOutput.body;
|
|
3033
|
-
return throwDefaultError({
|
|
3034
|
-
output,
|
|
3035
|
-
parsedBody,
|
|
3036
|
-
errorCode
|
|
3037
|
-
});
|
|
3038
|
-
}
|
|
3039
|
-
}, "de_GetDefaultRetentionPolicyCommandError");
|
|
3040
1846
|
var de_GetImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
1847
|
if (output.statusCode >= 300) {
|
|
3042
|
-
return
|
|
1848
|
+
return de_CommandError(output, context);
|
|
3043
1849
|
}
|
|
3044
1850
|
const data = await parseBody(output.body, context);
|
|
3045
1851
|
let contents = {};
|
|
@@ -3050,37 +1856,9 @@ var de_GetImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3050
1856
|
};
|
|
3051
1857
|
return response;
|
|
3052
1858
|
}, "de_GetImpersonationRoleCommand");
|
|
3053
|
-
var de_GetImpersonationRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3054
|
-
const parsedOutput = {
|
|
3055
|
-
...output,
|
|
3056
|
-
body: await parseErrorBody(output.body, context)
|
|
3057
|
-
};
|
|
3058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3059
|
-
switch (errorCode) {
|
|
3060
|
-
case "InvalidParameterException":
|
|
3061
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3062
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "OrganizationNotFoundException":
|
|
3064
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3065
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3066
|
-
case "OrganizationStateException":
|
|
3067
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3068
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "ResourceNotFoundException":
|
|
3070
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3071
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3072
|
-
default:
|
|
3073
|
-
const parsedBody = parsedOutput.body;
|
|
3074
|
-
return throwDefaultError({
|
|
3075
|
-
output,
|
|
3076
|
-
parsedBody,
|
|
3077
|
-
errorCode
|
|
3078
|
-
});
|
|
3079
|
-
}
|
|
3080
|
-
}, "de_GetImpersonationRoleCommandError");
|
|
3081
1859
|
var de_GetImpersonationRoleEffectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3082
1860
|
if (output.statusCode >= 300) {
|
|
3083
|
-
return
|
|
1861
|
+
return de_CommandError(output, context);
|
|
3084
1862
|
}
|
|
3085
1863
|
const data = await parseBody(output.body, context);
|
|
3086
1864
|
let contents = {};
|
|
@@ -3091,43 +1869,9 @@ var de_GetImpersonationRoleEffectCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3091
1869
|
};
|
|
3092
1870
|
return response;
|
|
3093
1871
|
}, "de_GetImpersonationRoleEffectCommand");
|
|
3094
|
-
var de_GetImpersonationRoleEffectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3095
|
-
const parsedOutput = {
|
|
3096
|
-
...output,
|
|
3097
|
-
body: await parseErrorBody(output.body, context)
|
|
3098
|
-
};
|
|
3099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3100
|
-
switch (errorCode) {
|
|
3101
|
-
case "EntityNotFoundException":
|
|
3102
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3103
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3104
|
-
case "EntityStateException":
|
|
3105
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3106
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3107
|
-
case "InvalidParameterException":
|
|
3108
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3109
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "OrganizationNotFoundException":
|
|
3111
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3112
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3113
|
-
case "OrganizationStateException":
|
|
3114
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3115
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "ResourceNotFoundException":
|
|
3117
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3118
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3119
|
-
default:
|
|
3120
|
-
const parsedBody = parsedOutput.body;
|
|
3121
|
-
return throwDefaultError({
|
|
3122
|
-
output,
|
|
3123
|
-
parsedBody,
|
|
3124
|
-
errorCode
|
|
3125
|
-
});
|
|
3126
|
-
}
|
|
3127
|
-
}, "de_GetImpersonationRoleEffectCommandError");
|
|
3128
1872
|
var de_GetMailboxDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3129
1873
|
if (output.statusCode >= 300) {
|
|
3130
|
-
return
|
|
1874
|
+
return de_CommandError(output, context);
|
|
3131
1875
|
}
|
|
3132
1876
|
const data = await parseBody(output.body, context);
|
|
3133
1877
|
let contents = {};
|
|
@@ -3138,37 +1882,9 @@ var de_GetMailboxDetailsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3138
1882
|
};
|
|
3139
1883
|
return response;
|
|
3140
1884
|
}, "de_GetMailboxDetailsCommand");
|
|
3141
|
-
var de_GetMailboxDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3142
|
-
const parsedOutput = {
|
|
3143
|
-
...output,
|
|
3144
|
-
body: await parseErrorBody(output.body, context)
|
|
3145
|
-
};
|
|
3146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3147
|
-
switch (errorCode) {
|
|
3148
|
-
case "EntityNotFoundException":
|
|
3149
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3150
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3151
|
-
case "InvalidParameterException":
|
|
3152
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3153
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3154
|
-
case "OrganizationNotFoundException":
|
|
3155
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3156
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3157
|
-
case "OrganizationStateException":
|
|
3158
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3159
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3160
|
-
default:
|
|
3161
|
-
const parsedBody = parsedOutput.body;
|
|
3162
|
-
return throwDefaultError({
|
|
3163
|
-
output,
|
|
3164
|
-
parsedBody,
|
|
3165
|
-
errorCode
|
|
3166
|
-
});
|
|
3167
|
-
}
|
|
3168
|
-
}, "de_GetMailboxDetailsCommandError");
|
|
3169
1885
|
var de_GetMailDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3170
1886
|
if (output.statusCode >= 300) {
|
|
3171
|
-
return
|
|
1887
|
+
return de_CommandError(output, context);
|
|
3172
1888
|
}
|
|
3173
1889
|
const data = await parseBody(output.body, context);
|
|
3174
1890
|
let contents = {};
|
|
@@ -3179,37 +1895,9 @@ var de_GetMailDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3179
1895
|
};
|
|
3180
1896
|
return response;
|
|
3181
1897
|
}, "de_GetMailDomainCommand");
|
|
3182
|
-
var de_GetMailDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3183
|
-
const parsedOutput = {
|
|
3184
|
-
...output,
|
|
3185
|
-
body: await parseErrorBody(output.body, context)
|
|
3186
|
-
};
|
|
3187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3188
|
-
switch (errorCode) {
|
|
3189
|
-
case "InvalidParameterException":
|
|
3190
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3191
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3192
|
-
case "MailDomainNotFoundException":
|
|
3193
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
3194
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
3195
|
-
case "OrganizationNotFoundException":
|
|
3196
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3197
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3198
|
-
case "OrganizationStateException":
|
|
3199
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3200
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3201
|
-
default:
|
|
3202
|
-
const parsedBody = parsedOutput.body;
|
|
3203
|
-
return throwDefaultError({
|
|
3204
|
-
output,
|
|
3205
|
-
parsedBody,
|
|
3206
|
-
errorCode
|
|
3207
|
-
});
|
|
3208
|
-
}
|
|
3209
|
-
}, "de_GetMailDomainCommandError");
|
|
3210
1898
|
var de_GetMobileDeviceAccessEffectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3211
1899
|
if (output.statusCode >= 300) {
|
|
3212
|
-
return
|
|
1900
|
+
return de_CommandError(output, context);
|
|
3213
1901
|
}
|
|
3214
1902
|
const data = await parseBody(output.body, context);
|
|
3215
1903
|
let contents = {};
|
|
@@ -3220,34 +1908,9 @@ var de_GetMobileDeviceAccessEffectCommand = /* @__PURE__ */ __name(async (output
|
|
|
3220
1908
|
};
|
|
3221
1909
|
return response;
|
|
3222
1910
|
}, "de_GetMobileDeviceAccessEffectCommand");
|
|
3223
|
-
var de_GetMobileDeviceAccessEffectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3224
|
-
const parsedOutput = {
|
|
3225
|
-
...output,
|
|
3226
|
-
body: await parseErrorBody(output.body, context)
|
|
3227
|
-
};
|
|
3228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3229
|
-
switch (errorCode) {
|
|
3230
|
-
case "InvalidParameterException":
|
|
3231
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3232
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3233
|
-
case "OrganizationNotFoundException":
|
|
3234
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3235
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3236
|
-
case "OrganizationStateException":
|
|
3237
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3238
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3239
|
-
default:
|
|
3240
|
-
const parsedBody = parsedOutput.body;
|
|
3241
|
-
return throwDefaultError({
|
|
3242
|
-
output,
|
|
3243
|
-
parsedBody,
|
|
3244
|
-
errorCode
|
|
3245
|
-
});
|
|
3246
|
-
}
|
|
3247
|
-
}, "de_GetMobileDeviceAccessEffectCommandError");
|
|
3248
1911
|
var de_GetMobileDeviceAccessOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3249
1912
|
if (output.statusCode >= 300) {
|
|
3250
|
-
return
|
|
1913
|
+
return de_CommandError(output, context);
|
|
3251
1914
|
}
|
|
3252
1915
|
const data = await parseBody(output.body, context);
|
|
3253
1916
|
let contents = {};
|
|
@@ -3258,40 +1921,9 @@ var de_GetMobileDeviceAccessOverrideCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3258
1921
|
};
|
|
3259
1922
|
return response;
|
|
3260
1923
|
}, "de_GetMobileDeviceAccessOverrideCommand");
|
|
3261
|
-
var de_GetMobileDeviceAccessOverrideCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3262
|
-
const parsedOutput = {
|
|
3263
|
-
...output,
|
|
3264
|
-
body: await parseErrorBody(output.body, context)
|
|
3265
|
-
};
|
|
3266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3267
|
-
switch (errorCode) {
|
|
3268
|
-
case "EntityNotFoundException":
|
|
3269
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3270
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3271
|
-
case "InvalidParameterException":
|
|
3272
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3273
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3274
|
-
case "OrganizationNotFoundException":
|
|
3275
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3276
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3277
|
-
case "OrganizationStateException":
|
|
3278
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3279
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3280
|
-
case "ResourceNotFoundException":
|
|
3281
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3282
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3283
|
-
default:
|
|
3284
|
-
const parsedBody = parsedOutput.body;
|
|
3285
|
-
return throwDefaultError({
|
|
3286
|
-
output,
|
|
3287
|
-
parsedBody,
|
|
3288
|
-
errorCode
|
|
3289
|
-
});
|
|
3290
|
-
}
|
|
3291
|
-
}, "de_GetMobileDeviceAccessOverrideCommandError");
|
|
3292
1924
|
var de_ListAccessControlRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3293
1925
|
if (output.statusCode >= 300) {
|
|
3294
|
-
return
|
|
1926
|
+
return de_CommandError(output, context);
|
|
3295
1927
|
}
|
|
3296
1928
|
const data = await parseBody(output.body, context);
|
|
3297
1929
|
let contents = {};
|
|
@@ -3302,31 +1934,9 @@ var de_ListAccessControlRulesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3302
1934
|
};
|
|
3303
1935
|
return response;
|
|
3304
1936
|
}, "de_ListAccessControlRulesCommand");
|
|
3305
|
-
var de_ListAccessControlRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3306
|
-
const parsedOutput = {
|
|
3307
|
-
...output,
|
|
3308
|
-
body: await parseErrorBody(output.body, context)
|
|
3309
|
-
};
|
|
3310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3311
|
-
switch (errorCode) {
|
|
3312
|
-
case "OrganizationNotFoundException":
|
|
3313
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3314
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3315
|
-
case "OrganizationStateException":
|
|
3316
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3317
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3318
|
-
default:
|
|
3319
|
-
const parsedBody = parsedOutput.body;
|
|
3320
|
-
return throwDefaultError({
|
|
3321
|
-
output,
|
|
3322
|
-
parsedBody,
|
|
3323
|
-
errorCode
|
|
3324
|
-
});
|
|
3325
|
-
}
|
|
3326
|
-
}, "de_ListAccessControlRulesCommandError");
|
|
3327
1937
|
var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3328
1938
|
if (output.statusCode >= 300) {
|
|
3329
|
-
return
|
|
1939
|
+
return de_CommandError(output, context);
|
|
3330
1940
|
}
|
|
3331
1941
|
const data = await parseBody(output.body, context);
|
|
3332
1942
|
let contents = {};
|
|
@@ -3337,40 +1947,9 @@ var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3337
1947
|
};
|
|
3338
1948
|
return response;
|
|
3339
1949
|
}, "de_ListAliasesCommand");
|
|
3340
|
-
var de_ListAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3341
|
-
const parsedOutput = {
|
|
3342
|
-
...output,
|
|
3343
|
-
body: await parseErrorBody(output.body, context)
|
|
3344
|
-
};
|
|
3345
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3346
|
-
switch (errorCode) {
|
|
3347
|
-
case "EntityNotFoundException":
|
|
3348
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3349
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3350
|
-
case "EntityStateException":
|
|
3351
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3352
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3353
|
-
case "InvalidParameterException":
|
|
3354
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3355
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3356
|
-
case "OrganizationNotFoundException":
|
|
3357
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3358
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "OrganizationStateException":
|
|
3360
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3361
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3362
|
-
default:
|
|
3363
|
-
const parsedBody = parsedOutput.body;
|
|
3364
|
-
return throwDefaultError({
|
|
3365
|
-
output,
|
|
3366
|
-
parsedBody,
|
|
3367
|
-
errorCode
|
|
3368
|
-
});
|
|
3369
|
-
}
|
|
3370
|
-
}, "de_ListAliasesCommandError");
|
|
3371
1950
|
var de_ListAvailabilityConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3372
1951
|
if (output.statusCode >= 300) {
|
|
3373
|
-
return
|
|
1952
|
+
return de_CommandError(output, context);
|
|
3374
1953
|
}
|
|
3375
1954
|
const data = await parseBody(output.body, context);
|
|
3376
1955
|
let contents = {};
|
|
@@ -3381,31 +1960,9 @@ var de_ListAvailabilityConfigurationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
3381
1960
|
};
|
|
3382
1961
|
return response;
|
|
3383
1962
|
}, "de_ListAvailabilityConfigurationsCommand");
|
|
3384
|
-
var de_ListAvailabilityConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3385
|
-
const parsedOutput = {
|
|
3386
|
-
...output,
|
|
3387
|
-
body: await parseErrorBody(output.body, context)
|
|
3388
|
-
};
|
|
3389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3390
|
-
switch (errorCode) {
|
|
3391
|
-
case "OrganizationNotFoundException":
|
|
3392
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3393
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3394
|
-
case "OrganizationStateException":
|
|
3395
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3396
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3397
|
-
default:
|
|
3398
|
-
const parsedBody = parsedOutput.body;
|
|
3399
|
-
return throwDefaultError({
|
|
3400
|
-
output,
|
|
3401
|
-
parsedBody,
|
|
3402
|
-
errorCode
|
|
3403
|
-
});
|
|
3404
|
-
}
|
|
3405
|
-
}, "de_ListAvailabilityConfigurationsCommandError");
|
|
3406
1963
|
var de_ListGroupMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3407
1964
|
if (output.statusCode >= 300) {
|
|
3408
|
-
return
|
|
1965
|
+
return de_CommandError(output, context);
|
|
3409
1966
|
}
|
|
3410
1967
|
const data = await parseBody(output.body, context);
|
|
3411
1968
|
let contents = {};
|
|
@@ -3416,40 +1973,9 @@ var de_ListGroupMembersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3416
1973
|
};
|
|
3417
1974
|
return response;
|
|
3418
1975
|
}, "de_ListGroupMembersCommand");
|
|
3419
|
-
var de_ListGroupMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3420
|
-
const parsedOutput = {
|
|
3421
|
-
...output,
|
|
3422
|
-
body: await parseErrorBody(output.body, context)
|
|
3423
|
-
};
|
|
3424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3425
|
-
switch (errorCode) {
|
|
3426
|
-
case "EntityNotFoundException":
|
|
3427
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3428
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3429
|
-
case "EntityStateException":
|
|
3430
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3431
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3432
|
-
case "InvalidParameterException":
|
|
3433
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3434
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3435
|
-
case "OrganizationNotFoundException":
|
|
3436
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3437
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3438
|
-
case "OrganizationStateException":
|
|
3439
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3440
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3441
|
-
default:
|
|
3442
|
-
const parsedBody = parsedOutput.body;
|
|
3443
|
-
return throwDefaultError({
|
|
3444
|
-
output,
|
|
3445
|
-
parsedBody,
|
|
3446
|
-
errorCode
|
|
3447
|
-
});
|
|
3448
|
-
}
|
|
3449
|
-
}, "de_ListGroupMembersCommandError");
|
|
3450
1976
|
var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3451
1977
|
if (output.statusCode >= 300) {
|
|
3452
|
-
return
|
|
1978
|
+
return de_CommandError(output, context);
|
|
3453
1979
|
}
|
|
3454
1980
|
const data = await parseBody(output.body, context);
|
|
3455
1981
|
let contents = {};
|
|
@@ -3460,37 +1986,9 @@ var de_ListGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3460
1986
|
};
|
|
3461
1987
|
return response;
|
|
3462
1988
|
}, "de_ListGroupsCommand");
|
|
3463
|
-
var de_ListGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3464
|
-
const parsedOutput = {
|
|
3465
|
-
...output,
|
|
3466
|
-
body: await parseErrorBody(output.body, context)
|
|
3467
|
-
};
|
|
3468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3469
|
-
switch (errorCode) {
|
|
3470
|
-
case "EntityNotFoundException":
|
|
3471
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3472
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "InvalidParameterException":
|
|
3474
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3475
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "OrganizationNotFoundException":
|
|
3477
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3478
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3479
|
-
case "OrganizationStateException":
|
|
3480
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3481
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3482
|
-
default:
|
|
3483
|
-
const parsedBody = parsedOutput.body;
|
|
3484
|
-
return throwDefaultError({
|
|
3485
|
-
output,
|
|
3486
|
-
parsedBody,
|
|
3487
|
-
errorCode
|
|
3488
|
-
});
|
|
3489
|
-
}
|
|
3490
|
-
}, "de_ListGroupsCommandError");
|
|
3491
1989
|
var de_ListGroupsForEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3492
1990
|
if (output.statusCode >= 300) {
|
|
3493
|
-
return
|
|
1991
|
+
return de_CommandError(output, context);
|
|
3494
1992
|
}
|
|
3495
1993
|
const data = await parseBody(output.body, context);
|
|
3496
1994
|
let contents = {};
|
|
@@ -3501,40 +1999,9 @@ var de_ListGroupsForEntityCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3501
1999
|
};
|
|
3502
2000
|
return response;
|
|
3503
2001
|
}, "de_ListGroupsForEntityCommand");
|
|
3504
|
-
var de_ListGroupsForEntityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3505
|
-
const parsedOutput = {
|
|
3506
|
-
...output,
|
|
3507
|
-
body: await parseErrorBody(output.body, context)
|
|
3508
|
-
};
|
|
3509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3510
|
-
switch (errorCode) {
|
|
3511
|
-
case "EntityNotFoundException":
|
|
3512
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3513
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "EntityStateException":
|
|
3515
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3516
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3517
|
-
case "InvalidParameterException":
|
|
3518
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3519
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3520
|
-
case "OrganizationNotFoundException":
|
|
3521
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3522
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3523
|
-
case "OrganizationStateException":
|
|
3524
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3525
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3526
|
-
default:
|
|
3527
|
-
const parsedBody = parsedOutput.body;
|
|
3528
|
-
return throwDefaultError({
|
|
3529
|
-
output,
|
|
3530
|
-
parsedBody,
|
|
3531
|
-
errorCode
|
|
3532
|
-
});
|
|
3533
|
-
}
|
|
3534
|
-
}, "de_ListGroupsForEntityCommandError");
|
|
3535
2002
|
var de_ListImpersonationRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3536
2003
|
if (output.statusCode >= 300) {
|
|
3537
|
-
return
|
|
2004
|
+
return de_CommandError(output, context);
|
|
3538
2005
|
}
|
|
3539
2006
|
const data = await parseBody(output.body, context);
|
|
3540
2007
|
let contents = {};
|
|
@@ -3545,34 +2012,9 @@ var de_ListImpersonationRolesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3545
2012
|
};
|
|
3546
2013
|
return response;
|
|
3547
2014
|
}, "de_ListImpersonationRolesCommand");
|
|
3548
|
-
var de_ListImpersonationRolesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3549
|
-
const parsedOutput = {
|
|
3550
|
-
...output,
|
|
3551
|
-
body: await parseErrorBody(output.body, context)
|
|
3552
|
-
};
|
|
3553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3554
|
-
switch (errorCode) {
|
|
3555
|
-
case "InvalidParameterException":
|
|
3556
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3557
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3558
|
-
case "OrganizationNotFoundException":
|
|
3559
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3560
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3561
|
-
case "OrganizationStateException":
|
|
3562
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3563
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3564
|
-
default:
|
|
3565
|
-
const parsedBody = parsedOutput.body;
|
|
3566
|
-
return throwDefaultError({
|
|
3567
|
-
output,
|
|
3568
|
-
parsedBody,
|
|
3569
|
-
errorCode
|
|
3570
|
-
});
|
|
3571
|
-
}
|
|
3572
|
-
}, "de_ListImpersonationRolesCommandError");
|
|
3573
2015
|
var de_ListMailboxExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3574
2016
|
if (output.statusCode >= 300) {
|
|
3575
|
-
return
|
|
2017
|
+
return de_CommandError(output, context);
|
|
3576
2018
|
}
|
|
3577
2019
|
const data = await parseBody(output.body, context);
|
|
3578
2020
|
let contents = {};
|
|
@@ -3583,34 +2025,9 @@ var de_ListMailboxExportJobsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3583
2025
|
};
|
|
3584
2026
|
return response;
|
|
3585
2027
|
}, "de_ListMailboxExportJobsCommand");
|
|
3586
|
-
var de_ListMailboxExportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3587
|
-
const parsedOutput = {
|
|
3588
|
-
...output,
|
|
3589
|
-
body: await parseErrorBody(output.body, context)
|
|
3590
|
-
};
|
|
3591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3592
|
-
switch (errorCode) {
|
|
3593
|
-
case "InvalidParameterException":
|
|
3594
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3595
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3596
|
-
case "OrganizationNotFoundException":
|
|
3597
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3598
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3599
|
-
case "OrganizationStateException":
|
|
3600
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3601
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3602
|
-
default:
|
|
3603
|
-
const parsedBody = parsedOutput.body;
|
|
3604
|
-
return throwDefaultError({
|
|
3605
|
-
output,
|
|
3606
|
-
parsedBody,
|
|
3607
|
-
errorCode
|
|
3608
|
-
});
|
|
3609
|
-
}
|
|
3610
|
-
}, "de_ListMailboxExportJobsCommandError");
|
|
3611
2028
|
var de_ListMailboxPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3612
2029
|
if (output.statusCode >= 300) {
|
|
3613
|
-
return
|
|
2030
|
+
return de_CommandError(output, context);
|
|
3614
2031
|
}
|
|
3615
2032
|
const data = await parseBody(output.body, context);
|
|
3616
2033
|
let contents = {};
|
|
@@ -3621,37 +2038,9 @@ var de_ListMailboxPermissionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3621
2038
|
};
|
|
3622
2039
|
return response;
|
|
3623
2040
|
}, "de_ListMailboxPermissionsCommand");
|
|
3624
|
-
var de_ListMailboxPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3625
|
-
const parsedOutput = {
|
|
3626
|
-
...output,
|
|
3627
|
-
body: await parseErrorBody(output.body, context)
|
|
3628
|
-
};
|
|
3629
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3630
|
-
switch (errorCode) {
|
|
3631
|
-
case "EntityNotFoundException":
|
|
3632
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3633
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3634
|
-
case "InvalidParameterException":
|
|
3635
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3636
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3637
|
-
case "OrganizationNotFoundException":
|
|
3638
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3639
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3640
|
-
case "OrganizationStateException":
|
|
3641
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3642
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3643
|
-
default:
|
|
3644
|
-
const parsedBody = parsedOutput.body;
|
|
3645
|
-
return throwDefaultError({
|
|
3646
|
-
output,
|
|
3647
|
-
parsedBody,
|
|
3648
|
-
errorCode
|
|
3649
|
-
});
|
|
3650
|
-
}
|
|
3651
|
-
}, "de_ListMailboxPermissionsCommandError");
|
|
3652
2041
|
var de_ListMailDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3653
2042
|
if (output.statusCode >= 300) {
|
|
3654
|
-
return
|
|
2043
|
+
return de_CommandError(output, context);
|
|
3655
2044
|
}
|
|
3656
2045
|
const data = await parseBody(output.body, context);
|
|
3657
2046
|
let contents = {};
|
|
@@ -3662,34 +2051,9 @@ var de_ListMailDomainsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3662
2051
|
};
|
|
3663
2052
|
return response;
|
|
3664
2053
|
}, "de_ListMailDomainsCommand");
|
|
3665
|
-
var de_ListMailDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3666
|
-
const parsedOutput = {
|
|
3667
|
-
...output,
|
|
3668
|
-
body: await parseErrorBody(output.body, context)
|
|
3669
|
-
};
|
|
3670
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3671
|
-
switch (errorCode) {
|
|
3672
|
-
case "InvalidParameterException":
|
|
3673
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3674
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3675
|
-
case "OrganizationNotFoundException":
|
|
3676
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3677
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3678
|
-
case "OrganizationStateException":
|
|
3679
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3680
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3681
|
-
default:
|
|
3682
|
-
const parsedBody = parsedOutput.body;
|
|
3683
|
-
return throwDefaultError({
|
|
3684
|
-
output,
|
|
3685
|
-
parsedBody,
|
|
3686
|
-
errorCode
|
|
3687
|
-
});
|
|
3688
|
-
}
|
|
3689
|
-
}, "de_ListMailDomainsCommandError");
|
|
3690
2054
|
var de_ListMobileDeviceAccessOverridesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3691
2055
|
if (output.statusCode >= 300) {
|
|
3692
|
-
return
|
|
2056
|
+
return de_CommandError(output, context);
|
|
3693
2057
|
}
|
|
3694
2058
|
const data = await parseBody(output.body, context);
|
|
3695
2059
|
let contents = {};
|
|
@@ -3700,37 +2064,9 @@ var de_ListMobileDeviceAccessOverridesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3700
2064
|
};
|
|
3701
2065
|
return response;
|
|
3702
2066
|
}, "de_ListMobileDeviceAccessOverridesCommand");
|
|
3703
|
-
var de_ListMobileDeviceAccessOverridesCommandError = /* @__PURE__ */ __name(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 "EntityNotFoundException":
|
|
3711
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3712
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3713
|
-
case "InvalidParameterException":
|
|
3714
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3715
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3716
|
-
case "OrganizationNotFoundException":
|
|
3717
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3718
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3719
|
-
case "OrganizationStateException":
|
|
3720
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3721
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3722
|
-
default:
|
|
3723
|
-
const parsedBody = parsedOutput.body;
|
|
3724
|
-
return throwDefaultError({
|
|
3725
|
-
output,
|
|
3726
|
-
parsedBody,
|
|
3727
|
-
errorCode
|
|
3728
|
-
});
|
|
3729
|
-
}
|
|
3730
|
-
}, "de_ListMobileDeviceAccessOverridesCommandError");
|
|
3731
2067
|
var de_ListMobileDeviceAccessRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3732
2068
|
if (output.statusCode >= 300) {
|
|
3733
|
-
return
|
|
2069
|
+
return de_CommandError(output, context);
|
|
3734
2070
|
}
|
|
3735
2071
|
const data = await parseBody(output.body, context);
|
|
3736
2072
|
let contents = {};
|
|
@@ -3741,34 +2077,9 @@ var de_ListMobileDeviceAccessRulesCommand = /* @__PURE__ */ __name(async (output
|
|
|
3741
2077
|
};
|
|
3742
2078
|
return response;
|
|
3743
2079
|
}, "de_ListMobileDeviceAccessRulesCommand");
|
|
3744
|
-
var de_ListMobileDeviceAccessRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3745
|
-
const parsedOutput = {
|
|
3746
|
-
...output,
|
|
3747
|
-
body: await parseErrorBody(output.body, context)
|
|
3748
|
-
};
|
|
3749
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3750
|
-
switch (errorCode) {
|
|
3751
|
-
case "InvalidParameterException":
|
|
3752
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3753
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3754
|
-
case "OrganizationNotFoundException":
|
|
3755
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3756
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "OrganizationStateException":
|
|
3758
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3759
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3760
|
-
default:
|
|
3761
|
-
const parsedBody = parsedOutput.body;
|
|
3762
|
-
return throwDefaultError({
|
|
3763
|
-
output,
|
|
3764
|
-
parsedBody,
|
|
3765
|
-
errorCode
|
|
3766
|
-
});
|
|
3767
|
-
}
|
|
3768
|
-
}, "de_ListMobileDeviceAccessRulesCommandError");
|
|
3769
2080
|
var de_ListOrganizationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3770
2081
|
if (output.statusCode >= 300) {
|
|
3771
|
-
return
|
|
2082
|
+
return de_CommandError(output, context);
|
|
3772
2083
|
}
|
|
3773
2084
|
const data = await parseBody(output.body, context);
|
|
3774
2085
|
let contents = {};
|
|
@@ -3779,28 +2090,9 @@ var de_ListOrganizationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3779
2090
|
};
|
|
3780
2091
|
return response;
|
|
3781
2092
|
}, "de_ListOrganizationsCommand");
|
|
3782
|
-
var de_ListOrganizationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3783
|
-
const parsedOutput = {
|
|
3784
|
-
...output,
|
|
3785
|
-
body: await parseErrorBody(output.body, context)
|
|
3786
|
-
};
|
|
3787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3788
|
-
switch (errorCode) {
|
|
3789
|
-
case "InvalidParameterException":
|
|
3790
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3791
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3792
|
-
default:
|
|
3793
|
-
const parsedBody = parsedOutput.body;
|
|
3794
|
-
return throwDefaultError({
|
|
3795
|
-
output,
|
|
3796
|
-
parsedBody,
|
|
3797
|
-
errorCode
|
|
3798
|
-
});
|
|
3799
|
-
}
|
|
3800
|
-
}, "de_ListOrganizationsCommandError");
|
|
3801
2093
|
var de_ListResourceDelegatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3802
2094
|
if (output.statusCode >= 300) {
|
|
3803
|
-
return
|
|
2095
|
+
return de_CommandError(output, context);
|
|
3804
2096
|
}
|
|
3805
2097
|
const data = await parseBody(output.body, context);
|
|
3806
2098
|
let contents = {};
|
|
@@ -3811,43 +2103,9 @@ var de_ListResourceDelegatesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3811
2103
|
};
|
|
3812
2104
|
return response;
|
|
3813
2105
|
}, "de_ListResourceDelegatesCommand");
|
|
3814
|
-
var de_ListResourceDelegatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3815
|
-
const parsedOutput = {
|
|
3816
|
-
...output,
|
|
3817
|
-
body: await parseErrorBody(output.body, context)
|
|
3818
|
-
};
|
|
3819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3820
|
-
switch (errorCode) {
|
|
3821
|
-
case "EntityNotFoundException":
|
|
3822
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3823
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3824
|
-
case "EntityStateException":
|
|
3825
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
3826
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
3827
|
-
case "InvalidParameterException":
|
|
3828
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3829
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3830
|
-
case "OrganizationNotFoundException":
|
|
3831
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3832
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3833
|
-
case "OrganizationStateException":
|
|
3834
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3835
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3836
|
-
case "UnsupportedOperationException":
|
|
3837
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
3838
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3839
|
-
default:
|
|
3840
|
-
const parsedBody = parsedOutput.body;
|
|
3841
|
-
return throwDefaultError({
|
|
3842
|
-
output,
|
|
3843
|
-
parsedBody,
|
|
3844
|
-
errorCode
|
|
3845
|
-
});
|
|
3846
|
-
}
|
|
3847
|
-
}, "de_ListResourceDelegatesCommandError");
|
|
3848
2106
|
var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3849
2107
|
if (output.statusCode >= 300) {
|
|
3850
|
-
return
|
|
2108
|
+
return de_CommandError(output, context);
|
|
3851
2109
|
}
|
|
3852
2110
|
const data = await parseBody(output.body, context);
|
|
3853
2111
|
let contents = {};
|
|
@@ -3858,37 +2116,9 @@ var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3858
2116
|
};
|
|
3859
2117
|
return response;
|
|
3860
2118
|
}, "de_ListResourcesCommand");
|
|
3861
|
-
var de_ListResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3862
|
-
const parsedOutput = {
|
|
3863
|
-
...output,
|
|
3864
|
-
body: await parseErrorBody(output.body, context)
|
|
3865
|
-
};
|
|
3866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3867
|
-
switch (errorCode) {
|
|
3868
|
-
case "InvalidParameterException":
|
|
3869
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3870
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3871
|
-
case "OrganizationNotFoundException":
|
|
3872
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3873
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3874
|
-
case "OrganizationStateException":
|
|
3875
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3876
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3877
|
-
case "UnsupportedOperationException":
|
|
3878
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
3879
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3880
|
-
default:
|
|
3881
|
-
const parsedBody = parsedOutput.body;
|
|
3882
|
-
return throwDefaultError({
|
|
3883
|
-
output,
|
|
3884
|
-
parsedBody,
|
|
3885
|
-
errorCode
|
|
3886
|
-
});
|
|
3887
|
-
}
|
|
3888
|
-
}, "de_ListResourcesCommandError");
|
|
3889
2119
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3890
2120
|
if (output.statusCode >= 300) {
|
|
3891
|
-
return
|
|
2121
|
+
return de_CommandError(output, context);
|
|
3892
2122
|
}
|
|
3893
2123
|
const data = await parseBody(output.body, context);
|
|
3894
2124
|
let contents = {};
|
|
@@ -3899,28 +2129,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3899
2129
|
};
|
|
3900
2130
|
return response;
|
|
3901
2131
|
}, "de_ListTagsForResourceCommand");
|
|
3902
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3903
|
-
const parsedOutput = {
|
|
3904
|
-
...output,
|
|
3905
|
-
body: await parseErrorBody(output.body, context)
|
|
3906
|
-
};
|
|
3907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3908
|
-
switch (errorCode) {
|
|
3909
|
-
case "ResourceNotFoundException":
|
|
3910
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3911
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3912
|
-
default:
|
|
3913
|
-
const parsedBody = parsedOutput.body;
|
|
3914
|
-
return throwDefaultError({
|
|
3915
|
-
output,
|
|
3916
|
-
parsedBody,
|
|
3917
|
-
errorCode
|
|
3918
|
-
});
|
|
3919
|
-
}
|
|
3920
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3921
2132
|
var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3922
2133
|
if (output.statusCode >= 300) {
|
|
3923
|
-
return
|
|
2134
|
+
return de_CommandError(output, context);
|
|
3924
2135
|
}
|
|
3925
2136
|
const data = await parseBody(output.body, context);
|
|
3926
2137
|
let contents = {};
|
|
@@ -3931,34 +2142,9 @@ var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3931
2142
|
};
|
|
3932
2143
|
return response;
|
|
3933
2144
|
}, "de_ListUsersCommand");
|
|
3934
|
-
var de_ListUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3935
|
-
const parsedOutput = {
|
|
3936
|
-
...output,
|
|
3937
|
-
body: await parseErrorBody(output.body, context)
|
|
3938
|
-
};
|
|
3939
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3940
|
-
switch (errorCode) {
|
|
3941
|
-
case "InvalidParameterException":
|
|
3942
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3943
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3944
|
-
case "OrganizationNotFoundException":
|
|
3945
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3946
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3947
|
-
case "OrganizationStateException":
|
|
3948
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3949
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3950
|
-
default:
|
|
3951
|
-
const parsedBody = parsedOutput.body;
|
|
3952
|
-
return throwDefaultError({
|
|
3953
|
-
output,
|
|
3954
|
-
parsedBody,
|
|
3955
|
-
errorCode
|
|
3956
|
-
});
|
|
3957
|
-
}
|
|
3958
|
-
}, "de_ListUsersCommandError");
|
|
3959
2145
|
var de_PutAccessControlRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3960
2146
|
if (output.statusCode >= 300) {
|
|
3961
|
-
return
|
|
2147
|
+
return de_CommandError(output, context);
|
|
3962
2148
|
}
|
|
3963
2149
|
const data = await parseBody(output.body, context);
|
|
3964
2150
|
let contents = {};
|
|
@@ -3969,43 +2155,9 @@ var de_PutAccessControlRuleCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3969
2155
|
};
|
|
3970
2156
|
return response;
|
|
3971
2157
|
}, "de_PutAccessControlRuleCommand");
|
|
3972
|
-
var de_PutAccessControlRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3973
|
-
const parsedOutput = {
|
|
3974
|
-
...output,
|
|
3975
|
-
body: await parseErrorBody(output.body, context)
|
|
3976
|
-
};
|
|
3977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3978
|
-
switch (errorCode) {
|
|
3979
|
-
case "EntityNotFoundException":
|
|
3980
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
3981
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
3982
|
-
case "InvalidParameterException":
|
|
3983
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
3984
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3985
|
-
case "LimitExceededException":
|
|
3986
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
3987
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3988
|
-
case "OrganizationNotFoundException":
|
|
3989
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
3990
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
3991
|
-
case "OrganizationStateException":
|
|
3992
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
3993
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
3994
|
-
case "ResourceNotFoundException":
|
|
3995
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
3996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3997
|
-
default:
|
|
3998
|
-
const parsedBody = parsedOutput.body;
|
|
3999
|
-
return throwDefaultError({
|
|
4000
|
-
output,
|
|
4001
|
-
parsedBody,
|
|
4002
|
-
errorCode
|
|
4003
|
-
});
|
|
4004
|
-
}
|
|
4005
|
-
}, "de_PutAccessControlRuleCommandError");
|
|
4006
2158
|
var de_PutEmailMonitoringConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4007
2159
|
if (output.statusCode >= 300) {
|
|
4008
|
-
return
|
|
2160
|
+
return de_CommandError(output, context);
|
|
4009
2161
|
}
|
|
4010
2162
|
const data = await parseBody(output.body, context);
|
|
4011
2163
|
let contents = {};
|
|
@@ -4016,72 +2168,22 @@ var de_PutEmailMonitoringConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4016
2168
|
};
|
|
4017
2169
|
return response;
|
|
4018
2170
|
}, "de_PutEmailMonitoringConfigurationCommand");
|
|
4019
|
-
var
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
case "OrganizationNotFoundException":
|
|
4030
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4031
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4032
|
-
case "OrganizationStateException":
|
|
4033
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4034
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4035
|
-
case "ResourceNotFoundException":
|
|
4036
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
4037
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4038
|
-
default:
|
|
4039
|
-
const parsedBody = parsedOutput.body;
|
|
4040
|
-
return throwDefaultError({
|
|
4041
|
-
output,
|
|
4042
|
-
parsedBody,
|
|
4043
|
-
errorCode
|
|
4044
|
-
});
|
|
4045
|
-
}
|
|
4046
|
-
}, "de_PutEmailMonitoringConfigurationCommandError");
|
|
4047
|
-
var de_PutInboundDmarcSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4048
|
-
if (output.statusCode >= 300) {
|
|
4049
|
-
return de_PutInboundDmarcSettingsCommandError(output, context);
|
|
4050
|
-
}
|
|
4051
|
-
const data = await parseBody(output.body, context);
|
|
4052
|
-
let contents = {};
|
|
4053
|
-
contents = (0, import_smithy_client._json)(data);
|
|
4054
|
-
const response = {
|
|
4055
|
-
$metadata: deserializeMetadata(output),
|
|
4056
|
-
...contents
|
|
2171
|
+
var de_PutInboundDmarcSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2172
|
+
if (output.statusCode >= 300) {
|
|
2173
|
+
return de_CommandError(output, context);
|
|
2174
|
+
}
|
|
2175
|
+
const data = await parseBody(output.body, context);
|
|
2176
|
+
let contents = {};
|
|
2177
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2178
|
+
const response = {
|
|
2179
|
+
$metadata: deserializeMetadata(output),
|
|
2180
|
+
...contents
|
|
4057
2181
|
};
|
|
4058
2182
|
return response;
|
|
4059
2183
|
}, "de_PutInboundDmarcSettingsCommand");
|
|
4060
|
-
var de_PutInboundDmarcSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4061
|
-
const parsedOutput = {
|
|
4062
|
-
...output,
|
|
4063
|
-
body: await parseErrorBody(output.body, context)
|
|
4064
|
-
};
|
|
4065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4066
|
-
switch (errorCode) {
|
|
4067
|
-
case "OrganizationNotFoundException":
|
|
4068
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4069
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4070
|
-
case "OrganizationStateException":
|
|
4071
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4072
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4073
|
-
default:
|
|
4074
|
-
const parsedBody = parsedOutput.body;
|
|
4075
|
-
return throwDefaultError({
|
|
4076
|
-
output,
|
|
4077
|
-
parsedBody,
|
|
4078
|
-
errorCode
|
|
4079
|
-
});
|
|
4080
|
-
}
|
|
4081
|
-
}, "de_PutInboundDmarcSettingsCommandError");
|
|
4082
2184
|
var de_PutMailboxPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4083
2185
|
if (output.statusCode >= 300) {
|
|
4084
|
-
return
|
|
2186
|
+
return de_CommandError(output, context);
|
|
4085
2187
|
}
|
|
4086
2188
|
const data = await parseBody(output.body, context);
|
|
4087
2189
|
let contents = {};
|
|
@@ -4092,40 +2194,9 @@ var de_PutMailboxPermissionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4092
2194
|
};
|
|
4093
2195
|
return response;
|
|
4094
2196
|
}, "de_PutMailboxPermissionsCommand");
|
|
4095
|
-
var de_PutMailboxPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4096
|
-
const parsedOutput = {
|
|
4097
|
-
...output,
|
|
4098
|
-
body: await parseErrorBody(output.body, context)
|
|
4099
|
-
};
|
|
4100
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4101
|
-
switch (errorCode) {
|
|
4102
|
-
case "EntityNotFoundException":
|
|
4103
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4104
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4105
|
-
case "EntityStateException":
|
|
4106
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4107
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4108
|
-
case "InvalidParameterException":
|
|
4109
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4110
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4111
|
-
case "OrganizationNotFoundException":
|
|
4112
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4113
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4114
|
-
case "OrganizationStateException":
|
|
4115
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4116
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4117
|
-
default:
|
|
4118
|
-
const parsedBody = parsedOutput.body;
|
|
4119
|
-
return throwDefaultError({
|
|
4120
|
-
output,
|
|
4121
|
-
parsedBody,
|
|
4122
|
-
errorCode
|
|
4123
|
-
});
|
|
4124
|
-
}
|
|
4125
|
-
}, "de_PutMailboxPermissionsCommandError");
|
|
4126
2197
|
var de_PutMobileDeviceAccessOverrideCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4127
2198
|
if (output.statusCode >= 300) {
|
|
4128
|
-
return
|
|
2199
|
+
return de_CommandError(output, context);
|
|
4129
2200
|
}
|
|
4130
2201
|
const data = await parseBody(output.body, context);
|
|
4131
2202
|
let contents = {};
|
|
@@ -4136,40 +2207,9 @@ var de_PutMobileDeviceAccessOverrideCommand = /* @__PURE__ */ __name(async (outp
|
|
|
4136
2207
|
};
|
|
4137
2208
|
return response;
|
|
4138
2209
|
}, "de_PutMobileDeviceAccessOverrideCommand");
|
|
4139
|
-
var de_PutMobileDeviceAccessOverrideCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4140
|
-
const parsedOutput = {
|
|
4141
|
-
...output,
|
|
4142
|
-
body: await parseErrorBody(output.body, context)
|
|
4143
|
-
};
|
|
4144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4145
|
-
switch (errorCode) {
|
|
4146
|
-
case "EntityNotFoundException":
|
|
4147
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4148
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4149
|
-
case "EntityStateException":
|
|
4150
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4151
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4152
|
-
case "InvalidParameterException":
|
|
4153
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4154
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4155
|
-
case "OrganizationNotFoundException":
|
|
4156
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4157
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4158
|
-
case "OrganizationStateException":
|
|
4159
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4160
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4161
|
-
default:
|
|
4162
|
-
const parsedBody = parsedOutput.body;
|
|
4163
|
-
return throwDefaultError({
|
|
4164
|
-
output,
|
|
4165
|
-
parsedBody,
|
|
4166
|
-
errorCode
|
|
4167
|
-
});
|
|
4168
|
-
}
|
|
4169
|
-
}, "de_PutMobileDeviceAccessOverrideCommandError");
|
|
4170
2210
|
var de_PutRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4171
2211
|
if (output.statusCode >= 300) {
|
|
4172
|
-
return
|
|
2212
|
+
return de_CommandError(output, context);
|
|
4173
2213
|
}
|
|
4174
2214
|
const data = await parseBody(output.body, context);
|
|
4175
2215
|
let contents = {};
|
|
@@ -4180,37 +2220,9 @@ var de_PutRetentionPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4180
2220
|
};
|
|
4181
2221
|
return response;
|
|
4182
2222
|
}, "de_PutRetentionPolicyCommand");
|
|
4183
|
-
var de_PutRetentionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4184
|
-
const parsedOutput = {
|
|
4185
|
-
...output,
|
|
4186
|
-
body: await parseErrorBody(output.body, context)
|
|
4187
|
-
};
|
|
4188
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4189
|
-
switch (errorCode) {
|
|
4190
|
-
case "InvalidParameterException":
|
|
4191
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4192
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4193
|
-
case "LimitExceededException":
|
|
4194
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
4195
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4196
|
-
case "OrganizationNotFoundException":
|
|
4197
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4198
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4199
|
-
case "OrganizationStateException":
|
|
4200
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4201
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4202
|
-
default:
|
|
4203
|
-
const parsedBody = parsedOutput.body;
|
|
4204
|
-
return throwDefaultError({
|
|
4205
|
-
output,
|
|
4206
|
-
parsedBody,
|
|
4207
|
-
errorCode
|
|
4208
|
-
});
|
|
4209
|
-
}
|
|
4210
|
-
}, "de_PutRetentionPolicyCommandError");
|
|
4211
2223
|
var de_RegisterMailDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4212
2224
|
if (output.statusCode >= 300) {
|
|
4213
|
-
return
|
|
2225
|
+
return de_CommandError(output, context);
|
|
4214
2226
|
}
|
|
4215
2227
|
const data = await parseBody(output.body, context);
|
|
4216
2228
|
let contents = {};
|
|
@@ -4221,40 +2233,9 @@ var de_RegisterMailDomainCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4221
2233
|
};
|
|
4222
2234
|
return response;
|
|
4223
2235
|
}, "de_RegisterMailDomainCommand");
|
|
4224
|
-
var de_RegisterMailDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4225
|
-
const parsedOutput = {
|
|
4226
|
-
...output,
|
|
4227
|
-
body: await parseErrorBody(output.body, context)
|
|
4228
|
-
};
|
|
4229
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4230
|
-
switch (errorCode) {
|
|
4231
|
-
case "InvalidParameterException":
|
|
4232
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4233
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4234
|
-
case "LimitExceededException":
|
|
4235
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
4236
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4237
|
-
case "MailDomainInUseException":
|
|
4238
|
-
case "com.amazonaws.workmail#MailDomainInUseException":
|
|
4239
|
-
throw await de_MailDomainInUseExceptionRes(parsedOutput, context);
|
|
4240
|
-
case "OrganizationNotFoundException":
|
|
4241
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4242
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4243
|
-
case "OrganizationStateException":
|
|
4244
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4245
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4246
|
-
default:
|
|
4247
|
-
const parsedBody = parsedOutput.body;
|
|
4248
|
-
return throwDefaultError({
|
|
4249
|
-
output,
|
|
4250
|
-
parsedBody,
|
|
4251
|
-
errorCode
|
|
4252
|
-
});
|
|
4253
|
-
}
|
|
4254
|
-
}, "de_RegisterMailDomainCommandError");
|
|
4255
2236
|
var de_RegisterToWorkMailCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4256
2237
|
if (output.statusCode >= 300) {
|
|
4257
|
-
return
|
|
2238
|
+
return de_CommandError(output, context);
|
|
4258
2239
|
}
|
|
4259
2240
|
const data = await parseBody(output.body, context);
|
|
4260
2241
|
let contents = {};
|
|
@@ -4265,58 +2246,9 @@ var de_RegisterToWorkMailCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4265
2246
|
};
|
|
4266
2247
|
return response;
|
|
4267
2248
|
}, "de_RegisterToWorkMailCommand");
|
|
4268
|
-
var de_RegisterToWorkMailCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4269
|
-
const parsedOutput = {
|
|
4270
|
-
...output,
|
|
4271
|
-
body: await parseErrorBody(output.body, context)
|
|
4272
|
-
};
|
|
4273
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4274
|
-
switch (errorCode) {
|
|
4275
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
4276
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
4277
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
4278
|
-
case "DirectoryUnavailableException":
|
|
4279
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
4280
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4281
|
-
case "EmailAddressInUseException":
|
|
4282
|
-
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
4283
|
-
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
4284
|
-
case "EntityAlreadyRegisteredException":
|
|
4285
|
-
case "com.amazonaws.workmail#EntityAlreadyRegisteredException":
|
|
4286
|
-
throw await de_EntityAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
4287
|
-
case "EntityNotFoundException":
|
|
4288
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4289
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4290
|
-
case "EntityStateException":
|
|
4291
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4292
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4293
|
-
case "InvalidParameterException":
|
|
4294
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4295
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4296
|
-
case "MailDomainNotFoundException":
|
|
4297
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
4298
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
4299
|
-
case "MailDomainStateException":
|
|
4300
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
4301
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
4302
|
-
case "OrganizationNotFoundException":
|
|
4303
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4304
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4305
|
-
case "OrganizationStateException":
|
|
4306
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4307
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4308
|
-
default:
|
|
4309
|
-
const parsedBody = parsedOutput.body;
|
|
4310
|
-
return throwDefaultError({
|
|
4311
|
-
output,
|
|
4312
|
-
parsedBody,
|
|
4313
|
-
errorCode
|
|
4314
|
-
});
|
|
4315
|
-
}
|
|
4316
|
-
}, "de_RegisterToWorkMailCommandError");
|
|
4317
2249
|
var de_ResetPasswordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4318
2250
|
if (output.statusCode >= 300) {
|
|
4319
|
-
return
|
|
2251
|
+
return de_CommandError(output, context);
|
|
4320
2252
|
}
|
|
4321
2253
|
const data = await parseBody(output.body, context);
|
|
4322
2254
|
let contents = {};
|
|
@@ -4327,52 +2259,9 @@ var de_ResetPasswordCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4327
2259
|
};
|
|
4328
2260
|
return response;
|
|
4329
2261
|
}, "de_ResetPasswordCommand");
|
|
4330
|
-
var de_ResetPasswordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4331
|
-
const parsedOutput = {
|
|
4332
|
-
...output,
|
|
4333
|
-
body: await parseErrorBody(output.body, context)
|
|
4334
|
-
};
|
|
4335
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4336
|
-
switch (errorCode) {
|
|
4337
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
4338
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
4339
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
4340
|
-
case "DirectoryUnavailableException":
|
|
4341
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
4342
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4343
|
-
case "EntityNotFoundException":
|
|
4344
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4345
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4346
|
-
case "EntityStateException":
|
|
4347
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4348
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4349
|
-
case "InvalidParameterException":
|
|
4350
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4351
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4352
|
-
case "InvalidPasswordException":
|
|
4353
|
-
case "com.amazonaws.workmail#InvalidPasswordException":
|
|
4354
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
4355
|
-
case "OrganizationNotFoundException":
|
|
4356
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4357
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4358
|
-
case "OrganizationStateException":
|
|
4359
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4360
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4361
|
-
case "UnsupportedOperationException":
|
|
4362
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
4363
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4364
|
-
default:
|
|
4365
|
-
const parsedBody = parsedOutput.body;
|
|
4366
|
-
return throwDefaultError({
|
|
4367
|
-
output,
|
|
4368
|
-
parsedBody,
|
|
4369
|
-
errorCode
|
|
4370
|
-
});
|
|
4371
|
-
}
|
|
4372
|
-
}, "de_ResetPasswordCommandError");
|
|
4373
2262
|
var de_StartMailboxExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4374
2263
|
if (output.statusCode >= 300) {
|
|
4375
|
-
return
|
|
2264
|
+
return de_CommandError(output, context);
|
|
4376
2265
|
}
|
|
4377
2266
|
const data = await parseBody(output.body, context);
|
|
4378
2267
|
let contents = {};
|
|
@@ -4383,40 +2272,9 @@ var de_StartMailboxExportJobCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4383
2272
|
};
|
|
4384
2273
|
return response;
|
|
4385
2274
|
}, "de_StartMailboxExportJobCommand");
|
|
4386
|
-
var de_StartMailboxExportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4387
|
-
const parsedOutput = {
|
|
4388
|
-
...output,
|
|
4389
|
-
body: await parseErrorBody(output.body, context)
|
|
4390
|
-
};
|
|
4391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4392
|
-
switch (errorCode) {
|
|
4393
|
-
case "EntityNotFoundException":
|
|
4394
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4395
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4396
|
-
case "InvalidParameterException":
|
|
4397
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4398
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4399
|
-
case "LimitExceededException":
|
|
4400
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
4401
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4402
|
-
case "OrganizationNotFoundException":
|
|
4403
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4404
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4405
|
-
case "OrganizationStateException":
|
|
4406
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4407
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4408
|
-
default:
|
|
4409
|
-
const parsedBody = parsedOutput.body;
|
|
4410
|
-
return throwDefaultError({
|
|
4411
|
-
output,
|
|
4412
|
-
parsedBody,
|
|
4413
|
-
errorCode
|
|
4414
|
-
});
|
|
4415
|
-
}
|
|
4416
|
-
}, "de_StartMailboxExportJobCommandError");
|
|
4417
2275
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4418
2276
|
if (output.statusCode >= 300) {
|
|
4419
|
-
return
|
|
2277
|
+
return de_CommandError(output, context);
|
|
4420
2278
|
}
|
|
4421
2279
|
const data = await parseBody(output.body, context);
|
|
4422
2280
|
let contents = {};
|
|
@@ -4427,37 +2285,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4427
2285
|
};
|
|
4428
2286
|
return response;
|
|
4429
2287
|
}, "de_TagResourceCommand");
|
|
4430
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4431
|
-
const parsedOutput = {
|
|
4432
|
-
...output,
|
|
4433
|
-
body: await parseErrorBody(output.body, context)
|
|
4434
|
-
};
|
|
4435
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4436
|
-
switch (errorCode) {
|
|
4437
|
-
case "InvalidParameterException":
|
|
4438
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4439
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4440
|
-
case "OrganizationStateException":
|
|
4441
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4442
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4443
|
-
case "ResourceNotFoundException":
|
|
4444
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
4445
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4446
|
-
case "TooManyTagsException":
|
|
4447
|
-
case "com.amazonaws.workmail#TooManyTagsException":
|
|
4448
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
4449
|
-
default:
|
|
4450
|
-
const parsedBody = parsedOutput.body;
|
|
4451
|
-
return throwDefaultError({
|
|
4452
|
-
output,
|
|
4453
|
-
parsedBody,
|
|
4454
|
-
errorCode
|
|
4455
|
-
});
|
|
4456
|
-
}
|
|
4457
|
-
}, "de_TagResourceCommandError");
|
|
4458
2288
|
var de_TestAvailabilityConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4459
2289
|
if (output.statusCode >= 300) {
|
|
4460
|
-
return
|
|
2290
|
+
return de_CommandError(output, context);
|
|
4461
2291
|
}
|
|
4462
2292
|
const data = await parseBody(output.body, context);
|
|
4463
2293
|
let contents = {};
|
|
@@ -4468,37 +2298,9 @@ var de_TestAvailabilityConfigurationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
4468
2298
|
};
|
|
4469
2299
|
return response;
|
|
4470
2300
|
}, "de_TestAvailabilityConfigurationCommand");
|
|
4471
|
-
var de_TestAvailabilityConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4472
|
-
const parsedOutput = {
|
|
4473
|
-
...output,
|
|
4474
|
-
body: await parseErrorBody(output.body, context)
|
|
4475
|
-
};
|
|
4476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4477
|
-
switch (errorCode) {
|
|
4478
|
-
case "InvalidParameterException":
|
|
4479
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4480
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4481
|
-
case "OrganizationNotFoundException":
|
|
4482
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4483
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4484
|
-
case "OrganizationStateException":
|
|
4485
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4486
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4487
|
-
case "ResourceNotFoundException":
|
|
4488
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
4489
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4490
|
-
default:
|
|
4491
|
-
const parsedBody = parsedOutput.body;
|
|
4492
|
-
return throwDefaultError({
|
|
4493
|
-
output,
|
|
4494
|
-
parsedBody,
|
|
4495
|
-
errorCode
|
|
4496
|
-
});
|
|
4497
|
-
}
|
|
4498
|
-
}, "de_TestAvailabilityConfigurationCommandError");
|
|
4499
2301
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4500
2302
|
if (output.statusCode >= 300) {
|
|
4501
|
-
return
|
|
2303
|
+
return de_CommandError(output, context);
|
|
4502
2304
|
}
|
|
4503
2305
|
const data = await parseBody(output.body, context);
|
|
4504
2306
|
let contents = {};
|
|
@@ -4509,28 +2311,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4509
2311
|
};
|
|
4510
2312
|
return response;
|
|
4511
2313
|
}, "de_UntagResourceCommand");
|
|
4512
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4513
|
-
const parsedOutput = {
|
|
4514
|
-
...output,
|
|
4515
|
-
body: await parseErrorBody(output.body, context)
|
|
4516
|
-
};
|
|
4517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4518
|
-
switch (errorCode) {
|
|
4519
|
-
case "ResourceNotFoundException":
|
|
4520
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
4521
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4522
|
-
default:
|
|
4523
|
-
const parsedBody = parsedOutput.body;
|
|
4524
|
-
return throwDefaultError({
|
|
4525
|
-
output,
|
|
4526
|
-
parsedBody,
|
|
4527
|
-
errorCode
|
|
4528
|
-
});
|
|
4529
|
-
}
|
|
4530
|
-
}, "de_UntagResourceCommandError");
|
|
4531
2314
|
var de_UpdateAvailabilityConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4532
2315
|
if (output.statusCode >= 300) {
|
|
4533
|
-
return
|
|
2316
|
+
return de_CommandError(output, context);
|
|
4534
2317
|
}
|
|
4535
2318
|
const data = await parseBody(output.body, context);
|
|
4536
2319
|
let contents = {};
|
|
@@ -4541,128 +2324,35 @@ var de_UpdateAvailabilityConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4541
2324
|
};
|
|
4542
2325
|
return response;
|
|
4543
2326
|
}, "de_UpdateAvailabilityConfigurationCommand");
|
|
4544
|
-
var de_UpdateAvailabilityConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4545
|
-
const parsedOutput = {
|
|
4546
|
-
...output,
|
|
4547
|
-
body: await parseErrorBody(output.body, context)
|
|
4548
|
-
};
|
|
4549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4550
|
-
switch (errorCode) {
|
|
4551
|
-
case "InvalidParameterException":
|
|
4552
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4553
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4554
|
-
case "OrganizationNotFoundException":
|
|
4555
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4556
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4557
|
-
case "OrganizationStateException":
|
|
4558
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4559
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4560
|
-
case "ResourceNotFoundException":
|
|
4561
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
4562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4563
|
-
default:
|
|
4564
|
-
const parsedBody = parsedOutput.body;
|
|
4565
|
-
return throwDefaultError({
|
|
4566
|
-
output,
|
|
4567
|
-
parsedBody,
|
|
4568
|
-
errorCode
|
|
4569
|
-
});
|
|
4570
|
-
}
|
|
4571
|
-
}, "de_UpdateAvailabilityConfigurationCommandError");
|
|
4572
2327
|
var de_UpdateDefaultMailDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4573
2328
|
if (output.statusCode >= 300) {
|
|
4574
|
-
return
|
|
4575
|
-
}
|
|
4576
|
-
const data = await parseBody(output.body, context);
|
|
4577
|
-
let contents = {};
|
|
4578
|
-
contents = (0, import_smithy_client._json)(data);
|
|
4579
|
-
const response = {
|
|
4580
|
-
$metadata: deserializeMetadata(output),
|
|
4581
|
-
...contents
|
|
4582
|
-
};
|
|
4583
|
-
return response;
|
|
4584
|
-
}, "de_UpdateDefaultMailDomainCommand");
|
|
4585
|
-
var de_UpdateDefaultMailDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4586
|
-
const parsedOutput = {
|
|
4587
|
-
...output,
|
|
4588
|
-
body: await parseErrorBody(output.body, context)
|
|
4589
|
-
};
|
|
4590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4591
|
-
switch (errorCode) {
|
|
4592
|
-
case "InvalidParameterException":
|
|
4593
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4594
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4595
|
-
case "MailDomainNotFoundException":
|
|
4596
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
4597
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
4598
|
-
case "MailDomainStateException":
|
|
4599
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
4600
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
4601
|
-
case "OrganizationNotFoundException":
|
|
4602
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4603
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4604
|
-
case "OrganizationStateException":
|
|
4605
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4606
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4607
|
-
default:
|
|
4608
|
-
const parsedBody = parsedOutput.body;
|
|
4609
|
-
return throwDefaultError({
|
|
4610
|
-
output,
|
|
4611
|
-
parsedBody,
|
|
4612
|
-
errorCode
|
|
4613
|
-
});
|
|
4614
|
-
}
|
|
4615
|
-
}, "de_UpdateDefaultMailDomainCommandError");
|
|
4616
|
-
var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4617
|
-
if (output.statusCode >= 300) {
|
|
4618
|
-
return de_UpdateGroupCommandError(output, context);
|
|
2329
|
+
return de_CommandError(output, context);
|
|
4619
2330
|
}
|
|
4620
2331
|
const data = await parseBody(output.body, context);
|
|
4621
2332
|
let contents = {};
|
|
4622
2333
|
contents = (0, import_smithy_client._json)(data);
|
|
4623
2334
|
const response = {
|
|
4624
2335
|
$metadata: deserializeMetadata(output),
|
|
4625
|
-
...contents
|
|
4626
|
-
};
|
|
4627
|
-
return response;
|
|
4628
|
-
}, "
|
|
4629
|
-
var
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
body: await parseErrorBody(output.body, context)
|
|
4633
|
-
};
|
|
4634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4635
|
-
switch (errorCode) {
|
|
4636
|
-
case "EntityNotFoundException":
|
|
4637
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4638
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4639
|
-
case "EntityStateException":
|
|
4640
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4641
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4642
|
-
case "InvalidParameterException":
|
|
4643
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4644
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4645
|
-
case "OrganizationNotFoundException":
|
|
4646
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4647
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4648
|
-
case "OrganizationStateException":
|
|
4649
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4650
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4651
|
-
case "UnsupportedOperationException":
|
|
4652
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
4653
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4654
|
-
default:
|
|
4655
|
-
const parsedBody = parsedOutput.body;
|
|
4656
|
-
return throwDefaultError({
|
|
4657
|
-
output,
|
|
4658
|
-
parsedBody,
|
|
4659
|
-
errorCode
|
|
4660
|
-
});
|
|
2336
|
+
...contents
|
|
2337
|
+
};
|
|
2338
|
+
return response;
|
|
2339
|
+
}, "de_UpdateDefaultMailDomainCommand");
|
|
2340
|
+
var de_UpdateGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2341
|
+
if (output.statusCode >= 300) {
|
|
2342
|
+
return de_CommandError(output, context);
|
|
4661
2343
|
}
|
|
4662
|
-
|
|
2344
|
+
const data = await parseBody(output.body, context);
|
|
2345
|
+
let contents = {};
|
|
2346
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2347
|
+
const response = {
|
|
2348
|
+
$metadata: deserializeMetadata(output),
|
|
2349
|
+
...contents
|
|
2350
|
+
};
|
|
2351
|
+
return response;
|
|
2352
|
+
}, "de_UpdateGroupCommand");
|
|
4663
2353
|
var de_UpdateImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4664
2354
|
if (output.statusCode >= 300) {
|
|
4665
|
-
return
|
|
2355
|
+
return de_CommandError(output, context);
|
|
4666
2356
|
}
|
|
4667
2357
|
const data = await parseBody(output.body, context);
|
|
4668
2358
|
let contents = {};
|
|
@@ -4673,46 +2363,9 @@ var de_UpdateImpersonationRoleCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4673
2363
|
};
|
|
4674
2364
|
return response;
|
|
4675
2365
|
}, "de_UpdateImpersonationRoleCommand");
|
|
4676
|
-
var de_UpdateImpersonationRoleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4677
|
-
const parsedOutput = {
|
|
4678
|
-
...output,
|
|
4679
|
-
body: await parseErrorBody(output.body, context)
|
|
4680
|
-
};
|
|
4681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4682
|
-
switch (errorCode) {
|
|
4683
|
-
case "EntityNotFoundException":
|
|
4684
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4685
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4686
|
-
case "EntityStateException":
|
|
4687
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4688
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4689
|
-
case "InvalidParameterException":
|
|
4690
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4691
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4692
|
-
case "LimitExceededException":
|
|
4693
|
-
case "com.amazonaws.workmail#LimitExceededException":
|
|
4694
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4695
|
-
case "OrganizationNotFoundException":
|
|
4696
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4697
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4698
|
-
case "OrganizationStateException":
|
|
4699
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4700
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4701
|
-
case "ResourceNotFoundException":
|
|
4702
|
-
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
4703
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4704
|
-
default:
|
|
4705
|
-
const parsedBody = parsedOutput.body;
|
|
4706
|
-
return throwDefaultError({
|
|
4707
|
-
output,
|
|
4708
|
-
parsedBody,
|
|
4709
|
-
errorCode
|
|
4710
|
-
});
|
|
4711
|
-
}
|
|
4712
|
-
}, "de_UpdateImpersonationRoleCommandError");
|
|
4713
2366
|
var de_UpdateMailboxQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4714
2367
|
if (output.statusCode >= 300) {
|
|
4715
|
-
return
|
|
2368
|
+
return de_CommandError(output, context);
|
|
4716
2369
|
}
|
|
4717
2370
|
const data = await parseBody(output.body, context);
|
|
4718
2371
|
let contents = {};
|
|
@@ -4723,40 +2376,9 @@ var de_UpdateMailboxQuotaCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4723
2376
|
};
|
|
4724
2377
|
return response;
|
|
4725
2378
|
}, "de_UpdateMailboxQuotaCommand");
|
|
4726
|
-
var de_UpdateMailboxQuotaCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4727
|
-
const parsedOutput = {
|
|
4728
|
-
...output,
|
|
4729
|
-
body: await parseErrorBody(output.body, context)
|
|
4730
|
-
};
|
|
4731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4732
|
-
switch (errorCode) {
|
|
4733
|
-
case "EntityNotFoundException":
|
|
4734
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4735
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4736
|
-
case "EntityStateException":
|
|
4737
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4738
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4739
|
-
case "InvalidParameterException":
|
|
4740
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4741
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4742
|
-
case "OrganizationNotFoundException":
|
|
4743
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4744
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4745
|
-
case "OrganizationStateException":
|
|
4746
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4747
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4748
|
-
default:
|
|
4749
|
-
const parsedBody = parsedOutput.body;
|
|
4750
|
-
return throwDefaultError({
|
|
4751
|
-
output,
|
|
4752
|
-
parsedBody,
|
|
4753
|
-
errorCode
|
|
4754
|
-
});
|
|
4755
|
-
}
|
|
4756
|
-
}, "de_UpdateMailboxQuotaCommandError");
|
|
4757
2379
|
var de_UpdateMobileDeviceAccessRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4758
2380
|
if (output.statusCode >= 300) {
|
|
4759
|
-
return
|
|
2381
|
+
return de_CommandError(output, context);
|
|
4760
2382
|
}
|
|
4761
2383
|
const data = await parseBody(output.body, context);
|
|
4762
2384
|
let contents = {};
|
|
@@ -4767,37 +2389,9 @@ var de_UpdateMobileDeviceAccessRuleCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4767
2389
|
};
|
|
4768
2390
|
return response;
|
|
4769
2391
|
}, "de_UpdateMobileDeviceAccessRuleCommand");
|
|
4770
|
-
var de_UpdateMobileDeviceAccessRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4771
|
-
const parsedOutput = {
|
|
4772
|
-
...output,
|
|
4773
|
-
body: await parseErrorBody(output.body, context)
|
|
4774
|
-
};
|
|
4775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4776
|
-
switch (errorCode) {
|
|
4777
|
-
case "EntityNotFoundException":
|
|
4778
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4779
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4780
|
-
case "InvalidParameterException":
|
|
4781
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4782
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4783
|
-
case "OrganizationNotFoundException":
|
|
4784
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4785
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4786
|
-
case "OrganizationStateException":
|
|
4787
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4788
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4789
|
-
default:
|
|
4790
|
-
const parsedBody = parsedOutput.body;
|
|
4791
|
-
return throwDefaultError({
|
|
4792
|
-
output,
|
|
4793
|
-
parsedBody,
|
|
4794
|
-
errorCode
|
|
4795
|
-
});
|
|
4796
|
-
}
|
|
4797
|
-
}, "de_UpdateMobileDeviceAccessRuleCommandError");
|
|
4798
2392
|
var de_UpdatePrimaryEmailAddressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4799
2393
|
if (output.statusCode >= 300) {
|
|
4800
|
-
return
|
|
2394
|
+
return de_CommandError(output, context);
|
|
4801
2395
|
}
|
|
4802
2396
|
const data = await parseBody(output.body, context);
|
|
4803
2397
|
let contents = {};
|
|
@@ -4808,58 +2402,9 @@ var de_UpdatePrimaryEmailAddressCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4808
2402
|
};
|
|
4809
2403
|
return response;
|
|
4810
2404
|
}, "de_UpdatePrimaryEmailAddressCommand");
|
|
4811
|
-
var de_UpdatePrimaryEmailAddressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4812
|
-
const parsedOutput = {
|
|
4813
|
-
...output,
|
|
4814
|
-
body: await parseErrorBody(output.body, context)
|
|
4815
|
-
};
|
|
4816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4817
|
-
switch (errorCode) {
|
|
4818
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
4819
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
4820
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
4821
|
-
case "DirectoryUnavailableException":
|
|
4822
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
4823
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4824
|
-
case "EmailAddressInUseException":
|
|
4825
|
-
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
4826
|
-
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
4827
|
-
case "EntityNotFoundException":
|
|
4828
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4829
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4830
|
-
case "EntityStateException":
|
|
4831
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4832
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4833
|
-
case "InvalidParameterException":
|
|
4834
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4835
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4836
|
-
case "MailDomainNotFoundException":
|
|
4837
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
4838
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
4839
|
-
case "MailDomainStateException":
|
|
4840
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
4841
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
4842
|
-
case "OrganizationNotFoundException":
|
|
4843
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4844
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4845
|
-
case "OrganizationStateException":
|
|
4846
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4847
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4848
|
-
case "UnsupportedOperationException":
|
|
4849
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
4850
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4851
|
-
default:
|
|
4852
|
-
const parsedBody = parsedOutput.body;
|
|
4853
|
-
return throwDefaultError({
|
|
4854
|
-
output,
|
|
4855
|
-
parsedBody,
|
|
4856
|
-
errorCode
|
|
4857
|
-
});
|
|
4858
|
-
}
|
|
4859
|
-
}, "de_UpdatePrimaryEmailAddressCommandError");
|
|
4860
2405
|
var de_UpdateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4861
2406
|
if (output.statusCode >= 300) {
|
|
4862
|
-
return
|
|
2407
|
+
return de_CommandError(output, context);
|
|
4863
2408
|
}
|
|
4864
2409
|
const data = await parseBody(output.body, context);
|
|
4865
2410
|
let contents = {};
|
|
@@ -4870,61 +2415,9 @@ var de_UpdateResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4870
2415
|
};
|
|
4871
2416
|
return response;
|
|
4872
2417
|
}, "de_UpdateResourceCommand");
|
|
4873
|
-
var de_UpdateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4874
|
-
const parsedOutput = {
|
|
4875
|
-
...output,
|
|
4876
|
-
body: await parseErrorBody(output.body, context)
|
|
4877
|
-
};
|
|
4878
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4879
|
-
switch (errorCode) {
|
|
4880
|
-
case "DirectoryUnavailableException":
|
|
4881
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
4882
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4883
|
-
case "EmailAddressInUseException":
|
|
4884
|
-
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
4885
|
-
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
4886
|
-
case "EntityNotFoundException":
|
|
4887
|
-
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4888
|
-
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
4889
|
-
case "EntityStateException":
|
|
4890
|
-
case "com.amazonaws.workmail#EntityStateException":
|
|
4891
|
-
throw await de_EntityStateExceptionRes(parsedOutput, context);
|
|
4892
|
-
case "InvalidConfigurationException":
|
|
4893
|
-
case "com.amazonaws.workmail#InvalidConfigurationException":
|
|
4894
|
-
throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
|
|
4895
|
-
case "InvalidParameterException":
|
|
4896
|
-
case "com.amazonaws.workmail#InvalidParameterException":
|
|
4897
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4898
|
-
case "MailDomainNotFoundException":
|
|
4899
|
-
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
4900
|
-
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
4901
|
-
case "MailDomainStateException":
|
|
4902
|
-
case "com.amazonaws.workmail#MailDomainStateException":
|
|
4903
|
-
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
4904
|
-
case "NameAvailabilityException":
|
|
4905
|
-
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
4906
|
-
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
4907
|
-
case "OrganizationNotFoundException":
|
|
4908
|
-
case "com.amazonaws.workmail#OrganizationNotFoundException":
|
|
4909
|
-
throw await de_OrganizationNotFoundExceptionRes(parsedOutput, context);
|
|
4910
|
-
case "OrganizationStateException":
|
|
4911
|
-
case "com.amazonaws.workmail#OrganizationStateException":
|
|
4912
|
-
throw await de_OrganizationStateExceptionRes(parsedOutput, context);
|
|
4913
|
-
case "UnsupportedOperationException":
|
|
4914
|
-
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
4915
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4916
|
-
default:
|
|
4917
|
-
const parsedBody = parsedOutput.body;
|
|
4918
|
-
return throwDefaultError({
|
|
4919
|
-
output,
|
|
4920
|
-
parsedBody,
|
|
4921
|
-
errorCode
|
|
4922
|
-
});
|
|
4923
|
-
}
|
|
4924
|
-
}, "de_UpdateResourceCommandError");
|
|
4925
2418
|
var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4926
2419
|
if (output.statusCode >= 300) {
|
|
4927
|
-
return
|
|
2420
|
+
return de_CommandError(output, context);
|
|
4928
2421
|
}
|
|
4929
2422
|
const data = await parseBody(output.body, context);
|
|
4930
2423
|
let contents = {};
|
|
@@ -4935,19 +2428,13 @@ var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4935
2428
|
};
|
|
4936
2429
|
return response;
|
|
4937
2430
|
}, "de_UpdateUserCommand");
|
|
4938
|
-
var
|
|
2431
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4939
2432
|
const parsedOutput = {
|
|
4940
2433
|
...output,
|
|
4941
2434
|
body: await parseErrorBody(output.body, context)
|
|
4942
2435
|
};
|
|
4943
2436
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4944
2437
|
switch (errorCode) {
|
|
4945
|
-
case "DirectoryServiceAuthenticationFailedException":
|
|
4946
|
-
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
4947
|
-
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
4948
|
-
case "DirectoryUnavailableException":
|
|
4949
|
-
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
4950
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4951
2438
|
case "EntityNotFoundException":
|
|
4952
2439
|
case "com.amazonaws.workmail#EntityNotFoundException":
|
|
4953
2440
|
throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4966,6 +2453,54 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4966
2453
|
case "UnsupportedOperationException":
|
|
4967
2454
|
case "com.amazonaws.workmail#UnsupportedOperationException":
|
|
4968
2455
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2456
|
+
case "DirectoryServiceAuthenticationFailedException":
|
|
2457
|
+
case "com.amazonaws.workmail#DirectoryServiceAuthenticationFailedException":
|
|
2458
|
+
throw await de_DirectoryServiceAuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2459
|
+
case "DirectoryUnavailableException":
|
|
2460
|
+
case "com.amazonaws.workmail#DirectoryUnavailableException":
|
|
2461
|
+
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2462
|
+
case "ResourceNotFoundException":
|
|
2463
|
+
case "com.amazonaws.workmail#ResourceNotFoundException":
|
|
2464
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2465
|
+
case "EmailAddressInUseException":
|
|
2466
|
+
case "com.amazonaws.workmail#EmailAddressInUseException":
|
|
2467
|
+
throw await de_EmailAddressInUseExceptionRes(parsedOutput, context);
|
|
2468
|
+
case "LimitExceededException":
|
|
2469
|
+
case "com.amazonaws.workmail#LimitExceededException":
|
|
2470
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2471
|
+
case "MailDomainNotFoundException":
|
|
2472
|
+
case "com.amazonaws.workmail#MailDomainNotFoundException":
|
|
2473
|
+
throw await de_MailDomainNotFoundExceptionRes(parsedOutput, context);
|
|
2474
|
+
case "MailDomainStateException":
|
|
2475
|
+
case "com.amazonaws.workmail#MailDomainStateException":
|
|
2476
|
+
throw await de_MailDomainStateExceptionRes(parsedOutput, context);
|
|
2477
|
+
case "NameAvailabilityException":
|
|
2478
|
+
case "com.amazonaws.workmail#NameAvailabilityException":
|
|
2479
|
+
throw await de_NameAvailabilityExceptionRes(parsedOutput, context);
|
|
2480
|
+
case "ReservedNameException":
|
|
2481
|
+
case "com.amazonaws.workmail#ReservedNameException":
|
|
2482
|
+
throw await de_ReservedNameExceptionRes(parsedOutput, context);
|
|
2483
|
+
case "DirectoryInUseException":
|
|
2484
|
+
case "com.amazonaws.workmail#DirectoryInUseException":
|
|
2485
|
+
throw await de_DirectoryInUseExceptionRes(parsedOutput, context);
|
|
2486
|
+
case "InvalidPasswordException":
|
|
2487
|
+
case "com.amazonaws.workmail#InvalidPasswordException":
|
|
2488
|
+
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
2489
|
+
case "InvalidCustomSesConfigurationException":
|
|
2490
|
+
case "com.amazonaws.workmail#InvalidCustomSesConfigurationException":
|
|
2491
|
+
throw await de_InvalidCustomSesConfigurationExceptionRes(parsedOutput, context);
|
|
2492
|
+
case "MailDomainInUseException":
|
|
2493
|
+
case "com.amazonaws.workmail#MailDomainInUseException":
|
|
2494
|
+
throw await de_MailDomainInUseExceptionRes(parsedOutput, context);
|
|
2495
|
+
case "EntityAlreadyRegisteredException":
|
|
2496
|
+
case "com.amazonaws.workmail#EntityAlreadyRegisteredException":
|
|
2497
|
+
throw await de_EntityAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
2498
|
+
case "TooManyTagsException":
|
|
2499
|
+
case "com.amazonaws.workmail#TooManyTagsException":
|
|
2500
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2501
|
+
case "InvalidConfigurationException":
|
|
2502
|
+
case "com.amazonaws.workmail#InvalidConfigurationException":
|
|
2503
|
+
throw await de_InvalidConfigurationExceptionRes(parsedOutput, context);
|
|
4969
2504
|
default:
|
|
4970
2505
|
const parsedBody = parsedOutput.body;
|
|
4971
2506
|
return throwDefaultError({
|
|
@@ -4974,7 +2509,7 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4974
2509
|
errorCode
|
|
4975
2510
|
});
|
|
4976
2511
|
}
|
|
4977
|
-
}, "
|
|
2512
|
+
}, "de_CommandError");
|
|
4978
2513
|
var de_DirectoryInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4979
2514
|
const body = parsedOutput.body;
|
|
4980
2515
|
const deserialized = (0, import_smithy_client._json)(body);
|