@aws-sdk/client-efs 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 +136 -967
- package/dist-es/protocols/Aws_restJson1.js +135 -966
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1336,7 +1336,7 @@ var se_UpdateFileSystemProtectionCommand = /* @__PURE__ */ __name(async (input,
|
|
|
1336
1336
|
}, "se_UpdateFileSystemProtectionCommand");
|
|
1337
1337
|
var de_CreateAccessPointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1338
1338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
-
return
|
|
1339
|
+
return de_CommandError(output, context);
|
|
1340
1340
|
}
|
|
1341
1341
|
const contents = (0, import_smithy_client.map)({
|
|
1342
1342
|
$metadata: deserializeMetadata(output)
|
|
@@ -1357,46 +1357,9 @@ var de_CreateAccessPointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1357
1357
|
Object.assign(contents, doc);
|
|
1358
1358
|
return contents;
|
|
1359
1359
|
}, "de_CreateAccessPointCommand");
|
|
1360
|
-
var de_CreateAccessPointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1361
|
-
const parsedOutput = {
|
|
1362
|
-
...output,
|
|
1363
|
-
body: await parseErrorBody(output.body, context)
|
|
1364
|
-
};
|
|
1365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1366
|
-
switch (errorCode) {
|
|
1367
|
-
case "AccessPointAlreadyExists":
|
|
1368
|
-
case "com.amazonaws.efs#AccessPointAlreadyExists":
|
|
1369
|
-
throw await de_AccessPointAlreadyExistsRes(parsedOutput, context);
|
|
1370
|
-
case "AccessPointLimitExceeded":
|
|
1371
|
-
case "com.amazonaws.efs#AccessPointLimitExceeded":
|
|
1372
|
-
throw await de_AccessPointLimitExceededRes(parsedOutput, context);
|
|
1373
|
-
case "BadRequest":
|
|
1374
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1375
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1376
|
-
case "FileSystemNotFound":
|
|
1377
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1378
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1379
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
1380
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1381
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1382
|
-
case "InternalServerError":
|
|
1383
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1384
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1385
|
-
case "ThrottlingException":
|
|
1386
|
-
case "com.amazonaws.efs#ThrottlingException":
|
|
1387
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1388
|
-
default:
|
|
1389
|
-
const parsedBody = parsedOutput.body;
|
|
1390
|
-
return throwDefaultError({
|
|
1391
|
-
output,
|
|
1392
|
-
parsedBody,
|
|
1393
|
-
errorCode
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
}, "de_CreateAccessPointCommandError");
|
|
1397
1360
|
var de_CreateFileSystemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1398
1361
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1399
|
-
return
|
|
1362
|
+
return de_CommandError(output, context);
|
|
1400
1363
|
}
|
|
1401
1364
|
const contents = (0, import_smithy_client.map)({
|
|
1402
1365
|
$metadata: deserializeMetadata(output)
|
|
@@ -1425,46 +1388,9 @@ var de_CreateFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1425
1388
|
Object.assign(contents, doc);
|
|
1426
1389
|
return contents;
|
|
1427
1390
|
}, "de_CreateFileSystemCommand");
|
|
1428
|
-
var de_CreateFileSystemCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
-
const parsedOutput = {
|
|
1430
|
-
...output,
|
|
1431
|
-
body: await parseErrorBody(output.body, context)
|
|
1432
|
-
};
|
|
1433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
switch (errorCode) {
|
|
1435
|
-
case "BadRequest":
|
|
1436
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1437
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1438
|
-
case "FileSystemAlreadyExists":
|
|
1439
|
-
case "com.amazonaws.efs#FileSystemAlreadyExists":
|
|
1440
|
-
throw await de_FileSystemAlreadyExistsRes(parsedOutput, context);
|
|
1441
|
-
case "FileSystemLimitExceeded":
|
|
1442
|
-
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
1443
|
-
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
1444
|
-
case "InsufficientThroughputCapacity":
|
|
1445
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
1446
|
-
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
1447
|
-
case "InternalServerError":
|
|
1448
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1449
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1450
|
-
case "ThroughputLimitExceeded":
|
|
1451
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
1452
|
-
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
1453
|
-
case "UnsupportedAvailabilityZone":
|
|
1454
|
-
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
1455
|
-
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
1456
|
-
default:
|
|
1457
|
-
const parsedBody = parsedOutput.body;
|
|
1458
|
-
return throwDefaultError({
|
|
1459
|
-
output,
|
|
1460
|
-
parsedBody,
|
|
1461
|
-
errorCode
|
|
1462
|
-
});
|
|
1463
|
-
}
|
|
1464
|
-
}, "de_CreateFileSystemCommandError");
|
|
1465
1391
|
var de_CreateMountTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1466
1392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
1393
|
+
return de_CommandError(output, context);
|
|
1468
1394
|
}
|
|
1469
1395
|
const contents = (0, import_smithy_client.map)({
|
|
1470
1396
|
$metadata: deserializeMetadata(output)
|
|
@@ -1485,64 +1411,9 @@ var de_CreateMountTargetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1485
1411
|
Object.assign(contents, doc);
|
|
1486
1412
|
return contents;
|
|
1487
1413
|
}, "de_CreateMountTargetCommand");
|
|
1488
|
-
var de_CreateMountTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1489
|
-
const parsedOutput = {
|
|
1490
|
-
...output,
|
|
1491
|
-
body: await parseErrorBody(output.body, context)
|
|
1492
|
-
};
|
|
1493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1494
|
-
switch (errorCode) {
|
|
1495
|
-
case "AvailabilityZonesMismatch":
|
|
1496
|
-
case "com.amazonaws.efs#AvailabilityZonesMismatch":
|
|
1497
|
-
throw await de_AvailabilityZonesMismatchRes(parsedOutput, context);
|
|
1498
|
-
case "BadRequest":
|
|
1499
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1500
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1501
|
-
case "FileSystemNotFound":
|
|
1502
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1503
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1504
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
1505
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1506
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1507
|
-
case "InternalServerError":
|
|
1508
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1509
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1510
|
-
case "IpAddressInUse":
|
|
1511
|
-
case "com.amazonaws.efs#IpAddressInUse":
|
|
1512
|
-
throw await de_IpAddressInUseRes(parsedOutput, context);
|
|
1513
|
-
case "MountTargetConflict":
|
|
1514
|
-
case "com.amazonaws.efs#MountTargetConflict":
|
|
1515
|
-
throw await de_MountTargetConflictRes(parsedOutput, context);
|
|
1516
|
-
case "NetworkInterfaceLimitExceeded":
|
|
1517
|
-
case "com.amazonaws.efs#NetworkInterfaceLimitExceeded":
|
|
1518
|
-
throw await de_NetworkInterfaceLimitExceededRes(parsedOutput, context);
|
|
1519
|
-
case "NoFreeAddressesInSubnet":
|
|
1520
|
-
case "com.amazonaws.efs#NoFreeAddressesInSubnet":
|
|
1521
|
-
throw await de_NoFreeAddressesInSubnetRes(parsedOutput, context);
|
|
1522
|
-
case "SecurityGroupLimitExceeded":
|
|
1523
|
-
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
1524
|
-
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
1525
|
-
case "SecurityGroupNotFound":
|
|
1526
|
-
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
1527
|
-
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
1528
|
-
case "SubnetNotFound":
|
|
1529
|
-
case "com.amazonaws.efs#SubnetNotFound":
|
|
1530
|
-
throw await de_SubnetNotFoundRes(parsedOutput, context);
|
|
1531
|
-
case "UnsupportedAvailabilityZone":
|
|
1532
|
-
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
1533
|
-
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
1534
|
-
default:
|
|
1535
|
-
const parsedBody = parsedOutput.body;
|
|
1536
|
-
return throwDefaultError({
|
|
1537
|
-
output,
|
|
1538
|
-
parsedBody,
|
|
1539
|
-
errorCode
|
|
1540
|
-
});
|
|
1541
|
-
}
|
|
1542
|
-
}, "de_CreateMountTargetCommandError");
|
|
1543
1414
|
var de_CreateReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1544
1415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1545
|
-
return
|
|
1416
|
+
return de_CommandError(output, context);
|
|
1546
1417
|
}
|
|
1547
1418
|
const contents = (0, import_smithy_client.map)({
|
|
1548
1419
|
$metadata: deserializeMetadata(output)
|
|
@@ -1559,58 +1430,9 @@ var de_CreateReplicationConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
1559
1430
|
Object.assign(contents, doc);
|
|
1560
1431
|
return contents;
|
|
1561
1432
|
}, "de_CreateReplicationConfigurationCommand");
|
|
1562
|
-
var de_CreateReplicationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1563
|
-
const parsedOutput = {
|
|
1564
|
-
...output,
|
|
1565
|
-
body: await parseErrorBody(output.body, context)
|
|
1566
|
-
};
|
|
1567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
|
-
switch (errorCode) {
|
|
1569
|
-
case "BadRequest":
|
|
1570
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1571
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1572
|
-
case "ConflictException":
|
|
1573
|
-
case "com.amazonaws.efs#ConflictException":
|
|
1574
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1575
|
-
case "FileSystemLimitExceeded":
|
|
1576
|
-
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
1577
|
-
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
1578
|
-
case "FileSystemNotFound":
|
|
1579
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1580
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1581
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
1582
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1583
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1584
|
-
case "InsufficientThroughputCapacity":
|
|
1585
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
1586
|
-
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
1587
|
-
case "InternalServerError":
|
|
1588
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1589
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1590
|
-
case "ReplicationNotFound":
|
|
1591
|
-
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1592
|
-
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
1593
|
-
case "ThroughputLimitExceeded":
|
|
1594
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
1595
|
-
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
1596
|
-
case "UnsupportedAvailabilityZone":
|
|
1597
|
-
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
1598
|
-
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
1599
|
-
case "ValidationException":
|
|
1600
|
-
case "com.amazonaws.efs#ValidationException":
|
|
1601
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1602
|
-
default:
|
|
1603
|
-
const parsedBody = parsedOutput.body;
|
|
1604
|
-
return throwDefaultError({
|
|
1605
|
-
output,
|
|
1606
|
-
parsedBody,
|
|
1607
|
-
errorCode
|
|
1608
|
-
});
|
|
1609
|
-
}
|
|
1610
|
-
}, "de_CreateReplicationConfigurationCommandError");
|
|
1611
1433
|
var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1612
1434
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1613
|
-
return
|
|
1435
|
+
return de_CommandError(output, context);
|
|
1614
1436
|
}
|
|
1615
1437
|
const contents = (0, import_smithy_client.map)({
|
|
1616
1438
|
$metadata: deserializeMetadata(output)
|
|
@@ -1618,34 +1440,9 @@ var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1618
1440
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1619
1441
|
return contents;
|
|
1620
1442
|
}, "de_CreateTagsCommand");
|
|
1621
|
-
var de_CreateTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1622
|
-
const parsedOutput = {
|
|
1623
|
-
...output,
|
|
1624
|
-
body: await parseErrorBody(output.body, context)
|
|
1625
|
-
};
|
|
1626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
|
-
switch (errorCode) {
|
|
1628
|
-
case "BadRequest":
|
|
1629
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1630
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1631
|
-
case "FileSystemNotFound":
|
|
1632
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1633
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1634
|
-
case "InternalServerError":
|
|
1635
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1636
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1637
|
-
default:
|
|
1638
|
-
const parsedBody = parsedOutput.body;
|
|
1639
|
-
return throwDefaultError({
|
|
1640
|
-
output,
|
|
1641
|
-
parsedBody,
|
|
1642
|
-
errorCode
|
|
1643
|
-
});
|
|
1644
|
-
}
|
|
1645
|
-
}, "de_CreateTagsCommandError");
|
|
1646
1443
|
var de_DeleteAccessPointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1647
1444
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1648
|
-
return
|
|
1445
|
+
return de_CommandError(output, context);
|
|
1649
1446
|
}
|
|
1650
1447
|
const contents = (0, import_smithy_client.map)({
|
|
1651
1448
|
$metadata: deserializeMetadata(output)
|
|
@@ -1653,34 +1450,9 @@ var de_DeleteAccessPointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1653
1450
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1654
1451
|
return contents;
|
|
1655
1452
|
}, "de_DeleteAccessPointCommand");
|
|
1656
|
-
var de_DeleteAccessPointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1657
|
-
const parsedOutput = {
|
|
1658
|
-
...output,
|
|
1659
|
-
body: await parseErrorBody(output.body, context)
|
|
1660
|
-
};
|
|
1661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1662
|
-
switch (errorCode) {
|
|
1663
|
-
case "AccessPointNotFound":
|
|
1664
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1665
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1666
|
-
case "BadRequest":
|
|
1667
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1668
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1669
|
-
case "InternalServerError":
|
|
1670
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1671
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1672
|
-
default:
|
|
1673
|
-
const parsedBody = parsedOutput.body;
|
|
1674
|
-
return throwDefaultError({
|
|
1675
|
-
output,
|
|
1676
|
-
parsedBody,
|
|
1677
|
-
errorCode
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
}, "de_DeleteAccessPointCommandError");
|
|
1681
1453
|
var de_DeleteFileSystemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1682
1454
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1683
|
-
return
|
|
1455
|
+
return de_CommandError(output, context);
|
|
1684
1456
|
}
|
|
1685
1457
|
const contents = (0, import_smithy_client.map)({
|
|
1686
1458
|
$metadata: deserializeMetadata(output)
|
|
@@ -1688,37 +1460,9 @@ var de_DeleteFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1688
1460
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1689
1461
|
return contents;
|
|
1690
1462
|
}, "de_DeleteFileSystemCommand");
|
|
1691
|
-
var de_DeleteFileSystemCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1692
|
-
const parsedOutput = {
|
|
1693
|
-
...output,
|
|
1694
|
-
body: await parseErrorBody(output.body, context)
|
|
1695
|
-
};
|
|
1696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1697
|
-
switch (errorCode) {
|
|
1698
|
-
case "BadRequest":
|
|
1699
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1700
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1701
|
-
case "FileSystemInUse":
|
|
1702
|
-
case "com.amazonaws.efs#FileSystemInUse":
|
|
1703
|
-
throw await de_FileSystemInUseRes(parsedOutput, context);
|
|
1704
|
-
case "FileSystemNotFound":
|
|
1705
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1706
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1707
|
-
case "InternalServerError":
|
|
1708
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1709
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1710
|
-
default:
|
|
1711
|
-
const parsedBody = parsedOutput.body;
|
|
1712
|
-
return throwDefaultError({
|
|
1713
|
-
output,
|
|
1714
|
-
parsedBody,
|
|
1715
|
-
errorCode
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
}, "de_DeleteFileSystemCommandError");
|
|
1719
1463
|
var de_DeleteFileSystemPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1720
1464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1721
|
-
return
|
|
1465
|
+
return de_CommandError(output, context);
|
|
1722
1466
|
}
|
|
1723
1467
|
const contents = (0, import_smithy_client.map)({
|
|
1724
1468
|
$metadata: deserializeMetadata(output)
|
|
@@ -1726,37 +1470,9 @@ var de_DeleteFileSystemPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1726
1470
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1727
1471
|
return contents;
|
|
1728
1472
|
}, "de_DeleteFileSystemPolicyCommand");
|
|
1729
|
-
var de_DeleteFileSystemPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1730
|
-
const parsedOutput = {
|
|
1731
|
-
...output,
|
|
1732
|
-
body: await parseErrorBody(output.body, context)
|
|
1733
|
-
};
|
|
1734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
|
-
switch (errorCode) {
|
|
1736
|
-
case "BadRequest":
|
|
1737
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1738
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1739
|
-
case "FileSystemNotFound":
|
|
1740
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1741
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1742
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
1743
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
1744
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
1745
|
-
case "InternalServerError":
|
|
1746
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1747
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1748
|
-
default:
|
|
1749
|
-
const parsedBody = parsedOutput.body;
|
|
1750
|
-
return throwDefaultError({
|
|
1751
|
-
output,
|
|
1752
|
-
parsedBody,
|
|
1753
|
-
errorCode
|
|
1754
|
-
});
|
|
1755
|
-
}
|
|
1756
|
-
}, "de_DeleteFileSystemPolicyCommandError");
|
|
1757
1473
|
var de_DeleteMountTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1758
1474
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1759
|
-
return
|
|
1475
|
+
return de_CommandError(output, context);
|
|
1760
1476
|
}
|
|
1761
1477
|
const contents = (0, import_smithy_client.map)({
|
|
1762
1478
|
$metadata: deserializeMetadata(output)
|
|
@@ -1764,37 +1480,9 @@ var de_DeleteMountTargetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1764
1480
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1765
1481
|
return contents;
|
|
1766
1482
|
}, "de_DeleteMountTargetCommand");
|
|
1767
|
-
var de_DeleteMountTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1768
|
-
const parsedOutput = {
|
|
1769
|
-
...output,
|
|
1770
|
-
body: await parseErrorBody(output.body, context)
|
|
1771
|
-
};
|
|
1772
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
|
-
switch (errorCode) {
|
|
1774
|
-
case "BadRequest":
|
|
1775
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1776
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1777
|
-
case "DependencyTimeout":
|
|
1778
|
-
case "com.amazonaws.efs#DependencyTimeout":
|
|
1779
|
-
throw await de_DependencyTimeoutRes(parsedOutput, context);
|
|
1780
|
-
case "InternalServerError":
|
|
1781
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1782
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1783
|
-
case "MountTargetNotFound":
|
|
1784
|
-
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1785
|
-
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1786
|
-
default:
|
|
1787
|
-
const parsedBody = parsedOutput.body;
|
|
1788
|
-
return throwDefaultError({
|
|
1789
|
-
output,
|
|
1790
|
-
parsedBody,
|
|
1791
|
-
errorCode
|
|
1792
|
-
});
|
|
1793
|
-
}
|
|
1794
|
-
}, "de_DeleteMountTargetCommandError");
|
|
1795
1483
|
var de_DeleteReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1796
1484
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1797
|
-
return
|
|
1485
|
+
return de_CommandError(output, context);
|
|
1798
1486
|
}
|
|
1799
1487
|
const contents = (0, import_smithy_client.map)({
|
|
1800
1488
|
$metadata: deserializeMetadata(output)
|
|
@@ -1802,37 +1490,9 @@ var de_DeleteReplicationConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
1802
1490
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1803
1491
|
return contents;
|
|
1804
1492
|
}, "de_DeleteReplicationConfigurationCommand");
|
|
1805
|
-
var de_DeleteReplicationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1806
|
-
const parsedOutput = {
|
|
1807
|
-
...output,
|
|
1808
|
-
body: await parseErrorBody(output.body, context)
|
|
1809
|
-
};
|
|
1810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
|
-
switch (errorCode) {
|
|
1812
|
-
case "BadRequest":
|
|
1813
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1814
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1815
|
-
case "FileSystemNotFound":
|
|
1816
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1817
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1818
|
-
case "InternalServerError":
|
|
1819
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1820
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1821
|
-
case "ReplicationNotFound":
|
|
1822
|
-
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1823
|
-
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
1824
|
-
default:
|
|
1825
|
-
const parsedBody = parsedOutput.body;
|
|
1826
|
-
return throwDefaultError({
|
|
1827
|
-
output,
|
|
1828
|
-
parsedBody,
|
|
1829
|
-
errorCode
|
|
1830
|
-
});
|
|
1831
|
-
}
|
|
1832
|
-
}, "de_DeleteReplicationConfigurationCommandError");
|
|
1833
1493
|
var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1834
1494
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1835
|
-
return
|
|
1495
|
+
return de_CommandError(output, context);
|
|
1836
1496
|
}
|
|
1837
1497
|
const contents = (0, import_smithy_client.map)({
|
|
1838
1498
|
$metadata: deserializeMetadata(output)
|
|
@@ -1840,34 +1500,9 @@ var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1840
1500
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1841
1501
|
return contents;
|
|
1842
1502
|
}, "de_DeleteTagsCommand");
|
|
1843
|
-
var de_DeleteTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1844
|
-
const parsedOutput = {
|
|
1845
|
-
...output,
|
|
1846
|
-
body: await parseErrorBody(output.body, context)
|
|
1847
|
-
};
|
|
1848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1849
|
-
switch (errorCode) {
|
|
1850
|
-
case "BadRequest":
|
|
1851
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1852
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1853
|
-
case "FileSystemNotFound":
|
|
1854
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1855
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1856
|
-
case "InternalServerError":
|
|
1857
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1858
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1859
|
-
default:
|
|
1860
|
-
const parsedBody = parsedOutput.body;
|
|
1861
|
-
return throwDefaultError({
|
|
1862
|
-
output,
|
|
1863
|
-
parsedBody,
|
|
1864
|
-
errorCode
|
|
1865
|
-
});
|
|
1866
|
-
}
|
|
1867
|
-
}, "de_DeleteTagsCommandError");
|
|
1868
1503
|
var de_DescribeAccessPointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1869
1504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1870
|
-
return
|
|
1505
|
+
return de_CommandError(output, context);
|
|
1871
1506
|
}
|
|
1872
1507
|
const contents = (0, import_smithy_client.map)({
|
|
1873
1508
|
$metadata: deserializeMetadata(output)
|
|
@@ -1880,37 +1515,9 @@ var de_DescribeAccessPointsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1880
1515
|
Object.assign(contents, doc);
|
|
1881
1516
|
return contents;
|
|
1882
1517
|
}, "de_DescribeAccessPointsCommand");
|
|
1883
|
-
var de_DescribeAccessPointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1884
|
-
const parsedOutput = {
|
|
1885
|
-
...output,
|
|
1886
|
-
body: await parseErrorBody(output.body, context)
|
|
1887
|
-
};
|
|
1888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
|
-
switch (errorCode) {
|
|
1890
|
-
case "AccessPointNotFound":
|
|
1891
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1892
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1893
|
-
case "BadRequest":
|
|
1894
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1895
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1896
|
-
case "FileSystemNotFound":
|
|
1897
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1898
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1899
|
-
case "InternalServerError":
|
|
1900
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1901
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1902
|
-
default:
|
|
1903
|
-
const parsedBody = parsedOutput.body;
|
|
1904
|
-
return throwDefaultError({
|
|
1905
|
-
output,
|
|
1906
|
-
parsedBody,
|
|
1907
|
-
errorCode
|
|
1908
|
-
});
|
|
1909
|
-
}
|
|
1910
|
-
}, "de_DescribeAccessPointsCommandError");
|
|
1911
1518
|
var de_DescribeAccountPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1912
1519
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1913
|
-
return
|
|
1520
|
+
return de_CommandError(output, context);
|
|
1914
1521
|
}
|
|
1915
1522
|
const contents = (0, import_smithy_client.map)({
|
|
1916
1523
|
$metadata: deserializeMetadata(output)
|
|
@@ -1923,116 +1530,38 @@ var de_DescribeAccountPreferencesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1923
1530
|
Object.assign(contents, doc);
|
|
1924
1531
|
return contents;
|
|
1925
1532
|
}, "de_DescribeAccountPreferencesCommand");
|
|
1926
|
-
var de_DescribeAccountPreferencesCommandError = /* @__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 "InternalServerError":
|
|
1934
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1935
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1936
|
-
default:
|
|
1937
|
-
const parsedBody = parsedOutput.body;
|
|
1938
|
-
return throwDefaultError({
|
|
1939
|
-
output,
|
|
1940
|
-
parsedBody,
|
|
1941
|
-
errorCode
|
|
1942
|
-
});
|
|
1943
|
-
}
|
|
1944
|
-
}, "de_DescribeAccountPreferencesCommandError");
|
|
1945
1533
|
var de_DescribeBackupPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1946
1534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1947
|
-
return
|
|
1948
|
-
}
|
|
1949
|
-
const contents = (0, import_smithy_client.map)({
|
|
1950
|
-
$metadata: deserializeMetadata(output)
|
|
1951
|
-
});
|
|
1952
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1953
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1954
|
-
BackupPolicy: import_smithy_client._json
|
|
1955
|
-
});
|
|
1956
|
-
Object.assign(contents, doc);
|
|
1957
|
-
return contents;
|
|
1958
|
-
}, "de_DescribeBackupPolicyCommand");
|
|
1959
|
-
var de_DescribeBackupPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1960
|
-
const parsedOutput = {
|
|
1961
|
-
...output,
|
|
1962
|
-
body: await parseErrorBody(output.body, context)
|
|
1963
|
-
};
|
|
1964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
|
-
switch (errorCode) {
|
|
1966
|
-
case "BadRequest":
|
|
1967
|
-
case "com.amazonaws.efs#BadRequest":
|
|
1968
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1969
|
-
case "FileSystemNotFound":
|
|
1970
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
1971
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1972
|
-
case "InternalServerError":
|
|
1973
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
1974
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1975
|
-
case "PolicyNotFound":
|
|
1976
|
-
case "com.amazonaws.efs#PolicyNotFound":
|
|
1977
|
-
throw await de_PolicyNotFoundRes(parsedOutput, context);
|
|
1978
|
-
case "ValidationException":
|
|
1979
|
-
case "com.amazonaws.efs#ValidationException":
|
|
1980
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1981
|
-
default:
|
|
1982
|
-
const parsedBody = parsedOutput.body;
|
|
1983
|
-
return throwDefaultError({
|
|
1984
|
-
output,
|
|
1985
|
-
parsedBody,
|
|
1986
|
-
errorCode
|
|
1987
|
-
});
|
|
1988
|
-
}
|
|
1989
|
-
}, "de_DescribeBackupPolicyCommandError");
|
|
1990
|
-
var de_DescribeFileSystemPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1991
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1992
|
-
return de_DescribeFileSystemPolicyCommandError(output, context);
|
|
1993
|
-
}
|
|
1994
|
-
const contents = (0, import_smithy_client.map)({
|
|
1995
|
-
$metadata: deserializeMetadata(output)
|
|
1996
|
-
});
|
|
1997
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1998
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1999
|
-
FileSystemId: import_smithy_client.expectString,
|
|
2000
|
-
Policy: import_smithy_client.expectString
|
|
2001
|
-
});
|
|
2002
|
-
Object.assign(contents, doc);
|
|
2003
|
-
return contents;
|
|
2004
|
-
}, "de_DescribeFileSystemPolicyCommand");
|
|
2005
|
-
var de_DescribeFileSystemPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
|
-
const parsedOutput = {
|
|
2007
|
-
...output,
|
|
2008
|
-
body: await parseErrorBody(output.body, context)
|
|
2009
|
-
};
|
|
2010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
|
-
switch (errorCode) {
|
|
2012
|
-
case "BadRequest":
|
|
2013
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2014
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2015
|
-
case "FileSystemNotFound":
|
|
2016
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2017
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2018
|
-
case "InternalServerError":
|
|
2019
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2020
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2021
|
-
case "PolicyNotFound":
|
|
2022
|
-
case "com.amazonaws.efs#PolicyNotFound":
|
|
2023
|
-
throw await de_PolicyNotFoundRes(parsedOutput, context);
|
|
2024
|
-
default:
|
|
2025
|
-
const parsedBody = parsedOutput.body;
|
|
2026
|
-
return throwDefaultError({
|
|
2027
|
-
output,
|
|
2028
|
-
parsedBody,
|
|
2029
|
-
errorCode
|
|
2030
|
-
});
|
|
1535
|
+
return de_CommandError(output, context);
|
|
2031
1536
|
}
|
|
2032
|
-
|
|
1537
|
+
const contents = (0, import_smithy_client.map)({
|
|
1538
|
+
$metadata: deserializeMetadata(output)
|
|
1539
|
+
});
|
|
1540
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1541
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1542
|
+
BackupPolicy: import_smithy_client._json
|
|
1543
|
+
});
|
|
1544
|
+
Object.assign(contents, doc);
|
|
1545
|
+
return contents;
|
|
1546
|
+
}, "de_DescribeBackupPolicyCommand");
|
|
1547
|
+
var de_DescribeFileSystemPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1548
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
|
+
return de_CommandError(output, context);
|
|
1550
|
+
}
|
|
1551
|
+
const contents = (0, import_smithy_client.map)({
|
|
1552
|
+
$metadata: deserializeMetadata(output)
|
|
1553
|
+
});
|
|
1554
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1555
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1556
|
+
FileSystemId: import_smithy_client.expectString,
|
|
1557
|
+
Policy: import_smithy_client.expectString
|
|
1558
|
+
});
|
|
1559
|
+
Object.assign(contents, doc);
|
|
1560
|
+
return contents;
|
|
1561
|
+
}, "de_DescribeFileSystemPolicyCommand");
|
|
2033
1562
|
var de_DescribeFileSystemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2034
1563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2035
|
-
return
|
|
1564
|
+
return de_CommandError(output, context);
|
|
2036
1565
|
}
|
|
2037
1566
|
const contents = (0, import_smithy_client.map)({
|
|
2038
1567
|
$metadata: deserializeMetadata(output)
|
|
@@ -2046,34 +1575,9 @@ var de_DescribeFileSystemsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2046
1575
|
Object.assign(contents, doc);
|
|
2047
1576
|
return contents;
|
|
2048
1577
|
}, "de_DescribeFileSystemsCommand");
|
|
2049
|
-
var de_DescribeFileSystemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2050
|
-
const parsedOutput = {
|
|
2051
|
-
...output,
|
|
2052
|
-
body: await parseErrorBody(output.body, context)
|
|
2053
|
-
};
|
|
2054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
|
-
switch (errorCode) {
|
|
2056
|
-
case "BadRequest":
|
|
2057
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2058
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2059
|
-
case "FileSystemNotFound":
|
|
2060
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2061
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2062
|
-
case "InternalServerError":
|
|
2063
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2064
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2065
|
-
default:
|
|
2066
|
-
const parsedBody = parsedOutput.body;
|
|
2067
|
-
return throwDefaultError({
|
|
2068
|
-
output,
|
|
2069
|
-
parsedBody,
|
|
2070
|
-
errorCode
|
|
2071
|
-
});
|
|
2072
|
-
}
|
|
2073
|
-
}, "de_DescribeFileSystemsCommandError");
|
|
2074
1578
|
var de_DescribeLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2075
1579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2076
|
-
return
|
|
1580
|
+
return de_CommandError(output, context);
|
|
2077
1581
|
}
|
|
2078
1582
|
const contents = (0, import_smithy_client.map)({
|
|
2079
1583
|
$metadata: deserializeMetadata(output)
|
|
@@ -2085,34 +1589,9 @@ var de_DescribeLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
2085
1589
|
Object.assign(contents, doc);
|
|
2086
1590
|
return contents;
|
|
2087
1591
|
}, "de_DescribeLifecycleConfigurationCommand");
|
|
2088
|
-
var de_DescribeLifecycleConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2089
|
-
const parsedOutput = {
|
|
2090
|
-
...output,
|
|
2091
|
-
body: await parseErrorBody(output.body, context)
|
|
2092
|
-
};
|
|
2093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
|
-
switch (errorCode) {
|
|
2095
|
-
case "BadRequest":
|
|
2096
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2097
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2098
|
-
case "FileSystemNotFound":
|
|
2099
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2100
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2101
|
-
case "InternalServerError":
|
|
2102
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2103
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2104
|
-
default:
|
|
2105
|
-
const parsedBody = parsedOutput.body;
|
|
2106
|
-
return throwDefaultError({
|
|
2107
|
-
output,
|
|
2108
|
-
parsedBody,
|
|
2109
|
-
errorCode
|
|
2110
|
-
});
|
|
2111
|
-
}
|
|
2112
|
-
}, "de_DescribeLifecycleConfigurationCommandError");
|
|
2113
1592
|
var de_DescribeMountTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2114
1593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2115
|
-
return
|
|
1594
|
+
return de_CommandError(output, context);
|
|
2116
1595
|
}
|
|
2117
1596
|
const contents = (0, import_smithy_client.map)({
|
|
2118
1597
|
$metadata: deserializeMetadata(output)
|
|
@@ -2126,40 +1605,9 @@ var de_DescribeMountTargetsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2126
1605
|
Object.assign(contents, doc);
|
|
2127
1606
|
return contents;
|
|
2128
1607
|
}, "de_DescribeMountTargetsCommand");
|
|
2129
|
-
var de_DescribeMountTargetsCommandError = /* @__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 "AccessPointNotFound":
|
|
2137
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
2138
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
2139
|
-
case "BadRequest":
|
|
2140
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2141
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2142
|
-
case "FileSystemNotFound":
|
|
2143
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2144
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2145
|
-
case "InternalServerError":
|
|
2146
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2147
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2148
|
-
case "MountTargetNotFound":
|
|
2149
|
-
case "com.amazonaws.efs#MountTargetNotFound":
|
|
2150
|
-
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
2151
|
-
default:
|
|
2152
|
-
const parsedBody = parsedOutput.body;
|
|
2153
|
-
return throwDefaultError({
|
|
2154
|
-
output,
|
|
2155
|
-
parsedBody,
|
|
2156
|
-
errorCode
|
|
2157
|
-
});
|
|
2158
|
-
}
|
|
2159
|
-
}, "de_DescribeMountTargetsCommandError");
|
|
2160
1608
|
var de_DescribeMountTargetSecurityGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2161
1609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2162
|
-
return
|
|
1610
|
+
return de_CommandError(output, context);
|
|
2163
1611
|
}
|
|
2164
1612
|
const contents = (0, import_smithy_client.map)({
|
|
2165
1613
|
$metadata: deserializeMetadata(output)
|
|
@@ -2171,37 +1619,9 @@ var de_DescribeMountTargetSecurityGroupsCommand = /* @__PURE__ */ __name(async (
|
|
|
2171
1619
|
Object.assign(contents, doc);
|
|
2172
1620
|
return contents;
|
|
2173
1621
|
}, "de_DescribeMountTargetSecurityGroupsCommand");
|
|
2174
|
-
var de_DescribeMountTargetSecurityGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2175
|
-
const parsedOutput = {
|
|
2176
|
-
...output,
|
|
2177
|
-
body: await parseErrorBody(output.body, context)
|
|
2178
|
-
};
|
|
2179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
|
-
switch (errorCode) {
|
|
2181
|
-
case "BadRequest":
|
|
2182
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2183
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2184
|
-
case "IncorrectMountTargetState":
|
|
2185
|
-
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
2186
|
-
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
2187
|
-
case "InternalServerError":
|
|
2188
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2189
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2190
|
-
case "MountTargetNotFound":
|
|
2191
|
-
case "com.amazonaws.efs#MountTargetNotFound":
|
|
2192
|
-
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
2193
|
-
default:
|
|
2194
|
-
const parsedBody = parsedOutput.body;
|
|
2195
|
-
return throwDefaultError({
|
|
2196
|
-
output,
|
|
2197
|
-
parsedBody,
|
|
2198
|
-
errorCode
|
|
2199
|
-
});
|
|
2200
|
-
}
|
|
2201
|
-
}, "de_DescribeMountTargetSecurityGroupsCommandError");
|
|
2202
1622
|
var de_DescribeReplicationConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2203
1623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2204
|
-
return
|
|
1624
|
+
return de_CommandError(output, context);
|
|
2205
1625
|
}
|
|
2206
1626
|
const contents = (0, import_smithy_client.map)({
|
|
2207
1627
|
$metadata: deserializeMetadata(output)
|
|
@@ -2214,40 +1634,9 @@ var de_DescribeReplicationConfigurationsCommand = /* @__PURE__ */ __name(async (
|
|
|
2214
1634
|
Object.assign(contents, doc);
|
|
2215
1635
|
return contents;
|
|
2216
1636
|
}, "de_DescribeReplicationConfigurationsCommand");
|
|
2217
|
-
var de_DescribeReplicationConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2218
|
-
const parsedOutput = {
|
|
2219
|
-
...output,
|
|
2220
|
-
body: await parseErrorBody(output.body, context)
|
|
2221
|
-
};
|
|
2222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
|
-
switch (errorCode) {
|
|
2224
|
-
case "BadRequest":
|
|
2225
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2226
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2227
|
-
case "FileSystemNotFound":
|
|
2228
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2229
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2230
|
-
case "InternalServerError":
|
|
2231
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2232
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2233
|
-
case "ReplicationNotFound":
|
|
2234
|
-
case "com.amazonaws.efs#ReplicationNotFound":
|
|
2235
|
-
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
2236
|
-
case "ValidationException":
|
|
2237
|
-
case "com.amazonaws.efs#ValidationException":
|
|
2238
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2239
|
-
default:
|
|
2240
|
-
const parsedBody = parsedOutput.body;
|
|
2241
|
-
return throwDefaultError({
|
|
2242
|
-
output,
|
|
2243
|
-
parsedBody,
|
|
2244
|
-
errorCode
|
|
2245
|
-
});
|
|
2246
|
-
}
|
|
2247
|
-
}, "de_DescribeReplicationConfigurationsCommandError");
|
|
2248
1637
|
var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2249
1638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2250
|
-
return
|
|
1639
|
+
return de_CommandError(output, context);
|
|
2251
1640
|
}
|
|
2252
1641
|
const contents = (0, import_smithy_client.map)({
|
|
2253
1642
|
$metadata: deserializeMetadata(output)
|
|
@@ -2261,34 +1650,9 @@ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2261
1650
|
Object.assign(contents, doc);
|
|
2262
1651
|
return contents;
|
|
2263
1652
|
}, "de_DescribeTagsCommand");
|
|
2264
|
-
var de_DescribeTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2265
|
-
const parsedOutput = {
|
|
2266
|
-
...output,
|
|
2267
|
-
body: await parseErrorBody(output.body, context)
|
|
2268
|
-
};
|
|
2269
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2270
|
-
switch (errorCode) {
|
|
2271
|
-
case "BadRequest":
|
|
2272
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2273
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2274
|
-
case "FileSystemNotFound":
|
|
2275
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2276
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2277
|
-
case "InternalServerError":
|
|
2278
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2279
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2280
|
-
default:
|
|
2281
|
-
const parsedBody = parsedOutput.body;
|
|
2282
|
-
return throwDefaultError({
|
|
2283
|
-
output,
|
|
2284
|
-
parsedBody,
|
|
2285
|
-
errorCode
|
|
2286
|
-
});
|
|
2287
|
-
}
|
|
2288
|
-
}, "de_DescribeTagsCommandError");
|
|
2289
1653
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2290
1654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2291
|
-
return
|
|
1655
|
+
return de_CommandError(output, context);
|
|
2292
1656
|
}
|
|
2293
1657
|
const contents = (0, import_smithy_client.map)({
|
|
2294
1658
|
$metadata: deserializeMetadata(output)
|
|
@@ -2301,37 +1665,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2301
1665
|
Object.assign(contents, doc);
|
|
2302
1666
|
return contents;
|
|
2303
1667
|
}, "de_ListTagsForResourceCommand");
|
|
2304
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2305
|
-
const parsedOutput = {
|
|
2306
|
-
...output,
|
|
2307
|
-
body: await parseErrorBody(output.body, context)
|
|
2308
|
-
};
|
|
2309
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2310
|
-
switch (errorCode) {
|
|
2311
|
-
case "AccessPointNotFound":
|
|
2312
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
2313
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
2314
|
-
case "BadRequest":
|
|
2315
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2316
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2317
|
-
case "FileSystemNotFound":
|
|
2318
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2319
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2320
|
-
case "InternalServerError":
|
|
2321
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2322
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2323
|
-
default:
|
|
2324
|
-
const parsedBody = parsedOutput.body;
|
|
2325
|
-
return throwDefaultError({
|
|
2326
|
-
output,
|
|
2327
|
-
parsedBody,
|
|
2328
|
-
errorCode
|
|
2329
|
-
});
|
|
2330
|
-
}
|
|
2331
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2332
1668
|
var de_ModifyMountTargetSecurityGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2333
1669
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2334
|
-
return
|
|
1670
|
+
return de_CommandError(output, context);
|
|
2335
1671
|
}
|
|
2336
1672
|
const contents = (0, import_smithy_client.map)({
|
|
2337
1673
|
$metadata: deserializeMetadata(output)
|
|
@@ -2339,43 +1675,9 @@ var de_ModifyMountTargetSecurityGroupsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2339
1675
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2340
1676
|
return contents;
|
|
2341
1677
|
}, "de_ModifyMountTargetSecurityGroupsCommand");
|
|
2342
|
-
var de_ModifyMountTargetSecurityGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2343
|
-
const parsedOutput = {
|
|
2344
|
-
...output,
|
|
2345
|
-
body: await parseErrorBody(output.body, context)
|
|
2346
|
-
};
|
|
2347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2348
|
-
switch (errorCode) {
|
|
2349
|
-
case "BadRequest":
|
|
2350
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2351
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2352
|
-
case "IncorrectMountTargetState":
|
|
2353
|
-
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
2354
|
-
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
2355
|
-
case "InternalServerError":
|
|
2356
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2357
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2358
|
-
case "MountTargetNotFound":
|
|
2359
|
-
case "com.amazonaws.efs#MountTargetNotFound":
|
|
2360
|
-
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
2361
|
-
case "SecurityGroupLimitExceeded":
|
|
2362
|
-
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
2363
|
-
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
2364
|
-
case "SecurityGroupNotFound":
|
|
2365
|
-
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
2366
|
-
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
2367
|
-
default:
|
|
2368
|
-
const parsedBody = parsedOutput.body;
|
|
2369
|
-
return throwDefaultError({
|
|
2370
|
-
output,
|
|
2371
|
-
parsedBody,
|
|
2372
|
-
errorCode
|
|
2373
|
-
});
|
|
2374
|
-
}
|
|
2375
|
-
}, "de_ModifyMountTargetSecurityGroupsCommandError");
|
|
2376
1678
|
var de_PutAccountPreferencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2377
1679
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2378
|
-
return
|
|
1680
|
+
return de_CommandError(output, context);
|
|
2379
1681
|
}
|
|
2380
1682
|
const contents = (0, import_smithy_client.map)({
|
|
2381
1683
|
$metadata: deserializeMetadata(output)
|
|
@@ -2386,32 +1688,10 @@ var de_PutAccountPreferencesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2386
1688
|
});
|
|
2387
1689
|
Object.assign(contents, doc);
|
|
2388
1690
|
return contents;
|
|
2389
|
-
}, "de_PutAccountPreferencesCommand");
|
|
2390
|
-
var de_PutAccountPreferencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2391
|
-
const parsedOutput = {
|
|
2392
|
-
...output,
|
|
2393
|
-
body: await parseErrorBody(output.body, context)
|
|
2394
|
-
};
|
|
2395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
|
-
switch (errorCode) {
|
|
2397
|
-
case "BadRequest":
|
|
2398
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2399
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2400
|
-
case "InternalServerError":
|
|
2401
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2402
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2403
|
-
default:
|
|
2404
|
-
const parsedBody = parsedOutput.body;
|
|
2405
|
-
return throwDefaultError({
|
|
2406
|
-
output,
|
|
2407
|
-
parsedBody,
|
|
2408
|
-
errorCode
|
|
2409
|
-
});
|
|
2410
|
-
}
|
|
2411
|
-
}, "de_PutAccountPreferencesCommandError");
|
|
1691
|
+
}, "de_PutAccountPreferencesCommand");
|
|
2412
1692
|
var de_PutBackupPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2413
1693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2414
|
-
return
|
|
1694
|
+
return de_CommandError(output, context);
|
|
2415
1695
|
}
|
|
2416
1696
|
const contents = (0, import_smithy_client.map)({
|
|
2417
1697
|
$metadata: deserializeMetadata(output)
|
|
@@ -2423,40 +1703,9 @@ var de_PutBackupPolicyCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2423
1703
|
Object.assign(contents, doc);
|
|
2424
1704
|
return contents;
|
|
2425
1705
|
}, "de_PutBackupPolicyCommand");
|
|
2426
|
-
var de_PutBackupPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2427
|
-
const parsedOutput = {
|
|
2428
|
-
...output,
|
|
2429
|
-
body: await parseErrorBody(output.body, context)
|
|
2430
|
-
};
|
|
2431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
-
switch (errorCode) {
|
|
2433
|
-
case "BadRequest":
|
|
2434
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2435
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2436
|
-
case "FileSystemNotFound":
|
|
2437
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2438
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2439
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
2440
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
2441
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
2442
|
-
case "InternalServerError":
|
|
2443
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2444
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2445
|
-
case "ValidationException":
|
|
2446
|
-
case "com.amazonaws.efs#ValidationException":
|
|
2447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2448
|
-
default:
|
|
2449
|
-
const parsedBody = parsedOutput.body;
|
|
2450
|
-
return throwDefaultError({
|
|
2451
|
-
output,
|
|
2452
|
-
parsedBody,
|
|
2453
|
-
errorCode
|
|
2454
|
-
});
|
|
2455
|
-
}
|
|
2456
|
-
}, "de_PutBackupPolicyCommandError");
|
|
2457
1706
|
var de_PutFileSystemPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2458
1707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2459
|
-
return
|
|
1708
|
+
return de_CommandError(output, context);
|
|
2460
1709
|
}
|
|
2461
1710
|
const contents = (0, import_smithy_client.map)({
|
|
2462
1711
|
$metadata: deserializeMetadata(output)
|
|
@@ -2469,40 +1718,9 @@ var de_PutFileSystemPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2469
1718
|
Object.assign(contents, doc);
|
|
2470
1719
|
return contents;
|
|
2471
1720
|
}, "de_PutFileSystemPolicyCommand");
|
|
2472
|
-
var de_PutFileSystemPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2473
|
-
const parsedOutput = {
|
|
2474
|
-
...output,
|
|
2475
|
-
body: await parseErrorBody(output.body, context)
|
|
2476
|
-
};
|
|
2477
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2478
|
-
switch (errorCode) {
|
|
2479
|
-
case "BadRequest":
|
|
2480
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2481
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2482
|
-
case "FileSystemNotFound":
|
|
2483
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2484
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2485
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
2486
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
2487
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
2488
|
-
case "InternalServerError":
|
|
2489
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2490
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2491
|
-
case "InvalidPolicyException":
|
|
2492
|
-
case "com.amazonaws.efs#InvalidPolicyException":
|
|
2493
|
-
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
2494
|
-
default:
|
|
2495
|
-
const parsedBody = parsedOutput.body;
|
|
2496
|
-
return throwDefaultError({
|
|
2497
|
-
output,
|
|
2498
|
-
parsedBody,
|
|
2499
|
-
errorCode
|
|
2500
|
-
});
|
|
2501
|
-
}
|
|
2502
|
-
}, "de_PutFileSystemPolicyCommandError");
|
|
2503
1721
|
var de_PutLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2504
1722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2505
|
-
return
|
|
1723
|
+
return de_CommandError(output, context);
|
|
2506
1724
|
}
|
|
2507
1725
|
const contents = (0, import_smithy_client.map)({
|
|
2508
1726
|
$metadata: deserializeMetadata(output)
|
|
@@ -2514,37 +1732,9 @@ var de_PutLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2514
1732
|
Object.assign(contents, doc);
|
|
2515
1733
|
return contents;
|
|
2516
1734
|
}, "de_PutLifecycleConfigurationCommand");
|
|
2517
|
-
var de_PutLifecycleConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2518
|
-
const parsedOutput = {
|
|
2519
|
-
...output,
|
|
2520
|
-
body: await parseErrorBody(output.body, context)
|
|
2521
|
-
};
|
|
2522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2523
|
-
switch (errorCode) {
|
|
2524
|
-
case "BadRequest":
|
|
2525
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2526
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2527
|
-
case "FileSystemNotFound":
|
|
2528
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2529
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2530
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
2531
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
2532
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
2533
|
-
case "InternalServerError":
|
|
2534
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2535
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2536
|
-
default:
|
|
2537
|
-
const parsedBody = parsedOutput.body;
|
|
2538
|
-
return throwDefaultError({
|
|
2539
|
-
output,
|
|
2540
|
-
parsedBody,
|
|
2541
|
-
errorCode
|
|
2542
|
-
});
|
|
2543
|
-
}
|
|
2544
|
-
}, "de_PutLifecycleConfigurationCommandError");
|
|
2545
1735
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2546
1736
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2547
|
-
return
|
|
1737
|
+
return de_CommandError(output, context);
|
|
2548
1738
|
}
|
|
2549
1739
|
const contents = (0, import_smithy_client.map)({
|
|
2550
1740
|
$metadata: deserializeMetadata(output)
|
|
@@ -2552,37 +1742,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2552
1742
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2553
1743
|
return contents;
|
|
2554
1744
|
}, "de_TagResourceCommand");
|
|
2555
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2556
|
-
const parsedOutput = {
|
|
2557
|
-
...output,
|
|
2558
|
-
body: await parseErrorBody(output.body, context)
|
|
2559
|
-
};
|
|
2560
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2561
|
-
switch (errorCode) {
|
|
2562
|
-
case "AccessPointNotFound":
|
|
2563
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
2564
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
2565
|
-
case "BadRequest":
|
|
2566
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2567
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2568
|
-
case "FileSystemNotFound":
|
|
2569
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2570
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2571
|
-
case "InternalServerError":
|
|
2572
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2573
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2574
|
-
default:
|
|
2575
|
-
const parsedBody = parsedOutput.body;
|
|
2576
|
-
return throwDefaultError({
|
|
2577
|
-
output,
|
|
2578
|
-
parsedBody,
|
|
2579
|
-
errorCode
|
|
2580
|
-
});
|
|
2581
|
-
}
|
|
2582
|
-
}, "de_TagResourceCommandError");
|
|
2583
1745
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2584
1746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2585
|
-
return
|
|
1747
|
+
return de_CommandError(output, context);
|
|
2586
1748
|
}
|
|
2587
1749
|
const contents = (0, import_smithy_client.map)({
|
|
2588
1750
|
$metadata: deserializeMetadata(output)
|
|
@@ -2590,37 +1752,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2590
1752
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2591
1753
|
return contents;
|
|
2592
1754
|
}, "de_UntagResourceCommand");
|
|
2593
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2594
|
-
const parsedOutput = {
|
|
2595
|
-
...output,
|
|
2596
|
-
body: await parseErrorBody(output.body, context)
|
|
2597
|
-
};
|
|
2598
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2599
|
-
switch (errorCode) {
|
|
2600
|
-
case "AccessPointNotFound":
|
|
2601
|
-
case "com.amazonaws.efs#AccessPointNotFound":
|
|
2602
|
-
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
2603
|
-
case "BadRequest":
|
|
2604
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2605
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2606
|
-
case "FileSystemNotFound":
|
|
2607
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2608
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2609
|
-
case "InternalServerError":
|
|
2610
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2611
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2612
|
-
default:
|
|
2613
|
-
const parsedBody = parsedOutput.body;
|
|
2614
|
-
return throwDefaultError({
|
|
2615
|
-
output,
|
|
2616
|
-
parsedBody,
|
|
2617
|
-
errorCode
|
|
2618
|
-
});
|
|
2619
|
-
}
|
|
2620
|
-
}, "de_UntagResourceCommandError");
|
|
2621
1755
|
var de_UpdateFileSystemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2622
1756
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2623
|
-
return
|
|
1757
|
+
return de_CommandError(output, context);
|
|
2624
1758
|
}
|
|
2625
1759
|
const contents = (0, import_smithy_client.map)({
|
|
2626
1760
|
$metadata: deserializeMetadata(output)
|
|
@@ -2649,46 +1783,9 @@ var de_UpdateFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2649
1783
|
Object.assign(contents, doc);
|
|
2650
1784
|
return contents;
|
|
2651
1785
|
}, "de_UpdateFileSystemCommand");
|
|
2652
|
-
var de_UpdateFileSystemCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2653
|
-
const parsedOutput = {
|
|
2654
|
-
...output,
|
|
2655
|
-
body: await parseErrorBody(output.body, context)
|
|
2656
|
-
};
|
|
2657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2658
|
-
switch (errorCode) {
|
|
2659
|
-
case "BadRequest":
|
|
2660
|
-
case "com.amazonaws.efs#BadRequest":
|
|
2661
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2662
|
-
case "FileSystemNotFound":
|
|
2663
|
-
case "com.amazonaws.efs#FileSystemNotFound":
|
|
2664
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2665
|
-
case "IncorrectFileSystemLifeCycleState":
|
|
2666
|
-
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
2667
|
-
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
2668
|
-
case "InsufficientThroughputCapacity":
|
|
2669
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
2670
|
-
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
2671
|
-
case "InternalServerError":
|
|
2672
|
-
case "com.amazonaws.efs#InternalServerError":
|
|
2673
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2674
|
-
case "ThroughputLimitExceeded":
|
|
2675
|
-
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
2676
|
-
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
2677
|
-
case "TooManyRequests":
|
|
2678
|
-
case "com.amazonaws.efs#TooManyRequests":
|
|
2679
|
-
throw await de_TooManyRequestsRes(parsedOutput, context);
|
|
2680
|
-
default:
|
|
2681
|
-
const parsedBody = parsedOutput.body;
|
|
2682
|
-
return throwDefaultError({
|
|
2683
|
-
output,
|
|
2684
|
-
parsedBody,
|
|
2685
|
-
errorCode
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
}, "de_UpdateFileSystemCommandError");
|
|
2689
1786
|
var de_UpdateFileSystemProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2690
1787
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2691
|
-
return
|
|
1788
|
+
return de_CommandError(output, context);
|
|
2692
1789
|
}
|
|
2693
1790
|
const contents = (0, import_smithy_client.map)({
|
|
2694
1791
|
$metadata: deserializeMetadata(output)
|
|
@@ -2700,13 +1797,19 @@ var de_UpdateFileSystemProtectionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2700
1797
|
Object.assign(contents, doc);
|
|
2701
1798
|
return contents;
|
|
2702
1799
|
}, "de_UpdateFileSystemProtectionCommand");
|
|
2703
|
-
var
|
|
1800
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2704
1801
|
const parsedOutput = {
|
|
2705
1802
|
...output,
|
|
2706
1803
|
body: await parseErrorBody(output.body, context)
|
|
2707
1804
|
};
|
|
2708
1805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2709
1806
|
switch (errorCode) {
|
|
1807
|
+
case "AccessPointAlreadyExists":
|
|
1808
|
+
case "com.amazonaws.efs#AccessPointAlreadyExists":
|
|
1809
|
+
throw await de_AccessPointAlreadyExistsRes(parsedOutput, context);
|
|
1810
|
+
case "AccessPointLimitExceeded":
|
|
1811
|
+
case "com.amazonaws.efs#AccessPointLimitExceeded":
|
|
1812
|
+
throw await de_AccessPointLimitExceededRes(parsedOutput, context);
|
|
2710
1813
|
case "BadRequest":
|
|
2711
1814
|
case "com.amazonaws.efs#BadRequest":
|
|
2712
1815
|
throw await de_BadRequestRes(parsedOutput, context);
|
|
@@ -2716,21 +1819,87 @@ var de_UpdateFileSystemProtectionCommandError = /* @__PURE__ */ __name(async (ou
|
|
|
2716
1819
|
case "IncorrectFileSystemLifeCycleState":
|
|
2717
1820
|
case "com.amazonaws.efs#IncorrectFileSystemLifeCycleState":
|
|
2718
1821
|
throw await de_IncorrectFileSystemLifeCycleStateRes(parsedOutput, context);
|
|
2719
|
-
case "InsufficientThroughputCapacity":
|
|
2720
|
-
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
2721
|
-
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
2722
1822
|
case "InternalServerError":
|
|
2723
1823
|
case "com.amazonaws.efs#InternalServerError":
|
|
2724
1824
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2725
|
-
case "
|
|
2726
|
-
case "com.amazonaws.efs#
|
|
2727
|
-
throw await
|
|
1825
|
+
case "ThrottlingException":
|
|
1826
|
+
case "com.amazonaws.efs#ThrottlingException":
|
|
1827
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1828
|
+
case "FileSystemAlreadyExists":
|
|
1829
|
+
case "com.amazonaws.efs#FileSystemAlreadyExists":
|
|
1830
|
+
throw await de_FileSystemAlreadyExistsRes(parsedOutput, context);
|
|
1831
|
+
case "FileSystemLimitExceeded":
|
|
1832
|
+
case "com.amazonaws.efs#FileSystemLimitExceeded":
|
|
1833
|
+
throw await de_FileSystemLimitExceededRes(parsedOutput, context);
|
|
1834
|
+
case "InsufficientThroughputCapacity":
|
|
1835
|
+
case "com.amazonaws.efs#InsufficientThroughputCapacity":
|
|
1836
|
+
throw await de_InsufficientThroughputCapacityRes(parsedOutput, context);
|
|
2728
1837
|
case "ThroughputLimitExceeded":
|
|
2729
1838
|
case "com.amazonaws.efs#ThroughputLimitExceeded":
|
|
2730
1839
|
throw await de_ThroughputLimitExceededRes(parsedOutput, context);
|
|
1840
|
+
case "UnsupportedAvailabilityZone":
|
|
1841
|
+
case "com.amazonaws.efs#UnsupportedAvailabilityZone":
|
|
1842
|
+
throw await de_UnsupportedAvailabilityZoneRes(parsedOutput, context);
|
|
1843
|
+
case "AvailabilityZonesMismatch":
|
|
1844
|
+
case "com.amazonaws.efs#AvailabilityZonesMismatch":
|
|
1845
|
+
throw await de_AvailabilityZonesMismatchRes(parsedOutput, context);
|
|
1846
|
+
case "IpAddressInUse":
|
|
1847
|
+
case "com.amazonaws.efs#IpAddressInUse":
|
|
1848
|
+
throw await de_IpAddressInUseRes(parsedOutput, context);
|
|
1849
|
+
case "MountTargetConflict":
|
|
1850
|
+
case "com.amazonaws.efs#MountTargetConflict":
|
|
1851
|
+
throw await de_MountTargetConflictRes(parsedOutput, context);
|
|
1852
|
+
case "NetworkInterfaceLimitExceeded":
|
|
1853
|
+
case "com.amazonaws.efs#NetworkInterfaceLimitExceeded":
|
|
1854
|
+
throw await de_NetworkInterfaceLimitExceededRes(parsedOutput, context);
|
|
1855
|
+
case "NoFreeAddressesInSubnet":
|
|
1856
|
+
case "com.amazonaws.efs#NoFreeAddressesInSubnet":
|
|
1857
|
+
throw await de_NoFreeAddressesInSubnetRes(parsedOutput, context);
|
|
1858
|
+
case "SecurityGroupLimitExceeded":
|
|
1859
|
+
case "com.amazonaws.efs#SecurityGroupLimitExceeded":
|
|
1860
|
+
throw await de_SecurityGroupLimitExceededRes(parsedOutput, context);
|
|
1861
|
+
case "SecurityGroupNotFound":
|
|
1862
|
+
case "com.amazonaws.efs#SecurityGroupNotFound":
|
|
1863
|
+
throw await de_SecurityGroupNotFoundRes(parsedOutput, context);
|
|
1864
|
+
case "SubnetNotFound":
|
|
1865
|
+
case "com.amazonaws.efs#SubnetNotFound":
|
|
1866
|
+
throw await de_SubnetNotFoundRes(parsedOutput, context);
|
|
1867
|
+
case "ConflictException":
|
|
1868
|
+
case "com.amazonaws.efs#ConflictException":
|
|
1869
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1870
|
+
case "ReplicationNotFound":
|
|
1871
|
+
case "com.amazonaws.efs#ReplicationNotFound":
|
|
1872
|
+
throw await de_ReplicationNotFoundRes(parsedOutput, context);
|
|
1873
|
+
case "ValidationException":
|
|
1874
|
+
case "com.amazonaws.efs#ValidationException":
|
|
1875
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1876
|
+
case "AccessPointNotFound":
|
|
1877
|
+
case "com.amazonaws.efs#AccessPointNotFound":
|
|
1878
|
+
throw await de_AccessPointNotFoundRes(parsedOutput, context);
|
|
1879
|
+
case "FileSystemInUse":
|
|
1880
|
+
case "com.amazonaws.efs#FileSystemInUse":
|
|
1881
|
+
throw await de_FileSystemInUseRes(parsedOutput, context);
|
|
1882
|
+
case "DependencyTimeout":
|
|
1883
|
+
case "com.amazonaws.efs#DependencyTimeout":
|
|
1884
|
+
throw await de_DependencyTimeoutRes(parsedOutput, context);
|
|
1885
|
+
case "MountTargetNotFound":
|
|
1886
|
+
case "com.amazonaws.efs#MountTargetNotFound":
|
|
1887
|
+
throw await de_MountTargetNotFoundRes(parsedOutput, context);
|
|
1888
|
+
case "PolicyNotFound":
|
|
1889
|
+
case "com.amazonaws.efs#PolicyNotFound":
|
|
1890
|
+
throw await de_PolicyNotFoundRes(parsedOutput, context);
|
|
1891
|
+
case "IncorrectMountTargetState":
|
|
1892
|
+
case "com.amazonaws.efs#IncorrectMountTargetState":
|
|
1893
|
+
throw await de_IncorrectMountTargetStateRes(parsedOutput, context);
|
|
1894
|
+
case "InvalidPolicyException":
|
|
1895
|
+
case "com.amazonaws.efs#InvalidPolicyException":
|
|
1896
|
+
throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
|
|
2731
1897
|
case "TooManyRequests":
|
|
2732
1898
|
case "com.amazonaws.efs#TooManyRequests":
|
|
2733
1899
|
throw await de_TooManyRequestsRes(parsedOutput, context);
|
|
1900
|
+
case "ReplicationAlreadyExists":
|
|
1901
|
+
case "com.amazonaws.efs#ReplicationAlreadyExists":
|
|
1902
|
+
throw await de_ReplicationAlreadyExistsRes(parsedOutput, context);
|
|
2734
1903
|
default:
|
|
2735
1904
|
const parsedBody = parsedOutput.body;
|
|
2736
1905
|
return throwDefaultError({
|
|
@@ -2739,7 +1908,7 @@ var de_UpdateFileSystemProtectionCommandError = /* @__PURE__ */ __name(async (ou
|
|
|
2739
1908
|
errorCode
|
|
2740
1909
|
});
|
|
2741
1910
|
}
|
|
2742
|
-
}, "
|
|
1911
|
+
}, "de_CommandError");
|
|
2743
1912
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(EFSServiceException);
|
|
2744
1913
|
var de_AccessPointAlreadyExistsRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2745
1914
|
const contents = (0, import_smithy_client.map)({});
|