@aws-sdk/client-managedblockchain 3.36.0 → 3.36.1

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/ManagedBlockchain.js +0 -6
  3. package/dist-cjs/ManagedBlockchainClient.js +0 -11
  4. package/dist-cjs/commands/CreateMemberCommand.js +0 -25
  5. package/dist-cjs/commands/CreateNetworkCommand.js +0 -25
  6. package/dist-cjs/commands/CreateNodeCommand.js +0 -25
  7. package/dist-cjs/commands/CreateProposalCommand.js +0 -25
  8. package/dist-cjs/commands/DeleteMemberCommand.js +0 -25
  9. package/dist-cjs/commands/DeleteNodeCommand.js +0 -25
  10. package/dist-cjs/commands/GetMemberCommand.js +0 -25
  11. package/dist-cjs/commands/GetNetworkCommand.js +0 -25
  12. package/dist-cjs/commands/GetNodeCommand.js +0 -25
  13. package/dist-cjs/commands/GetProposalCommand.js +0 -25
  14. package/dist-cjs/commands/ListInvitationsCommand.js +0 -25
  15. package/dist-cjs/commands/ListMembersCommand.js +0 -25
  16. package/dist-cjs/commands/ListNetworksCommand.js +0 -25
  17. package/dist-cjs/commands/ListNodesCommand.js +0 -25
  18. package/dist-cjs/commands/ListProposalVotesCommand.js +0 -25
  19. package/dist-cjs/commands/ListProposalsCommand.js +0 -25
  20. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  21. package/dist-cjs/commands/RejectInvitationCommand.js +0 -25
  22. package/dist-cjs/commands/TagResourceCommand.js +0 -27
  23. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  24. package/dist-cjs/commands/UpdateMemberCommand.js +0 -25
  25. package/dist-cjs/commands/UpdateNodeCommand.js +0 -25
  26. package/dist-cjs/commands/VoteOnProposalCommand.js +0 -25
  27. package/dist-cjs/models/models_0.js +0 -273
  28. package/dist-cjs/pagination/ListInvitationsPaginator.js +0 -10
  29. package/dist-cjs/pagination/ListMembersPaginator.js +0 -10
  30. package/dist-cjs/pagination/ListNetworksPaginator.js +0 -10
  31. package/dist-cjs/pagination/ListNodesPaginator.js +0 -10
  32. package/dist-cjs/pagination/ListProposalVotesPaginator.js +0 -10
  33. package/dist-cjs/pagination/ListProposalsPaginator.js +0 -10
  34. package/dist-cjs/protocols/Aws_restJson1.js +0 -5
  35. package/dist-cjs/runtimeConfig.browser.js +1 -5
  36. package/dist-cjs/runtimeConfig.js +1 -5
  37. package/dist-cjs/runtimeConfig.native.js +0 -3
  38. package/dist-cjs/runtimeConfig.shared.js +0 -3
  39. package/dist-types/ts3.4/ManagedBlockchain.d.ts +24 -100
  40. package/dist-types/ts3.4/ManagedBlockchainClient.d.ts +24 -92
  41. package/dist-types/ts3.4/commands/CreateMemberCommand.d.ts +2 -21
  42. package/dist-types/ts3.4/commands/CreateNetworkCommand.d.ts +2 -21
  43. package/dist-types/ts3.4/commands/CreateNodeCommand.d.ts +2 -21
  44. package/dist-types/ts3.4/commands/CreateProposalCommand.d.ts +2 -21
  45. package/dist-types/ts3.4/commands/DeleteMemberCommand.d.ts +2 -21
  46. package/dist-types/ts3.4/commands/DeleteNodeCommand.d.ts +2 -21
  47. package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +2 -21
  48. package/dist-types/ts3.4/commands/GetNetworkCommand.d.ts +2 -21
  49. package/dist-types/ts3.4/commands/GetNodeCommand.d.ts +2 -21
  50. package/dist-types/ts3.4/commands/GetProposalCommand.d.ts +2 -21
  51. package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +2 -21
  52. package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +2 -21
  53. package/dist-types/ts3.4/commands/ListNetworksCommand.d.ts +2 -21
  54. package/dist-types/ts3.4/commands/ListNodesCommand.d.ts +2 -21
  55. package/dist-types/ts3.4/commands/ListProposalVotesCommand.d.ts +2 -21
  56. package/dist-types/ts3.4/commands/ListProposalsCommand.d.ts +2 -21
  57. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -21
  58. package/dist-types/ts3.4/commands/RejectInvitationCommand.d.ts +2 -21
  59. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
  60. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
  61. package/dist-types/ts3.4/commands/UpdateMemberCommand.d.ts +2 -21
  62. package/dist-types/ts3.4/commands/UpdateNodeCommand.d.ts +2 -21
  63. package/dist-types/ts3.4/commands/VoteOnProposalCommand.d.ts +2 -21
  64. package/dist-types/ts3.4/models/models_0.d.ts +371 -1455
  65. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  66. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  67. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  68. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  69. package/package.json +3 -3
