@aws-sdk/client-workspaces 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 +181 -2107
- package/dist-es/protocols/Aws_json1_1.js +293 -2219
- package/dist-types/models/models_0.d.ts +70 -0
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1313,7 +1313,7 @@ var se_UpdateWorkspaceImagePermissionCommand = /* @__PURE__ */ __name(async (inp
|
|
|
1313
1313
|
}, "se_UpdateWorkspaceImagePermissionCommand");
|
|
1314
1314
|
var de_AssociateConnectionAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1315
1315
|
if (output.statusCode >= 300) {
|
|
1316
|
-
return
|
|
1316
|
+
return de_CommandError(output, context);
|
|
1317
1317
|
}
|
|
1318
1318
|
const data = await parseBody(output.body, context);
|
|
1319
1319
|
let contents = {};
|
|
@@ -1324,43 +1324,9 @@ var de_AssociateConnectionAliasCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1324
1324
|
};
|
|
1325
1325
|
return response;
|
|
1326
1326
|
}, "de_AssociateConnectionAliasCommand");
|
|
1327
|
-
var de_AssociateConnectionAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context)
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
switch (errorCode) {
|
|
1334
|
-
case "AccessDeniedException":
|
|
1335
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1336
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "InvalidParameterValuesException":
|
|
1338
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1339
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "InvalidResourceStateException":
|
|
1341
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1342
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "OperationNotSupportedException":
|
|
1344
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1345
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ResourceAssociatedException":
|
|
1347
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
1348
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ResourceNotFoundException":
|
|
1350
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1351
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1352
|
-
default:
|
|
1353
|
-
const parsedBody = parsedOutput.body;
|
|
1354
|
-
return throwDefaultError({
|
|
1355
|
-
output,
|
|
1356
|
-
parsedBody,
|
|
1357
|
-
errorCode
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1360
|
-
}, "de_AssociateConnectionAliasCommandError");
|
|
1361
1327
|
var de_AssociateIpGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1362
1328
|
if (output.statusCode >= 300) {
|
|
1363
|
-
return
|
|
1329
|
+
return de_CommandError(output, context);
|
|
1364
1330
|
}
|
|
1365
1331
|
const data = await parseBody(output.body, context);
|
|
1366
1332
|
let contents = {};
|
|
@@ -1371,43 +1337,9 @@ var de_AssociateIpGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1371
1337
|
};
|
|
1372
1338
|
return response;
|
|
1373
1339
|
}, "de_AssociateIpGroupsCommand");
|
|
1374
|
-
var de_AssociateIpGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1375
|
-
const parsedOutput = {
|
|
1376
|
-
...output,
|
|
1377
|
-
body: await parseErrorBody(output.body, context)
|
|
1378
|
-
};
|
|
1379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
|
-
switch (errorCode) {
|
|
1381
|
-
case "AccessDeniedException":
|
|
1382
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1383
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1384
|
-
case "InvalidParameterValuesException":
|
|
1385
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1386
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1387
|
-
case "InvalidResourceStateException":
|
|
1388
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1389
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1390
|
-
case "OperationNotSupportedException":
|
|
1391
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1392
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1393
|
-
case "ResourceLimitExceededException":
|
|
1394
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1395
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1396
|
-
case "ResourceNotFoundException":
|
|
1397
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1398
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1399
|
-
default:
|
|
1400
|
-
const parsedBody = parsedOutput.body;
|
|
1401
|
-
return throwDefaultError({
|
|
1402
|
-
output,
|
|
1403
|
-
parsedBody,
|
|
1404
|
-
errorCode
|
|
1405
|
-
});
|
|
1406
|
-
}
|
|
1407
|
-
}, "de_AssociateIpGroupsCommandError");
|
|
1408
1340
|
var de_AssociateWorkspaceApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1409
1341
|
if (output.statusCode >= 300) {
|
|
1410
|
-
return
|
|
1342
|
+
return de_CommandError(output, context);
|
|
1411
1343
|
}
|
|
1412
1344
|
const data = await parseBody(output.body, context);
|
|
1413
1345
|
let contents = {};
|
|
@@ -1418,55 +1350,9 @@ var de_AssociateWorkspaceApplicationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1418
1350
|
};
|
|
1419
1351
|
return response;
|
|
1420
1352
|
}, "de_AssociateWorkspaceApplicationCommand");
|
|
1421
|
-
var de_AssociateWorkspaceApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1422
|
-
const parsedOutput = {
|
|
1423
|
-
...output,
|
|
1424
|
-
body: await parseErrorBody(output.body, context)
|
|
1425
|
-
};
|
|
1426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
|
-
switch (errorCode) {
|
|
1428
|
-
case "AccessDeniedException":
|
|
1429
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1430
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ApplicationNotSupportedException":
|
|
1432
|
-
case "com.amazonaws.workspaces#ApplicationNotSupportedException":
|
|
1433
|
-
throw await de_ApplicationNotSupportedExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ComputeNotCompatibleException":
|
|
1435
|
-
case "com.amazonaws.workspaces#ComputeNotCompatibleException":
|
|
1436
|
-
throw await de_ComputeNotCompatibleExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "IncompatibleApplicationsException":
|
|
1438
|
-
case "com.amazonaws.workspaces#IncompatibleApplicationsException":
|
|
1439
|
-
throw await de_IncompatibleApplicationsExceptionRes(parsedOutput, context);
|
|
1440
|
-
case "InvalidParameterValuesException":
|
|
1441
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1442
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1443
|
-
case "OperatingSystemNotCompatibleException":
|
|
1444
|
-
case "com.amazonaws.workspaces#OperatingSystemNotCompatibleException":
|
|
1445
|
-
throw await de_OperatingSystemNotCompatibleExceptionRes(parsedOutput, context);
|
|
1446
|
-
case "OperationNotSupportedException":
|
|
1447
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1448
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1449
|
-
case "ResourceAlreadyExistsException":
|
|
1450
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1451
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1452
|
-
case "ResourceInUseException":
|
|
1453
|
-
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
1454
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1455
|
-
case "ResourceNotFoundException":
|
|
1456
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1458
|
-
default:
|
|
1459
|
-
const parsedBody = parsedOutput.body;
|
|
1460
|
-
return throwDefaultError({
|
|
1461
|
-
output,
|
|
1462
|
-
parsedBody,
|
|
1463
|
-
errorCode
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
|
-
}, "de_AssociateWorkspaceApplicationCommandError");
|
|
1467
1353
|
var de_AuthorizeIpRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1468
1354
|
if (output.statusCode >= 300) {
|
|
1469
|
-
return
|
|
1355
|
+
return de_CommandError(output, context);
|
|
1470
1356
|
}
|
|
1471
1357
|
const data = await parseBody(output.body, context);
|
|
1472
1358
|
let contents = {};
|
|
@@ -1477,40 +1363,9 @@ var de_AuthorizeIpRulesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1477
1363
|
};
|
|
1478
1364
|
return response;
|
|
1479
1365
|
}, "de_AuthorizeIpRulesCommand");
|
|
1480
|
-
var de_AuthorizeIpRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1481
|
-
const parsedOutput = {
|
|
1482
|
-
...output,
|
|
1483
|
-
body: await parseErrorBody(output.body, context)
|
|
1484
|
-
};
|
|
1485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
|
-
switch (errorCode) {
|
|
1487
|
-
case "AccessDeniedException":
|
|
1488
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1489
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1490
|
-
case "InvalidParameterValuesException":
|
|
1491
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1492
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1493
|
-
case "InvalidResourceStateException":
|
|
1494
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1495
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ResourceLimitExceededException":
|
|
1497
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1498
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ResourceNotFoundException":
|
|
1500
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1501
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1502
|
-
default:
|
|
1503
|
-
const parsedBody = parsedOutput.body;
|
|
1504
|
-
return throwDefaultError({
|
|
1505
|
-
output,
|
|
1506
|
-
parsedBody,
|
|
1507
|
-
errorCode
|
|
1508
|
-
});
|
|
1509
|
-
}
|
|
1510
|
-
}, "de_AuthorizeIpRulesCommandError");
|
|
1511
1366
|
var de_CopyWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1512
1367
|
if (output.statusCode >= 300) {
|
|
1513
|
-
return
|
|
1368
|
+
return de_CommandError(output, context);
|
|
1514
1369
|
}
|
|
1515
1370
|
const data = await parseBody(output.body, context);
|
|
1516
1371
|
let contents = {};
|
|
@@ -1521,46 +1376,9 @@ var de_CopyWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1521
1376
|
};
|
|
1522
1377
|
return response;
|
|
1523
1378
|
}, "de_CopyWorkspaceImageCommand");
|
|
1524
|
-
var de_CopyWorkspaceImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1525
|
-
const parsedOutput = {
|
|
1526
|
-
...output,
|
|
1527
|
-
body: await parseErrorBody(output.body, context)
|
|
1528
|
-
};
|
|
1529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1530
|
-
switch (errorCode) {
|
|
1531
|
-
case "AccessDeniedException":
|
|
1532
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1533
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1534
|
-
case "InvalidParameterValuesException":
|
|
1535
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1536
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "OperationNotSupportedException":
|
|
1538
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1539
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ResourceAlreadyExistsException":
|
|
1541
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1542
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1543
|
-
case "ResourceLimitExceededException":
|
|
1544
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1545
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1546
|
-
case "ResourceNotFoundException":
|
|
1547
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1548
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ResourceUnavailableException":
|
|
1550
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
1551
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1552
|
-
default:
|
|
1553
|
-
const parsedBody = parsedOutput.body;
|
|
1554
|
-
return throwDefaultError({
|
|
1555
|
-
output,
|
|
1556
|
-
parsedBody,
|
|
1557
|
-
errorCode
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
}, "de_CopyWorkspaceImageCommandError");
|
|
1561
1379
|
var de_CreateConnectClientAddInCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1562
1380
|
if (output.statusCode >= 300) {
|
|
1563
|
-
return
|
|
1381
|
+
return de_CommandError(output, context);
|
|
1564
1382
|
}
|
|
1565
1383
|
const data = await parseBody(output.body, context);
|
|
1566
1384
|
let contents = {};
|
|
@@ -1571,40 +1389,9 @@ var de_CreateConnectClientAddInCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1571
1389
|
};
|
|
1572
1390
|
return response;
|
|
1573
1391
|
}, "de_CreateConnectClientAddInCommand");
|
|
1574
|
-
var de_CreateConnectClientAddInCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1575
|
-
const parsedOutput = {
|
|
1576
|
-
...output,
|
|
1577
|
-
body: await parseErrorBody(output.body, context)
|
|
1578
|
-
};
|
|
1579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
case "AccessDeniedException":
|
|
1582
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1583
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1584
|
-
case "InvalidParameterValuesException":
|
|
1585
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1586
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1587
|
-
case "ResourceAlreadyExistsException":
|
|
1588
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1589
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1590
|
-
case "ResourceCreationFailedException":
|
|
1591
|
-
case "com.amazonaws.workspaces#ResourceCreationFailedException":
|
|
1592
|
-
throw await de_ResourceCreationFailedExceptionRes(parsedOutput, context);
|
|
1593
|
-
case "ResourceNotFoundException":
|
|
1594
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1595
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1596
|
-
default:
|
|
1597
|
-
const parsedBody = parsedOutput.body;
|
|
1598
|
-
return throwDefaultError({
|
|
1599
|
-
output,
|
|
1600
|
-
parsedBody,
|
|
1601
|
-
errorCode
|
|
1602
|
-
});
|
|
1603
|
-
}
|
|
1604
|
-
}, "de_CreateConnectClientAddInCommandError");
|
|
1605
1392
|
var de_CreateConnectionAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1606
1393
|
if (output.statusCode >= 300) {
|
|
1607
|
-
return
|
|
1394
|
+
return de_CommandError(output, context);
|
|
1608
1395
|
}
|
|
1609
1396
|
const data = await parseBody(output.body, context);
|
|
1610
1397
|
let contents = {};
|
|
@@ -1615,43 +1402,9 @@ var de_CreateConnectionAliasCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1615
1402
|
};
|
|
1616
1403
|
return response;
|
|
1617
1404
|
}, "de_CreateConnectionAliasCommand");
|
|
1618
|
-
var de_CreateConnectionAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1619
|
-
const parsedOutput = {
|
|
1620
|
-
...output,
|
|
1621
|
-
body: await parseErrorBody(output.body, context)
|
|
1622
|
-
};
|
|
1623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
-
switch (errorCode) {
|
|
1625
|
-
case "AccessDeniedException":
|
|
1626
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1627
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "InvalidParameterValuesException":
|
|
1629
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1630
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "InvalidResourceStateException":
|
|
1632
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1633
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "OperationNotSupportedException":
|
|
1635
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1636
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "ResourceAlreadyExistsException":
|
|
1638
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1639
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ResourceLimitExceededException":
|
|
1641
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1642
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1643
|
-
default:
|
|
1644
|
-
const parsedBody = parsedOutput.body;
|
|
1645
|
-
return throwDefaultError({
|
|
1646
|
-
output,
|
|
1647
|
-
parsedBody,
|
|
1648
|
-
errorCode
|
|
1649
|
-
});
|
|
1650
|
-
}
|
|
1651
|
-
}, "de_CreateConnectionAliasCommandError");
|
|
1652
1405
|
var de_CreateIpGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1653
1406
|
if (output.statusCode >= 300) {
|
|
1654
|
-
return
|
|
1407
|
+
return de_CommandError(output, context);
|
|
1655
1408
|
}
|
|
1656
1409
|
const data = await parseBody(output.body, context);
|
|
1657
1410
|
let contents = {};
|
|
@@ -1662,84 +1415,22 @@ var de_CreateIpGroupCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1662
1415
|
};
|
|
1663
1416
|
return response;
|
|
1664
1417
|
}, "de_CreateIpGroupCommand");
|
|
1665
|
-
var
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
case "InvalidParameterValuesException":
|
|
1676
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1677
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "ResourceAlreadyExistsException":
|
|
1679
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1680
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ResourceCreationFailedException":
|
|
1682
|
-
case "com.amazonaws.workspaces#ResourceCreationFailedException":
|
|
1683
|
-
throw await de_ResourceCreationFailedExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ResourceLimitExceededException":
|
|
1685
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1686
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1687
|
-
default:
|
|
1688
|
-
const parsedBody = parsedOutput.body;
|
|
1689
|
-
return throwDefaultError({
|
|
1690
|
-
output,
|
|
1691
|
-
parsedBody,
|
|
1692
|
-
errorCode
|
|
1693
|
-
});
|
|
1694
|
-
}
|
|
1695
|
-
}, "de_CreateIpGroupCommandError");
|
|
1696
|
-
var de_CreateStandbyWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1697
|
-
if (output.statusCode >= 300) {
|
|
1698
|
-
return de_CreateStandbyWorkspacesCommandError(output, context);
|
|
1699
|
-
}
|
|
1700
|
-
const data = await parseBody(output.body, context);
|
|
1701
|
-
let contents = {};
|
|
1702
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1703
|
-
const response = {
|
|
1704
|
-
$metadata: deserializeMetadata(output),
|
|
1705
|
-
...contents
|
|
1418
|
+
var de_CreateStandbyWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1419
|
+
if (output.statusCode >= 300) {
|
|
1420
|
+
return de_CommandError(output, context);
|
|
1421
|
+
}
|
|
1422
|
+
const data = await parseBody(output.body, context);
|
|
1423
|
+
let contents = {};
|
|
1424
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1425
|
+
const response = {
|
|
1426
|
+
$metadata: deserializeMetadata(output),
|
|
1427
|
+
...contents
|
|
1706
1428
|
};
|
|
1707
1429
|
return response;
|
|
1708
1430
|
}, "de_CreateStandbyWorkspacesCommand");
|
|
1709
|
-
var de_CreateStandbyWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1710
|
-
const parsedOutput = {
|
|
1711
|
-
...output,
|
|
1712
|
-
body: await parseErrorBody(output.body, context)
|
|
1713
|
-
};
|
|
1714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1715
|
-
switch (errorCode) {
|
|
1716
|
-
case "AccessDeniedException":
|
|
1717
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1718
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1719
|
-
case "InvalidParameterValuesException":
|
|
1720
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1721
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1722
|
-
case "OperationNotSupportedException":
|
|
1723
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1724
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1725
|
-
case "ResourceLimitExceededException":
|
|
1726
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1727
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1728
|
-
case "ResourceNotFoundException":
|
|
1729
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1730
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1731
|
-
default:
|
|
1732
|
-
const parsedBody = parsedOutput.body;
|
|
1733
|
-
return throwDefaultError({
|
|
1734
|
-
output,
|
|
1735
|
-
parsedBody,
|
|
1736
|
-
errorCode
|
|
1737
|
-
});
|
|
1738
|
-
}
|
|
1739
|
-
}, "de_CreateStandbyWorkspacesCommandError");
|
|
1740
1431
|
var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1741
1432
|
if (output.statusCode >= 300) {
|
|
1742
|
-
return
|
|
1433
|
+
return de_CommandError(output, context);
|
|
1743
1434
|
}
|
|
1744
1435
|
const data = await parseBody(output.body, context);
|
|
1745
1436
|
let contents = {};
|
|
@@ -1750,34 +1441,9 @@ var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1750
1441
|
};
|
|
1751
1442
|
return response;
|
|
1752
1443
|
}, "de_CreateTagsCommand");
|
|
1753
|
-
var de_CreateTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1754
|
-
const parsedOutput = {
|
|
1755
|
-
...output,
|
|
1756
|
-
body: await parseErrorBody(output.body, context)
|
|
1757
|
-
};
|
|
1758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1759
|
-
switch (errorCode) {
|
|
1760
|
-
case "InvalidParameterValuesException":
|
|
1761
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1762
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1763
|
-
case "ResourceLimitExceededException":
|
|
1764
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1765
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "ResourceNotFoundException":
|
|
1767
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1768
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1769
|
-
default:
|
|
1770
|
-
const parsedBody = parsedOutput.body;
|
|
1771
|
-
return throwDefaultError({
|
|
1772
|
-
output,
|
|
1773
|
-
parsedBody,
|
|
1774
|
-
errorCode
|
|
1775
|
-
});
|
|
1776
|
-
}
|
|
1777
|
-
}, "de_CreateTagsCommandError");
|
|
1778
1444
|
var de_CreateUpdatedWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1779
1445
|
if (output.statusCode >= 300) {
|
|
1780
|
-
return
|
|
1446
|
+
return de_CommandError(output, context);
|
|
1781
1447
|
}
|
|
1782
1448
|
const data = await parseBody(output.body, context);
|
|
1783
1449
|
let contents = {};
|
|
@@ -1788,46 +1454,9 @@ var de_CreateUpdatedWorkspaceImageCommand = /* @__PURE__ */ __name(async (output
|
|
|
1788
1454
|
};
|
|
1789
1455
|
return response;
|
|
1790
1456
|
}, "de_CreateUpdatedWorkspaceImageCommand");
|
|
1791
|
-
var de_CreateUpdatedWorkspaceImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1792
|
-
const parsedOutput = {
|
|
1793
|
-
...output,
|
|
1794
|
-
body: await parseErrorBody(output.body, context)
|
|
1795
|
-
};
|
|
1796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1797
|
-
switch (errorCode) {
|
|
1798
|
-
case "AccessDeniedException":
|
|
1799
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1800
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "InvalidParameterValuesException":
|
|
1802
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1803
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "InvalidResourceStateException":
|
|
1805
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1806
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "OperationNotSupportedException":
|
|
1808
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1809
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "ResourceAlreadyExistsException":
|
|
1811
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1812
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "ResourceLimitExceededException":
|
|
1814
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1815
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "ResourceNotFoundException":
|
|
1817
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1818
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1819
|
-
default:
|
|
1820
|
-
const parsedBody = parsedOutput.body;
|
|
1821
|
-
return throwDefaultError({
|
|
1822
|
-
output,
|
|
1823
|
-
parsedBody,
|
|
1824
|
-
errorCode
|
|
1825
|
-
});
|
|
1826
|
-
}
|
|
1827
|
-
}, "de_CreateUpdatedWorkspaceImageCommandError");
|
|
1828
1457
|
var de_CreateWorkspaceBundleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1829
1458
|
if (output.statusCode >= 300) {
|
|
1830
|
-
return
|
|
1459
|
+
return de_CommandError(output, context);
|
|
1831
1460
|
}
|
|
1832
1461
|
const data = await parseBody(output.body, context);
|
|
1833
1462
|
let contents = {};
|
|
@@ -1838,43 +1467,9 @@ var de_CreateWorkspaceBundleCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1838
1467
|
};
|
|
1839
1468
|
return response;
|
|
1840
1469
|
}, "de_CreateWorkspaceBundleCommand");
|
|
1841
|
-
var de_CreateWorkspaceBundleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1842
|
-
const parsedOutput = {
|
|
1843
|
-
...output,
|
|
1844
|
-
body: await parseErrorBody(output.body, context)
|
|
1845
|
-
};
|
|
1846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1847
|
-
switch (errorCode) {
|
|
1848
|
-
case "AccessDeniedException":
|
|
1849
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1850
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "InvalidParameterValuesException":
|
|
1852
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1853
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "ResourceAlreadyExistsException":
|
|
1855
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1856
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ResourceLimitExceededException":
|
|
1858
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1859
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "ResourceNotFoundException":
|
|
1861
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1862
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ResourceUnavailableException":
|
|
1864
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
1865
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1866
|
-
default:
|
|
1867
|
-
const parsedBody = parsedOutput.body;
|
|
1868
|
-
return throwDefaultError({
|
|
1869
|
-
output,
|
|
1870
|
-
parsedBody,
|
|
1871
|
-
errorCode
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
}, "de_CreateWorkspaceBundleCommandError");
|
|
1875
1470
|
var de_CreateWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1876
1471
|
if (output.statusCode >= 300) {
|
|
1877
|
-
return
|
|
1472
|
+
return de_CommandError(output, context);
|
|
1878
1473
|
}
|
|
1879
1474
|
const data = await parseBody(output.body, context);
|
|
1880
1475
|
let contents = {};
|
|
@@ -1885,46 +1480,9 @@ var de_CreateWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1885
1480
|
};
|
|
1886
1481
|
return response;
|
|
1887
1482
|
}, "de_CreateWorkspaceImageCommand");
|
|
1888
|
-
var de_CreateWorkspaceImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1889
|
-
const parsedOutput = {
|
|
1890
|
-
...output,
|
|
1891
|
-
body: await parseErrorBody(output.body, context)
|
|
1892
|
-
};
|
|
1893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
|
-
switch (errorCode) {
|
|
1895
|
-
case "AccessDeniedException":
|
|
1896
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1897
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "InvalidParameterValuesException":
|
|
1899
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1900
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "InvalidResourceStateException":
|
|
1902
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1903
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "OperationNotSupportedException":
|
|
1905
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1906
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "ResourceAlreadyExistsException":
|
|
1908
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1909
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "ResourceLimitExceededException":
|
|
1911
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1912
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "ResourceNotFoundException":
|
|
1914
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1915
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1916
|
-
default:
|
|
1917
|
-
const parsedBody = parsedOutput.body;
|
|
1918
|
-
return throwDefaultError({
|
|
1919
|
-
output,
|
|
1920
|
-
parsedBody,
|
|
1921
|
-
errorCode
|
|
1922
|
-
});
|
|
1923
|
-
}
|
|
1924
|
-
}, "de_CreateWorkspaceImageCommandError");
|
|
1925
1483
|
var de_CreateWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1926
1484
|
if (output.statusCode >= 300) {
|
|
1927
|
-
return
|
|
1485
|
+
return de_CommandError(output, context);
|
|
1928
1486
|
}
|
|
1929
1487
|
const data = await parseBody(output.body, context);
|
|
1930
1488
|
let contents = {};
|
|
@@ -1935,31 +1493,9 @@ var de_CreateWorkspacesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1935
1493
|
};
|
|
1936
1494
|
return response;
|
|
1937
1495
|
}, "de_CreateWorkspacesCommand");
|
|
1938
|
-
var de_CreateWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1939
|
-
const parsedOutput = {
|
|
1940
|
-
...output,
|
|
1941
|
-
body: await parseErrorBody(output.body, context)
|
|
1942
|
-
};
|
|
1943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
|
-
switch (errorCode) {
|
|
1945
|
-
case "InvalidParameterValuesException":
|
|
1946
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1947
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "ResourceLimitExceededException":
|
|
1949
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1950
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1951
|
-
default:
|
|
1952
|
-
const parsedBody = parsedOutput.body;
|
|
1953
|
-
return throwDefaultError({
|
|
1954
|
-
output,
|
|
1955
|
-
parsedBody,
|
|
1956
|
-
errorCode
|
|
1957
|
-
});
|
|
1958
|
-
}
|
|
1959
|
-
}, "de_CreateWorkspacesCommandError");
|
|
1960
1496
|
var de_DeleteClientBrandingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1961
1497
|
if (output.statusCode >= 300) {
|
|
1962
|
-
return
|
|
1498
|
+
return de_CommandError(output, context);
|
|
1963
1499
|
}
|
|
1964
1500
|
const data = await parseBody(output.body, context);
|
|
1965
1501
|
let contents = {};
|
|
@@ -1970,34 +1506,9 @@ var de_DeleteClientBrandingCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1970
1506
|
};
|
|
1971
1507
|
return response;
|
|
1972
1508
|
}, "de_DeleteClientBrandingCommand");
|
|
1973
|
-
var de_DeleteClientBrandingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1974
|
-
const parsedOutput = {
|
|
1975
|
-
...output,
|
|
1976
|
-
body: await parseErrorBody(output.body, context)
|
|
1977
|
-
};
|
|
1978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1979
|
-
switch (errorCode) {
|
|
1980
|
-
case "AccessDeniedException":
|
|
1981
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1982
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "InvalidParameterValuesException":
|
|
1984
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1985
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ResourceNotFoundException":
|
|
1987
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1988
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1989
|
-
default:
|
|
1990
|
-
const parsedBody = parsedOutput.body;
|
|
1991
|
-
return throwDefaultError({
|
|
1992
|
-
output,
|
|
1993
|
-
parsedBody,
|
|
1994
|
-
errorCode
|
|
1995
|
-
});
|
|
1996
|
-
}
|
|
1997
|
-
}, "de_DeleteClientBrandingCommandError");
|
|
1998
1509
|
var de_DeleteConnectClientAddInCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1999
1510
|
if (output.statusCode >= 300) {
|
|
2000
|
-
return
|
|
1511
|
+
return de_CommandError(output, context);
|
|
2001
1512
|
}
|
|
2002
1513
|
const data = await parseBody(output.body, context);
|
|
2003
1514
|
let contents = {};
|
|
@@ -2008,34 +1519,9 @@ var de_DeleteConnectClientAddInCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2008
1519
|
};
|
|
2009
1520
|
return response;
|
|
2010
1521
|
}, "de_DeleteConnectClientAddInCommand");
|
|
2011
|
-
var de_DeleteConnectClientAddInCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2012
|
-
const parsedOutput = {
|
|
2013
|
-
...output,
|
|
2014
|
-
body: await parseErrorBody(output.body, context)
|
|
2015
|
-
};
|
|
2016
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
|
-
switch (errorCode) {
|
|
2018
|
-
case "AccessDeniedException":
|
|
2019
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2020
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "InvalidParameterValuesException":
|
|
2022
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2023
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "ResourceNotFoundException":
|
|
2025
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2026
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2027
|
-
default:
|
|
2028
|
-
const parsedBody = parsedOutput.body;
|
|
2029
|
-
return throwDefaultError({
|
|
2030
|
-
output,
|
|
2031
|
-
parsedBody,
|
|
2032
|
-
errorCode
|
|
2033
|
-
});
|
|
2034
|
-
}
|
|
2035
|
-
}, "de_DeleteConnectClientAddInCommandError");
|
|
2036
1522
|
var de_DeleteConnectionAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2037
1523
|
if (output.statusCode >= 300) {
|
|
2038
|
-
return
|
|
1524
|
+
return de_CommandError(output, context);
|
|
2039
1525
|
}
|
|
2040
1526
|
const data = await parseBody(output.body, context);
|
|
2041
1527
|
let contents = {};
|
|
@@ -2046,84 +1532,22 @@ var de_DeleteConnectionAliasCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2046
1532
|
};
|
|
2047
1533
|
return response;
|
|
2048
1534
|
}, "de_DeleteConnectionAliasCommand");
|
|
2049
|
-
var
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
case "InvalidParameterValuesException":
|
|
2060
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2061
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2062
|
-
case "InvalidResourceStateException":
|
|
2063
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2064
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "OperationNotSupportedException":
|
|
2066
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2067
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "ResourceAssociatedException":
|
|
2069
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
2070
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ResourceNotFoundException":
|
|
2072
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2074
|
-
default:
|
|
2075
|
-
const parsedBody = parsedOutput.body;
|
|
2076
|
-
return throwDefaultError({
|
|
2077
|
-
output,
|
|
2078
|
-
parsedBody,
|
|
2079
|
-
errorCode
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
}, "de_DeleteConnectionAliasCommandError");
|
|
2083
|
-
var de_DeleteIpGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
|
-
if (output.statusCode >= 300) {
|
|
2085
|
-
return de_DeleteIpGroupCommandError(output, context);
|
|
2086
|
-
}
|
|
2087
|
-
const data = await parseBody(output.body, context);
|
|
2088
|
-
let contents = {};
|
|
2089
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2090
|
-
const response = {
|
|
2091
|
-
$metadata: deserializeMetadata(output),
|
|
2092
|
-
...contents
|
|
1535
|
+
var de_DeleteIpGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1536
|
+
if (output.statusCode >= 300) {
|
|
1537
|
+
return de_CommandError(output, context);
|
|
1538
|
+
}
|
|
1539
|
+
const data = await parseBody(output.body, context);
|
|
1540
|
+
let contents = {};
|
|
1541
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1542
|
+
const response = {
|
|
1543
|
+
$metadata: deserializeMetadata(output),
|
|
1544
|
+
...contents
|
|
2093
1545
|
};
|
|
2094
1546
|
return response;
|
|
2095
1547
|
}, "de_DeleteIpGroupCommand");
|
|
2096
|
-
var de_DeleteIpGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2097
|
-
const parsedOutput = {
|
|
2098
|
-
...output,
|
|
2099
|
-
body: await parseErrorBody(output.body, context)
|
|
2100
|
-
};
|
|
2101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2102
|
-
switch (errorCode) {
|
|
2103
|
-
case "AccessDeniedException":
|
|
2104
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2105
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "InvalidParameterValuesException":
|
|
2107
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2108
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "ResourceAssociatedException":
|
|
2110
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
2111
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ResourceNotFoundException":
|
|
2113
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2114
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2115
|
-
default:
|
|
2116
|
-
const parsedBody = parsedOutput.body;
|
|
2117
|
-
return throwDefaultError({
|
|
2118
|
-
output,
|
|
2119
|
-
parsedBody,
|
|
2120
|
-
errorCode
|
|
2121
|
-
});
|
|
2122
|
-
}
|
|
2123
|
-
}, "de_DeleteIpGroupCommandError");
|
|
2124
1548
|
var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2125
1549
|
if (output.statusCode >= 300) {
|
|
2126
|
-
return
|
|
1550
|
+
return de_CommandError(output, context);
|
|
2127
1551
|
}
|
|
2128
1552
|
const data = await parseBody(output.body, context);
|
|
2129
1553
|
let contents = {};
|
|
@@ -2134,31 +1558,9 @@ var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2134
1558
|
};
|
|
2135
1559
|
return response;
|
|
2136
1560
|
}, "de_DeleteTagsCommand");
|
|
2137
|
-
var de_DeleteTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2138
|
-
const parsedOutput = {
|
|
2139
|
-
...output,
|
|
2140
|
-
body: await parseErrorBody(output.body, context)
|
|
2141
|
-
};
|
|
2142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2143
|
-
switch (errorCode) {
|
|
2144
|
-
case "InvalidParameterValuesException":
|
|
2145
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2146
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "ResourceNotFoundException":
|
|
2148
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2149
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2150
|
-
default:
|
|
2151
|
-
const parsedBody = parsedOutput.body;
|
|
2152
|
-
return throwDefaultError({
|
|
2153
|
-
output,
|
|
2154
|
-
parsedBody,
|
|
2155
|
-
errorCode
|
|
2156
|
-
});
|
|
2157
|
-
}
|
|
2158
|
-
}, "de_DeleteTagsCommandError");
|
|
2159
1561
|
var de_DeleteWorkspaceBundleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2160
1562
|
if (output.statusCode >= 300) {
|
|
2161
|
-
return
|
|
1563
|
+
return de_CommandError(output, context);
|
|
2162
1564
|
}
|
|
2163
1565
|
const data = await parseBody(output.body, context);
|
|
2164
1566
|
let contents = {};
|
|
@@ -2169,37 +1571,9 @@ var de_DeleteWorkspaceBundleCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2169
1571
|
};
|
|
2170
1572
|
return response;
|
|
2171
1573
|
}, "de_DeleteWorkspaceBundleCommand");
|
|
2172
|
-
var de_DeleteWorkspaceBundleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2173
|
-
const parsedOutput = {
|
|
2174
|
-
...output,
|
|
2175
|
-
body: await parseErrorBody(output.body, context)
|
|
2176
|
-
};
|
|
2177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2178
|
-
switch (errorCode) {
|
|
2179
|
-
case "AccessDeniedException":
|
|
2180
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2181
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "InvalidParameterValuesException":
|
|
2183
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2184
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "ResourceAssociatedException":
|
|
2186
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
2187
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "ResourceNotFoundException":
|
|
2189
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2190
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2191
|
-
default:
|
|
2192
|
-
const parsedBody = parsedOutput.body;
|
|
2193
|
-
return throwDefaultError({
|
|
2194
|
-
output,
|
|
2195
|
-
parsedBody,
|
|
2196
|
-
errorCode
|
|
2197
|
-
});
|
|
2198
|
-
}
|
|
2199
|
-
}, "de_DeleteWorkspaceBundleCommandError");
|
|
2200
1574
|
var de_DeleteWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2201
1575
|
if (output.statusCode >= 300) {
|
|
2202
|
-
return
|
|
1576
|
+
return de_CommandError(output, context);
|
|
2203
1577
|
}
|
|
2204
1578
|
const data = await parseBody(output.body, context);
|
|
2205
1579
|
let contents = {};
|
|
@@ -2210,34 +1584,9 @@ var de_DeleteWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2210
1584
|
};
|
|
2211
1585
|
return response;
|
|
2212
1586
|
}, "de_DeleteWorkspaceImageCommand");
|
|
2213
|
-
var de_DeleteWorkspaceImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2214
|
-
const parsedOutput = {
|
|
2215
|
-
...output,
|
|
2216
|
-
body: await parseErrorBody(output.body, context)
|
|
2217
|
-
};
|
|
2218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2219
|
-
switch (errorCode) {
|
|
2220
|
-
case "AccessDeniedException":
|
|
2221
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2222
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "InvalidResourceStateException":
|
|
2224
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2225
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2226
|
-
case "ResourceAssociatedException":
|
|
2227
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
2228
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
2229
|
-
default:
|
|
2230
|
-
const parsedBody = parsedOutput.body;
|
|
2231
|
-
return throwDefaultError({
|
|
2232
|
-
output,
|
|
2233
|
-
parsedBody,
|
|
2234
|
-
errorCode
|
|
2235
|
-
});
|
|
2236
|
-
}
|
|
2237
|
-
}, "de_DeleteWorkspaceImageCommandError");
|
|
2238
1587
|
var de_DeployWorkspaceApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2239
1588
|
if (output.statusCode >= 300) {
|
|
2240
|
-
return
|
|
1589
|
+
return de_CommandError(output, context);
|
|
2241
1590
|
}
|
|
2242
1591
|
const data = await parseBody(output.body, context);
|
|
2243
1592
|
let contents = {};
|
|
@@ -2248,43 +1597,9 @@ var de_DeployWorkspaceApplicationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
2248
1597
|
};
|
|
2249
1598
|
return response;
|
|
2250
1599
|
}, "de_DeployWorkspaceApplicationsCommand");
|
|
2251
|
-
var de_DeployWorkspaceApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2252
|
-
const parsedOutput = {
|
|
2253
|
-
...output,
|
|
2254
|
-
body: await parseErrorBody(output.body, context)
|
|
2255
|
-
};
|
|
2256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
-
switch (errorCode) {
|
|
2258
|
-
case "AccessDeniedException":
|
|
2259
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2260
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "IncompatibleApplicationsException":
|
|
2262
|
-
case "com.amazonaws.workspaces#IncompatibleApplicationsException":
|
|
2263
|
-
throw await de_IncompatibleApplicationsExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "InvalidParameterValuesException":
|
|
2265
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2266
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "OperationNotSupportedException":
|
|
2268
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2269
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "ResourceInUseException":
|
|
2271
|
-
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
2272
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "ResourceNotFoundException":
|
|
2274
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2275
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2276
|
-
default:
|
|
2277
|
-
const parsedBody = parsedOutput.body;
|
|
2278
|
-
return throwDefaultError({
|
|
2279
|
-
output,
|
|
2280
|
-
parsedBody,
|
|
2281
|
-
errorCode
|
|
2282
|
-
});
|
|
2283
|
-
}
|
|
2284
|
-
}, "de_DeployWorkspaceApplicationsCommandError");
|
|
2285
1600
|
var de_DeregisterWorkspaceDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2286
1601
|
if (output.statusCode >= 300) {
|
|
2287
|
-
return
|
|
1602
|
+
return de_CommandError(output, context);
|
|
2288
1603
|
}
|
|
2289
1604
|
const data = await parseBody(output.body, context);
|
|
2290
1605
|
let contents = {};
|
|
@@ -2295,40 +1610,9 @@ var de_DeregisterWorkspaceDirectoryCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2295
1610
|
};
|
|
2296
1611
|
return response;
|
|
2297
1612
|
}, "de_DeregisterWorkspaceDirectoryCommand");
|
|
2298
|
-
var de_DeregisterWorkspaceDirectoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2299
|
-
const parsedOutput = {
|
|
2300
|
-
...output,
|
|
2301
|
-
body: await parseErrorBody(output.body, context)
|
|
2302
|
-
};
|
|
2303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
|
-
switch (errorCode) {
|
|
2305
|
-
case "AccessDeniedException":
|
|
2306
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2307
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "InvalidParameterValuesException":
|
|
2309
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2310
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "InvalidResourceStateException":
|
|
2312
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2313
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2314
|
-
case "OperationNotSupportedException":
|
|
2315
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2316
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2317
|
-
case "ResourceNotFoundException":
|
|
2318
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2319
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2320
|
-
default:
|
|
2321
|
-
const parsedBody = parsedOutput.body;
|
|
2322
|
-
return throwDefaultError({
|
|
2323
|
-
output,
|
|
2324
|
-
parsedBody,
|
|
2325
|
-
errorCode
|
|
2326
|
-
});
|
|
2327
|
-
}
|
|
2328
|
-
}, "de_DeregisterWorkspaceDirectoryCommandError");
|
|
2329
1613
|
var de_DescribeAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2330
1614
|
if (output.statusCode >= 300) {
|
|
2331
|
-
return
|
|
1615
|
+
return de_CommandError(output, context);
|
|
2332
1616
|
}
|
|
2333
1617
|
const data = await parseBody(output.body, context);
|
|
2334
1618
|
let contents = {};
|
|
@@ -2339,28 +1623,9 @@ var de_DescribeAccountCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2339
1623
|
};
|
|
2340
1624
|
return response;
|
|
2341
1625
|
}, "de_DescribeAccountCommand");
|
|
2342
|
-
var de_DescribeAccountCommandError = /* @__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 "AccessDeniedException":
|
|
2350
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2351
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2352
|
-
default:
|
|
2353
|
-
const parsedBody = parsedOutput.body;
|
|
2354
|
-
return throwDefaultError({
|
|
2355
|
-
output,
|
|
2356
|
-
parsedBody,
|
|
2357
|
-
errorCode
|
|
2358
|
-
});
|
|
2359
|
-
}
|
|
2360
|
-
}, "de_DescribeAccountCommandError");
|
|
2361
1626
|
var de_DescribeAccountModificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2362
1627
|
if (output.statusCode >= 300) {
|
|
2363
|
-
return
|
|
1628
|
+
return de_CommandError(output, context);
|
|
2364
1629
|
}
|
|
2365
1630
|
const data = await parseBody(output.body, context);
|
|
2366
1631
|
let contents = {};
|
|
@@ -2371,28 +1636,9 @@ var de_DescribeAccountModificationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2371
1636
|
};
|
|
2372
1637
|
return response;
|
|
2373
1638
|
}, "de_DescribeAccountModificationsCommand");
|
|
2374
|
-
var de_DescribeAccountModificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2375
|
-
const parsedOutput = {
|
|
2376
|
-
...output,
|
|
2377
|
-
body: await parseErrorBody(output.body, context)
|
|
2378
|
-
};
|
|
2379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2380
|
-
switch (errorCode) {
|
|
2381
|
-
case "AccessDeniedException":
|
|
2382
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2383
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2384
|
-
default:
|
|
2385
|
-
const parsedBody = parsedOutput.body;
|
|
2386
|
-
return throwDefaultError({
|
|
2387
|
-
output,
|
|
2388
|
-
parsedBody,
|
|
2389
|
-
errorCode
|
|
2390
|
-
});
|
|
2391
|
-
}
|
|
2392
|
-
}, "de_DescribeAccountModificationsCommandError");
|
|
2393
1639
|
var de_DescribeApplicationAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2394
1640
|
if (output.statusCode >= 300) {
|
|
2395
|
-
return
|
|
1641
|
+
return de_CommandError(output, context);
|
|
2396
1642
|
}
|
|
2397
1643
|
const data = await parseBody(output.body, context);
|
|
2398
1644
|
let contents = {};
|
|
@@ -2403,37 +1649,9 @@ var de_DescribeApplicationAssociationsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2403
1649
|
};
|
|
2404
1650
|
return response;
|
|
2405
1651
|
}, "de_DescribeApplicationAssociationsCommand");
|
|
2406
|
-
var de_DescribeApplicationAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2407
|
-
const parsedOutput = {
|
|
2408
|
-
...output,
|
|
2409
|
-
body: await parseErrorBody(output.body, context)
|
|
2410
|
-
};
|
|
2411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
|
-
switch (errorCode) {
|
|
2413
|
-
case "AccessDeniedException":
|
|
2414
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2415
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "InvalidParameterValuesException":
|
|
2417
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2418
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "OperationNotSupportedException":
|
|
2420
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2421
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "ResourceNotFoundException":
|
|
2423
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2424
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2425
|
-
default:
|
|
2426
|
-
const parsedBody = parsedOutput.body;
|
|
2427
|
-
return throwDefaultError({
|
|
2428
|
-
output,
|
|
2429
|
-
parsedBody,
|
|
2430
|
-
errorCode
|
|
2431
|
-
});
|
|
2432
|
-
}
|
|
2433
|
-
}, "de_DescribeApplicationAssociationsCommandError");
|
|
2434
1652
|
var de_DescribeApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2435
1653
|
if (output.statusCode >= 300) {
|
|
2436
|
-
return
|
|
1654
|
+
return de_CommandError(output, context);
|
|
2437
1655
|
}
|
|
2438
1656
|
const data = await parseBody(output.body, context);
|
|
2439
1657
|
let contents = {};
|
|
@@ -2444,37 +1662,9 @@ var de_DescribeApplicationsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2444
1662
|
};
|
|
2445
1663
|
return response;
|
|
2446
1664
|
}, "de_DescribeApplicationsCommand");
|
|
2447
|
-
var de_DescribeApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2448
|
-
const parsedOutput = {
|
|
2449
|
-
...output,
|
|
2450
|
-
body: await parseErrorBody(output.body, context)
|
|
2451
|
-
};
|
|
2452
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2453
|
-
switch (errorCode) {
|
|
2454
|
-
case "AccessDeniedException":
|
|
2455
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2456
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2457
|
-
case "InvalidParameterValuesException":
|
|
2458
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2459
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2460
|
-
case "OperationNotSupportedException":
|
|
2461
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2462
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2463
|
-
case "ResourceNotFoundException":
|
|
2464
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2465
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2466
|
-
default:
|
|
2467
|
-
const parsedBody = parsedOutput.body;
|
|
2468
|
-
return throwDefaultError({
|
|
2469
|
-
output,
|
|
2470
|
-
parsedBody,
|
|
2471
|
-
errorCode
|
|
2472
|
-
});
|
|
2473
|
-
}
|
|
2474
|
-
}, "de_DescribeApplicationsCommandError");
|
|
2475
1665
|
var de_DescribeBundleAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2476
1666
|
if (output.statusCode >= 300) {
|
|
2477
|
-
return
|
|
1667
|
+
return de_CommandError(output, context);
|
|
2478
1668
|
}
|
|
2479
1669
|
const data = await parseBody(output.body, context);
|
|
2480
1670
|
let contents = {};
|
|
@@ -2485,37 +1675,9 @@ var de_DescribeBundleAssociationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2485
1675
|
};
|
|
2486
1676
|
return response;
|
|
2487
1677
|
}, "de_DescribeBundleAssociationsCommand");
|
|
2488
|
-
var de_DescribeBundleAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2489
|
-
const parsedOutput = {
|
|
2490
|
-
...output,
|
|
2491
|
-
body: await parseErrorBody(output.body, context)
|
|
2492
|
-
};
|
|
2493
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
|
-
switch (errorCode) {
|
|
2495
|
-
case "AccessDeniedException":
|
|
2496
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2497
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2498
|
-
case "InvalidParameterValuesException":
|
|
2499
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2500
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "OperationNotSupportedException":
|
|
2502
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2503
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2504
|
-
case "ResourceNotFoundException":
|
|
2505
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2506
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2507
|
-
default:
|
|
2508
|
-
const parsedBody = parsedOutput.body;
|
|
2509
|
-
return throwDefaultError({
|
|
2510
|
-
output,
|
|
2511
|
-
parsedBody,
|
|
2512
|
-
errorCode
|
|
2513
|
-
});
|
|
2514
|
-
}
|
|
2515
|
-
}, "de_DescribeBundleAssociationsCommandError");
|
|
2516
1678
|
var de_DescribeClientBrandingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2517
1679
|
if (output.statusCode >= 300) {
|
|
2518
|
-
return
|
|
1680
|
+
return de_CommandError(output, context);
|
|
2519
1681
|
}
|
|
2520
1682
|
const data = await parseBody(output.body, context);
|
|
2521
1683
|
let contents = {};
|
|
@@ -2526,34 +1688,9 @@ var de_DescribeClientBrandingCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2526
1688
|
};
|
|
2527
1689
|
return response;
|
|
2528
1690
|
}, "de_DescribeClientBrandingCommand");
|
|
2529
|
-
var de_DescribeClientBrandingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2530
|
-
const parsedOutput = {
|
|
2531
|
-
...output,
|
|
2532
|
-
body: await parseErrorBody(output.body, context)
|
|
2533
|
-
};
|
|
2534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
|
-
switch (errorCode) {
|
|
2536
|
-
case "AccessDeniedException":
|
|
2537
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2538
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "InvalidParameterValuesException":
|
|
2540
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2541
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "ResourceNotFoundException":
|
|
2543
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2544
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2545
|
-
default:
|
|
2546
|
-
const parsedBody = parsedOutput.body;
|
|
2547
|
-
return throwDefaultError({
|
|
2548
|
-
output,
|
|
2549
|
-
parsedBody,
|
|
2550
|
-
errorCode
|
|
2551
|
-
});
|
|
2552
|
-
}
|
|
2553
|
-
}, "de_DescribeClientBrandingCommandError");
|
|
2554
1691
|
var de_DescribeClientPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2555
1692
|
if (output.statusCode >= 300) {
|
|
2556
|
-
return
|
|
1693
|
+
return de_CommandError(output, context);
|
|
2557
1694
|
}
|
|
2558
1695
|
const data = await parseBody(output.body, context);
|
|
2559
1696
|
let contents = {};
|
|
@@ -2564,34 +1701,9 @@ var de_DescribeClientPropertiesCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2564
1701
|
};
|
|
2565
1702
|
return response;
|
|
2566
1703
|
}, "de_DescribeClientPropertiesCommand");
|
|
2567
|
-
var de_DescribeClientPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2568
|
-
const parsedOutput = {
|
|
2569
|
-
...output,
|
|
2570
|
-
body: await parseErrorBody(output.body, context)
|
|
2571
|
-
};
|
|
2572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2573
|
-
switch (errorCode) {
|
|
2574
|
-
case "AccessDeniedException":
|
|
2575
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2576
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "InvalidParameterValuesException":
|
|
2578
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2579
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "ResourceNotFoundException":
|
|
2581
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2582
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2583
|
-
default:
|
|
2584
|
-
const parsedBody = parsedOutput.body;
|
|
2585
|
-
return throwDefaultError({
|
|
2586
|
-
output,
|
|
2587
|
-
parsedBody,
|
|
2588
|
-
errorCode
|
|
2589
|
-
});
|
|
2590
|
-
}
|
|
2591
|
-
}, "de_DescribeClientPropertiesCommandError");
|
|
2592
1704
|
var de_DescribeConnectClientAddInsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2593
1705
|
if (output.statusCode >= 300) {
|
|
2594
|
-
return
|
|
1706
|
+
return de_CommandError(output, context);
|
|
2595
1707
|
}
|
|
2596
1708
|
const data = await parseBody(output.body, context);
|
|
2597
1709
|
let contents = {};
|
|
@@ -2602,34 +1714,9 @@ var de_DescribeConnectClientAddInsCommand = /* @__PURE__ */ __name(async (output
|
|
|
2602
1714
|
};
|
|
2603
1715
|
return response;
|
|
2604
1716
|
}, "de_DescribeConnectClientAddInsCommand");
|
|
2605
|
-
var de_DescribeConnectClientAddInsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2606
|
-
const parsedOutput = {
|
|
2607
|
-
...output,
|
|
2608
|
-
body: await parseErrorBody(output.body, context)
|
|
2609
|
-
};
|
|
2610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2611
|
-
switch (errorCode) {
|
|
2612
|
-
case "AccessDeniedException":
|
|
2613
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2614
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "InvalidParameterValuesException":
|
|
2616
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2617
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "ResourceNotFoundException":
|
|
2619
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2620
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2621
|
-
default:
|
|
2622
|
-
const parsedBody = parsedOutput.body;
|
|
2623
|
-
return throwDefaultError({
|
|
2624
|
-
output,
|
|
2625
|
-
parsedBody,
|
|
2626
|
-
errorCode
|
|
2627
|
-
});
|
|
2628
|
-
}
|
|
2629
|
-
}, "de_DescribeConnectClientAddInsCommandError");
|
|
2630
1717
|
var de_DescribeConnectionAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2631
1718
|
if (output.statusCode >= 300) {
|
|
2632
|
-
return
|
|
1719
|
+
return de_CommandError(output, context);
|
|
2633
1720
|
}
|
|
2634
1721
|
const data = await parseBody(output.body, context);
|
|
2635
1722
|
let contents = {};
|
|
@@ -2640,34 +1727,9 @@ var de_DescribeConnectionAliasesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2640
1727
|
};
|
|
2641
1728
|
return response;
|
|
2642
1729
|
}, "de_DescribeConnectionAliasesCommand");
|
|
2643
|
-
var de_DescribeConnectionAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2644
|
-
const parsedOutput = {
|
|
2645
|
-
...output,
|
|
2646
|
-
body: await parseErrorBody(output.body, context)
|
|
2647
|
-
};
|
|
2648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2649
|
-
switch (errorCode) {
|
|
2650
|
-
case "AccessDeniedException":
|
|
2651
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2652
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2653
|
-
case "InvalidParameterValuesException":
|
|
2654
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2655
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2656
|
-
case "OperationNotSupportedException":
|
|
2657
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2658
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2659
|
-
default:
|
|
2660
|
-
const parsedBody = parsedOutput.body;
|
|
2661
|
-
return throwDefaultError({
|
|
2662
|
-
output,
|
|
2663
|
-
parsedBody,
|
|
2664
|
-
errorCode
|
|
2665
|
-
});
|
|
2666
|
-
}
|
|
2667
|
-
}, "de_DescribeConnectionAliasesCommandError");
|
|
2668
1730
|
var de_DescribeConnectionAliasPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2669
1731
|
if (output.statusCode >= 300) {
|
|
2670
|
-
return
|
|
1732
|
+
return de_CommandError(output, context);
|
|
2671
1733
|
}
|
|
2672
1734
|
const data = await parseBody(output.body, context);
|
|
2673
1735
|
let contents = {};
|
|
@@ -2678,37 +1740,9 @@ var de_DescribeConnectionAliasPermissionsCommand = /* @__PURE__ */ __name(async
|
|
|
2678
1740
|
};
|
|
2679
1741
|
return response;
|
|
2680
1742
|
}, "de_DescribeConnectionAliasPermissionsCommand");
|
|
2681
|
-
var de_DescribeConnectionAliasPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2682
|
-
const parsedOutput = {
|
|
2683
|
-
...output,
|
|
2684
|
-
body: await parseErrorBody(output.body, context)
|
|
2685
|
-
};
|
|
2686
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2687
|
-
switch (errorCode) {
|
|
2688
|
-
case "AccessDeniedException":
|
|
2689
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2690
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2691
|
-
case "InvalidParameterValuesException":
|
|
2692
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2693
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2694
|
-
case "OperationNotSupportedException":
|
|
2695
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2696
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2697
|
-
case "ResourceNotFoundException":
|
|
2698
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2699
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2700
|
-
default:
|
|
2701
|
-
const parsedBody = parsedOutput.body;
|
|
2702
|
-
return throwDefaultError({
|
|
2703
|
-
output,
|
|
2704
|
-
parsedBody,
|
|
2705
|
-
errorCode
|
|
2706
|
-
});
|
|
2707
|
-
}
|
|
2708
|
-
}, "de_DescribeConnectionAliasPermissionsCommandError");
|
|
2709
1743
|
var de_DescribeImageAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2710
1744
|
if (output.statusCode >= 300) {
|
|
2711
|
-
return
|
|
1745
|
+
return de_CommandError(output, context);
|
|
2712
1746
|
}
|
|
2713
1747
|
const data = await parseBody(output.body, context);
|
|
2714
1748
|
let contents = {};
|
|
@@ -2719,37 +1753,9 @@ var de_DescribeImageAssociationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2719
1753
|
};
|
|
2720
1754
|
return response;
|
|
2721
1755
|
}, "de_DescribeImageAssociationsCommand");
|
|
2722
|
-
var de_DescribeImageAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2723
|
-
const parsedOutput = {
|
|
2724
|
-
...output,
|
|
2725
|
-
body: await parseErrorBody(output.body, context)
|
|
2726
|
-
};
|
|
2727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2728
|
-
switch (errorCode) {
|
|
2729
|
-
case "AccessDeniedException":
|
|
2730
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2731
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "InvalidParameterValuesException":
|
|
2733
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2734
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "OperationNotSupportedException":
|
|
2736
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2737
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2738
|
-
case "ResourceNotFoundException":
|
|
2739
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2740
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2741
|
-
default:
|
|
2742
|
-
const parsedBody = parsedOutput.body;
|
|
2743
|
-
return throwDefaultError({
|
|
2744
|
-
output,
|
|
2745
|
-
parsedBody,
|
|
2746
|
-
errorCode
|
|
2747
|
-
});
|
|
2748
|
-
}
|
|
2749
|
-
}, "de_DescribeImageAssociationsCommandError");
|
|
2750
1756
|
var de_DescribeIpGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2751
1757
|
if (output.statusCode >= 300) {
|
|
2752
|
-
return
|
|
1758
|
+
return de_CommandError(output, context);
|
|
2753
1759
|
}
|
|
2754
1760
|
const data = await parseBody(output.body, context);
|
|
2755
1761
|
let contents = {};
|
|
@@ -2760,31 +1766,9 @@ var de_DescribeIpGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2760
1766
|
};
|
|
2761
1767
|
return response;
|
|
2762
1768
|
}, "de_DescribeIpGroupsCommand");
|
|
2763
|
-
var de_DescribeIpGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2764
|
-
const parsedOutput = {
|
|
2765
|
-
...output,
|
|
2766
|
-
body: await parseErrorBody(output.body, context)
|
|
2767
|
-
};
|
|
2768
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
|
-
switch (errorCode) {
|
|
2770
|
-
case "AccessDeniedException":
|
|
2771
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2772
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2773
|
-
case "InvalidParameterValuesException":
|
|
2774
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2775
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2776
|
-
default:
|
|
2777
|
-
const parsedBody = parsedOutput.body;
|
|
2778
|
-
return throwDefaultError({
|
|
2779
|
-
output,
|
|
2780
|
-
parsedBody,
|
|
2781
|
-
errorCode
|
|
2782
|
-
});
|
|
2783
|
-
}
|
|
2784
|
-
}, "de_DescribeIpGroupsCommandError");
|
|
2785
1769
|
var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2786
1770
|
if (output.statusCode >= 300) {
|
|
2787
|
-
return
|
|
1771
|
+
return de_CommandError(output, context);
|
|
2788
1772
|
}
|
|
2789
1773
|
const data = await parseBody(output.body, context);
|
|
2790
1774
|
let contents = {};
|
|
@@ -2795,28 +1779,9 @@ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2795
1779
|
};
|
|
2796
1780
|
return response;
|
|
2797
1781
|
}, "de_DescribeTagsCommand");
|
|
2798
|
-
var de_DescribeTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2799
|
-
const parsedOutput = {
|
|
2800
|
-
...output,
|
|
2801
|
-
body: await parseErrorBody(output.body, context)
|
|
2802
|
-
};
|
|
2803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2804
|
-
switch (errorCode) {
|
|
2805
|
-
case "ResourceNotFoundException":
|
|
2806
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2808
|
-
default:
|
|
2809
|
-
const parsedBody = parsedOutput.body;
|
|
2810
|
-
return throwDefaultError({
|
|
2811
|
-
output,
|
|
2812
|
-
parsedBody,
|
|
2813
|
-
errorCode
|
|
2814
|
-
});
|
|
2815
|
-
}
|
|
2816
|
-
}, "de_DescribeTagsCommandError");
|
|
2817
1782
|
var de_DescribeWorkspaceAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2818
1783
|
if (output.statusCode >= 300) {
|
|
2819
|
-
return
|
|
1784
|
+
return de_CommandError(output, context);
|
|
2820
1785
|
}
|
|
2821
1786
|
const data = await parseBody(output.body, context);
|
|
2822
1787
|
let contents = {};
|
|
@@ -2827,69 +1792,22 @@ var de_DescribeWorkspaceAssociationsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2827
1792
|
};
|
|
2828
1793
|
return response;
|
|
2829
1794
|
}, "de_DescribeWorkspaceAssociationsCommand");
|
|
2830
|
-
var
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
case "InvalidParameterValuesException":
|
|
2841
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2842
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "OperationNotSupportedException":
|
|
2844
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2845
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "ResourceNotFoundException":
|
|
2847
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2848
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2849
|
-
default:
|
|
2850
|
-
const parsedBody = parsedOutput.body;
|
|
2851
|
-
return throwDefaultError({
|
|
2852
|
-
output,
|
|
2853
|
-
parsedBody,
|
|
2854
|
-
errorCode
|
|
2855
|
-
});
|
|
2856
|
-
}
|
|
2857
|
-
}, "de_DescribeWorkspaceAssociationsCommandError");
|
|
2858
|
-
var de_DescribeWorkspaceBundlesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2859
|
-
if (output.statusCode >= 300) {
|
|
2860
|
-
return de_DescribeWorkspaceBundlesCommandError(output, context);
|
|
2861
|
-
}
|
|
2862
|
-
const data = await parseBody(output.body, context);
|
|
2863
|
-
let contents = {};
|
|
2864
|
-
contents = de_DescribeWorkspaceBundlesResult(data, context);
|
|
2865
|
-
const response = {
|
|
2866
|
-
$metadata: deserializeMetadata(output),
|
|
2867
|
-
...contents
|
|
1795
|
+
var de_DescribeWorkspaceBundlesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1796
|
+
if (output.statusCode >= 300) {
|
|
1797
|
+
return de_CommandError(output, context);
|
|
1798
|
+
}
|
|
1799
|
+
const data = await parseBody(output.body, context);
|
|
1800
|
+
let contents = {};
|
|
1801
|
+
contents = de_DescribeWorkspaceBundlesResult(data, context);
|
|
1802
|
+
const response = {
|
|
1803
|
+
$metadata: deserializeMetadata(output),
|
|
1804
|
+
...contents
|
|
2868
1805
|
};
|
|
2869
1806
|
return response;
|
|
2870
1807
|
}, "de_DescribeWorkspaceBundlesCommand");
|
|
2871
|
-
var de_DescribeWorkspaceBundlesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2872
|
-
const parsedOutput = {
|
|
2873
|
-
...output,
|
|
2874
|
-
body: await parseErrorBody(output.body, context)
|
|
2875
|
-
};
|
|
2876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
|
-
switch (errorCode) {
|
|
2878
|
-
case "InvalidParameterValuesException":
|
|
2879
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2880
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2881
|
-
default:
|
|
2882
|
-
const parsedBody = parsedOutput.body;
|
|
2883
|
-
return throwDefaultError({
|
|
2884
|
-
output,
|
|
2885
|
-
parsedBody,
|
|
2886
|
-
errorCode
|
|
2887
|
-
});
|
|
2888
|
-
}
|
|
2889
|
-
}, "de_DescribeWorkspaceBundlesCommandError");
|
|
2890
1808
|
var de_DescribeWorkspaceDirectoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2891
1809
|
if (output.statusCode >= 300) {
|
|
2892
|
-
return
|
|
1810
|
+
return de_CommandError(output, context);
|
|
2893
1811
|
}
|
|
2894
1812
|
const data = await parseBody(output.body, context);
|
|
2895
1813
|
let contents = {};
|
|
@@ -2900,28 +1818,9 @@ var de_DescribeWorkspaceDirectoriesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2900
1818
|
};
|
|
2901
1819
|
return response;
|
|
2902
1820
|
}, "de_DescribeWorkspaceDirectoriesCommand");
|
|
2903
|
-
var de_DescribeWorkspaceDirectoriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2904
|
-
const parsedOutput = {
|
|
2905
|
-
...output,
|
|
2906
|
-
body: await parseErrorBody(output.body, context)
|
|
2907
|
-
};
|
|
2908
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2909
|
-
switch (errorCode) {
|
|
2910
|
-
case "InvalidParameterValuesException":
|
|
2911
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2912
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2913
|
-
default:
|
|
2914
|
-
const parsedBody = parsedOutput.body;
|
|
2915
|
-
return throwDefaultError({
|
|
2916
|
-
output,
|
|
2917
|
-
parsedBody,
|
|
2918
|
-
errorCode
|
|
2919
|
-
});
|
|
2920
|
-
}
|
|
2921
|
-
}, "de_DescribeWorkspaceDirectoriesCommandError");
|
|
2922
1821
|
var de_DescribeWorkspaceImagePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2923
1822
|
if (output.statusCode >= 300) {
|
|
2924
|
-
return
|
|
1823
|
+
return de_CommandError(output, context);
|
|
2925
1824
|
}
|
|
2926
1825
|
const data = await parseBody(output.body, context);
|
|
2927
1826
|
let contents = {};
|
|
@@ -2932,34 +1831,9 @@ var de_DescribeWorkspaceImagePermissionsCommand = /* @__PURE__ */ __name(async (
|
|
|
2932
1831
|
};
|
|
2933
1832
|
return response;
|
|
2934
1833
|
}, "de_DescribeWorkspaceImagePermissionsCommand");
|
|
2935
|
-
var de_DescribeWorkspaceImagePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2936
|
-
const parsedOutput = {
|
|
2937
|
-
...output,
|
|
2938
|
-
body: await parseErrorBody(output.body, context)
|
|
2939
|
-
};
|
|
2940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2941
|
-
switch (errorCode) {
|
|
2942
|
-
case "AccessDeniedException":
|
|
2943
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2944
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2945
|
-
case "InvalidParameterValuesException":
|
|
2946
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2947
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2948
|
-
case "ResourceNotFoundException":
|
|
2949
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2950
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2951
|
-
default:
|
|
2952
|
-
const parsedBody = parsedOutput.body;
|
|
2953
|
-
return throwDefaultError({
|
|
2954
|
-
output,
|
|
2955
|
-
parsedBody,
|
|
2956
|
-
errorCode
|
|
2957
|
-
});
|
|
2958
|
-
}
|
|
2959
|
-
}, "de_DescribeWorkspaceImagePermissionsCommandError");
|
|
2960
1834
|
var de_DescribeWorkspaceImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2961
1835
|
if (output.statusCode >= 300) {
|
|
2962
|
-
return
|
|
1836
|
+
return de_CommandError(output, context);
|
|
2963
1837
|
}
|
|
2964
1838
|
const data = await parseBody(output.body, context);
|
|
2965
1839
|
let contents = {};
|
|
@@ -2970,28 +1844,9 @@ var de_DescribeWorkspaceImagesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2970
1844
|
};
|
|
2971
1845
|
return response;
|
|
2972
1846
|
}, "de_DescribeWorkspaceImagesCommand");
|
|
2973
|
-
var de_DescribeWorkspaceImagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2974
|
-
const parsedOutput = {
|
|
2975
|
-
...output,
|
|
2976
|
-
body: await parseErrorBody(output.body, context)
|
|
2977
|
-
};
|
|
2978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2979
|
-
switch (errorCode) {
|
|
2980
|
-
case "AccessDeniedException":
|
|
2981
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
2982
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2983
|
-
default:
|
|
2984
|
-
const parsedBody = parsedOutput.body;
|
|
2985
|
-
return throwDefaultError({
|
|
2986
|
-
output,
|
|
2987
|
-
parsedBody,
|
|
2988
|
-
errorCode
|
|
2989
|
-
});
|
|
2990
|
-
}
|
|
2991
|
-
}, "de_DescribeWorkspaceImagesCommandError");
|
|
2992
1847
|
var de_DescribeWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2993
1848
|
if (output.statusCode >= 300) {
|
|
2994
|
-
return
|
|
1849
|
+
return de_CommandError(output, context);
|
|
2995
1850
|
}
|
|
2996
1851
|
const data = await parseBody(output.body, context);
|
|
2997
1852
|
let contents = {};
|
|
@@ -3002,31 +1857,9 @@ var de_DescribeWorkspacesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3002
1857
|
};
|
|
3003
1858
|
return response;
|
|
3004
1859
|
}, "de_DescribeWorkspacesCommand");
|
|
3005
|
-
var de_DescribeWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3006
|
-
const parsedOutput = {
|
|
3007
|
-
...output,
|
|
3008
|
-
body: await parseErrorBody(output.body, context)
|
|
3009
|
-
};
|
|
3010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3011
|
-
switch (errorCode) {
|
|
3012
|
-
case "InvalidParameterValuesException":
|
|
3013
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3014
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "ResourceUnavailableException":
|
|
3016
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
3017
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3018
|
-
default:
|
|
3019
|
-
const parsedBody = parsedOutput.body;
|
|
3020
|
-
return throwDefaultError({
|
|
3021
|
-
output,
|
|
3022
|
-
parsedBody,
|
|
3023
|
-
errorCode
|
|
3024
|
-
});
|
|
3025
|
-
}
|
|
3026
|
-
}, "de_DescribeWorkspacesCommandError");
|
|
3027
1860
|
var de_DescribeWorkspacesConnectionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3028
1861
|
if (output.statusCode >= 300) {
|
|
3029
|
-
return
|
|
1862
|
+
return de_CommandError(output, context);
|
|
3030
1863
|
}
|
|
3031
1864
|
const data = await parseBody(output.body, context);
|
|
3032
1865
|
let contents = {};
|
|
@@ -3037,28 +1870,9 @@ var de_DescribeWorkspacesConnectionStatusCommand = /* @__PURE__ */ __name(async
|
|
|
3037
1870
|
};
|
|
3038
1871
|
return response;
|
|
3039
1872
|
}, "de_DescribeWorkspacesConnectionStatusCommand");
|
|
3040
|
-
var de_DescribeWorkspacesConnectionStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
|
-
const parsedOutput = {
|
|
3042
|
-
...output,
|
|
3043
|
-
body: await parseErrorBody(output.body, context)
|
|
3044
|
-
};
|
|
3045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3046
|
-
switch (errorCode) {
|
|
3047
|
-
case "InvalidParameterValuesException":
|
|
3048
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3049
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3050
|
-
default:
|
|
3051
|
-
const parsedBody = parsedOutput.body;
|
|
3052
|
-
return throwDefaultError({
|
|
3053
|
-
output,
|
|
3054
|
-
parsedBody,
|
|
3055
|
-
errorCode
|
|
3056
|
-
});
|
|
3057
|
-
}
|
|
3058
|
-
}, "de_DescribeWorkspacesConnectionStatusCommandError");
|
|
3059
1873
|
var de_DescribeWorkspaceSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3060
1874
|
if (output.statusCode >= 300) {
|
|
3061
|
-
return
|
|
1875
|
+
return de_CommandError(output, context);
|
|
3062
1876
|
}
|
|
3063
1877
|
const data = await parseBody(output.body, context);
|
|
3064
1878
|
let contents = {};
|
|
@@ -3069,34 +1883,9 @@ var de_DescribeWorkspaceSnapshotsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3069
1883
|
};
|
|
3070
1884
|
return response;
|
|
3071
1885
|
}, "de_DescribeWorkspaceSnapshotsCommand");
|
|
3072
|
-
var de_DescribeWorkspaceSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3073
|
-
const parsedOutput = {
|
|
3074
|
-
...output,
|
|
3075
|
-
body: await parseErrorBody(output.body, context)
|
|
3076
|
-
};
|
|
3077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
|
-
switch (errorCode) {
|
|
3079
|
-
case "AccessDeniedException":
|
|
3080
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3081
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3082
|
-
case "InvalidParameterValuesException":
|
|
3083
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3084
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3085
|
-
case "ResourceNotFoundException":
|
|
3086
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3087
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3088
|
-
default:
|
|
3089
|
-
const parsedBody = parsedOutput.body;
|
|
3090
|
-
return throwDefaultError({
|
|
3091
|
-
output,
|
|
3092
|
-
parsedBody,
|
|
3093
|
-
errorCode
|
|
3094
|
-
});
|
|
3095
|
-
}
|
|
3096
|
-
}, "de_DescribeWorkspaceSnapshotsCommandError");
|
|
3097
1886
|
var de_DisassociateConnectionAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3098
1887
|
if (output.statusCode >= 300) {
|
|
3099
|
-
return
|
|
1888
|
+
return de_CommandError(output, context);
|
|
3100
1889
|
}
|
|
3101
1890
|
const data = await parseBody(output.body, context);
|
|
3102
1891
|
let contents = {};
|
|
@@ -3107,40 +1896,9 @@ var de_DisassociateConnectionAliasCommand = /* @__PURE__ */ __name(async (output
|
|
|
3107
1896
|
};
|
|
3108
1897
|
return response;
|
|
3109
1898
|
}, "de_DisassociateConnectionAliasCommand");
|
|
3110
|
-
var de_DisassociateConnectionAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3111
|
-
const parsedOutput = {
|
|
3112
|
-
...output,
|
|
3113
|
-
body: await parseErrorBody(output.body, context)
|
|
3114
|
-
};
|
|
3115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3116
|
-
switch (errorCode) {
|
|
3117
|
-
case "AccessDeniedException":
|
|
3118
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3119
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "InvalidParameterValuesException":
|
|
3121
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3122
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "InvalidResourceStateException":
|
|
3124
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
3125
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "OperationNotSupportedException":
|
|
3127
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3128
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "ResourceNotFoundException":
|
|
3130
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3131
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3132
|
-
default:
|
|
3133
|
-
const parsedBody = parsedOutput.body;
|
|
3134
|
-
return throwDefaultError({
|
|
3135
|
-
output,
|
|
3136
|
-
parsedBody,
|
|
3137
|
-
errorCode
|
|
3138
|
-
});
|
|
3139
|
-
}
|
|
3140
|
-
}, "de_DisassociateConnectionAliasCommandError");
|
|
3141
1899
|
var de_DisassociateIpGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3142
1900
|
if (output.statusCode >= 300) {
|
|
3143
|
-
return
|
|
1901
|
+
return de_CommandError(output, context);
|
|
3144
1902
|
}
|
|
3145
1903
|
const data = await parseBody(output.body, context);
|
|
3146
1904
|
let contents = {};
|
|
@@ -3151,37 +1909,9 @@ var de_DisassociateIpGroupsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3151
1909
|
};
|
|
3152
1910
|
return response;
|
|
3153
1911
|
}, "de_DisassociateIpGroupsCommand");
|
|
3154
|
-
var de_DisassociateIpGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3155
|
-
const parsedOutput = {
|
|
3156
|
-
...output,
|
|
3157
|
-
body: await parseErrorBody(output.body, context)
|
|
3158
|
-
};
|
|
3159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3160
|
-
switch (errorCode) {
|
|
3161
|
-
case "AccessDeniedException":
|
|
3162
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3163
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3164
|
-
case "InvalidParameterValuesException":
|
|
3165
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3166
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3167
|
-
case "InvalidResourceStateException":
|
|
3168
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
3169
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3170
|
-
case "ResourceNotFoundException":
|
|
3171
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3172
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3173
|
-
default:
|
|
3174
|
-
const parsedBody = parsedOutput.body;
|
|
3175
|
-
return throwDefaultError({
|
|
3176
|
-
output,
|
|
3177
|
-
parsedBody,
|
|
3178
|
-
errorCode
|
|
3179
|
-
});
|
|
3180
|
-
}
|
|
3181
|
-
}, "de_DisassociateIpGroupsCommandError");
|
|
3182
1912
|
var de_DisassociateWorkspaceApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3183
1913
|
if (output.statusCode >= 300) {
|
|
3184
|
-
return
|
|
1914
|
+
return de_CommandError(output, context);
|
|
3185
1915
|
}
|
|
3186
1916
|
const data = await parseBody(output.body, context);
|
|
3187
1917
|
let contents = {};
|
|
@@ -3192,40 +1922,9 @@ var de_DisassociateWorkspaceApplicationCommand = /* @__PURE__ */ __name(async (o
|
|
|
3192
1922
|
};
|
|
3193
1923
|
return response;
|
|
3194
1924
|
}, "de_DisassociateWorkspaceApplicationCommand");
|
|
3195
|
-
var de_DisassociateWorkspaceApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3196
|
-
const parsedOutput = {
|
|
3197
|
-
...output,
|
|
3198
|
-
body: await parseErrorBody(output.body, context)
|
|
3199
|
-
};
|
|
3200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3201
|
-
switch (errorCode) {
|
|
3202
|
-
case "AccessDeniedException":
|
|
3203
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3204
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "InvalidParameterValuesException":
|
|
3206
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3207
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "OperationNotSupportedException":
|
|
3209
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3210
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "ResourceInUseException":
|
|
3212
|
-
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
3213
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3214
|
-
case "ResourceNotFoundException":
|
|
3215
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3216
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3217
|
-
default:
|
|
3218
|
-
const parsedBody = parsedOutput.body;
|
|
3219
|
-
return throwDefaultError({
|
|
3220
|
-
output,
|
|
3221
|
-
parsedBody,
|
|
3222
|
-
errorCode
|
|
3223
|
-
});
|
|
3224
|
-
}
|
|
3225
|
-
}, "de_DisassociateWorkspaceApplicationCommandError");
|
|
3226
1925
|
var de_ImportClientBrandingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3227
1926
|
if (output.statusCode >= 300) {
|
|
3228
|
-
return
|
|
1927
|
+
return de_CommandError(output, context);
|
|
3229
1928
|
}
|
|
3230
1929
|
const data = await parseBody(output.body, context);
|
|
3231
1930
|
let contents = {};
|
|
@@ -3236,84 +1935,22 @@ var de_ImportClientBrandingCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3236
1935
|
};
|
|
3237
1936
|
return response;
|
|
3238
1937
|
}, "de_ImportClientBrandingCommand");
|
|
3239
|
-
var
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
case "InvalidParameterValuesException":
|
|
3250
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3251
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3252
|
-
case "ResourceLimitExceededException":
|
|
3253
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
3254
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3255
|
-
case "ResourceNotFoundException":
|
|
3256
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3257
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3258
|
-
default:
|
|
3259
|
-
const parsedBody = parsedOutput.body;
|
|
3260
|
-
return throwDefaultError({
|
|
3261
|
-
output,
|
|
3262
|
-
parsedBody,
|
|
3263
|
-
errorCode
|
|
3264
|
-
});
|
|
3265
|
-
}
|
|
3266
|
-
}, "de_ImportClientBrandingCommandError");
|
|
3267
|
-
var de_ImportWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3268
|
-
if (output.statusCode >= 300) {
|
|
3269
|
-
return de_ImportWorkspaceImageCommandError(output, context);
|
|
3270
|
-
}
|
|
3271
|
-
const data = await parseBody(output.body, context);
|
|
3272
|
-
let contents = {};
|
|
3273
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3274
|
-
const response = {
|
|
3275
|
-
$metadata: deserializeMetadata(output),
|
|
3276
|
-
...contents
|
|
1938
|
+
var de_ImportWorkspaceImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1939
|
+
if (output.statusCode >= 300) {
|
|
1940
|
+
return de_CommandError(output, context);
|
|
1941
|
+
}
|
|
1942
|
+
const data = await parseBody(output.body, context);
|
|
1943
|
+
let contents = {};
|
|
1944
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1945
|
+
const response = {
|
|
1946
|
+
$metadata: deserializeMetadata(output),
|
|
1947
|
+
...contents
|
|
3277
1948
|
};
|
|
3278
1949
|
return response;
|
|
3279
1950
|
}, "de_ImportWorkspaceImageCommand");
|
|
3280
|
-
var de_ImportWorkspaceImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3281
|
-
const parsedOutput = {
|
|
3282
|
-
...output,
|
|
3283
|
-
body: await parseErrorBody(output.body, context)
|
|
3284
|
-
};
|
|
3285
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3286
|
-
switch (errorCode) {
|
|
3287
|
-
case "AccessDeniedException":
|
|
3288
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3289
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3290
|
-
case "InvalidParameterValuesException":
|
|
3291
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3292
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3293
|
-
case "OperationNotSupportedException":
|
|
3294
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3295
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3296
|
-
case "ResourceAlreadyExistsException":
|
|
3297
|
-
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
3298
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3299
|
-
case "ResourceLimitExceededException":
|
|
3300
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
3301
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3302
|
-
case "ResourceNotFoundException":
|
|
3303
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3305
|
-
default:
|
|
3306
|
-
const parsedBody = parsedOutput.body;
|
|
3307
|
-
return throwDefaultError({
|
|
3308
|
-
output,
|
|
3309
|
-
parsedBody,
|
|
3310
|
-
errorCode
|
|
3311
|
-
});
|
|
3312
|
-
}
|
|
3313
|
-
}, "de_ImportWorkspaceImageCommandError");
|
|
3314
1951
|
var de_ListAvailableManagementCidrRangesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3315
1952
|
if (output.statusCode >= 300) {
|
|
3316
|
-
return
|
|
1953
|
+
return de_CommandError(output, context);
|
|
3317
1954
|
}
|
|
3318
1955
|
const data = await parseBody(output.body, context);
|
|
3319
1956
|
let contents = {};
|
|
@@ -3324,31 +1961,9 @@ var de_ListAvailableManagementCidrRangesCommand = /* @__PURE__ */ __name(async (
|
|
|
3324
1961
|
};
|
|
3325
1962
|
return response;
|
|
3326
1963
|
}, "de_ListAvailableManagementCidrRangesCommand");
|
|
3327
|
-
var de_ListAvailableManagementCidrRangesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3328
|
-
const parsedOutput = {
|
|
3329
|
-
...output,
|
|
3330
|
-
body: await parseErrorBody(output.body, context)
|
|
3331
|
-
};
|
|
3332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3333
|
-
switch (errorCode) {
|
|
3334
|
-
case "AccessDeniedException":
|
|
3335
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3336
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3337
|
-
case "InvalidParameterValuesException":
|
|
3338
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3339
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3340
|
-
default:
|
|
3341
|
-
const parsedBody = parsedOutput.body;
|
|
3342
|
-
return throwDefaultError({
|
|
3343
|
-
output,
|
|
3344
|
-
parsedBody,
|
|
3345
|
-
errorCode
|
|
3346
|
-
});
|
|
3347
|
-
}
|
|
3348
|
-
}, "de_ListAvailableManagementCidrRangesCommandError");
|
|
3349
1964
|
var de_MigrateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3350
1965
|
if (output.statusCode >= 300) {
|
|
3351
|
-
return
|
|
1966
|
+
return de_CommandError(output, context);
|
|
3352
1967
|
}
|
|
3353
1968
|
const data = await parseBody(output.body, context);
|
|
3354
1969
|
let contents = {};
|
|
@@ -3359,43 +1974,9 @@ var de_MigrateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3359
1974
|
};
|
|
3360
1975
|
return response;
|
|
3361
1976
|
}, "de_MigrateWorkspaceCommand");
|
|
3362
|
-
var de_MigrateWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3363
|
-
const parsedOutput = {
|
|
3364
|
-
...output,
|
|
3365
|
-
body: await parseErrorBody(output.body, context)
|
|
3366
|
-
};
|
|
3367
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3368
|
-
switch (errorCode) {
|
|
3369
|
-
case "AccessDeniedException":
|
|
3370
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3371
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3372
|
-
case "InvalidParameterValuesException":
|
|
3373
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3374
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3375
|
-
case "OperationInProgressException":
|
|
3376
|
-
case "com.amazonaws.workspaces#OperationInProgressException":
|
|
3377
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
3378
|
-
case "OperationNotSupportedException":
|
|
3379
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3380
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3381
|
-
case "ResourceNotFoundException":
|
|
3382
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3383
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3384
|
-
case "ResourceUnavailableException":
|
|
3385
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
3386
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3387
|
-
default:
|
|
3388
|
-
const parsedBody = parsedOutput.body;
|
|
3389
|
-
return throwDefaultError({
|
|
3390
|
-
output,
|
|
3391
|
-
parsedBody,
|
|
3392
|
-
errorCode
|
|
3393
|
-
});
|
|
3394
|
-
}
|
|
3395
|
-
}, "de_MigrateWorkspaceCommandError");
|
|
3396
1977
|
var de_ModifyAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3397
1978
|
if (output.statusCode >= 300) {
|
|
3398
|
-
return
|
|
1979
|
+
return de_CommandError(output, context);
|
|
3399
1980
|
}
|
|
3400
1981
|
const data = await parseBody(output.body, context);
|
|
3401
1982
|
let contents = {};
|
|
@@ -3406,40 +1987,9 @@ var de_ModifyAccountCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3406
1987
|
};
|
|
3407
1988
|
return response;
|
|
3408
1989
|
}, "de_ModifyAccountCommand");
|
|
3409
|
-
var de_ModifyAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3410
|
-
const parsedOutput = {
|
|
3411
|
-
...output,
|
|
3412
|
-
body: await parseErrorBody(output.body, context)
|
|
3413
|
-
};
|
|
3414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3415
|
-
switch (errorCode) {
|
|
3416
|
-
case "AccessDeniedException":
|
|
3417
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3418
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3419
|
-
case "InvalidParameterValuesException":
|
|
3420
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3421
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3422
|
-
case "InvalidResourceStateException":
|
|
3423
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
3424
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3425
|
-
case "ResourceNotFoundException":
|
|
3426
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3428
|
-
case "ResourceUnavailableException":
|
|
3429
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
3430
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3431
|
-
default:
|
|
3432
|
-
const parsedBody = parsedOutput.body;
|
|
3433
|
-
return throwDefaultError({
|
|
3434
|
-
output,
|
|
3435
|
-
parsedBody,
|
|
3436
|
-
errorCode
|
|
3437
|
-
});
|
|
3438
|
-
}
|
|
3439
|
-
}, "de_ModifyAccountCommandError");
|
|
3440
1990
|
var de_ModifyCertificateBasedAuthPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3441
1991
|
if (output.statusCode >= 300) {
|
|
3442
|
-
return
|
|
1992
|
+
return de_CommandError(output, context);
|
|
3443
1993
|
}
|
|
3444
1994
|
const data = await parseBody(output.body, context);
|
|
3445
1995
|
let contents = {};
|
|
@@ -3450,37 +2000,9 @@ var de_ModifyCertificateBasedAuthPropertiesCommand = /* @__PURE__ */ __name(asyn
|
|
|
3450
2000
|
};
|
|
3451
2001
|
return response;
|
|
3452
2002
|
}, "de_ModifyCertificateBasedAuthPropertiesCommand");
|
|
3453
|
-
var de_ModifyCertificateBasedAuthPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3454
|
-
const parsedOutput = {
|
|
3455
|
-
...output,
|
|
3456
|
-
body: await parseErrorBody(output.body, context)
|
|
3457
|
-
};
|
|
3458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3459
|
-
switch (errorCode) {
|
|
3460
|
-
case "AccessDeniedException":
|
|
3461
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3462
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3463
|
-
case "InvalidParameterValuesException":
|
|
3464
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3465
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3466
|
-
case "OperationNotSupportedException":
|
|
3467
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3468
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3469
|
-
case "ResourceNotFoundException":
|
|
3470
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3471
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3472
|
-
default:
|
|
3473
|
-
const parsedBody = parsedOutput.body;
|
|
3474
|
-
return throwDefaultError({
|
|
3475
|
-
output,
|
|
3476
|
-
parsedBody,
|
|
3477
|
-
errorCode
|
|
3478
|
-
});
|
|
3479
|
-
}
|
|
3480
|
-
}, "de_ModifyCertificateBasedAuthPropertiesCommandError");
|
|
3481
2003
|
var de_ModifyClientPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3482
2004
|
if (output.statusCode >= 300) {
|
|
3483
|
-
return
|
|
2005
|
+
return de_CommandError(output, context);
|
|
3484
2006
|
}
|
|
3485
2007
|
const data = await parseBody(output.body, context);
|
|
3486
2008
|
let contents = {};
|
|
@@ -3491,34 +2013,9 @@ var de_ModifyClientPropertiesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3491
2013
|
};
|
|
3492
2014
|
return response;
|
|
3493
2015
|
}, "de_ModifyClientPropertiesCommand");
|
|
3494
|
-
var de_ModifyClientPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3495
|
-
const parsedOutput = {
|
|
3496
|
-
...output,
|
|
3497
|
-
body: await parseErrorBody(output.body, context)
|
|
3498
|
-
};
|
|
3499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3500
|
-
switch (errorCode) {
|
|
3501
|
-
case "AccessDeniedException":
|
|
3502
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3503
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3504
|
-
case "InvalidParameterValuesException":
|
|
3505
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3506
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3507
|
-
case "ResourceNotFoundException":
|
|
3508
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3509
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3510
|
-
default:
|
|
3511
|
-
const parsedBody = parsedOutput.body;
|
|
3512
|
-
return throwDefaultError({
|
|
3513
|
-
output,
|
|
3514
|
-
parsedBody,
|
|
3515
|
-
errorCode
|
|
3516
|
-
});
|
|
3517
|
-
}
|
|
3518
|
-
}, "de_ModifyClientPropertiesCommandError");
|
|
3519
2016
|
var de_ModifySamlPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3520
2017
|
if (output.statusCode >= 300) {
|
|
3521
|
-
return
|
|
2018
|
+
return de_CommandError(output, context);
|
|
3522
2019
|
}
|
|
3523
2020
|
const data = await parseBody(output.body, context);
|
|
3524
2021
|
let contents = {};
|
|
@@ -3529,37 +2026,9 @@ var de_ModifySamlPropertiesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3529
2026
|
};
|
|
3530
2027
|
return response;
|
|
3531
2028
|
}, "de_ModifySamlPropertiesCommand");
|
|
3532
|
-
var de_ModifySamlPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3533
|
-
const parsedOutput = {
|
|
3534
|
-
...output,
|
|
3535
|
-
body: await parseErrorBody(output.body, context)
|
|
3536
|
-
};
|
|
3537
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3538
|
-
switch (errorCode) {
|
|
3539
|
-
case "AccessDeniedException":
|
|
3540
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3541
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3542
|
-
case "InvalidParameterValuesException":
|
|
3543
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3544
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3545
|
-
case "OperationNotSupportedException":
|
|
3546
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3547
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3548
|
-
case "ResourceNotFoundException":
|
|
3549
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3550
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3551
|
-
default:
|
|
3552
|
-
const parsedBody = parsedOutput.body;
|
|
3553
|
-
return throwDefaultError({
|
|
3554
|
-
output,
|
|
3555
|
-
parsedBody,
|
|
3556
|
-
errorCode
|
|
3557
|
-
});
|
|
3558
|
-
}
|
|
3559
|
-
}, "de_ModifySamlPropertiesCommandError");
|
|
3560
2029
|
var de_ModifySelfservicePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3561
2030
|
if (output.statusCode >= 300) {
|
|
3562
|
-
return
|
|
2031
|
+
return de_CommandError(output, context);
|
|
3563
2032
|
}
|
|
3564
2033
|
const data = await parseBody(output.body, context);
|
|
3565
2034
|
let contents = {};
|
|
@@ -3570,34 +2039,9 @@ var de_ModifySelfservicePermissionsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3570
2039
|
};
|
|
3571
2040
|
return response;
|
|
3572
2041
|
}, "de_ModifySelfservicePermissionsCommand");
|
|
3573
|
-
var de_ModifySelfservicePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3574
|
-
const parsedOutput = {
|
|
3575
|
-
...output,
|
|
3576
|
-
body: await parseErrorBody(output.body, context)
|
|
3577
|
-
};
|
|
3578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3579
|
-
switch (errorCode) {
|
|
3580
|
-
case "AccessDeniedException":
|
|
3581
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3582
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3583
|
-
case "InvalidParameterValuesException":
|
|
3584
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3585
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3586
|
-
case "ResourceNotFoundException":
|
|
3587
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3588
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3589
|
-
default:
|
|
3590
|
-
const parsedBody = parsedOutput.body;
|
|
3591
|
-
return throwDefaultError({
|
|
3592
|
-
output,
|
|
3593
|
-
parsedBody,
|
|
3594
|
-
errorCode
|
|
3595
|
-
});
|
|
3596
|
-
}
|
|
3597
|
-
}, "de_ModifySelfservicePermissionsCommandError");
|
|
3598
2042
|
var de_ModifyWorkspaceAccessPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3599
2043
|
if (output.statusCode >= 300) {
|
|
3600
|
-
return
|
|
2044
|
+
return de_CommandError(output, context);
|
|
3601
2045
|
}
|
|
3602
2046
|
const data = await parseBody(output.body, context);
|
|
3603
2047
|
let contents = {};
|
|
@@ -3608,31 +2052,9 @@ var de_ModifyWorkspaceAccessPropertiesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3608
2052
|
};
|
|
3609
2053
|
return response;
|
|
3610
2054
|
}, "de_ModifyWorkspaceAccessPropertiesCommand");
|
|
3611
|
-
var de_ModifyWorkspaceAccessPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3612
|
-
const parsedOutput = {
|
|
3613
|
-
...output,
|
|
3614
|
-
body: await parseErrorBody(output.body, context)
|
|
3615
|
-
};
|
|
3616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3617
|
-
switch (errorCode) {
|
|
3618
|
-
case "AccessDeniedException":
|
|
3619
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3620
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3621
|
-
case "ResourceNotFoundException":
|
|
3622
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3623
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3624
|
-
default:
|
|
3625
|
-
const parsedBody = parsedOutput.body;
|
|
3626
|
-
return throwDefaultError({
|
|
3627
|
-
output,
|
|
3628
|
-
parsedBody,
|
|
3629
|
-
errorCode
|
|
3630
|
-
});
|
|
3631
|
-
}
|
|
3632
|
-
}, "de_ModifyWorkspaceAccessPropertiesCommandError");
|
|
3633
2055
|
var de_ModifyWorkspaceCreationPropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3634
2056
|
if (output.statusCode >= 300) {
|
|
3635
|
-
return
|
|
2057
|
+
return de_CommandError(output, context);
|
|
3636
2058
|
}
|
|
3637
2059
|
const data = await parseBody(output.body, context);
|
|
3638
2060
|
let contents = {};
|
|
@@ -3643,37 +2065,9 @@ var de_ModifyWorkspaceCreationPropertiesCommand = /* @__PURE__ */ __name(async (
|
|
|
3643
2065
|
};
|
|
3644
2066
|
return response;
|
|
3645
2067
|
}, "de_ModifyWorkspaceCreationPropertiesCommand");
|
|
3646
|
-
var de_ModifyWorkspaceCreationPropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3647
|
-
const parsedOutput = {
|
|
3648
|
-
...output,
|
|
3649
|
-
body: await parseErrorBody(output.body, context)
|
|
3650
|
-
};
|
|
3651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3652
|
-
switch (errorCode) {
|
|
3653
|
-
case "AccessDeniedException":
|
|
3654
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3655
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "InvalidParameterValuesException":
|
|
3657
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3658
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3659
|
-
case "OperationNotSupportedException":
|
|
3660
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3661
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3662
|
-
case "ResourceNotFoundException":
|
|
3663
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3664
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3665
|
-
default:
|
|
3666
|
-
const parsedBody = parsedOutput.body;
|
|
3667
|
-
return throwDefaultError({
|
|
3668
|
-
output,
|
|
3669
|
-
parsedBody,
|
|
3670
|
-
errorCode
|
|
3671
|
-
});
|
|
3672
|
-
}
|
|
3673
|
-
}, "de_ModifyWorkspaceCreationPropertiesCommandError");
|
|
3674
2068
|
var de_ModifyWorkspacePropertiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3675
2069
|
if (output.statusCode >= 300) {
|
|
3676
|
-
return
|
|
2070
|
+
return de_CommandError(output, context);
|
|
3677
2071
|
}
|
|
3678
2072
|
const data = await parseBody(output.body, context);
|
|
3679
2073
|
let contents = {};
|
|
@@ -3684,46 +2078,9 @@ var de_ModifyWorkspacePropertiesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3684
2078
|
};
|
|
3685
2079
|
return response;
|
|
3686
2080
|
}, "de_ModifyWorkspacePropertiesCommand");
|
|
3687
|
-
var de_ModifyWorkspacePropertiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3688
|
-
const parsedOutput = {
|
|
3689
|
-
...output,
|
|
3690
|
-
body: await parseErrorBody(output.body, context)
|
|
3691
|
-
};
|
|
3692
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3693
|
-
switch (errorCode) {
|
|
3694
|
-
case "AccessDeniedException":
|
|
3695
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3696
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3697
|
-
case "InvalidParameterValuesException":
|
|
3698
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3699
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3700
|
-
case "InvalidResourceStateException":
|
|
3701
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
3702
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3703
|
-
case "OperationInProgressException":
|
|
3704
|
-
case "com.amazonaws.workspaces#OperationInProgressException":
|
|
3705
|
-
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
3706
|
-
case "ResourceNotFoundException":
|
|
3707
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3708
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3709
|
-
case "ResourceUnavailableException":
|
|
3710
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
3711
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
3712
|
-
case "UnsupportedWorkspaceConfigurationException":
|
|
3713
|
-
case "com.amazonaws.workspaces#UnsupportedWorkspaceConfigurationException":
|
|
3714
|
-
throw await de_UnsupportedWorkspaceConfigurationExceptionRes(parsedOutput, context);
|
|
3715
|
-
default:
|
|
3716
|
-
const parsedBody = parsedOutput.body;
|
|
3717
|
-
return throwDefaultError({
|
|
3718
|
-
output,
|
|
3719
|
-
parsedBody,
|
|
3720
|
-
errorCode
|
|
3721
|
-
});
|
|
3722
|
-
}
|
|
3723
|
-
}, "de_ModifyWorkspacePropertiesCommandError");
|
|
3724
2081
|
var de_ModifyWorkspaceStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3725
2082
|
if (output.statusCode >= 300) {
|
|
3726
|
-
return
|
|
2083
|
+
return de_CommandError(output, context);
|
|
3727
2084
|
}
|
|
3728
2085
|
const data = await parseBody(output.body, context);
|
|
3729
2086
|
let contents = {};
|
|
@@ -3734,154 +2091,48 @@ var de_ModifyWorkspaceStateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3734
2091
|
};
|
|
3735
2092
|
return response;
|
|
3736
2093
|
}, "de_ModifyWorkspaceStateCommand");
|
|
3737
|
-
var de_ModifyWorkspaceStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3738
|
-
const parsedOutput = {
|
|
3739
|
-
...output,
|
|
3740
|
-
body: await parseErrorBody(output.body, context)
|
|
3741
|
-
};
|
|
3742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3743
|
-
switch (errorCode) {
|
|
3744
|
-
case "InvalidParameterValuesException":
|
|
3745
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3746
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3747
|
-
case "InvalidResourceStateException":
|
|
3748
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
3749
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3750
|
-
case "OperationNotSupportedException":
|
|
3751
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3752
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3753
|
-
case "ResourceNotFoundException":
|
|
3754
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3755
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3756
|
-
default:
|
|
3757
|
-
const parsedBody = parsedOutput.body;
|
|
3758
|
-
return throwDefaultError({
|
|
3759
|
-
output,
|
|
3760
|
-
parsedBody,
|
|
3761
|
-
errorCode
|
|
3762
|
-
});
|
|
3763
|
-
}
|
|
3764
|
-
}, "de_ModifyWorkspaceStateCommandError");
|
|
3765
2094
|
var de_RebootWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3766
2095
|
if (output.statusCode >= 300) {
|
|
3767
|
-
return
|
|
3768
|
-
}
|
|
3769
|
-
const data = await parseBody(output.body, context);
|
|
3770
|
-
let contents = {};
|
|
3771
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3772
|
-
const response = {
|
|
3773
|
-
$metadata: deserializeMetadata(output),
|
|
3774
|
-
...contents
|
|
3775
|
-
};
|
|
3776
|
-
return response;
|
|
3777
|
-
}, "de_RebootWorkspacesCommand");
|
|
3778
|
-
var de_RebootWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3779
|
-
const parsedOutput = {
|
|
3780
|
-
...output,
|
|
3781
|
-
body: await parseErrorBody(output.body, context)
|
|
3782
|
-
};
|
|
3783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3784
|
-
switch (errorCode) {
|
|
3785
|
-
case "OperationNotSupportedException":
|
|
3786
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3787
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3788
|
-
default:
|
|
3789
|
-
const parsedBody = parsedOutput.body;
|
|
3790
|
-
return throwDefaultError({
|
|
3791
|
-
output,
|
|
3792
|
-
parsedBody,
|
|
3793
|
-
errorCode
|
|
3794
|
-
});
|
|
3795
|
-
}
|
|
3796
|
-
}, "de_RebootWorkspacesCommandError");
|
|
3797
|
-
var de_RebuildWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3798
|
-
if (output.statusCode >= 300) {
|
|
3799
|
-
return de_RebuildWorkspacesCommandError(output, context);
|
|
3800
|
-
}
|
|
3801
|
-
const data = await parseBody(output.body, context);
|
|
3802
|
-
let contents = {};
|
|
3803
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3804
|
-
const response = {
|
|
3805
|
-
$metadata: deserializeMetadata(output),
|
|
3806
|
-
...contents
|
|
3807
|
-
};
|
|
3808
|
-
return response;
|
|
3809
|
-
}, "de_RebuildWorkspacesCommand");
|
|
3810
|
-
var de_RebuildWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3811
|
-
const parsedOutput = {
|
|
3812
|
-
...output,
|
|
3813
|
-
body: await parseErrorBody(output.body, context)
|
|
3814
|
-
};
|
|
3815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3816
|
-
switch (errorCode) {
|
|
3817
|
-
case "OperationNotSupportedException":
|
|
3818
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3819
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3820
|
-
default:
|
|
3821
|
-
const parsedBody = parsedOutput.body;
|
|
3822
|
-
return throwDefaultError({
|
|
3823
|
-
output,
|
|
3824
|
-
parsedBody,
|
|
3825
|
-
errorCode
|
|
3826
|
-
});
|
|
3827
|
-
}
|
|
3828
|
-
}, "de_RebuildWorkspacesCommandError");
|
|
3829
|
-
var de_RegisterWorkspaceDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3830
|
-
if (output.statusCode >= 300) {
|
|
3831
|
-
return de_RegisterWorkspaceDirectoryCommandError(output, context);
|
|
2096
|
+
return de_CommandError(output, context);
|
|
3832
2097
|
}
|
|
3833
2098
|
const data = await parseBody(output.body, context);
|
|
3834
2099
|
let contents = {};
|
|
3835
2100
|
contents = (0, import_smithy_client._json)(data);
|
|
3836
2101
|
const response = {
|
|
3837
|
-
$metadata: deserializeMetadata(output),
|
|
3838
|
-
...contents
|
|
3839
|
-
};
|
|
3840
|
-
return response;
|
|
3841
|
-
}, "
|
|
3842
|
-
var
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
case "OperationNotSupportedException":
|
|
3859
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3860
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3861
|
-
case "ResourceLimitExceededException":
|
|
3862
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
3863
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3864
|
-
case "ResourceNotFoundException":
|
|
3865
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3866
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3867
|
-
case "UnsupportedNetworkConfigurationException":
|
|
3868
|
-
case "com.amazonaws.workspaces#UnsupportedNetworkConfigurationException":
|
|
3869
|
-
throw await de_UnsupportedNetworkConfigurationExceptionRes(parsedOutput, context);
|
|
3870
|
-
case "WorkspacesDefaultRoleNotFoundException":
|
|
3871
|
-
case "com.amazonaws.workspaces#WorkspacesDefaultRoleNotFoundException":
|
|
3872
|
-
throw await de_WorkspacesDefaultRoleNotFoundExceptionRes(parsedOutput, context);
|
|
3873
|
-
default:
|
|
3874
|
-
const parsedBody = parsedOutput.body;
|
|
3875
|
-
return throwDefaultError({
|
|
3876
|
-
output,
|
|
3877
|
-
parsedBody,
|
|
3878
|
-
errorCode
|
|
3879
|
-
});
|
|
2102
|
+
$metadata: deserializeMetadata(output),
|
|
2103
|
+
...contents
|
|
2104
|
+
};
|
|
2105
|
+
return response;
|
|
2106
|
+
}, "de_RebootWorkspacesCommand");
|
|
2107
|
+
var de_RebuildWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2108
|
+
if (output.statusCode >= 300) {
|
|
2109
|
+
return de_CommandError(output, context);
|
|
2110
|
+
}
|
|
2111
|
+
const data = await parseBody(output.body, context);
|
|
2112
|
+
let contents = {};
|
|
2113
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2114
|
+
const response = {
|
|
2115
|
+
$metadata: deserializeMetadata(output),
|
|
2116
|
+
...contents
|
|
2117
|
+
};
|
|
2118
|
+
return response;
|
|
2119
|
+
}, "de_RebuildWorkspacesCommand");
|
|
2120
|
+
var de_RegisterWorkspaceDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2121
|
+
if (output.statusCode >= 300) {
|
|
2122
|
+
return de_CommandError(output, context);
|
|
3880
2123
|
}
|
|
3881
|
-
|
|
2124
|
+
const data = await parseBody(output.body, context);
|
|
2125
|
+
let contents = {};
|
|
2126
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2127
|
+
const response = {
|
|
2128
|
+
$metadata: deserializeMetadata(output),
|
|
2129
|
+
...contents
|
|
2130
|
+
};
|
|
2131
|
+
return response;
|
|
2132
|
+
}, "de_RegisterWorkspaceDirectoryCommand");
|
|
3882
2133
|
var de_RestoreWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3883
2134
|
if (output.statusCode >= 300) {
|
|
3884
|
-
return
|
|
2135
|
+
return de_CommandError(output, context);
|
|
3885
2136
|
}
|
|
3886
2137
|
const data = await parseBody(output.body, context);
|
|
3887
2138
|
let contents = {};
|
|
@@ -3892,37 +2143,9 @@ var de_RestoreWorkspaceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3892
2143
|
};
|
|
3893
2144
|
return response;
|
|
3894
2145
|
}, "de_RestoreWorkspaceCommand");
|
|
3895
|
-
var de_RestoreWorkspaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3896
|
-
const parsedOutput = {
|
|
3897
|
-
...output,
|
|
3898
|
-
body: await parseErrorBody(output.body, context)
|
|
3899
|
-
};
|
|
3900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3901
|
-
switch (errorCode) {
|
|
3902
|
-
case "AccessDeniedException":
|
|
3903
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3904
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3905
|
-
case "InvalidParameterValuesException":
|
|
3906
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3907
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3908
|
-
case "OperationNotSupportedException":
|
|
3909
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3910
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
3911
|
-
case "ResourceNotFoundException":
|
|
3912
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3913
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3914
|
-
default:
|
|
3915
|
-
const parsedBody = parsedOutput.body;
|
|
3916
|
-
return throwDefaultError({
|
|
3917
|
-
output,
|
|
3918
|
-
parsedBody,
|
|
3919
|
-
errorCode
|
|
3920
|
-
});
|
|
3921
|
-
}
|
|
3922
|
-
}, "de_RestoreWorkspaceCommandError");
|
|
3923
2146
|
var de_RevokeIpRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3924
2147
|
if (output.statusCode >= 300) {
|
|
3925
|
-
return
|
|
2148
|
+
return de_CommandError(output, context);
|
|
3926
2149
|
}
|
|
3927
2150
|
const data = await parseBody(output.body, context);
|
|
3928
2151
|
let contents = {};
|
|
@@ -3933,37 +2156,9 @@ var de_RevokeIpRulesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3933
2156
|
};
|
|
3934
2157
|
return response;
|
|
3935
2158
|
}, "de_RevokeIpRulesCommand");
|
|
3936
|
-
var de_RevokeIpRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3937
|
-
const parsedOutput = {
|
|
3938
|
-
...output,
|
|
3939
|
-
body: await parseErrorBody(output.body, context)
|
|
3940
|
-
};
|
|
3941
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3942
|
-
switch (errorCode) {
|
|
3943
|
-
case "AccessDeniedException":
|
|
3944
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
3945
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3946
|
-
case "InvalidParameterValuesException":
|
|
3947
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3948
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
3949
|
-
case "InvalidResourceStateException":
|
|
3950
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
3951
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3952
|
-
case "ResourceNotFoundException":
|
|
3953
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3954
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3955
|
-
default:
|
|
3956
|
-
const parsedBody = parsedOutput.body;
|
|
3957
|
-
return throwDefaultError({
|
|
3958
|
-
output,
|
|
3959
|
-
parsedBody,
|
|
3960
|
-
errorCode
|
|
3961
|
-
});
|
|
3962
|
-
}
|
|
3963
|
-
}, "de_RevokeIpRulesCommandError");
|
|
3964
2159
|
var de_StartWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3965
2160
|
if (output.statusCode >= 300) {
|
|
3966
|
-
return
|
|
2161
|
+
return de_CommandError(output, context);
|
|
3967
2162
|
}
|
|
3968
2163
|
const data = await parseBody(output.body, context);
|
|
3969
2164
|
let contents = {};
|
|
@@ -3974,22 +2169,9 @@ var de_StartWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3974
2169
|
};
|
|
3975
2170
|
return response;
|
|
3976
2171
|
}, "de_StartWorkspacesCommand");
|
|
3977
|
-
var de_StartWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3978
|
-
const parsedOutput = {
|
|
3979
|
-
...output,
|
|
3980
|
-
body: await parseErrorBody(output.body, context)
|
|
3981
|
-
};
|
|
3982
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3983
|
-
const parsedBody = parsedOutput.body;
|
|
3984
|
-
return throwDefaultError({
|
|
3985
|
-
output,
|
|
3986
|
-
parsedBody,
|
|
3987
|
-
errorCode
|
|
3988
|
-
});
|
|
3989
|
-
}, "de_StartWorkspacesCommandError");
|
|
3990
2172
|
var de_StopWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3991
2173
|
if (output.statusCode >= 300) {
|
|
3992
|
-
return
|
|
2174
|
+
return de_CommandError(output, context);
|
|
3993
2175
|
}
|
|
3994
2176
|
const data = await parseBody(output.body, context);
|
|
3995
2177
|
let contents = {};
|
|
@@ -4000,22 +2182,9 @@ var de_StopWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4000
2182
|
};
|
|
4001
2183
|
return response;
|
|
4002
2184
|
}, "de_StopWorkspacesCommand");
|
|
4003
|
-
var de_StopWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4004
|
-
const parsedOutput = {
|
|
4005
|
-
...output,
|
|
4006
|
-
body: await parseErrorBody(output.body, context)
|
|
4007
|
-
};
|
|
4008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4009
|
-
const parsedBody = parsedOutput.body;
|
|
4010
|
-
return throwDefaultError({
|
|
4011
|
-
output,
|
|
4012
|
-
parsedBody,
|
|
4013
|
-
errorCode
|
|
4014
|
-
});
|
|
4015
|
-
}, "de_StopWorkspacesCommandError");
|
|
4016
2185
|
var de_TerminateWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4017
2186
|
if (output.statusCode >= 300) {
|
|
4018
|
-
return
|
|
2187
|
+
return de_CommandError(output, context);
|
|
4019
2188
|
}
|
|
4020
2189
|
const data = await parseBody(output.body, context);
|
|
4021
2190
|
let contents = {};
|
|
@@ -4026,22 +2195,9 @@ var de_TerminateWorkspacesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4026
2195
|
};
|
|
4027
2196
|
return response;
|
|
4028
2197
|
}, "de_TerminateWorkspacesCommand");
|
|
4029
|
-
var de_TerminateWorkspacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4030
|
-
const parsedOutput = {
|
|
4031
|
-
...output,
|
|
4032
|
-
body: await parseErrorBody(output.body, context)
|
|
4033
|
-
};
|
|
4034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4035
|
-
const parsedBody = parsedOutput.body;
|
|
4036
|
-
return throwDefaultError({
|
|
4037
|
-
output,
|
|
4038
|
-
parsedBody,
|
|
4039
|
-
errorCode
|
|
4040
|
-
});
|
|
4041
|
-
}, "de_TerminateWorkspacesCommandError");
|
|
4042
2198
|
var de_UpdateConnectClientAddInCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4043
2199
|
if (output.statusCode >= 300) {
|
|
4044
|
-
return
|
|
2200
|
+
return de_CommandError(output, context);
|
|
4045
2201
|
}
|
|
4046
2202
|
const data = await parseBody(output.body, context);
|
|
4047
2203
|
let contents = {};
|
|
@@ -4052,34 +2208,9 @@ var de_UpdateConnectClientAddInCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4052
2208
|
};
|
|
4053
2209
|
return response;
|
|
4054
2210
|
}, "de_UpdateConnectClientAddInCommand");
|
|
4055
|
-
var de_UpdateConnectClientAddInCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4056
|
-
const parsedOutput = {
|
|
4057
|
-
...output,
|
|
4058
|
-
body: await parseErrorBody(output.body, context)
|
|
4059
|
-
};
|
|
4060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4061
|
-
switch (errorCode) {
|
|
4062
|
-
case "AccessDeniedException":
|
|
4063
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
4064
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4065
|
-
case "InvalidParameterValuesException":
|
|
4066
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
4067
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
4068
|
-
case "ResourceNotFoundException":
|
|
4069
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
4070
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4071
|
-
default:
|
|
4072
|
-
const parsedBody = parsedOutput.body;
|
|
4073
|
-
return throwDefaultError({
|
|
4074
|
-
output,
|
|
4075
|
-
parsedBody,
|
|
4076
|
-
errorCode
|
|
4077
|
-
});
|
|
4078
|
-
}
|
|
4079
|
-
}, "de_UpdateConnectClientAddInCommandError");
|
|
4080
2211
|
var de_UpdateConnectionAliasPermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4081
2212
|
if (output.statusCode >= 300) {
|
|
4082
|
-
return
|
|
2213
|
+
return de_CommandError(output, context);
|
|
4083
2214
|
}
|
|
4084
2215
|
const data = await parseBody(output.body, context);
|
|
4085
2216
|
let contents = {};
|
|
@@ -4090,46 +2221,9 @@ var de_UpdateConnectionAliasPermissionCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4090
2221
|
};
|
|
4091
2222
|
return response;
|
|
4092
2223
|
}, "de_UpdateConnectionAliasPermissionCommand");
|
|
4093
|
-
var de_UpdateConnectionAliasPermissionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4094
|
-
const parsedOutput = {
|
|
4095
|
-
...output,
|
|
4096
|
-
body: await parseErrorBody(output.body, context)
|
|
4097
|
-
};
|
|
4098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4099
|
-
switch (errorCode) {
|
|
4100
|
-
case "AccessDeniedException":
|
|
4101
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
4102
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4103
|
-
case "InvalidParameterValuesException":
|
|
4104
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
4105
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
4106
|
-
case "InvalidResourceStateException":
|
|
4107
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
4108
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
4109
|
-
case "OperationNotSupportedException":
|
|
4110
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
4111
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
4112
|
-
case "ResourceAssociatedException":
|
|
4113
|
-
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
4114
|
-
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
4115
|
-
case "ResourceLimitExceededException":
|
|
4116
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
4117
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
4118
|
-
case "ResourceNotFoundException":
|
|
4119
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
4120
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4121
|
-
default:
|
|
4122
|
-
const parsedBody = parsedOutput.body;
|
|
4123
|
-
return throwDefaultError({
|
|
4124
|
-
output,
|
|
4125
|
-
parsedBody,
|
|
4126
|
-
errorCode
|
|
4127
|
-
});
|
|
4128
|
-
}
|
|
4129
|
-
}, "de_UpdateConnectionAliasPermissionCommandError");
|
|
4130
2224
|
var de_UpdateRulesOfIpGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4131
2225
|
if (output.statusCode >= 300) {
|
|
4132
|
-
return
|
|
2226
|
+
return de_CommandError(output, context);
|
|
4133
2227
|
}
|
|
4134
2228
|
const data = await parseBody(output.body, context);
|
|
4135
2229
|
let contents = {};
|
|
@@ -4140,40 +2234,9 @@ var de_UpdateRulesOfIpGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4140
2234
|
};
|
|
4141
2235
|
return response;
|
|
4142
2236
|
}, "de_UpdateRulesOfIpGroupCommand");
|
|
4143
|
-
var de_UpdateRulesOfIpGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4144
|
-
const parsedOutput = {
|
|
4145
|
-
...output,
|
|
4146
|
-
body: await parseErrorBody(output.body, context)
|
|
4147
|
-
};
|
|
4148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4149
|
-
switch (errorCode) {
|
|
4150
|
-
case "AccessDeniedException":
|
|
4151
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
4152
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4153
|
-
case "InvalidParameterValuesException":
|
|
4154
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
4155
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
4156
|
-
case "InvalidResourceStateException":
|
|
4157
|
-
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
4158
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
4159
|
-
case "ResourceLimitExceededException":
|
|
4160
|
-
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
4161
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
4162
|
-
case "ResourceNotFoundException":
|
|
4163
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
4164
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4165
|
-
default:
|
|
4166
|
-
const parsedBody = parsedOutput.body;
|
|
4167
|
-
return throwDefaultError({
|
|
4168
|
-
output,
|
|
4169
|
-
parsedBody,
|
|
4170
|
-
errorCode
|
|
4171
|
-
});
|
|
4172
|
-
}
|
|
4173
|
-
}, "de_UpdateRulesOfIpGroupCommandError");
|
|
4174
2237
|
var de_UpdateWorkspaceBundleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4175
2238
|
if (output.statusCode >= 300) {
|
|
4176
|
-
return
|
|
2239
|
+
return de_CommandError(output, context);
|
|
4177
2240
|
}
|
|
4178
2241
|
const data = await parseBody(output.body, context);
|
|
4179
2242
|
let contents = {};
|
|
@@ -4184,40 +2247,9 @@ var de_UpdateWorkspaceBundleCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4184
2247
|
};
|
|
4185
2248
|
return response;
|
|
4186
2249
|
}, "de_UpdateWorkspaceBundleCommand");
|
|
4187
|
-
var de_UpdateWorkspaceBundleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4188
|
-
const parsedOutput = {
|
|
4189
|
-
...output,
|
|
4190
|
-
body: await parseErrorBody(output.body, context)
|
|
4191
|
-
};
|
|
4192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4193
|
-
switch (errorCode) {
|
|
4194
|
-
case "AccessDeniedException":
|
|
4195
|
-
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
4196
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4197
|
-
case "InvalidParameterValuesException":
|
|
4198
|
-
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
4199
|
-
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
4200
|
-
case "OperationNotSupportedException":
|
|
4201
|
-
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
4202
|
-
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
4203
|
-
case "ResourceNotFoundException":
|
|
4204
|
-
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
4205
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4206
|
-
case "ResourceUnavailableException":
|
|
4207
|
-
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
4208
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
4209
|
-
default:
|
|
4210
|
-
const parsedBody = parsedOutput.body;
|
|
4211
|
-
return throwDefaultError({
|
|
4212
|
-
output,
|
|
4213
|
-
parsedBody,
|
|
4214
|
-
errorCode
|
|
4215
|
-
});
|
|
4216
|
-
}
|
|
4217
|
-
}, "de_UpdateWorkspaceBundleCommandError");
|
|
4218
2250
|
var de_UpdateWorkspaceImagePermissionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4219
2251
|
if (output.statusCode >= 300) {
|
|
4220
|
-
return
|
|
2252
|
+
return de_CommandError(output, context);
|
|
4221
2253
|
}
|
|
4222
2254
|
const data = await parseBody(output.body, context);
|
|
4223
2255
|
let contents = {};
|
|
@@ -4228,7 +2260,7 @@ var de_UpdateWorkspaceImagePermissionCommand = /* @__PURE__ */ __name(async (out
|
|
|
4228
2260
|
};
|
|
4229
2261
|
return response;
|
|
4230
2262
|
}, "de_UpdateWorkspaceImagePermissionCommand");
|
|
4231
|
-
var
|
|
2263
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4232
2264
|
const parsedOutput = {
|
|
4233
2265
|
...output,
|
|
4234
2266
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4241,15 +2273,57 @@ var de_UpdateWorkspaceImagePermissionCommandError = /* @__PURE__ */ __name(async
|
|
|
4241
2273
|
case "InvalidParameterValuesException":
|
|
4242
2274
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
4243
2275
|
throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
|
|
2276
|
+
case "InvalidResourceStateException":
|
|
2277
|
+
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2278
|
+
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
4244
2279
|
case "OperationNotSupportedException":
|
|
4245
2280
|
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
4246
2281
|
throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
|
|
2282
|
+
case "ResourceAssociatedException":
|
|
2283
|
+
case "com.amazonaws.workspaces#ResourceAssociatedException":
|
|
2284
|
+
throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
|
|
4247
2285
|
case "ResourceNotFoundException":
|
|
4248
2286
|
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
4249
2287
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2288
|
+
case "ResourceLimitExceededException":
|
|
2289
|
+
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
2290
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2291
|
+
case "ApplicationNotSupportedException":
|
|
2292
|
+
case "com.amazonaws.workspaces#ApplicationNotSupportedException":
|
|
2293
|
+
throw await de_ApplicationNotSupportedExceptionRes(parsedOutput, context);
|
|
2294
|
+
case "ComputeNotCompatibleException":
|
|
2295
|
+
case "com.amazonaws.workspaces#ComputeNotCompatibleException":
|
|
2296
|
+
throw await de_ComputeNotCompatibleExceptionRes(parsedOutput, context);
|
|
2297
|
+
case "IncompatibleApplicationsException":
|
|
2298
|
+
case "com.amazonaws.workspaces#IncompatibleApplicationsException":
|
|
2299
|
+
throw await de_IncompatibleApplicationsExceptionRes(parsedOutput, context);
|
|
2300
|
+
case "OperatingSystemNotCompatibleException":
|
|
2301
|
+
case "com.amazonaws.workspaces#OperatingSystemNotCompatibleException":
|
|
2302
|
+
throw await de_OperatingSystemNotCompatibleExceptionRes(parsedOutput, context);
|
|
2303
|
+
case "ResourceAlreadyExistsException":
|
|
2304
|
+
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
2305
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2306
|
+
case "ResourceInUseException":
|
|
2307
|
+
case "com.amazonaws.workspaces#ResourceInUseException":
|
|
2308
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4250
2309
|
case "ResourceUnavailableException":
|
|
4251
2310
|
case "com.amazonaws.workspaces#ResourceUnavailableException":
|
|
4252
2311
|
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
2312
|
+
case "ResourceCreationFailedException":
|
|
2313
|
+
case "com.amazonaws.workspaces#ResourceCreationFailedException":
|
|
2314
|
+
throw await de_ResourceCreationFailedExceptionRes(parsedOutput, context);
|
|
2315
|
+
case "OperationInProgressException":
|
|
2316
|
+
case "com.amazonaws.workspaces#OperationInProgressException":
|
|
2317
|
+
throw await de_OperationInProgressExceptionRes(parsedOutput, context);
|
|
2318
|
+
case "UnsupportedWorkspaceConfigurationException":
|
|
2319
|
+
case "com.amazonaws.workspaces#UnsupportedWorkspaceConfigurationException":
|
|
2320
|
+
throw await de_UnsupportedWorkspaceConfigurationExceptionRes(parsedOutput, context);
|
|
2321
|
+
case "UnsupportedNetworkConfigurationException":
|
|
2322
|
+
case "com.amazonaws.workspaces#UnsupportedNetworkConfigurationException":
|
|
2323
|
+
throw await de_UnsupportedNetworkConfigurationExceptionRes(parsedOutput, context);
|
|
2324
|
+
case "WorkspacesDefaultRoleNotFoundException":
|
|
2325
|
+
case "com.amazonaws.workspaces#WorkspacesDefaultRoleNotFoundException":
|
|
2326
|
+
throw await de_WorkspacesDefaultRoleNotFoundExceptionRes(parsedOutput, context);
|
|
4253
2327
|
default:
|
|
4254
2328
|
const parsedBody = parsedOutput.body;
|
|
4255
2329
|
return throwDefaultError({
|
|
@@ -4258,7 +2332,7 @@ var de_UpdateWorkspaceImagePermissionCommandError = /* @__PURE__ */ __name(async
|
|
|
4258
2332
|
errorCode
|
|
4259
2333
|
});
|
|
4260
2334
|
}
|
|
4261
|
-
}, "
|
|
2335
|
+
}, "de_CommandError");
|
|
4262
2336
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4263
2337
|
const body = parsedOutput.body;
|
|
4264
2338
|
const deserialized = (0, import_smithy_client._json)(body);
|