@aws-sdk/client-cloudwatch-logs 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 +48 -42
- package/dist-es/CloudWatchLogs.js +170 -177
- package/dist-es/CloudWatchLogsClient.js +22 -28
- package/dist-es/commands/AssociateKmsKeyCommand.js +22 -29
- package/dist-es/commands/CancelExportTaskCommand.js +22 -29
- package/dist-es/commands/CreateExportTaskCommand.js +21 -28
- package/dist-es/commands/CreateLogGroupCommand.js +22 -29
- package/dist-es/commands/CreateLogStreamCommand.js +22 -29
- package/dist-es/commands/DeleteDestinationCommand.js +22 -29
- package/dist-es/commands/DeleteLogGroupCommand.js +22 -29
- package/dist-es/commands/DeleteLogStreamCommand.js +22 -29
- package/dist-es/commands/DeleteMetricFilterCommand.js +22 -29
- package/dist-es/commands/DeleteQueryDefinitionCommand.js +21 -28
- package/dist-es/commands/DeleteResourcePolicyCommand.js +22 -29
- package/dist-es/commands/DeleteRetentionPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteSubscriptionFilterCommand.js +22 -29
- package/dist-es/commands/DescribeDestinationsCommand.js +21 -28
- package/dist-es/commands/DescribeExportTasksCommand.js +21 -28
- package/dist-es/commands/DescribeLogGroupsCommand.js +21 -28
- package/dist-es/commands/DescribeLogStreamsCommand.js +21 -28
- package/dist-es/commands/DescribeMetricFiltersCommand.js +21 -28
- package/dist-es/commands/DescribeQueriesCommand.js +21 -28
- package/dist-es/commands/DescribeQueryDefinitionsCommand.js +21 -28
- package/dist-es/commands/DescribeResourcePoliciesCommand.js +21 -28
- package/dist-es/commands/DescribeSubscriptionFiltersCommand.js +21 -28
- package/dist-es/commands/DisassociateKmsKeyCommand.js +22 -29
- package/dist-es/commands/FilterLogEventsCommand.js +21 -28
- package/dist-es/commands/GetLogEventsCommand.js +21 -28
- package/dist-es/commands/GetLogGroupFieldsCommand.js +21 -28
- package/dist-es/commands/GetLogRecordCommand.js +21 -28
- package/dist-es/commands/GetQueryResultsCommand.js +21 -28
- package/dist-es/commands/ListTagsLogGroupCommand.js +21 -28
- package/dist-es/commands/PutDestinationCommand.js +21 -28
- package/dist-es/commands/PutDestinationPolicyCommand.js +22 -29
- package/dist-es/commands/PutLogEventsCommand.js +21 -28
- package/dist-es/commands/PutMetricFilterCommand.js +22 -29
- package/dist-es/commands/PutQueryDefinitionCommand.js +21 -28
- package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
- package/dist-es/commands/PutRetentionPolicyCommand.js +22 -29
- package/dist-es/commands/PutSubscriptionFilterCommand.js +22 -29
- package/dist-es/commands/StartQueryCommand.js +21 -28
- package/dist-es/commands/StopQueryCommand.js +21 -28
- package/dist-es/commands/TagLogGroupCommand.js +22 -29
- package/dist-es/commands/TestMetricFilterCommand.js +21 -28
- package/dist-es/commands/UntagLogGroupCommand.js +22 -29
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CloudWatchLogsServiceException.js +5 -10
- package/dist-es/models/models_0.js +391 -214
- package/dist-es/pagination/DescribeDestinationsPaginator.js +25 -68
- package/dist-es/pagination/DescribeLogGroupsPaginator.js +25 -68
- package/dist-es/pagination/DescribeLogStreamsPaginator.js +25 -68
- package/dist-es/pagination/DescribeMetricFiltersPaginator.js +25 -68
- package/dist-es/pagination/DescribeSubscriptionFiltersPaginator.js +25 -68
- package/dist-es/pagination/FilterLogEventsPaginator.js +25 -68
- package/dist-es/pagination/GetLogEventsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2613 -3438
- 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-cloudwatch-logs
|
|
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-cloudwatch-logs
|
|
@@ -440,7 +440,7 @@ exports.deserializeAws_json1_1AssociateKmsKeyCommand = deserializeAws_json1_1Ass
|
|
|
440
440
|
const deserializeAws_json1_1AssociateKmsKeyCommandError = async (output, context) => {
|
|
441
441
|
const parsedOutput = {
|
|
442
442
|
...output,
|
|
443
|
-
body: await
|
|
443
|
+
body: await parseErrorBody(output.body, context),
|
|
444
444
|
};
|
|
445
445
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
446
446
|
switch (errorCode) {
|
|
@@ -480,7 +480,7 @@ exports.deserializeAws_json1_1CancelExportTaskCommand = deserializeAws_json1_1Ca
|
|
|
480
480
|
const deserializeAws_json1_1CancelExportTaskCommandError = async (output, context) => {
|
|
481
481
|
const parsedOutput = {
|
|
482
482
|
...output,
|
|
483
|
-
body: await
|
|
483
|
+
body: await parseErrorBody(output.body, context),
|
|
484
484
|
};
|
|
485
485
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
486
|
switch (errorCode) {
|
|
@@ -523,7 +523,7 @@ exports.deserializeAws_json1_1CreateExportTaskCommand = deserializeAws_json1_1Cr
|
|
|
523
523
|
const deserializeAws_json1_1CreateExportTaskCommandError = async (output, context) => {
|
|
524
524
|
const parsedOutput = {
|
|
525
525
|
...output,
|
|
526
|
-
body: await
|
|
526
|
+
body: await parseErrorBody(output.body, context),
|
|
527
527
|
};
|
|
528
528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
529
529
|
switch (errorCode) {
|
|
@@ -569,7 +569,7 @@ exports.deserializeAws_json1_1CreateLogGroupCommand = deserializeAws_json1_1Crea
|
|
|
569
569
|
const deserializeAws_json1_1CreateLogGroupCommandError = async (output, context) => {
|
|
570
570
|
const parsedOutput = {
|
|
571
571
|
...output,
|
|
572
|
-
body: await
|
|
572
|
+
body: await parseErrorBody(output.body, context),
|
|
573
573
|
};
|
|
574
574
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
575
575
|
switch (errorCode) {
|
|
@@ -612,7 +612,7 @@ exports.deserializeAws_json1_1CreateLogStreamCommand = deserializeAws_json1_1Cre
|
|
|
612
612
|
const deserializeAws_json1_1CreateLogStreamCommandError = async (output, context) => {
|
|
613
613
|
const parsedOutput = {
|
|
614
614
|
...output,
|
|
615
|
-
body: await
|
|
615
|
+
body: await parseErrorBody(output.body, context),
|
|
616
616
|
};
|
|
617
617
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
618
|
switch (errorCode) {
|
|
@@ -652,7 +652,7 @@ exports.deserializeAws_json1_1DeleteDestinationCommand = deserializeAws_json1_1D
|
|
|
652
652
|
const deserializeAws_json1_1DeleteDestinationCommandError = async (output, context) => {
|
|
653
653
|
const parsedOutput = {
|
|
654
654
|
...output,
|
|
655
|
-
body: await
|
|
655
|
+
body: await parseErrorBody(output.body, context),
|
|
656
656
|
};
|
|
657
657
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
658
|
switch (errorCode) {
|
|
@@ -692,7 +692,7 @@ exports.deserializeAws_json1_1DeleteLogGroupCommand = deserializeAws_json1_1Dele
|
|
|
692
692
|
const deserializeAws_json1_1DeleteLogGroupCommandError = async (output, context) => {
|
|
693
693
|
const parsedOutput = {
|
|
694
694
|
...output,
|
|
695
|
-
body: await
|
|
695
|
+
body: await parseErrorBody(output.body, context),
|
|
696
696
|
};
|
|
697
697
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
698
|
switch (errorCode) {
|
|
@@ -732,7 +732,7 @@ exports.deserializeAws_json1_1DeleteLogStreamCommand = deserializeAws_json1_1Del
|
|
|
732
732
|
const deserializeAws_json1_1DeleteLogStreamCommandError = async (output, context) => {
|
|
733
733
|
const parsedOutput = {
|
|
734
734
|
...output,
|
|
735
|
-
body: await
|
|
735
|
+
body: await parseErrorBody(output.body, context),
|
|
736
736
|
};
|
|
737
737
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
738
738
|
switch (errorCode) {
|
|
@@ -772,7 +772,7 @@ exports.deserializeAws_json1_1DeleteMetricFilterCommand = deserializeAws_json1_1
|
|
|
772
772
|
const deserializeAws_json1_1DeleteMetricFilterCommandError = async (output, context) => {
|
|
773
773
|
const parsedOutput = {
|
|
774
774
|
...output,
|
|
775
|
-
body: await
|
|
775
|
+
body: await parseErrorBody(output.body, context),
|
|
776
776
|
};
|
|
777
777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
778
|
switch (errorCode) {
|
|
@@ -815,7 +815,7 @@ exports.deserializeAws_json1_1DeleteQueryDefinitionCommand = deserializeAws_json
|
|
|
815
815
|
const deserializeAws_json1_1DeleteQueryDefinitionCommandError = async (output, context) => {
|
|
816
816
|
const parsedOutput = {
|
|
817
817
|
...output,
|
|
818
|
-
body: await
|
|
818
|
+
body: await parseErrorBody(output.body, context),
|
|
819
819
|
};
|
|
820
820
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
821
|
switch (errorCode) {
|
|
@@ -852,7 +852,7 @@ exports.deserializeAws_json1_1DeleteResourcePolicyCommand = deserializeAws_json1
|
|
|
852
852
|
const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
853
853
|
const parsedOutput = {
|
|
854
854
|
...output,
|
|
855
|
-
body: await
|
|
855
|
+
body: await parseErrorBody(output.body, context),
|
|
856
856
|
};
|
|
857
857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
858
858
|
switch (errorCode) {
|
|
@@ -889,7 +889,7 @@ exports.deserializeAws_json1_1DeleteRetentionPolicyCommand = deserializeAws_json
|
|
|
889
889
|
const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, context) => {
|
|
890
890
|
const parsedOutput = {
|
|
891
891
|
...output,
|
|
892
|
-
body: await
|
|
892
|
+
body: await parseErrorBody(output.body, context),
|
|
893
893
|
};
|
|
894
894
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
895
|
switch (errorCode) {
|
|
@@ -929,7 +929,7 @@ exports.deserializeAws_json1_1DeleteSubscriptionFilterCommand = deserializeAws_j
|
|
|
929
929
|
const deserializeAws_json1_1DeleteSubscriptionFilterCommandError = async (output, context) => {
|
|
930
930
|
const parsedOutput = {
|
|
931
931
|
...output,
|
|
932
|
-
body: await
|
|
932
|
+
body: await parseErrorBody(output.body, context),
|
|
933
933
|
};
|
|
934
934
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
935
|
switch (errorCode) {
|
|
@@ -972,7 +972,7 @@ exports.deserializeAws_json1_1DescribeDestinationsCommand = deserializeAws_json1
|
|
|
972
972
|
const deserializeAws_json1_1DescribeDestinationsCommandError = async (output, context) => {
|
|
973
973
|
const parsedOutput = {
|
|
974
974
|
...output,
|
|
975
|
-
body: await
|
|
975
|
+
body: await parseErrorBody(output.body, context),
|
|
976
976
|
};
|
|
977
977
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
978
|
switch (errorCode) {
|
|
@@ -1009,7 +1009,7 @@ exports.deserializeAws_json1_1DescribeExportTasksCommand = deserializeAws_json1_
|
|
|
1009
1009
|
const deserializeAws_json1_1DescribeExportTasksCommandError = async (output, context) => {
|
|
1010
1010
|
const parsedOutput = {
|
|
1011
1011
|
...output,
|
|
1012
|
-
body: await
|
|
1012
|
+
body: await parseErrorBody(output.body, context),
|
|
1013
1013
|
};
|
|
1014
1014
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
1015
|
switch (errorCode) {
|
|
@@ -1046,7 +1046,7 @@ exports.deserializeAws_json1_1DescribeLogGroupsCommand = deserializeAws_json1_1D
|
|
|
1046
1046
|
const deserializeAws_json1_1DescribeLogGroupsCommandError = async (output, context) => {
|
|
1047
1047
|
const parsedOutput = {
|
|
1048
1048
|
...output,
|
|
1049
|
-
body: await
|
|
1049
|
+
body: await parseErrorBody(output.body, context),
|
|
1050
1050
|
};
|
|
1051
1051
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
1052
|
switch (errorCode) {
|
|
@@ -1083,7 +1083,7 @@ exports.deserializeAws_json1_1DescribeLogStreamsCommand = deserializeAws_json1_1
|
|
|
1083
1083
|
const deserializeAws_json1_1DescribeLogStreamsCommandError = async (output, context) => {
|
|
1084
1084
|
const parsedOutput = {
|
|
1085
1085
|
...output,
|
|
1086
|
-
body: await
|
|
1086
|
+
body: await parseErrorBody(output.body, context),
|
|
1087
1087
|
};
|
|
1088
1088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
1089
|
switch (errorCode) {
|
|
@@ -1123,7 +1123,7 @@ exports.deserializeAws_json1_1DescribeMetricFiltersCommand = deserializeAws_json
|
|
|
1123
1123
|
const deserializeAws_json1_1DescribeMetricFiltersCommandError = async (output, context) => {
|
|
1124
1124
|
const parsedOutput = {
|
|
1125
1125
|
...output,
|
|
1126
|
-
body: await
|
|
1126
|
+
body: await parseErrorBody(output.body, context),
|
|
1127
1127
|
};
|
|
1128
1128
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
1129
|
switch (errorCode) {
|
|
@@ -1163,7 +1163,7 @@ exports.deserializeAws_json1_1DescribeQueriesCommand = deserializeAws_json1_1Des
|
|
|
1163
1163
|
const deserializeAws_json1_1DescribeQueriesCommandError = async (output, context) => {
|
|
1164
1164
|
const parsedOutput = {
|
|
1165
1165
|
...output,
|
|
1166
|
-
body: await
|
|
1166
|
+
body: await parseErrorBody(output.body, context),
|
|
1167
1167
|
};
|
|
1168
1168
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
1169
|
switch (errorCode) {
|
|
@@ -1203,7 +1203,7 @@ exports.deserializeAws_json1_1DescribeQueryDefinitionsCommand = deserializeAws_j
|
|
|
1203
1203
|
const deserializeAws_json1_1DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
1204
1204
|
const parsedOutput = {
|
|
1205
1205
|
...output,
|
|
1206
|
-
body: await
|
|
1206
|
+
body: await parseErrorBody(output.body, context),
|
|
1207
1207
|
};
|
|
1208
1208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
1209
|
switch (errorCode) {
|
|
@@ -1240,7 +1240,7 @@ exports.deserializeAws_json1_1DescribeResourcePoliciesCommand = deserializeAws_j
|
|
|
1240
1240
|
const deserializeAws_json1_1DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
1241
1241
|
const parsedOutput = {
|
|
1242
1242
|
...output,
|
|
1243
|
-
body: await
|
|
1243
|
+
body: await parseErrorBody(output.body, context),
|
|
1244
1244
|
};
|
|
1245
1245
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
1246
|
switch (errorCode) {
|
|
@@ -1277,7 +1277,7 @@ exports.deserializeAws_json1_1DescribeSubscriptionFiltersCommand = deserializeAw
|
|
|
1277
1277
|
const deserializeAws_json1_1DescribeSubscriptionFiltersCommandError = async (output, context) => {
|
|
1278
1278
|
const parsedOutput = {
|
|
1279
1279
|
...output,
|
|
1280
|
-
body: await
|
|
1280
|
+
body: await parseErrorBody(output.body, context),
|
|
1281
1281
|
};
|
|
1282
1282
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1283
1283
|
switch (errorCode) {
|
|
@@ -1314,7 +1314,7 @@ exports.deserializeAws_json1_1DisassociateKmsKeyCommand = deserializeAws_json1_1
|
|
|
1314
1314
|
const deserializeAws_json1_1DisassociateKmsKeyCommandError = async (output, context) => {
|
|
1315
1315
|
const parsedOutput = {
|
|
1316
1316
|
...output,
|
|
1317
|
-
body: await
|
|
1317
|
+
body: await parseErrorBody(output.body, context),
|
|
1318
1318
|
};
|
|
1319
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1320
|
switch (errorCode) {
|
|
@@ -1357,7 +1357,7 @@ exports.deserializeAws_json1_1FilterLogEventsCommand = deserializeAws_json1_1Fil
|
|
|
1357
1357
|
const deserializeAws_json1_1FilterLogEventsCommandError = async (output, context) => {
|
|
1358
1358
|
const parsedOutput = {
|
|
1359
1359
|
...output,
|
|
1360
|
-
body: await
|
|
1360
|
+
body: await parseErrorBody(output.body, context),
|
|
1361
1361
|
};
|
|
1362
1362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
1363
|
switch (errorCode) {
|
|
@@ -1397,7 +1397,7 @@ exports.deserializeAws_json1_1GetLogEventsCommand = deserializeAws_json1_1GetLog
|
|
|
1397
1397
|
const deserializeAws_json1_1GetLogEventsCommandError = async (output, context) => {
|
|
1398
1398
|
const parsedOutput = {
|
|
1399
1399
|
...output,
|
|
1400
|
-
body: await
|
|
1400
|
+
body: await parseErrorBody(output.body, context),
|
|
1401
1401
|
};
|
|
1402
1402
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1403
1403
|
switch (errorCode) {
|
|
@@ -1437,7 +1437,7 @@ exports.deserializeAws_json1_1GetLogGroupFieldsCommand = deserializeAws_json1_1G
|
|
|
1437
1437
|
const deserializeAws_json1_1GetLogGroupFieldsCommandError = async (output, context) => {
|
|
1438
1438
|
const parsedOutput = {
|
|
1439
1439
|
...output,
|
|
1440
|
-
body: await
|
|
1440
|
+
body: await parseErrorBody(output.body, context),
|
|
1441
1441
|
};
|
|
1442
1442
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1443
|
switch (errorCode) {
|
|
@@ -1480,7 +1480,7 @@ exports.deserializeAws_json1_1GetLogRecordCommand = deserializeAws_json1_1GetLog
|
|
|
1480
1480
|
const deserializeAws_json1_1GetLogRecordCommandError = 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_json1_1GetQueryResultsCommand = deserializeAws_json1_1Get
|
|
|
1523
1523
|
const deserializeAws_json1_1GetQueryResultsCommandError = 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) {
|
|
@@ -1563,7 +1563,7 @@ exports.deserializeAws_json1_1ListTagsLogGroupCommand = deserializeAws_json1_1Li
|
|
|
1563
1563
|
const deserializeAws_json1_1ListTagsLogGroupCommandError = async (output, context) => {
|
|
1564
1564
|
const parsedOutput = {
|
|
1565
1565
|
...output,
|
|
1566
|
-
body: await
|
|
1566
|
+
body: await parseErrorBody(output.body, context),
|
|
1567
1567
|
};
|
|
1568
1568
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1569
1569
|
switch (errorCode) {
|
|
@@ -1600,7 +1600,7 @@ exports.deserializeAws_json1_1PutDestinationCommand = deserializeAws_json1_1PutD
|
|
|
1600
1600
|
const deserializeAws_json1_1PutDestinationCommandError = async (output, context) => {
|
|
1601
1601
|
const parsedOutput = {
|
|
1602
1602
|
...output,
|
|
1603
|
-
body: await
|
|
1603
|
+
body: await parseErrorBody(output.body, context),
|
|
1604
1604
|
};
|
|
1605
1605
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1606
1606
|
switch (errorCode) {
|
|
@@ -1637,7 +1637,7 @@ exports.deserializeAws_json1_1PutDestinationPolicyCommand = deserializeAws_json1
|
|
|
1637
1637
|
const deserializeAws_json1_1PutDestinationPolicyCommandError = async (output, context) => {
|
|
1638
1638
|
const parsedOutput = {
|
|
1639
1639
|
...output,
|
|
1640
|
-
body: await
|
|
1640
|
+
body: await parseErrorBody(output.body, context),
|
|
1641
1641
|
};
|
|
1642
1642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
1643
|
switch (errorCode) {
|
|
@@ -1677,7 +1677,7 @@ exports.deserializeAws_json1_1PutLogEventsCommand = deserializeAws_json1_1PutLog
|
|
|
1677
1677
|
const deserializeAws_json1_1PutLogEventsCommandError = async (output, context) => {
|
|
1678
1678
|
const parsedOutput = {
|
|
1679
1679
|
...output,
|
|
1680
|
-
body: await
|
|
1680
|
+
body: await parseErrorBody(output.body, context),
|
|
1681
1681
|
};
|
|
1682
1682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1683
|
switch (errorCode) {
|
|
@@ -1723,7 +1723,7 @@ exports.deserializeAws_json1_1PutMetricFilterCommand = deserializeAws_json1_1Put
|
|
|
1723
1723
|
const deserializeAws_json1_1PutMetricFilterCommandError = async (output, context) => {
|
|
1724
1724
|
const parsedOutput = {
|
|
1725
1725
|
...output,
|
|
1726
|
-
body: await
|
|
1726
|
+
body: await parseErrorBody(output.body, context),
|
|
1727
1727
|
};
|
|
1728
1728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
1729
|
switch (errorCode) {
|
|
@@ -1769,7 +1769,7 @@ exports.deserializeAws_json1_1PutQueryDefinitionCommand = deserializeAws_json1_1
|
|
|
1769
1769
|
const deserializeAws_json1_1PutQueryDefinitionCommandError = async (output, context) => {
|
|
1770
1770
|
const parsedOutput = {
|
|
1771
1771
|
...output,
|
|
1772
|
-
body: await
|
|
1772
|
+
body: await parseErrorBody(output.body, context),
|
|
1773
1773
|
};
|
|
1774
1774
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
1775
|
switch (errorCode) {
|
|
@@ -1812,7 +1812,7 @@ exports.deserializeAws_json1_1PutResourcePolicyCommand = deserializeAws_json1_1P
|
|
|
1812
1812
|
const deserializeAws_json1_1PutResourcePolicyCommandError = 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) {
|
|
@@ -1849,7 +1849,7 @@ exports.deserializeAws_json1_1PutRetentionPolicyCommand = deserializeAws_json1_1
|
|
|
1849
1849
|
const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, context) => {
|
|
1850
1850
|
const parsedOutput = {
|
|
1851
1851
|
...output,
|
|
1852
|
-
body: await
|
|
1852
|
+
body: await parseErrorBody(output.body, context),
|
|
1853
1853
|
};
|
|
1854
1854
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1855
1855
|
switch (errorCode) {
|
|
@@ -1889,7 +1889,7 @@ exports.deserializeAws_json1_1PutSubscriptionFilterCommand = deserializeAws_json
|
|
|
1889
1889
|
const deserializeAws_json1_1PutSubscriptionFilterCommandError = async (output, context) => {
|
|
1890
1890
|
const parsedOutput = {
|
|
1891
1891
|
...output,
|
|
1892
|
-
body: await
|
|
1892
|
+
body: await parseErrorBody(output.body, context),
|
|
1893
1893
|
};
|
|
1894
1894
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
1895
|
switch (errorCode) {
|
|
@@ -1935,7 +1935,7 @@ exports.deserializeAws_json1_1StartQueryCommand = deserializeAws_json1_1StartQue
|
|
|
1935
1935
|
const deserializeAws_json1_1StartQueryCommandError = async (output, context) => {
|
|
1936
1936
|
const parsedOutput = {
|
|
1937
1937
|
...output,
|
|
1938
|
-
body: await
|
|
1938
|
+
body: await parseErrorBody(output.body, context),
|
|
1939
1939
|
};
|
|
1940
1940
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
1941
|
switch (errorCode) {
|
|
@@ -1981,7 +1981,7 @@ exports.deserializeAws_json1_1StopQueryCommand = deserializeAws_json1_1StopQuery
|
|
|
1981
1981
|
const deserializeAws_json1_1StopQueryCommandError = async (output, context) => {
|
|
1982
1982
|
const parsedOutput = {
|
|
1983
1983
|
...output,
|
|
1984
|
-
body: await
|
|
1984
|
+
body: await parseErrorBody(output.body, context),
|
|
1985
1985
|
};
|
|
1986
1986
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1987
1987
|
switch (errorCode) {
|
|
@@ -2018,7 +2018,7 @@ exports.deserializeAws_json1_1TagLogGroupCommand = deserializeAws_json1_1TagLogG
|
|
|
2018
2018
|
const deserializeAws_json1_1TagLogGroupCommandError = async (output, context) => {
|
|
2019
2019
|
const parsedOutput = {
|
|
2020
2020
|
...output,
|
|
2021
|
-
body: await
|
|
2021
|
+
body: await parseErrorBody(output.body, context),
|
|
2022
2022
|
};
|
|
2023
2023
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
2024
|
switch (errorCode) {
|
|
@@ -2055,7 +2055,7 @@ exports.deserializeAws_json1_1TestMetricFilterCommand = deserializeAws_json1_1Te
|
|
|
2055
2055
|
const deserializeAws_json1_1TestMetricFilterCommandError = async (output, context) => {
|
|
2056
2056
|
const parsedOutput = {
|
|
2057
2057
|
...output,
|
|
2058
|
-
body: await
|
|
2058
|
+
body: await parseErrorBody(output.body, context),
|
|
2059
2059
|
};
|
|
2060
2060
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
2061
|
switch (errorCode) {
|
|
@@ -2089,7 +2089,7 @@ exports.deserializeAws_json1_1UntagLogGroupCommand = deserializeAws_json1_1Untag
|
|
|
2089
2089
|
const deserializeAws_json1_1UntagLogGroupCommandError = async (output, context) => {
|
|
2090
2090
|
const parsedOutput = {
|
|
2091
2091
|
...output,
|
|
2092
|
-
body: await
|
|
2092
|
+
body: await parseErrorBody(output.body, context),
|
|
2093
2093
|
};
|
|
2094
2094
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2095
2095
|
switch (errorCode) {
|
|
@@ -3263,6 +3263,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3263
3263
|
}
|
|
3264
3264
|
return {};
|
|
3265
3265
|
});
|
|
3266
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3267
|
+
var _a;
|
|
3268
|
+
const value = await parseBody(errorBody, context);
|
|
3269
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3270
|
+
return value;
|
|
3271
|
+
};
|
|
3266
3272
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3267
3273
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3268
3274
|
const sanitizeErrorCode = (rawValue) => {
|