@@ -4,22 +4,13 @@ exports.paginateListInvitations = void 0;
4
4
  const ListInvitationsCommand_1 = require("../commands/ListInvitationsCommand");
5
5
  const ManagedBlockchain_1 = require("../ManagedBlockchain");
6
6
  const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListInvitationsCommand_1.ListInvitationsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listInvitations(input, ...args);
20
12
  };
21
13
  async function* paginateListInvitations(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListInvitations(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListInvitations = paginateListInvitations;
@@ -4,22 +4,13 @@ exports.paginateListMembers = void 0;
4
4
  const ListMembersCommand_1 = require("../commands/ListMembersCommand");
5
5
  const ManagedBlockchain_1 = require("../ManagedBlockchain");
6
6
  const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListMembersCommand_1.ListMembersCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listMembers(input, ...args);
20
12
  };
21
13
  async function* paginateListMembers(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListMembers(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListMembers = paginateListMembers;
@@ -4,22 +4,13 @@ exports.paginateListNetworks = void 0;
4
4
  const ListNetworksCommand_1 = require("../commands/ListNetworksCommand");
5
5
  const ManagedBlockchain_1 = require("../ManagedBlockchain");
6
6
  const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListNetworksCommand_1.ListNetworksCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listNetworks(input, ...args);
20
12
  };
21
13
  async function* paginateListNetworks(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListNetworks(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListNetworks = paginateListNetworks;
@@ -4,22 +4,13 @@ exports.paginateListNodes = void 0;
4
4
  const ListNodesCommand_1 = require("../commands/ListNodesCommand");
5
5
  const ManagedBlockchain_1 = require("../ManagedBlockchain");
6
6
  const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListNodesCommand_1.ListNodesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listNodes(input, ...args);
20
12
  };
21
13
  async function* paginateListNodes(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListNodes(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListNodes = paginateListNodes;
@@ -4,22 +4,13 @@ exports.paginateListProposalVotes = void 0;
4
4
  const ListProposalVotesCommand_1 = require("../commands/ListProposalVotesCommand");
5
5
  const ManagedBlockchain_1 = require("../ManagedBlockchain");
6
6
  const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListProposalVotesCommand_1.ListProposalVotesCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listProposalVotes(input, ...args);
20
12
  };
21
13
  async function* paginateListProposalVotes(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListProposalVotes(config, input, ...additionalArguments)
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListProposalVotes = paginateListProposalVotes;
@@ -4,22 +4,13 @@ exports.paginateListProposals = void 0;
4
4
  const ListProposalsCommand_1 = require("../commands/ListProposalsCommand");
5
5
  const ManagedBlockchain_1 = require("../ManagedBlockchain");
6
6
  const ManagedBlockchainClient_1 = require("../ManagedBlockchainClient");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListProposalsCommand_1.ListProposalsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listProposals(input, ...args);
20
12
  };
21
13
  async function* paginateListProposals(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateListProposals(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateListProposals = paginateListProposals;
@@ -3430,14 +3430,12 @@ const deserializeMetadata = (output) => {
3430
3430
  cfId: output.headers["x-amz-cf-id"],
3431
3431
  });
3432
3432
  };
3433
- // Collect low-level response body stream to Uint8Array.
3434
3433
  const collectBody = (streamBody = new Uint8Array(), context) => {
3435
3434
  if (streamBody instanceof Uint8Array) {
3436
3435
  return Promise.resolve(streamBody);
3437
3436
  }
3438
3437
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3439
3438
  };
3440
- // Encode Uint8Array data into string with utf-8.
3441
3439
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3442
3440
  const isSerializableHeaderValue = (value) => value !== undefined &&
3443
3441
  value !== null &&
@@ -3450,9 +3448,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
3450
3448
  }
3451
3449
  return {};
3452
3450
  });
3453
- /**
3454
- * Load an error code for the aws.rest-json-1.1 protocol.
3455
- */
3456
3451
  const loadRestJsonErrorCode = (output, data) => {
3457
3452
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3458
3453
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -23,173 +23,97 @@ import { UpdateMemberCommandInput, UpdateMemberCommandOutput } from "./commands/
23
23
  import { UpdateNodeCommandInput, UpdateNodeCommandOutput } from "./commands/UpdateNodeCommand";
24
24
  import { VoteOnProposalCommandInput, VoteOnProposalCommandOutput } from "./commands/VoteOnProposalCommand";
25
25
  import { ManagedBlockchainClient } from "./ManagedBlockchainClient";
26
- /**
27
- * <p></p>
28
- * <p>Amazon Managed Blockchain is a fully managed service for creating and managing blockchain networks using open-source frameworks. Blockchain allows you to build applications where multiple parties can securely and transparently run transactions and share data without the need for a trusted, central authority.</p>
29
- * <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> do not apply to Ethereum.</p>
30
- * <p>The description for each action indicates the framework or frameworks to which it applies. Data types and properties that apply only in the context of a particular framework are similarly indicated.</p>
31
- */
26
+
32
27
  export declare class ManagedBlockchain extends ManagedBlockchainClient {
33
- /**
34
- * <p>Creates a member within a Managed Blockchain network.</p>
35
- * <p>Applies only to Hyperledger Fabric.</p>
36
- */
28
+
37
29
  createMember(args: CreateMemberCommandInput, options?: __HttpHandlerOptions): Promise<CreateMemberCommandOutput>;
38
30
  createMember(args: CreateMemberCommandInput, cb: (err: any, data?: CreateMemberCommandOutput) => void): void;
39
31
  createMember(args: CreateMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMemberCommandOutput) => void): void;
40
- /**
41
- * <p>Creates a new blockchain network using Amazon Managed Blockchain.</p>
42
- * <p>Applies only to Hyperledger Fabric.</p>
43
- */
32
+
44
33
  createNetwork(args: CreateNetworkCommandInput, options?: __HttpHandlerOptions): Promise<CreateNetworkCommandOutput>;
45
34
  createNetwork(args: CreateNetworkCommandInput, cb: (err: any, data?: CreateNetworkCommandOutput) => void): void;
46
35
  createNetwork(args: CreateNetworkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNetworkCommandOutput) => void): void;
47
- /**
48
- * <p>Creates a node on the specified blockchain network.</p>
49
- * <p>Applies to Hyperledger Fabric and Ethereum.</p>
50
- */
36
+
51
37
  createNode(args: CreateNodeCommandInput, options?: __HttpHandlerOptions): Promise<CreateNodeCommandOutput>;
52
38
  createNode(args: CreateNodeCommandInput, cb: (err: any, data?: CreateNodeCommandOutput) => void): void;
53
39
  createNode(args: CreateNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNodeCommandOutput) => void): void;
