@aws-sdk/client-ssm-incidents 3.180.0 → 3.181.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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +35 -29
- package/dist-es/protocols/Aws_restJson1.js +42 -29
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-ssm-incidents
|
|
@@ -717,7 +717,7 @@ exports.deserializeAws_restJson1CreateReplicationSetCommand = deserializeAws_res
|
|
|
717
717
|
const deserializeAws_restJson1CreateReplicationSetCommandError = async (output, context) => {
|
|
718
718
|
const parsedOutput = {
|
|
719
719
|
...output,
|
|
720
|
-
body: await
|
|
720
|
+
body: await parseErrorBody(output.body, context),
|
|
721
721
|
};
|
|
722
722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
723
|
switch (errorCode) {
|
|
@@ -766,7 +766,7 @@ exports.deserializeAws_restJson1CreateResponsePlanCommand = deserializeAws_restJ
|
|
|
766
766
|
const deserializeAws_restJson1CreateResponsePlanCommandError = async (output, context) => {
|
|
767
767
|
const parsedOutput = {
|
|
768
768
|
...output,
|
|
769
|
-
body: await
|
|
769
|
+
body: await parseErrorBody(output.body, context),
|
|
770
770
|
};
|
|
771
771
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
772
|
switch (errorCode) {
|
|
@@ -818,7 +818,7 @@ exports.deserializeAws_restJson1CreateTimelineEventCommand = deserializeAws_rest
|
|
|
818
818
|
const deserializeAws_restJson1CreateTimelineEventCommandError = async (output, context) => {
|
|
819
819
|
const parsedOutput = {
|
|
820
820
|
...output,
|
|
821
|
-
body: await
|
|
821
|
+
body: await parseErrorBody(output.body, context),
|
|
822
822
|
};
|
|
823
823
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
824
|
switch (errorCode) {
|
|
@@ -864,7 +864,7 @@ exports.deserializeAws_restJson1DeleteIncidentRecordCommand = deserializeAws_res
|
|
|
864
864
|
const deserializeAws_restJson1DeleteIncidentRecordCommandError = async (output, context) => {
|
|
865
865
|
const parsedOutput = {
|
|
866
866
|
...output,
|
|
867
|
-
body: await
|
|
867
|
+
body: await parseErrorBody(output.body, context),
|
|
868
868
|
};
|
|
869
869
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
870
|
switch (errorCode) {
|
|
@@ -904,7 +904,7 @@ exports.deserializeAws_restJson1DeleteReplicationSetCommand = deserializeAws_res
|
|
|
904
904
|
const deserializeAws_restJson1DeleteReplicationSetCommandError = async (output, context) => {
|
|
905
905
|
const parsedOutput = {
|
|
906
906
|
...output,
|
|
907
|
-
body: await
|
|
907
|
+
body: await parseErrorBody(output.body, context),
|
|
908
908
|
};
|
|
909
909
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
910
|
switch (errorCode) {
|
|
@@ -947,7 +947,7 @@ exports.deserializeAws_restJson1DeleteResourcePolicyCommand = deserializeAws_res
|
|
|
947
947
|
const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
948
948
|
const parsedOutput = {
|
|
949
949
|
...output,
|
|
950
|
-
body: await
|
|
950
|
+
body: await parseErrorBody(output.body, context),
|
|
951
951
|
};
|
|
952
952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
953
|
switch (errorCode) {
|
|
@@ -990,7 +990,7 @@ exports.deserializeAws_restJson1DeleteResponsePlanCommand = deserializeAws_restJ
|
|
|
990
990
|
const deserializeAws_restJson1DeleteResponsePlanCommandError = async (output, context) => {
|
|
991
991
|
const parsedOutput = {
|
|
992
992
|
...output,
|
|
993
|
-
body: await
|
|
993
|
+
body: await parseErrorBody(output.body, context),
|
|
994
994
|
};
|
|
995
995
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
996
|
switch (errorCode) {
|
|
@@ -1030,7 +1030,7 @@ exports.deserializeAws_restJson1DeleteTimelineEventCommand = deserializeAws_rest
|
|
|
1030
1030
|
const deserializeAws_restJson1DeleteTimelineEventCommandError = async (output, context) => {
|
|
1031
1031
|
const parsedOutput = {
|
|
1032
1032
|
...output,
|
|
1033
|
-
body: await
|
|
1033
|
+
body: await parseErrorBody(output.body, context),
|
|
1034
1034
|
};
|
|
1035
1035
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1036
1036
|
switch (errorCode) {
|
|
@@ -1073,7 +1073,7 @@ exports.deserializeAws_restJson1GetIncidentRecordCommand = deserializeAws_restJs
|
|
|
1073
1073
|
const deserializeAws_restJson1GetIncidentRecordCommandError = async (output, context) => {
|
|
1074
1074
|
const parsedOutput = {
|
|
1075
1075
|
...output,
|
|
1076
|
-
body: await
|
|
1076
|
+
body: await parseErrorBody(output.body, context),
|
|
1077
1077
|
};
|
|
1078
1078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1079
|
switch (errorCode) {
|
|
@@ -1119,7 +1119,7 @@ exports.deserializeAws_restJson1GetReplicationSetCommand = deserializeAws_restJs
|
|
|
1119
1119
|
const deserializeAws_restJson1GetReplicationSetCommandError = async (output, context) => {
|
|
1120
1120
|
const parsedOutput = {
|
|
1121
1121
|
...output,
|
|
1122
|
-
body: await
|
|
1122
|
+
body: await parseErrorBody(output.body, context),
|
|
1123
1123
|
};
|
|
1124
1124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
1125
|
switch (errorCode) {
|
|
@@ -1168,7 +1168,7 @@ exports.deserializeAws_restJson1GetResourcePoliciesCommand = deserializeAws_rest
|
|
|
1168
1168
|
const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, context) => {
|
|
1169
1169
|
const parsedOutput = {
|
|
1170
1170
|
...output,
|
|
1171
|
-
body: await
|
|
1171
|
+
body: await parseErrorBody(output.body, context),
|
|
1172
1172
|
};
|
|
1173
1173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
1174
|
switch (errorCode) {
|
|
@@ -1232,7 +1232,7 @@ exports.deserializeAws_restJson1GetResponsePlanCommand = deserializeAws_restJson
|
|
|
1232
1232
|
const deserializeAws_restJson1GetResponsePlanCommandError = async (output, context) => {
|
|
1233
1233
|
const parsedOutput = {
|
|
1234
1234
|
...output,
|
|
1235
|
-
body: await
|
|
1235
|
+
body: await parseErrorBody(output.body, context),
|
|
1236
1236
|
};
|
|
1237
1237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
1238
|
switch (errorCode) {
|
|
@@ -1278,7 +1278,7 @@ exports.deserializeAws_restJson1GetTimelineEventCommand = deserializeAws_restJso
|
|
|
1278
1278
|
const deserializeAws_restJson1GetTimelineEventCommandError = async (output, context) => {
|
|
1279
1279
|
const parsedOutput = {
|
|
1280
1280
|
...output,
|
|
1281
|
-
body: await
|
|
1281
|
+
body: await parseErrorBody(output.body, context),
|
|
1282
1282
|
};
|
|
1283
1283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
1284
|
switch (errorCode) {
|
|
@@ -1327,7 +1327,7 @@ exports.deserializeAws_restJson1ListIncidentRecordsCommand = deserializeAws_rest
|
|
|
1327
1327
|
const deserializeAws_restJson1ListIncidentRecordsCommandError = async (output, context) => {
|
|
1328
1328
|
const parsedOutput = {
|
|
1329
1329
|
...output,
|
|
1330
|
-
body: await
|
|
1330
|
+
body: await parseErrorBody(output.body, context),
|
|
1331
1331
|
};
|
|
1332
1332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
1333
|
switch (errorCode) {
|
|
@@ -1373,7 +1373,7 @@ exports.deserializeAws_restJson1ListRelatedItemsCommand = deserializeAws_restJso
|
|
|
1373
1373
|
const deserializeAws_restJson1ListRelatedItemsCommandError = async (output, context) => {
|
|
1374
1374
|
const parsedOutput = {
|
|
1375
1375
|
...output,
|
|
1376
|
-
body: await
|
|
1376
|
+
body: await parseErrorBody(output.body, context),
|
|
1377
1377
|
};
|
|
1378
1378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
1379
|
switch (errorCode) {
|
|
@@ -1419,7 +1419,7 @@ exports.deserializeAws_restJson1ListReplicationSetsCommand = deserializeAws_rest
|
|
|
1419
1419
|
const deserializeAws_restJson1ListReplicationSetsCommandError = async (output, context) => {
|
|
1420
1420
|
const parsedOutput = {
|
|
1421
1421
|
...output,
|
|
1422
|
-
body: await
|
|
1422
|
+
body: await parseErrorBody(output.body, context),
|
|
1423
1423
|
};
|
|
1424
1424
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1425
1425
|
switch (errorCode) {
|
|
@@ -1465,7 +1465,7 @@ exports.deserializeAws_restJson1ListResponsePlansCommand = deserializeAws_restJs
|
|
|
1465
1465
|
const deserializeAws_restJson1ListResponsePlansCommandError = async (output, context) => {
|
|
1466
1466
|
const parsedOutput = {
|
|
1467
1467
|
...output,
|
|
1468
|
-
body: await
|
|
1468
|
+
body: await parseErrorBody(output.body, context),
|
|
1469
1469
|
};
|
|
1470
1470
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
1471
|
switch (errorCode) {
|
|
@@ -1508,7 +1508,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1508
1508
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1509
1509
|
const parsedOutput = {
|
|
1510
1510
|
...output,
|
|
1511
|
-
body: await
|
|
1511
|
+
body: await parseErrorBody(output.body, context),
|
|
1512
1512
|
};
|
|
1513
1513
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1514
|
switch (errorCode) {
|
|
@@ -1557,7 +1557,7 @@ exports.deserializeAws_restJson1ListTimelineEventsCommand = deserializeAws_restJ
|
|
|
1557
1557
|
const deserializeAws_restJson1ListTimelineEventsCommandError = async (output, context) => {
|
|
1558
1558
|
const parsedOutput = {
|
|
1559
1559
|
...output,
|
|
1560
|
-
body: await
|
|
1560
|
+
body: await parseErrorBody(output.body, context),
|
|
1561
1561
|
};
|
|
1562
1562
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
1563
|
switch (errorCode) {
|
|
@@ -1600,7 +1600,7 @@ exports.deserializeAws_restJson1PutResourcePolicyCommand = deserializeAws_restJs
|
|
|
1600
1600
|
const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, context) => {
|
|
1601
1601
|
const parsedOutput = {
|
|
1602
1602
|
...output,
|
|
1603
|
-
body: await
|
|
1603
|
+
body: await parseErrorBody(output.body, context),
|
|
1604
1604
|
};
|
|
1605
1605
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
1606
|
switch (errorCode) {
|
|
@@ -1646,7 +1646,7 @@ exports.deserializeAws_restJson1StartIncidentCommand = deserializeAws_restJson1S
|
|
|
1646
1646
|
const deserializeAws_restJson1StartIncidentCommandError = async (output, context) => {
|
|
1647
1647
|
const parsedOutput = {
|
|
1648
1648
|
...output,
|
|
1649
|
-
body: await
|
|
1649
|
+
body: await parseErrorBody(output.body, context),
|
|
1650
1650
|
};
|
|
1651
1651
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1652
1652
|
switch (errorCode) {
|
|
@@ -1692,7 +1692,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1692
1692
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1693
1693
|
const parsedOutput = {
|
|
1694
1694
|
...output,
|
|
1695
|
-
body: await
|
|
1695
|
+
body: await parseErrorBody(output.body, context),
|
|
1696
1696
|
};
|
|
1697
1697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
1698
|
switch (errorCode) {
|
|
@@ -1741,7 +1741,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1741
1741
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1742
1742
|
const parsedOutput = {
|
|
1743
1743
|
...output,
|
|
1744
|
-
body: await
|
|
1744
|
+
body: await parseErrorBody(output.body, context),
|
|
1745
1745
|
};
|
|
1746
1746
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
1747
|
switch (errorCode) {
|
|
@@ -1787,7 +1787,7 @@ exports.deserializeAws_restJson1UpdateDeletionProtectionCommand = deserializeAws
|
|
|
1787
1787
|
const deserializeAws_restJson1UpdateDeletionProtectionCommandError = async (output, context) => {
|
|
1788
1788
|
const parsedOutput = {
|
|
1789
1789
|
...output,
|
|
1790
|
-
body: await
|
|
1790
|
+
body: await parseErrorBody(output.body, context),
|
|
1791
1791
|
};
|
|
1792
1792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1793
|
switch (errorCode) {
|
|
@@ -1830,7 +1830,7 @@ exports.deserializeAws_restJson1UpdateIncidentRecordCommand = deserializeAws_res
|
|
|
1830
1830
|
const deserializeAws_restJson1UpdateIncidentRecordCommandError = async (output, context) => {
|
|
1831
1831
|
const parsedOutput = {
|
|
1832
1832
|
...output,
|
|
1833
|
-
body: await
|
|
1833
|
+
body: await parseErrorBody(output.body, context),
|
|
1834
1834
|
};
|
|
1835
1835
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1836
1836
|
switch (errorCode) {
|
|
@@ -1876,7 +1876,7 @@ exports.deserializeAws_restJson1UpdateRelatedItemsCommand = deserializeAws_restJ
|
|
|
1876
1876
|
const deserializeAws_restJson1UpdateRelatedItemsCommandError = async (output, context) => {
|
|
1877
1877
|
const parsedOutput = {
|
|
1878
1878
|
...output,
|
|
1879
|
-
body: await
|
|
1879
|
+
body: await parseErrorBody(output.body, context),
|
|
1880
1880
|
};
|
|
1881
1881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1882
1882
|
switch (errorCode) {
|
|
@@ -1922,7 +1922,7 @@ exports.deserializeAws_restJson1UpdateReplicationSetCommand = deserializeAws_res
|
|
|
1922
1922
|
const deserializeAws_restJson1UpdateReplicationSetCommandError = async (output, context) => {
|
|
1923
1923
|
const parsedOutput = {
|
|
1924
1924
|
...output,
|
|
1925
|
-
body: await
|
|
1925
|
+
body: await parseErrorBody(output.body, context),
|
|
1926
1926
|
};
|
|
1927
1927
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1928
1928
|
switch (errorCode) {
|
|
@@ -1968,7 +1968,7 @@ exports.deserializeAws_restJson1UpdateResponsePlanCommand = deserializeAws_restJ
|
|
|
1968
1968
|
const deserializeAws_restJson1UpdateResponsePlanCommandError = async (output, context) => {
|
|
1969
1969
|
const parsedOutput = {
|
|
1970
1970
|
...output,
|
|
1971
|
-
body: await
|
|
1971
|
+
body: await parseErrorBody(output.body, context),
|
|
1972
1972
|
};
|
|
1973
1973
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1974
1974
|
switch (errorCode) {
|
|
@@ -2014,7 +2014,7 @@ exports.deserializeAws_restJson1UpdateTimelineEventCommand = deserializeAws_rest
|
|
|
2014
2014
|
const deserializeAws_restJson1UpdateTimelineEventCommandError = async (output, context) => {
|
|
2015
2015
|
const parsedOutput = {
|
|
2016
2016
|
...output,
|
|
2017
|
-
body: await
|
|
2017
|
+
body: await parseErrorBody(output.body, context),
|
|
2018
2018
|
};
|
|
2019
2019
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
2020
|
switch (errorCode) {
|
|
@@ -2833,6 +2833,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2833
2833
|
}
|
|
2834
2834
|
return {};
|
|
2835
2835
|
});
|
|
2836
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2837
|
+
var _a;
|
|
2838
|
+
const value = await parseBody(errorBody, context);
|
|
2839
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2840
|
+
return value;
|
|
2841
|
+
};
|
|
2836
2842
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2837
2843
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2838
2844
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -768,7 +768,7 @@ var deserializeAws_restJson1CreateReplicationSetCommandError = function (output,
|
|
|
768
768
|
case 0:
|
|
769
769
|
_a = [__assign({}, output)];
|
|
770
770
|
_c = {};
|
|
771
|
-
return [4,
|
|
771
|
+
return [4, parseErrorBody(output.body, context)];
|
|
772
772
|
case 1:
|
|
773
773
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
774
774
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -844,7 +844,7 @@ var deserializeAws_restJson1CreateResponsePlanCommandError = function (output, c
|
|
|
844
844
|
case 0:
|
|
845
845
|
_a = [__assign({}, output)];
|
|
846
846
|
_c = {};
|
|
847
|
-
return [4,
|
|
847
|
+
return [4, parseErrorBody(output.body, context)];
|
|
848
848
|
case 1:
|
|
849
849
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
850
850
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -923,7 +923,7 @@ var deserializeAws_restJson1CreateTimelineEventCommandError = function (output,
|
|
|
923
923
|
case 0:
|
|
924
924
|
_a = [__assign({}, output)];
|
|
925
925
|
_c = {};
|
|
926
|
-
return [4,
|
|
926
|
+
return [4, parseErrorBody(output.body, context)];
|
|
927
927
|
case 1:
|
|
928
928
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
929
929
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -994,7 +994,7 @@ var deserializeAws_restJson1DeleteIncidentRecordCommandError = function (output,
|
|
|
994
994
|
case 0:
|
|
995
995
|
_a = [__assign({}, output)];
|
|
996
996
|
_c = {};
|
|
997
|
-
return [4,
|
|
997
|
+
return [4, parseErrorBody(output.body, context)];
|
|
998
998
|
case 1:
|
|
999
999
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1000
1000
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1057,7 +1057,7 @@ var deserializeAws_restJson1DeleteReplicationSetCommandError = function (output,
|
|
|
1057
1057
|
case 0:
|
|
1058
1058
|
_a = [__assign({}, output)];
|
|
1059
1059
|
_c = {};
|
|
1060
|
-
return [4,
|
|
1060
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1061
1061
|
case 1:
|
|
1062
1062
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1063
1063
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1124,7 +1124,7 @@ var deserializeAws_restJson1DeleteResourcePolicyCommandError = function (output,
|
|
|
1124
1124
|
case 0:
|
|
1125
1125
|
_a = [__assign({}, output)];
|
|
1126
1126
|
_c = {};
|
|
1127
|
-
return [4,
|
|
1127
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1128
1128
|
case 1:
|
|
1129
1129
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1130
1130
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1191,7 +1191,7 @@ var deserializeAws_restJson1DeleteResponsePlanCommandError = function (output, c
|
|
|
1191
1191
|
case 0:
|
|
1192
1192
|
_a = [__assign({}, output)];
|
|
1193
1193
|
_c = {};
|
|
1194
|
-
return [4,
|
|
1194
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1195
1195
|
case 1:
|
|
1196
1196
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1197
1197
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1254,7 +1254,7 @@ var deserializeAws_restJson1DeleteTimelineEventCommandError = function (output,
|
|
|
1254
1254
|
case 0:
|
|
1255
1255
|
_a = [__assign({}, output)];
|
|
1256
1256
|
_c = {};
|
|
1257
|
-
return [4,
|
|
1257
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1258
1258
|
case 1:
|
|
1259
1259
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1260
1260
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1322,7 +1322,7 @@ var deserializeAws_restJson1GetIncidentRecordCommandError = function (output, co
|
|
|
1322
1322
|
case 0:
|
|
1323
1323
|
_a = [__assign({}, output)];
|
|
1324
1324
|
_c = {};
|
|
1325
|
-
return [4,
|
|
1325
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1326
1326
|
case 1:
|
|
1327
1327
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1328
1328
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1394,7 +1394,7 @@ var deserializeAws_restJson1GetReplicationSetCommandError = function (output, co
|
|
|
1394
1394
|
case 0:
|
|
1395
1395
|
_a = [__assign({}, output)];
|
|
1396
1396
|
_c = {};
|
|
1397
|
-
return [4,
|
|
1397
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1398
1398
|
case 1:
|
|
1399
1399
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1400
1400
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1469,7 +1469,7 @@ var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output,
|
|
|
1469
1469
|
case 0:
|
|
1470
1470
|
_a = [__assign({}, output)];
|
|
1471
1471
|
_c = {};
|
|
1472
|
-
return [4,
|
|
1472
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1473
1473
|
case 1:
|
|
1474
1474
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1475
1475
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1559,7 +1559,7 @@ var deserializeAws_restJson1GetResponsePlanCommandError = function (output, cont
|
|
|
1559
1559
|
case 0:
|
|
1560
1560
|
_a = [__assign({}, output)];
|
|
1561
1561
|
_c = {};
|
|
1562
|
-
return [4,
|
|
1562
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1563
1563
|
case 1:
|
|
1564
1564
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1565
1565
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1631,7 +1631,7 @@ var deserializeAws_restJson1GetTimelineEventCommandError = function (output, con
|
|
|
1631
1631
|
case 0:
|
|
1632
1632
|
_a = [__assign({}, output)];
|
|
1633
1633
|
_c = {};
|
|
1634
|
-
return [4,
|
|
1634
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1635
1635
|
case 1:
|
|
1636
1636
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1637
1637
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1706,7 +1706,7 @@ var deserializeAws_restJson1ListIncidentRecordsCommandError = function (output,
|
|
|
1706
1706
|
case 0:
|
|
1707
1707
|
_a = [__assign({}, output)];
|
|
1708
1708
|
_c = {};
|
|
1709
|
-
return [4,
|
|
1709
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1710
1710
|
case 1:
|
|
1711
1711
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1712
1712
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1777,7 +1777,7 @@ var deserializeAws_restJson1ListRelatedItemsCommandError = function (output, con
|
|
|
1777
1777
|
case 0:
|
|
1778
1778
|
_a = [__assign({}, output)];
|
|
1779
1779
|
_c = {};
|
|
1780
|
-
return [4,
|
|
1780
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1781
1781
|
case 1:
|
|
1782
1782
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1783
1783
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1848,7 +1848,7 @@ var deserializeAws_restJson1ListReplicationSetsCommandError = function (output,
|
|
|
1848
1848
|
case 0:
|
|
1849
1849
|
_a = [__assign({}, output)];
|
|
1850
1850
|
_c = {};
|
|
1851
|
-
return [4,
|
|
1851
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1852
1852
|
case 1:
|
|
1853
1853
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1854
1854
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1919,7 +1919,7 @@ var deserializeAws_restJson1ListResponsePlansCommandError = function (output, co
|
|
|
1919
1919
|
case 0:
|
|
1920
1920
|
_a = [__assign({}, output)];
|
|
1921
1921
|
_c = {};
|
|
1922
|
-
return [4,
|
|
1922
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1923
1923
|
case 1:
|
|
1924
1924
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1925
1925
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1987,7 +1987,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1987
1987
|
case 0:
|
|
1988
1988
|
_a = [__assign({}, output)];
|
|
1989
1989
|
_c = {};
|
|
1990
|
-
return [4,
|
|
1990
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1991
1991
|
case 1:
|
|
1992
1992
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1993
1993
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2062,7 +2062,7 @@ var deserializeAws_restJson1ListTimelineEventsCommandError = function (output, c
|
|
|
2062
2062
|
case 0:
|
|
2063
2063
|
_a = [__assign({}, output)];
|
|
2064
2064
|
_c = {};
|
|
2065
|
-
return [4,
|
|
2065
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2066
2066
|
case 1:
|
|
2067
2067
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2068
2068
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2130,7 +2130,7 @@ var deserializeAws_restJson1PutResourcePolicyCommandError = function (output, co
|
|
|
2130
2130
|
case 0:
|
|
2131
2131
|
_a = [__assign({}, output)];
|
|
2132
2132
|
_c = {};
|
|
2133
|
-
return [4,
|
|
2133
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2134
2134
|
case 1:
|
|
2135
2135
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2136
2136
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2202,7 +2202,7 @@ var deserializeAws_restJson1StartIncidentCommandError = function (output, contex
|
|
|
2202
2202
|
case 0:
|
|
2203
2203
|
_a = [__assign({}, output)];
|
|
2204
2204
|
_c = {};
|
|
2205
|
-
return [4,
|
|
2205
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2206
2206
|
case 1:
|
|
2207
2207
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2208
2208
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2273,7 +2273,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2273
2273
|
case 0:
|
|
2274
2274
|
_a = [__assign({}, output)];
|
|
2275
2275
|
_c = {};
|
|
2276
|
-
return [4,
|
|
2276
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2277
2277
|
case 1:
|
|
2278
2278
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2279
2279
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2348,7 +2348,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2348
2348
|
case 0:
|
|
2349
2349
|
_a = [__assign({}, output)];
|
|
2350
2350
|
_c = {};
|
|
2351
|
-
return [4,
|
|
2351
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2352
2352
|
case 1:
|
|
2353
2353
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2354
2354
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2419,7 +2419,7 @@ var deserializeAws_restJson1UpdateDeletionProtectionCommandError = function (out
|
|
|
2419
2419
|
case 0:
|
|
2420
2420
|
_a = [__assign({}, output)];
|
|
2421
2421
|
_c = {};
|
|
2422
|
-
return [4,
|
|
2422
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2423
2423
|
case 1:
|
|
2424
2424
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2425
2425
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2486,7 +2486,7 @@ var deserializeAws_restJson1UpdateIncidentRecordCommandError = function (output,
|
|
|
2486
2486
|
case 0:
|
|
2487
2487
|
_a = [__assign({}, output)];
|
|
2488
2488
|
_c = {};
|
|
2489
|
-
return [4,
|
|
2489
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2490
2490
|
case 1:
|
|
2491
2491
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2492
2492
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2557,7 +2557,7 @@ var deserializeAws_restJson1UpdateRelatedItemsCommandError = function (output, c
|
|
|
2557
2557
|
case 0:
|
|
2558
2558
|
_a = [__assign({}, output)];
|
|
2559
2559
|
_c = {};
|
|
2560
|
-
return [4,
|
|
2560
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2561
2561
|
case 1:
|
|
2562
2562
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2563
2563
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2628,7 +2628,7 @@ var deserializeAws_restJson1UpdateReplicationSetCommandError = function (output,
|
|
|
2628
2628
|
case 0:
|
|
2629
2629
|
_a = [__assign({}, output)];
|
|
2630
2630
|
_c = {};
|
|
2631
|
-
return [4,
|
|
2631
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2632
2632
|
case 1:
|
|
2633
2633
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2634
2634
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2699,7 +2699,7 @@ var deserializeAws_restJson1UpdateResponsePlanCommandError = function (output, c
|
|
|
2699
2699
|
case 0:
|
|
2700
2700
|
_a = [__assign({}, output)];
|
|
2701
2701
|
_c = {};
|
|
2702
|
-
return [4,
|
|
2702
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2703
2703
|
case 1:
|
|
2704
2704
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2705
2705
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2770,7 +2770,7 @@ var deserializeAws_restJson1UpdateTimelineEventCommandError = function (output,
|
|
|
2770
2770
|
case 0:
|
|
2771
2771
|
_a = [__assign({}, output)];
|
|
2772
2772
|
_c = {};
|
|
2773
|
-
return [4,
|
|
2773
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2774
2774
|
case 1:
|
|
2775
2775
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2776
2776
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3565,6 +3565,19 @@ var parseBody = function (streamBody, context) {
|
|
|
3565
3565
|
return {};
|
|
3566
3566
|
});
|
|
3567
3567
|
};
|
|
3568
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3569
|
+
var value;
|
|
3570
|
+
var _a;
|
|
3571
|
+
return __generator(this, function (_b) {
|
|
3572
|
+
switch (_b.label) {
|
|
3573
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
3574
|
+
case 1:
|
|
3575
|
+
value = _b.sent();
|
|
3576
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3577
|
+
return [2, value];
|
|
3578
|
+
}
|
|
3579
|
+
});
|
|
3580
|
+
}); };
|
|
3568
3581
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3569
3582
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3570
3583
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm-incidents",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Incidents Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|