@aws-sdk/client-iotthingsgraph 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_json1_1.js +41 -35
- package/dist-es/IoTThingsGraph.js +142 -149
- package/dist-es/IoTThingsGraphClient.js +22 -28
- package/dist-es/commands/AssociateEntityToThingCommand.js +21 -28
- package/dist-es/commands/CreateFlowTemplateCommand.js +21 -28
- package/dist-es/commands/CreateSystemInstanceCommand.js +21 -28
- package/dist-es/commands/CreateSystemTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteFlowTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteNamespaceCommand.js +21 -28
- package/dist-es/commands/DeleteSystemInstanceCommand.js +21 -28
- package/dist-es/commands/DeleteSystemTemplateCommand.js +21 -28
- package/dist-es/commands/DeploySystemInstanceCommand.js +21 -28
- package/dist-es/commands/DeprecateFlowTemplateCommand.js +21 -28
- package/dist-es/commands/DeprecateSystemTemplateCommand.js +21 -28
- package/dist-es/commands/DescribeNamespaceCommand.js +21 -28
- package/dist-es/commands/DissociateEntityFromThingCommand.js +21 -28
- package/dist-es/commands/GetEntitiesCommand.js +21 -28
- package/dist-es/commands/GetFlowTemplateCommand.js +21 -28
- package/dist-es/commands/GetFlowTemplateRevisionsCommand.js +21 -28
- package/dist-es/commands/GetNamespaceDeletionStatusCommand.js +21 -28
- package/dist-es/commands/GetSystemInstanceCommand.js +21 -28
- package/dist-es/commands/GetSystemTemplateCommand.js +21 -28
- package/dist-es/commands/GetSystemTemplateRevisionsCommand.js +21 -28
- package/dist-es/commands/GetUploadStatusCommand.js +21 -28
- package/dist-es/commands/ListFlowExecutionMessagesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/SearchEntitiesCommand.js +21 -28
- package/dist-es/commands/SearchFlowExecutionsCommand.js +21 -28
- package/dist-es/commands/SearchFlowTemplatesCommand.js +21 -28
- package/dist-es/commands/SearchSystemInstancesCommand.js +21 -28
- package/dist-es/commands/SearchSystemTemplatesCommand.js +21 -28
- package/dist-es/commands/SearchThingsCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UndeploySystemInstanceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateFlowTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateSystemTemplateCommand.js +21 -28
- package/dist-es/commands/UploadEntityDefinitionsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IoTThingsGraphServiceException.js +5 -10
- package/dist-es/models/models_0.js +341 -166
- package/dist-es/pagination/GetFlowTemplateRevisionsPaginator.js +25 -68
- package/dist-es/pagination/GetSystemTemplateRevisionsPaginator.js +25 -68
- package/dist-es/pagination/ListFlowExecutionMessagesPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
- package/dist-es/pagination/SearchEntitiesPaginator.js +25 -68
- package/dist-es/pagination/SearchFlowExecutionsPaginator.js +25 -68
- package/dist-es/pagination/SearchFlowTemplatesPaginator.js +25 -68
- package/dist-es/pagination/SearchSystemInstancesPaginator.js +25 -68
- package/dist-es/pagination/SearchSystemTemplatesPaginator.js +25 -68
- package/dist-es/pagination/SearchThingsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2228 -2905
- 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-iotthingsgraph
|
|
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-iotthingsgraph
|
|
@@ -373,7 +373,7 @@ exports.deserializeAws_json1_1AssociateEntityToThingCommand = deserializeAws_jso
|
|
|
373
373
|
const deserializeAws_json1_1AssociateEntityToThingCommandError = async (output, context) => {
|
|
374
374
|
const parsedOutput = {
|
|
375
375
|
...output,
|
|
376
|
-
body: await
|
|
376
|
+
body: await parseErrorBody(output.body, context),
|
|
377
377
|
};
|
|
378
378
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
379
379
|
switch (errorCode) {
|
|
@@ -416,7 +416,7 @@ exports.deserializeAws_json1_1CreateFlowTemplateCommand = deserializeAws_json1_1
|
|
|
416
416
|
const deserializeAws_json1_1CreateFlowTemplateCommandError = async (output, context) => {
|
|
417
417
|
const parsedOutput = {
|
|
418
418
|
...output,
|
|
419
|
-
body: await
|
|
419
|
+
body: await parseErrorBody(output.body, context),
|
|
420
420
|
};
|
|
421
421
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
422
422
|
switch (errorCode) {
|
|
@@ -462,7 +462,7 @@ exports.deserializeAws_json1_1CreateSystemInstanceCommand = deserializeAws_json1
|
|
|
462
462
|
const deserializeAws_json1_1CreateSystemInstanceCommandError = async (output, context) => {
|
|
463
463
|
const parsedOutput = {
|
|
464
464
|
...output,
|
|
465
|
-
body: await
|
|
465
|
+
body: await parseErrorBody(output.body, context),
|
|
466
466
|
};
|
|
467
467
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
468
468
|
switch (errorCode) {
|
|
@@ -508,7 +508,7 @@ exports.deserializeAws_json1_1CreateSystemTemplateCommand = deserializeAws_json1
|
|
|
508
508
|
const deserializeAws_json1_1CreateSystemTemplateCommandError = async (output, context) => {
|
|
509
509
|
const parsedOutput = {
|
|
510
510
|
...output,
|
|
511
|
-
body: await
|
|
511
|
+
body: await parseErrorBody(output.body, context),
|
|
512
512
|
};
|
|
513
513
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
514
514
|
switch (errorCode) {
|
|
@@ -551,7 +551,7 @@ exports.deserializeAws_json1_1DeleteFlowTemplateCommand = deserializeAws_json1_1
|
|
|
551
551
|
const deserializeAws_json1_1DeleteFlowTemplateCommandError = async (output, context) => {
|
|
552
552
|
const parsedOutput = {
|
|
553
553
|
...output,
|
|
554
|
-
body: await
|
|
554
|
+
body: await parseErrorBody(output.body, context),
|
|
555
555
|
};
|
|
556
556
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
557
|
switch (errorCode) {
|
|
@@ -594,7 +594,7 @@ exports.deserializeAws_json1_1DeleteNamespaceCommand = deserializeAws_json1_1Del
|
|
|
594
594
|
const deserializeAws_json1_1DeleteNamespaceCommandError = async (output, context) => {
|
|
595
595
|
const parsedOutput = {
|
|
596
596
|
...output,
|
|
597
|
-
body: await
|
|
597
|
+
body: await parseErrorBody(output.body, context),
|
|
598
598
|
};
|
|
599
599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
600
|
switch (errorCode) {
|
|
@@ -631,7 +631,7 @@ exports.deserializeAws_json1_1DeleteSystemInstanceCommand = deserializeAws_json1
|
|
|
631
631
|
const deserializeAws_json1_1DeleteSystemInstanceCommandError = async (output, context) => {
|
|
632
632
|
const parsedOutput = {
|
|
633
633
|
...output,
|
|
634
|
-
body: await
|
|
634
|
+
body: await parseErrorBody(output.body, context),
|
|
635
635
|
};
|
|
636
636
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
637
|
switch (errorCode) {
|
|
@@ -674,7 +674,7 @@ exports.deserializeAws_json1_1DeleteSystemTemplateCommand = deserializeAws_json1
|
|
|
674
674
|
const deserializeAws_json1_1DeleteSystemTemplateCommandError = async (output, context) => {
|
|
675
675
|
const parsedOutput = {
|
|
676
676
|
...output,
|
|
677
|
-
body: await
|
|
677
|
+
body: await parseErrorBody(output.body, context),
|
|
678
678
|
};
|
|
679
679
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
680
680
|
switch (errorCode) {
|
|
@@ -717,7 +717,7 @@ exports.deserializeAws_json1_1DeploySystemInstanceCommand = deserializeAws_json1
|
|
|
717
717
|
const deserializeAws_json1_1DeploySystemInstanceCommandError = 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) {
|
|
@@ -763,7 +763,7 @@ exports.deserializeAws_json1_1DeprecateFlowTemplateCommand = deserializeAws_json
|
|
|
763
763
|
const deserializeAws_json1_1DeprecateFlowTemplateCommandError = async (output, context) => {
|
|
764
764
|
const parsedOutput = {
|
|
765
765
|
...output,
|
|
766
|
-
body: await
|
|
766
|
+
body: await parseErrorBody(output.body, context),
|
|
767
767
|
};
|
|
768
768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
769
|
switch (errorCode) {
|
|
@@ -806,7 +806,7 @@ exports.deserializeAws_json1_1DeprecateSystemTemplateCommand = deserializeAws_js
|
|
|
806
806
|
const deserializeAws_json1_1DeprecateSystemTemplateCommandError = async (output, context) => {
|
|
807
807
|
const parsedOutput = {
|
|
808
808
|
...output,
|
|
809
|
-
body: await
|
|
809
|
+
body: await parseErrorBody(output.body, context),
|
|
810
810
|
};
|
|
811
811
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
812
812
|
switch (errorCode) {
|
|
@@ -849,7 +849,7 @@ exports.deserializeAws_json1_1DescribeNamespaceCommand = deserializeAws_json1_1D
|
|
|
849
849
|
const deserializeAws_json1_1DescribeNamespaceCommandError = async (output, context) => {
|
|
850
850
|
const parsedOutput = {
|
|
851
851
|
...output,
|
|
852
|
-
body: await
|
|
852
|
+
body: await parseErrorBody(output.body, context),
|
|
853
853
|
};
|
|
854
854
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
855
|
switch (errorCode) {
|
|
@@ -892,7 +892,7 @@ exports.deserializeAws_json1_1DissociateEntityFromThingCommand = deserializeAws_
|
|
|
892
892
|
const deserializeAws_json1_1DissociateEntityFromThingCommandError = async (output, context) => {
|
|
893
893
|
const parsedOutput = {
|
|
894
894
|
...output,
|
|
895
|
-
body: await
|
|
895
|
+
body: await parseErrorBody(output.body, context),
|
|
896
896
|
};
|
|
897
897
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
898
|
switch (errorCode) {
|
|
@@ -935,7 +935,7 @@ exports.deserializeAws_json1_1GetEntitiesCommand = deserializeAws_json1_1GetEnti
|
|
|
935
935
|
const deserializeAws_json1_1GetEntitiesCommandError = async (output, context) => {
|
|
936
936
|
const parsedOutput = {
|
|
937
937
|
...output,
|
|
938
|
-
body: await
|
|
938
|
+
body: await parseErrorBody(output.body, context),
|
|
939
939
|
};
|
|
940
940
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
941
941
|
switch (errorCode) {
|
|
@@ -978,7 +978,7 @@ exports.deserializeAws_json1_1GetFlowTemplateCommand = deserializeAws_json1_1Get
|
|
|
978
978
|
const deserializeAws_json1_1GetFlowTemplateCommandError = async (output, context) => {
|
|
979
979
|
const parsedOutput = {
|
|
980
980
|
...output,
|
|
981
|
-
body: await
|
|
981
|
+
body: await parseErrorBody(output.body, context),
|
|
982
982
|
};
|
|
983
983
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
984
|
switch (errorCode) {
|
|
@@ -1021,7 +1021,7 @@ exports.deserializeAws_json1_1GetFlowTemplateRevisionsCommand = deserializeAws_j
|
|
|
1021
1021
|
const deserializeAws_json1_1GetFlowTemplateRevisionsCommandError = async (output, context) => {
|
|
1022
1022
|
const parsedOutput = {
|
|
1023
1023
|
...output,
|
|
1024
|
-
body: await
|
|
1024
|
+
body: await parseErrorBody(output.body, context),
|
|
1025
1025
|
};
|
|
1026
1026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
1027
|
switch (errorCode) {
|
|
@@ -1064,7 +1064,7 @@ exports.deserializeAws_json1_1GetNamespaceDeletionStatusCommand = deserializeAws
|
|
|
1064
1064
|
const deserializeAws_json1_1GetNamespaceDeletionStatusCommandError = async (output, context) => {
|
|
1065
1065
|
const parsedOutput = {
|
|
1066
1066
|
...output,
|
|
1067
|
-
body: await
|
|
1067
|
+
body: await parseErrorBody(output.body, context),
|
|
1068
1068
|
};
|
|
1069
1069
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
1070
|
switch (errorCode) {
|
|
@@ -1104,7 +1104,7 @@ exports.deserializeAws_json1_1GetSystemInstanceCommand = deserializeAws_json1_1G
|
|
|
1104
1104
|
const deserializeAws_json1_1GetSystemInstanceCommandError = async (output, context) => {
|
|
1105
1105
|
const parsedOutput = {
|
|
1106
1106
|
...output,
|
|
1107
|
-
body: await
|
|
1107
|
+
body: await parseErrorBody(output.body, context),
|
|
1108
1108
|
};
|
|
1109
1109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
1110
|
switch (errorCode) {
|
|
@@ -1147,7 +1147,7 @@ exports.deserializeAws_json1_1GetSystemTemplateCommand = deserializeAws_json1_1G
|
|
|
1147
1147
|
const deserializeAws_json1_1GetSystemTemplateCommandError = async (output, context) => {
|
|
1148
1148
|
const parsedOutput = {
|
|
1149
1149
|
...output,
|
|
1150
|
-
body: await
|
|
1150
|
+
body: await parseErrorBody(output.body, context),
|
|
1151
1151
|
};
|
|
1152
1152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
1153
|
switch (errorCode) {
|
|
@@ -1190,7 +1190,7 @@ exports.deserializeAws_json1_1GetSystemTemplateRevisionsCommand = deserializeAws
|
|
|
1190
1190
|
const deserializeAws_json1_1GetSystemTemplateRevisionsCommandError = async (output, context) => {
|
|
1191
1191
|
const parsedOutput = {
|
|
1192
1192
|
...output,
|
|
1193
|
-
body: await
|
|
1193
|
+
body: await parseErrorBody(output.body, context),
|
|
1194
1194
|
};
|
|
1195
1195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
1196
|
switch (errorCode) {
|
|
@@ -1233,7 +1233,7 @@ exports.deserializeAws_json1_1GetUploadStatusCommand = deserializeAws_json1_1Get
|
|
|
1233
1233
|
const deserializeAws_json1_1GetUploadStatusCommandError = async (output, context) => {
|
|
1234
1234
|
const parsedOutput = {
|
|
1235
1235
|
...output,
|
|
1236
|
-
body: await
|
|
1236
|
+
body: await parseErrorBody(output.body, context),
|
|
1237
1237
|
};
|
|
1238
1238
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
1239
|
switch (errorCode) {
|
|
@@ -1276,7 +1276,7 @@ exports.deserializeAws_json1_1ListFlowExecutionMessagesCommand = deserializeAws_
|
|
|
1276
1276
|
const deserializeAws_json1_1ListFlowExecutionMessagesCommandError = async (output, context) => {
|
|
1277
1277
|
const parsedOutput = {
|
|
1278
1278
|
...output,
|
|
1279
|
-
body: await
|
|
1279
|
+
body: await parseErrorBody(output.body, context),
|
|
1280
1280
|
};
|
|
1281
1281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
1282
|
switch (errorCode) {
|
|
@@ -1319,7 +1319,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1319
1319
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1320
1320
|
const parsedOutput = {
|
|
1321
1321
|
...output,
|
|
1322
|
-
body: await
|
|
1322
|
+
body: await parseErrorBody(output.body, context),
|
|
1323
1323
|
};
|
|
1324
1324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1325
1325
|
switch (errorCode) {
|
|
@@ -1362,7 +1362,7 @@ exports.deserializeAws_json1_1SearchEntitiesCommand = deserializeAws_json1_1Sear
|
|
|
1362
1362
|
const deserializeAws_json1_1SearchEntitiesCommandError = async (output, context) => {
|
|
1363
1363
|
const parsedOutput = {
|
|
1364
1364
|
...output,
|
|
1365
|
-
body: await
|
|
1365
|
+
body: await parseErrorBody(output.body, context),
|
|
1366
1366
|
};
|
|
1367
1367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
1368
|
switch (errorCode) {
|
|
@@ -1402,7 +1402,7 @@ exports.deserializeAws_json1_1SearchFlowExecutionsCommand = deserializeAws_json1
|
|
|
1402
1402
|
const deserializeAws_json1_1SearchFlowExecutionsCommandError = async (output, context) => {
|
|
1403
1403
|
const parsedOutput = {
|
|
1404
1404
|
...output,
|
|
1405
|
-
body: await
|
|
1405
|
+
body: await parseErrorBody(output.body, context),
|
|
1406
1406
|
};
|
|
1407
1407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
1408
|
switch (errorCode) {
|
|
@@ -1445,7 +1445,7 @@ exports.deserializeAws_json1_1SearchFlowTemplatesCommand = deserializeAws_json1_
|
|
|
1445
1445
|
const deserializeAws_json1_1SearchFlowTemplatesCommandError = async (output, context) => {
|
|
1446
1446
|
const parsedOutput = {
|
|
1447
1447
|
...output,
|
|
1448
|
-
body: await
|
|
1448
|
+
body: await parseErrorBody(output.body, context),
|
|
1449
1449
|
};
|
|
1450
1450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
1451
|
switch (errorCode) {
|
|
@@ -1485,7 +1485,7 @@ exports.deserializeAws_json1_1SearchSystemInstancesCommand = deserializeAws_json
|
|
|
1485
1485
|
const deserializeAws_json1_1SearchSystemInstancesCommandError = async (output, context) => {
|
|
1486
1486
|
const parsedOutput = {
|
|
1487
1487
|
...output,
|
|
1488
|
-
body: await
|
|
1488
|
+
body: await parseErrorBody(output.body, context),
|
|
1489
1489
|
};
|
|
1490
1490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1491
1491
|
switch (errorCode) {
|
|
@@ -1525,7 +1525,7 @@ exports.deserializeAws_json1_1SearchSystemTemplatesCommand = deserializeAws_json
|
|
|
1525
1525
|
const deserializeAws_json1_1SearchSystemTemplatesCommandError = async (output, context) => {
|
|
1526
1526
|
const parsedOutput = {
|
|
1527
1527
|
...output,
|
|
1528
|
-
body: await
|
|
1528
|
+
body: await parseErrorBody(output.body, context),
|
|
1529
1529
|
};
|
|
1530
1530
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1531
1531
|
switch (errorCode) {
|
|
@@ -1565,7 +1565,7 @@ exports.deserializeAws_json1_1SearchThingsCommand = deserializeAws_json1_1Search
|
|
|
1565
1565
|
const deserializeAws_json1_1SearchThingsCommandError = async (output, context) => {
|
|
1566
1566
|
const parsedOutput = {
|
|
1567
1567
|
...output,
|
|
1568
|
-
body: await
|
|
1568
|
+
body: await parseErrorBody(output.body, context),
|
|
1569
1569
|
};
|
|
1570
1570
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1571
1571
|
switch (errorCode) {
|
|
@@ -1608,7 +1608,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
1608
1608
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1609
1609
|
const parsedOutput = {
|
|
1610
1610
|
...output,
|
|
1611
|
-
body: await
|
|
1611
|
+
body: await parseErrorBody(output.body, context),
|
|
1612
1612
|
};
|
|
1613
1613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
1614
|
switch (errorCode) {
|
|
@@ -1651,7 +1651,7 @@ exports.deserializeAws_json1_1UndeploySystemInstanceCommand = deserializeAws_jso
|
|
|
1651
1651
|
const deserializeAws_json1_1UndeploySystemInstanceCommandError = async (output, context) => {
|
|
1652
1652
|
const parsedOutput = {
|
|
1653
1653
|
...output,
|
|
1654
|
-
body: await
|
|
1654
|
+
body: await parseErrorBody(output.body, context),
|
|
1655
1655
|
};
|
|
1656
1656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1657
1657
|
switch (errorCode) {
|
|
@@ -1697,7 +1697,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1697
1697
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1698
1698
|
const parsedOutput = {
|
|
1699
1699
|
...output,
|
|
1700
|
-
body: await
|
|
1700
|
+
body: await parseErrorBody(output.body, context),
|
|
1701
1701
|
};
|
|
1702
1702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
1703
|
switch (errorCode) {
|
|
@@ -1740,7 +1740,7 @@ exports.deserializeAws_json1_1UpdateFlowTemplateCommand = deserializeAws_json1_1
|
|
|
1740
1740
|
const deserializeAws_json1_1UpdateFlowTemplateCommandError = async (output, context) => {
|
|
1741
1741
|
const parsedOutput = {
|
|
1742
1742
|
...output,
|
|
1743
|
-
body: await
|
|
1743
|
+
body: await parseErrorBody(output.body, context),
|
|
1744
1744
|
};
|
|
1745
1745
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
1746
|
switch (errorCode) {
|
|
@@ -1783,7 +1783,7 @@ exports.deserializeAws_json1_1UpdateSystemTemplateCommand = deserializeAws_json1
|
|
|
1783
1783
|
const deserializeAws_json1_1UpdateSystemTemplateCommandError = async (output, context) => {
|
|
1784
1784
|
const parsedOutput = {
|
|
1785
1785
|
...output,
|
|
1786
|
-
body: await
|
|
1786
|
+
body: await parseErrorBody(output.body, context),
|
|
1787
1787
|
};
|
|
1788
1788
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1789
1789
|
switch (errorCode) {
|
|
@@ -1826,7 +1826,7 @@ exports.deserializeAws_json1_1UploadEntityDefinitionsCommand = deserializeAws_js
|
|
|
1826
1826
|
const deserializeAws_json1_1UploadEntityDefinitionsCommandError = async (output, context) => {
|
|
1827
1827
|
const parsedOutput = {
|
|
1828
1828
|
...output,
|
|
1829
|
-
body: await
|
|
1829
|
+
body: await parseErrorBody(output.body, context),
|
|
1830
1830
|
};
|
|
1831
1831
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
1832
|
switch (errorCode) {
|
|
@@ -2750,6 +2750,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2750
2750
|
}
|
|
2751
2751
|
return {};
|
|
2752
2752
|
});
|
|
2753
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2754
|
+
var _a;
|
|
2755
|
+
const value = await parseBody(errorBody, context);
|
|
2756
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2757
|
+
return value;
|
|
2758
|
+
};
|
|
2753
2759
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2754
2760
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2755
2761
|
const sanitizeErrorCode = (rawValue) => {
|