54
- /**
55
- * <p>Creates a proposal for a change to the network that other members of the network can vote on, for example, a proposal to add a new member to the network. Any member can create a proposal.</p>
56
- * <p>Applies only to Hyperledger Fabric.</p>
57
- */
40
+
58
41
  createProposal(args: CreateProposalCommandInput, options?: __HttpHandlerOptions): Promise<CreateProposalCommandOutput>;
59
42
  createProposal(args: CreateProposalCommandInput, cb: (err: any, data?: CreateProposalCommandOutput) => void): void;
60
43
  createProposal(args: CreateProposalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProposalCommandOutput) => void): void;
61
- /**
62
- * <p>Deletes a member. Deleting a member removes the member and all associated resources from the network. <code>DeleteMember</code> can only be called for a specified <code>MemberId</code> if the principal performing the action is associated with the AWS account that owns the member. In all other cases, the <code>DeleteMember</code> action is carried out as the result of an approved proposal to remove a member. If <code>MemberId</code> is the last member in a network specified by the last AWS account, the network is deleted also.</p>
63
- * <p>Applies only to Hyperledger Fabric.</p>
64
- */
44
+
65
45
  deleteMember(args: DeleteMemberCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMemberCommandOutput>;
66
46
  deleteMember(args: DeleteMemberCommandInput, cb: (err: any, data?: DeleteMemberCommandOutput) => void): void;
67
47
  deleteMember(args: DeleteMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMemberCommandOutput) => void): void;
