@aws-sdk/client-managedblockchain 3.315.0 → 3.319.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/dist-cjs/ManagedBlockchain.js +31 -378
- package/dist-cjs/protocols/Aws_restJson1.js +5 -5
- package/dist-es/ManagedBlockchain.js +31 -378
- package/dist-es/protocols/Aws_restJson1.js +5 -5
- package/dist-types/ManagedBlockchain.d.ts +37 -96
- package/dist-types/ts3.4/ManagedBlockchain.d.ts +4 -1
- package/package.json +8 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ManagedBlockchain = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateAccessorCommand_1 = require("./commands/CreateAccessorCommand");
|
|
5
6
|
const CreateMemberCommand_1 = require("./commands/CreateMemberCommand");
|
|
6
7
|
const CreateNetworkCommand_1 = require("./commands/CreateNetworkCommand");
|
|
@@ -29,384 +30,36 @@ const UpdateMemberCommand_1 = require("./commands/UpdateMemberCommand");
|
|
|
29
30
|
const UpdateNodeCommand_1 = require("./commands/UpdateNodeCommand");
|
|
30
31
|
const VoteOnProposalCommand_1 = require("./commands/VoteOnProposalCommand");
|
|
31
32
|
const ManagedBlockchainClient_1 = require("./ManagedBlockchainClient");
|
|
33
|
+
const commands = {
|
|
34
|
+
CreateAccessorCommand: CreateAccessorCommand_1.CreateAccessorCommand,
|
|
35
|
+
CreateMemberCommand: CreateMemberCommand_1.CreateMemberCommand,
|
|
36
|
+
CreateNetworkCommand: CreateNetworkCommand_1.CreateNetworkCommand,
|
|
37
|
+
CreateNodeCommand: CreateNodeCommand_1.CreateNodeCommand,
|
|
38
|
+
CreateProposalCommand: CreateProposalCommand_1.CreateProposalCommand,
|
|
39
|
+
DeleteAccessorCommand: DeleteAccessorCommand_1.DeleteAccessorCommand,
|
|
40
|
+
DeleteMemberCommand: DeleteMemberCommand_1.DeleteMemberCommand,
|
|
41
|
+
DeleteNodeCommand: DeleteNodeCommand_1.DeleteNodeCommand,
|
|
42
|
+
GetAccessorCommand: GetAccessorCommand_1.GetAccessorCommand,
|
|
43
|
+
GetMemberCommand: GetMemberCommand_1.GetMemberCommand,
|
|
44
|
+
GetNetworkCommand: GetNetworkCommand_1.GetNetworkCommand,
|
|
45
|
+
GetNodeCommand: GetNodeCommand_1.GetNodeCommand,
|
|
46
|
+
GetProposalCommand: GetProposalCommand_1.GetProposalCommand,
|
|
47
|
+
ListAccessorsCommand: ListAccessorsCommand_1.ListAccessorsCommand,
|
|
48
|
+
ListInvitationsCommand: ListInvitationsCommand_1.ListInvitationsCommand,
|
|
49
|
+
ListMembersCommand: ListMembersCommand_1.ListMembersCommand,
|
|
50
|
+
ListNetworksCommand: ListNetworksCommand_1.ListNetworksCommand,
|
|
51
|
+
ListNodesCommand: ListNodesCommand_1.ListNodesCommand,
|
|
52
|
+
ListProposalsCommand: ListProposalsCommand_1.ListProposalsCommand,
|
|
53
|
+
ListProposalVotesCommand: ListProposalVotesCommand_1.ListProposalVotesCommand,
|
|
54
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
55
|
+
RejectInvitationCommand: RejectInvitationCommand_1.RejectInvitationCommand,
|
|
56
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
57
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
58
|
+
UpdateMemberCommand: UpdateMemberCommand_1.UpdateMemberCommand,
|
|
59
|
+
UpdateNodeCommand: UpdateNodeCommand_1.UpdateNodeCommand,
|
|
60
|
+
VoteOnProposalCommand: VoteOnProposalCommand_1.VoteOnProposalCommand,
|
|
61
|
+
};
|
|
32
62
|
class ManagedBlockchain extends ManagedBlockchainClient_1.ManagedBlockchainClient {
|
|
33
|
-
createAccessor(args, optionsOrCb, cb) {
|
|
34
|
-
const command = new CreateAccessorCommand_1.CreateAccessorCommand(args);
|
|
35
|
-
if (typeof optionsOrCb === "function") {
|
|
36
|
-
this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
else if (typeof cb === "function") {
|
|
39
|
-
if (typeof optionsOrCb !== "object")
|
|
40
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
41
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
return this.send(command, optionsOrCb);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
createMember(args, optionsOrCb, cb) {
|
|
48
|
-
const command = new CreateMemberCommand_1.CreateMemberCommand(args);
|
|
49
|
-
if (typeof optionsOrCb === "function") {
|
|
50
|
-
this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
else if (typeof cb === "function") {
|
|
53
|
-
if (typeof optionsOrCb !== "object")
|
|
54
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
55
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
return this.send(command, optionsOrCb);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
createNetwork(args, optionsOrCb, cb) {
|
|
62
|
-
const command = new CreateNetworkCommand_1.CreateNetworkCommand(args);
|
|
63
|
-
if (typeof optionsOrCb === "function") {
|
|
64
|
-
this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
else if (typeof cb === "function") {
|
|
67
|
-
if (typeof optionsOrCb !== "object")
|
|
68
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
69
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
return this.send(command, optionsOrCb);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
createNode(args, optionsOrCb, cb) {
|
|
76
|
-
const command = new CreateNodeCommand_1.CreateNodeCommand(args);
|
|
77
|
-
if (typeof optionsOrCb === "function") {
|
|
78
|
-
this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
else if (typeof cb === "function") {
|
|
81
|
-
if (typeof optionsOrCb !== "object")
|
|
82
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
83
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
return this.send(command, optionsOrCb);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
createProposal(args, optionsOrCb, cb) {
|
|
90
|
-
const command = new CreateProposalCommand_1.CreateProposalCommand(args);
|
|
91
|
-
if (typeof optionsOrCb === "function") {
|
|
92
|
-
this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
else if (typeof cb === "function") {
|
|
95
|
-
if (typeof optionsOrCb !== "object")
|
|
96
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
97
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
return this.send(command, optionsOrCb);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
deleteAccessor(args, optionsOrCb, cb) {
|
|
104
|
-
const command = new DeleteAccessorCommand_1.DeleteAccessorCommand(args);
|
|
105
|
-
if (typeof optionsOrCb === "function") {
|
|
106
|
-
this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
else if (typeof cb === "function") {
|
|
109
|
-
if (typeof optionsOrCb !== "object")
|
|
110
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
111
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return this.send(command, optionsOrCb);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
deleteMember(args, optionsOrCb, cb) {
|
|
118
|
-
const command = new DeleteMemberCommand_1.DeleteMemberCommand(args);
|
|
119
|
-
if (typeof optionsOrCb === "function") {
|
|
120
|
-
this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
else if (typeof cb === "function") {
|
|
123
|
-
if (typeof optionsOrCb !== "object")
|
|
124
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
125
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
return this.send(command, optionsOrCb);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
deleteNode(args, optionsOrCb, cb) {
|
|
132
|
-
const command = new DeleteNodeCommand_1.DeleteNodeCommand(args);
|
|
133
|
-
if (typeof optionsOrCb === "function") {
|
|
134
|
-
this.send(command, optionsOrCb);
|
|
135
|
-
}
|
|
136
|
-
else if (typeof cb === "function") {
|
|
137
|
-
if (typeof optionsOrCb !== "object")
|
|
138
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
139
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
return this.send(command, optionsOrCb);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
getAccessor(args, optionsOrCb, cb) {
|
|
146
|
-
const command = new GetAccessorCommand_1.GetAccessorCommand(args);
|
|
147
|
-
if (typeof optionsOrCb === "function") {
|
|
148
|
-
this.send(command, optionsOrCb);
|
|
149
|
-
}
|
|
150
|
-
else if (typeof cb === "function") {
|
|
151
|
-
if (typeof optionsOrCb !== "object")
|
|
152
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
153
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
return this.send(command, optionsOrCb);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
getMember(args, optionsOrCb, cb) {
|
|
160
|
-
const command = new GetMemberCommand_1.GetMemberCommand(args);
|
|
161
|
-
if (typeof optionsOrCb === "function") {
|
|
162
|
-
this.send(command, optionsOrCb);
|
|
163
|
-
}
|
|
164
|
-
else if (typeof cb === "function") {
|
|
165
|
-
if (typeof optionsOrCb !== "object")
|
|
166
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
167
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
return this.send(command, optionsOrCb);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
getNetwork(args, optionsOrCb, cb) {
|
|
174
|
-
const command = new GetNetworkCommand_1.GetNetworkCommand(args);
|
|
175
|
-
if (typeof optionsOrCb === "function") {
|
|
176
|
-
this.send(command, optionsOrCb);
|
|
177
|
-
}
|
|
178
|
-
else if (typeof cb === "function") {
|
|
179
|
-
if (typeof optionsOrCb !== "object")
|
|
180
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
181
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
return this.send(command, optionsOrCb);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
getNode(args, optionsOrCb, cb) {
|
|
188
|
-
const command = new GetNodeCommand_1.GetNodeCommand(args);
|
|
189
|
-
if (typeof optionsOrCb === "function") {
|
|
190
|
-
this.send(command, optionsOrCb);
|
|
191
|
-
}
|
|
192
|
-
else if (typeof cb === "function") {
|
|
193
|
-
if (typeof optionsOrCb !== "object")
|
|
194
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
195
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
return this.send(command, optionsOrCb);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
getProposal(args, optionsOrCb, cb) {
|
|
202
|
-
const command = new GetProposalCommand_1.GetProposalCommand(args);
|
|
203
|
-
if (typeof optionsOrCb === "function") {
|
|
204
|
-
this.send(command, optionsOrCb);
|
|
205
|
-
}
|
|
206
|
-
else if (typeof cb === "function") {
|
|
207
|
-
if (typeof optionsOrCb !== "object")
|
|
208
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
209
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
return this.send(command, optionsOrCb);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
listAccessors(args, optionsOrCb, cb) {
|
|
216
|
-
const command = new ListAccessorsCommand_1.ListAccessorsCommand(args);
|
|
217
|
-
if (typeof optionsOrCb === "function") {
|
|
218
|
-
this.send(command, optionsOrCb);
|
|
219
|
-
}
|
|
220
|
-
else if (typeof cb === "function") {
|
|
221
|
-
if (typeof optionsOrCb !== "object")
|
|
222
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
223
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
return this.send(command, optionsOrCb);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
listInvitations(args, optionsOrCb, cb) {
|
|
230
|
-
const command = new ListInvitationsCommand_1.ListInvitationsCommand(args);
|
|
231
|
-
if (typeof optionsOrCb === "function") {
|
|
232
|
-
this.send(command, optionsOrCb);
|
|
233
|
-
}
|
|
234
|
-
else if (typeof cb === "function") {
|
|
235
|
-
if (typeof optionsOrCb !== "object")
|
|
236
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
237
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
return this.send(command, optionsOrCb);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
listMembers(args, optionsOrCb, cb) {
|
|
244
|
-
const command = new ListMembersCommand_1.ListMembersCommand(args);
|
|
245
|
-
if (typeof optionsOrCb === "function") {
|
|
246
|
-
this.send(command, optionsOrCb);
|
|
247
|
-
}
|
|
248
|
-
else if (typeof cb === "function") {
|
|
249
|
-
if (typeof optionsOrCb !== "object")
|
|
250
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
251
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
return this.send(command, optionsOrCb);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
listNetworks(args, optionsOrCb, cb) {
|
|
258
|
-
const command = new ListNetworksCommand_1.ListNetworksCommand(args);
|
|
259
|
-
if (typeof optionsOrCb === "function") {
|
|
260
|
-
this.send(command, optionsOrCb);
|
|
261
|
-
}
|
|
262
|
-
else if (typeof cb === "function") {
|
|
263
|
-
if (typeof optionsOrCb !== "object")
|
|
264
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
265
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
266
|
-
}
|
|
267
|
-
else {
|
|
268
|
-
return this.send(command, optionsOrCb);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
listNodes(args, optionsOrCb, cb) {
|
|
272
|
-
const command = new ListNodesCommand_1.ListNodesCommand(args);
|
|
273
|
-
if (typeof optionsOrCb === "function") {
|
|
274
|
-
this.send(command, optionsOrCb);
|
|
275
|
-
}
|
|
276
|
-
else if (typeof cb === "function") {
|
|
277
|
-
if (typeof optionsOrCb !== "object")
|
|
278
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
279
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
return this.send(command, optionsOrCb);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
listProposals(args, optionsOrCb, cb) {
|
|
286
|
-
const command = new ListProposalsCommand_1.ListProposalsCommand(args);
|
|
287
|
-
if (typeof optionsOrCb === "function") {
|
|
288
|
-
this.send(command, optionsOrCb);
|
|
289
|
-
}
|
|
290
|
-
else if (typeof cb === "function") {
|
|
291
|
-
if (typeof optionsOrCb !== "object")
|
|
292
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
293
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
294
|
-
}
|
|
295
|
-
else {
|
|
296
|
-
return this.send(command, optionsOrCb);
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
listProposalVotes(args, optionsOrCb, cb) {
|
|
300
|
-
const command = new ListProposalVotesCommand_1.ListProposalVotesCommand(args);
|
|
301
|
-
if (typeof optionsOrCb === "function") {
|
|
302
|
-
this.send(command, optionsOrCb);
|
|
303
|
-
}
|
|
304
|
-
else if (typeof cb === "function") {
|
|
305
|
-
if (typeof optionsOrCb !== "object")
|
|
306
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
307
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
return this.send(command, optionsOrCb);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
314
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
315
|
-
if (typeof optionsOrCb === "function") {
|
|
316
|
-
this.send(command, optionsOrCb);
|
|
317
|
-
}
|
|
318
|
-
else if (typeof cb === "function") {
|
|
319
|
-
if (typeof optionsOrCb !== "object")
|
|
320
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
321
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
322
|
-
}
|
|
323
|
-
else {
|
|
324
|
-
return this.send(command, optionsOrCb);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
rejectInvitation(args, optionsOrCb, cb) {
|
|
328
|
-
const command = new RejectInvitationCommand_1.RejectInvitationCommand(args);
|
|
329
|
-
if (typeof optionsOrCb === "function") {
|
|
330
|
-
this.send(command, optionsOrCb);
|
|
331
|
-
}
|
|
332
|
-
else if (typeof cb === "function") {
|
|
333
|
-
if (typeof optionsOrCb !== "object")
|
|
334
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
335
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
336
|
-
}
|
|
337
|
-
else {
|
|
338
|
-
return this.send(command, optionsOrCb);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
tagResource(args, optionsOrCb, cb) {
|
|
342
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
343
|
-
if (typeof optionsOrCb === "function") {
|
|
344
|
-
this.send(command, optionsOrCb);
|
|
345
|
-
}
|
|
346
|
-
else if (typeof cb === "function") {
|
|
347
|
-
if (typeof optionsOrCb !== "object")
|
|
348
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
349
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
350
|
-
}
|
|
351
|
-
else {
|
|
352
|
-
return this.send(command, optionsOrCb);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
untagResource(args, optionsOrCb, cb) {
|
|
356
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
357
|
-
if (typeof optionsOrCb === "function") {
|
|
358
|
-
this.send(command, optionsOrCb);
|
|
359
|
-
}
|
|
360
|
-
else if (typeof cb === "function") {
|
|
361
|
-
if (typeof optionsOrCb !== "object")
|
|
362
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
363
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
return this.send(command, optionsOrCb);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
updateMember(args, optionsOrCb, cb) {
|
|
370
|
-
const command = new UpdateMemberCommand_1.UpdateMemberCommand(args);
|
|
371
|
-
if (typeof optionsOrCb === "function") {
|
|
372
|
-
this.send(command, optionsOrCb);
|
|
373
|
-
}
|
|
374
|
-
else if (typeof cb === "function") {
|
|
375
|
-
if (typeof optionsOrCb !== "object")
|
|
376
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
377
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
return this.send(command, optionsOrCb);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
updateNode(args, optionsOrCb, cb) {
|
|
384
|
-
const command = new UpdateNodeCommand_1.UpdateNodeCommand(args);
|
|
385
|
-
if (typeof optionsOrCb === "function") {
|
|
386
|
-
this.send(command, optionsOrCb);
|
|
387
|
-
}
|
|
388
|
-
else if (typeof cb === "function") {
|
|
389
|
-
if (typeof optionsOrCb !== "object")
|
|
390
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
391
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
392
|
-
}
|
|
393
|
-
else {
|
|
394
|
-
return this.send(command, optionsOrCb);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
voteOnProposal(args, optionsOrCb, cb) {
|
|
398
|
-
const command = new VoteOnProposalCommand_1.VoteOnProposalCommand(args);
|
|
399
|
-
if (typeof optionsOrCb === "function") {
|
|
400
|
-
this.send(command, optionsOrCb);
|
|
401
|
-
}
|
|
402
|
-
else if (typeof cb === "function") {
|
|
403
|
-
if (typeof optionsOrCb !== "object")
|
|
404
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
405
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
406
|
-
}
|
|
407
|
-
else {
|
|
408
|
-
return this.send(command, optionsOrCb);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
63
|
}
|
|
412
64
|
exports.ManagedBlockchain = ManagedBlockchain;
|
|
65
|
+
(0, smithy_client_1.createAggregatedClient)(commands, ManagedBlockchain);
|
|
@@ -16,7 +16,7 @@ const se_CreateAccessorCommand = async (input, context) => {
|
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
AccessorType: [],
|
|
19
|
-
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
19
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
20
20
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
21
21
|
}));
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
@@ -39,7 +39,7 @@ const se_CreateMemberCommand = async (input, context) => {
|
|
|
39
39
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
40
40
|
let body;
|
|
41
41
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
42
|
-
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
42
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
43
43
|
InvitationId: [],
|
|
44
44
|
MemberConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
45
45
|
}));
|
|
@@ -62,7 +62,7 @@ const se_CreateNetworkCommand = async (input, context) => {
|
|
|
62
62
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks";
|
|
63
63
|
let body;
|
|
64
64
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
|
-
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
65
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
66
66
|
Description: [],
|
|
67
67
|
Framework: [],
|
|
68
68
|
FrameworkConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -92,7 +92,7 @@ const se_CreateNodeCommand = async (input, context) => {
|
|
|
92
92
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
93
93
|
let body;
|
|
94
94
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
95
|
-
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
95
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
96
96
|
MemberId: [],
|
|
97
97
|
NodeConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
98
98
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -118,7 +118,7 @@ const se_CreateProposalCommand = async (input, context) => {
|
|
|
118
118
|
let body;
|
|
119
119
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
120
120
|
Actions: (_) => (0, smithy_client_1._json)(_),
|
|
121
|
-
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
121
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
122
122
|
Description: [],
|
|
123
123
|
MemberId: [],
|
|
124
124
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateAccessorCommand, } from "./commands/CreateAccessorCommand";
|
|
2
3
|
import { CreateMemberCommand, } from "./commands/CreateMemberCommand";
|
|
3
4
|
import { CreateNetworkCommand, } from "./commands/CreateNetworkCommand";
|
|
@@ -26,383 +27,35 @@ import { UpdateMemberCommand, } from "./commands/UpdateMemberCommand";
|
|
|
26
27
|
import { UpdateNodeCommand } from "./commands/UpdateNodeCommand";
|
|
27
28
|
import { VoteOnProposalCommand, } from "./commands/VoteOnProposalCommand";
|
|
28
29
|
import { ManagedBlockchainClient } from "./ManagedBlockchainClient";
|
|
30
|
+
const commands = {
|
|
31
|
+
CreateAccessorCommand,
|
|
32
|
+
CreateMemberCommand,
|
|
33
|
+
CreateNetworkCommand,
|
|
34
|
+
CreateNodeCommand,
|
|
35
|
+
CreateProposalCommand,
|
|
36
|
+
DeleteAccessorCommand,
|
|
37
|
+
DeleteMemberCommand,
|
|
38
|
+
DeleteNodeCommand,
|
|
39
|
+
GetAccessorCommand,
|
|
40
|
+
GetMemberCommand,
|
|
41
|
+
GetNetworkCommand,
|
|
42
|
+
GetNodeCommand,
|
|
43
|
+
GetProposalCommand,
|
|
44
|
+
ListAccessorsCommand,
|
|
45
|
+
ListInvitationsCommand,
|
|
46
|
+
ListMembersCommand,
|
|
47
|
+
ListNetworksCommand,
|
|
48
|
+
ListNodesCommand,
|
|
49
|
+
ListProposalsCommand,
|
|
50
|
+
ListProposalVotesCommand,
|
|
51
|
+
ListTagsForResourceCommand,
|
|
52
|
+
RejectInvitationCommand,
|
|
53
|
+
TagResourceCommand,
|
|
54
|
+
UntagResourceCommand,
|
|
55
|
+
UpdateMemberCommand,
|
|
56
|
+
UpdateNodeCommand,
|
|
57
|
+
VoteOnProposalCommand,
|
|
58
|
+
};
|
|
29
59
|
export class ManagedBlockchain extends ManagedBlockchainClient {
|
|
30
|
-
createAccessor(args, optionsOrCb, cb) {
|
|
31
|
-
const command = new CreateAccessorCommand(args);
|
|
32
|
-
if (typeof optionsOrCb === "function") {
|
|
33
|
-
this.send(command, optionsOrCb);
|
|
34
|
-
}
|
|
35
|
-
else if (typeof cb === "function") {
|
|
36
|
-
if (typeof optionsOrCb !== "object")
|
|
37
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
38
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return this.send(command, optionsOrCb);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
createMember(args, optionsOrCb, cb) {
|
|
45
|
-
const command = new CreateMemberCommand(args);
|
|
46
|
-
if (typeof optionsOrCb === "function") {
|
|
47
|
-
this.send(command, optionsOrCb);
|
|
48
|
-
}
|
|
49
|
-
else if (typeof cb === "function") {
|
|
50
|
-
if (typeof optionsOrCb !== "object")
|
|
51
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
52
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return this.send(command, optionsOrCb);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
createNetwork(args, optionsOrCb, cb) {
|
|
59
|
-
const command = new CreateNetworkCommand(args);
|
|
60
|
-
if (typeof optionsOrCb === "function") {
|
|
61
|
-
this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
else if (typeof cb === "function") {
|
|
64
|
-
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
return this.send(command, optionsOrCb);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
createNode(args, optionsOrCb, cb) {
|
|
73
|
-
const command = new CreateNodeCommand(args);
|
|
74
|
-
if (typeof optionsOrCb === "function") {
|
|
75
|
-
this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
else if (typeof cb === "function") {
|
|
78
|
-
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
return this.send(command, optionsOrCb);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
createProposal(args, optionsOrCb, cb) {
|
|
87
|
-
const command = new CreateProposalCommand(args);
|
|
88
|
-
if (typeof optionsOrCb === "function") {
|
|
89
|
-
this.send(command, optionsOrCb);
|
|
90
|
-
}
|
|
91
|
-
else if (typeof cb === "function") {
|
|
92
|
-
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
return this.send(command, optionsOrCb);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
deleteAccessor(args, optionsOrCb, cb) {
|
|
101
|
-
const command = new DeleteAccessorCommand(args);
|
|
102
|
-
if (typeof optionsOrCb === "function") {
|
|
103
|
-
this.send(command, optionsOrCb);
|
|
104
|
-
}
|
|
105
|
-
else if (typeof cb === "function") {
|
|
106
|
-
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
return this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
deleteMember(args, optionsOrCb, cb) {
|
|
115
|
-
const command = new DeleteMemberCommand(args);
|
|
116
|
-
if (typeof optionsOrCb === "function") {
|
|
117
|
-
this.send(command, optionsOrCb);
|
|
118
|
-
}
|
|
119
|
-
else if (typeof cb === "function") {
|
|
120
|
-
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
return this.send(command, optionsOrCb);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
deleteNode(args, optionsOrCb, cb) {
|
|
129
|
-
const command = new DeleteNodeCommand(args);
|
|
130
|
-
if (typeof optionsOrCb === "function") {
|
|
131
|
-
this.send(command, optionsOrCb);
|
|
132
|
-
}
|
|
133
|
-
else if (typeof cb === "function") {
|
|
134
|
-
if (typeof optionsOrCb !== "object")
|
|
135
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
136
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
return this.send(command, optionsOrCb);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
getAccessor(args, optionsOrCb, cb) {
|
|
143
|
-
const command = new GetAccessorCommand(args);
|
|
144
|
-
if (typeof optionsOrCb === "function") {
|
|
145
|
-
this.send(command, optionsOrCb);
|
|
146
|
-
}
|
|
147
|
-
else if (typeof cb === "function") {
|
|
148
|
-
if (typeof optionsOrCb !== "object")
|
|
149
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
150
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
return this.send(command, optionsOrCb);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
getMember(args, optionsOrCb, cb) {
|
|
157
|
-
const command = new GetMemberCommand(args);
|
|
158
|
-
if (typeof optionsOrCb === "function") {
|
|
159
|
-
this.send(command, optionsOrCb);
|
|
160
|
-
}
|
|
161
|
-
else if (typeof cb === "function") {
|
|
162
|
-
if (typeof optionsOrCb !== "object")
|
|
163
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
164
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
return this.send(command, optionsOrCb);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
getNetwork(args, optionsOrCb, cb) {
|
|
171
|
-
const command = new GetNetworkCommand(args);
|
|
172
|
-
if (typeof optionsOrCb === "function") {
|
|
173
|
-
this.send(command, optionsOrCb);
|
|
174
|
-
}
|
|
175
|
-
else if (typeof cb === "function") {
|
|
176
|
-
if (typeof optionsOrCb !== "object")
|
|
177
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
178
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
return this.send(command, optionsOrCb);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
getNode(args, optionsOrCb, cb) {
|
|
185
|
-
const command = new GetNodeCommand(args);
|
|
186
|
-
if (typeof optionsOrCb === "function") {
|
|
187
|
-
this.send(command, optionsOrCb);
|
|
188
|
-
}
|
|
189
|
-
else if (typeof cb === "function") {
|
|
190
|
-
if (typeof optionsOrCb !== "object")
|
|
191
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
192
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
return this.send(command, optionsOrCb);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
getProposal(args, optionsOrCb, cb) {
|
|
199
|
-
const command = new GetProposalCommand(args);
|
|
200
|
-
if (typeof optionsOrCb === "function") {
|
|
201
|
-
this.send(command, optionsOrCb);
|
|
202
|
-
}
|
|
203
|
-
else if (typeof cb === "function") {
|
|
204
|
-
if (typeof optionsOrCb !== "object")
|
|
205
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
206
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
return this.send(command, optionsOrCb);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
listAccessors(args, optionsOrCb, cb) {
|
|
213
|
-
const command = new ListAccessorsCommand(args);
|
|
214
|
-
if (typeof optionsOrCb === "function") {
|
|
215
|
-
this.send(command, optionsOrCb);
|
|
216
|
-
}
|
|
217
|
-
else if (typeof cb === "function") {
|
|
218
|
-
if (typeof optionsOrCb !== "object")
|
|
219
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
220
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
return this.send(command, optionsOrCb);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
listInvitations(args, optionsOrCb, cb) {
|
|
227
|
-
const command = new ListInvitationsCommand(args);
|
|
228
|
-
if (typeof optionsOrCb === "function") {
|
|
229
|
-
this.send(command, optionsOrCb);
|
|
230
|
-
}
|
|
231
|
-
else if (typeof cb === "function") {
|
|
232
|
-
if (typeof optionsOrCb !== "object")
|
|
233
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
234
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
return this.send(command, optionsOrCb);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
listMembers(args, optionsOrCb, cb) {
|
|
241
|
-
const command = new ListMembersCommand(args);
|
|
242
|
-
if (typeof optionsOrCb === "function") {
|
|
243
|
-
this.send(command, optionsOrCb);
|
|
244
|
-
}
|
|
245
|
-
else if (typeof cb === "function") {
|
|
246
|
-
if (typeof optionsOrCb !== "object")
|
|
247
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
248
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
return this.send(command, optionsOrCb);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
listNetworks(args, optionsOrCb, cb) {
|
|
255
|
-
const command = new ListNetworksCommand(args);
|
|
256
|
-
if (typeof optionsOrCb === "function") {
|
|
257
|
-
this.send(command, optionsOrCb);
|
|
258
|
-
}
|
|
259
|
-
else if (typeof cb === "function") {
|
|
260
|
-
if (typeof optionsOrCb !== "object")
|
|
261
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
262
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
return this.send(command, optionsOrCb);
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
listNodes(args, optionsOrCb, cb) {
|
|
269
|
-
const command = new ListNodesCommand(args);
|
|
270
|
-
if (typeof optionsOrCb === "function") {
|
|
271
|
-
this.send(command, optionsOrCb);
|
|
272
|
-
}
|
|
273
|
-
else if (typeof cb === "function") {
|
|
274
|
-
if (typeof optionsOrCb !== "object")
|
|
275
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
276
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
277
|
-
}
|
|
278
|
-
else {
|
|
279
|
-
return this.send(command, optionsOrCb);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
listProposals(args, optionsOrCb, cb) {
|
|
283
|
-
const command = new ListProposalsCommand(args);
|
|
284
|
-
if (typeof optionsOrCb === "function") {
|
|
285
|
-
this.send(command, optionsOrCb);
|
|
286
|
-
}
|
|
287
|
-
else if (typeof cb === "function") {
|
|
288
|
-
if (typeof optionsOrCb !== "object")
|
|
289
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
290
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
291
|
-
}
|
|
292
|
-
else {
|
|
293
|
-
return this.send(command, optionsOrCb);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
listProposalVotes(args, optionsOrCb, cb) {
|
|
297
|
-
const command = new ListProposalVotesCommand(args);
|
|
298
|
-
if (typeof optionsOrCb === "function") {
|
|
299
|
-
this.send(command, optionsOrCb);
|
|
300
|
-
}
|
|
301
|
-
else if (typeof cb === "function") {
|
|
302
|
-
if (typeof optionsOrCb !== "object")
|
|
303
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
304
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
305
|
-
}
|
|
306
|
-
else {
|
|
307
|
-
return this.send(command, optionsOrCb);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
311
|
-
const command = new ListTagsForResourceCommand(args);
|
|
312
|
-
if (typeof optionsOrCb === "function") {
|
|
313
|
-
this.send(command, optionsOrCb);
|
|
314
|
-
}
|
|
315
|
-
else if (typeof cb === "function") {
|
|
316
|
-
if (typeof optionsOrCb !== "object")
|
|
317
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
318
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
319
|
-
}
|
|
320
|
-
else {
|
|
321
|
-
return this.send(command, optionsOrCb);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
rejectInvitation(args, optionsOrCb, cb) {
|
|
325
|
-
const command = new RejectInvitationCommand(args);
|
|
326
|
-
if (typeof optionsOrCb === "function") {
|
|
327
|
-
this.send(command, optionsOrCb);
|
|
328
|
-
}
|
|
329
|
-
else if (typeof cb === "function") {
|
|
330
|
-
if (typeof optionsOrCb !== "object")
|
|
331
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
332
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
333
|
-
}
|
|
334
|
-
else {
|
|
335
|
-
return this.send(command, optionsOrCb);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
tagResource(args, optionsOrCb, cb) {
|
|
339
|
-
const command = new TagResourceCommand(args);
|
|
340
|
-
if (typeof optionsOrCb === "function") {
|
|
341
|
-
this.send(command, optionsOrCb);
|
|
342
|
-
}
|
|
343
|
-
else if (typeof cb === "function") {
|
|
344
|
-
if (typeof optionsOrCb !== "object")
|
|
345
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
346
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
347
|
-
}
|
|
348
|
-
else {
|
|
349
|
-
return this.send(command, optionsOrCb);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
untagResource(args, optionsOrCb, cb) {
|
|
353
|
-
const command = new UntagResourceCommand(args);
|
|
354
|
-
if (typeof optionsOrCb === "function") {
|
|
355
|
-
this.send(command, optionsOrCb);
|
|
356
|
-
}
|
|
357
|
-
else if (typeof cb === "function") {
|
|
358
|
-
if (typeof optionsOrCb !== "object")
|
|
359
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
360
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
361
|
-
}
|
|
362
|
-
else {
|
|
363
|
-
return this.send(command, optionsOrCb);
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
updateMember(args, optionsOrCb, cb) {
|
|
367
|
-
const command = new UpdateMemberCommand(args);
|
|
368
|
-
if (typeof optionsOrCb === "function") {
|
|
369
|
-
this.send(command, optionsOrCb);
|
|
370
|
-
}
|
|
371
|
-
else if (typeof cb === "function") {
|
|
372
|
-
if (typeof optionsOrCb !== "object")
|
|
373
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
374
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
375
|
-
}
|
|
376
|
-
else {
|
|
377
|
-
return this.send(command, optionsOrCb);
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
updateNode(args, optionsOrCb, cb) {
|
|
381
|
-
const command = new UpdateNodeCommand(args);
|
|
382
|
-
if (typeof optionsOrCb === "function") {
|
|
383
|
-
this.send(command, optionsOrCb);
|
|
384
|
-
}
|
|
385
|
-
else if (typeof cb === "function") {
|
|
386
|
-
if (typeof optionsOrCb !== "object")
|
|
387
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
388
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
389
|
-
}
|
|
390
|
-
else {
|
|
391
|
-
return this.send(command, optionsOrCb);
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
voteOnProposal(args, optionsOrCb, cb) {
|
|
395
|
-
const command = new VoteOnProposalCommand(args);
|
|
396
|
-
if (typeof optionsOrCb === "function") {
|
|
397
|
-
this.send(command, optionsOrCb);
|
|
398
|
-
}
|
|
399
|
-
else if (typeof cb === "function") {
|
|
400
|
-
if (typeof optionsOrCb !== "object")
|
|
401
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
402
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
return this.send(command, optionsOrCb);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
60
|
}
|
|
61
|
+
createAggregatedClient(commands, ManagedBlockchain);
|
|
@@ -12,7 +12,7 @@ export const se_CreateAccessorCommand = async (input, context) => {
|
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
AccessorType: [],
|
|
15
|
-
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
15
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
16
|
Tags: (_) => _json(_),
|
|
17
17
|
}));
|
|
18
18
|
return new __HttpRequest({
|
|
@@ -34,7 +34,7 @@ export const se_CreateMemberCommand = async (input, context) => {
|
|
|
34
34
|
resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
35
35
|
let body;
|
|
36
36
|
body = JSON.stringify(take(input, {
|
|
37
|
-
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
37
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
38
38
|
InvitationId: [],
|
|
39
39
|
MemberConfiguration: (_) => _json(_),
|
|
40
40
|
}));
|
|
@@ -56,7 +56,7 @@ export const se_CreateNetworkCommand = async (input, context) => {
|
|
|
56
56
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/networks";
|
|
57
57
|
let body;
|
|
58
58
|
body = JSON.stringify(take(input, {
|
|
59
|
-
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
59
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
60
60
|
Description: [],
|
|
61
61
|
Framework: [],
|
|
62
62
|
FrameworkConfiguration: (_) => _json(_),
|
|
@@ -85,7 +85,7 @@ export const se_CreateNodeCommand = async (input, context) => {
|
|
|
85
85
|
resolvedPath = __resolvedPath(resolvedPath, input, "NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
86
86
|
let body;
|
|
87
87
|
body = JSON.stringify(take(input, {
|
|
88
|
-
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
88
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
89
89
|
MemberId: [],
|
|
90
90
|
NodeConfiguration: (_) => _json(_),
|
|
91
91
|
Tags: (_) => _json(_),
|
|
@@ -110,7 +110,7 @@ export const se_CreateProposalCommand = async (input, context) => {
|
|
|
110
110
|
let body;
|
|
111
111
|
body = JSON.stringify(take(input, {
|
|
112
112
|
Actions: (_) => _json(_),
|
|
113
|
-
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
113
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
114
114
|
Description: [],
|
|
115
115
|
MemberId: [],
|
|
116
116
|
Tags: (_) => _json(_),
|
|
@@ -27,235 +27,176 @@ import { UpdateMemberCommandInput, UpdateMemberCommandOutput } from "./commands/
|
|
|
27
27
|
import { UpdateNodeCommandInput, UpdateNodeCommandOutput } from "./commands/UpdateNodeCommand";
|
|
28
28
|
import { VoteOnProposalCommandInput, VoteOnProposalCommandOutput } from "./commands/VoteOnProposalCommand";
|
|
29
29
|
import { ManagedBlockchainClient } from "./ManagedBlockchainClient";
|
|
30
|
-
|
|
31
|
-
* @public
|
|
32
|
-
* <p></p>
|
|
33
|
-
* <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>
|
|
34
|
-
* <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>
|
|
35
|
-
* <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>
|
|
36
|
-
*/
|
|
37
|
-
export declare class ManagedBlockchain extends ManagedBlockchainClient {
|
|
30
|
+
export interface ManagedBlockchain {
|
|
38
31
|
/**
|
|
39
|
-
* @
|
|
40
|
-
* <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor contains information
|
|
41
|
-
* required for token based access to your Ethereum nodes.</p>
|
|
32
|
+
* @see {@link CreateAccessorCommand}
|
|
42
33
|
*/
|
|
43
34
|
createAccessor(args: CreateAccessorCommandInput, options?: __HttpHandlerOptions): Promise<CreateAccessorCommandOutput>;
|
|
44
35
|
createAccessor(args: CreateAccessorCommandInput, cb: (err: any, data?: CreateAccessorCommandOutput) => void): void;
|
|
45
36
|
createAccessor(args: CreateAccessorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAccessorCommandOutput) => void): void;
|
|
46
37
|
/**
|
|
47
|
-
* @
|
|
48
|
-
* <p>Creates a member within a Managed Blockchain network.</p>
|
|
49
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
38
|
+
* @see {@link CreateMemberCommand}
|
|
50
39
|
*/
|
|
51
40
|
createMember(args: CreateMemberCommandInput, options?: __HttpHandlerOptions): Promise<CreateMemberCommandOutput>;
|
|
52
41
|
createMember(args: CreateMemberCommandInput, cb: (err: any, data?: CreateMemberCommandOutput) => void): void;
|
|
53
42
|
createMember(args: CreateMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMemberCommandOutput) => void): void;
|
|
54
43
|
/**
|
|
55
|
-
* @
|
|
56
|
-
* <p>Creates a new blockchain network using Amazon Managed Blockchain.</p>
|
|
57
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
44
|
+
* @see {@link CreateNetworkCommand}
|
|
58
45
|
*/
|
|
59
46
|
createNetwork(args: CreateNetworkCommandInput, options?: __HttpHandlerOptions): Promise<CreateNetworkCommandOutput>;
|
|
60
47
|
createNetwork(args: CreateNetworkCommandInput, cb: (err: any, data?: CreateNetworkCommandOutput) => void): void;
|
|
61
48
|
createNetwork(args: CreateNetworkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNetworkCommandOutput) => void): void;
|
|
62
49
|
/**
|
|
63
|
-
* @
|
|
64
|
-
* <p>Creates a node on the specified blockchain network.</p>
|
|
65
|
-
* <p>Applies to Hyperledger Fabric and Ethereum.</p>
|
|
50
|
+
* @see {@link CreateNodeCommand}
|
|
66
51
|
*/
|
|
67
52
|
createNode(args: CreateNodeCommandInput, options?: __HttpHandlerOptions): Promise<CreateNodeCommandOutput>;
|
|
68
53
|
createNode(args: CreateNodeCommandInput, cb: (err: any, data?: CreateNodeCommandOutput) => void): void;
|
|
69
54
|
createNode(args: CreateNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNodeCommandOutput) => void): void;
|
|
70
55
|
/**
|
|
71
|
-
* @
|
|
72
|
-
* <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>
|
|
73
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
56
|
+
* @see {@link CreateProposalCommand}
|
|
74
57
|
*/
|
|
75
58
|
createProposal(args: CreateProposalCommandInput, options?: __HttpHandlerOptions): Promise<CreateProposalCommandOutput>;
|
|
76
59
|
createProposal(args: CreateProposalCommandInput, cb: (err: any, data?: CreateProposalCommandOutput) => void): void;
|
|
77
60
|
createProposal(args: CreateProposalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProposalCommandOutput) => void): void;
|
|
78
61
|
/**
|
|
79
|
-
* @
|
|
80
|
-
* <p>Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the
|
|
81
|
-
* information required for token based access to your Ethereum nodes including, the
|
|
82
|
-
* <code>BILLING_TOKEN</code>. After an accessor is deleted, the status of the accessor changes
|
|
83
|
-
* from <code>AVAILABLE</code> to <code>PENDING_DELETION</code>. An accessor in the
|
|
84
|
-
* <code>PENDING_DELETION</code> state can’t be used for new WebSocket requests or
|
|
85
|
-
* HTTP requests. However, WebSocket connections that were initiated while the accessor was in the
|
|
86
|
-
* <code>AVAILABLE</code> state remain open until they expire (up to 2 hours).</p>
|
|
62
|
+
* @see {@link DeleteAccessorCommand}
|
|
87
63
|
*/
|
|
88
64
|
deleteAccessor(args: DeleteAccessorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAccessorCommandOutput>;
|
|
89
65
|
deleteAccessor(args: DeleteAccessorCommandInput, cb: (err: any, data?: DeleteAccessorCommandOutput) => void): void;
|
|
90
66
|
deleteAccessor(args: DeleteAccessorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAccessorCommandOutput) => void): void;
|
|
91
67
|
/**
|
|
92
|
-
* @
|
|
93
|
-
* <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>
|
|
94
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
68
|
+
* @see {@link DeleteMemberCommand}
|
|
95
69
|
*/
|
|
96
70
|
deleteMember(args: DeleteMemberCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMemberCommandOutput>;
|
|
97
71
|
deleteMember(args: DeleteMemberCommandInput, cb: (err: any, data?: DeleteMemberCommandOutput) => void): void;
|
|
98
72
|
deleteMember(args: DeleteMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMemberCommandOutput) => void): void;
|
|
99
73
|
/**
|
|
100
|
-
* @
|
|
101
|
-
* <p>Deletes a node that your Amazon Web Services account owns. All data on the node is lost and cannot be recovered.</p>
|
|
102
|
-
* <p>Applies to Hyperledger Fabric and Ethereum.</p>
|
|
74
|
+
* @see {@link DeleteNodeCommand}
|
|
103
75
|
*/
|
|
104
76
|
deleteNode(args: DeleteNodeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteNodeCommandOutput>;
|
|
105
77
|
deleteNode(args: DeleteNodeCommandInput, cb: (err: any, data?: DeleteNodeCommandOutput) => void): void;
|
|
106
78
|
deleteNode(args: DeleteNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteNodeCommandOutput) => void): void;
|
|
107
79
|
/**
|
|
108
|
-
* @
|
|
109
|
-
* <p>Returns detailed information about an accessor. An accessor object is a container that has the
|
|
110
|
-
* information required for token based access to your Ethereum nodes.</p>
|
|
80
|
+
* @see {@link GetAccessorCommand}
|
|
111
81
|
*/
|
|
112
82
|
getAccessor(args: GetAccessorCommandInput, options?: __HttpHandlerOptions): Promise<GetAccessorCommandOutput>;
|
|
113
83
|
getAccessor(args: GetAccessorCommandInput, cb: (err: any, data?: GetAccessorCommandOutput) => void): void;
|
|
114
84
|
getAccessor(args: GetAccessorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccessorCommandOutput) => void): void;
|
|
115
85
|
/**
|
|
116
|
-
* @
|
|
117
|
-
* <p>Returns detailed information about a member.</p>
|
|
118
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
86
|
+
* @see {@link GetMemberCommand}
|
|
119
87
|
*/
|
|
120
88
|
getMember(args: GetMemberCommandInput, options?: __HttpHandlerOptions): Promise<GetMemberCommandOutput>;
|
|
121
89
|
getMember(args: GetMemberCommandInput, cb: (err: any, data?: GetMemberCommandOutput) => void): void;
|
|
122
90
|
getMember(args: GetMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMemberCommandOutput) => void): void;
|
|
123
91
|
/**
|
|
124
|
-
* @
|
|
125
|
-
* <p>Returns detailed information about a network.</p>
|
|
126
|
-
* <p>Applies to Hyperledger Fabric and Ethereum.</p>
|
|
92
|
+
* @see {@link GetNetworkCommand}
|
|
127
93
|
*/
|
|
128
94
|
getNetwork(args: GetNetworkCommandInput, options?: __HttpHandlerOptions): Promise<GetNetworkCommandOutput>;
|
|
129
95
|
getNetwork(args: GetNetworkCommandInput, cb: (err: any, data?: GetNetworkCommandOutput) => void): void;
|
|
130
96
|
getNetwork(args: GetNetworkCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetNetworkCommandOutput) => void): void;
|
|
131
97
|
/**
|
|
132
|
-
* @
|
|
133
|
-
* <p>Returns detailed information about a node.</p>
|
|
134
|
-
* <p>Applies to Hyperledger Fabric and Ethereum.</p>
|
|
98
|
+
* @see {@link GetNodeCommand}
|
|
135
99
|
*/
|
|
136
100
|
getNode(args: GetNodeCommandInput, options?: __HttpHandlerOptions): Promise<GetNodeCommandOutput>;
|
|
137
101
|
getNode(args: GetNodeCommandInput, cb: (err: any, data?: GetNodeCommandOutput) => void): void;
|
|
138
102
|
getNode(args: GetNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetNodeCommandOutput) => void): void;
|
|
139
103
|
/**
|
|
140
|
-
* @
|
|
141
|
-
* <p>Returns detailed information about a proposal.</p>
|
|
142
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
104
|
+
* @see {@link GetProposalCommand}
|
|
143
105
|
*/
|
|
144
106
|
getProposal(args: GetProposalCommandInput, options?: __HttpHandlerOptions): Promise<GetProposalCommandOutput>;
|
|
145
107
|
getProposal(args: GetProposalCommandInput, cb: (err: any, data?: GetProposalCommandOutput) => void): void;
|
|
146
108
|
getProposal(args: GetProposalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProposalCommandOutput) => void): void;
|
|
147
109
|
/**
|
|
148
|
-
* @
|
|
149
|
-
* <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
|
|
150
|
-
* information required for token based access to your Ethereum nodes.</p>
|
|
110
|
+
* @see {@link ListAccessorsCommand}
|
|
151
111
|
*/
|
|
152
112
|
listAccessors(args: ListAccessorsCommandInput, options?: __HttpHandlerOptions): Promise<ListAccessorsCommandOutput>;
|
|
153
113
|
listAccessors(args: ListAccessorsCommandInput, cb: (err: any, data?: ListAccessorsCommandOutput) => void): void;
|
|
154
114
|
listAccessors(args: ListAccessorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccessorsCommandOutput) => void): void;
|
|
155
115
|
/**
|
|
156
|
-
* @
|
|
157
|
-
* <p>Returns a list of all invitations for the current Amazon Web Services account.</p>
|
|
158
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
116
|
+
* @see {@link ListInvitationsCommand}
|
|
159
117
|
*/
|
|
160
118
|
listInvitations(args: ListInvitationsCommandInput, options?: __HttpHandlerOptions): Promise<ListInvitationsCommandOutput>;
|
|
161
119
|
listInvitations(args: ListInvitationsCommandInput, cb: (err: any, data?: ListInvitationsCommandOutput) => void): void;
|
|
162
120
|
listInvitations(args: ListInvitationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInvitationsCommandOutput) => void): void;
|
|
163
121
|
/**
|
|
164
|
-
* @
|
|
165
|
-
* <p>Returns a list of the members in a network and properties of their configurations.</p>
|
|
166
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
122
|
+
* @see {@link ListMembersCommand}
|
|
167
123
|
*/
|
|
168
124
|
listMembers(args: ListMembersCommandInput, options?: __HttpHandlerOptions): Promise<ListMembersCommandOutput>;
|
|
169
125
|
listMembers(args: ListMembersCommandInput, cb: (err: any, data?: ListMembersCommandOutput) => void): void;
|
|
170
126
|
listMembers(args: ListMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMembersCommandOutput) => void): void;
|
|
171
127
|
/**
|
|
172
|
-
* @
|
|
173
|
-
* <p>Returns information about the networks in which the current Amazon Web Services account participates.</p>
|
|
174
|
-
* <p>Applies to Hyperledger Fabric and Ethereum.</p>
|
|
128
|
+
* @see {@link ListNetworksCommand}
|
|
175
129
|
*/
|
|
176
130
|
listNetworks(args: ListNetworksCommandInput, options?: __HttpHandlerOptions): Promise<ListNetworksCommandOutput>;
|
|
177
131
|
listNetworks(args: ListNetworksCommandInput, cb: (err: any, data?: ListNetworksCommandOutput) => void): void;
|
|
178
132
|
listNetworks(args: ListNetworksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNetworksCommandOutput) => void): void;
|
|
179
133
|
/**
|
|
180
|
-
* @
|
|
181
|
-
* <p>Returns information about the nodes within a network.</p>
|
|
182
|
-
* <p>Applies to Hyperledger Fabric and Ethereum.</p>
|
|
134
|
+
* @see {@link ListNodesCommand}
|
|
183
135
|
*/
|
|
184
136
|
listNodes(args: ListNodesCommandInput, options?: __HttpHandlerOptions): Promise<ListNodesCommandOutput>;
|
|
185
137
|
listNodes(args: ListNodesCommandInput, cb: (err: any, data?: ListNodesCommandOutput) => void): void;
|
|
186
138
|
listNodes(args: ListNodesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNodesCommandOutput) => void): void;
|
|
187
139
|
/**
|
|
188
|
-
* @
|
|
189
|
-
* <p>Returns a list of proposals for the network.</p>
|
|
190
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
140
|
+
* @see {@link ListProposalsCommand}
|
|
191
141
|
*/
|
|
192
142
|
listProposals(args: ListProposalsCommandInput, options?: __HttpHandlerOptions): Promise<ListProposalsCommandOutput>;
|
|
193
143
|
listProposals(args: ListProposalsCommandInput, cb: (err: any, data?: ListProposalsCommandOutput) => void): void;
|
|
194
144
|
listProposals(args: ListProposalsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProposalsCommandOutput) => void): void;
|
|
195
145
|
/**
|
|
196
|
-
* @
|
|
197
|
-
* <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>
|
|
198
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
146
|
+
* @see {@link ListProposalVotesCommand}
|
|
199
147
|
*/
|
|
200
148
|
listProposalVotes(args: ListProposalVotesCommandInput, options?: __HttpHandlerOptions): Promise<ListProposalVotesCommandOutput>;
|
|
201
149
|
listProposalVotes(args: ListProposalVotesCommandInput, cb: (err: any, data?: ListProposalVotesCommandOutput) => void): void;
|
|
202
150
|
listProposalVotes(args: ListProposalVotesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProposalVotesCommandOutput) => void): void;
|
|
203
151
|
/**
|
|
204
|
-
* @
|
|
205
|
-
* <p>Returns a list of tags for the specified resource. Each tag consists of a key and optional value.</p>
|
|
206
|
-
* <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>
|
|
152
|
+
* @see {@link ListTagsForResourceCommand}
|
|
207
153
|
*/
|
|
208
154
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
209
155
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
210
156
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
211
157
|
/**
|
|
212
|
-
* @
|
|
213
|
-
* <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>
|
|
214
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
158
|
+
* @see {@link RejectInvitationCommand}
|
|
215
159
|
*/
|
|
216
160
|
rejectInvitation(args: RejectInvitationCommandInput, options?: __HttpHandlerOptions): Promise<RejectInvitationCommandOutput>;
|
|
217
161
|
rejectInvitation(args: RejectInvitationCommandInput, cb: (err: any, data?: RejectInvitationCommandOutput) => void): void;
|
|
218
162
|
rejectInvitation(args: RejectInvitationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RejectInvitationCommandOutput) => void): void;
|
|
219
163
|
/**
|
|
220
|
-
* @
|
|
221
|
-
* <p>Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource. Each tag consists of a key and optional value.</p>
|
|
222
|
-
* <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>
|
|
223
|
-
* <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>
|
|
224
|
-
* <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
|
+
* @see {@link TagResourceCommand}
|
|
225
165
|
*/
|
|
226
166
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
227
167
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
228
168
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
229
169
|
/**
|
|
230
|
-
* @
|
|
231
|
-
* <p>Removes the specified tags from the Amazon Managed Blockchain resource.</p>
|
|
232
|
-
* <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>
|
|
170
|
+
* @see {@link UntagResourceCommand}
|
|
233
171
|
*/
|
|
234
172
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
235
173
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
236
174
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
237
175
|
/**
|
|
238
|
-
* @
|
|
239
|
-
* <p>Updates a member configuration with new parameters.</p>
|
|
240
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
176
|
+
* @see {@link UpdateMemberCommand}
|
|
241
177
|
*/
|
|
242
178
|
updateMember(args: UpdateMemberCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMemberCommandOutput>;
|
|
243
179
|
updateMember(args: UpdateMemberCommandInput, cb: (err: any, data?: UpdateMemberCommandOutput) => void): void;
|
|
244
180
|
updateMember(args: UpdateMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMemberCommandOutput) => void): void;
|
|
245
181
|
/**
|
|
246
|
-
* @
|
|
247
|
-
* <p>Updates a node configuration with new parameters.</p>
|
|
248
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
182
|
+
* @see {@link UpdateNodeCommand}
|
|
249
183
|
*/
|
|
250
184
|
updateNode(args: UpdateNodeCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNodeCommandOutput>;
|
|
251
185
|
updateNode(args: UpdateNodeCommandInput, cb: (err: any, data?: UpdateNodeCommandOutput) => void): void;
|
|
252
186
|
updateNode(args: UpdateNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNodeCommandOutput) => void): void;
|
|
253
187
|
/**
|
|
254
|
-
* @
|
|
255
|
-
* <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>
|
|
256
|
-
* <p>Applies only to Hyperledger Fabric.</p>
|
|
188
|
+
* @see {@link VoteOnProposalCommand}
|
|
257
189
|
*/
|
|
258
190
|
voteOnProposal(args: VoteOnProposalCommandInput, options?: __HttpHandlerOptions): Promise<VoteOnProposalCommandOutput>;
|
|
259
191
|
voteOnProposal(args: VoteOnProposalCommandInput, cb: (err: any, data?: VoteOnProposalCommandOutput) => void): void;
|
|
260
192
|
voteOnProposal(args: VoteOnProposalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VoteOnProposalCommandOutput) => void): void;
|
|
261
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* @public
|
|
196
|
+
* <p></p>
|
|
197
|
+
* <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>
|
|
198
|
+
* <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>
|
|
199
|
+
* <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>
|
|
200
|
+
*/
|
|
201
|
+
export declare class ManagedBlockchain extends ManagedBlockchainClient implements ManagedBlockchain {
|
|
202
|
+
}
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
VoteOnProposalCommandOutput,
|
|
109
109
|
} from "./commands/VoteOnProposalCommand";
|
|
110
110
|
import { ManagedBlockchainClient } from "./ManagedBlockchainClient";
|
|
111
|
-
export
|
|
111
|
+
export interface ManagedBlockchain {
|
|
112
112
|
createAccessor(
|
|
113
113
|
args: CreateAccessorCommandInput,
|
|
114
114
|
options?: __HttpHandlerOptions
|
|
@@ -461,3 +461,6 @@ export declare class ManagedBlockchain extends ManagedBlockchainClient {
|
|
|
461
461
|
cb: (err: any, data?: VoteOnProposalCommandOutput) => void
|
|
462
462
|
): void;
|
|
463
463
|
}
|
|
464
|
+
export declare class ManagedBlockchain
|
|
465
|
+
extends ManagedBlockchainClient
|
|
466
|
+
implements ManagedBlockchain {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-managedblockchain",
|
|
3
3
|
"description": "AWS SDK for JavaScript Managedblockchain Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|