@aws-sdk/client-codedeploy 3.180.0 → 3.182.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 +23 -0
- package/README.md +42 -50
- package/dist-cjs/models/models_0.js +23 -18
- package/dist-cjs/protocols/Aws_json1_1.js +65 -47
- package/dist-es/models/models_0.js +17 -12
- package/dist-es/protocols/Aws_json1_1.js +150 -124
- package/dist-types/CodeDeploy.d.ts +71 -79
- package/dist-types/CodeDeployClient.d.ts +42 -49
- package/dist-types/commands/BatchGetDeploymentInstancesCommand.d.ts +1 -1
- package/dist-types/commands/BatchGetDeploymentTargetsCommand.d.ts +7 -8
- package/dist-types/commands/ListApplicationsCommand.d.ts +1 -1
- package/dist-types/commands/ListDeploymentConfigsCommand.d.ts +1 -1
- package/dist-types/commands/ListDeploymentGroupsCommand.d.ts +2 -2
- package/dist-types/commands/ListDeploymentInstancesCommand.d.ts +4 -3
- package/dist-types/commands/ListDeploymentsCommand.d.ts +2 -2
- package/dist-types/commands/PutLifecycleEventHookExecutionStatusCommand.d.ts +9 -9
- package/dist-types/commands/RegisterApplicationRevisionCommand.d.ts +1 -1
- package/dist-types/commands/RegisterOnPremisesInstanceCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +375 -352
- package/dist-types/ts3.4/models/models_0.d.ts +13 -8
- package/package.json +3 -3
|
@@ -490,7 +490,7 @@ exports.deserializeAws_json1_1AddTagsToOnPremisesInstancesCommand = deserializeA
|
|
|
490
490
|
const deserializeAws_json1_1AddTagsToOnPremisesInstancesCommandError = async (output, context) => {
|
|
491
491
|
const parsedOutput = {
|
|
492
492
|
...output,
|
|
493
|
-
body: await
|
|
493
|
+
body: await parseErrorBody(output.body, context),
|
|
494
494
|
};
|
|
495
495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
496
|
switch (errorCode) {
|
|
@@ -542,7 +542,7 @@ exports.deserializeAws_json1_1BatchGetApplicationRevisionsCommand = deserializeA
|
|
|
542
542
|
const deserializeAws_json1_1BatchGetApplicationRevisionsCommandError = async (output, context) => {
|
|
543
543
|
const parsedOutput = {
|
|
544
544
|
...output,
|
|
545
|
-
body: await
|
|
545
|
+
body: await parseErrorBody(output.body, context),
|
|
546
546
|
};
|
|
547
547
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
548
|
switch (errorCode) {
|
|
@@ -591,7 +591,7 @@ exports.deserializeAws_json1_1BatchGetApplicationsCommand = deserializeAws_json1
|
|
|
591
591
|
const deserializeAws_json1_1BatchGetApplicationsCommandError = async (output, context) => {
|
|
592
592
|
const parsedOutput = {
|
|
593
593
|
...output,
|
|
594
|
-
body: await
|
|
594
|
+
body: await parseErrorBody(output.body, context),
|
|
595
595
|
};
|
|
596
596
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
597
597
|
switch (errorCode) {
|
|
@@ -634,7 +634,7 @@ exports.deserializeAws_json1_1BatchGetDeploymentGroupsCommand = deserializeAws_j
|
|
|
634
634
|
const deserializeAws_json1_1BatchGetDeploymentGroupsCommandError = async (output, context) => {
|
|
635
635
|
const parsedOutput = {
|
|
636
636
|
...output,
|
|
637
|
-
body: await
|
|
637
|
+
body: await parseErrorBody(output.body, context),
|
|
638
638
|
};
|
|
639
639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
640
|
switch (errorCode) {
|
|
@@ -686,7 +686,7 @@ exports.deserializeAws_json1_1BatchGetDeploymentInstancesCommand = deserializeAw
|
|
|
686
686
|
const deserializeAws_json1_1BatchGetDeploymentInstancesCommandError = async (output, context) => {
|
|
687
687
|
const parsedOutput = {
|
|
688
688
|
...output,
|
|
689
|
-
body: await
|
|
689
|
+
body: await parseErrorBody(output.body, context),
|
|
690
690
|
};
|
|
691
691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
692
|
switch (errorCode) {
|
|
@@ -738,7 +738,7 @@ exports.deserializeAws_json1_1BatchGetDeploymentsCommand = deserializeAws_json1_
|
|
|
738
738
|
const deserializeAws_json1_1BatchGetDeploymentsCommandError = async (output, context) => {
|
|
739
739
|
const parsedOutput = {
|
|
740
740
|
...output,
|
|
741
|
-
body: await
|
|
741
|
+
body: await parseErrorBody(output.body, context),
|
|
742
742
|
};
|
|
743
743
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
744
|
switch (errorCode) {
|
|
@@ -778,7 +778,7 @@ exports.deserializeAws_json1_1BatchGetDeploymentTargetsCommand = deserializeAws_
|
|
|
778
778
|
const deserializeAws_json1_1BatchGetDeploymentTargetsCommandError = async (output, context) => {
|
|
779
779
|
const parsedOutput = {
|
|
780
780
|
...output,
|
|
781
|
-
body: await
|
|
781
|
+
body: await parseErrorBody(output.body, context),
|
|
782
782
|
};
|
|
783
783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
784
|
switch (errorCode) {
|
|
@@ -836,7 +836,7 @@ exports.deserializeAws_json1_1BatchGetOnPremisesInstancesCommand = deserializeAw
|
|
|
836
836
|
const deserializeAws_json1_1BatchGetOnPremisesInstancesCommandError = async (output, context) => {
|
|
837
837
|
const parsedOutput = {
|
|
838
838
|
...output,
|
|
839
|
-
body: await
|
|
839
|
+
body: await parseErrorBody(output.body, context),
|
|
840
840
|
};
|
|
841
841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
842
|
switch (errorCode) {
|
|
@@ -873,7 +873,7 @@ exports.deserializeAws_json1_1ContinueDeploymentCommand = deserializeAws_json1_1
|
|
|
873
873
|
const deserializeAws_json1_1ContinueDeploymentCommandError = async (output, context) => {
|
|
874
874
|
const parsedOutput = {
|
|
875
875
|
...output,
|
|
876
|
-
body: await
|
|
876
|
+
body: await parseErrorBody(output.body, context),
|
|
877
877
|
};
|
|
878
878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
879
879
|
switch (errorCode) {
|
|
@@ -928,7 +928,7 @@ exports.deserializeAws_json1_1CreateApplicationCommand = deserializeAws_json1_1C
|
|
|
928
928
|
const deserializeAws_json1_1CreateApplicationCommandError = async (output, context) => {
|
|
929
929
|
const parsedOutput = {
|
|
930
930
|
...output,
|
|
931
|
-
body: await
|
|
931
|
+
body: await parseErrorBody(output.body, context),
|
|
932
932
|
};
|
|
933
933
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
934
|
switch (errorCode) {
|
|
@@ -977,10 +977,13 @@ exports.deserializeAws_json1_1CreateDeploymentCommand = deserializeAws_json1_1Cr
|
|
|
977
977
|
const deserializeAws_json1_1CreateDeploymentCommandError = async (output, context) => {
|
|
978
978
|
const parsedOutput = {
|
|
979
979
|
...output,
|
|
980
|
-
body: await
|
|
980
|
+
body: await parseErrorBody(output.body, context),
|
|
981
981
|
};
|
|
982
982
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
983
|
switch (errorCode) {
|
|
984
|
+
case "AlarmsLimitExceededException":
|
|
985
|
+
case "com.amazonaws.codedeploy#AlarmsLimitExceededException":
|
|
986
|
+
throw await deserializeAws_json1_1AlarmsLimitExceededExceptionResponse(parsedOutput, context);
|
|
984
987
|
case "ApplicationDoesNotExistException":
|
|
985
988
|
case "com.amazonaws.codedeploy#ApplicationDoesNotExistException":
|
|
986
989
|
throw await deserializeAws_json1_1ApplicationDoesNotExistExceptionResponse(parsedOutput, context);
|
|
@@ -1002,6 +1005,9 @@ const deserializeAws_json1_1CreateDeploymentCommandError = async (output, contex
|
|
|
1002
1005
|
case "DescriptionTooLongException":
|
|
1003
1006
|
case "com.amazonaws.codedeploy#DescriptionTooLongException":
|
|
1004
1007
|
throw await deserializeAws_json1_1DescriptionTooLongExceptionResponse(parsedOutput, context);
|
|
1008
|
+
case "InvalidAlarmConfigException":
|
|
1009
|
+
case "com.amazonaws.codedeploy#InvalidAlarmConfigException":
|
|
1010
|
+
throw await deserializeAws_json1_1InvalidAlarmConfigExceptionResponse(parsedOutput, context);
|
|
1005
1011
|
case "InvalidApplicationNameException":
|
|
1006
1012
|
case "com.amazonaws.codedeploy#InvalidApplicationNameException":
|
|
1007
1013
|
throw await deserializeAws_json1_1InvalidApplicationNameExceptionResponse(parsedOutput, context);
|
|
@@ -1080,7 +1086,7 @@ exports.deserializeAws_json1_1CreateDeploymentConfigCommand = deserializeAws_jso
|
|
|
1080
1086
|
const deserializeAws_json1_1CreateDeploymentConfigCommandError = async (output, context) => {
|
|
1081
1087
|
const parsedOutput = {
|
|
1082
1088
|
...output,
|
|
1083
|
-
body: await
|
|
1089
|
+
body: await parseErrorBody(output.body, context),
|
|
1084
1090
|
};
|
|
1085
1091
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
1092
|
switch (errorCode) {
|
|
@@ -1132,7 +1138,7 @@ exports.deserializeAws_json1_1CreateDeploymentGroupCommand = deserializeAws_json
|
|
|
1132
1138
|
const deserializeAws_json1_1CreateDeploymentGroupCommandError = async (output, context) => {
|
|
1133
1139
|
const parsedOutput = {
|
|
1134
1140
|
...output,
|
|
1135
|
-
body: await
|
|
1141
|
+
body: await parseErrorBody(output.body, context),
|
|
1136
1142
|
};
|
|
1137
1143
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
1144
|
switch (errorCode) {
|
|
@@ -1259,7 +1265,7 @@ exports.deserializeAws_json1_1DeleteApplicationCommand = deserializeAws_json1_1D
|
|
|
1259
1265
|
const deserializeAws_json1_1DeleteApplicationCommandError = async (output, context) => {
|
|
1260
1266
|
const parsedOutput = {
|
|
1261
1267
|
...output,
|
|
1262
|
-
body: await
|
|
1268
|
+
body: await parseErrorBody(output.body, context),
|
|
1263
1269
|
};
|
|
1264
1270
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1265
1271
|
switch (errorCode) {
|
|
@@ -1296,7 +1302,7 @@ exports.deserializeAws_json1_1DeleteDeploymentConfigCommand = deserializeAws_jso
|
|
|
1296
1302
|
const deserializeAws_json1_1DeleteDeploymentConfigCommandError = async (output, context) => {
|
|
1297
1303
|
const parsedOutput = {
|
|
1298
1304
|
...output,
|
|
1299
|
-
body: await
|
|
1305
|
+
body: await parseErrorBody(output.body, context),
|
|
1300
1306
|
};
|
|
1301
1307
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
1308
|
switch (errorCode) {
|
|
@@ -1339,7 +1345,7 @@ exports.deserializeAws_json1_1DeleteDeploymentGroupCommand = deserializeAws_json
|
|
|
1339
1345
|
const deserializeAws_json1_1DeleteDeploymentGroupCommandError = async (output, context) => {
|
|
1340
1346
|
const parsedOutput = {
|
|
1341
1347
|
...output,
|
|
1342
|
-
body: await
|
|
1348
|
+
body: await parseErrorBody(output.body, context),
|
|
1343
1349
|
};
|
|
1344
1350
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1345
1351
|
switch (errorCode) {
|
|
@@ -1385,7 +1391,7 @@ exports.deserializeAws_json1_1DeleteGitHubAccountTokenCommand = deserializeAws_j
|
|
|
1385
1391
|
const deserializeAws_json1_1DeleteGitHubAccountTokenCommandError = async (output, context) => {
|
|
1386
1392
|
const parsedOutput = {
|
|
1387
1393
|
...output,
|
|
1388
|
-
body: await
|
|
1394
|
+
body: await parseErrorBody(output.body, context),
|
|
1389
1395
|
};
|
|
1390
1396
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1397
|
switch (errorCode) {
|
|
@@ -1431,7 +1437,7 @@ exports.deserializeAws_json1_1DeleteResourcesByExternalIdCommand = deserializeAw
|
|
|
1431
1437
|
const deserializeAws_json1_1DeleteResourcesByExternalIdCommandError = async (output, context) => {
|
|
1432
1438
|
const parsedOutput = {
|
|
1433
1439
|
...output,
|
|
1434
|
-
body: await
|
|
1440
|
+
body: await parseErrorBody(output.body, context),
|
|
1435
1441
|
};
|
|
1436
1442
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
1443
|
const parsedBody = parsedOutput.body;
|
|
@@ -1456,7 +1462,7 @@ exports.deserializeAws_json1_1DeregisterOnPremisesInstanceCommand = deserializeA
|
|
|
1456
1462
|
const deserializeAws_json1_1DeregisterOnPremisesInstanceCommandError = async (output, context) => {
|
|
1457
1463
|
const parsedOutput = {
|
|
1458
1464
|
...output,
|
|
1459
|
-
body: await
|
|
1465
|
+
body: await parseErrorBody(output.body, context),
|
|
1460
1466
|
};
|
|
1461
1467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
1468
|
switch (errorCode) {
|
|
@@ -1493,7 +1499,7 @@ exports.deserializeAws_json1_1GetApplicationCommand = deserializeAws_json1_1GetA
|
|
|
1493
1499
|
const deserializeAws_json1_1GetApplicationCommandError = async (output, context) => {
|
|
1494
1500
|
const parsedOutput = {
|
|
1495
1501
|
...output,
|
|
1496
|
-
body: await
|
|
1502
|
+
body: await parseErrorBody(output.body, context),
|
|
1497
1503
|
};
|
|
1498
1504
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1499
1505
|
switch (errorCode) {
|
|
@@ -1533,7 +1539,7 @@ exports.deserializeAws_json1_1GetApplicationRevisionCommand = deserializeAws_jso
|
|
|
1533
1539
|
const deserializeAws_json1_1GetApplicationRevisionCommandError = async (output, context) => {
|
|
1534
1540
|
const parsedOutput = {
|
|
1535
1541
|
...output,
|
|
1536
|
-
body: await
|
|
1542
|
+
body: await parseErrorBody(output.body, context),
|
|
1537
1543
|
};
|
|
1538
1544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
1545
|
switch (errorCode) {
|
|
@@ -1582,7 +1588,7 @@ exports.deserializeAws_json1_1GetDeploymentCommand = deserializeAws_json1_1GetDe
|
|
|
1582
1588
|
const deserializeAws_json1_1GetDeploymentCommandError = async (output, context) => {
|
|
1583
1589
|
const parsedOutput = {
|
|
1584
1590
|
...output,
|
|
1585
|
-
body: await
|
|
1591
|
+
body: await parseErrorBody(output.body, context),
|
|
1586
1592
|
};
|
|
1587
1593
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
1594
|
switch (errorCode) {
|
|
@@ -1622,7 +1628,7 @@ exports.deserializeAws_json1_1GetDeploymentConfigCommand = deserializeAws_json1_
|
|
|
1622
1628
|
const deserializeAws_json1_1GetDeploymentConfigCommandError = async (output, context) => {
|
|
1623
1629
|
const parsedOutput = {
|
|
1624
1630
|
...output,
|
|
1625
|
-
body: await
|
|
1631
|
+
body: await parseErrorBody(output.body, context),
|
|
1626
1632
|
};
|
|
1627
1633
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
1634
|
switch (errorCode) {
|
|
@@ -1665,7 +1671,7 @@ exports.deserializeAws_json1_1GetDeploymentGroupCommand = deserializeAws_json1_1
|
|
|
1665
1671
|
const deserializeAws_json1_1GetDeploymentGroupCommandError = async (output, context) => {
|
|
1666
1672
|
const parsedOutput = {
|
|
1667
1673
|
...output,
|
|
1668
|
-
body: await
|
|
1674
|
+
body: await parseErrorBody(output.body, context),
|
|
1669
1675
|
};
|
|
1670
1676
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
1677
|
switch (errorCode) {
|
|
@@ -1717,7 +1723,7 @@ exports.deserializeAws_json1_1GetDeploymentInstanceCommand = deserializeAws_json
|
|
|
1717
1723
|
const deserializeAws_json1_1GetDeploymentInstanceCommandError = async (output, context) => {
|
|
1718
1724
|
const parsedOutput = {
|
|
1719
1725
|
...output,
|
|
1720
|
-
body: await
|
|
1726
|
+
body: await parseErrorBody(output.body, context),
|
|
1721
1727
|
};
|
|
1722
1728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1729
|
switch (errorCode) {
|
|
@@ -1769,7 +1775,7 @@ exports.deserializeAws_json1_1GetDeploymentTargetCommand = deserializeAws_json1_
|
|
|
1769
1775
|
const deserializeAws_json1_1GetDeploymentTargetCommandError = async (output, context) => {
|
|
1770
1776
|
const parsedOutput = {
|
|
1771
1777
|
...output,
|
|
1772
|
-
body: await
|
|
1778
|
+
body: await parseErrorBody(output.body, context),
|
|
1773
1779
|
};
|
|
1774
1780
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
1781
|
switch (errorCode) {
|
|
@@ -1824,7 +1830,7 @@ exports.deserializeAws_json1_1GetOnPremisesInstanceCommand = deserializeAws_json
|
|
|
1824
1830
|
const deserializeAws_json1_1GetOnPremisesInstanceCommandError = async (output, context) => {
|
|
1825
1831
|
const parsedOutput = {
|
|
1826
1832
|
...output,
|
|
1827
|
-
body: await
|
|
1833
|
+
body: await parseErrorBody(output.body, context),
|
|
1828
1834
|
};
|
|
1829
1835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1830
1836
|
switch (errorCode) {
|
|
@@ -1864,7 +1870,7 @@ exports.deserializeAws_json1_1ListApplicationRevisionsCommand = deserializeAws_j
|
|
|
1864
1870
|
const deserializeAws_json1_1ListApplicationRevisionsCommandError = async (output, context) => {
|
|
1865
1871
|
const parsedOutput = {
|
|
1866
1872
|
...output,
|
|
1867
|
-
body: await
|
|
1873
|
+
body: await parseErrorBody(output.body, context),
|
|
1868
1874
|
};
|
|
1869
1875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
1876
|
switch (errorCode) {
|
|
@@ -1925,7 +1931,7 @@ exports.deserializeAws_json1_1ListApplicationsCommand = deserializeAws_json1_1Li
|
|
|
1925
1931
|
const deserializeAws_json1_1ListApplicationsCommandError = async (output, context) => {
|
|
1926
1932
|
const parsedOutput = {
|
|
1927
1933
|
...output,
|
|
1928
|
-
body: await
|
|
1934
|
+
body: await parseErrorBody(output.body, context),
|
|
1929
1935
|
};
|
|
1930
1936
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1931
1937
|
switch (errorCode) {
|
|
@@ -1959,7 +1965,7 @@ exports.deserializeAws_json1_1ListDeploymentConfigsCommand = deserializeAws_json
|
|
|
1959
1965
|
const deserializeAws_json1_1ListDeploymentConfigsCommandError = async (output, context) => {
|
|
1960
1966
|
const parsedOutput = {
|
|
1961
1967
|
...output,
|
|
1962
|
-
body: await
|
|
1968
|
+
body: await parseErrorBody(output.body, context),
|
|
1963
1969
|
};
|
|
1964
1970
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1965
1971
|
switch (errorCode) {
|
|
@@ -1993,7 +1999,7 @@ exports.deserializeAws_json1_1ListDeploymentGroupsCommand = deserializeAws_json1
|
|
|
1993
1999
|
const deserializeAws_json1_1ListDeploymentGroupsCommandError = async (output, context) => {
|
|
1994
2000
|
const parsedOutput = {
|
|
1995
2001
|
...output,
|
|
1996
|
-
body: await
|
|
2002
|
+
body: await parseErrorBody(output.body, context),
|
|
1997
2003
|
};
|
|
1998
2004
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1999
2005
|
switch (errorCode) {
|
|
@@ -2036,7 +2042,7 @@ exports.deserializeAws_json1_1ListDeploymentInstancesCommand = deserializeAws_js
|
|
|
2036
2042
|
const deserializeAws_json1_1ListDeploymentInstancesCommandError = async (output, context) => {
|
|
2037
2043
|
const parsedOutput = {
|
|
2038
2044
|
...output,
|
|
2039
|
-
body: await
|
|
2045
|
+
body: await parseErrorBody(output.body, context),
|
|
2040
2046
|
};
|
|
2041
2047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
2048
|
switch (errorCode) {
|
|
@@ -2097,7 +2103,7 @@ exports.deserializeAws_json1_1ListDeploymentsCommand = deserializeAws_json1_1Lis
|
|
|
2097
2103
|
const deserializeAws_json1_1ListDeploymentsCommandError = async (output, context) => {
|
|
2098
2104
|
const parsedOutput = {
|
|
2099
2105
|
...output,
|
|
2100
|
-
body: await
|
|
2106
|
+
body: await parseErrorBody(output.body, context),
|
|
2101
2107
|
};
|
|
2102
2108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
2109
|
switch (errorCode) {
|
|
@@ -2161,7 +2167,7 @@ exports.deserializeAws_json1_1ListDeploymentTargetsCommand = deserializeAws_json
|
|
|
2161
2167
|
const deserializeAws_json1_1ListDeploymentTargetsCommandError = async (output, context) => {
|
|
2162
2168
|
const parsedOutput = {
|
|
2163
2169
|
...output,
|
|
2164
|
-
body: await
|
|
2170
|
+
body: await parseErrorBody(output.body, context),
|
|
2165
2171
|
};
|
|
2166
2172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2167
2173
|
switch (errorCode) {
|
|
@@ -2216,7 +2222,7 @@ exports.deserializeAws_json1_1ListGitHubAccountTokenNamesCommand = deserializeAw
|
|
|
2216
2222
|
const deserializeAws_json1_1ListGitHubAccountTokenNamesCommandError = async (output, context) => {
|
|
2217
2223
|
const parsedOutput = {
|
|
2218
2224
|
...output,
|
|
2219
|
-
body: await
|
|
2225
|
+
body: await parseErrorBody(output.body, context),
|
|
2220
2226
|
};
|
|
2221
2227
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
2228
|
switch (errorCode) {
|
|
@@ -2256,7 +2262,7 @@ exports.deserializeAws_json1_1ListOnPremisesInstancesCommand = deserializeAws_js
|
|
|
2256
2262
|
const deserializeAws_json1_1ListOnPremisesInstancesCommandError = async (output, context) => {
|
|
2257
2263
|
const parsedOutput = {
|
|
2258
2264
|
...output,
|
|
2259
|
-
body: await
|
|
2265
|
+
body: await parseErrorBody(output.body, context),
|
|
2260
2266
|
};
|
|
2261
2267
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2262
2268
|
switch (errorCode) {
|
|
@@ -2296,7 +2302,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2296
2302
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2297
2303
|
const parsedOutput = {
|
|
2298
2304
|
...output,
|
|
2299
|
-
body: await
|
|
2305
|
+
body: await parseErrorBody(output.body, context),
|
|
2300
2306
|
};
|
|
2301
2307
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
2308
|
switch (errorCode) {
|
|
@@ -2336,7 +2342,7 @@ exports.deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommand = dese
|
|
|
2336
2342
|
const deserializeAws_json1_1PutLifecycleEventHookExecutionStatusCommandError = async (output, context) => {
|
|
2337
2343
|
const parsedOutput = {
|
|
2338
2344
|
...output,
|
|
2339
|
-
body: await
|
|
2345
|
+
body: await parseErrorBody(output.body, context),
|
|
2340
2346
|
};
|
|
2341
2347
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2342
2348
|
switch (errorCode) {
|
|
@@ -2385,7 +2391,7 @@ exports.deserializeAws_json1_1RegisterApplicationRevisionCommand = deserializeAw
|
|
|
2385
2391
|
const deserializeAws_json1_1RegisterApplicationRevisionCommandError = async (output, context) => {
|
|
2386
2392
|
const parsedOutput = {
|
|
2387
2393
|
...output,
|
|
2388
|
-
body: await
|
|
2394
|
+
body: await parseErrorBody(output.body, context),
|
|
2389
2395
|
};
|
|
2390
2396
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2391
2397
|
switch (errorCode) {
|
|
@@ -2431,7 +2437,7 @@ exports.deserializeAws_json1_1RegisterOnPremisesInstanceCommand = deserializeAws
|
|
|
2431
2437
|
const deserializeAws_json1_1RegisterOnPremisesInstanceCommandError = async (output, context) => {
|
|
2432
2438
|
const parsedOutput = {
|
|
2433
2439
|
...output,
|
|
2434
|
-
body: await
|
|
2440
|
+
body: await parseErrorBody(output.body, context),
|
|
2435
2441
|
};
|
|
2436
2442
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2437
2443
|
switch (errorCode) {
|
|
@@ -2489,7 +2495,7 @@ exports.deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommand = deseria
|
|
|
2489
2495
|
const deserializeAws_json1_1RemoveTagsFromOnPremisesInstancesCommandError = async (output, context) => {
|
|
2490
2496
|
const parsedOutput = {
|
|
2491
2497
|
...output,
|
|
2492
|
-
body: await
|
|
2498
|
+
body: await parseErrorBody(output.body, context),
|
|
2493
2499
|
};
|
|
2494
2500
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
2501
|
switch (errorCode) {
|
|
@@ -2538,7 +2544,7 @@ exports.deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommand = deseri
|
|
|
2538
2544
|
const deserializeAws_json1_1SkipWaitTimeForInstanceTerminationCommandError = async (output, context) => {
|
|
2539
2545
|
const parsedOutput = {
|
|
2540
2546
|
...output,
|
|
2541
|
-
body: await
|
|
2547
|
+
body: await parseErrorBody(output.body, context),
|
|
2542
2548
|
};
|
|
2543
2549
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
2550
|
switch (errorCode) {
|
|
@@ -2587,7 +2593,7 @@ exports.deserializeAws_json1_1StopDeploymentCommand = deserializeAws_json1_1Stop
|
|
|
2587
2593
|
const deserializeAws_json1_1StopDeploymentCommandError = async (output, context) => {
|
|
2588
2594
|
const parsedOutput = {
|
|
2589
2595
|
...output,
|
|
2590
|
-
body: await
|
|
2596
|
+
body: await parseErrorBody(output.body, context),
|
|
2591
2597
|
};
|
|
2592
2598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2599
|
switch (errorCode) {
|
|
@@ -2636,7 +2642,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2636
2642
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2637
2643
|
const parsedOutput = {
|
|
2638
2644
|
...output,
|
|
2639
|
-
body: await
|
|
2645
|
+
body: await parseErrorBody(output.body, context),
|
|
2640
2646
|
};
|
|
2641
2647
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2642
2648
|
switch (errorCode) {
|
|
@@ -2691,7 +2697,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2691
2697
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2692
2698
|
const parsedOutput = {
|
|
2693
2699
|
...output,
|
|
2694
|
-
body: await
|
|
2700
|
+
body: await parseErrorBody(output.body, context),
|
|
2695
2701
|
};
|
|
2696
2702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2697
2703
|
switch (errorCode) {
|
|
@@ -2743,7 +2749,7 @@ exports.deserializeAws_json1_1UpdateApplicationCommand = deserializeAws_json1_1U
|
|
|
2743
2749
|
const deserializeAws_json1_1UpdateApplicationCommandError = async (output, context) => {
|
|
2744
2750
|
const parsedOutput = {
|
|
2745
2751
|
...output,
|
|
2746
|
-
body: await
|
|
2752
|
+
body: await parseErrorBody(output.body, context),
|
|
2747
2753
|
};
|
|
2748
2754
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2749
2755
|
switch (errorCode) {
|
|
@@ -2786,7 +2792,7 @@ exports.deserializeAws_json1_1UpdateDeploymentGroupCommand = deserializeAws_json
|
|
|
2786
2792
|
const deserializeAws_json1_1UpdateDeploymentGroupCommandError = async (output, context) => {
|
|
2787
2793
|
const parsedOutput = {
|
|
2788
2794
|
...output,
|
|
2789
|
-
body: await
|
|
2795
|
+
body: await parseErrorBody(output.body, context),
|
|
2790
2796
|
};
|
|
2791
2797
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2792
2798
|
switch (errorCode) {
|
|
@@ -4082,6 +4088,9 @@ const serializeAws_json1_1CreateDeploymentInput = (input, context) => {
|
|
|
4082
4088
|
...(input.ignoreApplicationStopFailures != null && {
|
|
4083
4089
|
ignoreApplicationStopFailures: input.ignoreApplicationStopFailures,
|
|
4084
4090
|
}),
|
|
4091
|
+
...(input.overrideAlarmConfiguration != null && {
|
|
4092
|
+
overrideAlarmConfiguration: serializeAws_json1_1AlarmConfiguration(input.overrideAlarmConfiguration, context),
|
|
4093
|
+
}),
|
|
4085
4094
|
...(input.revision != null && { revision: serializeAws_json1_1RevisionLocation(input.revision, context) }),
|
|
4086
4095
|
...(input.targetInstances != null && {
|
|
4087
4096
|
targetInstances: serializeAws_json1_1TargetInstances(input.targetInstances, context),
|
|
@@ -5165,6 +5174,9 @@ const deserializeAws_json1_1DeploymentInfo = (output, context) => {
|
|
|
5165
5174
|
loadBalancerInfo: output.loadBalancerInfo != null
|
|
5166
5175
|
? deserializeAws_json1_1LoadBalancerInfo(output.loadBalancerInfo, context)
|
|
5167
5176
|
: undefined,
|
|
5177
|
+
overrideAlarmConfiguration: output.overrideAlarmConfiguration != null
|
|
5178
|
+
? deserializeAws_json1_1AlarmConfiguration(output.overrideAlarmConfiguration, context)
|
|
5179
|
+
: undefined,
|
|
5168
5180
|
previousRevision: output.previousRevision != null
|
|
5169
5181
|
? deserializeAws_json1_1RevisionLocation(output.previousRevision, context)
|
|
5170
5182
|
: undefined,
|
|
@@ -6453,6 +6465,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
6453
6465
|
}
|
|
6454
6466
|
return {};
|
|
6455
6467
|
});
|
|
6468
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
6469
|
+
var _a;
|
|
6470
|
+
const value = await parseBody(errorBody, context);
|
|
6471
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
6472
|
+
return value;
|
|
6473
|
+
};
|
|
6456
6474
|
const loadRestJsonErrorCode = (output, data) => {
|
|
6457
6475
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
6458
6476
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -704,6 +704,18 @@ var DescriptionTooLongException = (function (_super) {
|
|
|
704
704
|
return DescriptionTooLongException;
|
|
705
705
|
}(__BaseException));
|
|
706
706
|
export { DescriptionTooLongException };
|
|
707
|
+
var InvalidAlarmConfigException = (function (_super) {
|
|
708
|
+
__extends(InvalidAlarmConfigException, _super);
|
|
709
|
+
function InvalidAlarmConfigException(opts) {
|
|
710
|
+
var _this = _super.call(this, __assign({ name: "InvalidAlarmConfigException", $fault: "client" }, opts)) || this;
|
|
711
|
+
_this.name = "InvalidAlarmConfigException";
|
|
712
|
+
_this.$fault = "client";
|
|
713
|
+
Object.setPrototypeOf(_this, InvalidAlarmConfigException.prototype);
|
|
714
|
+
return _this;
|
|
715
|
+
}
|
|
716
|
+
return InvalidAlarmConfigException;
|
|
717
|
+
}(__BaseException));
|
|
718
|
+
export { InvalidAlarmConfigException };
|
|
707
719
|
var InvalidAutoRollbackConfigException = (function (_super) {
|
|
708
720
|
__extends(InvalidAutoRollbackConfigException, _super);
|
|
709
721
|
function InvalidAutoRollbackConfigException(opts) {
|
|
@@ -860,6 +872,11 @@ var ThrottlingException = (function (_super) {
|
|
|
860
872
|
return ThrottlingException;
|
|
861
873
|
}(__BaseException));
|
|
862
874
|
export { ThrottlingException };
|
|
875
|
+
export var MinimumHealthyHostsType;
|
|
876
|
+
(function (MinimumHealthyHostsType) {
|
|
877
|
+
MinimumHealthyHostsType["FLEET_PERCENT"] = "FLEET_PERCENT";
|
|
878
|
+
MinimumHealthyHostsType["HOST_COUNT"] = "HOST_COUNT";
|
|
879
|
+
})(MinimumHealthyHostsType || (MinimumHealthyHostsType = {}));
|
|
863
880
|
export var TrafficRoutingType;
|
|
864
881
|
(function (TrafficRoutingType) {
|
|
865
882
|
TrafficRoutingType["AllAtOnce"] = "AllAtOnce";
|
|
@@ -950,18 +967,6 @@ var ECSServiceMappingLimitExceededException = (function (_super) {
|
|
|
950
967
|
return ECSServiceMappingLimitExceededException;
|
|
951
968
|
}(__BaseException));
|
|
952
969
|
export { ECSServiceMappingLimitExceededException };
|
|
953
|
-
var InvalidAlarmConfigException = (function (_super) {
|
|
954
|
-
__extends(InvalidAlarmConfigException, _super);
|
|
955
|
-
function InvalidAlarmConfigException(opts) {
|
|
956
|
-
var _this = _super.call(this, __assign({ name: "InvalidAlarmConfigException", $fault: "client" }, opts)) || this;
|
|
957
|
-
_this.name = "InvalidAlarmConfigException";
|
|
958
|
-
_this.$fault = "client";
|
|
959
|
-
Object.setPrototypeOf(_this, InvalidAlarmConfigException.prototype);
|
|
960
|
-
return _this;
|
|
961
|
-
}
|
|
962
|
-
return InvalidAlarmConfigException;
|
|
963
|
-
}(__BaseException));
|
|
964
|
-
export { InvalidAlarmConfigException };
|
|
965
970
|
var InvalidBlueGreenDeploymentConfigurationException = (function (_super) {
|
|
966
971
|
__extends(InvalidBlueGreenDeploymentConfigurationException, _super);
|
|
967
972
|
function InvalidBlueGreenDeploymentConfigurationException(opts) {
|