@aws-sdk/client-managedblockchain 3.477.0 → 3.481.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/commands/CreateAccessorCommand.js +18 -41
- package/dist-cjs/commands/CreateMemberCommand.js +18 -41
- package/dist-cjs/commands/CreateNetworkCommand.js +18 -41
- package/dist-cjs/commands/CreateNodeCommand.js +18 -41
- package/dist-cjs/commands/CreateProposalCommand.js +18 -41
- package/dist-cjs/commands/DeleteAccessorCommand.js +18 -41
- package/dist-cjs/commands/DeleteMemberCommand.js +18 -41
- package/dist-cjs/commands/DeleteNodeCommand.js +18 -41
- package/dist-cjs/commands/GetAccessorCommand.js +18 -41
- package/dist-cjs/commands/GetMemberCommand.js +18 -41
- package/dist-cjs/commands/GetNetworkCommand.js +18 -41
- package/dist-cjs/commands/GetNodeCommand.js +18 -41
- package/dist-cjs/commands/GetProposalCommand.js +18 -41
- package/dist-cjs/commands/ListAccessorsCommand.js +18 -41
- package/dist-cjs/commands/ListInvitationsCommand.js +18 -41
- package/dist-cjs/commands/ListMembersCommand.js +18 -41
- package/dist-cjs/commands/ListNetworksCommand.js +18 -41
- package/dist-cjs/commands/ListNodesCommand.js +18 -41
- package/dist-cjs/commands/ListProposalVotesCommand.js +18 -41
- package/dist-cjs/commands/ListProposalsCommand.js +18 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-cjs/commands/RejectInvitationCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/commands/UpdateMemberCommand.js +18 -41
- package/dist-cjs/commands/UpdateNodeCommand.js +18 -41
- package/dist-cjs/commands/VoteOnProposalCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/ListAccessorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInvitationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMembersPaginator.js +2 -24
- package/dist-cjs/pagination/ListNetworksPaginator.js +2 -24
- package/dist-cjs/pagination/ListNodesPaginator.js +2 -24
- package/dist-cjs/pagination/ListProposalVotesPaginator.js +2 -24
- package/dist-cjs/pagination/ListProposalsPaginator.js +2 -24
- package/dist-es/commands/CreateAccessorCommand.js +18 -41
- package/dist-es/commands/CreateMemberCommand.js +18 -41
- package/dist-es/commands/CreateNetworkCommand.js +18 -41
- package/dist-es/commands/CreateNodeCommand.js +18 -41
- package/dist-es/commands/CreateProposalCommand.js +18 -41
- package/dist-es/commands/DeleteAccessorCommand.js +18 -41
- package/dist-es/commands/DeleteMemberCommand.js +18 -41
- package/dist-es/commands/DeleteNodeCommand.js +18 -41
- package/dist-es/commands/GetAccessorCommand.js +18 -41
- package/dist-es/commands/GetMemberCommand.js +18 -41
- package/dist-es/commands/GetNetworkCommand.js +18 -41
- package/dist-es/commands/GetNodeCommand.js +18 -41
- package/dist-es/commands/GetProposalCommand.js +18 -41
- package/dist-es/commands/ListAccessorsCommand.js +18 -41
- package/dist-es/commands/ListInvitationsCommand.js +18 -41
- package/dist-es/commands/ListMembersCommand.js +18 -41
- package/dist-es/commands/ListNetworksCommand.js +18 -41
- package/dist-es/commands/ListNodesCommand.js +18 -41
- package/dist-es/commands/ListProposalVotesCommand.js +18 -41
- package/dist-es/commands/ListProposalsCommand.js +18 -41
- package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-es/commands/RejectInvitationCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/commands/UpdateMemberCommand.js +18 -41
- package/dist-es/commands/UpdateNodeCommand.js +18 -41
- package/dist-es/commands/VoteOnProposalCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/ListAccessorsPaginator.js +2 -23
- package/dist-es/pagination/ListInvitationsPaginator.js +2 -23
- package/dist-es/pagination/ListMembersPaginator.js +2 -23
- package/dist-es/pagination/ListNetworksPaginator.js +2 -23
- package/dist-es/pagination/ListNodesPaginator.js +2 -23
- package/dist-es/pagination/ListProposalVotesPaginator.js +2 -23
- package/dist-es/pagination/ListProposalsPaginator.js +2 -23
- package/dist-types/commands/CreateAccessorCommand.d.ts +6 -21
- package/dist-types/commands/CreateMemberCommand.d.ts +6 -21
- package/dist-types/commands/CreateNetworkCommand.d.ts +6 -21
- package/dist-types/commands/CreateNodeCommand.d.ts +6 -21
- package/dist-types/commands/CreateProposalCommand.d.ts +6 -21
- package/dist-types/commands/DeleteAccessorCommand.d.ts +6 -21
- package/dist-types/commands/DeleteMemberCommand.d.ts +6 -21
- package/dist-types/commands/DeleteNodeCommand.d.ts +6 -21
- package/dist-types/commands/GetAccessorCommand.d.ts +6 -21
- package/dist-types/commands/GetMemberCommand.d.ts +6 -21
- package/dist-types/commands/GetNetworkCommand.d.ts +6 -21
- package/dist-types/commands/GetNodeCommand.d.ts +6 -21
- package/dist-types/commands/GetProposalCommand.d.ts +6 -21
- package/dist-types/commands/ListAccessorsCommand.d.ts +6 -21
- package/dist-types/commands/ListInvitationsCommand.d.ts +6 -21
- package/dist-types/commands/ListMembersCommand.d.ts +6 -21
- package/dist-types/commands/ListNetworksCommand.d.ts +6 -21
- package/dist-types/commands/ListNodesCommand.d.ts +6 -21
- package/dist-types/commands/ListProposalVotesCommand.d.ts +6 -21
- package/dist-types/commands/ListProposalsCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
- package/dist-types/commands/RejectInvitationCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdateMemberCommand.d.ts +6 -21
- package/dist-types/commands/UpdateNodeCommand.d.ts +6 -21
- package/dist-types/commands/VoteOnProposalCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/ListAccessorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInvitationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMembersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListNetworksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListNodesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProposalVotesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProposalsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateAccessorCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateMemberCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateNetworkCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateNodeCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateProposalCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteAccessorCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteMemberCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteNodeCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetAccessorCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetNetworkCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetNodeCommand.d.ts +12 -23
- package/dist-types/ts3.4/commands/GetProposalCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListAccessorsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListNetworksCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListNodesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListProposalVotesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListProposalsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/RejectInvitationCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateMemberCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateNodeCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/VoteOnProposalCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/ListAccessorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInvitationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNetworksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNodesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProposalVotesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProposalsPaginator.d.ts +3 -3
- package/package.json +11 -11
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateMemberCommand, se_UpdateMemberCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateMemberCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ManagedBlockchainClient";
|
|
26
|
-
const commandName = "UpdateMemberCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "TaigaWebService",
|
|
35
|
-
operation: "UpdateMember",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateMemberCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateMemberCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateMemberCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("TaigaWebService", "UpdateMember", {})
|
|
19
|
+
.n("ManagedBlockchainClient", "UpdateMemberCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateMemberCommand)
|
|
22
|
+
.de(de_UpdateMemberCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UpdateNodeCommand, se_UpdateNodeCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UpdateNodeCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ManagedBlockchainClient";
|
|
26
|
-
const commandName = "UpdateNodeCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "TaigaWebService",
|
|
35
|
-
operation: "UpdateNode",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UpdateNodeCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UpdateNodeCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UpdateNodeCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("TaigaWebService", "UpdateNode", {})
|
|
19
|
+
.n("ManagedBlockchainClient", "UpdateNodeCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateNodeCommand)
|
|
22
|
+
.de(de_UpdateNodeCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_VoteOnProposalCommand, se_VoteOnProposalCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class VoteOnProposalCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "ManagedBlockchainClient";
|
|
26
|
-
const commandName = "VoteOnProposalCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "TaigaWebService",
|
|
35
|
-
operation: "VoteOnProposal",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_VoteOnProposalCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_VoteOnProposalCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class VoteOnProposalCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("TaigaWebService", "VoteOnProposal", {})
|
|
19
|
+
.n("ManagedBlockchainClient", "VoteOnProposalCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_VoteOnProposalCommand)
|
|
22
|
+
.de(de_VoteOnProposalCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "managedblockchain",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAccessorsCommand, } from "../commands/ListAccessorsCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAccessorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAccessors(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAccessors = createPaginator(ManagedBlockchainClient, ListAccessorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInvitationsCommand, } from "../commands/ListInvitationsCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInvitationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInvitations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListInvitations = createPaginator(ManagedBlockchainClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMembersCommand } from "../commands/ListMembersCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMembersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMembers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListMembers = createPaginator(ManagedBlockchainClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListNetworksCommand, } from "../commands/ListNetworksCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListNetworksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListNetworks(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListNetworks = createPaginator(ManagedBlockchainClient, ListNetworksCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListNodesCommand } from "../commands/ListNodesCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListNodesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListNodes(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListNodes = createPaginator(ManagedBlockchainClient, ListNodesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListProposalVotesCommand, } from "../commands/ListProposalVotesCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProposalVotesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProposalVotes(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListProposalVotes = createPaginator(ManagedBlockchainClient, ListProposalVotesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListProposalsCommand, } from "../commands/ListProposalsCommand";
|
|
2
3
|
import { ManagedBlockchainClient } from "../ManagedBlockchainClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProposalsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProposals(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchain | ManagedBlockchainClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListProposals = createPaginator(ManagedBlockchainClient, ListProposalsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainClient";
|
|
5
4
|
import { CreateAccessorInput, CreateAccessorOutput } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateAccessorCommandInput extends CreateAccessorInput {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateAccessorCommandOutput extends CreateAccessorOutput, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateAccessorCommand_base: {
|
|
24
|
+
new (input: CreateAccessorCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAccessorCommandInput, CreateAccessorCommandOutput, ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a new accessor for use with Amazon Managed Blockchain service that supports token based access.
|
|
@@ -84,23 +87,5 @@ export interface CreateAccessorCommandOutput extends CreateAccessorOutput, __Met
|
|
|
84
87
|
* <p>Base exception class for all service exceptions from ManagedBlockchain service.</p>
|
|
85
88
|
*
|
|
86
89
|
*/
|
|
87
|
-
export declare class CreateAccessorCommand extends
|
|
88
|
-
readonly input: CreateAccessorCommandInput;
|
|
89
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
90
|
-
/**
|
|
91
|
-
* @public
|
|
92
|
-
*/
|
|
93
|
-
constructor(input: CreateAccessorCommandInput);
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAccessorCommandInput, CreateAccessorCommandOutput>;
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
private serialize;
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
105
|
-
private deserialize;
|
|
90
|
+
export declare class CreateAccessorCommand extends CreateAccessorCommand_base {
|
|
106
91
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainClient";
|
|
5
4
|
import { CreateMemberInput, CreateMemberOutput } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateMemberCommandInput extends CreateMemberInput {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateMemberCommandOutput extends CreateMemberOutput, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateMemberCommand_base: {
|
|
24
|
+
new (input: CreateMemberCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMemberCommandInput, CreateMemberCommandOutput, ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a member within a Managed Blockchain network.</p>
|
|
@@ -108,23 +111,5 @@ export interface CreateMemberCommandOutput extends CreateMemberOutput, __Metadat
|
|
|
108
111
|
* <p>Base exception class for all service exceptions from ManagedBlockchain service.</p>
|
|
109
112
|
*
|
|
110
113
|
*/
|
|
111
|
-
export declare class CreateMemberCommand extends
|
|
112
|
-
readonly input: CreateMemberCommandInput;
|
|
113
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
114
|
-
/**
|
|
115
|
-
* @public
|
|
116
|
-
*/
|
|
117
|
-
constructor(input: CreateMemberCommandInput);
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
*/
|
|
121
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateMemberCommandInput, CreateMemberCommandOutput>;
|
|
122
|
-
/**
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
125
|
-
private serialize;
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
*/
|
|
129
|
-
private deserialize;
|
|
114
|
+
export declare class CreateMemberCommand extends CreateMemberCommand_base {
|
|
130
115
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainClient";
|
|
5
4
|
import { CreateNetworkInput, CreateNetworkOutput } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateNetworkCommandInput extends CreateNetworkInput {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateNetworkCommandOutput extends CreateNetworkOutput, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateNetworkCommand_base: {
|
|
24
|
+
new (input: CreateNetworkCommandInput): import("@smithy/smithy-client").CommandImpl<CreateNetworkCommandInput, CreateNetworkCommandOutput, ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a new blockchain network using Amazon Managed Blockchain.</p>
|
|
@@ -120,23 +123,5 @@ export interface CreateNetworkCommandOutput extends CreateNetworkOutput, __Metad
|
|
|
120
123
|
* <p>Base exception class for all service exceptions from ManagedBlockchain service.</p>
|
|
121
124
|
*
|
|
122
125
|
*/
|
|
123
|
-
export declare class CreateNetworkCommand extends
|
|
124
|
-
readonly input: CreateNetworkCommandInput;
|
|
125
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
126
|
-
/**
|
|
127
|
-
* @public
|
|
128
|
-
*/
|
|
129
|
-
constructor(input: CreateNetworkCommandInput);
|
|
130
|
-
/**
|
|
131
|
-
* @internal
|
|
132
|
-
*/
|
|
133
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateNetworkCommandInput, CreateNetworkCommandOutput>;
|
|
134
|
-
/**
|
|
135
|
-
* @internal
|
|
136
|
-
*/
|
|
137
|
-
private serialize;
|
|
138
|
-
/**
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
141
|
-
private deserialize;
|
|
126
|
+
export declare class CreateNetworkCommand extends CreateNetworkCommand_base {
|
|
142
127
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainClient";
|
|
5
4
|
import { CreateNodeInput, CreateNodeOutput } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateNodeCommandInput extends CreateNodeInput {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateNodeCommandOutput extends CreateNodeOutput, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateNodeCommand_base: {
|
|
24
|
+
new (input: CreateNodeCommandInput): import("@smithy/smithy-client").CommandImpl<CreateNodeCommandInput, CreateNodeCommandOutput, ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a node on the specified blockchain network.</p>
|
|
@@ -107,23 +110,5 @@ export interface CreateNodeCommandOutput extends CreateNodeOutput, __MetadataBea
|
|
|
107
110
|
* <p>Base exception class for all service exceptions from ManagedBlockchain service.</p>
|
|
108
111
|
*
|
|
109
112
|
*/
|
|
110
|
-
export declare class CreateNodeCommand extends
|
|
111
|
-
readonly input: CreateNodeCommandInput;
|
|
112
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
113
|
-
/**
|
|
114
|
-
* @public
|
|
115
|
-
*/
|
|
116
|
-
constructor(input: CreateNodeCommandInput);
|
|
117
|
-
/**
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
120
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateNodeCommandInput, CreateNodeCommandOutput>;
|
|
121
|
-
/**
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
|
-
private serialize;
|
|
125
|
-
/**
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
128
|
-
private deserialize;
|
|
113
|
+
export declare class CreateNodeCommand extends CreateNodeCommand_base {
|
|
129
114
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainClient";
|
|
5
4
|
import { CreateProposalInput, CreateProposalOutput } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateProposalCommandInput extends CreateProposalInput {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateProposalCommandOutput extends CreateProposalOutput, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateProposalCommand_base: {
|
|
24
|
+
new (input: CreateProposalCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProposalCommandInput, CreateProposalCommandOutput, ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <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>
|
|
@@ -94,23 +97,5 @@ export interface CreateProposalCommandOutput extends CreateProposalOutput, __Met
|
|
|
94
97
|
* <p>Base exception class for all service exceptions from ManagedBlockchain service.</p>
|
|
95
98
|
*
|
|
96
99
|
*/
|
|
97
|
-
export declare class CreateProposalCommand extends
|
|
98
|
-
readonly input: CreateProposalCommandInput;
|
|
99
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
100
|
-
/**
|
|
101
|
-
* @public
|
|
102
|
-
*/
|
|
103
|
-
constructor(input: CreateProposalCommandInput);
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
107
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateProposalCommandInput, CreateProposalCommandOutput>;
|
|
108
|
-
/**
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
private serialize;
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
*/
|
|
115
|
-
private deserialize;
|
|
100
|
+
export declare class CreateProposalCommand extends CreateProposalCommand_base {
|
|
116
101
|
}
|