@aws-sdk/client-iottwinmaker 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/IoTTwinMaker.js +106 -113
- package/dist-es/IoTTwinMakerClient.js +22 -28
- package/dist-es/commands/BatchPutPropertyValuesCommand.js +21 -28
- package/dist-es/commands/CreateComponentTypeCommand.js +21 -28
- package/dist-es/commands/CreateEntityCommand.js +21 -28
- package/dist-es/commands/CreateSceneCommand.js +21 -28
- package/dist-es/commands/CreateWorkspaceCommand.js +21 -28
- package/dist-es/commands/DeleteComponentTypeCommand.js +21 -28
- package/dist-es/commands/DeleteEntityCommand.js +21 -28
- package/dist-es/commands/DeleteSceneCommand.js +21 -28
- package/dist-es/commands/DeleteWorkspaceCommand.js +21 -28
- package/dist-es/commands/GetComponentTypeCommand.js +21 -28
- package/dist-es/commands/GetEntityCommand.js +21 -28
- package/dist-es/commands/GetPropertyValueCommand.js +21 -28
- package/dist-es/commands/GetPropertyValueHistoryCommand.js +21 -28
- package/dist-es/commands/GetSceneCommand.js +21 -28
- package/dist-es/commands/GetWorkspaceCommand.js +21 -28
- package/dist-es/commands/ListComponentTypesCommand.js +21 -28
- package/dist-es/commands/ListEntitiesCommand.js +21 -28
- package/dist-es/commands/ListScenesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListWorkspacesCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateComponentTypeCommand.js +21 -28
- package/dist-es/commands/UpdateEntityCommand.js +21 -28
- package/dist-es/commands/UpdateSceneCommand.js +21 -28
- package/dist-es/commands/UpdateWorkspaceCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IoTTwinMakerServiceException.js +5 -10
- package/dist-es/models/models_0.js +367 -202
- package/dist-es/pagination/GetPropertyValueHistoryPaginator.js +25 -68
- package/dist-es/pagination/ListComponentTypesPaginator.js +25 -68
- package/dist-es/pagination/ListEntitiesPaginator.js +25 -68
- package/dist-es/pagination/ListScenesPaginator.js +25 -68
- package/dist-es/pagination/ListWorkspacesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2541 -3270
- 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-iottwinmaker
|
|
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-iottwinmaker
|
|
@@ -834,7 +834,7 @@ exports.deserializeAws_restJson1BatchPutPropertyValuesCommand = deserializeAws_r
|
|
|
834
834
|
const deserializeAws_restJson1BatchPutPropertyValuesCommandError = async (output, context) => {
|
|
835
835
|
const parsedOutput = {
|
|
836
836
|
...output,
|
|
837
|
-
body: await
|
|
837
|
+
body: await parseErrorBody(output.body, context),
|
|
838
838
|
};
|
|
839
839
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
840
|
switch (errorCode) {
|
|
@@ -883,7 +883,7 @@ exports.deserializeAws_restJson1CreateComponentTypeCommand = deserializeAws_rest
|
|
|
883
883
|
const deserializeAws_restJson1CreateComponentTypeCommandError = async (output, context) => {
|
|
884
884
|
const parsedOutput = {
|
|
885
885
|
...output,
|
|
886
|
-
body: await
|
|
886
|
+
body: await parseErrorBody(output.body, context),
|
|
887
887
|
};
|
|
888
888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
889
|
switch (errorCode) {
|
|
@@ -941,7 +941,7 @@ exports.deserializeAws_restJson1CreateEntityCommand = deserializeAws_restJson1Cr
|
|
|
941
941
|
const deserializeAws_restJson1CreateEntityCommandError = async (output, context) => {
|
|
942
942
|
const parsedOutput = {
|
|
943
943
|
...output,
|
|
944
|
-
body: await
|
|
944
|
+
body: await parseErrorBody(output.body, context),
|
|
945
945
|
};
|
|
946
946
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
947
947
|
switch (errorCode) {
|
|
@@ -993,7 +993,7 @@ exports.deserializeAws_restJson1CreateSceneCommand = deserializeAws_restJson1Cre
|
|
|
993
993
|
const deserializeAws_restJson1CreateSceneCommandError = async (output, context) => {
|
|
994
994
|
const parsedOutput = {
|
|
995
995
|
...output,
|
|
996
|
-
body: await
|
|
996
|
+
body: await parseErrorBody(output.body, context),
|
|
997
997
|
};
|
|
998
998
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
999
|
switch (errorCode) {
|
|
@@ -1045,7 +1045,7 @@ exports.deserializeAws_restJson1CreateWorkspaceCommand = deserializeAws_restJson
|
|
|
1045
1045
|
const deserializeAws_restJson1CreateWorkspaceCommandError = async (output, context) => {
|
|
1046
1046
|
const parsedOutput = {
|
|
1047
1047
|
...output,
|
|
1048
|
-
body: await
|
|
1048
|
+
body: await parseErrorBody(output.body, context),
|
|
1049
1049
|
};
|
|
1050
1050
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
1051
|
switch (errorCode) {
|
|
@@ -1094,7 +1094,7 @@ exports.deserializeAws_restJson1DeleteComponentTypeCommand = deserializeAws_rest
|
|
|
1094
1094
|
const deserializeAws_restJson1DeleteComponentTypeCommandError = 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_restJson1DeleteEntityCommand = deserializeAws_restJson1De
|
|
|
1140
1140
|
const deserializeAws_restJson1DeleteEntityCommandError = 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) {
|
|
@@ -1183,7 +1183,7 @@ exports.deserializeAws_restJson1DeleteSceneCommand = deserializeAws_restJson1Del
|
|
|
1183
1183
|
const deserializeAws_restJson1DeleteSceneCommandError = async (output, context) => {
|
|
1184
1184
|
const parsedOutput = {
|
|
1185
1185
|
...output,
|
|
1186
|
-
body: await
|
|
1186
|
+
body: await parseErrorBody(output.body, context),
|
|
1187
1187
|
};
|
|
1188
1188
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1189
1189
|
switch (errorCode) {
|
|
@@ -1226,7 +1226,7 @@ exports.deserializeAws_restJson1DeleteWorkspaceCommand = deserializeAws_restJson
|
|
|
1226
1226
|
const deserializeAws_restJson1DeleteWorkspaceCommandError = async (output, context) => {
|
|
1227
1227
|
const parsedOutput = {
|
|
1228
1228
|
...output,
|
|
1229
|
-
body: await
|
|
1229
|
+
body: await parseErrorBody(output.body, context),
|
|
1230
1230
|
};
|
|
1231
1231
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1232
1232
|
switch (errorCode) {
|
|
@@ -1308,7 +1308,7 @@ exports.deserializeAws_restJson1GetComponentTypeCommand = deserializeAws_restJso
|
|
|
1308
1308
|
const deserializeAws_restJson1GetComponentTypeCommandError = async (output, context) => {
|
|
1309
1309
|
const parsedOutput = {
|
|
1310
1310
|
...output,
|
|
1311
|
-
body: await
|
|
1311
|
+
body: await parseErrorBody(output.body, context),
|
|
1312
1312
|
};
|
|
1313
1313
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
1314
|
switch (errorCode) {
|
|
@@ -1381,7 +1381,7 @@ exports.deserializeAws_restJson1GetEntityCommand = deserializeAws_restJson1GetEn
|
|
|
1381
1381
|
const deserializeAws_restJson1GetEntityCommandError = async (output, context) => {
|
|
1382
1382
|
const parsedOutput = {
|
|
1383
1383
|
...output,
|
|
1384
|
-
body: await
|
|
1384
|
+
body: await parseErrorBody(output.body, context),
|
|
1385
1385
|
};
|
|
1386
1386
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
1387
|
switch (errorCode) {
|
|
@@ -1427,7 +1427,7 @@ exports.deserializeAws_restJson1GetPropertyValueCommand = deserializeAws_restJso
|
|
|
1427
1427
|
const deserializeAws_restJson1GetPropertyValueCommandError = async (output, context) => {
|
|
1428
1428
|
const parsedOutput = {
|
|
1429
1429
|
...output,
|
|
1430
|
-
body: await
|
|
1430
|
+
body: await parseErrorBody(output.body, context),
|
|
1431
1431
|
};
|
|
1432
1432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
1433
|
switch (errorCode) {
|
|
@@ -1482,7 +1482,7 @@ exports.deserializeAws_restJson1GetPropertyValueHistoryCommand = deserializeAws_
|
|
|
1482
1482
|
const deserializeAws_restJson1GetPropertyValueHistoryCommandError = async (output, context) => {
|
|
1483
1483
|
const parsedOutput = {
|
|
1484
1484
|
...output,
|
|
1485
|
-
body: await
|
|
1485
|
+
body: await parseErrorBody(output.body, context),
|
|
1486
1486
|
};
|
|
1487
1487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
1488
|
switch (errorCode) {
|
|
@@ -1555,7 +1555,7 @@ exports.deserializeAws_restJson1GetSceneCommand = deserializeAws_restJson1GetSce
|
|
|
1555
1555
|
const deserializeAws_restJson1GetSceneCommandError = async (output, context) => {
|
|
1556
1556
|
const parsedOutput = {
|
|
1557
1557
|
...output,
|
|
1558
|
-
body: await
|
|
1558
|
+
body: await parseErrorBody(output.body, context),
|
|
1559
1559
|
};
|
|
1560
1560
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
1561
|
switch (errorCode) {
|
|
@@ -1619,7 +1619,7 @@ exports.deserializeAws_restJson1GetWorkspaceCommand = deserializeAws_restJson1Ge
|
|
|
1619
1619
|
const deserializeAws_restJson1GetWorkspaceCommandError = async (output, context) => {
|
|
1620
1620
|
const parsedOutput = {
|
|
1621
1621
|
...output,
|
|
1622
|
-
body: await
|
|
1622
|
+
body: await parseErrorBody(output.body, context),
|
|
1623
1623
|
};
|
|
1624
1624
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
1625
|
switch (errorCode) {
|
|
@@ -1674,7 +1674,7 @@ exports.deserializeAws_restJson1ListComponentTypesCommand = deserializeAws_restJ
|
|
|
1674
1674
|
const deserializeAws_restJson1ListComponentTypesCommandError = async (output, context) => {
|
|
1675
1675
|
const parsedOutput = {
|
|
1676
1676
|
...output,
|
|
1677
|
-
body: await
|
|
1677
|
+
body: await parseErrorBody(output.body, context),
|
|
1678
1678
|
};
|
|
1679
1679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1680
1680
|
switch (errorCode) {
|
|
@@ -1720,7 +1720,7 @@ exports.deserializeAws_restJson1ListEntitiesCommand = deserializeAws_restJson1Li
|
|
|
1720
1720
|
const deserializeAws_restJson1ListEntitiesCommandError = async (output, context) => {
|
|
1721
1721
|
const parsedOutput = {
|
|
1722
1722
|
...output,
|
|
1723
|
-
body: await
|
|
1723
|
+
body: await parseErrorBody(output.body, context),
|
|
1724
1724
|
};
|
|
1725
1725
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
1726
|
switch (errorCode) {
|
|
@@ -1766,7 +1766,7 @@ exports.deserializeAws_restJson1ListScenesCommand = deserializeAws_restJson1List
|
|
|
1766
1766
|
const deserializeAws_restJson1ListScenesCommandError = async (output, context) => {
|
|
1767
1767
|
const parsedOutput = {
|
|
1768
1768
|
...output,
|
|
1769
|
-
body: await
|
|
1769
|
+
body: await parseErrorBody(output.body, context),
|
|
1770
1770
|
};
|
|
1771
1771
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1772
1772
|
switch (errorCode) {
|
|
@@ -1812,7 +1812,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1812
1812
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1813
1813
|
const parsedOutput = {
|
|
1814
1814
|
...output,
|
|
1815
|
-
body: await
|
|
1815
|
+
body: await parseErrorBody(output.body, context),
|
|
1816
1816
|
};
|
|
1817
1817
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
1818
|
switch (errorCode) {
|
|
@@ -1852,7 +1852,7 @@ exports.deserializeAws_restJson1ListWorkspacesCommand = deserializeAws_restJson1
|
|
|
1852
1852
|
const deserializeAws_restJson1ListWorkspacesCommandError = async (output, context) => {
|
|
1853
1853
|
const parsedOutput = {
|
|
1854
1854
|
...output,
|
|
1855
|
-
body: await
|
|
1855
|
+
body: await parseErrorBody(output.body, context),
|
|
1856
1856
|
};
|
|
1857
1857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
1858
|
switch (errorCode) {
|
|
@@ -1892,7 +1892,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1892
1892
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1893
1893
|
const parsedOutput = {
|
|
1894
1894
|
...output,
|
|
1895
|
-
body: await
|
|
1895
|
+
body: await parseErrorBody(output.body, context),
|
|
1896
1896
|
};
|
|
1897
1897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1898
1898
|
switch (errorCode) {
|
|
@@ -1929,7 +1929,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1929
1929
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1930
1930
|
const parsedOutput = {
|
|
1931
1931
|
...output,
|
|
1932
|
-
body: await
|
|
1932
|
+
body: await parseErrorBody(output.body, context),
|
|
1933
1933
|
};
|
|
1934
1934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
1935
|
switch (errorCode) {
|
|
@@ -1975,7 +1975,7 @@ exports.deserializeAws_restJson1UpdateComponentTypeCommand = deserializeAws_rest
|
|
|
1975
1975
|
const deserializeAws_restJson1UpdateComponentTypeCommandError = async (output, context) => {
|
|
1976
1976
|
const parsedOutput = {
|
|
1977
1977
|
...output,
|
|
1978
|
-
body: await
|
|
1978
|
+
body: await parseErrorBody(output.body, context),
|
|
1979
1979
|
};
|
|
1980
1980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1981
1981
|
switch (errorCode) {
|
|
@@ -2027,7 +2027,7 @@ exports.deserializeAws_restJson1UpdateEntityCommand = deserializeAws_restJson1Up
|
|
|
2027
2027
|
const deserializeAws_restJson1UpdateEntityCommandError = async (output, context) => {
|
|
2028
2028
|
const parsedOutput = {
|
|
2029
2029
|
...output,
|
|
2030
|
-
body: await
|
|
2030
|
+
body: await parseErrorBody(output.body, context),
|
|
2031
2031
|
};
|
|
2032
2032
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
2033
|
switch (errorCode) {
|
|
@@ -2079,7 +2079,7 @@ exports.deserializeAws_restJson1UpdateSceneCommand = deserializeAws_restJson1Upd
|
|
|
2079
2079
|
const deserializeAws_restJson1UpdateSceneCommandError = async (output, context) => {
|
|
2080
2080
|
const parsedOutput = {
|
|
2081
2081
|
...output,
|
|
2082
|
-
body: await
|
|
2082
|
+
body: await parseErrorBody(output.body, context),
|
|
2083
2083
|
};
|
|
2084
2084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2085
2085
|
switch (errorCode) {
|
|
@@ -2125,7 +2125,7 @@ exports.deserializeAws_restJson1UpdateWorkspaceCommand = deserializeAws_restJson
|
|
|
2125
2125
|
const deserializeAws_restJson1UpdateWorkspaceCommandError = async (output, context) => {
|
|
2126
2126
|
const parsedOutput = {
|
|
2127
2127
|
...output,
|
|
2128
|
-
body: await
|
|
2128
|
+
body: await parseErrorBody(output.body, context),
|
|
2129
2129
|
};
|
|
2130
2130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
2131
|
switch (errorCode) {
|
|
@@ -3093,6 +3093,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3093
3093
|
}
|
|
3094
3094
|
return {};
|
|
3095
3095
|
});
|
|
3096
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3097
|
+
var _a;
|
|
3098
|
+
const value = await parseBody(errorBody, context);
|
|
3099
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3100
|
+
return value;
|
|
3101
|
+
};
|
|
3096
3102
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3097
3103
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3098
3104
|
const sanitizeErrorCode = (rawValue) => {
|