68
- /**
69
- * <p>Deletes a node that your AWS account owns. All data on the node is lost and cannot be recovered.</p>
70
- * <p>Applies to Hyperledger Fabric and Ethereum.</p>
71
- */
48
+
72
49
  deleteNode(args: DeleteNodeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteNodeCommandOutput>;
73
50
  deleteNode(args: DeleteNodeCommandInput, cb: (err: any, data?: DeleteNodeCommandOutput) => void): void;
74
51
  deleteNode(args: DeleteNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteNodeCommandOutput) => void): void;
75
- /**
76
- * <p>Returns detailed information about a member.</p>
77
- * <p>Applies only to Hyperledger Fabric.</p>
78
- */
52
+
79
53
  getMember(args: GetMemberCommandInput, options?: __HttpHandlerOptions): Promise<GetMemberCommandOutput>;
80
54
  getMember(args: GetMemberCommandInput, cb: (err: any, data?: GetMemberCommandOutput) => void): void;
81
55
  getMember(args: GetMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMemberCommandOutput) => void): void;
82
- /**
83
- * <p>Returns detailed information about a network.</p>
84
- * <p>Applies to Hyperledger Fabric and Ethereum.</p>
85
- */
56
+
86
57
  getNetwork(args: GetNetworkCommandInput, options?: __HttpHandlerOptions): Promise<GetNetworkCommandOutput>;
87
58
  getNetwork(args: GetNetworkCommandInput, cb: (err: any, data?: GetNetworkCommandOutput) => void): void;
88
59
  getNetwork(args: GetNetworkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetNetworkCommandOutput) => void): void;
89
- /**
90
- * <p>Returns detailed information about a node.</p>
91
- * <p>Applies to Hyperledger Fabric and Ethereum.</p>
92
- */
60
+
93
61
  getNode(args: GetNodeCommandInput, options?: __HttpHandlerOptions): Promise<GetNodeCommandOutput>;
94
62
  getNode(args: GetNodeCommandInput, cb: (err: any, data?: GetNodeCommandOutput) => void): void;
95
63
  getNode(args: GetNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetNodeCommandOutput) => void): void;
96
- /**
97
- * <p>Returns detailed information about a proposal.</p>
98
- * <p>Applies only to Hyperledger Fabric.</p>
99
- */
64
+
100
65
  getProposal(args: GetProposalCommandInput, options?: __HttpHandlerOptions): Promise<GetProposalCommandOutput>;
101
66
  getProposal(args: GetProposalCommandInput, cb: (err: any, data?: GetProposalCommandOutput) => void): void;
102
67
  getProposal(args: GetProposalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProposalCommandOutput) => void): void;
103
- /**
104
- * <p>Returns a list of all invitations for the current AWS account.</p>
105
- * <p>Applies only to Hyperledger Fabric.</p>
106
- */
68
+
107
69
  listInvitations(args: ListInvitationsCommandInput, options?: __HttpHandlerOptions): Promise<ListInvitationsCommandOutput>;
108
70
  listInvitations(args: ListInvitationsCommandInput, cb: (err: any, data?: ListInvitationsCommandOutput) => void): void;
