@aws-sdk/client-cloudwatch-events 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 +57 -51
- package/dist-es/CloudWatchEvents.js +206 -213
- package/dist-es/CloudWatchEventsClient.js +22 -28
- package/dist-es/commands/ActivateEventSourceCommand.js +22 -29
- package/dist-es/commands/CancelReplayCommand.js +21 -28
- package/dist-es/commands/CreateApiDestinationCommand.js +21 -28
- package/dist-es/commands/CreateArchiveCommand.js +21 -28
- package/dist-es/commands/CreateConnectionCommand.js +21 -28
- package/dist-es/commands/CreateEventBusCommand.js +21 -28
- package/dist-es/commands/CreatePartnerEventSourceCommand.js +21 -28
- package/dist-es/commands/DeactivateEventSourceCommand.js +22 -29
- package/dist-es/commands/DeauthorizeConnectionCommand.js +21 -28
- package/dist-es/commands/DeleteApiDestinationCommand.js +21 -28
- package/dist-es/commands/DeleteArchiveCommand.js +21 -28
- package/dist-es/commands/DeleteConnectionCommand.js +21 -28
- package/dist-es/commands/DeleteEventBusCommand.js +22 -29
- package/dist-es/commands/DeletePartnerEventSourceCommand.js +22 -29
- package/dist-es/commands/DeleteRuleCommand.js +22 -29
- package/dist-es/commands/DescribeApiDestinationCommand.js +21 -28
- package/dist-es/commands/DescribeArchiveCommand.js +21 -28
- package/dist-es/commands/DescribeConnectionCommand.js +21 -28
- package/dist-es/commands/DescribeEventBusCommand.js +21 -28
- package/dist-es/commands/DescribeEventSourceCommand.js +21 -28
- package/dist-es/commands/DescribePartnerEventSourceCommand.js +21 -28
- package/dist-es/commands/DescribeReplayCommand.js +21 -28
- package/dist-es/commands/DescribeRuleCommand.js +21 -28
- package/dist-es/commands/DisableRuleCommand.js +22 -29
- package/dist-es/commands/EnableRuleCommand.js +22 -29
- package/dist-es/commands/ListApiDestinationsCommand.js +21 -28
- package/dist-es/commands/ListArchivesCommand.js +21 -28
- package/dist-es/commands/ListConnectionsCommand.js +21 -28
- package/dist-es/commands/ListEventBusesCommand.js +21 -28
- package/dist-es/commands/ListEventSourcesCommand.js +21 -28
- package/dist-es/commands/ListPartnerEventSourceAccountsCommand.js +21 -28
- package/dist-es/commands/ListPartnerEventSourcesCommand.js +21 -28
- package/dist-es/commands/ListReplaysCommand.js +21 -28
- package/dist-es/commands/ListRuleNamesByTargetCommand.js +21 -28
- package/dist-es/commands/ListRulesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTargetsByRuleCommand.js +21 -28
- package/dist-es/commands/PutEventsCommand.js +21 -28
- package/dist-es/commands/PutPartnerEventsCommand.js +21 -28
- package/dist-es/commands/PutPermissionCommand.js +22 -29
- package/dist-es/commands/PutRuleCommand.js +21 -28
- package/dist-es/commands/PutTargetsCommand.js +21 -28
- package/dist-es/commands/RemovePermissionCommand.js +22 -29
- package/dist-es/commands/RemoveTargetsCommand.js +21 -28
- package/dist-es/commands/StartReplayCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/TestEventPatternCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateApiDestinationCommand.js +21 -28
- package/dist-es/commands/UpdateArchiveCommand.js +21 -28
- package/dist-es/commands/UpdateConnectionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CloudWatchEventsServiceException.js +5 -10
- package/dist-es/models/models_0.js +574 -273
- package/dist-es/protocols/Aws_json1_1.js +3530 -4334
- 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-events
|
|
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-events
|
|
@@ -531,7 +531,7 @@ exports.deserializeAws_json1_1ActivateEventSourceCommand = deserializeAws_json1_
|
|
|
531
531
|
const deserializeAws_json1_1ActivateEventSourceCommandError = async (output, context) => {
|
|
532
532
|
const parsedOutput = {
|
|
533
533
|
...output,
|
|
534
|
-
body: await
|
|
534
|
+
body: await parseErrorBody(output.body, context),
|
|
535
535
|
};
|
|
536
536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
537
|
switch (errorCode) {
|
|
@@ -577,7 +577,7 @@ exports.deserializeAws_json1_1CancelReplayCommand = deserializeAws_json1_1Cancel
|
|
|
577
577
|
const deserializeAws_json1_1CancelReplayCommandError = async (output, context) => {
|
|
578
578
|
const parsedOutput = {
|
|
579
579
|
...output,
|
|
580
|
-
body: await
|
|
580
|
+
body: await parseErrorBody(output.body, context),
|
|
581
581
|
};
|
|
582
582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
583
|
switch (errorCode) {
|
|
@@ -620,7 +620,7 @@ exports.deserializeAws_json1_1CreateApiDestinationCommand = deserializeAws_json1
|
|
|
620
620
|
const deserializeAws_json1_1CreateApiDestinationCommandError = async (output, context) => {
|
|
621
621
|
const parsedOutput = {
|
|
622
622
|
...output,
|
|
623
|
-
body: await
|
|
623
|
+
body: await parseErrorBody(output.body, context),
|
|
624
624
|
};
|
|
625
625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
626
|
switch (errorCode) {
|
|
@@ -663,7 +663,7 @@ exports.deserializeAws_json1_1CreateArchiveCommand = deserializeAws_json1_1Creat
|
|
|
663
663
|
const deserializeAws_json1_1CreateArchiveCommandError = async (output, context) => {
|
|
664
664
|
const parsedOutput = {
|
|
665
665
|
...output,
|
|
666
|
-
body: await
|
|
666
|
+
body: await parseErrorBody(output.body, context),
|
|
667
667
|
};
|
|
668
668
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
669
669
|
switch (errorCode) {
|
|
@@ -712,7 +712,7 @@ exports.deserializeAws_json1_1CreateConnectionCommand = deserializeAws_json1_1Cr
|
|
|
712
712
|
const deserializeAws_json1_1CreateConnectionCommandError = async (output, context) => {
|
|
713
713
|
const parsedOutput = {
|
|
714
714
|
...output,
|
|
715
|
-
body: await
|
|
715
|
+
body: await parseErrorBody(output.body, context),
|
|
716
716
|
};
|
|
717
717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
718
718
|
switch (errorCode) {
|
|
@@ -752,7 +752,7 @@ exports.deserializeAws_json1_1CreateEventBusCommand = deserializeAws_json1_1Crea
|
|
|
752
752
|
const deserializeAws_json1_1CreateEventBusCommandError = async (output, context) => {
|
|
753
753
|
const parsedOutput = {
|
|
754
754
|
...output,
|
|
755
|
-
body: await
|
|
755
|
+
body: await parseErrorBody(output.body, context),
|
|
756
756
|
};
|
|
757
757
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
758
|
switch (errorCode) {
|
|
@@ -804,7 +804,7 @@ exports.deserializeAws_json1_1CreatePartnerEventSourceCommand = deserializeAws_j
|
|
|
804
804
|
const deserializeAws_json1_1CreatePartnerEventSourceCommandError = async (output, context) => {
|
|
805
805
|
const parsedOutput = {
|
|
806
806
|
...output,
|
|
807
|
-
body: await
|
|
807
|
+
body: await parseErrorBody(output.body, context),
|
|
808
808
|
};
|
|
809
809
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
810
|
switch (errorCode) {
|
|
@@ -847,7 +847,7 @@ exports.deserializeAws_json1_1DeactivateEventSourceCommand = deserializeAws_json
|
|
|
847
847
|
const deserializeAws_json1_1DeactivateEventSourceCommandError = async (output, context) => {
|
|
848
848
|
const parsedOutput = {
|
|
849
849
|
...output,
|
|
850
|
-
body: await
|
|
850
|
+
body: await parseErrorBody(output.body, context),
|
|
851
851
|
};
|
|
852
852
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
853
|
switch (errorCode) {
|
|
@@ -893,7 +893,7 @@ exports.deserializeAws_json1_1DeauthorizeConnectionCommand = deserializeAws_json
|
|
|
893
893
|
const deserializeAws_json1_1DeauthorizeConnectionCommandError = async (output, context) => {
|
|
894
894
|
const parsedOutput = {
|
|
895
895
|
...output,
|
|
896
|
-
body: await
|
|
896
|
+
body: await parseErrorBody(output.body, context),
|
|
897
897
|
};
|
|
898
898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
899
|
switch (errorCode) {
|
|
@@ -933,7 +933,7 @@ exports.deserializeAws_json1_1DeleteApiDestinationCommand = deserializeAws_json1
|
|
|
933
933
|
const deserializeAws_json1_1DeleteApiDestinationCommandError = async (output, context) => {
|
|
934
934
|
const parsedOutput = {
|
|
935
935
|
...output,
|
|
936
|
-
body: await
|
|
936
|
+
body: await parseErrorBody(output.body, context),
|
|
937
937
|
};
|
|
938
938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
939
|
switch (errorCode) {
|
|
@@ -973,7 +973,7 @@ exports.deserializeAws_json1_1DeleteArchiveCommand = deserializeAws_json1_1Delet
|
|
|
973
973
|
const deserializeAws_json1_1DeleteArchiveCommandError = async (output, context) => {
|
|
974
974
|
const parsedOutput = {
|
|
975
975
|
...output,
|
|
976
|
-
body: await
|
|
976
|
+
body: await parseErrorBody(output.body, context),
|
|
977
977
|
};
|
|
978
978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
979
|
switch (errorCode) {
|
|
@@ -1013,7 +1013,7 @@ exports.deserializeAws_json1_1DeleteConnectionCommand = deserializeAws_json1_1De
|
|
|
1013
1013
|
const deserializeAws_json1_1DeleteConnectionCommandError = async (output, context) => {
|
|
1014
1014
|
const parsedOutput = {
|
|
1015
1015
|
...output,
|
|
1016
|
-
body: await
|
|
1016
|
+
body: await parseErrorBody(output.body, context),
|
|
1017
1017
|
};
|
|
1018
1018
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
1019
|
switch (errorCode) {
|
|
@@ -1050,7 +1050,7 @@ exports.deserializeAws_json1_1DeleteEventBusCommand = deserializeAws_json1_1Dele
|
|
|
1050
1050
|
const deserializeAws_json1_1DeleteEventBusCommandError = async (output, context) => {
|
|
1051
1051
|
const parsedOutput = {
|
|
1052
1052
|
...output,
|
|
1053
|
-
body: await
|
|
1053
|
+
body: await parseErrorBody(output.body, context),
|
|
1054
1054
|
};
|
|
1055
1055
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1056
1056
|
switch (errorCode) {
|
|
@@ -1084,7 +1084,7 @@ exports.deserializeAws_json1_1DeletePartnerEventSourceCommand = deserializeAws_j
|
|
|
1084
1084
|
const deserializeAws_json1_1DeletePartnerEventSourceCommandError = async (output, context) => {
|
|
1085
1085
|
const parsedOutput = {
|
|
1086
1086
|
...output,
|
|
1087
|
-
body: await
|
|
1087
|
+
body: await parseErrorBody(output.body, context),
|
|
1088
1088
|
};
|
|
1089
1089
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1090
1090
|
switch (errorCode) {
|
|
@@ -1121,7 +1121,7 @@ exports.deserializeAws_json1_1DeleteRuleCommand = deserializeAws_json1_1DeleteRu
|
|
|
1121
1121
|
const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) => {
|
|
1122
1122
|
const parsedOutput = {
|
|
1123
1123
|
...output,
|
|
1124
|
-
body: await
|
|
1124
|
+
body: await parseErrorBody(output.body, context),
|
|
1125
1125
|
};
|
|
1126
1126
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
1127
|
switch (errorCode) {
|
|
@@ -1164,7 +1164,7 @@ exports.deserializeAws_json1_1DescribeApiDestinationCommand = deserializeAws_jso
|
|
|
1164
1164
|
const deserializeAws_json1_1DescribeApiDestinationCommandError = async (output, context) => {
|
|
1165
1165
|
const parsedOutput = {
|
|
1166
1166
|
...output,
|
|
1167
|
-
body: await
|
|
1167
|
+
body: await parseErrorBody(output.body, context),
|
|
1168
1168
|
};
|
|
1169
1169
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1170
1170
|
switch (errorCode) {
|
|
@@ -1201,7 +1201,7 @@ exports.deserializeAws_json1_1DescribeArchiveCommand = deserializeAws_json1_1Des
|
|
|
1201
1201
|
const deserializeAws_json1_1DescribeArchiveCommandError = async (output, context) => {
|
|
1202
1202
|
const parsedOutput = {
|
|
1203
1203
|
...output,
|
|
1204
|
-
body: await
|
|
1204
|
+
body: await parseErrorBody(output.body, context),
|
|
1205
1205
|
};
|
|
1206
1206
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
1207
|
switch (errorCode) {
|
|
@@ -1241,7 +1241,7 @@ exports.deserializeAws_json1_1DescribeConnectionCommand = deserializeAws_json1_1
|
|
|
1241
1241
|
const deserializeAws_json1_1DescribeConnectionCommandError = async (output, context) => {
|
|
1242
1242
|
const parsedOutput = {
|
|
1243
1243
|
...output,
|
|
1244
|
-
body: await
|
|
1244
|
+
body: await parseErrorBody(output.body, context),
|
|
1245
1245
|
};
|
|
1246
1246
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
1247
|
switch (errorCode) {
|
|
@@ -1278,7 +1278,7 @@ exports.deserializeAws_json1_1DescribeEventBusCommand = deserializeAws_json1_1De
|
|
|
1278
1278
|
const deserializeAws_json1_1DescribeEventBusCommandError = async (output, context) => {
|
|
1279
1279
|
const parsedOutput = {
|
|
1280
1280
|
...output,
|
|
1281
|
-
body: await
|
|
1281
|
+
body: await parseErrorBody(output.body, context),
|
|
1282
1282
|
};
|
|
1283
1283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1284
1284
|
switch (errorCode) {
|
|
@@ -1315,7 +1315,7 @@ exports.deserializeAws_json1_1DescribeEventSourceCommand = deserializeAws_json1_
|
|
|
1315
1315
|
const deserializeAws_json1_1DescribeEventSourceCommandError = async (output, context) => {
|
|
1316
1316
|
const parsedOutput = {
|
|
1317
1317
|
...output,
|
|
1318
|
-
body: await
|
|
1318
|
+
body: await parseErrorBody(output.body, context),
|
|
1319
1319
|
};
|
|
1320
1320
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
1321
|
switch (errorCode) {
|
|
@@ -1355,7 +1355,7 @@ exports.deserializeAws_json1_1DescribePartnerEventSourceCommand = deserializeAws
|
|
|
1355
1355
|
const deserializeAws_json1_1DescribePartnerEventSourceCommandError = async (output, context) => {
|
|
1356
1356
|
const parsedOutput = {
|
|
1357
1357
|
...output,
|
|
1358
|
-
body: await
|
|
1358
|
+
body: await parseErrorBody(output.body, context),
|
|
1359
1359
|
};
|
|
1360
1360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1361
1361
|
switch (errorCode) {
|
|
@@ -1395,7 +1395,7 @@ exports.deserializeAws_json1_1DescribeReplayCommand = deserializeAws_json1_1Desc
|
|
|
1395
1395
|
const deserializeAws_json1_1DescribeReplayCommandError = async (output, context) => {
|
|
1396
1396
|
const parsedOutput = {
|
|
1397
1397
|
...output,
|
|
1398
|
-
body: await
|
|
1398
|
+
body: await parseErrorBody(output.body, context),
|
|
1399
1399
|
};
|
|
1400
1400
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1401
1401
|
switch (errorCode) {
|
|
@@ -1432,7 +1432,7 @@ exports.deserializeAws_json1_1DescribeRuleCommand = deserializeAws_json1_1Descri
|
|
|
1432
1432
|
const deserializeAws_json1_1DescribeRuleCommandError = async (output, context) => {
|
|
1433
1433
|
const parsedOutput = {
|
|
1434
1434
|
...output,
|
|
1435
|
-
body: await
|
|
1435
|
+
body: await parseErrorBody(output.body, context),
|
|
1436
1436
|
};
|
|
1437
1437
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
1438
|
switch (errorCode) {
|
|
@@ -1466,7 +1466,7 @@ exports.deserializeAws_json1_1DisableRuleCommand = deserializeAws_json1_1Disable
|
|
|
1466
1466
|
const deserializeAws_json1_1DisableRuleCommandError = async (output, context) => {
|
|
1467
1467
|
const parsedOutput = {
|
|
1468
1468
|
...output,
|
|
1469
|
-
body: await
|
|
1469
|
+
body: await parseErrorBody(output.body, context),
|
|
1470
1470
|
};
|
|
1471
1471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
1472
|
switch (errorCode) {
|
|
@@ -1506,7 +1506,7 @@ exports.deserializeAws_json1_1EnableRuleCommand = deserializeAws_json1_1EnableRu
|
|
|
1506
1506
|
const deserializeAws_json1_1EnableRuleCommandError = async (output, context) => {
|
|
1507
1507
|
const parsedOutput = {
|
|
1508
1508
|
...output,
|
|
1509
|
-
body: await
|
|
1509
|
+
body: await parseErrorBody(output.body, context),
|
|
1510
1510
|
};
|
|
1511
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
1512
|
switch (errorCode) {
|
|
@@ -1549,7 +1549,7 @@ exports.deserializeAws_json1_1ListApiDestinationsCommand = deserializeAws_json1_
|
|
|
1549
1549
|
const deserializeAws_json1_1ListApiDestinationsCommandError = async (output, context) => {
|
|
1550
1550
|
const parsedOutput = {
|
|
1551
1551
|
...output,
|
|
1552
|
-
body: await
|
|
1552
|
+
body: await parseErrorBody(output.body, context),
|
|
1553
1553
|
};
|
|
1554
1554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
1555
|
switch (errorCode) {
|
|
@@ -1583,7 +1583,7 @@ exports.deserializeAws_json1_1ListArchivesCommand = deserializeAws_json1_1ListAr
|
|
|
1583
1583
|
const deserializeAws_json1_1ListArchivesCommandError = async (output, context) => {
|
|
1584
1584
|
const parsedOutput = {
|
|
1585
1585
|
...output,
|
|
1586
|
-
body: await
|
|
1586
|
+
body: await parseErrorBody(output.body, context),
|
|
1587
1587
|
};
|
|
1588
1588
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
1589
|
switch (errorCode) {
|
|
@@ -1620,7 +1620,7 @@ exports.deserializeAws_json1_1ListConnectionsCommand = deserializeAws_json1_1Lis
|
|
|
1620
1620
|
const deserializeAws_json1_1ListConnectionsCommandError = async (output, context) => {
|
|
1621
1621
|
const parsedOutput = {
|
|
1622
1622
|
...output,
|
|
1623
|
-
body: await
|
|
1623
|
+
body: await parseErrorBody(output.body, context),
|
|
1624
1624
|
};
|
|
1625
1625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
1626
|
switch (errorCode) {
|
|
@@ -1654,7 +1654,7 @@ exports.deserializeAws_json1_1ListEventBusesCommand = deserializeAws_json1_1List
|
|
|
1654
1654
|
const deserializeAws_json1_1ListEventBusesCommandError = async (output, context) => {
|
|
1655
1655
|
const parsedOutput = {
|
|
1656
1656
|
...output,
|
|
1657
|
-
body: await
|
|
1657
|
+
body: await parseErrorBody(output.body, context),
|
|
1658
1658
|
};
|
|
1659
1659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
1660
|
switch (errorCode) {
|
|
@@ -1688,7 +1688,7 @@ exports.deserializeAws_json1_1ListEventSourcesCommand = deserializeAws_json1_1Li
|
|
|
1688
1688
|
const deserializeAws_json1_1ListEventSourcesCommandError = async (output, context) => {
|
|
1689
1689
|
const parsedOutput = {
|
|
1690
1690
|
...output,
|
|
1691
|
-
body: await
|
|
1691
|
+
body: await parseErrorBody(output.body, context),
|
|
1692
1692
|
};
|
|
1693
1693
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
1694
|
switch (errorCode) {
|
|
@@ -1725,7 +1725,7 @@ exports.deserializeAws_json1_1ListPartnerEventSourceAccountsCommand = deserializ
|
|
|
1725
1725
|
const deserializeAws_json1_1ListPartnerEventSourceAccountsCommandError = async (output, context) => {
|
|
1726
1726
|
const parsedOutput = {
|
|
1727
1727
|
...output,
|
|
1728
|
-
body: await
|
|
1728
|
+
body: await parseErrorBody(output.body, context),
|
|
1729
1729
|
};
|
|
1730
1730
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
1731
|
switch (errorCode) {
|
|
@@ -1765,7 +1765,7 @@ exports.deserializeAws_json1_1ListPartnerEventSourcesCommand = deserializeAws_js
|
|
|
1765
1765
|
const deserializeAws_json1_1ListPartnerEventSourcesCommandError = async (output, context) => {
|
|
1766
1766
|
const parsedOutput = {
|
|
1767
1767
|
...output,
|
|
1768
|
-
body: await
|
|
1768
|
+
body: await parseErrorBody(output.body, context),
|
|
1769
1769
|
};
|
|
1770
1770
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
1771
|
switch (errorCode) {
|
|
@@ -1802,7 +1802,7 @@ exports.deserializeAws_json1_1ListReplaysCommand = deserializeAws_json1_1ListRep
|
|
|
1802
1802
|
const deserializeAws_json1_1ListReplaysCommandError = async (output, context) => {
|
|
1803
1803
|
const parsedOutput = {
|
|
1804
1804
|
...output,
|
|
1805
|
-
body: await
|
|
1805
|
+
body: await parseErrorBody(output.body, context),
|
|
1806
1806
|
};
|
|
1807
1807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1808
1808
|
switch (errorCode) {
|
|
@@ -1836,7 +1836,7 @@ exports.deserializeAws_json1_1ListRuleNamesByTargetCommand = deserializeAws_json
|
|
|
1836
1836
|
const deserializeAws_json1_1ListRuleNamesByTargetCommandError = async (output, context) => {
|
|
1837
1837
|
const parsedOutput = {
|
|
1838
1838
|
...output,
|
|
1839
|
-
body: await
|
|
1839
|
+
body: await parseErrorBody(output.body, context),
|
|
1840
1840
|
};
|
|
1841
1841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
1842
|
switch (errorCode) {
|
|
@@ -1873,7 +1873,7 @@ exports.deserializeAws_json1_1ListRulesCommand = deserializeAws_json1_1ListRules
|
|
|
1873
1873
|
const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
1874
1874
|
const parsedOutput = {
|
|
1875
1875
|
...output,
|
|
1876
|
-
body: await
|
|
1876
|
+
body: await parseErrorBody(output.body, context),
|
|
1877
1877
|
};
|
|
1878
1878
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1879
1879
|
switch (errorCode) {
|
|
@@ -1910,7 +1910,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1910
1910
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1911
1911
|
const parsedOutput = {
|
|
1912
1912
|
...output,
|
|
1913
|
-
body: await
|
|
1913
|
+
body: await parseErrorBody(output.body, context),
|
|
1914
1914
|
};
|
|
1915
1915
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1916
1916
|
switch (errorCode) {
|
|
@@ -1947,7 +1947,7 @@ exports.deserializeAws_json1_1ListTargetsByRuleCommand = deserializeAws_json1_1L
|
|
|
1947
1947
|
const deserializeAws_json1_1ListTargetsByRuleCommandError = async (output, context) => {
|
|
1948
1948
|
const parsedOutput = {
|
|
1949
1949
|
...output,
|
|
1950
|
-
body: await
|
|
1950
|
+
body: await parseErrorBody(output.body, context),
|
|
1951
1951
|
};
|
|
1952
1952
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
1953
|
switch (errorCode) {
|
|
@@ -1984,7 +1984,7 @@ exports.deserializeAws_json1_1PutEventsCommand = deserializeAws_json1_1PutEvents
|
|
|
1984
1984
|
const deserializeAws_json1_1PutEventsCommandError = async (output, context) => {
|
|
1985
1985
|
const parsedOutput = {
|
|
1986
1986
|
...output,
|
|
1987
|
-
body: await
|
|
1987
|
+
body: await parseErrorBody(output.body, context),
|
|
1988
1988
|
};
|
|
1989
1989
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1990
1990
|
switch (errorCode) {
|
|
@@ -2018,7 +2018,7 @@ exports.deserializeAws_json1_1PutPartnerEventsCommand = deserializeAws_json1_1Pu
|
|
|
2018
2018
|
const deserializeAws_json1_1PutPartnerEventsCommandError = 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) {
|
|
@@ -2052,7 +2052,7 @@ exports.deserializeAws_json1_1PutPermissionCommand = deserializeAws_json1_1PutPe
|
|
|
2052
2052
|
const deserializeAws_json1_1PutPermissionCommandError = async (output, context) => {
|
|
2053
2053
|
const parsedOutput = {
|
|
2054
2054
|
...output,
|
|
2055
|
-
body: await
|
|
2055
|
+
body: await parseErrorBody(output.body, context),
|
|
2056
2056
|
};
|
|
2057
2057
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2058
2058
|
switch (errorCode) {
|
|
@@ -2098,7 +2098,7 @@ exports.deserializeAws_json1_1PutRuleCommand = deserializeAws_json1_1PutRuleComm
|
|
|
2098
2098
|
const deserializeAws_json1_1PutRuleCommandError = async (output, context) => {
|
|
2099
2099
|
const parsedOutput = {
|
|
2100
2100
|
...output,
|
|
2101
|
-
body: await
|
|
2101
|
+
body: await parseErrorBody(output.body, context),
|
|
2102
2102
|
};
|
|
2103
2103
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
2104
|
switch (errorCode) {
|
|
@@ -2147,7 +2147,7 @@ exports.deserializeAws_json1_1PutTargetsCommand = deserializeAws_json1_1PutTarge
|
|
|
2147
2147
|
const deserializeAws_json1_1PutTargetsCommandError = async (output, context) => {
|
|
2148
2148
|
const parsedOutput = {
|
|
2149
2149
|
...output,
|
|
2150
|
-
body: await
|
|
2150
|
+
body: await parseErrorBody(output.body, context),
|
|
2151
2151
|
};
|
|
2152
2152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2153
2153
|
switch (errorCode) {
|
|
@@ -2190,7 +2190,7 @@ exports.deserializeAws_json1_1RemovePermissionCommand = deserializeAws_json1_1Re
|
|
|
2190
2190
|
const deserializeAws_json1_1RemovePermissionCommandError = async (output, context) => {
|
|
2191
2191
|
const parsedOutput = {
|
|
2192
2192
|
...output,
|
|
2193
|
-
body: await
|
|
2193
|
+
body: await parseErrorBody(output.body, context),
|
|
2194
2194
|
};
|
|
2195
2195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2196
2196
|
switch (errorCode) {
|
|
@@ -2233,7 +2233,7 @@ exports.deserializeAws_json1_1RemoveTargetsCommand = deserializeAws_json1_1Remov
|
|
|
2233
2233
|
const deserializeAws_json1_1RemoveTargetsCommandError = async (output, context) => {
|
|
2234
2234
|
const parsedOutput = {
|
|
2235
2235
|
...output,
|
|
2236
|
-
body: await
|
|
2236
|
+
body: await parseErrorBody(output.body, context),
|
|
2237
2237
|
};
|
|
2238
2238
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2239
2239
|
switch (errorCode) {
|
|
@@ -2276,7 +2276,7 @@ exports.deserializeAws_json1_1StartReplayCommand = deserializeAws_json1_1StartRe
|
|
|
2276
2276
|
const deserializeAws_json1_1StartReplayCommandError = async (output, context) => {
|
|
2277
2277
|
const parsedOutput = {
|
|
2278
2278
|
...output,
|
|
2279
|
-
body: await
|
|
2279
|
+
body: await parseErrorBody(output.body, context),
|
|
2280
2280
|
};
|
|
2281
2281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2282
|
switch (errorCode) {
|
|
@@ -2322,7 +2322,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2322
2322
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2323
2323
|
const parsedOutput = {
|
|
2324
2324
|
...output,
|
|
2325
|
-
body: await
|
|
2325
|
+
body: await parseErrorBody(output.body, context),
|
|
2326
2326
|
};
|
|
2327
2327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2328
2328
|
switch (errorCode) {
|
|
@@ -2365,7 +2365,7 @@ exports.deserializeAws_json1_1TestEventPatternCommand = deserializeAws_json1_1Te
|
|
|
2365
2365
|
const deserializeAws_json1_1TestEventPatternCommandError = async (output, context) => {
|
|
2366
2366
|
const parsedOutput = {
|
|
2367
2367
|
...output,
|
|
2368
|
-
body: await
|
|
2368
|
+
body: await parseErrorBody(output.body, context),
|
|
2369
2369
|
};
|
|
2370
2370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2371
2371
|
switch (errorCode) {
|
|
@@ -2402,7 +2402,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2402
2402
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2403
2403
|
const parsedOutput = {
|
|
2404
2404
|
...output,
|
|
2405
|
-
body: await
|
|
2405
|
+
body: await parseErrorBody(output.body, context),
|
|
2406
2406
|
};
|
|
2407
2407
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2408
2408
|
switch (errorCode) {
|
|
@@ -2445,7 +2445,7 @@ exports.deserializeAws_json1_1UpdateApiDestinationCommand = deserializeAws_json1
|
|
|
2445
2445
|
const deserializeAws_json1_1UpdateApiDestinationCommandError = async (output, context) => {
|
|
2446
2446
|
const parsedOutput = {
|
|
2447
2447
|
...output,
|
|
2448
|
-
body: await
|
|
2448
|
+
body: await parseErrorBody(output.body, context),
|
|
2449
2449
|
};
|
|
2450
2450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2451
2451
|
switch (errorCode) {
|
|
@@ -2488,7 +2488,7 @@ exports.deserializeAws_json1_1UpdateArchiveCommand = deserializeAws_json1_1Updat
|
|
|
2488
2488
|
const deserializeAws_json1_1UpdateArchiveCommandError = async (output, context) => {
|
|
2489
2489
|
const parsedOutput = {
|
|
2490
2490
|
...output,
|
|
2491
|
-
body: await
|
|
2491
|
+
body: await parseErrorBody(output.body, context),
|
|
2492
2492
|
};
|
|
2493
2493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2494
2494
|
switch (errorCode) {
|
|
@@ -2534,7 +2534,7 @@ exports.deserializeAws_json1_1UpdateConnectionCommand = deserializeAws_json1_1Up
|
|
|
2534
2534
|
const deserializeAws_json1_1UpdateConnectionCommandError = async (output, context) => {
|
|
2535
2535
|
const parsedOutput = {
|
|
2536
2536
|
...output,
|
|
2537
|
-
body: await
|
|
2537
|
+
body: await parseErrorBody(output.body, context),
|
|
2538
2538
|
};
|
|
2539
2539
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
2540
|
switch (errorCode) {
|
|
@@ -4804,6 +4804,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4804
4804
|
}
|
|
4805
4805
|
return {};
|
|
4806
4806
|
});
|
|
4807
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4808
|
+
var _a;
|
|
4809
|
+
const value = await parseBody(errorBody, context);
|
|
4810
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4811
|
+
return value;
|
|
4812
|
+
};
|
|
4807
4813
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4808
4814
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4809
4815
|
const sanitizeErrorCode = (rawValue) => {
|