You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/client-managedblockchain/README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ AWS SDK for JavaScript ManagedBlockchain Client for Node.js, Browser and React N
11
11
12
12
<p></p>
13
13
<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>
14
-
<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>
14
+
<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> don't apply to Ethereum.</p>
15
15
<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>
16
16
17
17
## Installing
@@ -29,16 +29,16 @@ using your favorite package manager:
29
29
30
30
The AWS SDK is modulized by clients and commands.
31
31
To send a request, you only need to import the `ManagedBlockchainClient` and
32
-
the commands you need, for example `CreateMemberCommand`:
32
+
the commands you need, for example `CreateAccessorCommand`:
@@ -81,10 +97,48 @@ import { ManagedBlockchainClient } from "./ManagedBlockchainClient";
81
97
/**
82
98
* <p></p>
83
99
* <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>
84
-
* <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>
100
+
* <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> don't apply to Ethereum.</p>
85
101
* <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>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
136
+
this.send(command,optionsOrCb||{},cb);
137
+
}else{
138
+
returnthis.send(command,optionsOrCb);
139
+
}
140
+
}
141
+
88
142
/**
89
143
* <p>Creates a member within a Managed Blockchain network.</p>
90
144
* <p>Applies only to Hyperledger Fabric.</p>
@@ -209,7 +263,50 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
209
263
}
210
264
211
265
/**
212
-
* <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>
266
+
* <important>
267
+
* <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
268
+
* subject to change. We recommend that you use this feature only with
269
+
* test scenarios, and not in production environments.</p>
270
+
* </important>
271
+
* <p>Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the
272
+
* information required for token based access to your Ethereum nodes including, the
273
+
* <code>BILLING_TOKEN</code>. After an accessor is deleted, the status of the accessor changes
274
+
* from <code>AVAILABLE</code> to <code>PENDING_DELETION</code>. An accessor in the
275
+
* <code>PENDING_DELETION</code> state can’t be used for new WebSocket requests or
276
+
* HTTP requests. However, WebSocket connections that are initiated while the accessor was in the
277
+
* <code>AVAILABLE</code> state remain open until they expire (up to 2 hours).</p>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
302
+
this.send(command,optionsOrCb||{},cb);
303
+
}else{
304
+
returnthis.send(command,optionsOrCb);
305
+
}
306
+
}
307
+
308
+
/**
309
+
* <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 Amazon Web Services 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 Amazon Web Services account, the network is deleted also.</p>
213
310
* <p>Applies only to Hyperledger Fabric.</p>
214
311
*/
215
312
publicdeleteMember(
@@ -239,7 +336,7 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
239
336
}
240
337
241
338
/**
242
-
* <p>Deletes a node that your AWS account owns. All data on the node is lost and cannot be recovered.</p>
339
+
* <p>Deletes a node that your Amazon Web Services account owns. All data on the node is lost and cannot be recovered.</p>
243
340
* <p>Applies to Hyperledger Fabric and Ethereum.</p>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
537
+
this.send(command,optionsOrCb||{},cb);
538
+
}else{
539
+
returnthis.send(command,optionsOrCb);
540
+
}
541
+
}
542
+
543
+
/**
544
+
* <p>Returns a list of all invitations for the current Amazon Web Services account.</p>
378
545
* <p>Applies only to Hyperledger Fabric.</p>
379
546
*/
380
547
publiclistInvitations(
@@ -434,7 +601,7 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
434
601
}
435
602
436
603
/**
437
-
* <p>Returns information about the networks in which the current AWS account participates.</p>
604
+
* <p>Returns information about the networks in which the current Amazon Web Services account participates.</p>
438
605
* <p>Applies to Hyperledger Fabric and Ethereum.</p>
439
606
*/
440
607
publiclistNetworks(
@@ -590,7 +757,7 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
590
757
}
591
758
592
759
/**
593
-
* <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>
760
+
* <p>Rejects an invitation to join a network. This action can be called by a principal in an Amazon Web Services account that has received an invitation to create a member and join a network.</p>
594
761
* <p>Applies only to Hyperledger Fabric.</p>
595
762
*/
596
763
publicrejectInvitation(
@@ -742,7 +909,7 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
742
909
}
743
910
744
911
/**
745
-
* <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>
912
+
* <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 Amazon Web Services account as the principal that calls the action.</p>
0 commit comments