@aws-sdk/client-managedblockchain 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_restJson1.js +29 -23
- package/dist-es/ManagedBlockchain.js +94 -101
- package/dist-es/ManagedBlockchainClient.js +22 -28
- package/dist-es/commands/CreateMemberCommand.js +21 -28
- package/dist-es/commands/CreateNetworkCommand.js +21 -28
- package/dist-es/commands/CreateNodeCommand.js +21 -28
- package/dist-es/commands/CreateProposalCommand.js +21 -28
- package/dist-es/commands/DeleteMemberCommand.js +21 -28
- package/dist-es/commands/DeleteNodeCommand.js +21 -28
- package/dist-es/commands/GetMemberCommand.js +21 -28
- package/dist-es/commands/GetNetworkCommand.js +21 -28
- package/dist-es/commands/GetNodeCommand.js +21 -28
- package/dist-es/commands/GetProposalCommand.js +21 -28
- package/dist-es/commands/ListInvitationsCommand.js +21 -28
- package/dist-es/commands/ListMembersCommand.js +21 -28
- package/dist-es/commands/ListNetworksCommand.js +21 -28
- package/dist-es/commands/ListNodesCommand.js +21 -28
- package/dist-es/commands/ListProposalVotesCommand.js +21 -28
- package/dist-es/commands/ListProposalsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/RejectInvitationCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateMemberCommand.js +21 -28
- package/dist-es/commands/UpdateNodeCommand.js +21 -28
- package/dist-es/commands/VoteOnProposalCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ManagedBlockchainServiceException.js +5 -10
- package/dist-es/models/models_0.js +374 -208
- package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
- package/dist-es/pagination/ListMembersPaginator.js +25 -68
- package/dist-es/pagination/ListNetworksPaginator.js +25 -68
- package/dist-es/pagination/ListNodesPaginator.js +25 -68
- package/dist-es/pagination/ListProposalVotesPaginator.js +25 -68
- package/dist-es/pagination/ListProposalsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1862 -2542
- 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-managedblockchain
|
|
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-managedblockchain
|
|
@@ -550,7 +550,7 @@ exports.deserializeAws_restJson1CreateMemberCommand = deserializeAws_restJson1Cr
|
|
|
550
550
|
const deserializeAws_restJson1CreateMemberCommandError = async (output, context) => {
|
|
551
551
|
const parsedOutput = {
|
|
552
552
|
...output,
|
|
553
|
-
body: await
|
|
553
|
+
body: await parseErrorBody(output.body, context),
|
|
554
554
|
};
|
|
555
555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
556
|
switch (errorCode) {
|
|
@@ -611,7 +611,7 @@ exports.deserializeAws_restJson1CreateNetworkCommand = deserializeAws_restJson1C
|
|
|
611
611
|
const deserializeAws_restJson1CreateNetworkCommandError = async (output, context) => {
|
|
612
612
|
const parsedOutput = {
|
|
613
613
|
...output,
|
|
614
|
-
body: await
|
|
614
|
+
body: await parseErrorBody(output.body, context),
|
|
615
615
|
};
|
|
616
616
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
617
|
switch (errorCode) {
|
|
@@ -663,7 +663,7 @@ exports.deserializeAws_restJson1CreateNodeCommand = deserializeAws_restJson1Crea
|
|
|
663
663
|
const deserializeAws_restJson1CreateNodeCommandError = 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) {
|
|
@@ -721,7 +721,7 @@ exports.deserializeAws_restJson1CreateProposalCommand = deserializeAws_restJson1
|
|
|
721
721
|
const deserializeAws_restJson1CreateProposalCommandError = async (output, context) => {
|
|
722
722
|
const parsedOutput = {
|
|
723
723
|
...output,
|
|
724
|
-
body: await
|
|
724
|
+
body: await parseErrorBody(output.body, context),
|
|
725
725
|
};
|
|
726
726
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
727
727
|
switch (errorCode) {
|
|
@@ -770,7 +770,7 @@ exports.deserializeAws_restJson1DeleteMemberCommand = deserializeAws_restJson1De
|
|
|
770
770
|
const deserializeAws_restJson1DeleteMemberCommandError = async (output, context) => {
|
|
771
771
|
const parsedOutput = {
|
|
772
772
|
...output,
|
|
773
|
-
body: await
|
|
773
|
+
body: await parseErrorBody(output.body, context),
|
|
774
774
|
};
|
|
775
775
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
776
776
|
switch (errorCode) {
|
|
@@ -816,7 +816,7 @@ exports.deserializeAws_restJson1DeleteNodeCommand = deserializeAws_restJson1Dele
|
|
|
816
816
|
const deserializeAws_restJson1DeleteNodeCommandError = async (output, context) => {
|
|
817
817
|
const parsedOutput = {
|
|
818
818
|
...output,
|
|
819
|
-
body: await
|
|
819
|
+
body: await parseErrorBody(output.body, context),
|
|
820
820
|
};
|
|
821
821
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
822
|
switch (errorCode) {
|
|
@@ -865,7 +865,7 @@ exports.deserializeAws_restJson1GetMemberCommand = deserializeAws_restJson1GetMe
|
|
|
865
865
|
const deserializeAws_restJson1GetMemberCommandError = async (output, context) => {
|
|
866
866
|
const parsedOutput = {
|
|
867
867
|
...output,
|
|
868
|
-
body: await
|
|
868
|
+
body: await parseErrorBody(output.body, context),
|
|
869
869
|
};
|
|
870
870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
871
|
switch (errorCode) {
|
|
@@ -911,7 +911,7 @@ exports.deserializeAws_restJson1GetNetworkCommand = deserializeAws_restJson1GetN
|
|
|
911
911
|
const deserializeAws_restJson1GetNetworkCommandError = async (output, context) => {
|
|
912
912
|
const parsedOutput = {
|
|
913
913
|
...output,
|
|
914
|
-
body: await
|
|
914
|
+
body: await parseErrorBody(output.body, context),
|
|
915
915
|
};
|
|
916
916
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
917
|
switch (errorCode) {
|
|
@@ -957,7 +957,7 @@ exports.deserializeAws_restJson1GetNodeCommand = deserializeAws_restJson1GetNode
|
|
|
957
957
|
const deserializeAws_restJson1GetNodeCommandError = async (output, context) => {
|
|
958
958
|
const parsedOutput = {
|
|
959
959
|
...output,
|
|
960
|
-
body: await
|
|
960
|
+
body: await parseErrorBody(output.body, context),
|
|
961
961
|
};
|
|
962
962
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
963
|
switch (errorCode) {
|
|
@@ -1003,7 +1003,7 @@ exports.deserializeAws_restJson1GetProposalCommand = deserializeAws_restJson1Get
|
|
|
1003
1003
|
const deserializeAws_restJson1GetProposalCommandError = async (output, context) => {
|
|
1004
1004
|
const parsedOutput = {
|
|
1005
1005
|
...output,
|
|
1006
|
-
body: await
|
|
1006
|
+
body: await parseErrorBody(output.body, context),
|
|
1007
1007
|
};
|
|
1008
1008
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
1009
|
switch (errorCode) {
|
|
@@ -1052,7 +1052,7 @@ exports.deserializeAws_restJson1ListInvitationsCommand = deserializeAws_restJson
|
|
|
1052
1052
|
const deserializeAws_restJson1ListInvitationsCommandError = async (output, context) => {
|
|
1053
1053
|
const parsedOutput = {
|
|
1054
1054
|
...output,
|
|
1055
|
-
body: await
|
|
1055
|
+
body: await parseErrorBody(output.body, context),
|
|
1056
1056
|
};
|
|
1057
1057
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
1058
|
switch (errorCode) {
|
|
@@ -1104,7 +1104,7 @@ exports.deserializeAws_restJson1ListMembersCommand = deserializeAws_restJson1Lis
|
|
|
1104
1104
|
const deserializeAws_restJson1ListMembersCommandError = async (output, context) => {
|
|
1105
1105
|
const parsedOutput = {
|
|
1106
1106
|
...output,
|
|
1107
|
-
body: await
|
|
1107
|
+
body: await parseErrorBody(output.body, context),
|
|
1108
1108
|
};
|
|
1109
1109
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
1110
|
switch (errorCode) {
|
|
@@ -1150,7 +1150,7 @@ exports.deserializeAws_restJson1ListNetworksCommand = deserializeAws_restJson1Li
|
|
|
1150
1150
|
const deserializeAws_restJson1ListNetworksCommandError = async (output, context) => {
|
|
1151
1151
|
const parsedOutput = {
|
|
1152
1152
|
...output,
|
|
1153
|
-
body: await
|
|
1153
|
+
body: await parseErrorBody(output.body, context),
|
|
1154
1154
|
};
|
|
1155
1155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
1156
|
switch (errorCode) {
|
|
@@ -1196,7 +1196,7 @@ exports.deserializeAws_restJson1ListNodesCommand = deserializeAws_restJson1ListN
|
|
|
1196
1196
|
const deserializeAws_restJson1ListNodesCommandError = async (output, context) => {
|
|
1197
1197
|
const parsedOutput = {
|
|
1198
1198
|
...output,
|
|
1199
|
-
body: await
|
|
1199
|
+
body: await parseErrorBody(output.body, context),
|
|
1200
1200
|
};
|
|
1201
1201
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
1202
|
switch (errorCode) {
|
|
@@ -1242,7 +1242,7 @@ exports.deserializeAws_restJson1ListProposalsCommand = deserializeAws_restJson1L
|
|
|
1242
1242
|
const deserializeAws_restJson1ListProposalsCommandError = async (output, context) => {
|
|
1243
1243
|
const parsedOutput = {
|
|
1244
1244
|
...output,
|
|
1245
|
-
body: await
|
|
1245
|
+
body: await parseErrorBody(output.body, context),
|
|
1246
1246
|
};
|
|
1247
1247
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
1248
|
switch (errorCode) {
|
|
@@ -1291,7 +1291,7 @@ exports.deserializeAws_restJson1ListProposalVotesCommand = deserializeAws_restJs
|
|
|
1291
1291
|
const deserializeAws_restJson1ListProposalVotesCommandError = async (output, context) => {
|
|
1292
1292
|
const parsedOutput = {
|
|
1293
1293
|
...output,
|
|
1294
|
-
body: await
|
|
1294
|
+
body: await parseErrorBody(output.body, context),
|
|
1295
1295
|
};
|
|
1296
1296
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
1297
|
switch (errorCode) {
|
|
@@ -1334,7 +1334,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1334
1334
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1335
1335
|
const parsedOutput = {
|
|
1336
1336
|
...output,
|
|
1337
|
-
body: await
|
|
1337
|
+
body: await parseErrorBody(output.body, context),
|
|
1338
1338
|
};
|
|
1339
1339
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1340
1340
|
switch (errorCode) {
|
|
@@ -1374,7 +1374,7 @@ exports.deserializeAws_restJson1RejectInvitationCommand = deserializeAws_restJso
|
|
|
1374
1374
|
const deserializeAws_restJson1RejectInvitationCommandError = async (output, context) => {
|
|
1375
1375
|
const parsedOutput = {
|
|
1376
1376
|
...output,
|
|
1377
|
-
body: await
|
|
1377
|
+
body: await parseErrorBody(output.body, context),
|
|
1378
1378
|
};
|
|
1379
1379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
1380
|
switch (errorCode) {
|
|
@@ -1420,7 +1420,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1420
1420
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1421
1421
|
const parsedOutput = {
|
|
1422
1422
|
...output,
|
|
1423
|
-
body: await
|
|
1423
|
+
body: await parseErrorBody(output.body, context),
|
|
1424
1424
|
};
|
|
1425
1425
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1426
1426
|
switch (errorCode) {
|
|
@@ -1463,7 +1463,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1463
1463
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1464
1464
|
const parsedOutput = {
|
|
1465
1465
|
...output,
|
|
1466
|
-
body: await
|
|
1466
|
+
body: await parseErrorBody(output.body, context),
|
|
1467
1467
|
};
|
|
1468
1468
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
1469
|
switch (errorCode) {
|
|
@@ -1503,7 +1503,7 @@ exports.deserializeAws_restJson1UpdateMemberCommand = deserializeAws_restJson1Up
|
|
|
1503
1503
|
const deserializeAws_restJson1UpdateMemberCommandError = async (output, context) => {
|
|
1504
1504
|
const parsedOutput = {
|
|
1505
1505
|
...output,
|
|
1506
|
-
body: await
|
|
1506
|
+
body: await parseErrorBody(output.body, context),
|
|
1507
1507
|
};
|
|
1508
1508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1509
1509
|
switch (errorCode) {
|
|
@@ -1546,7 +1546,7 @@ exports.deserializeAws_restJson1UpdateNodeCommand = deserializeAws_restJson1Upda
|
|
|
1546
1546
|
const deserializeAws_restJson1UpdateNodeCommandError = async (output, context) => {
|
|
1547
1547
|
const parsedOutput = {
|
|
1548
1548
|
...output,
|
|
1549
|
-
body: await
|
|
1549
|
+
body: await parseErrorBody(output.body, context),
|
|
1550
1550
|
};
|
|
1551
1551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1552
1552
|
switch (errorCode) {
|
|
@@ -1589,7 +1589,7 @@ exports.deserializeAws_restJson1VoteOnProposalCommand = deserializeAws_restJson1
|
|
|
1589
1589
|
const deserializeAws_restJson1VoteOnProposalCommandError = async (output, context) => {
|
|
1590
1590
|
const parsedOutput = {
|
|
1591
1591
|
...output,
|
|
1592
|
-
body: await
|
|
1592
|
+
body: await parseErrorBody(output.body, context),
|
|
1593
1593
|
};
|
|
1594
1594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
1595
|
switch (errorCode) {
|
|
@@ -2260,6 +2260,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2260
2260
|
}
|
|
2261
2261
|
return {};
|
|
2262
2262
|
});
|
|
2263
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2264
|
+
var _a;
|
|
2265
|
+
const value = await parseBody(errorBody, context);
|
|
2266
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2267
|
+
return value;
|
|
2268
|
+
};
|
|
2263
2269
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2264
2270
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2265
2271
|
const sanitizeErrorCode = (rawValue) => {
|