@aws-sdk/client-iot-events 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +32 -26
- package/dist-es/IoTEvents.js +106 -113
- package/dist-es/IoTEventsClient.js +22 -28
- package/dist-es/commands/CreateAlarmModelCommand.js +21 -28
- package/dist-es/commands/CreateDetectorModelCommand.js +21 -28
- package/dist-es/commands/CreateInputCommand.js +21 -28
- package/dist-es/commands/DeleteAlarmModelCommand.js +21 -28
- package/dist-es/commands/DeleteDetectorModelCommand.js +21 -28
- package/dist-es/commands/DeleteInputCommand.js +21 -28
- package/dist-es/commands/DescribeAlarmModelCommand.js +21 -28
- package/dist-es/commands/DescribeDetectorModelAnalysisCommand.js +21 -28
- package/dist-es/commands/DescribeDetectorModelCommand.js +21 -28
- package/dist-es/commands/DescribeInputCommand.js +21 -28
- package/dist-es/commands/DescribeLoggingOptionsCommand.js +21 -28
- package/dist-es/commands/GetDetectorModelAnalysisResultsCommand.js +21 -28
- package/dist-es/commands/ListAlarmModelVersionsCommand.js +21 -28
- package/dist-es/commands/ListAlarmModelsCommand.js +21 -28
- package/dist-es/commands/ListDetectorModelVersionsCommand.js +21 -28
- package/dist-es/commands/ListDetectorModelsCommand.js +21 -28
- package/dist-es/commands/ListInputRoutingsCommand.js +21 -28
- package/dist-es/commands/ListInputsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PutLoggingOptionsCommand.js +22 -29
- package/dist-es/commands/StartDetectorModelAnalysisCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAlarmModelCommand.js +21 -28
- package/dist-es/commands/UpdateDetectorModelCommand.js +21 -28
- package/dist-es/commands/UpdateInputCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IoTEventsServiceException.js +5 -10
- package/dist-es/models/models_0.js +440 -215
- package/dist-es/protocols/Aws_restJson1.js +2437 -3069
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-iot-events
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
* **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))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-iot-events
|
|
@@ -626,7 +626,7 @@ exports.deserializeAws_restJson1CreateAlarmModelCommand = deserializeAws_restJso
|
|
|
626
626
|
const deserializeAws_restJson1CreateAlarmModelCommandError = async (output, context) => {
|
|
627
627
|
const parsedOutput = {
|
|
628
628
|
...output,
|
|
629
|
-
body: await
|
|
629
|
+
body: await parseErrorBody(output.body, context),
|
|
630
630
|
};
|
|
631
631
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
632
632
|
switch (errorCode) {
|
|
@@ -678,7 +678,7 @@ exports.deserializeAws_restJson1CreateDetectorModelCommand = deserializeAws_rest
|
|
|
678
678
|
const deserializeAws_restJson1CreateDetectorModelCommandError = async (output, context) => {
|
|
679
679
|
const parsedOutput = {
|
|
680
680
|
...output,
|
|
681
|
-
body: await
|
|
681
|
+
body: await parseErrorBody(output.body, context),
|
|
682
682
|
};
|
|
683
683
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
684
|
switch (errorCode) {
|
|
@@ -730,7 +730,7 @@ exports.deserializeAws_restJson1CreateInputCommand = deserializeAws_restJson1Cre
|
|
|
730
730
|
const deserializeAws_restJson1CreateInputCommandError = async (output, context) => {
|
|
731
731
|
const parsedOutput = {
|
|
732
732
|
...output,
|
|
733
|
-
body: await
|
|
733
|
+
body: await parseErrorBody(output.body, context),
|
|
734
734
|
};
|
|
735
735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
736
736
|
switch (errorCode) {
|
|
@@ -773,7 +773,7 @@ exports.deserializeAws_restJson1DeleteAlarmModelCommand = deserializeAws_restJso
|
|
|
773
773
|
const deserializeAws_restJson1DeleteAlarmModelCommandError = async (output, context) => {
|
|
774
774
|
const parsedOutput = {
|
|
775
775
|
...output,
|
|
776
|
-
body: await
|
|
776
|
+
body: await parseErrorBody(output.body, context),
|
|
777
777
|
};
|
|
778
778
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
779
|
switch (errorCode) {
|
|
@@ -819,7 +819,7 @@ exports.deserializeAws_restJson1DeleteDetectorModelCommand = deserializeAws_rest
|
|
|
819
819
|
const deserializeAws_restJson1DeleteDetectorModelCommandError = async (output, context) => {
|
|
820
820
|
const parsedOutput = {
|
|
821
821
|
...output,
|
|
822
|
-
body: await
|
|
822
|
+
body: await parseErrorBody(output.body, context),
|
|
823
823
|
};
|
|
824
824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
825
825
|
switch (errorCode) {
|
|
@@ -865,7 +865,7 @@ exports.deserializeAws_restJson1DeleteInputCommand = deserializeAws_restJson1Del
|
|
|
865
865
|
const deserializeAws_restJson1DeleteInputCommandError = async (output, context) => {
|
|
866
866
|
const parsedOutput = {
|
|
867
867
|
...output,
|
|
868
|
-
body: await
|
|
868
|
+
body: await parseErrorBody(output.body, context),
|
|
869
869
|
};
|
|
870
870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
871
|
switch (errorCode) {
|
|
@@ -956,7 +956,7 @@ exports.deserializeAws_restJson1DescribeAlarmModelCommand = deserializeAws_restJ
|
|
|
956
956
|
const deserializeAws_restJson1DescribeAlarmModelCommandError = async (output, context) => {
|
|
957
957
|
const parsedOutput = {
|
|
958
958
|
...output,
|
|
959
|
-
body: await
|
|
959
|
+
body: await parseErrorBody(output.body, context),
|
|
960
960
|
};
|
|
961
961
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
962
|
switch (errorCode) {
|
|
@@ -1002,7 +1002,7 @@ exports.deserializeAws_restJson1DescribeDetectorModelCommand = deserializeAws_re
|
|
|
1002
1002
|
const deserializeAws_restJson1DescribeDetectorModelCommandError = async (output, context) => {
|
|
1003
1003
|
const parsedOutput = {
|
|
1004
1004
|
...output,
|
|
1005
|
-
body: await
|
|
1005
|
+
body: await parseErrorBody(output.body, context),
|
|
1006
1006
|
};
|
|
1007
1007
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
1008
|
switch (errorCode) {
|
|
@@ -1048,7 +1048,7 @@ exports.deserializeAws_restJson1DescribeDetectorModelAnalysisCommand = deseriali
|
|
|
1048
1048
|
const deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = async (output, context) => {
|
|
1049
1049
|
const parsedOutput = {
|
|
1050
1050
|
...output,
|
|
1051
|
-
body: await
|
|
1051
|
+
body: await parseErrorBody(output.body, context),
|
|
1052
1052
|
};
|
|
1053
1053
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
1054
|
switch (errorCode) {
|
|
@@ -1094,7 +1094,7 @@ exports.deserializeAws_restJson1DescribeInputCommand = deserializeAws_restJson1D
|
|
|
1094
1094
|
const deserializeAws_restJson1DescribeInputCommandError = async (output, context) => {
|
|
1095
1095
|
const parsedOutput = {
|
|
1096
1096
|
...output,
|
|
1097
|
-
body: await
|
|
1097
|
+
body: await parseErrorBody(output.body, context),
|
|
1098
1098
|
};
|
|
1099
1099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1100
1100
|
switch (errorCode) {
|
|
@@ -1140,7 +1140,7 @@ exports.deserializeAws_restJson1DescribeLoggingOptionsCommand = deserializeAws_r
|
|
|
1140
1140
|
const deserializeAws_restJson1DescribeLoggingOptionsCommandError = async (output, context) => {
|
|
1141
1141
|
const parsedOutput = {
|
|
1142
1142
|
...output,
|
|
1143
|
-
body: await
|
|
1143
|
+
body: await parseErrorBody(output.body, context),
|
|
1144
1144
|
};
|
|
1145
1145
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
1146
|
switch (errorCode) {
|
|
@@ -1192,7 +1192,7 @@ exports.deserializeAws_restJson1GetDetectorModelAnalysisResultsCommand = deseria
|
|
|
1192
1192
|
const deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = async (output, context) => {
|
|
1193
1193
|
const parsedOutput = {
|
|
1194
1194
|
...output,
|
|
1195
|
-
body: await
|
|
1195
|
+
body: await parseErrorBody(output.body, context),
|
|
1196
1196
|
};
|
|
1197
1197
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
1198
|
switch (errorCode) {
|
|
@@ -1241,7 +1241,7 @@ exports.deserializeAws_restJson1ListAlarmModelsCommand = deserializeAws_restJson
|
|
|
1241
1241
|
const deserializeAws_restJson1ListAlarmModelsCommandError = async (output, context) => {
|
|
1242
1242
|
const parsedOutput = {
|
|
1243
1243
|
...output,
|
|
1244
|
-
body: await
|
|
1244
|
+
body: await parseErrorBody(output.body, context),
|
|
1245
1245
|
};
|
|
1246
1246
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
1247
|
switch (errorCode) {
|
|
@@ -1287,7 +1287,7 @@ exports.deserializeAws_restJson1ListAlarmModelVersionsCommand = deserializeAws_r
|
|
|
1287
1287
|
const deserializeAws_restJson1ListAlarmModelVersionsCommandError = async (output, context) => {
|
|
1288
1288
|
const parsedOutput = {
|
|
1289
1289
|
...output,
|
|
1290
|
-
body: await
|
|
1290
|
+
body: await parseErrorBody(output.body, context),
|
|
1291
1291
|
};
|
|
1292
1292
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
1293
|
switch (errorCode) {
|
|
@@ -1336,7 +1336,7 @@ exports.deserializeAws_restJson1ListDetectorModelsCommand = deserializeAws_restJ
|
|
|
1336
1336
|
const deserializeAws_restJson1ListDetectorModelsCommandError = async (output, context) => {
|
|
1337
1337
|
const parsedOutput = {
|
|
1338
1338
|
...output,
|
|
1339
|
-
body: await
|
|
1339
|
+
body: await parseErrorBody(output.body, context),
|
|
1340
1340
|
};
|
|
1341
1341
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
1342
|
switch (errorCode) {
|
|
@@ -1382,7 +1382,7 @@ exports.deserializeAws_restJson1ListDetectorModelVersionsCommand = deserializeAw
|
|
|
1382
1382
|
const deserializeAws_restJson1ListDetectorModelVersionsCommandError = async (output, context) => {
|
|
1383
1383
|
const parsedOutput = {
|
|
1384
1384
|
...output,
|
|
1385
|
-
body: await
|
|
1385
|
+
body: await parseErrorBody(output.body, context),
|
|
1386
1386
|
};
|
|
1387
1387
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
1388
|
switch (errorCode) {
|
|
@@ -1431,7 +1431,7 @@ exports.deserializeAws_restJson1ListInputRoutingsCommand = deserializeAws_restJs
|
|
|
1431
1431
|
const deserializeAws_restJson1ListInputRoutingsCommandError = async (output, context) => {
|
|
1432
1432
|
const parsedOutput = {
|
|
1433
1433
|
...output,
|
|
1434
|
-
body: await
|
|
1434
|
+
body: await parseErrorBody(output.body, context),
|
|
1435
1435
|
};
|
|
1436
1436
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1437
1437
|
switch (errorCode) {
|
|
@@ -1480,7 +1480,7 @@ exports.deserializeAws_restJson1ListInputsCommand = deserializeAws_restJson1List
|
|
|
1480
1480
|
const deserializeAws_restJson1ListInputsCommandError = async (output, context) => {
|
|
1481
1481
|
const parsedOutput = {
|
|
1482
1482
|
...output,
|
|
1483
|
-
body: await
|
|
1483
|
+
body: await parseErrorBody(output.body, context),
|
|
1484
1484
|
};
|
|
1485
1485
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
1486
|
switch (errorCode) {
|
|
@@ -1523,7 +1523,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1523
1523
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1524
1524
|
const parsedOutput = {
|
|
1525
1525
|
...output,
|
|
1526
|
-
body: await
|
|
1526
|
+
body: await parseErrorBody(output.body, context),
|
|
1527
1527
|
};
|
|
1528
1528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1529
1529
|
switch (errorCode) {
|
|
@@ -1566,7 +1566,7 @@ exports.deserializeAws_restJson1PutLoggingOptionsCommand = deserializeAws_restJs
|
|
|
1566
1566
|
const deserializeAws_restJson1PutLoggingOptionsCommandError = async (output, context) => {
|
|
1567
1567
|
const parsedOutput = {
|
|
1568
1568
|
...output,
|
|
1569
|
-
body: await
|
|
1569
|
+
body: await parseErrorBody(output.body, context),
|
|
1570
1570
|
};
|
|
1571
1571
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
1572
|
switch (errorCode) {
|
|
@@ -1615,7 +1615,7 @@ exports.deserializeAws_restJson1StartDetectorModelAnalysisCommand = deserializeA
|
|
|
1615
1615
|
const deserializeAws_restJson1StartDetectorModelAnalysisCommandError = async (output, context) => {
|
|
1616
1616
|
const parsedOutput = {
|
|
1617
1617
|
...output,
|
|
1618
|
-
body: await
|
|
1618
|
+
body: await parseErrorBody(output.body, context),
|
|
1619
1619
|
};
|
|
1620
1620
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1621
1621
|
switch (errorCode) {
|
|
@@ -1658,7 +1658,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1658
1658
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1659
1659
|
const parsedOutput = {
|
|
1660
1660
|
...output,
|
|
1661
|
-
body: await
|
|
1661
|
+
body: await parseErrorBody(output.body, context),
|
|
1662
1662
|
};
|
|
1663
1663
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
1664
|
switch (errorCode) {
|
|
@@ -1704,7 +1704,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1704
1704
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1705
1705
|
const parsedOutput = {
|
|
1706
1706
|
...output,
|
|
1707
|
-
body: await
|
|
1707
|
+
body: await parseErrorBody(output.body, context),
|
|
1708
1708
|
};
|
|
1709
1709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1710
|
switch (errorCode) {
|
|
@@ -1762,7 +1762,7 @@ exports.deserializeAws_restJson1UpdateAlarmModelCommand = deserializeAws_restJso
|
|
|
1762
1762
|
const deserializeAws_restJson1UpdateAlarmModelCommandError = async (output, context) => {
|
|
1763
1763
|
const parsedOutput = {
|
|
1764
1764
|
...output,
|
|
1765
|
-
body: await
|
|
1765
|
+
body: await parseErrorBody(output.body, context),
|
|
1766
1766
|
};
|
|
1767
1767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
1768
|
switch (errorCode) {
|
|
@@ -1811,7 +1811,7 @@ exports.deserializeAws_restJson1UpdateDetectorModelCommand = deserializeAws_rest
|
|
|
1811
1811
|
const deserializeAws_restJson1UpdateDetectorModelCommandError = async (output, context) => {
|
|
1812
1812
|
const parsedOutput = {
|
|
1813
1813
|
...output,
|
|
1814
|
-
body: await
|
|
1814
|
+
body: await parseErrorBody(output.body, context),
|
|
1815
1815
|
};
|
|
1816
1816
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
1817
|
switch (errorCode) {
|
|
@@ -1860,7 +1860,7 @@ exports.deserializeAws_restJson1UpdateInputCommand = deserializeAws_restJson1Upd
|
|
|
1860
1860
|
const deserializeAws_restJson1UpdateInputCommandError = async (output, context) => {
|
|
1861
1861
|
const parsedOutput = {
|
|
1862
1862
|
...output,
|
|
1863
|
-
body: await
|
|
1863
|
+
body: await parseErrorBody(output.body, context),
|
|
1864
1864
|
};
|
|
1865
1865
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1866
1866
|
switch (errorCode) {
|
|
@@ -3169,6 +3169,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3169
3169
|
}
|
|
3170
3170
|
return {};
|
|
3171
3171
|
});
|
|
3172
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3173
|
+
var _a;
|
|
3174
|
+
const value = await parseBody(errorBody, context);
|
|
3175
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3176
|
+
return value;
|
|
3177
|
+
};
|
|
3172
3178
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3173
3179
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3174
3180
|
const sanitizeErrorCode = (rawValue) => {
|