@aws-sdk/client-managedblockchain 3.188.0 → 3.192.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +8 -8
- package/dist-cjs/ManagedBlockchain.js +60 -0
- package/dist-cjs/ManagedBlockchainClient.js +11 -8
- package/dist-cjs/commands/CreateAccessorCommand.js +46 -0
- package/dist-cjs/commands/CreateMemberCommand.js +10 -0
- package/dist-cjs/commands/CreateNetworkCommand.js +10 -0
- package/dist-cjs/commands/CreateNodeCommand.js +10 -0
- package/dist-cjs/commands/CreateProposalCommand.js +10 -0
- package/dist-cjs/commands/DeleteAccessorCommand.js +46 -0
- package/dist-cjs/commands/DeleteMemberCommand.js +10 -0
- package/dist-cjs/commands/DeleteNodeCommand.js +10 -0
- package/dist-cjs/commands/GetAccessorCommand.js +46 -0
- package/dist-cjs/commands/GetMemberCommand.js +10 -0
- package/dist-cjs/commands/GetNetworkCommand.js +10 -0
- package/dist-cjs/commands/GetNodeCommand.js +10 -0
- package/dist-cjs/commands/GetProposalCommand.js +10 -0
- package/dist-cjs/commands/ListAccessorsCommand.js +46 -0
- package/dist-cjs/commands/ListInvitationsCommand.js +10 -0
- package/dist-cjs/commands/ListMembersCommand.js +10 -0
- package/dist-cjs/commands/ListNetworksCommand.js +10 -0
- package/dist-cjs/commands/ListNodesCommand.js +10 -0
- package/dist-cjs/commands/ListProposalVotesCommand.js +10 -0
- package/dist-cjs/commands/ListProposalsCommand.js +10 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-cjs/commands/RejectInvitationCommand.js +10 -0
- package/dist-cjs/commands/TagResourceCommand.js +10 -0
- package/dist-cjs/commands/UntagResourceCommand.js +10 -0
- package/dist-cjs/commands/UpdateMemberCommand.js +10 -0
- package/dist-cjs/commands/UpdateNodeCommand.js +10 -0
- package/dist-cjs/commands/VoteOnProposalCommand.js +10 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +318 -0
- package/dist-cjs/models/models_0.js +66 -16
- package/dist-cjs/pagination/ListAccessorsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +297 -1
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/ManagedBlockchain.js +60 -0
- package/dist-es/ManagedBlockchainClient.js +12 -9
- package/dist-es/commands/CreateAccessorCommand.js +42 -0
- package/dist-es/commands/CreateMemberCommand.js +10 -0
- package/dist-es/commands/CreateNetworkCommand.js +10 -0
- package/dist-es/commands/CreateNodeCommand.js +10 -0
- package/dist-es/commands/CreateProposalCommand.js +10 -0
- package/dist-es/commands/DeleteAccessorCommand.js +42 -0
- package/dist-es/commands/DeleteMemberCommand.js +10 -0
- package/dist-es/commands/DeleteNodeCommand.js +10 -0
- package/dist-es/commands/GetAccessorCommand.js +42 -0
- package/dist-es/commands/GetMemberCommand.js +10 -0
- package/dist-es/commands/GetNetworkCommand.js +10 -0
- package/dist-es/commands/GetNodeCommand.js +10 -0
- package/dist-es/commands/GetProposalCommand.js +10 -0
- package/dist-es/commands/ListAccessorsCommand.js +42 -0
- package/dist-es/commands/ListInvitationsCommand.js +10 -0
- package/dist-es/commands/ListMembersCommand.js +10 -0
- package/dist-es/commands/ListNetworksCommand.js +10 -0
- package/dist-es/commands/ListNodesCommand.js +10 -0
- package/dist-es/commands/ListProposalVotesCommand.js +10 -0
- package/dist-es/commands/ListProposalsCommand.js +10 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
- package/dist-es/commands/RejectInvitationCommand.js +10 -0
- package/dist-es/commands/TagResourceCommand.js +10 -0
- package/dist-es/commands/UntagResourceCommand.js +10 -0
- package/dist-es/commands/UpdateMemberCommand.js +10 -0
- package/dist-es/commands/UpdateNodeCommand.js +10 -0
- package/dist-es/commands/VoteOnProposalCommand.js +10 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +315 -0
- package/dist-es/models/models_0.js +52 -12
- package/dist-es/pagination/ListAccessorsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +286 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/ManagedBlockchain.d.ts +64 -7
- package/dist-types/ManagedBlockchainClient.d.ts +13 -12
- package/dist-types/commands/CreateAccessorCommand.d.ts +43 -0
- package/dist-types/commands/CreateMemberCommand.d.ts +2 -0
- package/dist-types/commands/CreateNetworkCommand.d.ts +2 -0
- package/dist-types/commands/CreateNodeCommand.d.ts +2 -0
- package/dist-types/commands/CreateProposalCommand.d.ts +2 -0
- package/dist-types/commands/DeleteAccessorCommand.d.ts +48 -0
- package/dist-types/commands/DeleteMemberCommand.d.ts +3 -1
- package/dist-types/commands/DeleteNodeCommand.d.ts +3 -1
- package/dist-types/commands/GetAccessorCommand.d.ts +43 -0
- package/dist-types/commands/GetMemberCommand.d.ts +2 -0
- package/dist-types/commands/GetNetworkCommand.d.ts +2 -0
- package/dist-types/commands/GetNodeCommand.d.ts +2 -0
- package/dist-types/commands/GetProposalCommand.d.ts +2 -0
- package/dist-types/commands/ListAccessorsCommand.d.ts +43 -0
- package/dist-types/commands/ListInvitationsCommand.d.ts +3 -1
- package/dist-types/commands/ListMembersCommand.d.ts +2 -0
- package/dist-types/commands/ListNetworksCommand.d.ts +3 -1
- package/dist-types/commands/ListNodesCommand.d.ts +2 -0
- package/dist-types/commands/ListProposalVotesCommand.d.ts +2 -0
- package/dist-types/commands/ListProposalsCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/commands/RejectInvitationCommand.d.ts +3 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateMemberCommand.d.ts +2 -0
- package/dist-types/commands/UpdateNodeCommand.d.ts +2 -0
- package/dist-types/commands/VoteOnProposalCommand.d.ts +3 -1
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +325 -119
- package/dist-types/pagination/ListAccessorsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/ManagedBlockchain.d.ts +68 -0
- package/dist-types/ts3.4/ManagedBlockchainClient.d.ts +39 -8
- package/dist-types/ts3.4/commands/CreateAccessorCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateMemberCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateNetworkCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateNodeCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/CreateProposalCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteAccessorCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteMemberCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteNodeCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetAccessorCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetNetworkCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetNodeCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetProposalCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListAccessorsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListNetworksCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListNodesCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListProposalVotesCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListProposalsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/RejectInvitationCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateMemberCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/UpdateNodeCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/VoteOnProposalCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +115 -38
- package/dist-types/ts3.4/pagination/ListAccessorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +27 -26
- package/dist-cjs/endpoints.js +0 -132
- package/dist-es/endpoints.js +0 -128
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -1,11 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RejectInvitationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProposalVotesCommand = exports.deserializeAws_restJson1ListProposalsCommand = exports.deserializeAws_restJson1ListNodesCommand = exports.deserializeAws_restJson1ListNetworksCommand = exports.deserializeAws_restJson1ListMembersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListAccessorsCommand = exports.deserializeAws_restJson1GetProposalCommand = exports.deserializeAws_restJson1GetNodeCommand = exports.deserializeAws_restJson1GetNetworkCommand = exports.deserializeAws_restJson1GetMemberCommand = exports.deserializeAws_restJson1GetAccessorCommand = exports.deserializeAws_restJson1DeleteNodeCommand = exports.deserializeAws_restJson1DeleteMemberCommand = exports.deserializeAws_restJson1DeleteAccessorCommand = exports.deserializeAws_restJson1CreateProposalCommand = exports.deserializeAws_restJson1CreateNodeCommand = exports.deserializeAws_restJson1CreateNetworkCommand = exports.deserializeAws_restJson1CreateMemberCommand = exports.deserializeAws_restJson1CreateAccessorCommand = exports.serializeAws_restJson1VoteOnProposalCommand = exports.serializeAws_restJson1UpdateNodeCommand = exports.serializeAws_restJson1UpdateMemberCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RejectInvitationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProposalVotesCommand = exports.serializeAws_restJson1ListProposalsCommand = exports.serializeAws_restJson1ListNodesCommand = exports.serializeAws_restJson1ListNetworksCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListAccessorsCommand = exports.serializeAws_restJson1GetProposalCommand = exports.serializeAws_restJson1GetNodeCommand = exports.serializeAws_restJson1GetNetworkCommand = exports.serializeAws_restJson1GetMemberCommand = exports.serializeAws_restJson1GetAccessorCommand = exports.serializeAws_restJson1DeleteNodeCommand = exports.serializeAws_restJson1DeleteMemberCommand = exports.serializeAws_restJson1DeleteAccessorCommand = exports.serializeAws_restJson1CreateProposalCommand = exports.serializeAws_restJson1CreateNodeCommand = exports.serializeAws_restJson1CreateNetworkCommand = exports.serializeAws_restJson1CreateMemberCommand = exports.serializeAws_restJson1CreateAccessorCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1VoteOnProposalCommand = exports.deserializeAws_restJson1UpdateNodeCommand = exports.deserializeAws_restJson1UpdateMemberCommand = exports.deserializeAws_restJson1UntagResourceCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
7
8
|
const ManagedBlockchainServiceException_1 = require("../models/ManagedBlockchainServiceException");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const serializeAws_restJson1CreateAccessorCommand = async (input, context) => {
|
|
11
|
+
var _a;
|
|
12
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
13
|
+
const headers = {
|
|
14
|
+
"content-type": "application/json",
|
|
15
|
+
};
|
|
16
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/accessors";
|
|
17
|
+
let body;
|
|
18
|
+
body = JSON.stringify({
|
|
19
|
+
...(input.AccessorType != null && { AccessorType: input.AccessorType }),
|
|
20
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
21
|
+
});
|
|
22
|
+
return new protocol_http_1.HttpRequest({
|
|
23
|
+
protocol,
|
|
24
|
+
hostname,
|
|
25
|
+
port,
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers,
|
|
28
|
+
path: resolvedPath,
|
|
29
|
+
body,
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
exports.serializeAws_restJson1CreateAccessorCommand = serializeAws_restJson1CreateAccessorCommand;
|
|
9
33
|
const serializeAws_restJson1CreateMemberCommand = async (input, context) => {
|
|
10
34
|
var _a;
|
|
11
35
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -124,6 +148,23 @@ const serializeAws_restJson1CreateProposalCommand = async (input, context) => {
|
|
|
124
148
|
});
|
|
125
149
|
};
|
|
126
150
|
exports.serializeAws_restJson1CreateProposalCommand = serializeAws_restJson1CreateProposalCommand;
|
|
151
|
+
const serializeAws_restJson1DeleteAccessorCommand = async (input, context) => {
|
|
152
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
153
|
+
const headers = {};
|
|
154
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/accessors/{AccessorId}";
|
|
155
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AccessorId", () => input.AccessorId, "{AccessorId}", false);
|
|
156
|
+
let body;
|
|
157
|
+
return new protocol_http_1.HttpRequest({
|
|
158
|
+
protocol,
|
|
159
|
+
hostname,
|
|
160
|
+
port,
|
|
161
|
+
method: "DELETE",
|
|
162
|
+
headers,
|
|
163
|
+
path: resolvedPath,
|
|
164
|
+
body,
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
exports.serializeAws_restJson1DeleteAccessorCommand = serializeAws_restJson1DeleteAccessorCommand;
|
|
127
168
|
const serializeAws_restJson1DeleteMemberCommand = async (input, context) => {
|
|
128
169
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
129
170
|
const headers = {};
|
|
@@ -164,6 +205,23 @@ const serializeAws_restJson1DeleteNodeCommand = async (input, context) => {
|
|
|
164
205
|
});
|
|
165
206
|
};
|
|
166
207
|
exports.serializeAws_restJson1DeleteNodeCommand = serializeAws_restJson1DeleteNodeCommand;
|
|
208
|
+
const serializeAws_restJson1GetAccessorCommand = async (input, context) => {
|
|
209
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
210
|
+
const headers = {};
|
|
211
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/accessors/{AccessorId}";
|
|
212
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AccessorId", () => input.AccessorId, "{AccessorId}", false);
|
|
213
|
+
let body;
|
|
214
|
+
return new protocol_http_1.HttpRequest({
|
|
215
|
+
protocol,
|
|
216
|
+
hostname,
|
|
217
|
+
port,
|
|
218
|
+
method: "GET",
|
|
219
|
+
headers,
|
|
220
|
+
path: resolvedPath,
|
|
221
|
+
body,
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
exports.serializeAws_restJson1GetAccessorCommand = serializeAws_restJson1GetAccessorCommand;
|
|
167
225
|
const serializeAws_restJson1GetMemberCommand = async (input, context) => {
|
|
168
226
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
169
227
|
const headers = {};
|
|
@@ -240,6 +298,27 @@ const serializeAws_restJson1GetProposalCommand = async (input, context) => {
|
|
|
240
298
|
});
|
|
241
299
|
};
|
|
242
300
|
exports.serializeAws_restJson1GetProposalCommand = serializeAws_restJson1GetProposalCommand;
|
|
301
|
+
const serializeAws_restJson1ListAccessorsCommand = async (input, context) => {
|
|
302
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
303
|
+
const headers = {};
|
|
304
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/accessors";
|
|
305
|
+
const query = map({
|
|
306
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
307
|
+
nextToken: [, input.NextToken],
|
|
308
|
+
});
|
|
309
|
+
let body;
|
|
310
|
+
return new protocol_http_1.HttpRequest({
|
|
311
|
+
protocol,
|
|
312
|
+
hostname,
|
|
313
|
+
port,
|
|
314
|
+
method: "GET",
|
|
315
|
+
headers,
|
|
316
|
+
path: resolvedPath,
|
|
317
|
+
query,
|
|
318
|
+
body,
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
exports.serializeAws_restJson1ListAccessorsCommand = serializeAws_restJson1ListAccessorsCommand;
|
|
243
322
|
const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
|
|
244
323
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
245
324
|
const headers = {};
|
|
@@ -533,6 +612,58 @@ const serializeAws_restJson1VoteOnProposalCommand = async (input, context) => {
|
|
|
533
612
|
});
|
|
534
613
|
};
|
|
535
614
|
exports.serializeAws_restJson1VoteOnProposalCommand = serializeAws_restJson1VoteOnProposalCommand;
|
|
615
|
+
const deserializeAws_restJson1CreateAccessorCommand = async (output, context) => {
|
|
616
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
617
|
+
return deserializeAws_restJson1CreateAccessorCommandError(output, context);
|
|
618
|
+
}
|
|
619
|
+
const contents = map({
|
|
620
|
+
$metadata: deserializeMetadata(output),
|
|
621
|
+
});
|
|
622
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
623
|
+
if (data.AccessorId != null) {
|
|
624
|
+
contents.AccessorId = (0, smithy_client_1.expectString)(data.AccessorId);
|
|
625
|
+
}
|
|
626
|
+
if (data.BillingToken != null) {
|
|
627
|
+
contents.BillingToken = (0, smithy_client_1.expectString)(data.BillingToken);
|
|
628
|
+
}
|
|
629
|
+
return contents;
|
|
630
|
+
};
|
|
631
|
+
exports.deserializeAws_restJson1CreateAccessorCommand = deserializeAws_restJson1CreateAccessorCommand;
|
|
632
|
+
const deserializeAws_restJson1CreateAccessorCommandError = async (output, context) => {
|
|
633
|
+
const parsedOutput = {
|
|
634
|
+
...output,
|
|
635
|
+
body: await parseErrorBody(output.body, context),
|
|
636
|
+
};
|
|
637
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
+
switch (errorCode) {
|
|
639
|
+
case "AccessDeniedException":
|
|
640
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
641
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
642
|
+
case "InternalServiceErrorException":
|
|
643
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
644
|
+
throw await deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
645
|
+
case "InvalidRequestException":
|
|
646
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
647
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
648
|
+
case "ResourceAlreadyExistsException":
|
|
649
|
+
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
650
|
+
throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
651
|
+
case "ResourceLimitExceededException":
|
|
652
|
+
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
653
|
+
throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
654
|
+
case "ThrottlingException":
|
|
655
|
+
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
656
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
657
|
+
default:
|
|
658
|
+
const parsedBody = parsedOutput.body;
|
|
659
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
660
|
+
output,
|
|
661
|
+
parsedBody,
|
|
662
|
+
exceptionCtor: ManagedBlockchainServiceException_1.ManagedBlockchainServiceException,
|
|
663
|
+
errorCode,
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
};
|
|
536
667
|
const deserializeAws_restJson1CreateMemberCommand = async (output, context) => {
|
|
537
668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
538
669
|
return deserializeAws_restJson1CreateMemberCommandError(output, context);
|
|
@@ -756,6 +887,49 @@ const deserializeAws_restJson1CreateProposalCommandError = async (output, contex
|
|
|
756
887
|
});
|
|
757
888
|
}
|
|
758
889
|
};
|
|
890
|
+
const deserializeAws_restJson1DeleteAccessorCommand = async (output, context) => {
|
|
891
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
892
|
+
return deserializeAws_restJson1DeleteAccessorCommandError(output, context);
|
|
893
|
+
}
|
|
894
|
+
const contents = map({
|
|
895
|
+
$metadata: deserializeMetadata(output),
|
|
896
|
+
});
|
|
897
|
+
await collectBody(output.body, context);
|
|
898
|
+
return contents;
|
|
899
|
+
};
|
|
900
|
+
exports.deserializeAws_restJson1DeleteAccessorCommand = deserializeAws_restJson1DeleteAccessorCommand;
|
|
901
|
+
const deserializeAws_restJson1DeleteAccessorCommandError = async (output, context) => {
|
|
902
|
+
const parsedOutput = {
|
|
903
|
+
...output,
|
|
904
|
+
body: await parseErrorBody(output.body, context),
|
|
905
|
+
};
|
|
906
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
|
+
switch (errorCode) {
|
|
908
|
+
case "AccessDeniedException":
|
|
909
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
910
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
911
|
+
case "InternalServiceErrorException":
|
|
912
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
913
|
+
throw await deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
914
|
+
case "InvalidRequestException":
|
|
915
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
916
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
917
|
+
case "ResourceNotFoundException":
|
|
918
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
919
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
920
|
+
case "ThrottlingException":
|
|
921
|
+
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
922
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
923
|
+
default:
|
|
924
|
+
const parsedBody = parsedOutput.body;
|
|
925
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
926
|
+
output,
|
|
927
|
+
parsedBody,
|
|
928
|
+
exceptionCtor: ManagedBlockchainServiceException_1.ManagedBlockchainServiceException,
|
|
929
|
+
errorCode,
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
};
|
|
759
933
|
const deserializeAws_restJson1DeleteMemberCommand = async (output, context) => {
|
|
760
934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
761
935
|
return deserializeAws_restJson1DeleteMemberCommandError(output, context);
|
|
@@ -848,6 +1022,52 @@ const deserializeAws_restJson1DeleteNodeCommandError = async (output, context) =
|
|
|
848
1022
|
});
|
|
849
1023
|
}
|
|
850
1024
|
};
|
|
1025
|
+
const deserializeAws_restJson1GetAccessorCommand = async (output, context) => {
|
|
1026
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1027
|
+
return deserializeAws_restJson1GetAccessorCommandError(output, context);
|
|
1028
|
+
}
|
|
1029
|
+
const contents = map({
|
|
1030
|
+
$metadata: deserializeMetadata(output),
|
|
1031
|
+
});
|
|
1032
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1033
|
+
if (data.Accessor != null) {
|
|
1034
|
+
contents.Accessor = deserializeAws_restJson1Accessor(data.Accessor, context);
|
|
1035
|
+
}
|
|
1036
|
+
return contents;
|
|
1037
|
+
};
|
|
1038
|
+
exports.deserializeAws_restJson1GetAccessorCommand = deserializeAws_restJson1GetAccessorCommand;
|
|
1039
|
+
const deserializeAws_restJson1GetAccessorCommandError = async (output, context) => {
|
|
1040
|
+
const parsedOutput = {
|
|
1041
|
+
...output,
|
|
1042
|
+
body: await parseErrorBody(output.body, context),
|
|
1043
|
+
};
|
|
1044
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1045
|
+
switch (errorCode) {
|
|
1046
|
+
case "AccessDeniedException":
|
|
1047
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1048
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1049
|
+
case "InternalServiceErrorException":
|
|
1050
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1051
|
+
throw await deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1052
|
+
case "InvalidRequestException":
|
|
1053
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1054
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1055
|
+
case "ResourceNotFoundException":
|
|
1056
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1057
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1058
|
+
case "ThrottlingException":
|
|
1059
|
+
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1060
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1061
|
+
default:
|
|
1062
|
+
const parsedBody = parsedOutput.body;
|
|
1063
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1064
|
+
output,
|
|
1065
|
+
parsedBody,
|
|
1066
|
+
exceptionCtor: ManagedBlockchainServiceException_1.ManagedBlockchainServiceException,
|
|
1067
|
+
errorCode,
|
|
1068
|
+
});
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
851
1071
|
const deserializeAws_restJson1GetMemberCommand = async (output, context) => {
|
|
852
1072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
853
1073
|
return deserializeAws_restJson1GetMemberCommandError(output, context);
|
|
@@ -1032,6 +1252,52 @@ const deserializeAws_restJson1GetProposalCommandError = async (output, context)
|
|
|
1032
1252
|
});
|
|
1033
1253
|
}
|
|
1034
1254
|
};
|
|
1255
|
+
const deserializeAws_restJson1ListAccessorsCommand = async (output, context) => {
|
|
1256
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1257
|
+
return deserializeAws_restJson1ListAccessorsCommandError(output, context);
|
|
1258
|
+
}
|
|
1259
|
+
const contents = map({
|
|
1260
|
+
$metadata: deserializeMetadata(output),
|
|
1261
|
+
});
|
|
1262
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1263
|
+
if (data.Accessors != null) {
|
|
1264
|
+
contents.Accessors = deserializeAws_restJson1AccessorSummaryList(data.Accessors, context);
|
|
1265
|
+
}
|
|
1266
|
+
if (data.NextToken != null) {
|
|
1267
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1268
|
+
}
|
|
1269
|
+
return contents;
|
|
1270
|
+
};
|
|
1271
|
+
exports.deserializeAws_restJson1ListAccessorsCommand = deserializeAws_restJson1ListAccessorsCommand;
|
|
1272
|
+
const deserializeAws_restJson1ListAccessorsCommandError = async (output, context) => {
|
|
1273
|
+
const parsedOutput = {
|
|
1274
|
+
...output,
|
|
1275
|
+
body: await parseErrorBody(output.body, context),
|
|
1276
|
+
};
|
|
1277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
+
switch (errorCode) {
|
|
1279
|
+
case "AccessDeniedException":
|
|
1280
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1281
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1282
|
+
case "InternalServiceErrorException":
|
|
1283
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1284
|
+
throw await deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context);
|
|
1285
|
+
case "InvalidRequestException":
|
|
1286
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1287
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1288
|
+
case "ThrottlingException":
|
|
1289
|
+
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1290
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1291
|
+
default:
|
|
1292
|
+
const parsedBody = parsedOutput.body;
|
|
1293
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1294
|
+
output,
|
|
1295
|
+
parsedBody,
|
|
1296
|
+
exceptionCtor: ManagedBlockchainServiceException_1.ManagedBlockchainServiceException,
|
|
1297
|
+
errorCode,
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1035
1301
|
const deserializeAws_restJson1ListInvitationsCommand = async (output, context) => {
|
|
1036
1302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
1303
|
return deserializeAws_restJson1ListInvitationsCommandError(output, context);
|
|
@@ -1881,6 +2147,36 @@ const serializeAws_restJson1VotingPolicy = (input, context) => {
|
|
|
1881
2147
|
}),
|
|
1882
2148
|
};
|
|
1883
2149
|
};
|
|
2150
|
+
const deserializeAws_restJson1Accessor = (output, context) => {
|
|
2151
|
+
return {
|
|
2152
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2153
|
+
BillingToken: (0, smithy_client_1.expectString)(output.BillingToken),
|
|
2154
|
+
CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
|
|
2155
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2156
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2157
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
const deserializeAws_restJson1AccessorSummary = (output, context) => {
|
|
2161
|
+
return {
|
|
2162
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2163
|
+
CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
|
|
2164
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
2165
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2166
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2167
|
+
};
|
|
2168
|
+
};
|
|
2169
|
+
const deserializeAws_restJson1AccessorSummaryList = (output, context) => {
|
|
2170
|
+
const retVal = (output || [])
|
|
2171
|
+
.filter((e) => e != null)
|
|
2172
|
+
.map((entry) => {
|
|
2173
|
+
if (entry === null) {
|
|
2174
|
+
return null;
|
|
2175
|
+
}
|
|
2176
|
+
return deserializeAws_restJson1AccessorSummary(entry, context);
|
|
2177
|
+
});
|
|
2178
|
+
return retVal;
|
|
2179
|
+
};
|
|
1884
2180
|
const deserializeAws_restJson1ApprovalThresholdPolicy = (output, context) => {
|
|
1885
2181
|
return {
|
|
1886
2182
|
ProposalDurationInHours: (0, smithy_client_1.expectInt32)(output.ProposalDurationInHours),
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
-
const
|
|
5
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a, _b, _c, _d, _e;
|
|
8
8
|
return ({
|
|
9
9
|
apiVersion: "2018-09-24",
|
|
10
10
|
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
|
|
12
|
+
logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
|
|
13
13
|
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "ManagedBlockchain",
|
|
14
14
|
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
15
|
});
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
import { CreateAccessorCommand, } from "./commands/CreateAccessorCommand";
|
|
1
2
|
import { CreateMemberCommand, } from "./commands/CreateMemberCommand";
|
|
2
3
|
import { CreateNetworkCommand, } from "./commands/CreateNetworkCommand";
|
|
3
4
|
import { CreateNodeCommand } from "./commands/CreateNodeCommand";
|
|
4
5
|
import { CreateProposalCommand, } from "./commands/CreateProposalCommand";
|
|
6
|
+
import { DeleteAccessorCommand, } from "./commands/DeleteAccessorCommand";
|
|
5
7
|
import { DeleteMemberCommand, } from "./commands/DeleteMemberCommand";
|
|
6
8
|
import { DeleteNodeCommand } from "./commands/DeleteNodeCommand";
|
|
9
|
+
import { GetAccessorCommand } from "./commands/GetAccessorCommand";
|
|
7
10
|
import { GetMemberCommand } from "./commands/GetMemberCommand";
|
|
8
11
|
import { GetNetworkCommand } from "./commands/GetNetworkCommand";
|
|
9
12
|
import { GetNodeCommand } from "./commands/GetNodeCommand";
|
|
10
13
|
import { GetProposalCommand } from "./commands/GetProposalCommand";
|
|
14
|
+
import { ListAccessorsCommand, } from "./commands/ListAccessorsCommand";
|
|
11
15
|
import { ListInvitationsCommand, } from "./commands/ListInvitationsCommand";
|
|
12
16
|
import { ListMembersCommand } from "./commands/ListMembersCommand";
|
|
13
17
|
import { ListNetworksCommand, } from "./commands/ListNetworksCommand";
|
|
@@ -23,6 +27,20 @@ import { UpdateNodeCommand } from "./commands/UpdateNodeCommand";
|
|
|
23
27
|
import { VoteOnProposalCommand, } from "./commands/VoteOnProposalCommand";
|
|
24
28
|
import { ManagedBlockchainClient } from "./ManagedBlockchainClient";
|
|
25
29
|
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
|
+
}
|
|
26
44
|
createMember(args, optionsOrCb, cb) {
|
|
27
45
|
const command = new CreateMemberCommand(args);
|
|
28
46
|
if (typeof optionsOrCb === "function") {
|
|
@@ -79,6 +97,20 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
|
|
|
79
97
|
return this.send(command, optionsOrCb);
|
|
80
98
|
}
|
|
81
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
|
+
}
|
|
82
114
|
deleteMember(args, optionsOrCb, cb) {
|
|
83
115
|
const command = new DeleteMemberCommand(args);
|
|
84
116
|
if (typeof optionsOrCb === "function") {
|
|
@@ -107,6 +139,20 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
|
|
|
107
139
|
return this.send(command, optionsOrCb);
|
|
108
140
|
}
|
|
109
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
|
+
}
|
|
110
156
|
getMember(args, optionsOrCb, cb) {
|
|
111
157
|
const command = new GetMemberCommand(args);
|
|
112
158
|
if (typeof optionsOrCb === "function") {
|
|
@@ -163,6 +209,20 @@ export class ManagedBlockchain extends ManagedBlockchainClient {
|
|
|
163
209
|
return this.send(command, optionsOrCb);
|
|
164
210
|
}
|
|
165
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
|
+
}
|
|
166
226
|
listInvitations(args, optionsOrCb, cb) {
|
|
167
227
|
const command = new ListInvitationsCommand(args);
|
|
168
228
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
4
5
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
5
6
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
@@ -7,18 +8,20 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
7
8
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
10
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
13
|
export class ManagedBlockchainClient extends __Client {
|
|
12
14
|
constructor(configuration) {
|
|
13
15
|
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
-
const _config_1 =
|
|
15
|
-
const _config_2 =
|
|
16
|
-
const _config_3 =
|
|
17
|
-
const _config_4 =
|
|
18
|
-
const _config_5 =
|
|
19
|
-
const _config_6 =
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
22
25
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
26
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
27
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateAccessorInputFilterSensitiveLog, CreateAccessorOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateAccessorCommand, serializeAws_restJson1CreateAccessorCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class CreateAccessorCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateAccessorCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ManagedBlockchainClient";
|
|
25
|
+
const commandName = "CreateAccessorCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateAccessorInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateAccessorOutputFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1CreateAccessorCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1CreateAccessorCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateMemberInputFilterSensitiveLog, CreateMemberOutputFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CreateMemberCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateMemberCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ManagedBlockchainClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateNetworkInputFilterSensitiveLog, CreateNetworkOutputFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CreateNetworkCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateNetworkCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ManagedBlockchainClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateNodeInputFilterSensitiveLog, CreateNodeOutputFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CreateNodeCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateNodeCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "ManagedBlockchainClient";
|