@aws-sdk/client-ram 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 +122 -1334
- package/dist-es/protocols/Aws_restJson1.js +154 -1366
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1377,7 +1377,7 @@ var se_UpdateResourceShareCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1377
1377
|
}, "se_UpdateResourceShareCommand");
|
|
1378
1378
|
var de_AcceptResourceShareInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1379
1379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1380
|
-
return
|
|
1380
|
+
return de_CommandError(output, context);
|
|
1381
1381
|
}
|
|
1382
1382
|
const contents = (0, import_smithy_client.map)({
|
|
1383
1383
|
$metadata: deserializeMetadata(output)
|
|
@@ -1390,55 +1390,9 @@ var de_AcceptResourceShareInvitationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1390
1390
|
Object.assign(contents, doc);
|
|
1391
1391
|
return contents;
|
|
1392
1392
|
}, "de_AcceptResourceShareInvitationCommand");
|
|
1393
|
-
var de_AcceptResourceShareInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1394
|
-
const parsedOutput = {
|
|
1395
|
-
...output,
|
|
1396
|
-
body: await parseErrorBody(output.body, context)
|
|
1397
|
-
};
|
|
1398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
|
-
switch (errorCode) {
|
|
1400
|
-
case "IdempotentParameterMismatchException":
|
|
1401
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1402
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "InvalidClientTokenException":
|
|
1404
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1405
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "MalformedArnException":
|
|
1407
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1408
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1409
|
-
case "OperationNotPermittedException":
|
|
1410
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1411
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1412
|
-
case "ResourceShareInvitationAlreadyAcceptedException":
|
|
1413
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
|
|
1414
|
-
throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
1415
|
-
case "ResourceShareInvitationAlreadyRejectedException":
|
|
1416
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
1417
|
-
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "ResourceShareInvitationArnNotFoundException":
|
|
1419
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
1420
|
-
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "ResourceShareInvitationExpiredException":
|
|
1422
|
-
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
1423
|
-
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "ServerInternalException":
|
|
1425
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1426
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "ServiceUnavailableException":
|
|
1428
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1429
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody,
|
|
1435
|
-
errorCode
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
}, "de_AcceptResourceShareInvitationCommandError");
|
|
1439
1393
|
var de_AssociateResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1440
1394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1441
|
-
return
|
|
1395
|
+
return de_CommandError(output, context);
|
|
1442
1396
|
}
|
|
1443
1397
|
const contents = (0, import_smithy_client.map)({
|
|
1444
1398
|
$metadata: deserializeMetadata(output)
|
|
@@ -1451,58 +1405,9 @@ var de_AssociateResourceShareCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1451
1405
|
Object.assign(contents, doc);
|
|
1452
1406
|
return contents;
|
|
1453
1407
|
}, "de_AssociateResourceShareCommand");
|
|
1454
|
-
var de_AssociateResourceShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
|
-
const parsedOutput = {
|
|
1456
|
-
...output,
|
|
1457
|
-
body: await parseErrorBody(output.body, context)
|
|
1458
|
-
};
|
|
1459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
|
-
switch (errorCode) {
|
|
1461
|
-
case "IdempotentParameterMismatchException":
|
|
1462
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1463
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1464
|
-
case "InvalidClientTokenException":
|
|
1465
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1466
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1467
|
-
case "InvalidParameterException":
|
|
1468
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1469
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "InvalidStateTransitionException":
|
|
1471
|
-
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1472
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "MalformedArnException":
|
|
1474
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1475
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "OperationNotPermittedException":
|
|
1477
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1478
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1479
|
-
case "ResourceShareLimitExceededException":
|
|
1480
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
1481
|
-
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1482
|
-
case "ServerInternalException":
|
|
1483
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1484
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1485
|
-
case "ServiceUnavailableException":
|
|
1486
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1487
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1488
|
-
case "ThrottlingException":
|
|
1489
|
-
case "com.amazonaws.ram#ThrottlingException":
|
|
1490
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "UnknownResourceException":
|
|
1492
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1493
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1494
|
-
default:
|
|
1495
|
-
const parsedBody = parsedOutput.body;
|
|
1496
|
-
return throwDefaultError({
|
|
1497
|
-
output,
|
|
1498
|
-
parsedBody,
|
|
1499
|
-
errorCode
|
|
1500
|
-
});
|
|
1501
|
-
}
|
|
1502
|
-
}, "de_AssociateResourceShareCommandError");
|
|
1503
1408
|
var de_AssociateResourceSharePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1504
1409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1505
|
-
return
|
|
1410
|
+
return de_CommandError(output, context);
|
|
1506
1411
|
}
|
|
1507
1412
|
const contents = (0, import_smithy_client.map)({
|
|
1508
1413
|
$metadata: deserializeMetadata(output)
|
|
@@ -1515,46 +1420,9 @@ var de_AssociateResourceSharePermissionCommand = /* @__PURE__ */ __name(async (o
|
|
|
1515
1420
|
Object.assign(contents, doc);
|
|
1516
1421
|
return contents;
|
|
1517
1422
|
}, "de_AssociateResourceSharePermissionCommand");
|
|
1518
|
-
var de_AssociateResourceSharePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1519
|
-
const parsedOutput = {
|
|
1520
|
-
...output,
|
|
1521
|
-
body: await parseErrorBody(output.body, context)
|
|
1522
|
-
};
|
|
1523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1524
|
-
switch (errorCode) {
|
|
1525
|
-
case "InvalidClientTokenException":
|
|
1526
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1527
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1528
|
-
case "InvalidParameterException":
|
|
1529
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1530
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1531
|
-
case "MalformedArnException":
|
|
1532
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1533
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1534
|
-
case "OperationNotPermittedException":
|
|
1535
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1536
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "ServerInternalException":
|
|
1538
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1539
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ServiceUnavailableException":
|
|
1541
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1542
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "UnknownResourceException":
|
|
1544
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1545
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1546
|
-
default:
|
|
1547
|
-
const parsedBody = parsedOutput.body;
|
|
1548
|
-
return throwDefaultError({
|
|
1549
|
-
output,
|
|
1550
|
-
parsedBody,
|
|
1551
|
-
errorCode
|
|
1552
|
-
});
|
|
1553
|
-
}
|
|
1554
|
-
}, "de_AssociateResourceSharePermissionCommandError");
|
|
1555
1423
|
var de_CreatePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1556
1424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
-
return
|
|
1425
|
+
return de_CommandError(output, context);
|
|
1558
1426
|
}
|
|
1559
1427
|
const contents = (0, import_smithy_client.map)({
|
|
1560
1428
|
$metadata: deserializeMetadata(output)
|
|
@@ -1567,55 +1435,9 @@ var de_CreatePermissionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1567
1435
|
Object.assign(contents, doc);
|
|
1568
1436
|
return contents;
|
|
1569
1437
|
}, "de_CreatePermissionCommand");
|
|
1570
|
-
var de_CreatePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1571
|
-
const parsedOutput = {
|
|
1572
|
-
...output,
|
|
1573
|
-
body: await parseErrorBody(output.body, context)
|
|
1574
|
-
};
|
|
1575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
|
-
switch (errorCode) {
|
|
1577
|
-
case "IdempotentParameterMismatchException":
|
|
1578
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1579
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "InvalidClientTokenException":
|
|
1581
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1582
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "InvalidParameterException":
|
|
1584
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1585
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "InvalidPolicyException":
|
|
1587
|
-
case "com.amazonaws.ram#InvalidPolicyException":
|
|
1588
|
-
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "MalformedPolicyTemplateException":
|
|
1590
|
-
case "com.amazonaws.ram#MalformedPolicyTemplateException":
|
|
1591
|
-
throw await de_MalformedPolicyTemplateExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "OperationNotPermittedException":
|
|
1593
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1594
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "PermissionAlreadyExistsException":
|
|
1596
|
-
case "com.amazonaws.ram#PermissionAlreadyExistsException":
|
|
1597
|
-
throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "PermissionLimitExceededException":
|
|
1599
|
-
case "com.amazonaws.ram#PermissionLimitExceededException":
|
|
1600
|
-
throw await de_PermissionLimitExceededExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ServerInternalException":
|
|
1602
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1603
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "ServiceUnavailableException":
|
|
1605
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1606
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1607
|
-
default:
|
|
1608
|
-
const parsedBody = parsedOutput.body;
|
|
1609
|
-
return throwDefaultError({
|
|
1610
|
-
output,
|
|
1611
|
-
parsedBody,
|
|
1612
|
-
errorCode
|
|
1613
|
-
});
|
|
1614
|
-
}
|
|
1615
|
-
}, "de_CreatePermissionCommandError");
|
|
1616
1438
|
var de_CreatePermissionVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1617
1439
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1618
|
-
return
|
|
1440
|
+
return de_CommandError(output, context);
|
|
1619
1441
|
}
|
|
1620
1442
|
const contents = (0, import_smithy_client.map)({
|
|
1621
1443
|
$metadata: deserializeMetadata(output)
|
|
@@ -1628,55 +1450,9 @@ var de_CreatePermissionVersionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1628
1450
|
Object.assign(contents, doc);
|
|
1629
1451
|
return contents;
|
|
1630
1452
|
}, "de_CreatePermissionVersionCommand");
|
|
1631
|
-
var de_CreatePermissionVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1632
|
-
const parsedOutput = {
|
|
1633
|
-
...output,
|
|
1634
|
-
body: await parseErrorBody(output.body, context)
|
|
1635
|
-
};
|
|
1636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1637
|
-
switch (errorCode) {
|
|
1638
|
-
case "IdempotentParameterMismatchException":
|
|
1639
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1640
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "InvalidClientTokenException":
|
|
1642
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1643
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "InvalidParameterException":
|
|
1645
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1646
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "InvalidPolicyException":
|
|
1648
|
-
case "com.amazonaws.ram#InvalidPolicyException":
|
|
1649
|
-
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "MalformedArnException":
|
|
1651
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1652
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1653
|
-
case "MalformedPolicyTemplateException":
|
|
1654
|
-
case "com.amazonaws.ram#MalformedPolicyTemplateException":
|
|
1655
|
-
throw await de_MalformedPolicyTemplateExceptionRes(parsedOutput, context);
|
|
1656
|
-
case "PermissionVersionsLimitExceededException":
|
|
1657
|
-
case "com.amazonaws.ram#PermissionVersionsLimitExceededException":
|
|
1658
|
-
throw await de_PermissionVersionsLimitExceededExceptionRes(parsedOutput, context);
|
|
1659
|
-
case "ServerInternalException":
|
|
1660
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1661
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1662
|
-
case "ServiceUnavailableException":
|
|
1663
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1664
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1665
|
-
case "UnknownResourceException":
|
|
1666
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1667
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1668
|
-
default:
|
|
1669
|
-
const parsedBody = parsedOutput.body;
|
|
1670
|
-
return throwDefaultError({
|
|
1671
|
-
output,
|
|
1672
|
-
parsedBody,
|
|
1673
|
-
errorCode
|
|
1674
|
-
});
|
|
1675
|
-
}
|
|
1676
|
-
}, "de_CreatePermissionVersionCommandError");
|
|
1677
1453
|
var de_CreateResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1678
1454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1679
|
-
return
|
|
1455
|
+
return de_CommandError(output, context);
|
|
1680
1456
|
}
|
|
1681
1457
|
const contents = (0, import_smithy_client.map)({
|
|
1682
1458
|
$metadata: deserializeMetadata(output)
|
|
@@ -1689,61 +1465,9 @@ var de_CreateResourceShareCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1689
1465
|
Object.assign(contents, doc);
|
|
1690
1466
|
return contents;
|
|
1691
1467
|
}, "de_CreateResourceShareCommand");
|
|
1692
|
-
var de_CreateResourceShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1693
|
-
const parsedOutput = {
|
|
1694
|
-
...output,
|
|
1695
|
-
body: await parseErrorBody(output.body, context)
|
|
1696
|
-
};
|
|
1697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
|
-
switch (errorCode) {
|
|
1699
|
-
case "IdempotentParameterMismatchException":
|
|
1700
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1701
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "InvalidClientTokenException":
|
|
1703
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1704
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "InvalidParameterException":
|
|
1706
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1707
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "InvalidStateTransitionException":
|
|
1709
|
-
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1710
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "MalformedArnException":
|
|
1712
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1713
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "OperationNotPermittedException":
|
|
1715
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1716
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "ResourceShareLimitExceededException":
|
|
1718
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
1719
|
-
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "ServerInternalException":
|
|
1721
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1722
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "ServiceUnavailableException":
|
|
1724
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1725
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1726
|
-
case "TagLimitExceededException":
|
|
1727
|
-
case "com.amazonaws.ram#TagLimitExceededException":
|
|
1728
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
1729
|
-
case "TagPolicyViolationException":
|
|
1730
|
-
case "com.amazonaws.ram#TagPolicyViolationException":
|
|
1731
|
-
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
1732
|
-
case "UnknownResourceException":
|
|
1733
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1734
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1735
|
-
default:
|
|
1736
|
-
const parsedBody = parsedOutput.body;
|
|
1737
|
-
return throwDefaultError({
|
|
1738
|
-
output,
|
|
1739
|
-
parsedBody,
|
|
1740
|
-
errorCode
|
|
1741
|
-
});
|
|
1742
|
-
}
|
|
1743
|
-
}, "de_CreateResourceShareCommandError");
|
|
1744
1468
|
var de_DeletePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1745
1469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1746
|
-
return
|
|
1470
|
+
return de_CommandError(output, context);
|
|
1747
1471
|
}
|
|
1748
1472
|
const contents = (0, import_smithy_client.map)({
|
|
1749
1473
|
$metadata: deserializeMetadata(output)
|
|
@@ -1757,46 +1481,9 @@ var de_DeletePermissionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1757
1481
|
Object.assign(contents, doc);
|
|
1758
1482
|
return contents;
|
|
1759
1483
|
}, "de_DeletePermissionCommand");
|
|
1760
|
-
var de_DeletePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1761
|
-
const parsedOutput = {
|
|
1762
|
-
...output,
|
|
1763
|
-
body: await parseErrorBody(output.body, context)
|
|
1764
|
-
};
|
|
1765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
-
switch (errorCode) {
|
|
1767
|
-
case "IdempotentParameterMismatchException":
|
|
1768
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1769
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "InvalidClientTokenException":
|
|
1771
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1772
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1773
|
-
case "MalformedArnException":
|
|
1774
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1775
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1776
|
-
case "OperationNotPermittedException":
|
|
1777
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1778
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1779
|
-
case "ServerInternalException":
|
|
1780
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1781
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "ServiceUnavailableException":
|
|
1783
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1784
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1785
|
-
case "UnknownResourceException":
|
|
1786
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1787
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1788
|
-
default:
|
|
1789
|
-
const parsedBody = parsedOutput.body;
|
|
1790
|
-
return throwDefaultError({
|
|
1791
|
-
output,
|
|
1792
|
-
parsedBody,
|
|
1793
|
-
errorCode
|
|
1794
|
-
});
|
|
1795
|
-
}
|
|
1796
|
-
}, "de_DeletePermissionCommandError");
|
|
1797
1484
|
var de_DeletePermissionVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1798
1485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1799
|
-
return
|
|
1486
|
+
return de_CommandError(output, context);
|
|
1800
1487
|
}
|
|
1801
1488
|
const contents = (0, import_smithy_client.map)({
|
|
1802
1489
|
$metadata: deserializeMetadata(output)
|
|
@@ -1810,49 +1497,9 @@ var de_DeletePermissionVersionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1810
1497
|
Object.assign(contents, doc);
|
|
1811
1498
|
return contents;
|
|
1812
1499
|
}, "de_DeletePermissionVersionCommand");
|
|
1813
|
-
var de_DeletePermissionVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1814
|
-
const parsedOutput = {
|
|
1815
|
-
...output,
|
|
1816
|
-
body: await parseErrorBody(output.body, context)
|
|
1817
|
-
};
|
|
1818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1819
|
-
switch (errorCode) {
|
|
1820
|
-
case "IdempotentParameterMismatchException":
|
|
1821
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1822
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "InvalidClientTokenException":
|
|
1824
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1825
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "InvalidParameterException":
|
|
1827
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1828
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "MalformedArnException":
|
|
1830
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1831
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "OperationNotPermittedException":
|
|
1833
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1834
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "ServerInternalException":
|
|
1836
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1837
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "ServiceUnavailableException":
|
|
1839
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1840
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "UnknownResourceException":
|
|
1842
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1843
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1844
|
-
default:
|
|
1845
|
-
const parsedBody = parsedOutput.body;
|
|
1846
|
-
return throwDefaultError({
|
|
1847
|
-
output,
|
|
1848
|
-
parsedBody,
|
|
1849
|
-
errorCode
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
}, "de_DeletePermissionVersionCommandError");
|
|
1853
1500
|
var de_DeleteResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1854
1501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1855
|
-
return
|
|
1502
|
+
return de_CommandError(output, context);
|
|
1856
1503
|
}
|
|
1857
1504
|
const contents = (0, import_smithy_client.map)({
|
|
1858
1505
|
$metadata: deserializeMetadata(output)
|
|
@@ -1865,52 +1512,9 @@ var de_DeleteResourceShareCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1865
1512
|
Object.assign(contents, doc);
|
|
1866
1513
|
return contents;
|
|
1867
1514
|
}, "de_DeleteResourceShareCommand");
|
|
1868
|
-
var de_DeleteResourceShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1869
|
-
const parsedOutput = {
|
|
1870
|
-
...output,
|
|
1871
|
-
body: await parseErrorBody(output.body, context)
|
|
1872
|
-
};
|
|
1873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
-
switch (errorCode) {
|
|
1875
|
-
case "IdempotentParameterMismatchException":
|
|
1876
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1877
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "InvalidClientTokenException":
|
|
1879
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1880
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "InvalidParameterException":
|
|
1882
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1883
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "InvalidStateTransitionException":
|
|
1885
|
-
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1886
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "MalformedArnException":
|
|
1888
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1889
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "OperationNotPermittedException":
|
|
1891
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1892
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "ServerInternalException":
|
|
1894
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1895
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ServiceUnavailableException":
|
|
1897
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1898
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "UnknownResourceException":
|
|
1900
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1901
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1902
|
-
default:
|
|
1903
|
-
const parsedBody = parsedOutput.body;
|
|
1904
|
-
return throwDefaultError({
|
|
1905
|
-
output,
|
|
1906
|
-
parsedBody,
|
|
1907
|
-
errorCode
|
|
1908
|
-
});
|
|
1909
|
-
}
|
|
1910
|
-
}, "de_DeleteResourceShareCommandError");
|
|
1911
1515
|
var de_DisassociateResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1912
1516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1913
|
-
return
|
|
1517
|
+
return de_CommandError(output, context);
|
|
1914
1518
|
}
|
|
1915
1519
|
const contents = (0, import_smithy_client.map)({
|
|
1916
1520
|
$metadata: deserializeMetadata(output)
|
|
@@ -1923,55 +1527,9 @@ var de_DisassociateResourceShareCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1923
1527
|
Object.assign(contents, doc);
|
|
1924
1528
|
return contents;
|
|
1925
1529
|
}, "de_DisassociateResourceShareCommand");
|
|
1926
|
-
var de_DisassociateResourceShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1927
|
-
const parsedOutput = {
|
|
1928
|
-
...output,
|
|
1929
|
-
body: await parseErrorBody(output.body, context)
|
|
1930
|
-
};
|
|
1931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
-
switch (errorCode) {
|
|
1933
|
-
case "IdempotentParameterMismatchException":
|
|
1934
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
1935
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "InvalidClientTokenException":
|
|
1937
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1938
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "InvalidParameterException":
|
|
1940
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1941
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "InvalidStateTransitionException":
|
|
1943
|
-
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1944
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "MalformedArnException":
|
|
1946
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
1947
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "OperationNotPermittedException":
|
|
1949
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
1950
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1951
|
-
case "ResourceShareLimitExceededException":
|
|
1952
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
1953
|
-
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "ServerInternalException":
|
|
1955
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
1956
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "ServiceUnavailableException":
|
|
1958
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
1959
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "UnknownResourceException":
|
|
1961
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
1962
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1963
|
-
default:
|
|
1964
|
-
const parsedBody = parsedOutput.body;
|
|
1965
|
-
return throwDefaultError({
|
|
1966
|
-
output,
|
|
1967
|
-
parsedBody,
|
|
1968
|
-
errorCode
|
|
1969
|
-
});
|
|
1970
|
-
}
|
|
1971
|
-
}, "de_DisassociateResourceShareCommandError");
|
|
1972
1530
|
var de_DisassociateResourceSharePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1973
1531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1974
|
-
return
|
|
1532
|
+
return de_CommandError(output, context);
|
|
1975
1533
|
}
|
|
1976
1534
|
const contents = (0, import_smithy_client.map)({
|
|
1977
1535
|
$metadata: deserializeMetadata(output)
|
|
@@ -1984,49 +1542,9 @@ var de_DisassociateResourceSharePermissionCommand = /* @__PURE__ */ __name(async
|
|
|
1984
1542
|
Object.assign(contents, doc);
|
|
1985
1543
|
return contents;
|
|
1986
1544
|
}, "de_DisassociateResourceSharePermissionCommand");
|
|
1987
|
-
var de_DisassociateResourceSharePermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1988
|
-
const parsedOutput = {
|
|
1989
|
-
...output,
|
|
1990
|
-
body: await parseErrorBody(output.body, context)
|
|
1991
|
-
};
|
|
1992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
|
-
switch (errorCode) {
|
|
1994
|
-
case "InvalidClientTokenException":
|
|
1995
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
1996
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "InvalidParameterException":
|
|
1998
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
1999
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "InvalidStateTransitionException":
|
|
2001
|
-
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
2002
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "MalformedArnException":
|
|
2004
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2005
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "OperationNotPermittedException":
|
|
2007
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2008
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "ServerInternalException":
|
|
2010
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2011
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "ServiceUnavailableException":
|
|
2013
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2014
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "UnknownResourceException":
|
|
2016
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2017
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2018
|
-
default:
|
|
2019
|
-
const parsedBody = parsedOutput.body;
|
|
2020
|
-
return throwDefaultError({
|
|
2021
|
-
output,
|
|
2022
|
-
parsedBody,
|
|
2023
|
-
errorCode
|
|
2024
|
-
});
|
|
2025
|
-
}
|
|
2026
|
-
}, "de_DisassociateResourceSharePermissionCommandError");
|
|
2027
1545
|
var de_EnableSharingWithAwsOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2028
1546
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2029
|
-
return
|
|
1547
|
+
return de_CommandError(output, context);
|
|
2030
1548
|
}
|
|
2031
1549
|
const contents = (0, import_smithy_client.map)({
|
|
2032
1550
|
$metadata: deserializeMetadata(output)
|
|
@@ -2038,34 +1556,9 @@ var de_EnableSharingWithAwsOrganizationCommand = /* @__PURE__ */ __name(async (o
|
|
|
2038
1556
|
Object.assign(contents, doc);
|
|
2039
1557
|
return contents;
|
|
2040
1558
|
}, "de_EnableSharingWithAwsOrganizationCommand");
|
|
2041
|
-
var de_EnableSharingWithAwsOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2042
|
-
const parsedOutput = {
|
|
2043
|
-
...output,
|
|
2044
|
-
body: await parseErrorBody(output.body, context)
|
|
2045
|
-
};
|
|
2046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2047
|
-
switch (errorCode) {
|
|
2048
|
-
case "OperationNotPermittedException":
|
|
2049
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2050
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ServerInternalException":
|
|
2052
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2053
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "ServiceUnavailableException":
|
|
2055
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2056
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2057
|
-
default:
|
|
2058
|
-
const parsedBody = parsedOutput.body;
|
|
2059
|
-
return throwDefaultError({
|
|
2060
|
-
output,
|
|
2061
|
-
parsedBody,
|
|
2062
|
-
errorCode
|
|
2063
|
-
});
|
|
2064
|
-
}
|
|
2065
|
-
}, "de_EnableSharingWithAwsOrganizationCommandError");
|
|
2066
1559
|
var de_GetPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2067
1560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2068
|
-
return
|
|
1561
|
+
return de_CommandError(output, context);
|
|
2069
1562
|
}
|
|
2070
1563
|
const contents = (0, import_smithy_client.map)({
|
|
2071
1564
|
$metadata: deserializeMetadata(output)
|
|
@@ -2077,43 +1570,9 @@ var de_GetPermissionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2077
1570
|
Object.assign(contents, doc);
|
|
2078
1571
|
return contents;
|
|
2079
1572
|
}, "de_GetPermissionCommand");
|
|
2080
|
-
var de_GetPermissionCommandError = /* @__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 "InvalidParameterException":
|
|
2088
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2089
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "MalformedArnException":
|
|
2091
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2092
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "OperationNotPermittedException":
|
|
2094
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2095
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "ServerInternalException":
|
|
2097
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2098
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "ServiceUnavailableException":
|
|
2100
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2101
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "UnknownResourceException":
|
|
2103
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2104
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2105
|
-
default:
|
|
2106
|
-
const parsedBody = parsedOutput.body;
|
|
2107
|
-
return throwDefaultError({
|
|
2108
|
-
output,
|
|
2109
|
-
parsedBody,
|
|
2110
|
-
errorCode
|
|
2111
|
-
});
|
|
2112
|
-
}
|
|
2113
|
-
}, "de_GetPermissionCommandError");
|
|
2114
1573
|
var de_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2115
1574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2116
|
-
return
|
|
1575
|
+
return de_CommandError(output, context);
|
|
2117
1576
|
}
|
|
2118
1577
|
const contents = (0, import_smithy_client.map)({
|
|
2119
1578
|
$metadata: deserializeMetadata(output)
|
|
@@ -2126,43 +1585,9 @@ var de_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2126
1585
|
Object.assign(contents, doc);
|
|
2127
1586
|
return contents;
|
|
2128
1587
|
}, "de_GetResourcePoliciesCommand");
|
|
2129
|
-
var de_GetResourcePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2130
|
-
const parsedOutput = {
|
|
2131
|
-
...output,
|
|
2132
|
-
body: await parseErrorBody(output.body, context)
|
|
2133
|
-
};
|
|
2134
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
-
switch (errorCode) {
|
|
2136
|
-
case "InvalidNextTokenException":
|
|
2137
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2138
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2139
|
-
case "InvalidParameterException":
|
|
2140
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2141
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "MalformedArnException":
|
|
2143
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2144
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "ResourceArnNotFoundException":
|
|
2146
|
-
case "com.amazonaws.ram#ResourceArnNotFoundException":
|
|
2147
|
-
throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "ServerInternalException":
|
|
2149
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2150
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "ServiceUnavailableException":
|
|
2152
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2153
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2154
|
-
default:
|
|
2155
|
-
const parsedBody = parsedOutput.body;
|
|
2156
|
-
return throwDefaultError({
|
|
2157
|
-
output,
|
|
2158
|
-
parsedBody,
|
|
2159
|
-
errorCode
|
|
2160
|
-
});
|
|
2161
|
-
}
|
|
2162
|
-
}, "de_GetResourcePoliciesCommandError");
|
|
2163
1588
|
var de_GetResourceShareAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2164
1589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2165
|
-
return
|
|
1590
|
+
return de_CommandError(output, context);
|
|
2166
1591
|
}
|
|
2167
1592
|
const contents = (0, import_smithy_client.map)({
|
|
2168
1593
|
$metadata: deserializeMetadata(output)
|
|
@@ -2175,46 +1600,9 @@ var de_GetResourceShareAssociationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2175
1600
|
Object.assign(contents, doc);
|
|
2176
1601
|
return contents;
|
|
2177
1602
|
}, "de_GetResourceShareAssociationsCommand");
|
|
2178
|
-
var de_GetResourceShareAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2179
|
-
const parsedOutput = {
|
|
2180
|
-
...output,
|
|
2181
|
-
body: await parseErrorBody(output.body, context)
|
|
2182
|
-
};
|
|
2183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2184
|
-
switch (errorCode) {
|
|
2185
|
-
case "InvalidNextTokenException":
|
|
2186
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2187
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "InvalidParameterException":
|
|
2189
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2190
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "MalformedArnException":
|
|
2192
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2193
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "OperationNotPermittedException":
|
|
2195
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2196
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ServerInternalException":
|
|
2198
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2199
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "ServiceUnavailableException":
|
|
2201
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2202
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "UnknownResourceException":
|
|
2204
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2205
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2206
|
-
default:
|
|
2207
|
-
const parsedBody = parsedOutput.body;
|
|
2208
|
-
return throwDefaultError({
|
|
2209
|
-
output,
|
|
2210
|
-
parsedBody,
|
|
2211
|
-
errorCode
|
|
2212
|
-
});
|
|
2213
|
-
}
|
|
2214
|
-
}, "de_GetResourceShareAssociationsCommandError");
|
|
2215
1603
|
var de_GetResourceShareInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2216
1604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2217
|
-
return
|
|
1605
|
+
return de_CommandError(output, context);
|
|
2218
1606
|
}
|
|
2219
1607
|
const contents = (0, import_smithy_client.map)({
|
|
2220
1608
|
$metadata: deserializeMetadata(output)
|
|
@@ -2227,49 +1615,9 @@ var de_GetResourceShareInvitationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
2227
1615
|
Object.assign(contents, doc);
|
|
2228
1616
|
return contents;
|
|
2229
1617
|
}, "de_GetResourceShareInvitationsCommand");
|
|
2230
|
-
var de_GetResourceShareInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2231
|
-
const parsedOutput = {
|
|
2232
|
-
...output,
|
|
2233
|
-
body: await parseErrorBody(output.body, context)
|
|
2234
|
-
};
|
|
2235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2236
|
-
switch (errorCode) {
|
|
2237
|
-
case "InvalidMaxResultsException":
|
|
2238
|
-
case "com.amazonaws.ram#InvalidMaxResultsException":
|
|
2239
|
-
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "InvalidNextTokenException":
|
|
2241
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2242
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2243
|
-
case "InvalidParameterException":
|
|
2244
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2245
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2246
|
-
case "MalformedArnException":
|
|
2247
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2248
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2249
|
-
case "ResourceShareInvitationArnNotFoundException":
|
|
2250
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
2251
|
-
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
2252
|
-
case "ServerInternalException":
|
|
2253
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2254
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2255
|
-
case "ServiceUnavailableException":
|
|
2256
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2257
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2258
|
-
case "UnknownResourceException":
|
|
2259
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2260
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2261
|
-
default:
|
|
2262
|
-
const parsedBody = parsedOutput.body;
|
|
2263
|
-
return throwDefaultError({
|
|
2264
|
-
output,
|
|
2265
|
-
parsedBody,
|
|
2266
|
-
errorCode
|
|
2267
|
-
});
|
|
2268
|
-
}
|
|
2269
|
-
}, "de_GetResourceShareInvitationsCommandError");
|
|
2270
1618
|
var de_GetResourceSharesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2271
1619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2272
|
-
return
|
|
1620
|
+
return de_CommandError(output, context);
|
|
2273
1621
|
}
|
|
2274
1622
|
const contents = (0, import_smithy_client.map)({
|
|
2275
1623
|
$metadata: deserializeMetadata(output)
|
|
@@ -2282,43 +1630,9 @@ var de_GetResourceSharesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2282
1630
|
Object.assign(contents, doc);
|
|
2283
1631
|
return contents;
|
|
2284
1632
|
}, "de_GetResourceSharesCommand");
|
|
2285
|
-
var de_GetResourceSharesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2286
|
-
const parsedOutput = {
|
|
2287
|
-
...output,
|
|
2288
|
-
body: await parseErrorBody(output.body, context)
|
|
2289
|
-
};
|
|
2290
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
|
-
switch (errorCode) {
|
|
2292
|
-
case "InvalidNextTokenException":
|
|
2293
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2294
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "InvalidParameterException":
|
|
2296
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2297
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "MalformedArnException":
|
|
2299
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2300
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "ServerInternalException":
|
|
2302
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2303
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "ServiceUnavailableException":
|
|
2305
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2306
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2307
|
-
case "UnknownResourceException":
|
|
2308
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2309
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2310
|
-
default:
|
|
2311
|
-
const parsedBody = parsedOutput.body;
|
|
2312
|
-
return throwDefaultError({
|
|
2313
|
-
output,
|
|
2314
|
-
parsedBody,
|
|
2315
|
-
errorCode
|
|
2316
|
-
});
|
|
2317
|
-
}
|
|
2318
|
-
}, "de_GetResourceSharesCommandError");
|
|
2319
1633
|
var de_ListPendingInvitationResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2320
1634
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2321
|
-
return
|
|
1635
|
+
return de_CommandError(output, context);
|
|
2322
1636
|
}
|
|
2323
1637
|
const contents = (0, import_smithy_client.map)({
|
|
2324
1638
|
$metadata: deserializeMetadata(output)
|
|
@@ -2331,52 +1645,9 @@ var de_ListPendingInvitationResourcesCommand = /* @__PURE__ */ __name(async (out
|
|
|
2331
1645
|
Object.assign(contents, doc);
|
|
2332
1646
|
return contents;
|
|
2333
1647
|
}, "de_ListPendingInvitationResourcesCommand");
|
|
2334
|
-
var de_ListPendingInvitationResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2335
|
-
const parsedOutput = {
|
|
2336
|
-
...output,
|
|
2337
|
-
body: await parseErrorBody(output.body, context)
|
|
2338
|
-
};
|
|
2339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2340
|
-
switch (errorCode) {
|
|
2341
|
-
case "InvalidNextTokenException":
|
|
2342
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2343
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "InvalidParameterException":
|
|
2345
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2346
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "MalformedArnException":
|
|
2348
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2349
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "MissingRequiredParameterException":
|
|
2351
|
-
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
2352
|
-
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "ResourceShareInvitationAlreadyRejectedException":
|
|
2354
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
2355
|
-
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "ResourceShareInvitationArnNotFoundException":
|
|
2357
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
2358
|
-
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "ResourceShareInvitationExpiredException":
|
|
2360
|
-
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
2361
|
-
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "ServerInternalException":
|
|
2363
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2364
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ServiceUnavailableException":
|
|
2366
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2367
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2368
|
-
default:
|
|
2369
|
-
const parsedBody = parsedOutput.body;
|
|
2370
|
-
return throwDefaultError({
|
|
2371
|
-
output,
|
|
2372
|
-
parsedBody,
|
|
2373
|
-
errorCode
|
|
2374
|
-
});
|
|
2375
|
-
}
|
|
2376
|
-
}, "de_ListPendingInvitationResourcesCommandError");
|
|
2377
1648
|
var de_ListPermissionAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2378
1649
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2379
|
-
return
|
|
1650
|
+
return de_CommandError(output, context);
|
|
2380
1651
|
}
|
|
2381
1652
|
const contents = (0, import_smithy_client.map)({
|
|
2382
1653
|
$metadata: deserializeMetadata(output)
|
|
@@ -2389,138 +1660,39 @@ var de_ListPermissionAssociationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2389
1660
|
Object.assign(contents, doc);
|
|
2390
1661
|
return contents;
|
|
2391
1662
|
}, "de_ListPermissionAssociationsCommand");
|
|
2392
|
-
var de_ListPermissionAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2393
|
-
const parsedOutput = {
|
|
2394
|
-
...output,
|
|
2395
|
-
body: await parseErrorBody(output.body, context)
|
|
2396
|
-
};
|
|
2397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2398
|
-
switch (errorCode) {
|
|
2399
|
-
case "InvalidNextTokenException":
|
|
2400
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2401
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "InvalidParameterException":
|
|
2403
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2404
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2405
|
-
case "MalformedArnException":
|
|
2406
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2407
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "ServerInternalException":
|
|
2409
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2410
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "ServiceUnavailableException":
|
|
2412
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2413
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2414
|
-
default:
|
|
2415
|
-
const parsedBody = parsedOutput.body;
|
|
2416
|
-
return throwDefaultError({
|
|
2417
|
-
output,
|
|
2418
|
-
parsedBody,
|
|
2419
|
-
errorCode
|
|
2420
|
-
});
|
|
2421
|
-
}
|
|
2422
|
-
}, "de_ListPermissionAssociationsCommandError");
|
|
2423
1663
|
var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2424
1664
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2425
|
-
return
|
|
1665
|
+
return de_CommandError(output, context);
|
|
2426
1666
|
}
|
|
2427
1667
|
const contents = (0, import_smithy_client.map)({
|
|
2428
1668
|
$metadata: deserializeMetadata(output)
|
|
2429
1669
|
});
|
|
2430
1670
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2431
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2432
|
-
nextToken: import_smithy_client.expectString,
|
|
2433
|
-
permissions: (_) => de_ResourceSharePermissionList(_, context)
|
|
2434
|
-
});
|
|
2435
|
-
Object.assign(contents, doc);
|
|
2436
|
-
return contents;
|
|
2437
|
-
}, "de_ListPermissionsCommand");
|
|
2438
|
-
var
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
body: await parseErrorBody(output.body, context)
|
|
2442
|
-
};
|
|
2443
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2444
|
-
switch (errorCode) {
|
|
2445
|
-
case "InvalidNextTokenException":
|
|
2446
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2447
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2448
|
-
case "InvalidParameterException":
|
|
2449
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2450
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2451
|
-
case "OperationNotPermittedException":
|
|
2452
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2453
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2454
|
-
case "ServerInternalException":
|
|
2455
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2456
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2457
|
-
case "ServiceUnavailableException":
|
|
2458
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2459
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2460
|
-
default:
|
|
2461
|
-
const parsedBody = parsedOutput.body;
|
|
2462
|
-
return throwDefaultError({
|
|
2463
|
-
output,
|
|
2464
|
-
parsedBody,
|
|
2465
|
-
errorCode
|
|
2466
|
-
});
|
|
2467
|
-
}
|
|
2468
|
-
}, "de_ListPermissionsCommandError");
|
|
2469
|
-
var de_ListPermissionVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2470
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2471
|
-
return de_ListPermissionVersionsCommandError(output, context);
|
|
2472
|
-
}
|
|
2473
|
-
const contents = (0, import_smithy_client.map)({
|
|
2474
|
-
$metadata: deserializeMetadata(output)
|
|
2475
|
-
});
|
|
2476
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2477
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2478
|
-
nextToken: import_smithy_client.expectString,
|
|
2479
|
-
permissions: (_) => de_ResourceSharePermissionList(_, context)
|
|
2480
|
-
});
|
|
2481
|
-
Object.assign(contents, doc);
|
|
2482
|
-
return contents;
|
|
2483
|
-
}, "de_ListPermissionVersionsCommand");
|
|
2484
|
-
var de_ListPermissionVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2485
|
-
const parsedOutput = {
|
|
2486
|
-
...output,
|
|
2487
|
-
body: await parseErrorBody(output.body, context)
|
|
2488
|
-
};
|
|
2489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2490
|
-
switch (errorCode) {
|
|
2491
|
-
case "InvalidNextTokenException":
|
|
2492
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2493
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2494
|
-
case "InvalidParameterException":
|
|
2495
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2496
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2497
|
-
case "MalformedArnException":
|
|
2498
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2499
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2500
|
-
case "OperationNotPermittedException":
|
|
2501
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2502
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "ServerInternalException":
|
|
2504
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2505
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "ServiceUnavailableException":
|
|
2507
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2508
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2509
|
-
case "UnknownResourceException":
|
|
2510
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2511
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2512
|
-
default:
|
|
2513
|
-
const parsedBody = parsedOutput.body;
|
|
2514
|
-
return throwDefaultError({
|
|
2515
|
-
output,
|
|
2516
|
-
parsedBody,
|
|
2517
|
-
errorCode
|
|
2518
|
-
});
|
|
1671
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1672
|
+
nextToken: import_smithy_client.expectString,
|
|
1673
|
+
permissions: (_) => de_ResourceSharePermissionList(_, context)
|
|
1674
|
+
});
|
|
1675
|
+
Object.assign(contents, doc);
|
|
1676
|
+
return contents;
|
|
1677
|
+
}, "de_ListPermissionsCommand");
|
|
1678
|
+
var de_ListPermissionVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1679
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1680
|
+
return de_CommandError(output, context);
|
|
2519
1681
|
}
|
|
2520
|
-
|
|
1682
|
+
const contents = (0, import_smithy_client.map)({
|
|
1683
|
+
$metadata: deserializeMetadata(output)
|
|
1684
|
+
});
|
|
1685
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1686
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1687
|
+
nextToken: import_smithy_client.expectString,
|
|
1688
|
+
permissions: (_) => de_ResourceSharePermissionList(_, context)
|
|
1689
|
+
});
|
|
1690
|
+
Object.assign(contents, doc);
|
|
1691
|
+
return contents;
|
|
1692
|
+
}, "de_ListPermissionVersionsCommand");
|
|
2521
1693
|
var de_ListPrincipalsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2522
1694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2523
|
-
return
|
|
1695
|
+
return de_CommandError(output, context);
|
|
2524
1696
|
}
|
|
2525
1697
|
const contents = (0, import_smithy_client.map)({
|
|
2526
1698
|
$metadata: deserializeMetadata(output)
|
|
@@ -2533,43 +1705,9 @@ var de_ListPrincipalsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2533
1705
|
Object.assign(contents, doc);
|
|
2534
1706
|
return contents;
|
|
2535
1707
|
}, "de_ListPrincipalsCommand");
|
|
2536
|
-
var de_ListPrincipalsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2537
|
-
const parsedOutput = {
|
|
2538
|
-
...output,
|
|
2539
|
-
body: await parseErrorBody(output.body, context)
|
|
2540
|
-
};
|
|
2541
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2542
|
-
switch (errorCode) {
|
|
2543
|
-
case "InvalidNextTokenException":
|
|
2544
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2545
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2546
|
-
case "InvalidParameterException":
|
|
2547
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2548
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "MalformedArnException":
|
|
2550
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2551
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "ServerInternalException":
|
|
2553
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2554
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2555
|
-
case "ServiceUnavailableException":
|
|
2556
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2557
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2558
|
-
case "UnknownResourceException":
|
|
2559
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2560
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2561
|
-
default:
|
|
2562
|
-
const parsedBody = parsedOutput.body;
|
|
2563
|
-
return throwDefaultError({
|
|
2564
|
-
output,
|
|
2565
|
-
parsedBody,
|
|
2566
|
-
errorCode
|
|
2567
|
-
});
|
|
2568
|
-
}
|
|
2569
|
-
}, "de_ListPrincipalsCommandError");
|
|
2570
1708
|
var de_ListReplacePermissionAssociationsWorkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2571
1709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2572
|
-
return
|
|
1710
|
+
return de_CommandError(output, context);
|
|
2573
1711
|
}
|
|
2574
1712
|
const contents = (0, import_smithy_client.map)({
|
|
2575
1713
|
$metadata: deserializeMetadata(output)
|
|
@@ -2582,37 +1720,9 @@ var de_ListReplacePermissionAssociationsWorkCommand = /* @__PURE__ */ __name(asy
|
|
|
2582
1720
|
Object.assign(contents, doc);
|
|
2583
1721
|
return contents;
|
|
2584
1722
|
}, "de_ListReplacePermissionAssociationsWorkCommand");
|
|
2585
|
-
var de_ListReplacePermissionAssociationsWorkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2586
|
-
const parsedOutput = {
|
|
2587
|
-
...output,
|
|
2588
|
-
body: await parseErrorBody(output.body, context)
|
|
2589
|
-
};
|
|
2590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
|
-
switch (errorCode) {
|
|
2592
|
-
case "InvalidNextTokenException":
|
|
2593
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2594
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "InvalidParameterException":
|
|
2596
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2597
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2598
|
-
case "ServerInternalException":
|
|
2599
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2600
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2601
|
-
case "ServiceUnavailableException":
|
|
2602
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2603
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2604
|
-
default:
|
|
2605
|
-
const parsedBody = parsedOutput.body;
|
|
2606
|
-
return throwDefaultError({
|
|
2607
|
-
output,
|
|
2608
|
-
parsedBody,
|
|
2609
|
-
errorCode
|
|
2610
|
-
});
|
|
2611
|
-
}
|
|
2612
|
-
}, "de_ListReplacePermissionAssociationsWorkCommandError");
|
|
2613
1723
|
var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2614
1724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2615
|
-
return
|
|
1725
|
+
return de_CommandError(output, context);
|
|
2616
1726
|
}
|
|
2617
1727
|
const contents = (0, import_smithy_client.map)({
|
|
2618
1728
|
$metadata: deserializeMetadata(output)
|
|
@@ -2625,46 +1735,9 @@ var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2625
1735
|
Object.assign(contents, doc);
|
|
2626
1736
|
return contents;
|
|
2627
1737
|
}, "de_ListResourcesCommand");
|
|
2628
|
-
var de_ListResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2629
|
-
const parsedOutput = {
|
|
2630
|
-
...output,
|
|
2631
|
-
body: await parseErrorBody(output.body, context)
|
|
2632
|
-
};
|
|
2633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2634
|
-
switch (errorCode) {
|
|
2635
|
-
case "InvalidNextTokenException":
|
|
2636
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2637
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2638
|
-
case "InvalidParameterException":
|
|
2639
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2640
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2641
|
-
case "InvalidResourceTypeException":
|
|
2642
|
-
case "com.amazonaws.ram#InvalidResourceTypeException":
|
|
2643
|
-
throw await de_InvalidResourceTypeExceptionRes(parsedOutput, context);
|
|
2644
|
-
case "MalformedArnException":
|
|
2645
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2646
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2647
|
-
case "ServerInternalException":
|
|
2648
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2649
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2650
|
-
case "ServiceUnavailableException":
|
|
2651
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2652
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2653
|
-
case "UnknownResourceException":
|
|
2654
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2655
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2656
|
-
default:
|
|
2657
|
-
const parsedBody = parsedOutput.body;
|
|
2658
|
-
return throwDefaultError({
|
|
2659
|
-
output,
|
|
2660
|
-
parsedBody,
|
|
2661
|
-
errorCode
|
|
2662
|
-
});
|
|
2663
|
-
}
|
|
2664
|
-
}, "de_ListResourcesCommandError");
|
|
2665
1738
|
var de_ListResourceSharePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2666
1739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2667
|
-
return
|
|
1740
|
+
return de_CommandError(output, context);
|
|
2668
1741
|
}
|
|
2669
1742
|
const contents = (0, import_smithy_client.map)({
|
|
2670
1743
|
$metadata: deserializeMetadata(output)
|
|
@@ -2677,46 +1750,9 @@ var de_ListResourceSharePermissionsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2677
1750
|
Object.assign(contents, doc);
|
|
2678
1751
|
return contents;
|
|
2679
1752
|
}, "de_ListResourceSharePermissionsCommand");
|
|
2680
|
-
var de_ListResourceSharePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2681
|
-
const parsedOutput = {
|
|
2682
|
-
...output,
|
|
2683
|
-
body: await parseErrorBody(output.body, context)
|
|
2684
|
-
};
|
|
2685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2686
|
-
switch (errorCode) {
|
|
2687
|
-
case "InvalidNextTokenException":
|
|
2688
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2689
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2690
|
-
case "InvalidParameterException":
|
|
2691
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2692
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2693
|
-
case "MalformedArnException":
|
|
2694
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2695
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2696
|
-
case "OperationNotPermittedException":
|
|
2697
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2698
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2699
|
-
case "ServerInternalException":
|
|
2700
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2701
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2702
|
-
case "ServiceUnavailableException":
|
|
2703
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2704
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2705
|
-
case "UnknownResourceException":
|
|
2706
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2707
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2708
|
-
default:
|
|
2709
|
-
const parsedBody = parsedOutput.body;
|
|
2710
|
-
return throwDefaultError({
|
|
2711
|
-
output,
|
|
2712
|
-
parsedBody,
|
|
2713
|
-
errorCode
|
|
2714
|
-
});
|
|
2715
|
-
}
|
|
2716
|
-
}, "de_ListResourceSharePermissionsCommandError");
|
|
2717
1753
|
var de_ListResourceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2718
1754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2719
|
-
return
|
|
1755
|
+
return de_CommandError(output, context);
|
|
2720
1756
|
}
|
|
2721
1757
|
const contents = (0, import_smithy_client.map)({
|
|
2722
1758
|
$metadata: deserializeMetadata(output)
|
|
@@ -2729,37 +1765,9 @@ var de_ListResourceTypesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2729
1765
|
Object.assign(contents, doc);
|
|
2730
1766
|
return contents;
|
|
2731
1767
|
}, "de_ListResourceTypesCommand");
|
|
2732
|
-
var de_ListResourceTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2733
|
-
const parsedOutput = {
|
|
2734
|
-
...output,
|
|
2735
|
-
body: await parseErrorBody(output.body, context)
|
|
2736
|
-
};
|
|
2737
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2738
|
-
switch (errorCode) {
|
|
2739
|
-
case "InvalidNextTokenException":
|
|
2740
|
-
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
2741
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2742
|
-
case "InvalidParameterException":
|
|
2743
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2744
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2745
|
-
case "ServerInternalException":
|
|
2746
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2747
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "ServiceUnavailableException":
|
|
2749
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2750
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2751
|
-
default:
|
|
2752
|
-
const parsedBody = parsedOutput.body;
|
|
2753
|
-
return throwDefaultError({
|
|
2754
|
-
output,
|
|
2755
|
-
parsedBody,
|
|
2756
|
-
errorCode
|
|
2757
|
-
});
|
|
2758
|
-
}
|
|
2759
|
-
}, "de_ListResourceTypesCommandError");
|
|
2760
1768
|
var de_PromotePermissionCreatedFromPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2761
1769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2762
|
-
return
|
|
1770
|
+
return de_CommandError(output, context);
|
|
2763
1771
|
}
|
|
2764
1772
|
const contents = (0, import_smithy_client.map)({
|
|
2765
1773
|
$metadata: deserializeMetadata(output)
|
|
@@ -2772,46 +1780,9 @@ var de_PromotePermissionCreatedFromPolicyCommand = /* @__PURE__ */ __name(async
|
|
|
2772
1780
|
Object.assign(contents, doc);
|
|
2773
1781
|
return contents;
|
|
2774
1782
|
}, "de_PromotePermissionCreatedFromPolicyCommand");
|
|
2775
|
-
var de_PromotePermissionCreatedFromPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2776
|
-
const parsedOutput = {
|
|
2777
|
-
...output,
|
|
2778
|
-
body: await parseErrorBody(output.body, context)
|
|
2779
|
-
};
|
|
2780
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2781
|
-
switch (errorCode) {
|
|
2782
|
-
case "InvalidParameterException":
|
|
2783
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2784
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2785
|
-
case "MalformedArnException":
|
|
2786
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2787
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2788
|
-
case "MissingRequiredParameterException":
|
|
2789
|
-
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
2790
|
-
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
2791
|
-
case "OperationNotPermittedException":
|
|
2792
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2793
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2794
|
-
case "ServerInternalException":
|
|
2795
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2796
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2797
|
-
case "ServiceUnavailableException":
|
|
2798
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2799
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "UnknownResourceException":
|
|
2801
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2802
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2803
|
-
default:
|
|
2804
|
-
const parsedBody = parsedOutput.body;
|
|
2805
|
-
return throwDefaultError({
|
|
2806
|
-
output,
|
|
2807
|
-
parsedBody,
|
|
2808
|
-
errorCode
|
|
2809
|
-
});
|
|
2810
|
-
}
|
|
2811
|
-
}, "de_PromotePermissionCreatedFromPolicyCommandError");
|
|
2812
1783
|
var de_PromoteResourceShareCreatedFromPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2813
1784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2814
|
-
return
|
|
1785
|
+
return de_CommandError(output, context);
|
|
2815
1786
|
}
|
|
2816
1787
|
const contents = (0, import_smithy_client.map)({
|
|
2817
1788
|
$metadata: deserializeMetadata(output)
|
|
@@ -2820,58 +1791,12 @@ var de_PromoteResourceShareCreatedFromPolicyCommand = /* @__PURE__ */ __name(asy
|
|
|
2820
1791
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2821
1792
|
returnValue: import_smithy_client.expectBoolean
|
|
2822
1793
|
});
|
|
2823
|
-
Object.assign(contents, doc);
|
|
2824
|
-
return contents;
|
|
2825
|
-
}, "de_PromoteResourceShareCreatedFromPolicyCommand");
|
|
2826
|
-
var de_PromoteResourceShareCreatedFromPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2827
|
-
const parsedOutput = {
|
|
2828
|
-
...output,
|
|
2829
|
-
body: await parseErrorBody(output.body, context)
|
|
2830
|
-
};
|
|
2831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2832
|
-
switch (errorCode) {
|
|
2833
|
-
case "InvalidParameterException":
|
|
2834
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2835
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "InvalidStateTransitionException":
|
|
2837
|
-
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
2838
|
-
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "MalformedArnException":
|
|
2840
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2841
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "MissingRequiredParameterException":
|
|
2843
|
-
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
2844
|
-
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "OperationNotPermittedException":
|
|
2846
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2847
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "ResourceShareLimitExceededException":
|
|
2849
|
-
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
2850
|
-
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ServerInternalException":
|
|
2852
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2853
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "ServiceUnavailableException":
|
|
2855
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2856
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "UnknownResourceException":
|
|
2858
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2859
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2860
|
-
case "UnmatchedPolicyPermissionException":
|
|
2861
|
-
case "com.amazonaws.ram#UnmatchedPolicyPermissionException":
|
|
2862
|
-
throw await de_UnmatchedPolicyPermissionExceptionRes(parsedOutput, context);
|
|
2863
|
-
default:
|
|
2864
|
-
const parsedBody = parsedOutput.body;
|
|
2865
|
-
return throwDefaultError({
|
|
2866
|
-
output,
|
|
2867
|
-
parsedBody,
|
|
2868
|
-
errorCode
|
|
2869
|
-
});
|
|
2870
|
-
}
|
|
2871
|
-
}, "de_PromoteResourceShareCreatedFromPolicyCommandError");
|
|
1794
|
+
Object.assign(contents, doc);
|
|
1795
|
+
return contents;
|
|
1796
|
+
}, "de_PromoteResourceShareCreatedFromPolicyCommand");
|
|
2872
1797
|
var de_RejectResourceShareInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2873
1798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2874
|
-
return
|
|
1799
|
+
return de_CommandError(output, context);
|
|
2875
1800
|
}
|
|
2876
1801
|
const contents = (0, import_smithy_client.map)({
|
|
2877
1802
|
$metadata: deserializeMetadata(output)
|
|
@@ -2884,55 +1809,9 @@ var de_RejectResourceShareInvitationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2884
1809
|
Object.assign(contents, doc);
|
|
2885
1810
|
return contents;
|
|
2886
1811
|
}, "de_RejectResourceShareInvitationCommand");
|
|
2887
|
-
var de_RejectResourceShareInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2888
|
-
const parsedOutput = {
|
|
2889
|
-
...output,
|
|
2890
|
-
body: await parseErrorBody(output.body, context)
|
|
2891
|
-
};
|
|
2892
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2893
|
-
switch (errorCode) {
|
|
2894
|
-
case "IdempotentParameterMismatchException":
|
|
2895
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
2896
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2897
|
-
case "InvalidClientTokenException":
|
|
2898
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
2899
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
2900
|
-
case "MalformedArnException":
|
|
2901
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2902
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2903
|
-
case "OperationNotPermittedException":
|
|
2904
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2905
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2906
|
-
case "ResourceShareInvitationAlreadyAcceptedException":
|
|
2907
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
|
|
2908
|
-
throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
2909
|
-
case "ResourceShareInvitationAlreadyRejectedException":
|
|
2910
|
-
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
2911
|
-
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
2912
|
-
case "ResourceShareInvitationArnNotFoundException":
|
|
2913
|
-
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
2914
|
-
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
2915
|
-
case "ResourceShareInvitationExpiredException":
|
|
2916
|
-
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
2917
|
-
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
2918
|
-
case "ServerInternalException":
|
|
2919
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2920
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2921
|
-
case "ServiceUnavailableException":
|
|
2922
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2923
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2924
|
-
default:
|
|
2925
|
-
const parsedBody = parsedOutput.body;
|
|
2926
|
-
return throwDefaultError({
|
|
2927
|
-
output,
|
|
2928
|
-
parsedBody,
|
|
2929
|
-
errorCode
|
|
2930
|
-
});
|
|
2931
|
-
}
|
|
2932
|
-
}, "de_RejectResourceShareInvitationCommandError");
|
|
2933
1812
|
var de_ReplacePermissionAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2934
1813
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2935
|
-
return
|
|
1814
|
+
return de_CommandError(output, context);
|
|
2936
1815
|
}
|
|
2937
1816
|
const contents = (0, import_smithy_client.map)({
|
|
2938
1817
|
$metadata: deserializeMetadata(output)
|
|
@@ -2945,49 +1824,9 @@ var de_ReplacePermissionAssociationsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2945
1824
|
Object.assign(contents, doc);
|
|
2946
1825
|
return contents;
|
|
2947
1826
|
}, "de_ReplacePermissionAssociationsCommand");
|
|
2948
|
-
var de_ReplacePermissionAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2949
|
-
const parsedOutput = {
|
|
2950
|
-
...output,
|
|
2951
|
-
body: await parseErrorBody(output.body, context)
|
|
2952
|
-
};
|
|
2953
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2954
|
-
switch (errorCode) {
|
|
2955
|
-
case "IdempotentParameterMismatchException":
|
|
2956
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
2957
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2958
|
-
case "InvalidClientTokenException":
|
|
2959
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
2960
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
2961
|
-
case "InvalidParameterException":
|
|
2962
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
2963
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2964
|
-
case "MalformedArnException":
|
|
2965
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
2966
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
2967
|
-
case "OperationNotPermittedException":
|
|
2968
|
-
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
2969
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
2970
|
-
case "ServerInternalException":
|
|
2971
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
2972
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2973
|
-
case "ServiceUnavailableException":
|
|
2974
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
2975
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2976
|
-
case "UnknownResourceException":
|
|
2977
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
2978
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
2979
|
-
default:
|
|
2980
|
-
const parsedBody = parsedOutput.body;
|
|
2981
|
-
return throwDefaultError({
|
|
2982
|
-
output,
|
|
2983
|
-
parsedBody,
|
|
2984
|
-
errorCode
|
|
2985
|
-
});
|
|
2986
|
-
}
|
|
2987
|
-
}, "de_ReplacePermissionAssociationsCommandError");
|
|
2988
1827
|
var de_SetDefaultPermissionVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2989
1828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2990
|
-
return
|
|
1829
|
+
return de_CommandError(output, context);
|
|
2991
1830
|
}
|
|
2992
1831
|
const contents = (0, import_smithy_client.map)({
|
|
2993
1832
|
$metadata: deserializeMetadata(output)
|
|
@@ -3000,46 +1839,9 @@ var de_SetDefaultPermissionVersionCommand = /* @__PURE__ */ __name(async (output
|
|
|
3000
1839
|
Object.assign(contents, doc);
|
|
3001
1840
|
return contents;
|
|
3002
1841
|
}, "de_SetDefaultPermissionVersionCommand");
|
|
3003
|
-
var de_SetDefaultPermissionVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3004
|
-
const parsedOutput = {
|
|
3005
|
-
...output,
|
|
3006
|
-
body: await parseErrorBody(output.body, context)
|
|
3007
|
-
};
|
|
3008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
|
-
switch (errorCode) {
|
|
3010
|
-
case "IdempotentParameterMismatchException":
|
|
3011
|
-
case "com.amazonaws.ram#IdempotentParameterMismatchException":
|
|
3012
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
3013
|
-
case "InvalidClientTokenException":
|
|
3014
|
-
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
3015
|
-
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
3016
|
-
case "InvalidParameterException":
|
|
3017
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
3018
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3019
|
-
case "MalformedArnException":
|
|
3020
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
3021
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
3022
|
-
case "ServerInternalException":
|
|
3023
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
3024
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "ServiceUnavailableException":
|
|
3026
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
3027
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "UnknownResourceException":
|
|
3029
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
3030
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
3031
|
-
default:
|
|
3032
|
-
const parsedBody = parsedOutput.body;
|
|
3033
|
-
return throwDefaultError({
|
|
3034
|
-
output,
|
|
3035
|
-
parsedBody,
|
|
3036
|
-
errorCode
|
|
3037
|
-
});
|
|
3038
|
-
}
|
|
3039
|
-
}, "de_SetDefaultPermissionVersionCommandError");
|
|
3040
1842
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
1843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3042
|
-
return
|
|
1844
|
+
return de_CommandError(output, context);
|
|
3043
1845
|
}
|
|
3044
1846
|
const contents = (0, import_smithy_client.map)({
|
|
3045
1847
|
$metadata: deserializeMetadata(output)
|
|
@@ -3047,49 +1849,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3047
1849
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3048
1850
|
return contents;
|
|
3049
1851
|
}, "de_TagResourceCommand");
|
|
3050
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3051
|
-
const parsedOutput = {
|
|
3052
|
-
...output,
|
|
3053
|
-
body: await parseErrorBody(output.body, context)
|
|
3054
|
-
};
|
|
3055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3056
|
-
switch (errorCode) {
|
|
3057
|
-
case "InvalidParameterException":
|
|
3058
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
3059
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "MalformedArnException":
|
|
3061
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
3062
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "ResourceArnNotFoundException":
|
|
3064
|
-
case "com.amazonaws.ram#ResourceArnNotFoundException":
|
|
3065
|
-
throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
|
|
3066
|
-
case "ServerInternalException":
|
|
3067
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
3068
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "ServiceUnavailableException":
|
|
3070
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
3071
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "TagLimitExceededException":
|
|
3073
|
-
case "com.amazonaws.ram#TagLimitExceededException":
|
|
3074
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "TagPolicyViolationException":
|
|
3076
|
-
case "com.amazonaws.ram#TagPolicyViolationException":
|
|
3077
|
-
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "UnknownResourceException":
|
|
3079
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
3080
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
3081
|
-
default:
|
|
3082
|
-
const parsedBody = parsedOutput.body;
|
|
3083
|
-
return throwDefaultError({
|
|
3084
|
-
output,
|
|
3085
|
-
parsedBody,
|
|
3086
|
-
errorCode
|
|
3087
|
-
});
|
|
3088
|
-
}
|
|
3089
|
-
}, "de_TagResourceCommandError");
|
|
3090
1852
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3091
1853
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3092
|
-
return
|
|
1854
|
+
return de_CommandError(output, context);
|
|
3093
1855
|
}
|
|
3094
1856
|
const contents = (0, import_smithy_client.map)({
|
|
3095
1857
|
$metadata: deserializeMetadata(output)
|
|
@@ -3097,40 +1859,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3097
1859
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3098
1860
|
return contents;
|
|
3099
1861
|
}, "de_UntagResourceCommand");
|
|
3100
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3101
|
-
const parsedOutput = {
|
|
3102
|
-
...output,
|
|
3103
|
-
body: await parseErrorBody(output.body, context)
|
|
3104
|
-
};
|
|
3105
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3106
|
-
switch (errorCode) {
|
|
3107
|
-
case "InvalidParameterException":
|
|
3108
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
3109
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "MalformedArnException":
|
|
3111
|
-
case "com.amazonaws.ram#MalformedArnException":
|
|
3112
|
-
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
3113
|
-
case "ServerInternalException":
|
|
3114
|
-
case "com.amazonaws.ram#ServerInternalException":
|
|
3115
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "ServiceUnavailableException":
|
|
3117
|
-
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
3118
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3119
|
-
case "UnknownResourceException":
|
|
3120
|
-
case "com.amazonaws.ram#UnknownResourceException":
|
|
3121
|
-
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
3122
|
-
default:
|
|
3123
|
-
const parsedBody = parsedOutput.body;
|
|
3124
|
-
return throwDefaultError({
|
|
3125
|
-
output,
|
|
3126
|
-
parsedBody,
|
|
3127
|
-
errorCode
|
|
3128
|
-
});
|
|
3129
|
-
}
|
|
3130
|
-
}, "de_UntagResourceCommandError");
|
|
3131
1862
|
var de_UpdateResourceShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3132
1863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3133
|
-
return
|
|
1864
|
+
return de_CommandError(output, context);
|
|
3134
1865
|
}
|
|
3135
1866
|
const contents = (0, import_smithy_client.map)({
|
|
3136
1867
|
$metadata: deserializeMetadata(output)
|
|
@@ -3143,7 +1874,7 @@ var de_UpdateResourceShareCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3143
1874
|
Object.assign(contents, doc);
|
|
3144
1875
|
return contents;
|
|
3145
1876
|
}, "de_UpdateResourceShareCommand");
|
|
3146
|
-
var
|
|
1877
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3147
1878
|
const parsedOutput = {
|
|
3148
1879
|
...output,
|
|
3149
1880
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3156,27 +1887,84 @@ var de_UpdateResourceShareCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
3156
1887
|
case "InvalidClientTokenException":
|
|
3157
1888
|
case "com.amazonaws.ram#InvalidClientTokenException":
|
|
3158
1889
|
throw await de_InvalidClientTokenExceptionRes(parsedOutput, context);
|
|
3159
|
-
case "InvalidParameterException":
|
|
3160
|
-
case "com.amazonaws.ram#InvalidParameterException":
|
|
3161
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3162
1890
|
case "MalformedArnException":
|
|
3163
1891
|
case "com.amazonaws.ram#MalformedArnException":
|
|
3164
1892
|
throw await de_MalformedArnExceptionRes(parsedOutput, context);
|
|
3165
|
-
case "MissingRequiredParameterException":
|
|
3166
|
-
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
3167
|
-
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
3168
1893
|
case "OperationNotPermittedException":
|
|
3169
1894
|
case "com.amazonaws.ram#OperationNotPermittedException":
|
|
3170
1895
|
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1896
|
+
case "ResourceShareInvitationAlreadyAcceptedException":
|
|
1897
|
+
case "com.amazonaws.ram#ResourceShareInvitationAlreadyAcceptedException":
|
|
1898
|
+
throw await de_ResourceShareInvitationAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
1899
|
+
case "ResourceShareInvitationAlreadyRejectedException":
|
|
1900
|
+
case "com.amazonaws.ram#ResourceShareInvitationAlreadyRejectedException":
|
|
1901
|
+
throw await de_ResourceShareInvitationAlreadyRejectedExceptionRes(parsedOutput, context);
|
|
1902
|
+
case "ResourceShareInvitationArnNotFoundException":
|
|
1903
|
+
case "com.amazonaws.ram#ResourceShareInvitationArnNotFoundException":
|
|
1904
|
+
throw await de_ResourceShareInvitationArnNotFoundExceptionRes(parsedOutput, context);
|
|
1905
|
+
case "ResourceShareInvitationExpiredException":
|
|
1906
|
+
case "com.amazonaws.ram#ResourceShareInvitationExpiredException":
|
|
1907
|
+
throw await de_ResourceShareInvitationExpiredExceptionRes(parsedOutput, context);
|
|
3171
1908
|
case "ServerInternalException":
|
|
3172
1909
|
case "com.amazonaws.ram#ServerInternalException":
|
|
3173
1910
|
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
3174
1911
|
case "ServiceUnavailableException":
|
|
3175
1912
|
case "com.amazonaws.ram#ServiceUnavailableException":
|
|
3176
1913
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1914
|
+
case "InvalidParameterException":
|
|
1915
|
+
case "com.amazonaws.ram#InvalidParameterException":
|
|
1916
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1917
|
+
case "InvalidStateTransitionException":
|
|
1918
|
+
case "com.amazonaws.ram#InvalidStateTransitionException":
|
|
1919
|
+
throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
|
|
1920
|
+
case "ResourceShareLimitExceededException":
|
|
1921
|
+
case "com.amazonaws.ram#ResourceShareLimitExceededException":
|
|
1922
|
+
throw await de_ResourceShareLimitExceededExceptionRes(parsedOutput, context);
|
|
1923
|
+
case "ThrottlingException":
|
|
1924
|
+
case "com.amazonaws.ram#ThrottlingException":
|
|
1925
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3177
1926
|
case "UnknownResourceException":
|
|
3178
1927
|
case "com.amazonaws.ram#UnknownResourceException":
|
|
3179
1928
|
throw await de_UnknownResourceExceptionRes(parsedOutput, context);
|
|
1929
|
+
case "InvalidPolicyException":
|
|
1930
|
+
case "com.amazonaws.ram#InvalidPolicyException":
|
|
1931
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
1932
|
+
case "MalformedPolicyTemplateException":
|
|
1933
|
+
case "com.amazonaws.ram#MalformedPolicyTemplateException":
|
|
1934
|
+
throw await de_MalformedPolicyTemplateExceptionRes(parsedOutput, context);
|
|
1935
|
+
case "PermissionAlreadyExistsException":
|
|
1936
|
+
case "com.amazonaws.ram#PermissionAlreadyExistsException":
|
|
1937
|
+
throw await de_PermissionAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1938
|
+
case "PermissionLimitExceededException":
|
|
1939
|
+
case "com.amazonaws.ram#PermissionLimitExceededException":
|
|
1940
|
+
throw await de_PermissionLimitExceededExceptionRes(parsedOutput, context);
|
|
1941
|
+
case "PermissionVersionsLimitExceededException":
|
|
1942
|
+
case "com.amazonaws.ram#PermissionVersionsLimitExceededException":
|
|
1943
|
+
throw await de_PermissionVersionsLimitExceededExceptionRes(parsedOutput, context);
|
|
1944
|
+
case "TagLimitExceededException":
|
|
1945
|
+
case "com.amazonaws.ram#TagLimitExceededException":
|
|
1946
|
+
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
1947
|
+
case "TagPolicyViolationException":
|
|
1948
|
+
case "com.amazonaws.ram#TagPolicyViolationException":
|
|
1949
|
+
throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
|
|
1950
|
+
case "InvalidNextTokenException":
|
|
1951
|
+
case "com.amazonaws.ram#InvalidNextTokenException":
|
|
1952
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1953
|
+
case "ResourceArnNotFoundException":
|
|
1954
|
+
case "com.amazonaws.ram#ResourceArnNotFoundException":
|
|
1955
|
+
throw await de_ResourceArnNotFoundExceptionRes(parsedOutput, context);
|
|
1956
|
+
case "InvalidMaxResultsException":
|
|
1957
|
+
case "com.amazonaws.ram#InvalidMaxResultsException":
|
|
1958
|
+
throw await de_InvalidMaxResultsExceptionRes(parsedOutput, context);
|
|
1959
|
+
case "MissingRequiredParameterException":
|
|
1960
|
+
case "com.amazonaws.ram#MissingRequiredParameterException":
|
|
1961
|
+
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1962
|
+
case "InvalidResourceTypeException":
|
|
1963
|
+
case "com.amazonaws.ram#InvalidResourceTypeException":
|
|
1964
|
+
throw await de_InvalidResourceTypeExceptionRes(parsedOutput, context);
|
|
1965
|
+
case "UnmatchedPolicyPermissionException":
|
|
1966
|
+
case "com.amazonaws.ram#UnmatchedPolicyPermissionException":
|
|
1967
|
+
throw await de_UnmatchedPolicyPermissionExceptionRes(parsedOutput, context);
|
|
3180
1968
|
default:
|
|
3181
1969
|
const parsedBody = parsedOutput.body;
|
|
3182
1970
|
return throwDefaultError({
|
|
@@ -3185,7 +1973,7 @@ var de_UpdateResourceShareCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
3185
1973
|
errorCode
|
|
3186
1974
|
});
|
|
3187
1975
|
}
|
|
3188
|
-
}, "
|
|
1976
|
+
}, "de_CommandError");
|
|
3189
1977
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(RAMServiceException);
|
|
3190
1978
|
var de_IdempotentParameterMismatchExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3191
1979
|
const contents = (0, import_smithy_client.map)({});
|