@aws-sdk/client-eventbridge 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 +62 -56
- package/dist-es/EventBridge.js +226 -233
- package/dist-es/EventBridgeClient.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/CreateEndpointCommand.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/DeleteEndpointCommand.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/DescribeEndpointCommand.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/ListEndpointsCommand.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/commands/UpdateEndpointCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/EventBridgeServiceException.js +5 -10
- package/dist-es/models/models_0.js +625 -290
- package/dist-es/protocols/Aws_json1_1.js +3868 -4741
- 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 +9 -12
- package/package.json +35 -35
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-eventbridge
|
|
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-eventbridge
|
|
@@ -581,7 +581,7 @@ exports.deserializeAws_json1_1ActivateEventSourceCommand = deserializeAws_json1_
|
|
|
581
581
|
const deserializeAws_json1_1ActivateEventSourceCommandError = async (output, context) => {
|
|
582
582
|
const parsedOutput = {
|
|
583
583
|
...output,
|
|
584
|
-
body: await
|
|
584
|
+
body: await parseErrorBody(output.body, context),
|
|
585
585
|
};
|
|
586
586
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
587
|
switch (errorCode) {
|
|
@@ -627,7 +627,7 @@ exports.deserializeAws_json1_1CancelReplayCommand = deserializeAws_json1_1Cancel
|
|
|
627
627
|
const deserializeAws_json1_1CancelReplayCommandError = async (output, context) => {
|
|
628
628
|
const parsedOutput = {
|
|
629
629
|
...output,
|
|
630
|
-
body: await
|
|
630
|
+
body: await parseErrorBody(output.body, context),
|
|
631
631
|
};
|
|
632
632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
633
|
switch (errorCode) {
|
|
@@ -670,7 +670,7 @@ exports.deserializeAws_json1_1CreateApiDestinationCommand = deserializeAws_json1
|
|
|
670
670
|
const deserializeAws_json1_1CreateApiDestinationCommandError = async (output, context) => {
|
|
671
671
|
const parsedOutput = {
|
|
672
672
|
...output,
|
|
673
|
-
body: await
|
|
673
|
+
body: await parseErrorBody(output.body, context),
|
|
674
674
|
};
|
|
675
675
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
676
|
switch (errorCode) {
|
|
@@ -713,7 +713,7 @@ exports.deserializeAws_json1_1CreateArchiveCommand = deserializeAws_json1_1Creat
|
|
|
713
713
|
const deserializeAws_json1_1CreateArchiveCommandError = async (output, context) => {
|
|
714
714
|
const parsedOutput = {
|
|
715
715
|
...output,
|
|
716
|
-
body: await
|
|
716
|
+
body: await parseErrorBody(output.body, context),
|
|
717
717
|
};
|
|
718
718
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
719
|
switch (errorCode) {
|
|
@@ -762,7 +762,7 @@ exports.deserializeAws_json1_1CreateConnectionCommand = deserializeAws_json1_1Cr
|
|
|
762
762
|
const deserializeAws_json1_1CreateConnectionCommandError = async (output, context) => {
|
|
763
763
|
const parsedOutput = {
|
|
764
764
|
...output,
|
|
765
|
-
body: await
|
|
765
|
+
body: await parseErrorBody(output.body, context),
|
|
766
766
|
};
|
|
767
767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
768
|
switch (errorCode) {
|
|
@@ -802,7 +802,7 @@ exports.deserializeAws_json1_1CreateEndpointCommand = deserializeAws_json1_1Crea
|
|
|
802
802
|
const deserializeAws_json1_1CreateEndpointCommandError = async (output, context) => {
|
|
803
803
|
const parsedOutput = {
|
|
804
804
|
...output,
|
|
805
|
-
body: await
|
|
805
|
+
body: await parseErrorBody(output.body, context),
|
|
806
806
|
};
|
|
807
807
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
808
|
switch (errorCode) {
|
|
@@ -842,7 +842,7 @@ exports.deserializeAws_json1_1CreateEventBusCommand = deserializeAws_json1_1Crea
|
|
|
842
842
|
const deserializeAws_json1_1CreateEventBusCommandError = async (output, context) => {
|
|
843
843
|
const parsedOutput = {
|
|
844
844
|
...output,
|
|
845
|
-
body: await
|
|
845
|
+
body: await parseErrorBody(output.body, context),
|
|
846
846
|
};
|
|
847
847
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
848
|
switch (errorCode) {
|
|
@@ -894,7 +894,7 @@ exports.deserializeAws_json1_1CreatePartnerEventSourceCommand = deserializeAws_j
|
|
|
894
894
|
const deserializeAws_json1_1CreatePartnerEventSourceCommandError = async (output, context) => {
|
|
895
895
|
const parsedOutput = {
|
|
896
896
|
...output,
|
|
897
|
-
body: await
|
|
897
|
+
body: await parseErrorBody(output.body, context),
|
|
898
898
|
};
|
|
899
899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
900
|
switch (errorCode) {
|
|
@@ -937,7 +937,7 @@ exports.deserializeAws_json1_1DeactivateEventSourceCommand = deserializeAws_json
|
|
|
937
937
|
const deserializeAws_json1_1DeactivateEventSourceCommandError = async (output, context) => {
|
|
938
938
|
const parsedOutput = {
|
|
939
939
|
...output,
|
|
940
|
-
body: await
|
|
940
|
+
body: await parseErrorBody(output.body, context),
|
|
941
941
|
};
|
|
942
942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
943
943
|
switch (errorCode) {
|
|
@@ -983,7 +983,7 @@ exports.deserializeAws_json1_1DeauthorizeConnectionCommand = deserializeAws_json
|
|
|
983
983
|
const deserializeAws_json1_1DeauthorizeConnectionCommandError = async (output, context) => {
|
|
984
984
|
const parsedOutput = {
|
|
985
985
|
...output,
|
|
986
|
-
body: await
|
|
986
|
+
body: await parseErrorBody(output.body, context),
|
|
987
987
|
};
|
|
988
988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
989
989
|
switch (errorCode) {
|
|
@@ -1023,7 +1023,7 @@ exports.deserializeAws_json1_1DeleteApiDestinationCommand = deserializeAws_json1
|
|
|
1023
1023
|
const deserializeAws_json1_1DeleteApiDestinationCommandError = async (output, context) => {
|
|
1024
1024
|
const parsedOutput = {
|
|
1025
1025
|
...output,
|
|
1026
|
-
body: await
|
|
1026
|
+
body: await parseErrorBody(output.body, context),
|
|
1027
1027
|
};
|
|
1028
1028
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
1029
|
switch (errorCode) {
|
|
@@ -1063,7 +1063,7 @@ exports.deserializeAws_json1_1DeleteArchiveCommand = deserializeAws_json1_1Delet
|
|
|
1063
1063
|
const deserializeAws_json1_1DeleteArchiveCommandError = async (output, context) => {
|
|
1064
1064
|
const parsedOutput = {
|
|
1065
1065
|
...output,
|
|
1066
|
-
body: await
|
|
1066
|
+
body: await parseErrorBody(output.body, context),
|
|
1067
1067
|
};
|
|
1068
1068
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
1069
|
switch (errorCode) {
|
|
@@ -1103,7 +1103,7 @@ exports.deserializeAws_json1_1DeleteConnectionCommand = deserializeAws_json1_1De
|
|
|
1103
1103
|
const deserializeAws_json1_1DeleteConnectionCommandError = async (output, context) => {
|
|
1104
1104
|
const parsedOutput = {
|
|
1105
1105
|
...output,
|
|
1106
|
-
body: await
|
|
1106
|
+
body: await parseErrorBody(output.body, context),
|
|
1107
1107
|
};
|
|
1108
1108
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1109
1109
|
switch (errorCode) {
|
|
@@ -1143,7 +1143,7 @@ exports.deserializeAws_json1_1DeleteEndpointCommand = deserializeAws_json1_1Dele
|
|
|
1143
1143
|
const deserializeAws_json1_1DeleteEndpointCommandError = async (output, context) => {
|
|
1144
1144
|
const parsedOutput = {
|
|
1145
1145
|
...output,
|
|
1146
|
-
body: await
|
|
1146
|
+
body: await parseErrorBody(output.body, context),
|
|
1147
1147
|
};
|
|
1148
1148
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
1149
|
switch (errorCode) {
|
|
@@ -1180,7 +1180,7 @@ exports.deserializeAws_json1_1DeleteEventBusCommand = deserializeAws_json1_1Dele
|
|
|
1180
1180
|
const deserializeAws_json1_1DeleteEventBusCommandError = async (output, context) => {
|
|
1181
1181
|
const parsedOutput = {
|
|
1182
1182
|
...output,
|
|
1183
|
-
body: await
|
|
1183
|
+
body: await parseErrorBody(output.body, context),
|
|
1184
1184
|
};
|
|
1185
1185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1186
|
switch (errorCode) {
|
|
@@ -1214,7 +1214,7 @@ exports.deserializeAws_json1_1DeletePartnerEventSourceCommand = deserializeAws_j
|
|
|
1214
1214
|
const deserializeAws_json1_1DeletePartnerEventSourceCommandError = async (output, context) => {
|
|
1215
1215
|
const parsedOutput = {
|
|
1216
1216
|
...output,
|
|
1217
|
-
body: await
|
|
1217
|
+
body: await parseErrorBody(output.body, context),
|
|
1218
1218
|
};
|
|
1219
1219
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
1220
|
switch (errorCode) {
|
|
@@ -1251,7 +1251,7 @@ exports.deserializeAws_json1_1DeleteRuleCommand = deserializeAws_json1_1DeleteRu
|
|
|
1251
1251
|
const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) => {
|
|
1252
1252
|
const parsedOutput = {
|
|
1253
1253
|
...output,
|
|
1254
|
-
body: await
|
|
1254
|
+
body: await parseErrorBody(output.body, context),
|
|
1255
1255
|
};
|
|
1256
1256
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1257
1257
|
switch (errorCode) {
|
|
@@ -1294,7 +1294,7 @@ exports.deserializeAws_json1_1DescribeApiDestinationCommand = deserializeAws_jso
|
|
|
1294
1294
|
const deserializeAws_json1_1DescribeApiDestinationCommandError = async (output, context) => {
|
|
1295
1295
|
const parsedOutput = {
|
|
1296
1296
|
...output,
|
|
1297
|
-
body: await
|
|
1297
|
+
body: await parseErrorBody(output.body, context),
|
|
1298
1298
|
};
|
|
1299
1299
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
1300
|
switch (errorCode) {
|
|
@@ -1331,7 +1331,7 @@ exports.deserializeAws_json1_1DescribeArchiveCommand = deserializeAws_json1_1Des
|
|
|
1331
1331
|
const deserializeAws_json1_1DescribeArchiveCommandError = async (output, context) => {
|
|
1332
1332
|
const parsedOutput = {
|
|
1333
1333
|
...output,
|
|
1334
|
-
body: await
|
|
1334
|
+
body: await parseErrorBody(output.body, context),
|
|
1335
1335
|
};
|
|
1336
1336
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1337
1337
|
switch (errorCode) {
|
|
@@ -1371,7 +1371,7 @@ exports.deserializeAws_json1_1DescribeConnectionCommand = deserializeAws_json1_1
|
|
|
1371
1371
|
const deserializeAws_json1_1DescribeConnectionCommandError = async (output, context) => {
|
|
1372
1372
|
const parsedOutput = {
|
|
1373
1373
|
...output,
|
|
1374
|
-
body: await
|
|
1374
|
+
body: await parseErrorBody(output.body, context),
|
|
1375
1375
|
};
|
|
1376
1376
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
1377
|
switch (errorCode) {
|
|
@@ -1408,7 +1408,7 @@ exports.deserializeAws_json1_1DescribeEndpointCommand = deserializeAws_json1_1De
|
|
|
1408
1408
|
const deserializeAws_json1_1DescribeEndpointCommandError = async (output, context) => {
|
|
1409
1409
|
const parsedOutput = {
|
|
1410
1410
|
...output,
|
|
1411
|
-
body: await
|
|
1411
|
+
body: await parseErrorBody(output.body, context),
|
|
1412
1412
|
};
|
|
1413
1413
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
1414
|
switch (errorCode) {
|
|
@@ -1445,7 +1445,7 @@ exports.deserializeAws_json1_1DescribeEventBusCommand = deserializeAws_json1_1De
|
|
|
1445
1445
|
const deserializeAws_json1_1DescribeEventBusCommandError = async (output, context) => {
|
|
1446
1446
|
const parsedOutput = {
|
|
1447
1447
|
...output,
|
|
1448
|
-
body: await
|
|
1448
|
+
body: await parseErrorBody(output.body, context),
|
|
1449
1449
|
};
|
|
1450
1450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
1451
|
switch (errorCode) {
|
|
@@ -1482,7 +1482,7 @@ exports.deserializeAws_json1_1DescribeEventSourceCommand = deserializeAws_json1_
|
|
|
1482
1482
|
const deserializeAws_json1_1DescribeEventSourceCommandError = async (output, context) => {
|
|
1483
1483
|
const parsedOutput = {
|
|
1484
1484
|
...output,
|
|
1485
|
-
body: await
|
|
1485
|
+
body: await parseErrorBody(output.body, context),
|
|
1486
1486
|
};
|
|
1487
1487
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
1488
|
switch (errorCode) {
|
|
@@ -1522,7 +1522,7 @@ exports.deserializeAws_json1_1DescribePartnerEventSourceCommand = deserializeAws
|
|
|
1522
1522
|
const deserializeAws_json1_1DescribePartnerEventSourceCommandError = async (output, context) => {
|
|
1523
1523
|
const parsedOutput = {
|
|
1524
1524
|
...output,
|
|
1525
|
-
body: await
|
|
1525
|
+
body: await parseErrorBody(output.body, context),
|
|
1526
1526
|
};
|
|
1527
1527
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1528
1528
|
switch (errorCode) {
|
|
@@ -1562,7 +1562,7 @@ exports.deserializeAws_json1_1DescribeReplayCommand = deserializeAws_json1_1Desc
|
|
|
1562
1562
|
const deserializeAws_json1_1DescribeReplayCommandError = async (output, context) => {
|
|
1563
1563
|
const parsedOutput = {
|
|
1564
1564
|
...output,
|
|
1565
|
-
body: await
|
|
1565
|
+
body: await parseErrorBody(output.body, context),
|
|
1566
1566
|
};
|
|
1567
1567
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
1568
|
switch (errorCode) {
|
|
@@ -1599,7 +1599,7 @@ exports.deserializeAws_json1_1DescribeRuleCommand = deserializeAws_json1_1Descri
|
|
|
1599
1599
|
const deserializeAws_json1_1DescribeRuleCommandError = async (output, context) => {
|
|
1600
1600
|
const parsedOutput = {
|
|
1601
1601
|
...output,
|
|
1602
|
-
body: await
|
|
1602
|
+
body: await parseErrorBody(output.body, context),
|
|
1603
1603
|
};
|
|
1604
1604
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1605
1605
|
switch (errorCode) {
|
|
@@ -1633,7 +1633,7 @@ exports.deserializeAws_json1_1DisableRuleCommand = deserializeAws_json1_1Disable
|
|
|
1633
1633
|
const deserializeAws_json1_1DisableRuleCommandError = async (output, context) => {
|
|
1634
1634
|
const parsedOutput = {
|
|
1635
1635
|
...output,
|
|
1636
|
-
body: await
|
|
1636
|
+
body: await parseErrorBody(output.body, context),
|
|
1637
1637
|
};
|
|
1638
1638
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1639
1639
|
switch (errorCode) {
|
|
@@ -1673,7 +1673,7 @@ exports.deserializeAws_json1_1EnableRuleCommand = deserializeAws_json1_1EnableRu
|
|
|
1673
1673
|
const deserializeAws_json1_1EnableRuleCommandError = async (output, context) => {
|
|
1674
1674
|
const parsedOutput = {
|
|
1675
1675
|
...output,
|
|
1676
|
-
body: await
|
|
1676
|
+
body: await parseErrorBody(output.body, context),
|
|
1677
1677
|
};
|
|
1678
1678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1679
1679
|
switch (errorCode) {
|
|
@@ -1716,7 +1716,7 @@ exports.deserializeAws_json1_1ListApiDestinationsCommand = deserializeAws_json1_
|
|
|
1716
1716
|
const deserializeAws_json1_1ListApiDestinationsCommandError = async (output, context) => {
|
|
1717
1717
|
const parsedOutput = {
|
|
1718
1718
|
...output,
|
|
1719
|
-
body: await
|
|
1719
|
+
body: await parseErrorBody(output.body, context),
|
|
1720
1720
|
};
|
|
1721
1721
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
1722
|
switch (errorCode) {
|
|
@@ -1750,7 +1750,7 @@ exports.deserializeAws_json1_1ListArchivesCommand = deserializeAws_json1_1ListAr
|
|
|
1750
1750
|
const deserializeAws_json1_1ListArchivesCommandError = async (output, context) => {
|
|
1751
1751
|
const parsedOutput = {
|
|
1752
1752
|
...output,
|
|
1753
|
-
body: await
|
|
1753
|
+
body: await parseErrorBody(output.body, context),
|
|
1754
1754
|
};
|
|
1755
1755
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
1756
|
switch (errorCode) {
|
|
@@ -1787,7 +1787,7 @@ exports.deserializeAws_json1_1ListConnectionsCommand = deserializeAws_json1_1Lis
|
|
|
1787
1787
|
const deserializeAws_json1_1ListConnectionsCommandError = async (output, context) => {
|
|
1788
1788
|
const parsedOutput = {
|
|
1789
1789
|
...output,
|
|
1790
|
-
body: await
|
|
1790
|
+
body: await parseErrorBody(output.body, context),
|
|
1791
1791
|
};
|
|
1792
1792
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1793
|
switch (errorCode) {
|
|
@@ -1821,7 +1821,7 @@ exports.deserializeAws_json1_1ListEndpointsCommand = deserializeAws_json1_1ListE
|
|
|
1821
1821
|
const deserializeAws_json1_1ListEndpointsCommandError = async (output, context) => {
|
|
1822
1822
|
const parsedOutput = {
|
|
1823
1823
|
...output,
|
|
1824
|
-
body: await
|
|
1824
|
+
body: await parseErrorBody(output.body, context),
|
|
1825
1825
|
};
|
|
1826
1826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1827
1827
|
switch (errorCode) {
|
|
@@ -1855,7 +1855,7 @@ exports.deserializeAws_json1_1ListEventBusesCommand = deserializeAws_json1_1List
|
|
|
1855
1855
|
const deserializeAws_json1_1ListEventBusesCommandError = async (output, context) => {
|
|
1856
1856
|
const parsedOutput = {
|
|
1857
1857
|
...output,
|
|
1858
|
-
body: await
|
|
1858
|
+
body: await parseErrorBody(output.body, context),
|
|
1859
1859
|
};
|
|
1860
1860
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1861
1861
|
switch (errorCode) {
|
|
@@ -1889,7 +1889,7 @@ exports.deserializeAws_json1_1ListEventSourcesCommand = deserializeAws_json1_1Li
|
|
|
1889
1889
|
const deserializeAws_json1_1ListEventSourcesCommandError = 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) {
|
|
@@ -1926,7 +1926,7 @@ exports.deserializeAws_json1_1ListPartnerEventSourceAccountsCommand = deserializ
|
|
|
1926
1926
|
const deserializeAws_json1_1ListPartnerEventSourceAccountsCommandError = async (output, context) => {
|
|
1927
1927
|
const parsedOutput = {
|
|
1928
1928
|
...output,
|
|
1929
|
-
body: await
|
|
1929
|
+
body: await parseErrorBody(output.body, context),
|
|
1930
1930
|
};
|
|
1931
1931
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
1932
|
switch (errorCode) {
|
|
@@ -1966,7 +1966,7 @@ exports.deserializeAws_json1_1ListPartnerEventSourcesCommand = deserializeAws_js
|
|
|
1966
1966
|
const deserializeAws_json1_1ListPartnerEventSourcesCommandError = async (output, context) => {
|
|
1967
1967
|
const parsedOutput = {
|
|
1968
1968
|
...output,
|
|
1969
|
-
body: await
|
|
1969
|
+
body: await parseErrorBody(output.body, context),
|
|
1970
1970
|
};
|
|
1971
1971
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
1972
|
switch (errorCode) {
|
|
@@ -2003,7 +2003,7 @@ exports.deserializeAws_json1_1ListReplaysCommand = deserializeAws_json1_1ListRep
|
|
|
2003
2003
|
const deserializeAws_json1_1ListReplaysCommandError = async (output, context) => {
|
|
2004
2004
|
const parsedOutput = {
|
|
2005
2005
|
...output,
|
|
2006
|
-
body: await
|
|
2006
|
+
body: await parseErrorBody(output.body, context),
|
|
2007
2007
|
};
|
|
2008
2008
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2009
2009
|
switch (errorCode) {
|
|
@@ -2037,7 +2037,7 @@ exports.deserializeAws_json1_1ListRuleNamesByTargetCommand = deserializeAws_json
|
|
|
2037
2037
|
const deserializeAws_json1_1ListRuleNamesByTargetCommandError = async (output, context) => {
|
|
2038
2038
|
const parsedOutput = {
|
|
2039
2039
|
...output,
|
|
2040
|
-
body: await
|
|
2040
|
+
body: await parseErrorBody(output.body, context),
|
|
2041
2041
|
};
|
|
2042
2042
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
2043
|
switch (errorCode) {
|
|
@@ -2074,7 +2074,7 @@ exports.deserializeAws_json1_1ListRulesCommand = deserializeAws_json1_1ListRules
|
|
|
2074
2074
|
const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
2075
2075
|
const parsedOutput = {
|
|
2076
2076
|
...output,
|
|
2077
|
-
body: await
|
|
2077
|
+
body: await parseErrorBody(output.body, context),
|
|
2078
2078
|
};
|
|
2079
2079
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
2080
|
switch (errorCode) {
|
|
@@ -2111,7 +2111,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2111
2111
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2112
2112
|
const parsedOutput = {
|
|
2113
2113
|
...output,
|
|
2114
|
-
body: await
|
|
2114
|
+
body: await parseErrorBody(output.body, context),
|
|
2115
2115
|
};
|
|
2116
2116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
2117
|
switch (errorCode) {
|
|
@@ -2148,7 +2148,7 @@ exports.deserializeAws_json1_1ListTargetsByRuleCommand = deserializeAws_json1_1L
|
|
|
2148
2148
|
const deserializeAws_json1_1ListTargetsByRuleCommandError = async (output, context) => {
|
|
2149
2149
|
const parsedOutput = {
|
|
2150
2150
|
...output,
|
|
2151
|
-
body: await
|
|
2151
|
+
body: await parseErrorBody(output.body, context),
|
|
2152
2152
|
};
|
|
2153
2153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2154
2154
|
switch (errorCode) {
|
|
@@ -2185,7 +2185,7 @@ exports.deserializeAws_json1_1PutEventsCommand = deserializeAws_json1_1PutEvents
|
|
|
2185
2185
|
const deserializeAws_json1_1PutEventsCommandError = async (output, context) => {
|
|
2186
2186
|
const parsedOutput = {
|
|
2187
2187
|
...output,
|
|
2188
|
-
body: await
|
|
2188
|
+
body: await parseErrorBody(output.body, context),
|
|
2189
2189
|
};
|
|
2190
2190
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
2191
|
switch (errorCode) {
|
|
@@ -2219,7 +2219,7 @@ exports.deserializeAws_json1_1PutPartnerEventsCommand = deserializeAws_json1_1Pu
|
|
|
2219
2219
|
const deserializeAws_json1_1PutPartnerEventsCommandError = async (output, context) => {
|
|
2220
2220
|
const parsedOutput = {
|
|
2221
2221
|
...output,
|
|
2222
|
-
body: await
|
|
2222
|
+
body: await parseErrorBody(output.body, context),
|
|
2223
2223
|
};
|
|
2224
2224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
2225
|
switch (errorCode) {
|
|
@@ -2253,7 +2253,7 @@ exports.deserializeAws_json1_1PutPermissionCommand = deserializeAws_json1_1PutPe
|
|
|
2253
2253
|
const deserializeAws_json1_1PutPermissionCommandError = async (output, context) => {
|
|
2254
2254
|
const parsedOutput = {
|
|
2255
2255
|
...output,
|
|
2256
|
-
body: await
|
|
2256
|
+
body: await parseErrorBody(output.body, context),
|
|
2257
2257
|
};
|
|
2258
2258
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
2259
|
switch (errorCode) {
|
|
@@ -2299,7 +2299,7 @@ exports.deserializeAws_json1_1PutRuleCommand = deserializeAws_json1_1PutRuleComm
|
|
|
2299
2299
|
const deserializeAws_json1_1PutRuleCommandError = async (output, context) => {
|
|
2300
2300
|
const parsedOutput = {
|
|
2301
2301
|
...output,
|
|
2302
|
-
body: await
|
|
2302
|
+
body: await parseErrorBody(output.body, context),
|
|
2303
2303
|
};
|
|
2304
2304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2305
2305
|
switch (errorCode) {
|
|
@@ -2348,7 +2348,7 @@ exports.deserializeAws_json1_1PutTargetsCommand = deserializeAws_json1_1PutTarge
|
|
|
2348
2348
|
const deserializeAws_json1_1PutTargetsCommandError = async (output, context) => {
|
|
2349
2349
|
const parsedOutput = {
|
|
2350
2350
|
...output,
|
|
2351
|
-
body: await
|
|
2351
|
+
body: await parseErrorBody(output.body, context),
|
|
2352
2352
|
};
|
|
2353
2353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
2354
|
switch (errorCode) {
|
|
@@ -2391,7 +2391,7 @@ exports.deserializeAws_json1_1RemovePermissionCommand = deserializeAws_json1_1Re
|
|
|
2391
2391
|
const deserializeAws_json1_1RemovePermissionCommandError = async (output, context) => {
|
|
2392
2392
|
const parsedOutput = {
|
|
2393
2393
|
...output,
|
|
2394
|
-
body: await
|
|
2394
|
+
body: await parseErrorBody(output.body, context),
|
|
2395
2395
|
};
|
|
2396
2396
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2397
2397
|
switch (errorCode) {
|
|
@@ -2434,7 +2434,7 @@ exports.deserializeAws_json1_1RemoveTargetsCommand = deserializeAws_json1_1Remov
|
|
|
2434
2434
|
const deserializeAws_json1_1RemoveTargetsCommandError = async (output, context) => {
|
|
2435
2435
|
const parsedOutput = {
|
|
2436
2436
|
...output,
|
|
2437
|
-
body: await
|
|
2437
|
+
body: await parseErrorBody(output.body, context),
|
|
2438
2438
|
};
|
|
2439
2439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2440
2440
|
switch (errorCode) {
|
|
@@ -2477,7 +2477,7 @@ exports.deserializeAws_json1_1StartReplayCommand = deserializeAws_json1_1StartRe
|
|
|
2477
2477
|
const deserializeAws_json1_1StartReplayCommandError = async (output, context) => {
|
|
2478
2478
|
const parsedOutput = {
|
|
2479
2479
|
...output,
|
|
2480
|
-
body: await
|
|
2480
|
+
body: await parseErrorBody(output.body, context),
|
|
2481
2481
|
};
|
|
2482
2482
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2483
2483
|
switch (errorCode) {
|
|
@@ -2523,7 +2523,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2523
2523
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2524
2524
|
const parsedOutput = {
|
|
2525
2525
|
...output,
|
|
2526
|
-
body: await
|
|
2526
|
+
body: await parseErrorBody(output.body, context),
|
|
2527
2527
|
};
|
|
2528
2528
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
2529
|
switch (errorCode) {
|
|
@@ -2566,7 +2566,7 @@ exports.deserializeAws_json1_1TestEventPatternCommand = deserializeAws_json1_1Te
|
|
|
2566
2566
|
const deserializeAws_json1_1TestEventPatternCommandError = async (output, context) => {
|
|
2567
2567
|
const parsedOutput = {
|
|
2568
2568
|
...output,
|
|
2569
|
-
body: await
|
|
2569
|
+
body: await parseErrorBody(output.body, context),
|
|
2570
2570
|
};
|
|
2571
2571
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2572
2572
|
switch (errorCode) {
|
|
@@ -2603,7 +2603,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2603
2603
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2604
2604
|
const parsedOutput = {
|
|
2605
2605
|
...output,
|
|
2606
|
-
body: await
|
|
2606
|
+
body: await parseErrorBody(output.body, context),
|
|
2607
2607
|
};
|
|
2608
2608
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2609
2609
|
switch (errorCode) {
|
|
@@ -2646,7 +2646,7 @@ exports.deserializeAws_json1_1UpdateApiDestinationCommand = deserializeAws_json1
|
|
|
2646
2646
|
const deserializeAws_json1_1UpdateApiDestinationCommandError = async (output, context) => {
|
|
2647
2647
|
const parsedOutput = {
|
|
2648
2648
|
...output,
|
|
2649
|
-
body: await
|
|
2649
|
+
body: await parseErrorBody(output.body, context),
|
|
2650
2650
|
};
|
|
2651
2651
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
2652
|
switch (errorCode) {
|
|
@@ -2689,7 +2689,7 @@ exports.deserializeAws_json1_1UpdateArchiveCommand = deserializeAws_json1_1Updat
|
|
|
2689
2689
|
const deserializeAws_json1_1UpdateArchiveCommandError = async (output, context) => {
|
|
2690
2690
|
const parsedOutput = {
|
|
2691
2691
|
...output,
|
|
2692
|
-
body: await
|
|
2692
|
+
body: await parseErrorBody(output.body, context),
|
|
2693
2693
|
};
|
|
2694
2694
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2695
2695
|
switch (errorCode) {
|
|
@@ -2735,7 +2735,7 @@ exports.deserializeAws_json1_1UpdateConnectionCommand = deserializeAws_json1_1Up
|
|
|
2735
2735
|
const deserializeAws_json1_1UpdateConnectionCommandError = async (output, context) => {
|
|
2736
2736
|
const parsedOutput = {
|
|
2737
2737
|
...output,
|
|
2738
|
-
body: await
|
|
2738
|
+
body: await parseErrorBody(output.body, context),
|
|
2739
2739
|
};
|
|
2740
2740
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2741
2741
|
switch (errorCode) {
|
|
@@ -2778,7 +2778,7 @@ exports.deserializeAws_json1_1UpdateEndpointCommand = deserializeAws_json1_1Upda
|
|
|
2778
2778
|
const deserializeAws_json1_1UpdateEndpointCommandError = async (output, context) => {
|
|
2779
2779
|
const parsedOutput = {
|
|
2780
2780
|
...output,
|
|
2781
|
-
body: await
|
|
2781
|
+
body: await parseErrorBody(output.body, context),
|
|
2782
2782
|
};
|
|
2783
2783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2784
2784
|
switch (errorCode) {
|
|
@@ -5273,6 +5273,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5273
5273
|
}
|
|
5274
5274
|
return {};
|
|
5275
5275
|
});
|
|
5276
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5277
|
+
var _a;
|
|
5278
|
+
const value = await parseBody(errorBody, context);
|
|
5279
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5280
|
+
return value;
|
|
5281
|
+
};
|
|
5276
5282
|
const loadRestJsonErrorCode = (output, data) => {
|
|
5277
5283
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
5278
5284
|
const sanitizeErrorCode = (rawValue) => {
|