@aws-sdk/client-application-insights 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 +33 -27
- package/dist-es/ApplicationInsights.js +110 -117
- package/dist-es/ApplicationInsightsClient.js +22 -28
- package/dist-es/commands/CreateApplicationCommand.js +21 -28
- package/dist-es/commands/CreateComponentCommand.js +21 -28
- package/dist-es/commands/CreateLogPatternCommand.js +21 -28
- package/dist-es/commands/DeleteApplicationCommand.js +21 -28
- package/dist-es/commands/DeleteComponentCommand.js +21 -28
- package/dist-es/commands/DeleteLogPatternCommand.js +21 -28
- package/dist-es/commands/DescribeApplicationCommand.js +21 -28
- package/dist-es/commands/DescribeComponentCommand.js +21 -28
- package/dist-es/commands/DescribeComponentConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeComponentConfigurationRecommendationCommand.js +21 -28
- package/dist-es/commands/DescribeLogPatternCommand.js +21 -28
- package/dist-es/commands/DescribeObservationCommand.js +21 -28
- package/dist-es/commands/DescribeProblemCommand.js +21 -28
- package/dist-es/commands/DescribeProblemObservationsCommand.js +21 -28
- package/dist-es/commands/ListApplicationsCommand.js +21 -28
- package/dist-es/commands/ListComponentsCommand.js +21 -28
- package/dist-es/commands/ListConfigurationHistoryCommand.js +21 -28
- package/dist-es/commands/ListLogPatternSetsCommand.js +21 -28
- package/dist-es/commands/ListLogPatternsCommand.js +21 -28
- package/dist-es/commands/ListProblemsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationCommand.js +21 -28
- package/dist-es/commands/UpdateComponentCommand.js +21 -28
- package/dist-es/commands/UpdateComponentConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateLogPatternCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ApplicationInsightsServiceException.js +5 -10
- package/dist-es/models/models_0.js +283 -160
- package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
- package/dist-es/pagination/ListComponentsPaginator.js +25 -68
- package/dist-es/pagination/ListConfigurationHistoryPaginator.js +25 -68
- package/dist-es/pagination/ListLogPatternSetsPaginator.js +25 -68
- package/dist-es/pagination/ListLogPatternsPaginator.js +25 -68
- package/dist-es/pagination/ListProblemsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +1705 -2197
- 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-application-insights
|
|
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-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) => {
|