@aws-sdk/client-application-insights 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_json1_1.js +33 -27
- package/dist-es/protocols/Aws_json1_1.js +40 -27
- 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-application-insights
|
|
@@ -293,7 +293,7 @@ exports.deserializeAws_json1_1CreateApplicationCommand = deserializeAws_json1_1C
|
|
|
293
293
|
const deserializeAws_json1_1CreateApplicationCommandError = async (output, context) => {
|
|
294
294
|
const parsedOutput = {
|
|
295
295
|
...output,
|
|
296
|
-
body: await
|
|
296
|
+
body: await parseErrorBody(output.body, context),
|
|
297
297
|
};
|
|
298
298
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
299
299
|
switch (errorCode) {
|
|
@@ -342,7 +342,7 @@ exports.deserializeAws_json1_1CreateComponentCommand = deserializeAws_json1_1Cre
|
|
|
342
342
|
const deserializeAws_json1_1CreateComponentCommandError = async (output, context) => {
|
|
343
343
|
const parsedOutput = {
|
|
344
344
|
...output,
|
|
345
|
-
body: await
|
|
345
|
+
body: await parseErrorBody(output.body, context),
|
|
346
346
|
};
|
|
347
347
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
348
348
|
switch (errorCode) {
|
|
@@ -385,7 +385,7 @@ exports.deserializeAws_json1_1CreateLogPatternCommand = deserializeAws_json1_1Cr
|
|
|
385
385
|
const deserializeAws_json1_1CreateLogPatternCommandError = async (output, context) => {
|
|
386
386
|
const parsedOutput = {
|
|
387
387
|
...output,
|
|
388
|
-
body: await
|
|
388
|
+
body: await parseErrorBody(output.body, context),
|
|
389
389
|
};
|
|
390
390
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
391
391
|
switch (errorCode) {
|
|
@@ -428,7 +428,7 @@ exports.deserializeAws_json1_1DeleteApplicationCommand = deserializeAws_json1_1D
|
|
|
428
428
|
const deserializeAws_json1_1DeleteApplicationCommandError = async (output, context) => {
|
|
429
429
|
const parsedOutput = {
|
|
430
430
|
...output,
|
|
431
|
-
body: await
|
|
431
|
+
body: await parseErrorBody(output.body, context),
|
|
432
432
|
};
|
|
433
433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
434
434
|
switch (errorCode) {
|
|
@@ -471,7 +471,7 @@ exports.deserializeAws_json1_1DeleteComponentCommand = deserializeAws_json1_1Del
|
|
|
471
471
|
const deserializeAws_json1_1DeleteComponentCommandError = async (output, context) => {
|
|
472
472
|
const parsedOutput = {
|
|
473
473
|
...output,
|
|
474
|
-
body: await
|
|
474
|
+
body: await parseErrorBody(output.body, context),
|
|
475
475
|
};
|
|
476
476
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
477
477
|
switch (errorCode) {
|
|
@@ -511,7 +511,7 @@ exports.deserializeAws_json1_1DeleteLogPatternCommand = deserializeAws_json1_1De
|
|
|
511
511
|
const deserializeAws_json1_1DeleteLogPatternCommandError = async (output, context) => {
|
|
512
512
|
const parsedOutput = {
|
|
513
513
|
...output,
|
|
514
|
-
body: await
|
|
514
|
+
body: await parseErrorBody(output.body, context),
|
|
515
515
|
};
|
|
516
516
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
517
517
|
switch (errorCode) {
|
|
@@ -554,7 +554,7 @@ exports.deserializeAws_json1_1DescribeApplicationCommand = deserializeAws_json1_
|
|
|
554
554
|
const deserializeAws_json1_1DescribeApplicationCommandError = async (output, context) => {
|
|
555
555
|
const parsedOutput = {
|
|
556
556
|
...output,
|
|
557
|
-
body: await
|
|
557
|
+
body: await parseErrorBody(output.body, context),
|
|
558
558
|
};
|
|
559
559
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
560
|
switch (errorCode) {
|
|
@@ -594,7 +594,7 @@ exports.deserializeAws_json1_1DescribeComponentCommand = deserializeAws_json1_1D
|
|
|
594
594
|
const deserializeAws_json1_1DescribeComponentCommandError = 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) {
|
|
@@ -634,7 +634,7 @@ exports.deserializeAws_json1_1DescribeComponentConfigurationCommand = deserializ
|
|
|
634
634
|
const deserializeAws_json1_1DescribeComponentConfigurationCommandError = async (output, context) => {
|
|
635
635
|
const parsedOutput = {
|
|
636
636
|
...output,
|
|
637
|
-
body: await
|
|
637
|
+
body: await parseErrorBody(output.body, context),
|
|
638
638
|
};
|
|
639
639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
640
|
switch (errorCode) {
|
|
@@ -674,7 +674,7 @@ exports.deserializeAws_json1_1DescribeComponentConfigurationRecommendationComman
|
|
|
674
674
|
const deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommandError = 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) {
|
|
@@ -714,7 +714,7 @@ exports.deserializeAws_json1_1DescribeLogPatternCommand = deserializeAws_json1_1
|
|
|
714
714
|
const deserializeAws_json1_1DescribeLogPatternCommandError = async (output, context) => {
|
|
715
715
|
const parsedOutput = {
|
|
716
716
|
...output,
|
|
717
|
-
body: await
|
|
717
|
+
body: await parseErrorBody(output.body, context),
|
|
718
718
|
};
|
|
719
719
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
720
|
switch (errorCode) {
|
|
@@ -754,7 +754,7 @@ exports.deserializeAws_json1_1DescribeObservationCommand = deserializeAws_json1_
|
|
|
754
754
|
const deserializeAws_json1_1DescribeObservationCommandError = async (output, context) => {
|
|
755
755
|
const parsedOutput = {
|
|
756
756
|
...output,
|
|
757
|
-
body: await
|
|
757
|
+
body: await parseErrorBody(output.body, context),
|
|
758
758
|
};
|
|
759
759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
760
|
switch (errorCode) {
|
|
@@ -794,7 +794,7 @@ exports.deserializeAws_json1_1DescribeProblemCommand = deserializeAws_json1_1Des
|
|
|
794
794
|
const deserializeAws_json1_1DescribeProblemCommandError = async (output, context) => {
|
|
795
795
|
const parsedOutput = {
|
|
796
796
|
...output,
|
|
797
|
-
body: await
|
|
797
|
+
body: await parseErrorBody(output.body, context),
|
|
798
798
|
};
|
|
799
799
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
800
|
switch (errorCode) {
|
|
@@ -834,7 +834,7 @@ exports.deserializeAws_json1_1DescribeProblemObservationsCommand = deserializeAw
|
|
|
834
834
|
const deserializeAws_json1_1DescribeProblemObservationsCommandError = 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) {
|
|
@@ -874,7 +874,7 @@ exports.deserializeAws_json1_1ListApplicationsCommand = deserializeAws_json1_1Li
|
|
|
874
874
|
const deserializeAws_json1_1ListApplicationsCommandError = async (output, context) => {
|
|
875
875
|
const parsedOutput = {
|
|
876
876
|
...output,
|
|
877
|
-
body: await
|
|
877
|
+
body: await parseErrorBody(output.body, context),
|
|
878
878
|
};
|
|
879
879
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
880
880
|
switch (errorCode) {
|
|
@@ -911,7 +911,7 @@ exports.deserializeAws_json1_1ListComponentsCommand = deserializeAws_json1_1List
|
|
|
911
911
|
const deserializeAws_json1_1ListComponentsCommandError = async (output, context) => {
|
|
912
912
|
const parsedOutput = {
|
|
913
913
|
...output,
|
|
914
|
-
body: await
|
|
914
|
+
body: await parseErrorBody(output.body, context),
|
|
915
915
|
};
|
|
916
916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
917
|
switch (errorCode) {
|
|
@@ -951,7 +951,7 @@ exports.deserializeAws_json1_1ListConfigurationHistoryCommand = deserializeAws_j
|
|
|
951
951
|
const deserializeAws_json1_1ListConfigurationHistoryCommandError = async (output, context) => {
|
|
952
952
|
const parsedOutput = {
|
|
953
953
|
...output,
|
|
954
|
-
body: await
|
|
954
|
+
body: await parseErrorBody(output.body, context),
|
|
955
955
|
};
|
|
956
956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
957
|
switch (errorCode) {
|
|
@@ -991,7 +991,7 @@ exports.deserializeAws_json1_1ListLogPatternsCommand = deserializeAws_json1_1Lis
|
|
|
991
991
|
const deserializeAws_json1_1ListLogPatternsCommandError = async (output, context) => {
|
|
992
992
|
const parsedOutput = {
|
|
993
993
|
...output,
|
|
994
|
-
body: await
|
|
994
|
+
body: await parseErrorBody(output.body, context),
|
|
995
995
|
};
|
|
996
996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
997
997
|
switch (errorCode) {
|
|
@@ -1031,7 +1031,7 @@ exports.deserializeAws_json1_1ListLogPatternSetsCommand = deserializeAws_json1_1
|
|
|
1031
1031
|
const deserializeAws_json1_1ListLogPatternSetsCommandError = async (output, context) => {
|
|
1032
1032
|
const parsedOutput = {
|
|
1033
1033
|
...output,
|
|
1034
|
-
body: await
|
|
1034
|
+
body: await parseErrorBody(output.body, context),
|
|
1035
1035
|
};
|
|
1036
1036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
1037
|
switch (errorCode) {
|
|
@@ -1071,7 +1071,7 @@ exports.deserializeAws_json1_1ListProblemsCommand = deserializeAws_json1_1ListPr
|
|
|
1071
1071
|
const deserializeAws_json1_1ListProblemsCommandError = async (output, context) => {
|
|
1072
1072
|
const parsedOutput = {
|
|
1073
1073
|
...output,
|
|
1074
|
-
body: await
|
|
1074
|
+
body: await parseErrorBody(output.body, context),
|
|
1075
1075
|
};
|
|
1076
1076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
1077
|
switch (errorCode) {
|
|
@@ -1111,7 +1111,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1111
1111
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1112
1112
|
const parsedOutput = {
|
|
1113
1113
|
...output,
|
|
1114
|
-
body: await
|
|
1114
|
+
body: await parseErrorBody(output.body, context),
|
|
1115
1115
|
};
|
|
1116
1116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1117
1117
|
switch (errorCode) {
|
|
@@ -1148,7 +1148,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
1148
1148
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1149
1149
|
const parsedOutput = {
|
|
1150
1150
|
...output,
|
|
1151
|
-
body: await
|
|
1151
|
+
body: await parseErrorBody(output.body, context),
|
|
1152
1152
|
};
|
|
1153
1153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1154
|
switch (errorCode) {
|
|
@@ -1188,7 +1188,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1188
1188
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1189
1189
|
const parsedOutput = {
|
|
1190
1190
|
...output,
|
|
1191
|
-
body: await
|
|
1191
|
+
body: await parseErrorBody(output.body, context),
|
|
1192
1192
|
};
|
|
1193
1193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1194
|
switch (errorCode) {
|
|
@@ -1225,7 +1225,7 @@ exports.deserializeAws_json1_1UpdateApplicationCommand = deserializeAws_json1_1U
|
|
|
1225
1225
|
const deserializeAws_json1_1UpdateApplicationCommandError = async (output, context) => {
|
|
1226
1226
|
const parsedOutput = {
|
|
1227
1227
|
...output,
|
|
1228
|
-
body: await
|
|
1228
|
+
body: await parseErrorBody(output.body, context),
|
|
1229
1229
|
};
|
|
1230
1230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1231
1231
|
switch (errorCode) {
|
|
@@ -1265,7 +1265,7 @@ exports.deserializeAws_json1_1UpdateComponentCommand = deserializeAws_json1_1Upd
|
|
|
1265
1265
|
const deserializeAws_json1_1UpdateComponentCommandError = async (output, context) => {
|
|
1266
1266
|
const parsedOutput = {
|
|
1267
1267
|
...output,
|
|
1268
|
-
body: await
|
|
1268
|
+
body: await parseErrorBody(output.body, context),
|
|
1269
1269
|
};
|
|
1270
1270
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
1271
|
switch (errorCode) {
|
|
@@ -1308,7 +1308,7 @@ exports.deserializeAws_json1_1UpdateComponentConfigurationCommand = deserializeA
|
|
|
1308
1308
|
const deserializeAws_json1_1UpdateComponentConfigurationCommandError = 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) {
|
|
@@ -1348,7 +1348,7 @@ exports.deserializeAws_json1_1UpdateLogPatternCommand = deserializeAws_json1_1Up
|
|
|
1348
1348
|
const deserializeAws_json1_1UpdateLogPatternCommandError = async (output, context) => {
|
|
1349
1349
|
const parsedOutput = {
|
|
1350
1350
|
...output,
|
|
1351
|
-
body: await
|
|
1351
|
+
body: await parseErrorBody(output.body, context),
|
|
1352
1352
|
};
|
|
1353
1353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1354
1354
|
switch (errorCode) {
|
|
@@ -2153,6 +2153,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2153
2153
|
}
|
|
2154
2154
|
return {};
|
|
2155
2155
|
});
|
|
2156
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2157
|
+
var _a;
|
|
2158
|
+
const value = await parseBody(errorBody, context);
|
|
2159
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2160
|
+
return value;
|
|
2161
|
+
};
|
|
2156
2162
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2157
2163
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2158
2164
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -326,7 +326,7 @@ var deserializeAws_json1_1CreateApplicationCommandError = function (output, cont
|
|
|
326
326
|
case 0:
|
|
327
327
|
_a = [__assign({}, output)];
|
|
328
328
|
_c = {};
|
|
329
|
-
return [4,
|
|
329
|
+
return [4, parseErrorBody(output.body, context)];
|
|
330
330
|
case 1:
|
|
331
331
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
332
332
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -397,7 +397,7 @@ var deserializeAws_json1_1CreateComponentCommandError = function (output, contex
|
|
|
397
397
|
case 0:
|
|
398
398
|
_a = [__assign({}, output)];
|
|
399
399
|
_c = {};
|
|
400
|
-
return [4,
|
|
400
|
+
return [4, parseErrorBody(output.body, context)];
|
|
401
401
|
case 1:
|
|
402
402
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
403
403
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -460,7 +460,7 @@ var deserializeAws_json1_1CreateLogPatternCommandError = function (output, conte
|
|
|
460
460
|
case 0:
|
|
461
461
|
_a = [__assign({}, output)];
|
|
462
462
|
_c = {};
|
|
463
|
-
return [4,
|
|
463
|
+
return [4, parseErrorBody(output.body, context)];
|
|
464
464
|
case 1:
|
|
465
465
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
466
466
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -523,7 +523,7 @@ var deserializeAws_json1_1DeleteApplicationCommandError = function (output, cont
|
|
|
523
523
|
case 0:
|
|
524
524
|
_a = [__assign({}, output)];
|
|
525
525
|
_c = {};
|
|
526
|
-
return [4,
|
|
526
|
+
return [4, parseErrorBody(output.body, context)];
|
|
527
527
|
case 1:
|
|
528
528
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
529
529
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -586,7 +586,7 @@ var deserializeAws_json1_1DeleteComponentCommandError = function (output, contex
|
|
|
586
586
|
case 0:
|
|
587
587
|
_a = [__assign({}, output)];
|
|
588
588
|
_c = {};
|
|
589
|
-
return [4,
|
|
589
|
+
return [4, parseErrorBody(output.body, context)];
|
|
590
590
|
case 1:
|
|
591
591
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
592
592
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -645,7 +645,7 @@ var deserializeAws_json1_1DeleteLogPatternCommandError = function (output, conte
|
|
|
645
645
|
case 0:
|
|
646
646
|
_a = [__assign({}, output)];
|
|
647
647
|
_c = {};
|
|
648
|
-
return [4,
|
|
648
|
+
return [4, parseErrorBody(output.body, context)];
|
|
649
649
|
case 1:
|
|
650
650
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
651
651
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -708,7 +708,7 @@ var deserializeAws_json1_1DescribeApplicationCommandError = function (output, co
|
|
|
708
708
|
case 0:
|
|
709
709
|
_a = [__assign({}, output)];
|
|
710
710
|
_c = {};
|
|
711
|
-
return [4,
|
|
711
|
+
return [4, parseErrorBody(output.body, context)];
|
|
712
712
|
case 1:
|
|
713
713
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
714
714
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -767,7 +767,7 @@ var deserializeAws_json1_1DescribeComponentCommandError = function (output, cont
|
|
|
767
767
|
case 0:
|
|
768
768
|
_a = [__assign({}, output)];
|
|
769
769
|
_c = {};
|
|
770
|
-
return [4,
|
|
770
|
+
return [4, parseErrorBody(output.body, context)];
|
|
771
771
|
case 1:
|
|
772
772
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
773
773
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -826,7 +826,7 @@ var deserializeAws_json1_1DescribeComponentConfigurationCommandError = function
|
|
|
826
826
|
case 0:
|
|
827
827
|
_a = [__assign({}, output)];
|
|
828
828
|
_c = {};
|
|
829
|
-
return [4,
|
|
829
|
+
return [4, parseErrorBody(output.body, context)];
|
|
830
830
|
case 1:
|
|
831
831
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
832
832
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -885,7 +885,7 @@ var deserializeAws_json1_1DescribeComponentConfigurationRecommendationCommandErr
|
|
|
885
885
|
case 0:
|
|
886
886
|
_a = [__assign({}, output)];
|
|
887
887
|
_c = {};
|
|
888
|
-
return [4,
|
|
888
|
+
return [4, parseErrorBody(output.body, context)];
|
|
889
889
|
case 1:
|
|
890
890
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
891
891
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -944,7 +944,7 @@ var deserializeAws_json1_1DescribeLogPatternCommandError = function (output, con
|
|
|
944
944
|
case 0:
|
|
945
945
|
_a = [__assign({}, output)];
|
|
946
946
|
_c = {};
|
|
947
|
-
return [4,
|
|
947
|
+
return [4, parseErrorBody(output.body, context)];
|
|
948
948
|
case 1:
|
|
949
949
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
950
950
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1003,7 +1003,7 @@ var deserializeAws_json1_1DescribeObservationCommandError = function (output, co
|
|
|
1003
1003
|
case 0:
|
|
1004
1004
|
_a = [__assign({}, output)];
|
|
1005
1005
|
_c = {};
|
|
1006
|
-
return [4,
|
|
1006
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1007
1007
|
case 1:
|
|
1008
1008
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1009
1009
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1062,7 +1062,7 @@ var deserializeAws_json1_1DescribeProblemCommandError = function (output, contex
|
|
|
1062
1062
|
case 0:
|
|
1063
1063
|
_a = [__assign({}, output)];
|
|
1064
1064
|
_c = {};
|
|
1065
|
-
return [4,
|
|
1065
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1066
1066
|
case 1:
|
|
1067
1067
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1068
1068
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1121,7 +1121,7 @@ var deserializeAws_json1_1DescribeProblemObservationsCommandError = function (ou
|
|
|
1121
1121
|
case 0:
|
|
1122
1122
|
_a = [__assign({}, output)];
|
|
1123
1123
|
_c = {};
|
|
1124
|
-
return [4,
|
|
1124
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1125
1125
|
case 1:
|
|
1126
1126
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1127
1127
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1180,7 +1180,7 @@ var deserializeAws_json1_1ListApplicationsCommandError = function (output, conte
|
|
|
1180
1180
|
case 0:
|
|
1181
1181
|
_a = [__assign({}, output)];
|
|
1182
1182
|
_c = {};
|
|
1183
|
-
return [4,
|
|
1183
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1184
1184
|
case 1:
|
|
1185
1185
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1186
1186
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1235,7 +1235,7 @@ var deserializeAws_json1_1ListComponentsCommandError = function (output, context
|
|
|
1235
1235
|
case 0:
|
|
1236
1236
|
_a = [__assign({}, output)];
|
|
1237
1237
|
_c = {};
|
|
1238
|
-
return [4,
|
|
1238
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1239
1239
|
case 1:
|
|
1240
1240
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1241
1241
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1294,7 +1294,7 @@ var deserializeAws_json1_1ListConfigurationHistoryCommandError = function (outpu
|
|
|
1294
1294
|
case 0:
|
|
1295
1295
|
_a = [__assign({}, output)];
|
|
1296
1296
|
_c = {};
|
|
1297
|
-
return [4,
|
|
1297
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1298
1298
|
case 1:
|
|
1299
1299
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1300
1300
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1353,7 +1353,7 @@ var deserializeAws_json1_1ListLogPatternsCommandError = function (output, contex
|
|
|
1353
1353
|
case 0:
|
|
1354
1354
|
_a = [__assign({}, output)];
|
|
1355
1355
|
_c = {};
|
|
1356
|
-
return [4,
|
|
1356
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1357
1357
|
case 1:
|
|
1358
1358
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1359
1359
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1412,7 +1412,7 @@ var deserializeAws_json1_1ListLogPatternSetsCommandError = function (output, con
|
|
|
1412
1412
|
case 0:
|
|
1413
1413
|
_a = [__assign({}, output)];
|
|
1414
1414
|
_c = {};
|
|
1415
|
-
return [4,
|
|
1415
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1416
1416
|
case 1:
|
|
1417
1417
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1418
1418
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1471,7 +1471,7 @@ var deserializeAws_json1_1ListProblemsCommandError = function (output, context)
|
|
|
1471
1471
|
case 0:
|
|
1472
1472
|
_a = [__assign({}, output)];
|
|
1473
1473
|
_c = {};
|
|
1474
|
-
return [4,
|
|
1474
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1475
1475
|
case 1:
|
|
1476
1476
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1477
1477
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1530,7 +1530,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1530
1530
|
case 0:
|
|
1531
1531
|
_a = [__assign({}, output)];
|
|
1532
1532
|
_c = {};
|
|
1533
|
-
return [4,
|
|
1533
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1534
1534
|
case 1:
|
|
1535
1535
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1536
1536
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1585,7 +1585,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
1585
1585
|
case 0:
|
|
1586
1586
|
_a = [__assign({}, output)];
|
|
1587
1587
|
_c = {};
|
|
1588
|
-
return [4,
|
|
1588
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1589
1589
|
case 1:
|
|
1590
1590
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1591
1591
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1644,7 +1644,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
1644
1644
|
case 0:
|
|
1645
1645
|
_a = [__assign({}, output)];
|
|
1646
1646
|
_c = {};
|
|
1647
|
-
return [4,
|
|
1647
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1648
1648
|
case 1:
|
|
1649
1649
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1650
1650
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1699,7 +1699,7 @@ var deserializeAws_json1_1UpdateApplicationCommandError = function (output, cont
|
|
|
1699
1699
|
case 0:
|
|
1700
1700
|
_a = [__assign({}, output)];
|
|
1701
1701
|
_c = {};
|
|
1702
|
-
return [4,
|
|
1702
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1703
1703
|
case 1:
|
|
1704
1704
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1705
1705
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1758,7 +1758,7 @@ var deserializeAws_json1_1UpdateComponentCommandError = function (output, contex
|
|
|
1758
1758
|
case 0:
|
|
1759
1759
|
_a = [__assign({}, output)];
|
|
1760
1760
|
_c = {};
|
|
1761
|
-
return [4,
|
|
1761
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1762
1762
|
case 1:
|
|
1763
1763
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1764
1764
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1821,7 +1821,7 @@ var deserializeAws_json1_1UpdateComponentConfigurationCommandError = function (o
|
|
|
1821
1821
|
case 0:
|
|
1822
1822
|
_a = [__assign({}, output)];
|
|
1823
1823
|
_c = {};
|
|
1824
|
-
return [4,
|
|
1824
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1825
1825
|
case 1:
|
|
1826
1826
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1827
1827
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1880,7 +1880,7 @@ var deserializeAws_json1_1UpdateLogPatternCommandError = function (output, conte
|
|
|
1880
1880
|
case 0:
|
|
1881
1881
|
_a = [__assign({}, output)];
|
|
1882
1882
|
_c = {};
|
|
1883
|
-
return [4,
|
|
1883
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1884
1884
|
case 1:
|
|
1885
1885
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1886
1886
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2589,6 +2589,19 @@ var parseBody = function (streamBody, context) {
|
|
|
2589
2589
|
return {};
|
|
2590
2590
|
});
|
|
2591
2591
|
};
|
|
2592
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2593
|
+
var value;
|
|
2594
|
+
var _a;
|
|
2595
|
+
return __generator(this, function (_b) {
|
|
2596
|
+
switch (_b.label) {
|
|
2597
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2598
|
+
case 1:
|
|
2599
|
+
value = _b.sent();
|
|
2600
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2601
|
+
return [2, value];
|
|
2602
|
+
}
|
|
2603
|
+
});
|
|
2604
|
+
}); };
|
|
2592
2605
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2593
2606
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2594
2607
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-application-insights",
|
|
3
3
|
"description": "AWS SDK for JavaScript Application Insights 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",
|