109
71
  listInvitations(args: ListInvitationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInvitationsCommandOutput) => void): void;
110
- /**
111
- * <p>Returns a list of the members in a network and properties of their configurations.</p>
112
- * <p>Applies only to Hyperledger Fabric.</p>
113
- */
72
+
114
73
  listMembers(args: ListMembersCommandInput, options?: __HttpHandlerOptions): Promise<ListMembersCommandOutput>;
115
74
  listMembers(args: ListMembersCommandInput, cb: (err: any, data?: ListMembersCommandOutput) => void): void;
116
75
  listMembers(args: ListMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMembersCommandOutput) => void): void;
117
- /**
118
- * <p>Returns information about the networks in which the current AWS account participates.</p>
119
- * <p>Applies to Hyperledger Fabric and Ethereum.</p>
120
- */
76
+
121
77
  listNetworks(args: ListNetworksCommandInput, options?: __HttpHandlerOptions): Promise<ListNetworksCommandOutput>;
122
78
  listNetworks(args: ListNetworksCommandInput, cb: (err: any, data?: ListNetworksCommandOutput) => void): void;
123
79
  listNetworks(args: ListNetworksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNetworksCommandOutput) => void): void;
124
- /**
125
- * <p>Returns information about the nodes within a network.</p>
126
- * <p>Applies to Hyperledger Fabric and Ethereum.</p>
127
- */
80
+
128
81
  listNodes(args: ListNodesCommandInput, options?: __HttpHandlerOptions): Promise<ListNodesCommandOutput>;
129
82
  listNodes(args: ListNodesCommandInput, cb: (err: any, data?: ListNodesCommandOutput) => void): void;
130
83
  listNodes(args: ListNodesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNodesCommandOutput) => void): void;
131
- /**
132
- * <p>Returns a list of proposals for the network.</p>
133
- * <p>Applies only to Hyperledger Fabric.</p>
134
- */
84
+
135
85
  listProposals(args: ListProposalsCommandInput, options?: __HttpHandlerOptions): Promise<ListProposalsCommandOutput>;
136
86
  listProposals(args: ListProposalsCommandInput, cb: (err: any, data?: ListProposalsCommandOutput) => void): void;
137
87
  listProposals(args: ListProposalsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProposalsCommandOutput) => void): void;
138
- /**
139
- * <p>Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.</p>
140
- * <p>Applies only to Hyperledger Fabric.</p>
141
- */
88
+
142
89
  listProposalVotes(args: ListProposalVotesCommandInput, options?: __HttpHandlerOptions): Promise<ListProposalVotesCommandOutput>;
143
90
  listProposalVotes(args: ListProposalVotesCommandInput, cb: (err: any, data?: ListProposalVotesCommandOutput) => void): void;
144
91
  listProposalVotes(args: ListProposalVotesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProposalVotesCommandOutput) => void): void;
145
- /**
146
- * <p>Returns a list of tags for the specified resource. Each tag consists of a key and optional value.</p>
147
- * <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
148
- */
92
+
149
93
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
150
94
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
151
95
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
152
- /**
153
- * <p>Rejects an invitation to join a network. This action can be called by a principal in an AWS account that has received an invitation to create a member and join a network.</p>
154
- * <p>Applies only to Hyperledger Fabric.</p>
155
- */
96
+
156
97
  rejectInvitation(args: RejectInvitationCommandInput, options?: __HttpHandlerOptions): Promise<RejectInvitationCommandOutput>;
157
98
  rejectInvitation(args: RejectInvitationCommandInput, cb: (err: any, data?: RejectInvitationCommandOutput) => void): void;
158
99
  rejectInvitation(args: RejectInvitationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RejectInvitationCommandOutput) => void): void;
