@aws-sdk/client-appconfig 3.51.0 → 3.54.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AppConfigServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +93 -2
- package/dist-cjs/protocols/Aws_restJson1.js +293 -995
- package/dist-es/index.js +1 -0
- package/dist-es/models/AppConfigServiceException.js +12 -0
- package/dist-es/models/models_0.js +86 -1
- package/dist-es/protocols/Aws_restJson1.js +647 -1134
- package/dist-types/AppConfigClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AppConfigServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -19
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/AppConfigClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AppConfigServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -19
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1GetHostedConfigurationVersionCommand = exports.d
|
|
|
4
4
|
exports.deserializeAws_restJson1ValidateConfigurationCommand = exports.deserializeAws_restJson1UpdateEnvironmentCommand = exports.deserializeAws_restJson1UpdateDeploymentStrategyCommand = exports.deserializeAws_restJson1UpdateConfigurationProfileCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopDeploymentCommand = exports.deserializeAws_restJson1StartDeploymentCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListHostedConfigurationVersionsCommand = exports.deserializeAws_restJson1ListEnvironmentsCommand = exports.deserializeAws_restJson1ListDeploymentStrategiesCommand = exports.deserializeAws_restJson1ListDeploymentsCommand = exports.deserializeAws_restJson1ListConfigurationProfilesCommand = exports.deserializeAws_restJson1ListApplicationsCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const AppConfigServiceException_1 = require("../models/AppConfigServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1CreateApplicationCommand = async (input, context) => {
|
|
8
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9
11
|
const headers = {
|
|
@@ -1242,35 +1244,19 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
1242
1244
|
switch (errorCode) {
|
|
1243
1245
|
case "BadRequestException":
|
|
1244
1246
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1245
|
-
|
|
1246
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1247
|
-
name: errorCode,
|
|
1248
|
-
$metadata: deserializeMetadata(output),
|
|
1249
|
-
};
|
|
1250
|
-
break;
|
|
1247
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1251
1248
|
case "InternalServerException":
|
|
1252
1249
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1253
|
-
|
|
1254
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1255
|
-
name: errorCode,
|
|
1256
|
-
$metadata: deserializeMetadata(output),
|
|
1257
|
-
};
|
|
1258
|
-
break;
|
|
1250
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1259
1251
|
default:
|
|
1260
1252
|
const parsedBody = parsedOutput.body;
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
...parsedBody,
|
|
1264
|
-
name: `${errorCode}`,
|
|
1265
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1253
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1254
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1266
1255
|
$fault: "client",
|
|
1267
1256
|
$metadata: deserializeMetadata(output),
|
|
1268
|
-
};
|
|
1257
|
+
});
|
|
1258
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1269
1259
|
}
|
|
1270
|
-
const message = response.message || response.Message || errorCode;
|
|
1271
|
-
response.message = message;
|
|
1272
|
-
delete response.Message;
|
|
1273
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1274
1260
|
};
|
|
1275
1261
|
const deserializeAws_restJson1CreateConfigurationProfileCommand = async (output, context) => {
|
|
1276
1262
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1326,43 +1312,22 @@ const deserializeAws_restJson1CreateConfigurationProfileCommandError = async (ou
|
|
|
1326
1312
|
switch (errorCode) {
|
|
1327
1313
|
case "BadRequestException":
|
|
1328
1314
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1329
|
-
|
|
1330
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1331
|
-
name: errorCode,
|
|
1332
|
-
$metadata: deserializeMetadata(output),
|
|
1333
|
-
};
|
|
1334
|
-
break;
|
|
1315
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1335
1316
|
case "InternalServerException":
|
|
1336
1317
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1337
|
-
|
|
1338
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1339
|
-
name: errorCode,
|
|
1340
|
-
$metadata: deserializeMetadata(output),
|
|
1341
|
-
};
|
|
1342
|
-
break;
|
|
1318
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1343
1319
|
case "ResourceNotFoundException":
|
|
1344
1320
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1345
|
-
|
|
1346
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1347
|
-
name: errorCode,
|
|
1348
|
-
$metadata: deserializeMetadata(output),
|
|
1349
|
-
};
|
|
1350
|
-
break;
|
|
1321
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1351
1322
|
default:
|
|
1352
1323
|
const parsedBody = parsedOutput.body;
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
...parsedBody,
|
|
1356
|
-
name: `${errorCode}`,
|
|
1357
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1324
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1325
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1358
1326
|
$fault: "client",
|
|
1359
1327
|
$metadata: deserializeMetadata(output),
|
|
1360
|
-
};
|
|
1328
|
+
});
|
|
1329
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1361
1330
|
}
|
|
1362
|
-
const message = response.message || response.Message || errorCode;
|
|
1363
|
-
response.message = message;
|
|
1364
|
-
delete response.Message;
|
|
1365
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1366
1331
|
};
|
|
1367
1332
|
const deserializeAws_restJson1CreateDeploymentStrategyCommand = async (output, context) => {
|
|
1368
1333
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1418,35 +1383,19 @@ const deserializeAws_restJson1CreateDeploymentStrategyCommandError = async (outp
|
|
|
1418
1383
|
switch (errorCode) {
|
|
1419
1384
|
case "BadRequestException":
|
|
1420
1385
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1421
|
-
|
|
1422
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1423
|
-
name: errorCode,
|
|
1424
|
-
$metadata: deserializeMetadata(output),
|
|
1425
|
-
};
|
|
1426
|
-
break;
|
|
1386
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1427
1387
|
case "InternalServerException":
|
|
1428
1388
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1429
|
-
|
|
1430
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1431
|
-
name: errorCode,
|
|
1432
|
-
$metadata: deserializeMetadata(output),
|
|
1433
|
-
};
|
|
1434
|
-
break;
|
|
1389
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1435
1390
|
default:
|
|
1436
1391
|
const parsedBody = parsedOutput.body;
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
...parsedBody,
|
|
1440
|
-
name: `${errorCode}`,
|
|
1441
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1392
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1393
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1442
1394
|
$fault: "client",
|
|
1443
1395
|
$metadata: deserializeMetadata(output),
|
|
1444
|
-
};
|
|
1396
|
+
});
|
|
1397
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1445
1398
|
}
|
|
1446
|
-
const message = response.message || response.Message || errorCode;
|
|
1447
|
-
response.message = message;
|
|
1448
|
-
delete response.Message;
|
|
1449
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1450
1399
|
};
|
|
1451
1400
|
const deserializeAws_restJson1CreateEnvironmentCommand = async (output, context) => {
|
|
1452
1401
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1494,43 +1443,22 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1494
1443
|
switch (errorCode) {
|
|
1495
1444
|
case "BadRequestException":
|
|
1496
1445
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1497
|
-
|
|
1498
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1499
|
-
name: errorCode,
|
|
1500
|
-
$metadata: deserializeMetadata(output),
|
|
1501
|
-
};
|
|
1502
|
-
break;
|
|
1446
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1503
1447
|
case "InternalServerException":
|
|
1504
1448
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1505
|
-
|
|
1506
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1507
|
-
name: errorCode,
|
|
1508
|
-
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1510
|
-
break;
|
|
1449
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1511
1450
|
case "ResourceNotFoundException":
|
|
1512
1451
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1513
|
-
|
|
1514
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1515
|
-
name: errorCode,
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1518
|
-
break;
|
|
1452
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1519
1453
|
default:
|
|
1520
1454
|
const parsedBody = parsedOutput.body;
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
...parsedBody,
|
|
1524
|
-
name: `${errorCode}`,
|
|
1525
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1455
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1456
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1526
1457
|
$fault: "client",
|
|
1527
1458
|
$metadata: deserializeMetadata(output),
|
|
1528
|
-
};
|
|
1459
|
+
});
|
|
1460
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1529
1461
|
}
|
|
1530
|
-
const message = response.message || response.Message || errorCode;
|
|
1531
|
-
response.message = message;
|
|
1532
|
-
delete response.Message;
|
|
1533
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1534
1462
|
};
|
|
1535
1463
|
const deserializeAws_restJson1CreateHostedConfigurationVersionCommand = async (output, context) => {
|
|
1536
1464
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1576,67 +1504,31 @@ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = asy
|
|
|
1576
1504
|
switch (errorCode) {
|
|
1577
1505
|
case "BadRequestException":
|
|
1578
1506
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1579
|
-
|
|
1580
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1581
|
-
name: errorCode,
|
|
1582
|
-
$metadata: deserializeMetadata(output),
|
|
1583
|
-
};
|
|
1584
|
-
break;
|
|
1507
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1585
1508
|
case "ConflictException":
|
|
1586
1509
|
case "com.amazonaws.appconfig#ConflictException":
|
|
1587
|
-
|
|
1588
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1589
|
-
name: errorCode,
|
|
1590
|
-
$metadata: deserializeMetadata(output),
|
|
1591
|
-
};
|
|
1592
|
-
break;
|
|
1510
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1593
1511
|
case "InternalServerException":
|
|
1594
1512
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1595
|
-
|
|
1596
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1597
|
-
name: errorCode,
|
|
1598
|
-
$metadata: deserializeMetadata(output),
|
|
1599
|
-
};
|
|
1600
|
-
break;
|
|
1513
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1601
1514
|
case "PayloadTooLargeException":
|
|
1602
1515
|
case "com.amazonaws.appconfig#PayloadTooLargeException":
|
|
1603
|
-
|
|
1604
|
-
...(await deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context)),
|
|
1605
|
-
name: errorCode,
|
|
1606
|
-
$metadata: deserializeMetadata(output),
|
|
1607
|
-
};
|
|
1608
|
-
break;
|
|
1516
|
+
throw await deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context);
|
|
1609
1517
|
case "ResourceNotFoundException":
|
|
1610
1518
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1611
|
-
|
|
1612
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1613
|
-
name: errorCode,
|
|
1614
|
-
$metadata: deserializeMetadata(output),
|
|
1615
|
-
};
|
|
1616
|
-
break;
|
|
1519
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1617
1520
|
case "ServiceQuotaExceededException":
|
|
1618
1521
|
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
1619
|
-
|
|
1620
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1621
|
-
name: errorCode,
|
|
1622
|
-
$metadata: deserializeMetadata(output),
|
|
1623
|
-
};
|
|
1624
|
-
break;
|
|
1522
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1625
1523
|
default:
|
|
1626
1524
|
const parsedBody = parsedOutput.body;
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
...parsedBody,
|
|
1630
|
-
name: `${errorCode}`,
|
|
1631
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1525
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1526
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1632
1527
|
$fault: "client",
|
|
1633
1528
|
$metadata: deserializeMetadata(output),
|
|
1634
|
-
};
|
|
1529
|
+
});
|
|
1530
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1635
1531
|
}
|
|
1636
|
-
const message = response.message || response.Message || errorCode;
|
|
1637
|
-
response.message = message;
|
|
1638
|
-
delete response.Message;
|
|
1639
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1640
1532
|
};
|
|
1641
1533
|
const deserializeAws_restJson1DeleteApplicationCommand = async (output, context) => {
|
|
1642
1534
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1660,43 +1552,22 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1660
1552
|
switch (errorCode) {
|
|
1661
1553
|
case "BadRequestException":
|
|
1662
1554
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1663
|
-
|
|
1664
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1665
|
-
name: errorCode,
|
|
1666
|
-
$metadata: deserializeMetadata(output),
|
|
1667
|
-
};
|
|
1668
|
-
break;
|
|
1555
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1669
1556
|
case "InternalServerException":
|
|
1670
1557
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1671
|
-
|
|
1672
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1673
|
-
name: errorCode,
|
|
1674
|
-
$metadata: deserializeMetadata(output),
|
|
1675
|
-
};
|
|
1676
|
-
break;
|
|
1558
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1677
1559
|
case "ResourceNotFoundException":
|
|
1678
1560
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1679
|
-
|
|
1680
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1681
|
-
name: errorCode,
|
|
1682
|
-
$metadata: deserializeMetadata(output),
|
|
1683
|
-
};
|
|
1684
|
-
break;
|
|
1561
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1685
1562
|
default:
|
|
1686
1563
|
const parsedBody = parsedOutput.body;
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
...parsedBody,
|
|
1690
|
-
name: `${errorCode}`,
|
|
1691
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1564
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1565
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1692
1566
|
$fault: "client",
|
|
1693
1567
|
$metadata: deserializeMetadata(output),
|
|
1694
|
-
};
|
|
1568
|
+
});
|
|
1569
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1695
1570
|
}
|
|
1696
|
-
const message = response.message || response.Message || errorCode;
|
|
1697
|
-
response.message = message;
|
|
1698
|
-
delete response.Message;
|
|
1699
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1700
1571
|
};
|
|
1701
1572
|
const deserializeAws_restJson1DeleteConfigurationProfileCommand = async (output, context) => {
|
|
1702
1573
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1720,51 +1591,25 @@ const deserializeAws_restJson1DeleteConfigurationProfileCommandError = async (ou
|
|
|
1720
1591
|
switch (errorCode) {
|
|
1721
1592
|
case "BadRequestException":
|
|
1722
1593
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1723
|
-
|
|
1724
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1725
|
-
name: errorCode,
|
|
1726
|
-
$metadata: deserializeMetadata(output),
|
|
1727
|
-
};
|
|
1728
|
-
break;
|
|
1594
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1729
1595
|
case "ConflictException":
|
|
1730
1596
|
case "com.amazonaws.appconfig#ConflictException":
|
|
1731
|
-
|
|
1732
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1733
|
-
name: errorCode,
|
|
1734
|
-
$metadata: deserializeMetadata(output),
|
|
1735
|
-
};
|
|
1736
|
-
break;
|
|
1597
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1737
1598
|
case "InternalServerException":
|
|
1738
1599
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1739
|
-
|
|
1740
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1741
|
-
name: errorCode,
|
|
1742
|
-
$metadata: deserializeMetadata(output),
|
|
1743
|
-
};
|
|
1744
|
-
break;
|
|
1600
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1745
1601
|
case "ResourceNotFoundException":
|
|
1746
1602
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1747
|
-
|
|
1748
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1749
|
-
name: errorCode,
|
|
1750
|
-
$metadata: deserializeMetadata(output),
|
|
1751
|
-
};
|
|
1752
|
-
break;
|
|
1603
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1753
1604
|
default:
|
|
1754
1605
|
const parsedBody = parsedOutput.body;
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
...parsedBody,
|
|
1758
|
-
name: `${errorCode}`,
|
|
1759
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1606
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1607
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1760
1608
|
$fault: "client",
|
|
1761
1609
|
$metadata: deserializeMetadata(output),
|
|
1762
|
-
};
|
|
1610
|
+
});
|
|
1611
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1763
1612
|
}
|
|
1764
|
-
const message = response.message || response.Message || errorCode;
|
|
1765
|
-
response.message = message;
|
|
1766
|
-
delete response.Message;
|
|
1767
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1768
1613
|
};
|
|
1769
1614
|
const deserializeAws_restJson1DeleteDeploymentStrategyCommand = async (output, context) => {
|
|
1770
1615
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1788,43 +1633,22 @@ const deserializeAws_restJson1DeleteDeploymentStrategyCommandError = async (outp
|
|
|
1788
1633
|
switch (errorCode) {
|
|
1789
1634
|
case "BadRequestException":
|
|
1790
1635
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1791
|
-
|
|
1792
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1793
|
-
name: errorCode,
|
|
1794
|
-
$metadata: deserializeMetadata(output),
|
|
1795
|
-
};
|
|
1796
|
-
break;
|
|
1636
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1797
1637
|
case "InternalServerException":
|
|
1798
1638
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1799
|
-
|
|
1800
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1801
|
-
name: errorCode,
|
|
1802
|
-
$metadata: deserializeMetadata(output),
|
|
1803
|
-
};
|
|
1804
|
-
break;
|
|
1639
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1805
1640
|
case "ResourceNotFoundException":
|
|
1806
1641
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1807
|
-
|
|
1808
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1809
|
-
name: errorCode,
|
|
1810
|
-
$metadata: deserializeMetadata(output),
|
|
1811
|
-
};
|
|
1812
|
-
break;
|
|
1642
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1813
1643
|
default:
|
|
1814
1644
|
const parsedBody = parsedOutput.body;
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
...parsedBody,
|
|
1818
|
-
name: `${errorCode}`,
|
|
1819
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1645
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1646
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1820
1647
|
$fault: "client",
|
|
1821
1648
|
$metadata: deserializeMetadata(output),
|
|
1822
|
-
};
|
|
1649
|
+
});
|
|
1650
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1823
1651
|
}
|
|
1824
|
-
const message = response.message || response.Message || errorCode;
|
|
1825
|
-
response.message = message;
|
|
1826
|
-
delete response.Message;
|
|
1827
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1828
1652
|
};
|
|
1829
1653
|
const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, context) => {
|
|
1830
1654
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1848,51 +1672,25 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1848
1672
|
switch (errorCode) {
|
|
1849
1673
|
case "BadRequestException":
|
|
1850
1674
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1851
|
-
|
|
1852
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1853
|
-
name: errorCode,
|
|
1854
|
-
$metadata: deserializeMetadata(output),
|
|
1855
|
-
};
|
|
1856
|
-
break;
|
|
1675
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1857
1676
|
case "ConflictException":
|
|
1858
1677
|
case "com.amazonaws.appconfig#ConflictException":
|
|
1859
|
-
|
|
1860
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1861
|
-
name: errorCode,
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
};
|
|
1864
|
-
break;
|
|
1678
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1865
1679
|
case "InternalServerException":
|
|
1866
1680
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1867
|
-
|
|
1868
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1869
|
-
name: errorCode,
|
|
1870
|
-
$metadata: deserializeMetadata(output),
|
|
1871
|
-
};
|
|
1872
|
-
break;
|
|
1681
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1873
1682
|
case "ResourceNotFoundException":
|
|
1874
1683
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1875
|
-
|
|
1876
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1877
|
-
name: errorCode,
|
|
1878
|
-
$metadata: deserializeMetadata(output),
|
|
1879
|
-
};
|
|
1880
|
-
break;
|
|
1684
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1881
1685
|
default:
|
|
1882
1686
|
const parsedBody = parsedOutput.body;
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
...parsedBody,
|
|
1886
|
-
name: `${errorCode}`,
|
|
1887
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1687
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1688
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1888
1689
|
$fault: "client",
|
|
1889
1690
|
$metadata: deserializeMetadata(output),
|
|
1890
|
-
};
|
|
1691
|
+
});
|
|
1692
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1891
1693
|
}
|
|
1892
|
-
const message = response.message || response.Message || errorCode;
|
|
1893
|
-
response.message = message;
|
|
1894
|
-
delete response.Message;
|
|
1895
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1896
1694
|
};
|
|
1897
1695
|
const deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = async (output, context) => {
|
|
1898
1696
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1916,43 +1714,22 @@ const deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = asy
|
|
|
1916
1714
|
switch (errorCode) {
|
|
1917
1715
|
case "BadRequestException":
|
|
1918
1716
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1919
|
-
|
|
1920
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1921
|
-
name: errorCode,
|
|
1922
|
-
$metadata: deserializeMetadata(output),
|
|
1923
|
-
};
|
|
1924
|
-
break;
|
|
1717
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1925
1718
|
case "InternalServerException":
|
|
1926
1719
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1927
|
-
|
|
1928
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1929
|
-
name: errorCode,
|
|
1930
|
-
$metadata: deserializeMetadata(output),
|
|
1931
|
-
};
|
|
1932
|
-
break;
|
|
1720
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1933
1721
|
case "ResourceNotFoundException":
|
|
1934
1722
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1935
|
-
|
|
1936
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1937
|
-
name: errorCode,
|
|
1938
|
-
$metadata: deserializeMetadata(output),
|
|
1939
|
-
};
|
|
1940
|
-
break;
|
|
1723
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1941
1724
|
default:
|
|
1942
1725
|
const parsedBody = parsedOutput.body;
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
...parsedBody,
|
|
1946
|
-
name: `${errorCode}`,
|
|
1947
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1726
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1727
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1948
1728
|
$fault: "client",
|
|
1949
1729
|
$metadata: deserializeMetadata(output),
|
|
1950
|
-
};
|
|
1730
|
+
});
|
|
1731
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1951
1732
|
}
|
|
1952
|
-
const message = response.message || response.Message || errorCode;
|
|
1953
|
-
response.message = message;
|
|
1954
|
-
delete response.Message;
|
|
1955
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1956
1733
|
};
|
|
1957
1734
|
const deserializeAws_restJson1GetApplicationCommand = async (output, context) => {
|
|
1958
1735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1988,43 +1765,22 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1988
1765
|
switch (errorCode) {
|
|
1989
1766
|
case "BadRequestException":
|
|
1990
1767
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1991
|
-
|
|
1992
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1993
|
-
name: errorCode,
|
|
1994
|
-
$metadata: deserializeMetadata(output),
|
|
1995
|
-
};
|
|
1996
|
-
break;
|
|
1768
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1997
1769
|
case "InternalServerException":
|
|
1998
1770
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1999
|
-
|
|
2000
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2001
|
-
name: errorCode,
|
|
2002
|
-
$metadata: deserializeMetadata(output),
|
|
2003
|
-
};
|
|
2004
|
-
break;
|
|
1771
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2005
1772
|
case "ResourceNotFoundException":
|
|
2006
1773
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2007
|
-
|
|
2008
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2009
|
-
name: errorCode,
|
|
2010
|
-
$metadata: deserializeMetadata(output),
|
|
2011
|
-
};
|
|
2012
|
-
break;
|
|
1774
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2013
1775
|
default:
|
|
2014
1776
|
const parsedBody = parsedOutput.body;
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
...parsedBody,
|
|
2018
|
-
name: `${errorCode}`,
|
|
2019
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1777
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1778
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2020
1779
|
$fault: "client",
|
|
2021
1780
|
$metadata: deserializeMetadata(output),
|
|
2022
|
-
};
|
|
1781
|
+
});
|
|
1782
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2023
1783
|
}
|
|
2024
|
-
const message = response.message || response.Message || errorCode;
|
|
2025
|
-
response.message = message;
|
|
2026
|
-
delete response.Message;
|
|
2027
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2028
1784
|
};
|
|
2029
1785
|
const deserializeAws_restJson1GetConfigurationCommand = async (output, context) => {
|
|
2030
1786
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2058,43 +1814,22 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
2058
1814
|
switch (errorCode) {
|
|
2059
1815
|
case "BadRequestException":
|
|
2060
1816
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2061
|
-
|
|
2062
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2063
|
-
name: errorCode,
|
|
2064
|
-
$metadata: deserializeMetadata(output),
|
|
2065
|
-
};
|
|
2066
|
-
break;
|
|
1817
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2067
1818
|
case "InternalServerException":
|
|
2068
1819
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2069
|
-
|
|
2070
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2071
|
-
name: errorCode,
|
|
2072
|
-
$metadata: deserializeMetadata(output),
|
|
2073
|
-
};
|
|
2074
|
-
break;
|
|
1820
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2075
1821
|
case "ResourceNotFoundException":
|
|
2076
1822
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2077
|
-
|
|
2078
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2079
|
-
name: errorCode,
|
|
2080
|
-
$metadata: deserializeMetadata(output),
|
|
2081
|
-
};
|
|
2082
|
-
break;
|
|
1823
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2083
1824
|
default:
|
|
2084
1825
|
const parsedBody = parsedOutput.body;
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
...parsedBody,
|
|
2088
|
-
name: `${errorCode}`,
|
|
2089
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1826
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1827
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2090
1828
|
$fault: "client",
|
|
2091
1829
|
$metadata: deserializeMetadata(output),
|
|
2092
|
-
};
|
|
1830
|
+
});
|
|
1831
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2093
1832
|
}
|
|
2094
|
-
const message = response.message || response.Message || errorCode;
|
|
2095
|
-
response.message = message;
|
|
2096
|
-
delete response.Message;
|
|
2097
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2098
1833
|
};
|
|
2099
1834
|
const deserializeAws_restJson1GetConfigurationProfileCommand = async (output, context) => {
|
|
2100
1835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2150,43 +1885,22 @@ const deserializeAws_restJson1GetConfigurationProfileCommandError = async (outpu
|
|
|
2150
1885
|
switch (errorCode) {
|
|
2151
1886
|
case "BadRequestException":
|
|
2152
1887
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2153
|
-
|
|
2154
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2155
|
-
name: errorCode,
|
|
2156
|
-
$metadata: deserializeMetadata(output),
|
|
2157
|
-
};
|
|
2158
|
-
break;
|
|
1888
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2159
1889
|
case "InternalServerException":
|
|
2160
1890
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2161
|
-
|
|
2162
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2163
|
-
name: errorCode,
|
|
2164
|
-
$metadata: deserializeMetadata(output),
|
|
2165
|
-
};
|
|
2166
|
-
break;
|
|
1891
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2167
1892
|
case "ResourceNotFoundException":
|
|
2168
1893
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2169
|
-
|
|
2170
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2171
|
-
name: errorCode,
|
|
2172
|
-
$metadata: deserializeMetadata(output),
|
|
2173
|
-
};
|
|
2174
|
-
break;
|
|
1894
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2175
1895
|
default:
|
|
2176
1896
|
const parsedBody = parsedOutput.body;
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
...parsedBody,
|
|
2180
|
-
name: `${errorCode}`,
|
|
2181
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1897
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
1898
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2182
1899
|
$fault: "client",
|
|
2183
1900
|
$metadata: deserializeMetadata(output),
|
|
2184
|
-
};
|
|
1901
|
+
});
|
|
1902
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2185
1903
|
}
|
|
2186
|
-
const message = response.message || response.Message || errorCode;
|
|
2187
|
-
response.message = message;
|
|
2188
|
-
delete response.Message;
|
|
2189
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2190
1904
|
};
|
|
2191
1905
|
const deserializeAws_restJson1GetDeploymentCommand = async (output, context) => {
|
|
2192
1906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2282,43 +1996,22 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
2282
1996
|
switch (errorCode) {
|
|
2283
1997
|
case "BadRequestException":
|
|
2284
1998
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2285
|
-
|
|
2286
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2287
|
-
name: errorCode,
|
|
2288
|
-
$metadata: deserializeMetadata(output),
|
|
2289
|
-
};
|
|
2290
|
-
break;
|
|
1999
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2291
2000
|
case "InternalServerException":
|
|
2292
2001
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2293
|
-
|
|
2294
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2295
|
-
name: errorCode,
|
|
2296
|
-
$metadata: deserializeMetadata(output),
|
|
2297
|
-
};
|
|
2298
|
-
break;
|
|
2002
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2299
2003
|
case "ResourceNotFoundException":
|
|
2300
2004
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2301
|
-
|
|
2302
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2303
|
-
name: errorCode,
|
|
2304
|
-
$metadata: deserializeMetadata(output),
|
|
2305
|
-
};
|
|
2306
|
-
break;
|
|
2005
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2307
2006
|
default:
|
|
2308
2007
|
const parsedBody = parsedOutput.body;
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
...parsedBody,
|
|
2312
|
-
name: `${errorCode}`,
|
|
2313
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2008
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2009
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2314
2010
|
$fault: "client",
|
|
2315
2011
|
$metadata: deserializeMetadata(output),
|
|
2316
|
-
};
|
|
2012
|
+
});
|
|
2013
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2317
2014
|
}
|
|
2318
|
-
const message = response.message || response.Message || errorCode;
|
|
2319
|
-
response.message = message;
|
|
2320
|
-
delete response.Message;
|
|
2321
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2322
2015
|
};
|
|
2323
2016
|
const deserializeAws_restJson1GetDeploymentStrategyCommand = async (output, context) => {
|
|
2324
2017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2374,43 +2067,22 @@ const deserializeAws_restJson1GetDeploymentStrategyCommandError = async (output,
|
|
|
2374
2067
|
switch (errorCode) {
|
|
2375
2068
|
case "BadRequestException":
|
|
2376
2069
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2377
|
-
|
|
2378
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2379
|
-
name: errorCode,
|
|
2380
|
-
$metadata: deserializeMetadata(output),
|
|
2381
|
-
};
|
|
2382
|
-
break;
|
|
2070
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2383
2071
|
case "InternalServerException":
|
|
2384
2072
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2385
|
-
|
|
2386
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2387
|
-
name: errorCode,
|
|
2388
|
-
$metadata: deserializeMetadata(output),
|
|
2389
|
-
};
|
|
2390
|
-
break;
|
|
2073
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2391
2074
|
case "ResourceNotFoundException":
|
|
2392
2075
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2393
|
-
|
|
2394
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2395
|
-
name: errorCode,
|
|
2396
|
-
$metadata: deserializeMetadata(output),
|
|
2397
|
-
};
|
|
2398
|
-
break;
|
|
2076
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2399
2077
|
default:
|
|
2400
2078
|
const parsedBody = parsedOutput.body;
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
...parsedBody,
|
|
2404
|
-
name: `${errorCode}`,
|
|
2405
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2079
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2080
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2406
2081
|
$fault: "client",
|
|
2407
2082
|
$metadata: deserializeMetadata(output),
|
|
2408
|
-
};
|
|
2083
|
+
});
|
|
2084
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2409
2085
|
}
|
|
2410
|
-
const message = response.message || response.Message || errorCode;
|
|
2411
|
-
response.message = message;
|
|
2412
|
-
delete response.Message;
|
|
2413
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2414
2086
|
};
|
|
2415
2087
|
const deserializeAws_restJson1GetEnvironmentCommand = async (output, context) => {
|
|
2416
2088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2458,43 +2130,22 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
2458
2130
|
switch (errorCode) {
|
|
2459
2131
|
case "BadRequestException":
|
|
2460
2132
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2461
|
-
|
|
2462
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2463
|
-
name: errorCode,
|
|
2464
|
-
$metadata: deserializeMetadata(output),
|
|
2465
|
-
};
|
|
2466
|
-
break;
|
|
2133
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2467
2134
|
case "InternalServerException":
|
|
2468
2135
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2469
|
-
|
|
2470
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2471
|
-
name: errorCode,
|
|
2472
|
-
$metadata: deserializeMetadata(output),
|
|
2473
|
-
};
|
|
2474
|
-
break;
|
|
2136
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2475
2137
|
case "ResourceNotFoundException":
|
|
2476
2138
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2477
|
-
|
|
2478
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2479
|
-
name: errorCode,
|
|
2480
|
-
$metadata: deserializeMetadata(output),
|
|
2481
|
-
};
|
|
2482
|
-
break;
|
|
2139
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2483
2140
|
default:
|
|
2484
2141
|
const parsedBody = parsedOutput.body;
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
...parsedBody,
|
|
2488
|
-
name: `${errorCode}`,
|
|
2489
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2142
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2143
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2490
2144
|
$fault: "client",
|
|
2491
2145
|
$metadata: deserializeMetadata(output),
|
|
2492
|
-
};
|
|
2146
|
+
});
|
|
2147
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2493
2148
|
}
|
|
2494
|
-
const message = response.message || response.Message || errorCode;
|
|
2495
|
-
response.message = message;
|
|
2496
|
-
delete response.Message;
|
|
2497
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2498
2149
|
};
|
|
2499
2150
|
const deserializeAws_restJson1GetHostedConfigurationVersionCommand = async (output, context) => {
|
|
2500
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2540,43 +2191,22 @@ const deserializeAws_restJson1GetHostedConfigurationVersionCommandError = async
|
|
|
2540
2191
|
switch (errorCode) {
|
|
2541
2192
|
case "BadRequestException":
|
|
2542
2193
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2543
|
-
|
|
2544
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2545
|
-
name: errorCode,
|
|
2546
|
-
$metadata: deserializeMetadata(output),
|
|
2547
|
-
};
|
|
2548
|
-
break;
|
|
2194
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2549
2195
|
case "InternalServerException":
|
|
2550
2196
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2551
|
-
|
|
2552
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2553
|
-
name: errorCode,
|
|
2554
|
-
$metadata: deserializeMetadata(output),
|
|
2555
|
-
};
|
|
2556
|
-
break;
|
|
2197
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2557
2198
|
case "ResourceNotFoundException":
|
|
2558
2199
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2559
|
-
|
|
2560
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2561
|
-
name: errorCode,
|
|
2562
|
-
$metadata: deserializeMetadata(output),
|
|
2563
|
-
};
|
|
2564
|
-
break;
|
|
2200
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2565
2201
|
default:
|
|
2566
2202
|
const parsedBody = parsedOutput.body;
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
...parsedBody,
|
|
2570
|
-
name: `${errorCode}`,
|
|
2571
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2203
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2204
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2572
2205
|
$fault: "client",
|
|
2573
2206
|
$metadata: deserializeMetadata(output),
|
|
2574
|
-
};
|
|
2207
|
+
});
|
|
2208
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2575
2209
|
}
|
|
2576
|
-
const message = response.message || response.Message || errorCode;
|
|
2577
|
-
response.message = message;
|
|
2578
|
-
delete response.Message;
|
|
2579
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2580
2210
|
};
|
|
2581
2211
|
const deserializeAws_restJson1ListApplicationsCommand = async (output, context) => {
|
|
2582
2212
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2608,35 +2238,19 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2608
2238
|
switch (errorCode) {
|
|
2609
2239
|
case "BadRequestException":
|
|
2610
2240
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2611
|
-
|
|
2612
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2613
|
-
name: errorCode,
|
|
2614
|
-
$metadata: deserializeMetadata(output),
|
|
2615
|
-
};
|
|
2616
|
-
break;
|
|
2241
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2617
2242
|
case "InternalServerException":
|
|
2618
2243
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2619
|
-
|
|
2620
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2621
|
-
name: errorCode,
|
|
2622
|
-
$metadata: deserializeMetadata(output),
|
|
2623
|
-
};
|
|
2624
|
-
break;
|
|
2244
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2625
2245
|
default:
|
|
2626
2246
|
const parsedBody = parsedOutput.body;
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
...parsedBody,
|
|
2630
|
-
name: `${errorCode}`,
|
|
2631
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2247
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2248
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2632
2249
|
$fault: "client",
|
|
2633
2250
|
$metadata: deserializeMetadata(output),
|
|
2634
|
-
};
|
|
2251
|
+
});
|
|
2252
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2635
2253
|
}
|
|
2636
|
-
const message = response.message || response.Message || errorCode;
|
|
2637
|
-
response.message = message;
|
|
2638
|
-
delete response.Message;
|
|
2639
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2640
2254
|
};
|
|
2641
2255
|
const deserializeAws_restJson1ListConfigurationProfilesCommand = async (output, context) => {
|
|
2642
2256
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2668,43 +2282,22 @@ const deserializeAws_restJson1ListConfigurationProfilesCommandError = async (out
|
|
|
2668
2282
|
switch (errorCode) {
|
|
2669
2283
|
case "BadRequestException":
|
|
2670
2284
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2671
|
-
|
|
2672
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2673
|
-
name: errorCode,
|
|
2674
|
-
$metadata: deserializeMetadata(output),
|
|
2675
|
-
};
|
|
2676
|
-
break;
|
|
2285
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2677
2286
|
case "InternalServerException":
|
|
2678
2287
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2679
|
-
|
|
2680
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2681
|
-
name: errorCode,
|
|
2682
|
-
$metadata: deserializeMetadata(output),
|
|
2683
|
-
};
|
|
2684
|
-
break;
|
|
2288
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2685
2289
|
case "ResourceNotFoundException":
|
|
2686
2290
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2687
|
-
|
|
2688
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2689
|
-
name: errorCode,
|
|
2690
|
-
$metadata: deserializeMetadata(output),
|
|
2691
|
-
};
|
|
2692
|
-
break;
|
|
2291
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2693
2292
|
default:
|
|
2694
2293
|
const parsedBody = parsedOutput.body;
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
...parsedBody,
|
|
2698
|
-
name: `${errorCode}`,
|
|
2699
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2294
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2295
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2700
2296
|
$fault: "client",
|
|
2701
2297
|
$metadata: deserializeMetadata(output),
|
|
2702
|
-
};
|
|
2298
|
+
});
|
|
2299
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2703
2300
|
}
|
|
2704
|
-
const message = response.message || response.Message || errorCode;
|
|
2705
|
-
response.message = message;
|
|
2706
|
-
delete response.Message;
|
|
2707
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2708
2301
|
};
|
|
2709
2302
|
const deserializeAws_restJson1ListDeploymentsCommand = async (output, context) => {
|
|
2710
2303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2736,43 +2329,22 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2736
2329
|
switch (errorCode) {
|
|
2737
2330
|
case "BadRequestException":
|
|
2738
2331
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2739
|
-
|
|
2740
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2741
|
-
name: errorCode,
|
|
2742
|
-
$metadata: deserializeMetadata(output),
|
|
2743
|
-
};
|
|
2744
|
-
break;
|
|
2332
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2745
2333
|
case "InternalServerException":
|
|
2746
2334
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2747
|
-
|
|
2748
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2749
|
-
name: errorCode,
|
|
2750
|
-
$metadata: deserializeMetadata(output),
|
|
2751
|
-
};
|
|
2752
|
-
break;
|
|
2335
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2753
2336
|
case "ResourceNotFoundException":
|
|
2754
2337
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2755
|
-
|
|
2756
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2757
|
-
name: errorCode,
|
|
2758
|
-
$metadata: deserializeMetadata(output),
|
|
2759
|
-
};
|
|
2760
|
-
break;
|
|
2338
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2761
2339
|
default:
|
|
2762
2340
|
const parsedBody = parsedOutput.body;
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
...parsedBody,
|
|
2766
|
-
name: `${errorCode}`,
|
|
2767
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2341
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2342
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2768
2343
|
$fault: "client",
|
|
2769
2344
|
$metadata: deserializeMetadata(output),
|
|
2770
|
-
};
|
|
2345
|
+
});
|
|
2346
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2771
2347
|
}
|
|
2772
|
-
const message = response.message || response.Message || errorCode;
|
|
2773
|
-
response.message = message;
|
|
2774
|
-
delete response.Message;
|
|
2775
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2776
2348
|
};
|
|
2777
2349
|
const deserializeAws_restJson1ListDeploymentStrategiesCommand = async (output, context) => {
|
|
2778
2350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2804,35 +2376,19 @@ const deserializeAws_restJson1ListDeploymentStrategiesCommandError = async (outp
|
|
|
2804
2376
|
switch (errorCode) {
|
|
2805
2377
|
case "BadRequestException":
|
|
2806
2378
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2807
|
-
|
|
2808
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2809
|
-
name: errorCode,
|
|
2810
|
-
$metadata: deserializeMetadata(output),
|
|
2811
|
-
};
|
|
2812
|
-
break;
|
|
2379
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2813
2380
|
case "InternalServerException":
|
|
2814
2381
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2815
|
-
|
|
2816
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2817
|
-
name: errorCode,
|
|
2818
|
-
$metadata: deserializeMetadata(output),
|
|
2819
|
-
};
|
|
2820
|
-
break;
|
|
2382
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2821
2383
|
default:
|
|
2822
2384
|
const parsedBody = parsedOutput.body;
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
...parsedBody,
|
|
2826
|
-
name: `${errorCode}`,
|
|
2827
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2385
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2386
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2828
2387
|
$fault: "client",
|
|
2829
2388
|
$metadata: deserializeMetadata(output),
|
|
2830
|
-
};
|
|
2389
|
+
});
|
|
2390
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2831
2391
|
}
|
|
2832
|
-
const message = response.message || response.Message || errorCode;
|
|
2833
|
-
response.message = message;
|
|
2834
|
-
delete response.Message;
|
|
2835
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2836
2392
|
};
|
|
2837
2393
|
const deserializeAws_restJson1ListEnvironmentsCommand = async (output, context) => {
|
|
2838
2394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2864,43 +2420,22 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2864
2420
|
switch (errorCode) {
|
|
2865
2421
|
case "BadRequestException":
|
|
2866
2422
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2867
|
-
|
|
2868
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2869
|
-
name: errorCode,
|
|
2870
|
-
$metadata: deserializeMetadata(output),
|
|
2871
|
-
};
|
|
2872
|
-
break;
|
|
2423
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2873
2424
|
case "InternalServerException":
|
|
2874
2425
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2875
|
-
|
|
2876
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2877
|
-
name: errorCode,
|
|
2878
|
-
$metadata: deserializeMetadata(output),
|
|
2879
|
-
};
|
|
2880
|
-
break;
|
|
2426
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2881
2427
|
case "ResourceNotFoundException":
|
|
2882
2428
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2883
|
-
|
|
2884
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2885
|
-
name: errorCode,
|
|
2886
|
-
$metadata: deserializeMetadata(output),
|
|
2887
|
-
};
|
|
2888
|
-
break;
|
|
2429
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2889
2430
|
default:
|
|
2890
2431
|
const parsedBody = parsedOutput.body;
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
...parsedBody,
|
|
2894
|
-
name: `${errorCode}`,
|
|
2895
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2432
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2433
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2896
2434
|
$fault: "client",
|
|
2897
2435
|
$metadata: deserializeMetadata(output),
|
|
2898
|
-
};
|
|
2436
|
+
});
|
|
2437
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2899
2438
|
}
|
|
2900
|
-
const message = response.message || response.Message || errorCode;
|
|
2901
|
-
response.message = message;
|
|
2902
|
-
delete response.Message;
|
|
2903
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2904
2439
|
};
|
|
2905
2440
|
const deserializeAws_restJson1ListHostedConfigurationVersionsCommand = async (output, context) => {
|
|
2906
2441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2932,43 +2467,22 @@ const deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = asyn
|
|
|
2932
2467
|
switch (errorCode) {
|
|
2933
2468
|
case "BadRequestException":
|
|
2934
2469
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2935
|
-
|
|
2936
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
2937
|
-
name: errorCode,
|
|
2938
|
-
$metadata: deserializeMetadata(output),
|
|
2939
|
-
};
|
|
2940
|
-
break;
|
|
2470
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
2941
2471
|
case "InternalServerException":
|
|
2942
2472
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2943
|
-
|
|
2944
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2945
|
-
name: errorCode,
|
|
2946
|
-
$metadata: deserializeMetadata(output),
|
|
2947
|
-
};
|
|
2948
|
-
break;
|
|
2473
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2949
2474
|
case "ResourceNotFoundException":
|
|
2950
2475
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2951
|
-
|
|
2952
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2953
|
-
name: errorCode,
|
|
2954
|
-
$metadata: deserializeMetadata(output),
|
|
2955
|
-
};
|
|
2956
|
-
break;
|
|
2476
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2957
2477
|
default:
|
|
2958
2478
|
const parsedBody = parsedOutput.body;
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
...parsedBody,
|
|
2962
|
-
name: `${errorCode}`,
|
|
2963
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2479
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2480
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2964
2481
|
$fault: "client",
|
|
2965
2482
|
$metadata: deserializeMetadata(output),
|
|
2966
|
-
};
|
|
2483
|
+
});
|
|
2484
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2967
2485
|
}
|
|
2968
|
-
const message = response.message || response.Message || errorCode;
|
|
2969
|
-
response.message = message;
|
|
2970
|
-
delete response.Message;
|
|
2971
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2972
2486
|
};
|
|
2973
2487
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2974
2488
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2996,43 +2510,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2996
2510
|
switch (errorCode) {
|
|
2997
2511
|
case "BadRequestException":
|
|
2998
2512
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2999
|
-
|
|
3000
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3001
|
-
name: errorCode,
|
|
3002
|
-
$metadata: deserializeMetadata(output),
|
|
3003
|
-
};
|
|
3004
|
-
break;
|
|
2513
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3005
2514
|
case "InternalServerException":
|
|
3006
2515
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3007
|
-
|
|
3008
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3009
|
-
name: errorCode,
|
|
3010
|
-
$metadata: deserializeMetadata(output),
|
|
3011
|
-
};
|
|
3012
|
-
break;
|
|
2516
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3013
2517
|
case "ResourceNotFoundException":
|
|
3014
2518
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3015
|
-
|
|
3016
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3017
|
-
name: errorCode,
|
|
3018
|
-
$metadata: deserializeMetadata(output),
|
|
3019
|
-
};
|
|
3020
|
-
break;
|
|
2519
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3021
2520
|
default:
|
|
3022
2521
|
const parsedBody = parsedOutput.body;
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
...parsedBody,
|
|
3026
|
-
name: `${errorCode}`,
|
|
3027
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2522
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2523
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3028
2524
|
$fault: "client",
|
|
3029
2525
|
$metadata: deserializeMetadata(output),
|
|
3030
|
-
};
|
|
2526
|
+
});
|
|
2527
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3031
2528
|
}
|
|
3032
|
-
const message = response.message || response.Message || errorCode;
|
|
3033
|
-
response.message = message;
|
|
3034
|
-
delete response.Message;
|
|
3035
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3036
2529
|
};
|
|
3037
2530
|
const deserializeAws_restJson1StartDeploymentCommand = async (output, context) => {
|
|
3038
2531
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -3128,51 +2621,25 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
3128
2621
|
switch (errorCode) {
|
|
3129
2622
|
case "BadRequestException":
|
|
3130
2623
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3131
|
-
|
|
3132
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3133
|
-
name: errorCode,
|
|
3134
|
-
$metadata: deserializeMetadata(output),
|
|
3135
|
-
};
|
|
3136
|
-
break;
|
|
2624
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3137
2625
|
case "ConflictException":
|
|
3138
2626
|
case "com.amazonaws.appconfig#ConflictException":
|
|
3139
|
-
|
|
3140
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3141
|
-
name: errorCode,
|
|
3142
|
-
$metadata: deserializeMetadata(output),
|
|
3143
|
-
};
|
|
3144
|
-
break;
|
|
2627
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3145
2628
|
case "InternalServerException":
|
|
3146
2629
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3147
|
-
|
|
3148
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3149
|
-
name: errorCode,
|
|
3150
|
-
$metadata: deserializeMetadata(output),
|
|
3151
|
-
};
|
|
3152
|
-
break;
|
|
2630
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3153
2631
|
case "ResourceNotFoundException":
|
|
3154
2632
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3155
|
-
|
|
3156
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3157
|
-
name: errorCode,
|
|
3158
|
-
$metadata: deserializeMetadata(output),
|
|
3159
|
-
};
|
|
3160
|
-
break;
|
|
2633
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3161
2634
|
default:
|
|
3162
2635
|
const parsedBody = parsedOutput.body;
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
...parsedBody,
|
|
3166
|
-
name: `${errorCode}`,
|
|
3167
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2636
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2637
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3168
2638
|
$fault: "client",
|
|
3169
2639
|
$metadata: deserializeMetadata(output),
|
|
3170
|
-
};
|
|
2640
|
+
});
|
|
2641
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3171
2642
|
}
|
|
3172
|
-
const message = response.message || response.Message || errorCode;
|
|
3173
|
-
response.message = message;
|
|
3174
|
-
delete response.Message;
|
|
3175
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3176
2643
|
};
|
|
3177
2644
|
const deserializeAws_restJson1StopDeploymentCommand = async (output, context) => {
|
|
3178
2645
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -3268,43 +2735,22 @@ const deserializeAws_restJson1StopDeploymentCommandError = async (output, contex
|
|
|
3268
2735
|
switch (errorCode) {
|
|
3269
2736
|
case "BadRequestException":
|
|
3270
2737
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3271
|
-
|
|
3272
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3273
|
-
name: errorCode,
|
|
3274
|
-
$metadata: deserializeMetadata(output),
|
|
3275
|
-
};
|
|
3276
|
-
break;
|
|
2738
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3277
2739
|
case "InternalServerException":
|
|
3278
2740
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3279
|
-
|
|
3280
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3281
|
-
name: errorCode,
|
|
3282
|
-
$metadata: deserializeMetadata(output),
|
|
3283
|
-
};
|
|
3284
|
-
break;
|
|
2741
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3285
2742
|
case "ResourceNotFoundException":
|
|
3286
2743
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3287
|
-
|
|
3288
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3289
|
-
name: errorCode,
|
|
3290
|
-
$metadata: deserializeMetadata(output),
|
|
3291
|
-
};
|
|
3292
|
-
break;
|
|
2744
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3293
2745
|
default:
|
|
3294
2746
|
const parsedBody = parsedOutput.body;
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
...parsedBody,
|
|
3298
|
-
name: `${errorCode}`,
|
|
3299
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2747
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2748
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3300
2749
|
$fault: "client",
|
|
3301
2750
|
$metadata: deserializeMetadata(output),
|
|
3302
|
-
};
|
|
2751
|
+
});
|
|
2752
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3303
2753
|
}
|
|
3304
|
-
const message = response.message || response.Message || errorCode;
|
|
3305
|
-
response.message = message;
|
|
3306
|
-
delete response.Message;
|
|
3307
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3308
2754
|
};
|
|
3309
2755
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
3310
2756
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -3328,43 +2774,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
3328
2774
|
switch (errorCode) {
|
|
3329
2775
|
case "BadRequestException":
|
|
3330
2776
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3331
|
-
|
|
3332
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3333
|
-
name: errorCode,
|
|
3334
|
-
$metadata: deserializeMetadata(output),
|
|
3335
|
-
};
|
|
3336
|
-
break;
|
|
2777
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3337
2778
|
case "InternalServerException":
|
|
3338
2779
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3339
|
-
|
|
3340
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3341
|
-
name: errorCode,
|
|
3342
|
-
$metadata: deserializeMetadata(output),
|
|
3343
|
-
};
|
|
3344
|
-
break;
|
|
2780
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3345
2781
|
case "ResourceNotFoundException":
|
|
3346
2782
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3347
|
-
|
|
3348
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3349
|
-
name: errorCode,
|
|
3350
|
-
$metadata: deserializeMetadata(output),
|
|
3351
|
-
};
|
|
3352
|
-
break;
|
|
2783
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3353
2784
|
default:
|
|
3354
2785
|
const parsedBody = parsedOutput.body;
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
...parsedBody,
|
|
3358
|
-
name: `${errorCode}`,
|
|
3359
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2786
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2787
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3360
2788
|
$fault: "client",
|
|
3361
2789
|
$metadata: deserializeMetadata(output),
|
|
3362
|
-
};
|
|
2790
|
+
});
|
|
2791
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3363
2792
|
}
|
|
3364
|
-
const message = response.message || response.Message || errorCode;
|
|
3365
|
-
response.message = message;
|
|
3366
|
-
delete response.Message;
|
|
3367
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3368
2793
|
};
|
|
3369
2794
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
3370
2795
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -3388,43 +2813,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
3388
2813
|
switch (errorCode) {
|
|
3389
2814
|
case "BadRequestException":
|
|
3390
2815
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3391
|
-
|
|
3392
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3393
|
-
name: errorCode,
|
|
3394
|
-
$metadata: deserializeMetadata(output),
|
|
3395
|
-
};
|
|
3396
|
-
break;
|
|
2816
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3397
2817
|
case "InternalServerException":
|
|
3398
2818
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3399
|
-
|
|
3400
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3401
|
-
name: errorCode,
|
|
3402
|
-
$metadata: deserializeMetadata(output),
|
|
3403
|
-
};
|
|
3404
|
-
break;
|
|
2819
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3405
2820
|
case "ResourceNotFoundException":
|
|
3406
2821
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3407
|
-
|
|
3408
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3409
|
-
name: errorCode,
|
|
3410
|
-
$metadata: deserializeMetadata(output),
|
|
3411
|
-
};
|
|
3412
|
-
break;
|
|
2822
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3413
2823
|
default:
|
|
3414
2824
|
const parsedBody = parsedOutput.body;
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
...parsedBody,
|
|
3418
|
-
name: `${errorCode}`,
|
|
3419
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2825
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2826
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3420
2827
|
$fault: "client",
|
|
3421
2828
|
$metadata: deserializeMetadata(output),
|
|
3422
|
-
};
|
|
2829
|
+
});
|
|
2830
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3423
2831
|
}
|
|
3424
|
-
const message = response.message || response.Message || errorCode;
|
|
3425
|
-
response.message = message;
|
|
3426
|
-
delete response.Message;
|
|
3427
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3428
2832
|
};
|
|
3429
2833
|
const deserializeAws_restJson1UpdateApplicationCommand = async (output, context) => {
|
|
3430
2834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3460,43 +2864,22 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
3460
2864
|
switch (errorCode) {
|
|
3461
2865
|
case "BadRequestException":
|
|
3462
2866
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3463
|
-
|
|
3464
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3465
|
-
name: errorCode,
|
|
3466
|
-
$metadata: deserializeMetadata(output),
|
|
3467
|
-
};
|
|
3468
|
-
break;
|
|
2867
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3469
2868
|
case "InternalServerException":
|
|
3470
2869
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3471
|
-
|
|
3472
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3473
|
-
name: errorCode,
|
|
3474
|
-
$metadata: deserializeMetadata(output),
|
|
3475
|
-
};
|
|
3476
|
-
break;
|
|
2870
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3477
2871
|
case "ResourceNotFoundException":
|
|
3478
2872
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3479
|
-
|
|
3480
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3481
|
-
name: errorCode,
|
|
3482
|
-
$metadata: deserializeMetadata(output),
|
|
3483
|
-
};
|
|
3484
|
-
break;
|
|
2873
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3485
2874
|
default:
|
|
3486
2875
|
const parsedBody = parsedOutput.body;
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
...parsedBody,
|
|
3490
|
-
name: `${errorCode}`,
|
|
3491
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2876
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2877
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3492
2878
|
$fault: "client",
|
|
3493
2879
|
$metadata: deserializeMetadata(output),
|
|
3494
|
-
};
|
|
2880
|
+
});
|
|
2881
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3495
2882
|
}
|
|
3496
|
-
const message = response.message || response.Message || errorCode;
|
|
3497
|
-
response.message = message;
|
|
3498
|
-
delete response.Message;
|
|
3499
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3500
2883
|
};
|
|
3501
2884
|
const deserializeAws_restJson1UpdateConfigurationProfileCommand = async (output, context) => {
|
|
3502
2885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3552,43 +2935,22 @@ const deserializeAws_restJson1UpdateConfigurationProfileCommandError = async (ou
|
|
|
3552
2935
|
switch (errorCode) {
|
|
3553
2936
|
case "BadRequestException":
|
|
3554
2937
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3555
|
-
|
|
3556
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3557
|
-
name: errorCode,
|
|
3558
|
-
$metadata: deserializeMetadata(output),
|
|
3559
|
-
};
|
|
3560
|
-
break;
|
|
2938
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3561
2939
|
case "InternalServerException":
|
|
3562
2940
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3563
|
-
|
|
3564
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3565
|
-
name: errorCode,
|
|
3566
|
-
$metadata: deserializeMetadata(output),
|
|
3567
|
-
};
|
|
3568
|
-
break;
|
|
2941
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3569
2942
|
case "ResourceNotFoundException":
|
|
3570
2943
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3571
|
-
|
|
3572
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3573
|
-
name: errorCode,
|
|
3574
|
-
$metadata: deserializeMetadata(output),
|
|
3575
|
-
};
|
|
3576
|
-
break;
|
|
2944
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3577
2945
|
default:
|
|
3578
2946
|
const parsedBody = parsedOutput.body;
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
...parsedBody,
|
|
3582
|
-
name: `${errorCode}`,
|
|
3583
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2947
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
2948
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3584
2949
|
$fault: "client",
|
|
3585
2950
|
$metadata: deserializeMetadata(output),
|
|
3586
|
-
};
|
|
2951
|
+
});
|
|
2952
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3587
2953
|
}
|
|
3588
|
-
const message = response.message || response.Message || errorCode;
|
|
3589
|
-
response.message = message;
|
|
3590
|
-
delete response.Message;
|
|
3591
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3592
2954
|
};
|
|
3593
2955
|
const deserializeAws_restJson1UpdateDeploymentStrategyCommand = async (output, context) => {
|
|
3594
2956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3644,43 +3006,22 @@ const deserializeAws_restJson1UpdateDeploymentStrategyCommandError = async (outp
|
|
|
3644
3006
|
switch (errorCode) {
|
|
3645
3007
|
case "BadRequestException":
|
|
3646
3008
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3647
|
-
|
|
3648
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3649
|
-
name: errorCode,
|
|
3650
|
-
$metadata: deserializeMetadata(output),
|
|
3651
|
-
};
|
|
3652
|
-
break;
|
|
3009
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3653
3010
|
case "InternalServerException":
|
|
3654
3011
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3655
|
-
|
|
3656
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3657
|
-
name: errorCode,
|
|
3658
|
-
$metadata: deserializeMetadata(output),
|
|
3659
|
-
};
|
|
3660
|
-
break;
|
|
3012
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3661
3013
|
case "ResourceNotFoundException":
|
|
3662
3014
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3663
|
-
|
|
3664
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3665
|
-
name: errorCode,
|
|
3666
|
-
$metadata: deserializeMetadata(output),
|
|
3667
|
-
};
|
|
3668
|
-
break;
|
|
3015
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3669
3016
|
default:
|
|
3670
3017
|
const parsedBody = parsedOutput.body;
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
...parsedBody,
|
|
3674
|
-
name: `${errorCode}`,
|
|
3675
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3018
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
3019
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3676
3020
|
$fault: "client",
|
|
3677
3021
|
$metadata: deserializeMetadata(output),
|
|
3678
|
-
};
|
|
3022
|
+
});
|
|
3023
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3679
3024
|
}
|
|
3680
|
-
const message = response.message || response.Message || errorCode;
|
|
3681
|
-
response.message = message;
|
|
3682
|
-
delete response.Message;
|
|
3683
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3684
3025
|
};
|
|
3685
3026
|
const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, context) => {
|
|
3686
3027
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3728,43 +3069,22 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
3728
3069
|
switch (errorCode) {
|
|
3729
3070
|
case "BadRequestException":
|
|
3730
3071
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3731
|
-
|
|
3732
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3733
|
-
name: errorCode,
|
|
3734
|
-
$metadata: deserializeMetadata(output),
|
|
3735
|
-
};
|
|
3736
|
-
break;
|
|
3072
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3737
3073
|
case "InternalServerException":
|
|
3738
3074
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3739
|
-
|
|
3740
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3741
|
-
name: errorCode,
|
|
3742
|
-
$metadata: deserializeMetadata(output),
|
|
3743
|
-
};
|
|
3744
|
-
break;
|
|
3075
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3745
3076
|
case "ResourceNotFoundException":
|
|
3746
3077
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3747
|
-
|
|
3748
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3749
|
-
name: errorCode,
|
|
3750
|
-
$metadata: deserializeMetadata(output),
|
|
3751
|
-
};
|
|
3752
|
-
break;
|
|
3078
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3753
3079
|
default:
|
|
3754
3080
|
const parsedBody = parsedOutput.body;
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
...parsedBody,
|
|
3758
|
-
name: `${errorCode}`,
|
|
3759
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3081
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
3082
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3760
3083
|
$fault: "client",
|
|
3761
3084
|
$metadata: deserializeMetadata(output),
|
|
3762
|
-
};
|
|
3085
|
+
});
|
|
3086
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3763
3087
|
}
|
|
3764
|
-
const message = response.message || response.Message || errorCode;
|
|
3765
|
-
response.message = message;
|
|
3766
|
-
delete response.Message;
|
|
3767
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3768
3088
|
};
|
|
3769
3089
|
const deserializeAws_restJson1ValidateConfigurationCommand = async (output, context) => {
|
|
3770
3090
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -3788,53 +3108,25 @@ const deserializeAws_restJson1ValidateConfigurationCommandError = async (output,
|
|
|
3788
3108
|
switch (errorCode) {
|
|
3789
3109
|
case "BadRequestException":
|
|
3790
3110
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3791
|
-
|
|
3792
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3793
|
-
name: errorCode,
|
|
3794
|
-
$metadata: deserializeMetadata(output),
|
|
3795
|
-
};
|
|
3796
|
-
break;
|
|
3111
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
3797
3112
|
case "InternalServerException":
|
|
3798
3113
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3799
|
-
|
|
3800
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3801
|
-
name: errorCode,
|
|
3802
|
-
$metadata: deserializeMetadata(output),
|
|
3803
|
-
};
|
|
3804
|
-
break;
|
|
3114
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3805
3115
|
case "ResourceNotFoundException":
|
|
3806
3116
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3807
|
-
|
|
3808
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3809
|
-
name: errorCode,
|
|
3810
|
-
$metadata: deserializeMetadata(output),
|
|
3811
|
-
};
|
|
3812
|
-
break;
|
|
3117
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3813
3118
|
default:
|
|
3814
3119
|
const parsedBody = parsedOutput.body;
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
...parsedBody,
|
|
3818
|
-
name: `${errorCode}`,
|
|
3819
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3120
|
+
response = new AppConfigServiceException_1.AppConfigServiceException({
|
|
3121
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3820
3122
|
$fault: "client",
|
|
3821
3123
|
$metadata: deserializeMetadata(output),
|
|
3822
|
-
};
|
|
3124
|
+
});
|
|
3125
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3823
3126
|
}
|
|
3824
|
-
const message = response.message || response.Message || errorCode;
|
|
3825
|
-
response.message = message;
|
|
3826
|
-
delete response.Message;
|
|
3827
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3828
3127
|
};
|
|
3829
3128
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
3830
|
-
const contents = {
|
|
3831
|
-
name: "BadRequestException",
|
|
3832
|
-
$fault: "client",
|
|
3833
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3834
|
-
Details: undefined,
|
|
3835
|
-
Message: undefined,
|
|
3836
|
-
Reason: undefined,
|
|
3837
|
-
};
|
|
3129
|
+
const contents = {};
|
|
3838
3130
|
const data = parsedOutput.body;
|
|
3839
3131
|
if (data.Details !== undefined && data.Details !== null) {
|
|
3840
3132
|
contents.Details = deserializeAws_restJson1BadRequestDetails(smithy_client_1.expectUnion(data.Details), context);
|
|
@@ -3845,44 +3137,38 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3845
3137
|
if (data.Reason !== undefined && data.Reason !== null) {
|
|
3846
3138
|
contents.Reason = smithy_client_1.expectString(data.Reason);
|
|
3847
3139
|
}
|
|
3848
|
-
|
|
3140
|
+
const exception = new models_0_1.BadRequestException({
|
|
3141
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3142
|
+
...contents,
|
|
3143
|
+
});
|
|
3144
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3849
3145
|
};
|
|
3850
3146
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3851
|
-
const contents = {
|
|
3852
|
-
name: "ConflictException",
|
|
3853
|
-
$fault: "client",
|
|
3854
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3855
|
-
Message: undefined,
|
|
3856
|
-
};
|
|
3147
|
+
const contents = {};
|
|
3857
3148
|
const data = parsedOutput.body;
|
|
3858
3149
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3859
3150
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3860
3151
|
}
|
|
3861
|
-
|
|
3152
|
+
const exception = new models_0_1.ConflictException({
|
|
3153
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3154
|
+
...contents,
|
|
3155
|
+
});
|
|
3156
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3862
3157
|
};
|
|
3863
3158
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3864
|
-
const contents = {
|
|
3865
|
-
name: "InternalServerException",
|
|
3866
|
-
$fault: "server",
|
|
3867
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3868
|
-
Message: undefined,
|
|
3869
|
-
};
|
|
3159
|
+
const contents = {};
|
|
3870
3160
|
const data = parsedOutput.body;
|
|
3871
3161
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3872
3162
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3873
3163
|
}
|
|
3874
|
-
|
|
3164
|
+
const exception = new models_0_1.InternalServerException({
|
|
3165
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3166
|
+
...contents,
|
|
3167
|
+
});
|
|
3168
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3875
3169
|
};
|
|
3876
3170
|
const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (parsedOutput, context) => {
|
|
3877
|
-
const contents = {
|
|
3878
|
-
name: "PayloadTooLargeException",
|
|
3879
|
-
$fault: "client",
|
|
3880
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3881
|
-
Limit: undefined,
|
|
3882
|
-
Measure: undefined,
|
|
3883
|
-
Message: undefined,
|
|
3884
|
-
Size: undefined,
|
|
3885
|
-
};
|
|
3171
|
+
const contents = {};
|
|
3886
3172
|
const data = parsedOutput.body;
|
|
3887
3173
|
if (data.Limit !== undefined && data.Limit !== null) {
|
|
3888
3174
|
contents.Limit = smithy_client_1.limitedParseFloat32(data.Limit);
|
|
@@ -3896,16 +3182,14 @@ const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (parsedOu
|
|
|
3896
3182
|
if (data.Size !== undefined && data.Size !== null) {
|
|
3897
3183
|
contents.Size = smithy_client_1.limitedParseFloat32(data.Size);
|
|
3898
3184
|
}
|
|
3899
|
-
|
|
3185
|
+
const exception = new models_0_1.PayloadTooLargeException({
|
|
3186
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3187
|
+
...contents,
|
|
3188
|
+
});
|
|
3189
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3900
3190
|
};
|
|
3901
3191
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3902
|
-
const contents = {
|
|
3903
|
-
name: "ResourceNotFoundException",
|
|
3904
|
-
$fault: "client",
|
|
3905
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3906
|
-
Message: undefined,
|
|
3907
|
-
ResourceName: undefined,
|
|
3908
|
-
};
|
|
3192
|
+
const contents = {};
|
|
3909
3193
|
const data = parsedOutput.body;
|
|
3910
3194
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3911
3195
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
@@ -3913,20 +3197,23 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3913
3197
|
if (data.ResourceName !== undefined && data.ResourceName !== null) {
|
|
3914
3198
|
contents.ResourceName = smithy_client_1.expectString(data.ResourceName);
|
|
3915
3199
|
}
|
|
3916
|
-
|
|
3200
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
3201
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3202
|
+
...contents,
|
|
3203
|
+
});
|
|
3204
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3917
3205
|
};
|
|
3918
3206
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3919
|
-
const contents = {
|
|
3920
|
-
name: "ServiceQuotaExceededException",
|
|
3921
|
-
$fault: "client",
|
|
3922
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3923
|
-
Message: undefined,
|
|
3924
|
-
};
|
|
3207
|
+
const contents = {};
|
|
3925
3208
|
const data = parsedOutput.body;
|
|
3926
3209
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3927
3210
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3928
3211
|
}
|
|
3929
|
-
|
|
3212
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3213
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3214
|
+
...contents,
|
|
3215
|
+
});
|
|
3216
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3930
3217
|
};
|
|
3931
3218
|
const serializeAws_restJson1Monitor = (input, context) => {
|
|
3932
3219
|
return {
|
|
@@ -3979,7 +3266,7 @@ const deserializeAws_restJson1Application = (output, context) => {
|
|
|
3979
3266
|
};
|
|
3980
3267
|
};
|
|
3981
3268
|
const deserializeAws_restJson1ApplicationList = (output, context) => {
|
|
3982
|
-
|
|
3269
|
+
const retVal = (output || [])
|
|
3983
3270
|
.filter((e) => e != null)
|
|
3984
3271
|
.map((entry) => {
|
|
3985
3272
|
if (entry === null) {
|
|
@@ -3987,6 +3274,7 @@ const deserializeAws_restJson1ApplicationList = (output, context) => {
|
|
|
3987
3274
|
}
|
|
3988
3275
|
return deserializeAws_restJson1Application(entry, context);
|
|
3989
3276
|
});
|
|
3277
|
+
return retVal;
|
|
3990
3278
|
};
|
|
3991
3279
|
const deserializeAws_restJson1BadRequestDetails = (output, context) => {
|
|
3992
3280
|
if (output.InvalidConfiguration !== undefined && output.InvalidConfiguration !== null) {
|
|
@@ -4009,7 +3297,7 @@ const deserializeAws_restJson1ConfigurationProfileSummary = (output, context) =>
|
|
|
4009
3297
|
};
|
|
4010
3298
|
};
|
|
4011
3299
|
const deserializeAws_restJson1ConfigurationProfileSummaryList = (output, context) => {
|
|
4012
|
-
|
|
3300
|
+
const retVal = (output || [])
|
|
4013
3301
|
.filter((e) => e != null)
|
|
4014
3302
|
.map((entry) => {
|
|
4015
3303
|
if (entry === null) {
|
|
@@ -4017,6 +3305,7 @@ const deserializeAws_restJson1ConfigurationProfileSummaryList = (output, context
|
|
|
4017
3305
|
}
|
|
4018
3306
|
return deserializeAws_restJson1ConfigurationProfileSummary(entry, context);
|
|
4019
3307
|
});
|
|
3308
|
+
return retVal;
|
|
4020
3309
|
};
|
|
4021
3310
|
const deserializeAws_restJson1DeploymentEvent = (output, context) => {
|
|
4022
3311
|
return {
|
|
@@ -4029,7 +3318,7 @@ const deserializeAws_restJson1DeploymentEvent = (output, context) => {
|
|
|
4029
3318
|
};
|
|
4030
3319
|
};
|
|
4031
3320
|
const deserializeAws_restJson1DeploymentEvents = (output, context) => {
|
|
4032
|
-
|
|
3321
|
+
const retVal = (output || [])
|
|
4033
3322
|
.filter((e) => e != null)
|
|
4034
3323
|
.map((entry) => {
|
|
4035
3324
|
if (entry === null) {
|
|
@@ -4037,9 +3326,10 @@ const deserializeAws_restJson1DeploymentEvents = (output, context) => {
|
|
|
4037
3326
|
}
|
|
4038
3327
|
return deserializeAws_restJson1DeploymentEvent(entry, context);
|
|
4039
3328
|
});
|
|
3329
|
+
return retVal;
|
|
4040
3330
|
};
|
|
4041
3331
|
const deserializeAws_restJson1DeploymentList = (output, context) => {
|
|
4042
|
-
|
|
3332
|
+
const retVal = (output || [])
|
|
4043
3333
|
.filter((e) => e != null)
|
|
4044
3334
|
.map((entry) => {
|
|
4045
3335
|
if (entry === null) {
|
|
@@ -4047,6 +3337,7 @@ const deserializeAws_restJson1DeploymentList = (output, context) => {
|
|
|
4047
3337
|
}
|
|
4048
3338
|
return deserializeAws_restJson1DeploymentSummary(entry, context);
|
|
4049
3339
|
});
|
|
3340
|
+
return retVal;
|
|
4050
3341
|
};
|
|
4051
3342
|
const deserializeAws_restJson1DeploymentStrategy = (output, context) => {
|
|
4052
3343
|
return {
|
|
@@ -4061,7 +3352,7 @@ const deserializeAws_restJson1DeploymentStrategy = (output, context) => {
|
|
|
4061
3352
|
};
|
|
4062
3353
|
};
|
|
4063
3354
|
const deserializeAws_restJson1DeploymentStrategyList = (output, context) => {
|
|
4064
|
-
|
|
3355
|
+
const retVal = (output || [])
|
|
4065
3356
|
.filter((e) => e != null)
|
|
4066
3357
|
.map((entry) => {
|
|
4067
3358
|
if (entry === null) {
|
|
@@ -4069,6 +3360,7 @@ const deserializeAws_restJson1DeploymentStrategyList = (output, context) => {
|
|
|
4069
3360
|
}
|
|
4070
3361
|
return deserializeAws_restJson1DeploymentStrategy(entry, context);
|
|
4071
3362
|
});
|
|
3363
|
+
return retVal;
|
|
4072
3364
|
};
|
|
4073
3365
|
const deserializeAws_restJson1DeploymentSummary = (output, context) => {
|
|
4074
3366
|
return {
|
|
@@ -4102,7 +3394,7 @@ const deserializeAws_restJson1Environment = (output, context) => {
|
|
|
4102
3394
|
};
|
|
4103
3395
|
};
|
|
4104
3396
|
const deserializeAws_restJson1EnvironmentList = (output, context) => {
|
|
4105
|
-
|
|
3397
|
+
const retVal = (output || [])
|
|
4106
3398
|
.filter((e) => e != null)
|
|
4107
3399
|
.map((entry) => {
|
|
4108
3400
|
if (entry === null) {
|
|
@@ -4110,6 +3402,7 @@ const deserializeAws_restJson1EnvironmentList = (output, context) => {
|
|
|
4110
3402
|
}
|
|
4111
3403
|
return deserializeAws_restJson1Environment(entry, context);
|
|
4112
3404
|
});
|
|
3405
|
+
return retVal;
|
|
4113
3406
|
};
|
|
4114
3407
|
const deserializeAws_restJson1HostedConfigurationVersionSummary = (output, context) => {
|
|
4115
3408
|
return {
|
|
@@ -4121,7 +3414,7 @@ const deserializeAws_restJson1HostedConfigurationVersionSummary = (output, conte
|
|
|
4121
3414
|
};
|
|
4122
3415
|
};
|
|
4123
3416
|
const deserializeAws_restJson1HostedConfigurationVersionSummaryList = (output, context) => {
|
|
4124
|
-
|
|
3417
|
+
const retVal = (output || [])
|
|
4125
3418
|
.filter((e) => e != null)
|
|
4126
3419
|
.map((entry) => {
|
|
4127
3420
|
if (entry === null) {
|
|
@@ -4129,6 +3422,7 @@ const deserializeAws_restJson1HostedConfigurationVersionSummaryList = (output, c
|
|
|
4129
3422
|
}
|
|
4130
3423
|
return deserializeAws_restJson1HostedConfigurationVersionSummary(entry, context);
|
|
4131
3424
|
});
|
|
3425
|
+
return retVal;
|
|
4132
3426
|
};
|
|
4133
3427
|
const deserializeAws_restJson1InvalidConfigurationDetail = (output, context) => {
|
|
4134
3428
|
return {
|
|
@@ -4139,7 +3433,7 @@ const deserializeAws_restJson1InvalidConfigurationDetail = (output, context) =>
|
|
|
4139
3433
|
};
|
|
4140
3434
|
};
|
|
4141
3435
|
const deserializeAws_restJson1InvalidConfigurationDetailList = (output, context) => {
|
|
4142
|
-
|
|
3436
|
+
const retVal = (output || [])
|
|
4143
3437
|
.filter((e) => e != null)
|
|
4144
3438
|
.map((entry) => {
|
|
4145
3439
|
if (entry === null) {
|
|
@@ -4147,6 +3441,7 @@ const deserializeAws_restJson1InvalidConfigurationDetailList = (output, context)
|
|
|
4147
3441
|
}
|
|
4148
3442
|
return deserializeAws_restJson1InvalidConfigurationDetail(entry, context);
|
|
4149
3443
|
});
|
|
3444
|
+
return retVal;
|
|
4150
3445
|
};
|
|
4151
3446
|
const deserializeAws_restJson1Monitor = (output, context) => {
|
|
4152
3447
|
return {
|
|
@@ -4155,7 +3450,7 @@ const deserializeAws_restJson1Monitor = (output, context) => {
|
|
|
4155
3450
|
};
|
|
4156
3451
|
};
|
|
4157
3452
|
const deserializeAws_restJson1MonitorList = (output, context) => {
|
|
4158
|
-
|
|
3453
|
+
const retVal = (output || [])
|
|
4159
3454
|
.filter((e) => e != null)
|
|
4160
3455
|
.map((entry) => {
|
|
4161
3456
|
if (entry === null) {
|
|
@@ -4163,6 +3458,7 @@ const deserializeAws_restJson1MonitorList = (output, context) => {
|
|
|
4163
3458
|
}
|
|
4164
3459
|
return deserializeAws_restJson1Monitor(entry, context);
|
|
4165
3460
|
});
|
|
3461
|
+
return retVal;
|
|
4166
3462
|
};
|
|
4167
3463
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
4168
3464
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -4182,7 +3478,7 @@ const deserializeAws_restJson1Validator = (output, context) => {
|
|
|
4182
3478
|
};
|
|
4183
3479
|
};
|
|
4184
3480
|
const deserializeAws_restJson1ValidatorList = (output, context) => {
|
|
4185
|
-
|
|
3481
|
+
const retVal = (output || [])
|
|
4186
3482
|
.filter((e) => e != null)
|
|
4187
3483
|
.map((entry) => {
|
|
4188
3484
|
if (entry === null) {
|
|
@@ -4190,9 +3486,10 @@ const deserializeAws_restJson1ValidatorList = (output, context) => {
|
|
|
4190
3486
|
}
|
|
4191
3487
|
return deserializeAws_restJson1Validator(entry, context);
|
|
4192
3488
|
});
|
|
3489
|
+
return retVal;
|
|
4193
3490
|
};
|
|
4194
3491
|
const deserializeAws_restJson1ValidatorTypeList = (output, context) => {
|
|
4195
|
-
|
|
3492
|
+
const retVal = (output || [])
|
|
4196
3493
|
.filter((e) => e != null)
|
|
4197
3494
|
.map((entry) => {
|
|
4198
3495
|
if (entry === null) {
|
|
@@ -4200,6 +3497,7 @@ const deserializeAws_restJson1ValidatorTypeList = (output, context) => {
|
|
|
4200
3497
|
}
|
|
4201
3498
|
return smithy_client_1.expectString(entry);
|
|
4202
3499
|
});
|
|
3500
|
+
return retVal;
|
|
4203
3501
|
};
|
|
4204
3502
|
const deserializeMetadata = (output) => {
|
|
4205
3503
|
var _a;
|