159
- /**
160
- * <p>Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource. Each tag consists of a key and optional value.</p>
161
- * <p>When you specify a tag key that already exists, the tag value is overwritten with the new value. Use <code>UntagResource</code> to remove tag keys.</p>
162
- * <p>A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and returns an error.</p>
163
- * <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
164
- */
100
+
165
101
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
166
102
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
167
103
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
168
- /**
169
- * <p>Removes the specified tags from the Amazon Managed Blockchain resource.</p>
170
- * <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
171
- */
104
+
172
105
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
173
106
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
174
107
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
175
- /**
176
- * <p>Updates a member configuration with new parameters.</p>
177
- * <p>Applies only to Hyperledger Fabric.</p>
178
- */
108
+
179
109
  updateMember(args: UpdateMemberCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMemberCommandOutput>;
180
110
  updateMember(args: UpdateMemberCommandInput, cb: (err: any, data?: UpdateMemberCommandOutput) => void): void;
181
111
  updateMember(args: UpdateMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMemberCommandOutput) => void): void;
182
- /**
183
- * <p>Updates a node configuration with new parameters.</p>
184
- * <p>Applies only to Hyperledger Fabric.</p>
185
- */
112
+
186
113
  updateNode(args: UpdateNodeCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNodeCommandOutput>;
187
114
  updateNode(args: UpdateNodeCommandInput, cb: (err: any, data?: UpdateNodeCommandOutput) => void): void;
188
115
  updateNode(args: UpdateNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNodeCommandOutput) => void): void;
189
- /**
190
- * <p>Casts a vote for a specified <code>ProposalId</code> on behalf of a member. The member to vote as, specified by <code>VoterMemberId</code>, must be in the same AWS account as the principal that calls the action.</p>
191
- * <p>Applies only to Hyperledger Fabric.</p>
192
- */
116
+
193
117
  voteOnProposal(args: VoteOnProposalCommandInput, options?: __HttpHandlerOptions): Promise<VoteOnProposalCommandOutput>;
194
118
  voteOnProposal(args: VoteOnProposalCommandInput, cb: (err: any, data?: VoteOnProposalCommandOutput) => void): void;
195
119
  voteOnProposal(args: VoteOnProposalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VoteOnProposalCommandOutput) => void): void;
@@ -32,127 +32,59 @@ import { VoteOnProposalCommandInput, VoteOnProposalCommandOutput } from "./comma
32
32
  export declare type ServiceInputTypes = CreateMemberCommandInput | CreateNetworkCommandInput | CreateNodeCommandInput | CreateProposalCommandInput | DeleteMemberCommandInput | DeleteNodeCommandInput | GetMemberCommandInput | GetNetworkCommandInput | GetNodeCommandInput | GetProposalCommandInput | ListInvitationsCommandInput | ListMembersCommandInput | ListNetworksCommandInput | ListNodesCommandInput | ListProposalVotesCommandInput | ListProposalsCommandInput | ListTagsForResourceCommandInput | RejectInvitationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateMemberCommandInput | UpdateNodeCommandInput | VoteOnProposalCommandInput;
33
33
  export declare type ServiceOutputTypes = CreateMemberCommandOutput | CreateNetworkCommandOutput | CreateNodeCommandOutput | CreateProposalCommandOutput | DeleteMemberCommandOutput | DeleteNodeCommandOutput | GetMemberCommandOutput | GetNetworkCommandOutput | GetNodeCommandOutput | GetProposalCommandOutput | ListInvitationsCommandOutput | ListMembersCommandOutput | ListNetworksCommandOutput | ListNodesCommandOutput | ListProposalVotesCommandOutput | ListProposalsCommandOutput | ListTagsForResourceCommandOutput | RejectInvitationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateMemberCommandOutput | UpdateNodeCommandOutput | VoteOnProposalCommandOutput;
34
34
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
35
- /**
36
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
37
- */
35
+
38
36
  requestHandler?: __HttpHandler;
39
- /**
40
- * A constructor for a class implementing the {@link __Hash} interface
41
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
42
- * @internal
43
- */
37
+
44
38
  sha256?: __HashConstructor;
45
- /**
46
- * The function that will be used to convert strings into HTTP endpoints.
47
- * @internal
48
- */
39
+
49
40
  urlParser?: __UrlParser;
50
- /**
51
- * A function that can calculate the length of a request body.
52
- * @internal
53
- */
41
+
54
42
  bodyLengthChecker?: (body: any) => number | undefined;
55
- /**
56
- * A function that converts a stream into an array of bytes.
57
- * @internal
58
- */
43
+
59
44
  streamCollector?: __StreamCollector;
60
- /**
61
- * The function that will be used to convert a base64-encoded string to a byte array.
62
- * @internal
63
- */
45
+
64
46
  base64Decoder?: __Decoder;
65
- /**
66
- * The function that will be used to convert binary data to a base64-encoded string.
67
- * @internal
68
- */
47
+
69
48
  base64Encoder?: __Encoder;
70
- /**
71
- * The function that will be used to convert a UTF8-encoded string to a byte array.
72
- * @internal
73
- */
49
+
74
50
  utf8Decoder?: __Decoder;
75
- /**
76
- * The function that will be used to convert binary data to a UTF-8 encoded string.
77
- * @internal
78
- */
51
+
79
52
  utf8Encoder?: __Encoder;
80
- /**
81
- * The runtime environment.
82
- * @internal
83
- */
53
+
84
54
  runtime?: string;
85
- /**
86
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
87
- * trait of an operation.
88
- */
55
+
89
56
  disableHostPrefix?: boolean;
90
- /**
91
- * Value for how many times a request will be made at most in case of retry.
92
- */
57
+
93
58
  maxAttempts?: number | __Provider<number>;
94
- /**
95
- * Specifies which retry algorithm to use.
96
- */
59
+
97
60
  retryMode?: string | __Provider<string>;
98
- /**
99
- * Optional logger for logging debug/info/warn/error.
100
- */
61
+
101
62
  logger?: __Logger;
102
- /**
103
- * Unique service identifier.
104
- * @internal
105
- */
63
+
106
64
  serviceId?: string;
107
- /**
108
- * The AWS region to which this client will send requests
109
- */
65
+
110
66
  region?: string | __Provider<string>;
111
- /**
112
- * Default credentials provider; Not available in browser runtime.
113
- * @internal
114
- */
67
+
115
68
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
116
- /**
117
- * Fetch related hostname, signing name or signing region with given region.
118
- * @internal
119
- */
69
+
120
70
  regionInfoProvider?: RegionInfoProvider;
121
- /**
122
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
123
- * @internal
124
- */
71
+
125
72
  defaultUserAgentProvider?: Provider<__UserAgent>;
126
73
  }
127
74
  declare type ManagedBlockchainClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
128
- /**
129
- * The configuration interface of ManagedBlockchainClient class constructor that set the region, credentials and other options.
130
- */
75
+
131
76
  export interface ManagedBlockchainClientConfig extends ManagedBlockchainClientConfigType {
132
77
  }
133
78
  declare type ManagedBlockchainClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
134
- /**
135
- * The resolved configuration interface of ManagedBlockchainClient class. This is resolved and normalized from the {@link ManagedBlockchainClientConfig | constructor configuration interface}.
136
- */
79
+
137
80
  export interface ManagedBlockchainClientResolvedConfig extends ManagedBlockchainClientResolvedConfigType {
138
81
  }
139
- /**
140
- * <p></p>
141
- * <p>Amazon Managed Blockchain is a fully managed service for creating and managing blockchain networks using open-source frameworks. Blockchain allows you to build applications where multiple parties can securely and transparently run transactions and share data without the need for a trusted, central authority.</p>
142
- * <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> do not apply to Ethereum.</p>
143
- * <p>The description for each action indicates the framework or frameworks to which it applies. Data types and properties that apply only in the context of a particular framework are similarly indicated.</p>
144
- */
82
+
145
83
  export declare class ManagedBlockchainClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ManagedBlockchainClientResolvedConfig> {
146
- /**
147
- * The resolved configuration of ManagedBlockchainClient class. This is resolved and normalized from the {@link ManagedBlockchainClientConfig | constructor configuration interface}.
148
- */
84
+
149
85
  readonly config: ManagedBlockchainClientResolvedConfig;
150
86
  constructor(configuration: ManagedBlockchainClientConfig);
151
- /**
152
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
153
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
154
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
155
- */
87
+
156
88
  destroy(): void;
157
89
  }
158
90
  export {};