@aws-sdk/client-managedblockchain 3.490.0 → 3.496.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 +1 -65
- package/dist-cjs/ManagedBlockchainClient.js +1 -43
- package/dist-cjs/commands/CreateAccessorCommand.js +1 -28
- package/dist-cjs/commands/CreateMemberCommand.js +1 -29
- package/dist-cjs/commands/CreateNetworkCommand.js +1 -29
- package/dist-cjs/commands/CreateNodeCommand.js +1 -28
- package/dist-cjs/commands/CreateProposalCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccessorCommand.js +1 -28
- package/dist-cjs/commands/DeleteMemberCommand.js +1 -28
- package/dist-cjs/commands/DeleteNodeCommand.js +1 -28
- package/dist-cjs/commands/GetAccessorCommand.js +1 -28
- package/dist-cjs/commands/GetMemberCommand.js +1 -28
- package/dist-cjs/commands/GetNetworkCommand.js +1 -28
- package/dist-cjs/commands/GetNodeCommand.js +1 -28
- package/dist-cjs/commands/GetProposalCommand.js +1 -28
- package/dist-cjs/commands/ListAccessorsCommand.js +1 -28
- package/dist-cjs/commands/ListInvitationsCommand.js +1 -28
- package/dist-cjs/commands/ListMembersCommand.js +1 -28
- package/dist-cjs/commands/ListNetworksCommand.js +1 -28
- package/dist-cjs/commands/ListNodesCommand.js +1 -28
- package/dist-cjs/commands/ListProposalVotesCommand.js +1 -28
- package/dist-cjs/commands/ListProposalsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/RejectInvitationCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateMemberCommand.js +1 -28
- package/dist-cjs/commands/UpdateNodeCommand.js +1 -28
- package/dist-cjs/commands/VoteOnProposalCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -30
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +3062 -11
- package/dist-cjs/models/ManagedBlockchainServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -252
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAccessorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListInvitationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListMembersPaginator.js +1 -7
- package/dist-cjs/pagination/ListNetworksPaginator.js +1 -7
- package/dist-cjs/pagination/ListNodesPaginator.js +1 -7
- package/dist-cjs/pagination/ListProposalVotesPaginator.js +1 -7
- package/dist-cjs/pagination/ListProposalsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -11
- package/dist-cjs/protocols/Aws_restJson1.js +1 -2041
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,2041 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_TagResourceCommand = exports.de_RejectInvitationCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProposalVotesCommand = exports.de_ListProposalsCommand = exports.de_ListNodesCommand = exports.de_ListNetworksCommand = exports.de_ListMembersCommand = exports.de_ListInvitationsCommand = exports.de_ListAccessorsCommand = exports.de_GetProposalCommand = exports.de_GetNodeCommand = exports.de_GetNetworkCommand = exports.de_GetMemberCommand = exports.de_GetAccessorCommand = exports.de_DeleteNodeCommand = exports.de_DeleteMemberCommand = exports.de_DeleteAccessorCommand = exports.de_CreateProposalCommand = exports.de_CreateNodeCommand = exports.de_CreateNetworkCommand = exports.de_CreateMemberCommand = exports.de_CreateAccessorCommand = exports.se_VoteOnProposalCommand = exports.se_UpdateNodeCommand = exports.se_UpdateMemberCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RejectInvitationCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProposalVotesCommand = exports.se_ListProposalsCommand = exports.se_ListNodesCommand = exports.se_ListNetworksCommand = exports.se_ListMembersCommand = exports.se_ListInvitationsCommand = exports.se_ListAccessorsCommand = exports.se_GetProposalCommand = exports.se_GetNodeCommand = exports.se_GetNetworkCommand = exports.se_GetMemberCommand = exports.se_GetAccessorCommand = exports.se_DeleteNodeCommand = exports.se_DeleteMemberCommand = exports.se_DeleteAccessorCommand = exports.se_CreateProposalCommand = exports.se_CreateNodeCommand = exports.se_CreateNetworkCommand = exports.se_CreateMemberCommand = exports.se_CreateAccessorCommand = void 0;
|
|
4
|
-
exports.de_VoteOnProposalCommand = exports.de_UpdateNodeCommand = exports.de_UpdateMemberCommand = exports.de_UntagResourceCommand = void 0;
|
|
5
|
-
const core_1 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const ManagedBlockchainServiceException_1 = require("../models/ManagedBlockchainServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CreateAccessorCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/accessors");
|
|
16
|
-
let body;
|
|
17
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
AccessorType: [],
|
|
19
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
20
|
-
NetworkType: [],
|
|
21
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
-
}));
|
|
23
|
-
b.m("POST").h(headers).b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
exports.se_CreateAccessorCommand = se_CreateAccessorCommand;
|
|
27
|
-
const se_CreateMemberCommand = async (input, context) => {
|
|
28
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
29
|
-
const headers = {
|
|
30
|
-
"content-type": "application/json",
|
|
31
|
-
};
|
|
32
|
-
b.bp("/networks/{NetworkId}/members");
|
|
33
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
37
|
-
InvitationId: [],
|
|
38
|
-
MemberConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
39
|
-
}));
|
|
40
|
-
b.m("POST").h(headers).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
exports.se_CreateMemberCommand = se_CreateMemberCommand;
|
|
44
|
-
const se_CreateNetworkCommand = async (input, context) => {
|
|
45
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
46
|
-
const headers = {
|
|
47
|
-
"content-type": "application/json",
|
|
48
|
-
};
|
|
49
|
-
b.bp("/networks");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
52
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
53
|
-
Description: [],
|
|
54
|
-
Framework: [],
|
|
55
|
-
FrameworkConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
56
|
-
FrameworkVersion: [],
|
|
57
|
-
MemberConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
58
|
-
Name: [],
|
|
59
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
60
|
-
VotingPolicy: (_) => (0, smithy_client_1._json)(_),
|
|
61
|
-
}));
|
|
62
|
-
b.m("POST").h(headers).b(body);
|
|
63
|
-
return b.build();
|
|
64
|
-
};
|
|
65
|
-
exports.se_CreateNetworkCommand = se_CreateNetworkCommand;
|
|
66
|
-
const se_CreateNodeCommand = async (input, context) => {
|
|
67
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
68
|
-
const headers = {
|
|
69
|
-
"content-type": "application/json",
|
|
70
|
-
};
|
|
71
|
-
b.bp("/networks/{NetworkId}/nodes");
|
|
72
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
75
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
76
|
-
MemberId: [],
|
|
77
|
-
NodeConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
78
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
79
|
-
}));
|
|
80
|
-
b.m("POST").h(headers).b(body);
|
|
81
|
-
return b.build();
|
|
82
|
-
};
|
|
83
|
-
exports.se_CreateNodeCommand = se_CreateNodeCommand;
|
|
84
|
-
const se_CreateProposalCommand = async (input, context) => {
|
|
85
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
86
|
-
const headers = {
|
|
87
|
-
"content-type": "application/json",
|
|
88
|
-
};
|
|
89
|
-
b.bp("/networks/{NetworkId}/proposals");
|
|
90
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
91
|
-
let body;
|
|
92
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
93
|
-
Actions: (_) => (0, smithy_client_1._json)(_),
|
|
94
|
-
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
95
|
-
Description: [],
|
|
96
|
-
MemberId: [],
|
|
97
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
98
|
-
}));
|
|
99
|
-
b.m("POST").h(headers).b(body);
|
|
100
|
-
return b.build();
|
|
101
|
-
};
|
|
102
|
-
exports.se_CreateProposalCommand = se_CreateProposalCommand;
|
|
103
|
-
const se_DeleteAccessorCommand = async (input, context) => {
|
|
104
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
105
|
-
const headers = {};
|
|
106
|
-
b.bp("/accessors/{AccessorId}");
|
|
107
|
-
b.p("AccessorId", () => input.AccessorId, "{AccessorId}", false);
|
|
108
|
-
let body;
|
|
109
|
-
b.m("DELETE").h(headers).b(body);
|
|
110
|
-
return b.build();
|
|
111
|
-
};
|
|
112
|
-
exports.se_DeleteAccessorCommand = se_DeleteAccessorCommand;
|
|
113
|
-
const se_DeleteMemberCommand = async (input, context) => {
|
|
114
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
115
|
-
const headers = {};
|
|
116
|
-
b.bp("/networks/{NetworkId}/members/{MemberId}");
|
|
117
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
118
|
-
b.p("MemberId", () => input.MemberId, "{MemberId}", false);
|
|
119
|
-
let body;
|
|
120
|
-
b.m("DELETE").h(headers).b(body);
|
|
121
|
-
return b.build();
|
|
122
|
-
};
|
|
123
|
-
exports.se_DeleteMemberCommand = se_DeleteMemberCommand;
|
|
124
|
-
const se_DeleteNodeCommand = async (input, context) => {
|
|
125
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
126
|
-
const headers = {};
|
|
127
|
-
b.bp("/networks/{NetworkId}/nodes/{NodeId}");
|
|
128
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
129
|
-
b.p("NodeId", () => input.NodeId, "{NodeId}", false);
|
|
130
|
-
const query = (0, smithy_client_1.map)({
|
|
131
|
-
[_mI]: [, input[_MI]],
|
|
132
|
-
});
|
|
133
|
-
let body;
|
|
134
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
135
|
-
return b.build();
|
|
136
|
-
};
|
|
137
|
-
exports.se_DeleteNodeCommand = se_DeleteNodeCommand;
|
|
138
|
-
const se_GetAccessorCommand = async (input, context) => {
|
|
139
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
140
|
-
const headers = {};
|
|
141
|
-
b.bp("/accessors/{AccessorId}");
|
|
142
|
-
b.p("AccessorId", () => input.AccessorId, "{AccessorId}", false);
|
|
143
|
-
let body;
|
|
144
|
-
b.m("GET").h(headers).b(body);
|
|
145
|
-
return b.build();
|
|
146
|
-
};
|
|
147
|
-
exports.se_GetAccessorCommand = se_GetAccessorCommand;
|
|
148
|
-
const se_GetMemberCommand = async (input, context) => {
|
|
149
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
150
|
-
const headers = {};
|
|
151
|
-
b.bp("/networks/{NetworkId}/members/{MemberId}");
|
|
152
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
153
|
-
b.p("MemberId", () => input.MemberId, "{MemberId}", false);
|
|
154
|
-
let body;
|
|
155
|
-
b.m("GET").h(headers).b(body);
|
|
156
|
-
return b.build();
|
|
157
|
-
};
|
|
158
|
-
exports.se_GetMemberCommand = se_GetMemberCommand;
|
|
159
|
-
const se_GetNetworkCommand = async (input, context) => {
|
|
160
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
161
|
-
const headers = {};
|
|
162
|
-
b.bp("/networks/{NetworkId}");
|
|
163
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
164
|
-
let body;
|
|
165
|
-
b.m("GET").h(headers).b(body);
|
|
166
|
-
return b.build();
|
|
167
|
-
};
|
|
168
|
-
exports.se_GetNetworkCommand = se_GetNetworkCommand;
|
|
169
|
-
const se_GetNodeCommand = async (input, context) => {
|
|
170
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
171
|
-
const headers = {};
|
|
172
|
-
b.bp("/networks/{NetworkId}/nodes/{NodeId}");
|
|
173
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
174
|
-
b.p("NodeId", () => input.NodeId, "{NodeId}", false);
|
|
175
|
-
const query = (0, smithy_client_1.map)({
|
|
176
|
-
[_mI]: [, input[_MI]],
|
|
177
|
-
});
|
|
178
|
-
let body;
|
|
179
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
180
|
-
return b.build();
|
|
181
|
-
};
|
|
182
|
-
exports.se_GetNodeCommand = se_GetNodeCommand;
|
|
183
|
-
const se_GetProposalCommand = async (input, context) => {
|
|
184
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
185
|
-
const headers = {};
|
|
186
|
-
b.bp("/networks/{NetworkId}/proposals/{ProposalId}");
|
|
187
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
188
|
-
b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
|
|
189
|
-
let body;
|
|
190
|
-
b.m("GET").h(headers).b(body);
|
|
191
|
-
return b.build();
|
|
192
|
-
};
|
|
193
|
-
exports.se_GetProposalCommand = se_GetProposalCommand;
|
|
194
|
-
const se_ListAccessorsCommand = async (input, context) => {
|
|
195
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
196
|
-
const headers = {};
|
|
197
|
-
b.bp("/accessors");
|
|
198
|
-
const query = (0, smithy_client_1.map)({
|
|
199
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
200
|
-
[_nT]: [, input[_NT]],
|
|
201
|
-
[_nTe]: [, input[_NTe]],
|
|
202
|
-
});
|
|
203
|
-
let body;
|
|
204
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
205
|
-
return b.build();
|
|
206
|
-
};
|
|
207
|
-
exports.se_ListAccessorsCommand = se_ListAccessorsCommand;
|
|
208
|
-
const se_ListInvitationsCommand = async (input, context) => {
|
|
209
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
210
|
-
const headers = {};
|
|
211
|
-
b.bp("/invitations");
|
|
212
|
-
const query = (0, smithy_client_1.map)({
|
|
213
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
214
|
-
[_nT]: [, input[_NT]],
|
|
215
|
-
});
|
|
216
|
-
let body;
|
|
217
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
218
|
-
return b.build();
|
|
219
|
-
};
|
|
220
|
-
exports.se_ListInvitationsCommand = se_ListInvitationsCommand;
|
|
221
|
-
const se_ListMembersCommand = async (input, context) => {
|
|
222
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
223
|
-
const headers = {};
|
|
224
|
-
b.bp("/networks/{NetworkId}/members");
|
|
225
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
226
|
-
const query = (0, smithy_client_1.map)({
|
|
227
|
-
[_n]: [, input[_N]],
|
|
228
|
-
[_s]: [, input[_S]],
|
|
229
|
-
[_iO]: [() => input.IsOwned !== void 0, () => input[_IO].toString()],
|
|
230
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
231
|
-
[_nT]: [, input[_NT]],
|
|
232
|
-
});
|
|
233
|
-
let body;
|
|
234
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
235
|
-
return b.build();
|
|
236
|
-
};
|
|
237
|
-
exports.se_ListMembersCommand = se_ListMembersCommand;
|
|
238
|
-
const se_ListNetworksCommand = async (input, context) => {
|
|
239
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
240
|
-
const headers = {};
|
|
241
|
-
b.bp("/networks");
|
|
242
|
-
const query = (0, smithy_client_1.map)({
|
|
243
|
-
[_n]: [, input[_N]],
|
|
244
|
-
[_f]: [, input[_F]],
|
|
245
|
-
[_s]: [, input[_S]],
|
|
246
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
247
|
-
[_nT]: [, input[_NT]],
|
|
248
|
-
});
|
|
249
|
-
let body;
|
|
250
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
251
|
-
return b.build();
|
|
252
|
-
};
|
|
253
|
-
exports.se_ListNetworksCommand = se_ListNetworksCommand;
|
|
254
|
-
const se_ListNodesCommand = async (input, context) => {
|
|
255
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
256
|
-
const headers = {};
|
|
257
|
-
b.bp("/networks/{NetworkId}/nodes");
|
|
258
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
259
|
-
const query = (0, smithy_client_1.map)({
|
|
260
|
-
[_mI]: [, input[_MI]],
|
|
261
|
-
[_s]: [, input[_S]],
|
|
262
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
263
|
-
[_nT]: [, input[_NT]],
|
|
264
|
-
});
|
|
265
|
-
let body;
|
|
266
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
267
|
-
return b.build();
|
|
268
|
-
};
|
|
269
|
-
exports.se_ListNodesCommand = se_ListNodesCommand;
|
|
270
|
-
const se_ListProposalsCommand = async (input, context) => {
|
|
271
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
272
|
-
const headers = {};
|
|
273
|
-
b.bp("/networks/{NetworkId}/proposals");
|
|
274
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
275
|
-
const query = (0, smithy_client_1.map)({
|
|
276
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
277
|
-
[_nT]: [, input[_NT]],
|
|
278
|
-
});
|
|
279
|
-
let body;
|
|
280
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
281
|
-
return b.build();
|
|
282
|
-
};
|
|
283
|
-
exports.se_ListProposalsCommand = se_ListProposalsCommand;
|
|
284
|
-
const se_ListProposalVotesCommand = async (input, context) => {
|
|
285
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
286
|
-
const headers = {};
|
|
287
|
-
b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes");
|
|
288
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
289
|
-
b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
|
|
290
|
-
const query = (0, smithy_client_1.map)({
|
|
291
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
292
|
-
[_nT]: [, input[_NT]],
|
|
293
|
-
});
|
|
294
|
-
let body;
|
|
295
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
296
|
-
return b.build();
|
|
297
|
-
};
|
|
298
|
-
exports.se_ListProposalVotesCommand = se_ListProposalVotesCommand;
|
|
299
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
300
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
301
|
-
const headers = {};
|
|
302
|
-
b.bp("/tags/{ResourceArn}");
|
|
303
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
304
|
-
let body;
|
|
305
|
-
b.m("GET").h(headers).b(body);
|
|
306
|
-
return b.build();
|
|
307
|
-
};
|
|
308
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
309
|
-
const se_RejectInvitationCommand = async (input, context) => {
|
|
310
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
311
|
-
const headers = {};
|
|
312
|
-
b.bp("/invitations/{InvitationId}");
|
|
313
|
-
b.p("InvitationId", () => input.InvitationId, "{InvitationId}", false);
|
|
314
|
-
let body;
|
|
315
|
-
b.m("DELETE").h(headers).b(body);
|
|
316
|
-
return b.build();
|
|
317
|
-
};
|
|
318
|
-
exports.se_RejectInvitationCommand = se_RejectInvitationCommand;
|
|
319
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
320
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
321
|
-
const headers = {
|
|
322
|
-
"content-type": "application/json",
|
|
323
|
-
};
|
|
324
|
-
b.bp("/tags/{ResourceArn}");
|
|
325
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
326
|
-
let body;
|
|
327
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
328
|
-
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
329
|
-
}));
|
|
330
|
-
b.m("POST").h(headers).b(body);
|
|
331
|
-
return b.build();
|
|
332
|
-
};
|
|
333
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
334
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
335
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
336
|
-
const headers = {};
|
|
337
|
-
b.bp("/tags/{ResourceArn}");
|
|
338
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
339
|
-
const query = (0, smithy_client_1.map)({
|
|
340
|
-
[_tK]: [
|
|
341
|
-
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
342
|
-
() => (input[_TK] || []).map((_entry) => _entry),
|
|
343
|
-
],
|
|
344
|
-
});
|
|
345
|
-
let body;
|
|
346
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
347
|
-
return b.build();
|
|
348
|
-
};
|
|
349
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
350
|
-
const se_UpdateMemberCommand = async (input, context) => {
|
|
351
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
352
|
-
const headers = {
|
|
353
|
-
"content-type": "application/json",
|
|
354
|
-
};
|
|
355
|
-
b.bp("/networks/{NetworkId}/members/{MemberId}");
|
|
356
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
357
|
-
b.p("MemberId", () => input.MemberId, "{MemberId}", false);
|
|
358
|
-
let body;
|
|
359
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
360
|
-
LogPublishingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
361
|
-
}));
|
|
362
|
-
b.m("PATCH").h(headers).b(body);
|
|
363
|
-
return b.build();
|
|
364
|
-
};
|
|
365
|
-
exports.se_UpdateMemberCommand = se_UpdateMemberCommand;
|
|
366
|
-
const se_UpdateNodeCommand = async (input, context) => {
|
|
367
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
368
|
-
const headers = {
|
|
369
|
-
"content-type": "application/json",
|
|
370
|
-
};
|
|
371
|
-
b.bp("/networks/{NetworkId}/nodes/{NodeId}");
|
|
372
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
373
|
-
b.p("NodeId", () => input.NodeId, "{NodeId}", false);
|
|
374
|
-
let body;
|
|
375
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
376
|
-
LogPublishingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
377
|
-
MemberId: [],
|
|
378
|
-
}));
|
|
379
|
-
b.m("PATCH").h(headers).b(body);
|
|
380
|
-
return b.build();
|
|
381
|
-
};
|
|
382
|
-
exports.se_UpdateNodeCommand = se_UpdateNodeCommand;
|
|
383
|
-
const se_VoteOnProposalCommand = async (input, context) => {
|
|
384
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
385
|
-
const headers = {
|
|
386
|
-
"content-type": "application/json",
|
|
387
|
-
};
|
|
388
|
-
b.bp("/networks/{NetworkId}/proposals/{ProposalId}/votes");
|
|
389
|
-
b.p("NetworkId", () => input.NetworkId, "{NetworkId}", false);
|
|
390
|
-
b.p("ProposalId", () => input.ProposalId, "{ProposalId}", false);
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
393
|
-
Vote: [],
|
|
394
|
-
VoterMemberId: [],
|
|
395
|
-
}));
|
|
396
|
-
b.m("POST").h(headers).b(body);
|
|
397
|
-
return b.build();
|
|
398
|
-
};
|
|
399
|
-
exports.se_VoteOnProposalCommand = se_VoteOnProposalCommand;
|
|
400
|
-
const de_CreateAccessorCommand = async (output, context) => {
|
|
401
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
402
|
-
return de_CreateAccessorCommandError(output, context);
|
|
403
|
-
}
|
|
404
|
-
const contents = (0, smithy_client_1.map)({
|
|
405
|
-
$metadata: deserializeMetadata(output),
|
|
406
|
-
});
|
|
407
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
408
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
409
|
-
AccessorId: smithy_client_1.expectString,
|
|
410
|
-
BillingToken: smithy_client_1.expectString,
|
|
411
|
-
NetworkType: smithy_client_1.expectString,
|
|
412
|
-
});
|
|
413
|
-
Object.assign(contents, doc);
|
|
414
|
-
return contents;
|
|
415
|
-
};
|
|
416
|
-
exports.de_CreateAccessorCommand = de_CreateAccessorCommand;
|
|
417
|
-
const de_CreateAccessorCommandError = async (output, context) => {
|
|
418
|
-
const parsedOutput = {
|
|
419
|
-
...output,
|
|
420
|
-
body: await parseErrorBody(output.body, context),
|
|
421
|
-
};
|
|
422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
423
|
-
switch (errorCode) {
|
|
424
|
-
case "AccessDeniedException":
|
|
425
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
426
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
427
|
-
case "InternalServiceErrorException":
|
|
428
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
429
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
430
|
-
case "InvalidRequestException":
|
|
431
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
432
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
433
|
-
case "ResourceAlreadyExistsException":
|
|
434
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
435
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
436
|
-
case "ResourceLimitExceededException":
|
|
437
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
438
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ThrottlingException":
|
|
440
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
441
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
442
|
-
case "TooManyTagsException":
|
|
443
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
444
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
445
|
-
default:
|
|
446
|
-
const parsedBody = parsedOutput.body;
|
|
447
|
-
return throwDefaultError({
|
|
448
|
-
output,
|
|
449
|
-
parsedBody,
|
|
450
|
-
errorCode,
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
const de_CreateMemberCommand = async (output, context) => {
|
|
455
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
456
|
-
return de_CreateMemberCommandError(output, context);
|
|
457
|
-
}
|
|
458
|
-
const contents = (0, smithy_client_1.map)({
|
|
459
|
-
$metadata: deserializeMetadata(output),
|
|
460
|
-
});
|
|
461
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
462
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
463
|
-
MemberId: smithy_client_1.expectString,
|
|
464
|
-
});
|
|
465
|
-
Object.assign(contents, doc);
|
|
466
|
-
return contents;
|
|
467
|
-
};
|
|
468
|
-
exports.de_CreateMemberCommand = de_CreateMemberCommand;
|
|
469
|
-
const de_CreateMemberCommandError = async (output, context) => {
|
|
470
|
-
const parsedOutput = {
|
|
471
|
-
...output,
|
|
472
|
-
body: await parseErrorBody(output.body, context),
|
|
473
|
-
};
|
|
474
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
475
|
-
switch (errorCode) {
|
|
476
|
-
case "AccessDeniedException":
|
|
477
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
478
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
479
|
-
case "InternalServiceErrorException":
|
|
480
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
481
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
482
|
-
case "InvalidRequestException":
|
|
483
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
484
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
485
|
-
case "ResourceAlreadyExistsException":
|
|
486
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
487
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
488
|
-
case "ResourceLimitExceededException":
|
|
489
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
490
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
491
|
-
case "ResourceNotFoundException":
|
|
492
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
493
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
494
|
-
case "ResourceNotReadyException":
|
|
495
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
496
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
497
|
-
case "ThrottlingException":
|
|
498
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
499
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
500
|
-
case "TooManyTagsException":
|
|
501
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
502
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
503
|
-
default:
|
|
504
|
-
const parsedBody = parsedOutput.body;
|
|
505
|
-
return throwDefaultError({
|
|
506
|
-
output,
|
|
507
|
-
parsedBody,
|
|
508
|
-
errorCode,
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
const de_CreateNetworkCommand = async (output, context) => {
|
|
513
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
514
|
-
return de_CreateNetworkCommandError(output, context);
|
|
515
|
-
}
|
|
516
|
-
const contents = (0, smithy_client_1.map)({
|
|
517
|
-
$metadata: deserializeMetadata(output),
|
|
518
|
-
});
|
|
519
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
520
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
521
|
-
MemberId: smithy_client_1.expectString,
|
|
522
|
-
NetworkId: smithy_client_1.expectString,
|
|
523
|
-
});
|
|
524
|
-
Object.assign(contents, doc);
|
|
525
|
-
return contents;
|
|
526
|
-
};
|
|
527
|
-
exports.de_CreateNetworkCommand = de_CreateNetworkCommand;
|
|
528
|
-
const de_CreateNetworkCommandError = async (output, context) => {
|
|
529
|
-
const parsedOutput = {
|
|
530
|
-
...output,
|
|
531
|
-
body: await parseErrorBody(output.body, context),
|
|
532
|
-
};
|
|
533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
534
|
-
switch (errorCode) {
|
|
535
|
-
case "AccessDeniedException":
|
|
536
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
537
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
538
|
-
case "InternalServiceErrorException":
|
|
539
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
540
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
541
|
-
case "InvalidRequestException":
|
|
542
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
543
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
544
|
-
case "ResourceAlreadyExistsException":
|
|
545
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
546
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
547
|
-
case "ResourceLimitExceededException":
|
|
548
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
549
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
550
|
-
case "ThrottlingException":
|
|
551
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
552
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
553
|
-
case "TooManyTagsException":
|
|
554
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
555
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
556
|
-
default:
|
|
557
|
-
const parsedBody = parsedOutput.body;
|
|
558
|
-
return throwDefaultError({
|
|
559
|
-
output,
|
|
560
|
-
parsedBody,
|
|
561
|
-
errorCode,
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
|
-
const de_CreateNodeCommand = async (output, context) => {
|
|
566
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
|
-
return de_CreateNodeCommandError(output, context);
|
|
568
|
-
}
|
|
569
|
-
const contents = (0, smithy_client_1.map)({
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
});
|
|
572
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
573
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
574
|
-
NodeId: smithy_client_1.expectString,
|
|
575
|
-
});
|
|
576
|
-
Object.assign(contents, doc);
|
|
577
|
-
return contents;
|
|
578
|
-
};
|
|
579
|
-
exports.de_CreateNodeCommand = de_CreateNodeCommand;
|
|
580
|
-
const de_CreateNodeCommandError = async (output, context) => {
|
|
581
|
-
const parsedOutput = {
|
|
582
|
-
...output,
|
|
583
|
-
body: await parseErrorBody(output.body, context),
|
|
584
|
-
};
|
|
585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
|
-
switch (errorCode) {
|
|
587
|
-
case "AccessDeniedException":
|
|
588
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
589
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
590
|
-
case "InternalServiceErrorException":
|
|
591
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
592
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
593
|
-
case "InvalidRequestException":
|
|
594
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
595
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
596
|
-
case "ResourceAlreadyExistsException":
|
|
597
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
|
|
598
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
599
|
-
case "ResourceLimitExceededException":
|
|
600
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
601
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
602
|
-
case "ResourceNotFoundException":
|
|
603
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
604
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
605
|
-
case "ResourceNotReadyException":
|
|
606
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
607
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
608
|
-
case "ThrottlingException":
|
|
609
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
610
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
611
|
-
case "TooManyTagsException":
|
|
612
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
613
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
614
|
-
default:
|
|
615
|
-
const parsedBody = parsedOutput.body;
|
|
616
|
-
return throwDefaultError({
|
|
617
|
-
output,
|
|
618
|
-
parsedBody,
|
|
619
|
-
errorCode,
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
const de_CreateProposalCommand = async (output, context) => {
|
|
624
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
625
|
-
return de_CreateProposalCommandError(output, context);
|
|
626
|
-
}
|
|
627
|
-
const contents = (0, smithy_client_1.map)({
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
});
|
|
630
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
631
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
632
|
-
ProposalId: smithy_client_1.expectString,
|
|
633
|
-
});
|
|
634
|
-
Object.assign(contents, doc);
|
|
635
|
-
return contents;
|
|
636
|
-
};
|
|
637
|
-
exports.de_CreateProposalCommand = de_CreateProposalCommand;
|
|
638
|
-
const de_CreateProposalCommandError = async (output, context) => {
|
|
639
|
-
const parsedOutput = {
|
|
640
|
-
...output,
|
|
641
|
-
body: await parseErrorBody(output.body, context),
|
|
642
|
-
};
|
|
643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
|
-
switch (errorCode) {
|
|
645
|
-
case "AccessDeniedException":
|
|
646
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
647
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
648
|
-
case "InternalServiceErrorException":
|
|
649
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
650
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
651
|
-
case "InvalidRequestException":
|
|
652
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
653
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
654
|
-
case "ResourceNotFoundException":
|
|
655
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
656
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
657
|
-
case "ResourceNotReadyException":
|
|
658
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
659
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
660
|
-
case "ThrottlingException":
|
|
661
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
662
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
663
|
-
case "TooManyTagsException":
|
|
664
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
665
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
666
|
-
default:
|
|
667
|
-
const parsedBody = parsedOutput.body;
|
|
668
|
-
return throwDefaultError({
|
|
669
|
-
output,
|
|
670
|
-
parsedBody,
|
|
671
|
-
errorCode,
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
|
-
const de_DeleteAccessorCommand = async (output, context) => {
|
|
676
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
677
|
-
return de_DeleteAccessorCommandError(output, context);
|
|
678
|
-
}
|
|
679
|
-
const contents = (0, smithy_client_1.map)({
|
|
680
|
-
$metadata: deserializeMetadata(output),
|
|
681
|
-
});
|
|
682
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
683
|
-
return contents;
|
|
684
|
-
};
|
|
685
|
-
exports.de_DeleteAccessorCommand = de_DeleteAccessorCommand;
|
|
686
|
-
const de_DeleteAccessorCommandError = async (output, context) => {
|
|
687
|
-
const parsedOutput = {
|
|
688
|
-
...output,
|
|
689
|
-
body: await parseErrorBody(output.body, context),
|
|
690
|
-
};
|
|
691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
-
switch (errorCode) {
|
|
693
|
-
case "AccessDeniedException":
|
|
694
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
695
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
696
|
-
case "InternalServiceErrorException":
|
|
697
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
698
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
699
|
-
case "InvalidRequestException":
|
|
700
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
701
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
702
|
-
case "ResourceNotFoundException":
|
|
703
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
704
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
705
|
-
case "ThrottlingException":
|
|
706
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
707
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
708
|
-
default:
|
|
709
|
-
const parsedBody = parsedOutput.body;
|
|
710
|
-
return throwDefaultError({
|
|
711
|
-
output,
|
|
712
|
-
parsedBody,
|
|
713
|
-
errorCode,
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
const de_DeleteMemberCommand = async (output, context) => {
|
|
718
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
719
|
-
return de_DeleteMemberCommandError(output, context);
|
|
720
|
-
}
|
|
721
|
-
const contents = (0, smithy_client_1.map)({
|
|
722
|
-
$metadata: deserializeMetadata(output),
|
|
723
|
-
});
|
|
724
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
725
|
-
return contents;
|
|
726
|
-
};
|
|
727
|
-
exports.de_DeleteMemberCommand = de_DeleteMemberCommand;
|
|
728
|
-
const de_DeleteMemberCommandError = async (output, context) => {
|
|
729
|
-
const parsedOutput = {
|
|
730
|
-
...output,
|
|
731
|
-
body: await parseErrorBody(output.body, context),
|
|
732
|
-
};
|
|
733
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
734
|
-
switch (errorCode) {
|
|
735
|
-
case "AccessDeniedException":
|
|
736
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
737
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
738
|
-
case "InternalServiceErrorException":
|
|
739
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
740
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
741
|
-
case "InvalidRequestException":
|
|
742
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
743
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
744
|
-
case "ResourceNotFoundException":
|
|
745
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
746
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
747
|
-
case "ResourceNotReadyException":
|
|
748
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
749
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
750
|
-
case "ThrottlingException":
|
|
751
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
752
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
753
|
-
default:
|
|
754
|
-
const parsedBody = parsedOutput.body;
|
|
755
|
-
return throwDefaultError({
|
|
756
|
-
output,
|
|
757
|
-
parsedBody,
|
|
758
|
-
errorCode,
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
};
|
|
762
|
-
const de_DeleteNodeCommand = async (output, context) => {
|
|
763
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
|
-
return de_DeleteNodeCommandError(output, context);
|
|
765
|
-
}
|
|
766
|
-
const contents = (0, smithy_client_1.map)({
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
});
|
|
769
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
770
|
-
return contents;
|
|
771
|
-
};
|
|
772
|
-
exports.de_DeleteNodeCommand = de_DeleteNodeCommand;
|
|
773
|
-
const de_DeleteNodeCommandError = async (output, context) => {
|
|
774
|
-
const parsedOutput = {
|
|
775
|
-
...output,
|
|
776
|
-
body: await parseErrorBody(output.body, context),
|
|
777
|
-
};
|
|
778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
779
|
-
switch (errorCode) {
|
|
780
|
-
case "AccessDeniedException":
|
|
781
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
782
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
783
|
-
case "InternalServiceErrorException":
|
|
784
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
785
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
786
|
-
case "InvalidRequestException":
|
|
787
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
788
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
789
|
-
case "ResourceNotFoundException":
|
|
790
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
791
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ResourceNotReadyException":
|
|
793
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
794
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ThrottlingException":
|
|
796
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
797
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
798
|
-
default:
|
|
799
|
-
const parsedBody = parsedOutput.body;
|
|
800
|
-
return throwDefaultError({
|
|
801
|
-
output,
|
|
802
|
-
parsedBody,
|
|
803
|
-
errorCode,
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
const de_GetAccessorCommand = async (output, context) => {
|
|
808
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
809
|
-
return de_GetAccessorCommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const contents = (0, smithy_client_1.map)({
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
});
|
|
814
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
815
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
816
|
-
Accessor: (_) => de_Accessor(_, context),
|
|
817
|
-
});
|
|
818
|
-
Object.assign(contents, doc);
|
|
819
|
-
return contents;
|
|
820
|
-
};
|
|
821
|
-
exports.de_GetAccessorCommand = de_GetAccessorCommand;
|
|
822
|
-
const de_GetAccessorCommandError = async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context),
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "AccessDeniedException":
|
|
830
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
831
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
832
|
-
case "InternalServiceErrorException":
|
|
833
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
834
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
835
|
-
case "InvalidRequestException":
|
|
836
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
837
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
838
|
-
case "ResourceNotFoundException":
|
|
839
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
840
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ThrottlingException":
|
|
842
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
843
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
844
|
-
default:
|
|
845
|
-
const parsedBody = parsedOutput.body;
|
|
846
|
-
return throwDefaultError({
|
|
847
|
-
output,
|
|
848
|
-
parsedBody,
|
|
849
|
-
errorCode,
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
|
-
const de_GetMemberCommand = async (output, context) => {
|
|
854
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return de_GetMemberCommandError(output, context);
|
|
856
|
-
}
|
|
857
|
-
const contents = (0, smithy_client_1.map)({
|
|
858
|
-
$metadata: deserializeMetadata(output),
|
|
859
|
-
});
|
|
860
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
861
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
862
|
-
Member: (_) => de_Member(_, context),
|
|
863
|
-
});
|
|
864
|
-
Object.assign(contents, doc);
|
|
865
|
-
return contents;
|
|
866
|
-
};
|
|
867
|
-
exports.de_GetMemberCommand = de_GetMemberCommand;
|
|
868
|
-
const de_GetMemberCommandError = async (output, context) => {
|
|
869
|
-
const parsedOutput = {
|
|
870
|
-
...output,
|
|
871
|
-
body: await parseErrorBody(output.body, context),
|
|
872
|
-
};
|
|
873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
-
switch (errorCode) {
|
|
875
|
-
case "AccessDeniedException":
|
|
876
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
877
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
878
|
-
case "InternalServiceErrorException":
|
|
879
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
880
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
881
|
-
case "InvalidRequestException":
|
|
882
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
883
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
884
|
-
case "ResourceNotFoundException":
|
|
885
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ThrottlingException":
|
|
888
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
889
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
890
|
-
default:
|
|
891
|
-
const parsedBody = parsedOutput.body;
|
|
892
|
-
return throwDefaultError({
|
|
893
|
-
output,
|
|
894
|
-
parsedBody,
|
|
895
|
-
errorCode,
|
|
896
|
-
});
|
|
897
|
-
}
|
|
898
|
-
};
|
|
899
|
-
const de_GetNetworkCommand = async (output, context) => {
|
|
900
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
901
|
-
return de_GetNetworkCommandError(output, context);
|
|
902
|
-
}
|
|
903
|
-
const contents = (0, smithy_client_1.map)({
|
|
904
|
-
$metadata: deserializeMetadata(output),
|
|
905
|
-
});
|
|
906
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
907
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
908
|
-
Network: (_) => de_Network(_, context),
|
|
909
|
-
});
|
|
910
|
-
Object.assign(contents, doc);
|
|
911
|
-
return contents;
|
|
912
|
-
};
|
|
913
|
-
exports.de_GetNetworkCommand = de_GetNetworkCommand;
|
|
914
|
-
const de_GetNetworkCommandError = async (output, context) => {
|
|
915
|
-
const parsedOutput = {
|
|
916
|
-
...output,
|
|
917
|
-
body: await parseErrorBody(output.body, context),
|
|
918
|
-
};
|
|
919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
|
-
switch (errorCode) {
|
|
921
|
-
case "AccessDeniedException":
|
|
922
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
923
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
924
|
-
case "InternalServiceErrorException":
|
|
925
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
926
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
927
|
-
case "InvalidRequestException":
|
|
928
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
929
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ResourceNotFoundException":
|
|
931
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
932
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
933
|
-
case "ThrottlingException":
|
|
934
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
935
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
936
|
-
default:
|
|
937
|
-
const parsedBody = parsedOutput.body;
|
|
938
|
-
return throwDefaultError({
|
|
939
|
-
output,
|
|
940
|
-
parsedBody,
|
|
941
|
-
errorCode,
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
};
|
|
945
|
-
const de_GetNodeCommand = async (output, context) => {
|
|
946
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return de_GetNodeCommandError(output, context);
|
|
948
|
-
}
|
|
949
|
-
const contents = (0, smithy_client_1.map)({
|
|
950
|
-
$metadata: deserializeMetadata(output),
|
|
951
|
-
});
|
|
952
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
953
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
954
|
-
Node: (_) => de_Node(_, context),
|
|
955
|
-
});
|
|
956
|
-
Object.assign(contents, doc);
|
|
957
|
-
return contents;
|
|
958
|
-
};
|
|
959
|
-
exports.de_GetNodeCommand = de_GetNodeCommand;
|
|
960
|
-
const de_GetNodeCommandError = async (output, context) => {
|
|
961
|
-
const parsedOutput = {
|
|
962
|
-
...output,
|
|
963
|
-
body: await parseErrorBody(output.body, context),
|
|
964
|
-
};
|
|
965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
966
|
-
switch (errorCode) {
|
|
967
|
-
case "AccessDeniedException":
|
|
968
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
969
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InternalServiceErrorException":
|
|
971
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
972
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
973
|
-
case "InvalidRequestException":
|
|
974
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
975
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ResourceNotFoundException":
|
|
977
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
978
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ThrottlingException":
|
|
980
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
981
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
982
|
-
default:
|
|
983
|
-
const parsedBody = parsedOutput.body;
|
|
984
|
-
return throwDefaultError({
|
|
985
|
-
output,
|
|
986
|
-
parsedBody,
|
|
987
|
-
errorCode,
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
|
-
};
|
|
991
|
-
const de_GetProposalCommand = async (output, context) => {
|
|
992
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
|
-
return de_GetProposalCommandError(output, context);
|
|
994
|
-
}
|
|
995
|
-
const contents = (0, smithy_client_1.map)({
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
});
|
|
998
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
999
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1000
|
-
Proposal: (_) => de_Proposal(_, context),
|
|
1001
|
-
});
|
|
1002
|
-
Object.assign(contents, doc);
|
|
1003
|
-
return contents;
|
|
1004
|
-
};
|
|
1005
|
-
exports.de_GetProposalCommand = de_GetProposalCommand;
|
|
1006
|
-
const de_GetProposalCommandError = async (output, context) => {
|
|
1007
|
-
const parsedOutput = {
|
|
1008
|
-
...output,
|
|
1009
|
-
body: await parseErrorBody(output.body, context),
|
|
1010
|
-
};
|
|
1011
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
|
-
switch (errorCode) {
|
|
1013
|
-
case "AccessDeniedException":
|
|
1014
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1015
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "InternalServiceErrorException":
|
|
1017
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1018
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "InvalidRequestException":
|
|
1020
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1021
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ResourceNotFoundException":
|
|
1023
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1024
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "ThrottlingException":
|
|
1026
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1027
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1028
|
-
default:
|
|
1029
|
-
const parsedBody = parsedOutput.body;
|
|
1030
|
-
return throwDefaultError({
|
|
1031
|
-
output,
|
|
1032
|
-
parsedBody,
|
|
1033
|
-
errorCode,
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
const de_ListAccessorsCommand = async (output, context) => {
|
|
1038
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return de_ListAccessorsCommandError(output, context);
|
|
1040
|
-
}
|
|
1041
|
-
const contents = (0, smithy_client_1.map)({
|
|
1042
|
-
$metadata: deserializeMetadata(output),
|
|
1043
|
-
});
|
|
1044
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1045
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1046
|
-
Accessors: (_) => de_AccessorSummaryList(_, context),
|
|
1047
|
-
NextToken: smithy_client_1.expectString,
|
|
1048
|
-
});
|
|
1049
|
-
Object.assign(contents, doc);
|
|
1050
|
-
return contents;
|
|
1051
|
-
};
|
|
1052
|
-
exports.de_ListAccessorsCommand = de_ListAccessorsCommand;
|
|
1053
|
-
const de_ListAccessorsCommandError = async (output, context) => {
|
|
1054
|
-
const parsedOutput = {
|
|
1055
|
-
...output,
|
|
1056
|
-
body: await parseErrorBody(output.body, context),
|
|
1057
|
-
};
|
|
1058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
|
-
switch (errorCode) {
|
|
1060
|
-
case "AccessDeniedException":
|
|
1061
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1062
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "InternalServiceErrorException":
|
|
1064
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1065
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "InvalidRequestException":
|
|
1067
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1068
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "ThrottlingException":
|
|
1070
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1071
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1072
|
-
default:
|
|
1073
|
-
const parsedBody = parsedOutput.body;
|
|
1074
|
-
return throwDefaultError({
|
|
1075
|
-
output,
|
|
1076
|
-
parsedBody,
|
|
1077
|
-
errorCode,
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
};
|
|
1081
|
-
const de_ListInvitationsCommand = async (output, context) => {
|
|
1082
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1083
|
-
return de_ListInvitationsCommandError(output, context);
|
|
1084
|
-
}
|
|
1085
|
-
const contents = (0, smithy_client_1.map)({
|
|
1086
|
-
$metadata: deserializeMetadata(output),
|
|
1087
|
-
});
|
|
1088
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1089
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1090
|
-
Invitations: (_) => de_InvitationList(_, context),
|
|
1091
|
-
NextToken: smithy_client_1.expectString,
|
|
1092
|
-
});
|
|
1093
|
-
Object.assign(contents, doc);
|
|
1094
|
-
return contents;
|
|
1095
|
-
};
|
|
1096
|
-
exports.de_ListInvitationsCommand = de_ListInvitationsCommand;
|
|
1097
|
-
const de_ListInvitationsCommandError = async (output, context) => {
|
|
1098
|
-
const parsedOutput = {
|
|
1099
|
-
...output,
|
|
1100
|
-
body: await parseErrorBody(output.body, context),
|
|
1101
|
-
};
|
|
1102
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1103
|
-
switch (errorCode) {
|
|
1104
|
-
case "AccessDeniedException":
|
|
1105
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1106
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "InternalServiceErrorException":
|
|
1108
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1109
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "InvalidRequestException":
|
|
1111
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1112
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1113
|
-
case "ResourceLimitExceededException":
|
|
1114
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
|
|
1115
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1116
|
-
case "ResourceNotFoundException":
|
|
1117
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1118
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1119
|
-
case "ThrottlingException":
|
|
1120
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1121
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1122
|
-
default:
|
|
1123
|
-
const parsedBody = parsedOutput.body;
|
|
1124
|
-
return throwDefaultError({
|
|
1125
|
-
output,
|
|
1126
|
-
parsedBody,
|
|
1127
|
-
errorCode,
|
|
1128
|
-
});
|
|
1129
|
-
}
|
|
1130
|
-
};
|
|
1131
|
-
const de_ListMembersCommand = async (output, context) => {
|
|
1132
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1133
|
-
return de_ListMembersCommandError(output, context);
|
|
1134
|
-
}
|
|
1135
|
-
const contents = (0, smithy_client_1.map)({
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
});
|
|
1138
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1139
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1140
|
-
Members: (_) => de_MemberSummaryList(_, context),
|
|
1141
|
-
NextToken: smithy_client_1.expectString,
|
|
1142
|
-
});
|
|
1143
|
-
Object.assign(contents, doc);
|
|
1144
|
-
return contents;
|
|
1145
|
-
};
|
|
1146
|
-
exports.de_ListMembersCommand = de_ListMembersCommand;
|
|
1147
|
-
const de_ListMembersCommandError = async (output, context) => {
|
|
1148
|
-
const parsedOutput = {
|
|
1149
|
-
...output,
|
|
1150
|
-
body: await parseErrorBody(output.body, context),
|
|
1151
|
-
};
|
|
1152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1153
|
-
switch (errorCode) {
|
|
1154
|
-
case "AccessDeniedException":
|
|
1155
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1156
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "InternalServiceErrorException":
|
|
1158
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1159
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1160
|
-
case "InvalidRequestException":
|
|
1161
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1162
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1163
|
-
case "ThrottlingException":
|
|
1164
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1165
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1166
|
-
default:
|
|
1167
|
-
const parsedBody = parsedOutput.body;
|
|
1168
|
-
return throwDefaultError({
|
|
1169
|
-
output,
|
|
1170
|
-
parsedBody,
|
|
1171
|
-
errorCode,
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
};
|
|
1175
|
-
const de_ListNetworksCommand = async (output, context) => {
|
|
1176
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1177
|
-
return de_ListNetworksCommandError(output, context);
|
|
1178
|
-
}
|
|
1179
|
-
const contents = (0, smithy_client_1.map)({
|
|
1180
|
-
$metadata: deserializeMetadata(output),
|
|
1181
|
-
});
|
|
1182
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1183
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1184
|
-
Networks: (_) => de_NetworkSummaryList(_, context),
|
|
1185
|
-
NextToken: smithy_client_1.expectString,
|
|
1186
|
-
});
|
|
1187
|
-
Object.assign(contents, doc);
|
|
1188
|
-
return contents;
|
|
1189
|
-
};
|
|
1190
|
-
exports.de_ListNetworksCommand = de_ListNetworksCommand;
|
|
1191
|
-
const de_ListNetworksCommandError = async (output, context) => {
|
|
1192
|
-
const parsedOutput = {
|
|
1193
|
-
...output,
|
|
1194
|
-
body: await parseErrorBody(output.body, context),
|
|
1195
|
-
};
|
|
1196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1197
|
-
switch (errorCode) {
|
|
1198
|
-
case "AccessDeniedException":
|
|
1199
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1200
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "InternalServiceErrorException":
|
|
1202
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1203
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "InvalidRequestException":
|
|
1205
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1206
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "ThrottlingException":
|
|
1208
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1209
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1210
|
-
default:
|
|
1211
|
-
const parsedBody = parsedOutput.body;
|
|
1212
|
-
return throwDefaultError({
|
|
1213
|
-
output,
|
|
1214
|
-
parsedBody,
|
|
1215
|
-
errorCode,
|
|
1216
|
-
});
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
|
-
const de_ListNodesCommand = async (output, context) => {
|
|
1220
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
|
-
return de_ListNodesCommandError(output, context);
|
|
1222
|
-
}
|
|
1223
|
-
const contents = (0, smithy_client_1.map)({
|
|
1224
|
-
$metadata: deserializeMetadata(output),
|
|
1225
|
-
});
|
|
1226
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1227
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1228
|
-
NextToken: smithy_client_1.expectString,
|
|
1229
|
-
Nodes: (_) => de_NodeSummaryList(_, context),
|
|
1230
|
-
});
|
|
1231
|
-
Object.assign(contents, doc);
|
|
1232
|
-
return contents;
|
|
1233
|
-
};
|
|
1234
|
-
exports.de_ListNodesCommand = de_ListNodesCommand;
|
|
1235
|
-
const de_ListNodesCommandError = async (output, context) => {
|
|
1236
|
-
const parsedOutput = {
|
|
1237
|
-
...output,
|
|
1238
|
-
body: await parseErrorBody(output.body, context),
|
|
1239
|
-
};
|
|
1240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
-
switch (errorCode) {
|
|
1242
|
-
case "AccessDeniedException":
|
|
1243
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "InternalServiceErrorException":
|
|
1246
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1247
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "InvalidRequestException":
|
|
1249
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1250
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1251
|
-
case "ThrottlingException":
|
|
1252
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1253
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1254
|
-
default:
|
|
1255
|
-
const parsedBody = parsedOutput.body;
|
|
1256
|
-
return throwDefaultError({
|
|
1257
|
-
output,
|
|
1258
|
-
parsedBody,
|
|
1259
|
-
errorCode,
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
};
|
|
1263
|
-
const de_ListProposalsCommand = async (output, context) => {
|
|
1264
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
-
return de_ListProposalsCommandError(output, context);
|
|
1266
|
-
}
|
|
1267
|
-
const contents = (0, smithy_client_1.map)({
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
});
|
|
1270
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1271
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1272
|
-
NextToken: smithy_client_1.expectString,
|
|
1273
|
-
Proposals: (_) => de_ProposalSummaryList(_, context),
|
|
1274
|
-
});
|
|
1275
|
-
Object.assign(contents, doc);
|
|
1276
|
-
return contents;
|
|
1277
|
-
};
|
|
1278
|
-
exports.de_ListProposalsCommand = de_ListProposalsCommand;
|
|
1279
|
-
const de_ListProposalsCommandError = async (output, context) => {
|
|
1280
|
-
const parsedOutput = {
|
|
1281
|
-
...output,
|
|
1282
|
-
body: await parseErrorBody(output.body, context),
|
|
1283
|
-
};
|
|
1284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
|
-
switch (errorCode) {
|
|
1286
|
-
case "AccessDeniedException":
|
|
1287
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1288
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "InternalServiceErrorException":
|
|
1290
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1291
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "InvalidRequestException":
|
|
1293
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1294
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1295
|
-
case "ResourceNotFoundException":
|
|
1296
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1297
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1298
|
-
case "ThrottlingException":
|
|
1299
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1300
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1301
|
-
default:
|
|
1302
|
-
const parsedBody = parsedOutput.body;
|
|
1303
|
-
return throwDefaultError({
|
|
1304
|
-
output,
|
|
1305
|
-
parsedBody,
|
|
1306
|
-
errorCode,
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
};
|
|
1310
|
-
const de_ListProposalVotesCommand = async (output, context) => {
|
|
1311
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1312
|
-
return de_ListProposalVotesCommandError(output, context);
|
|
1313
|
-
}
|
|
1314
|
-
const contents = (0, smithy_client_1.map)({
|
|
1315
|
-
$metadata: deserializeMetadata(output),
|
|
1316
|
-
});
|
|
1317
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1318
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1319
|
-
NextToken: smithy_client_1.expectString,
|
|
1320
|
-
ProposalVotes: smithy_client_1._json,
|
|
1321
|
-
});
|
|
1322
|
-
Object.assign(contents, doc);
|
|
1323
|
-
return contents;
|
|
1324
|
-
};
|
|
1325
|
-
exports.de_ListProposalVotesCommand = de_ListProposalVotesCommand;
|
|
1326
|
-
const de_ListProposalVotesCommandError = async (output, context) => {
|
|
1327
|
-
const parsedOutput = {
|
|
1328
|
-
...output,
|
|
1329
|
-
body: await parseErrorBody(output.body, context),
|
|
1330
|
-
};
|
|
1331
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
|
-
switch (errorCode) {
|
|
1333
|
-
case "AccessDeniedException":
|
|
1334
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1335
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1336
|
-
case "InternalServiceErrorException":
|
|
1337
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1338
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1339
|
-
case "InvalidRequestException":
|
|
1340
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1341
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1342
|
-
case "ThrottlingException":
|
|
1343
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1344
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1345
|
-
default:
|
|
1346
|
-
const parsedBody = parsedOutput.body;
|
|
1347
|
-
return throwDefaultError({
|
|
1348
|
-
output,
|
|
1349
|
-
parsedBody,
|
|
1350
|
-
errorCode,
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
|
-
};
|
|
1354
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1355
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1356
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1357
|
-
}
|
|
1358
|
-
const contents = (0, smithy_client_1.map)({
|
|
1359
|
-
$metadata: deserializeMetadata(output),
|
|
1360
|
-
});
|
|
1361
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1362
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1363
|
-
Tags: smithy_client_1._json,
|
|
1364
|
-
});
|
|
1365
|
-
Object.assign(contents, doc);
|
|
1366
|
-
return contents;
|
|
1367
|
-
};
|
|
1368
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1369
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1370
|
-
const parsedOutput = {
|
|
1371
|
-
...output,
|
|
1372
|
-
body: await parseErrorBody(output.body, context),
|
|
1373
|
-
};
|
|
1374
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
-
switch (errorCode) {
|
|
1376
|
-
case "InternalServiceErrorException":
|
|
1377
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1378
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "InvalidRequestException":
|
|
1380
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1381
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ResourceNotFoundException":
|
|
1383
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1384
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ResourceNotReadyException":
|
|
1386
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1387
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1388
|
-
default:
|
|
1389
|
-
const parsedBody = parsedOutput.body;
|
|
1390
|
-
return throwDefaultError({
|
|
1391
|
-
output,
|
|
1392
|
-
parsedBody,
|
|
1393
|
-
errorCode,
|
|
1394
|
-
});
|
|
1395
|
-
}
|
|
1396
|
-
};
|
|
1397
|
-
const de_RejectInvitationCommand = async (output, context) => {
|
|
1398
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1399
|
-
return de_RejectInvitationCommandError(output, context);
|
|
1400
|
-
}
|
|
1401
|
-
const contents = (0, smithy_client_1.map)({
|
|
1402
|
-
$metadata: deserializeMetadata(output),
|
|
1403
|
-
});
|
|
1404
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1405
|
-
return contents;
|
|
1406
|
-
};
|
|
1407
|
-
exports.de_RejectInvitationCommand = de_RejectInvitationCommand;
|
|
1408
|
-
const de_RejectInvitationCommandError = async (output, context) => {
|
|
1409
|
-
const parsedOutput = {
|
|
1410
|
-
...output,
|
|
1411
|
-
body: await parseErrorBody(output.body, context),
|
|
1412
|
-
};
|
|
1413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
|
-
switch (errorCode) {
|
|
1415
|
-
case "AccessDeniedException":
|
|
1416
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1417
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1418
|
-
case "IllegalActionException":
|
|
1419
|
-
case "com.amazonaws.managedblockchain#IllegalActionException":
|
|
1420
|
-
throw await de_IllegalActionExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "InternalServiceErrorException":
|
|
1422
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1423
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "InvalidRequestException":
|
|
1425
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1426
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "ResourceNotFoundException":
|
|
1428
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1429
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "ThrottlingException":
|
|
1431
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1432
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1433
|
-
default:
|
|
1434
|
-
const parsedBody = parsedOutput.body;
|
|
1435
|
-
return throwDefaultError({
|
|
1436
|
-
output,
|
|
1437
|
-
parsedBody,
|
|
1438
|
-
errorCode,
|
|
1439
|
-
});
|
|
1440
|
-
}
|
|
1441
|
-
};
|
|
1442
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1443
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1444
|
-
return de_TagResourceCommandError(output, context);
|
|
1445
|
-
}
|
|
1446
|
-
const contents = (0, smithy_client_1.map)({
|
|
1447
|
-
$metadata: deserializeMetadata(output),
|
|
1448
|
-
});
|
|
1449
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1450
|
-
return contents;
|
|
1451
|
-
};
|
|
1452
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1453
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1454
|
-
const parsedOutput = {
|
|
1455
|
-
...output,
|
|
1456
|
-
body: await parseErrorBody(output.body, context),
|
|
1457
|
-
};
|
|
1458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
-
switch (errorCode) {
|
|
1460
|
-
case "InternalServiceErrorException":
|
|
1461
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1462
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "InvalidRequestException":
|
|
1464
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1465
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "ResourceNotFoundException":
|
|
1467
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1468
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "ResourceNotReadyException":
|
|
1470
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1471
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "TooManyTagsException":
|
|
1473
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException":
|
|
1474
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1475
|
-
default:
|
|
1476
|
-
const parsedBody = parsedOutput.body;
|
|
1477
|
-
return throwDefaultError({
|
|
1478
|
-
output,
|
|
1479
|
-
parsedBody,
|
|
1480
|
-
errorCode,
|
|
1481
|
-
});
|
|
1482
|
-
}
|
|
1483
|
-
};
|
|
1484
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1485
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1486
|
-
return de_UntagResourceCommandError(output, context);
|
|
1487
|
-
}
|
|
1488
|
-
const contents = (0, smithy_client_1.map)({
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
});
|
|
1491
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1492
|
-
return contents;
|
|
1493
|
-
};
|
|
1494
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1495
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1496
|
-
const parsedOutput = {
|
|
1497
|
-
...output,
|
|
1498
|
-
body: await parseErrorBody(output.body, context),
|
|
1499
|
-
};
|
|
1500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
-
switch (errorCode) {
|
|
1502
|
-
case "InternalServiceErrorException":
|
|
1503
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1504
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "InvalidRequestException":
|
|
1506
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1507
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ResourceNotFoundException":
|
|
1509
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1510
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ResourceNotReadyException":
|
|
1512
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException":
|
|
1513
|
-
throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
|
|
1514
|
-
default:
|
|
1515
|
-
const parsedBody = parsedOutput.body;
|
|
1516
|
-
return throwDefaultError({
|
|
1517
|
-
output,
|
|
1518
|
-
parsedBody,
|
|
1519
|
-
errorCode,
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
|
-
const de_UpdateMemberCommand = async (output, context) => {
|
|
1524
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1525
|
-
return de_UpdateMemberCommandError(output, context);
|
|
1526
|
-
}
|
|
1527
|
-
const contents = (0, smithy_client_1.map)({
|
|
1528
|
-
$metadata: deserializeMetadata(output),
|
|
1529
|
-
});
|
|
1530
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1531
|
-
return contents;
|
|
1532
|
-
};
|
|
1533
|
-
exports.de_UpdateMemberCommand = de_UpdateMemberCommand;
|
|
1534
|
-
const de_UpdateMemberCommandError = async (output, context) => {
|
|
1535
|
-
const parsedOutput = {
|
|
1536
|
-
...output,
|
|
1537
|
-
body: await parseErrorBody(output.body, context),
|
|
1538
|
-
};
|
|
1539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
|
-
switch (errorCode) {
|
|
1541
|
-
case "AccessDeniedException":
|
|
1542
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1543
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "InternalServiceErrorException":
|
|
1545
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1546
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "InvalidRequestException":
|
|
1548
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1549
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ResourceNotFoundException":
|
|
1551
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1552
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ThrottlingException":
|
|
1554
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1555
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1556
|
-
default:
|
|
1557
|
-
const parsedBody = parsedOutput.body;
|
|
1558
|
-
return throwDefaultError({
|
|
1559
|
-
output,
|
|
1560
|
-
parsedBody,
|
|
1561
|
-
errorCode,
|
|
1562
|
-
});
|
|
1563
|
-
}
|
|
1564
|
-
};
|
|
1565
|
-
const de_UpdateNodeCommand = async (output, context) => {
|
|
1566
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1567
|
-
return de_UpdateNodeCommandError(output, context);
|
|
1568
|
-
}
|
|
1569
|
-
const contents = (0, smithy_client_1.map)({
|
|
1570
|
-
$metadata: deserializeMetadata(output),
|
|
1571
|
-
});
|
|
1572
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1573
|
-
return contents;
|
|
1574
|
-
};
|
|
1575
|
-
exports.de_UpdateNodeCommand = de_UpdateNodeCommand;
|
|
1576
|
-
const de_UpdateNodeCommandError = async (output, context) => {
|
|
1577
|
-
const parsedOutput = {
|
|
1578
|
-
...output,
|
|
1579
|
-
body: await parseErrorBody(output.body, context),
|
|
1580
|
-
};
|
|
1581
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1582
|
-
switch (errorCode) {
|
|
1583
|
-
case "AccessDeniedException":
|
|
1584
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1585
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "InternalServiceErrorException":
|
|
1587
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1588
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "InvalidRequestException":
|
|
1590
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1591
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ResourceNotFoundException":
|
|
1593
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ThrottlingException":
|
|
1596
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1597
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode,
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1607
|
-
const de_VoteOnProposalCommand = async (output, context) => {
|
|
1608
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1609
|
-
return de_VoteOnProposalCommandError(output, context);
|
|
1610
|
-
}
|
|
1611
|
-
const contents = (0, smithy_client_1.map)({
|
|
1612
|
-
$metadata: deserializeMetadata(output),
|
|
1613
|
-
});
|
|
1614
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1615
|
-
return contents;
|
|
1616
|
-
};
|
|
1617
|
-
exports.de_VoteOnProposalCommand = de_VoteOnProposalCommand;
|
|
1618
|
-
const de_VoteOnProposalCommandError = async (output, context) => {
|
|
1619
|
-
const parsedOutput = {
|
|
1620
|
-
...output,
|
|
1621
|
-
body: await parseErrorBody(output.body, context),
|
|
1622
|
-
};
|
|
1623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
|
-
switch (errorCode) {
|
|
1625
|
-
case "AccessDeniedException":
|
|
1626
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException":
|
|
1627
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "IllegalActionException":
|
|
1629
|
-
case "com.amazonaws.managedblockchain#IllegalActionException":
|
|
1630
|
-
throw await de_IllegalActionExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "InternalServiceErrorException":
|
|
1632
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException":
|
|
1633
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1634
|
-
case "InvalidRequestException":
|
|
1635
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException":
|
|
1636
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1637
|
-
case "ResourceNotFoundException":
|
|
1638
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException":
|
|
1639
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ThrottlingException":
|
|
1641
|
-
case "com.amazonaws.managedblockchain#ThrottlingException":
|
|
1642
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1643
|
-
default:
|
|
1644
|
-
const parsedBody = parsedOutput.body;
|
|
1645
|
-
return throwDefaultError({
|
|
1646
|
-
output,
|
|
1647
|
-
parsedBody,
|
|
1648
|
-
errorCode,
|
|
1649
|
-
});
|
|
1650
|
-
}
|
|
1651
|
-
};
|
|
1652
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ManagedBlockchainServiceException_1.ManagedBlockchainServiceException);
|
|
1653
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1654
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1655
|
-
const data = parsedOutput.body;
|
|
1656
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1657
|
-
Message: smithy_client_1.expectString,
|
|
1658
|
-
});
|
|
1659
|
-
Object.assign(contents, doc);
|
|
1660
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1661
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1662
|
-
...contents,
|
|
1663
|
-
});
|
|
1664
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1665
|
-
};
|
|
1666
|
-
const de_IllegalActionExceptionRes = async (parsedOutput, context) => {
|
|
1667
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1668
|
-
const data = parsedOutput.body;
|
|
1669
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1670
|
-
Message: smithy_client_1.expectString,
|
|
1671
|
-
});
|
|
1672
|
-
Object.assign(contents, doc);
|
|
1673
|
-
const exception = new models_0_1.IllegalActionException({
|
|
1674
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1675
|
-
...contents,
|
|
1676
|
-
});
|
|
1677
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1678
|
-
};
|
|
1679
|
-
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
1680
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1681
|
-
const data = parsedOutput.body;
|
|
1682
|
-
const doc = (0, smithy_client_1.take)(data, {});
|
|
1683
|
-
Object.assign(contents, doc);
|
|
1684
|
-
const exception = new models_0_1.InternalServiceErrorException({
|
|
1685
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1686
|
-
...contents,
|
|
1687
|
-
});
|
|
1688
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1689
|
-
};
|
|
1690
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1691
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1692
|
-
const data = parsedOutput.body;
|
|
1693
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1694
|
-
Message: smithy_client_1.expectString,
|
|
1695
|
-
});
|
|
1696
|
-
Object.assign(contents, doc);
|
|
1697
|
-
const exception = new models_0_1.InvalidRequestException({
|
|
1698
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1699
|
-
...contents,
|
|
1700
|
-
});
|
|
1701
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1702
|
-
};
|
|
1703
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1704
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1705
|
-
const data = parsedOutput.body;
|
|
1706
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1707
|
-
Message: smithy_client_1.expectString,
|
|
1708
|
-
});
|
|
1709
|
-
Object.assign(contents, doc);
|
|
1710
|
-
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
1711
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1712
|
-
...contents,
|
|
1713
|
-
});
|
|
1714
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1715
|
-
};
|
|
1716
|
-
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1717
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1718
|
-
const data = parsedOutput.body;
|
|
1719
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1720
|
-
Message: smithy_client_1.expectString,
|
|
1721
|
-
});
|
|
1722
|
-
Object.assign(contents, doc);
|
|
1723
|
-
const exception = new models_0_1.ResourceLimitExceededException({
|
|
1724
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1725
|
-
...contents,
|
|
1726
|
-
});
|
|
1727
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1728
|
-
};
|
|
1729
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1730
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1731
|
-
const data = parsedOutput.body;
|
|
1732
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1733
|
-
Message: smithy_client_1.expectString,
|
|
1734
|
-
ResourceName: smithy_client_1.expectString,
|
|
1735
|
-
});
|
|
1736
|
-
Object.assign(contents, doc);
|
|
1737
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1738
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1739
|
-
...contents,
|
|
1740
|
-
});
|
|
1741
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1742
|
-
};
|
|
1743
|
-
const de_ResourceNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
1744
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1745
|
-
const data = parsedOutput.body;
|
|
1746
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1747
|
-
Message: smithy_client_1.expectString,
|
|
1748
|
-
});
|
|
1749
|
-
Object.assign(contents, doc);
|
|
1750
|
-
const exception = new models_0_1.ResourceNotReadyException({
|
|
1751
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1752
|
-
...contents,
|
|
1753
|
-
});
|
|
1754
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1755
|
-
};
|
|
1756
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1757
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1758
|
-
const data = parsedOutput.body;
|
|
1759
|
-
const doc = (0, smithy_client_1.take)(data, {});
|
|
1760
|
-
Object.assign(contents, doc);
|
|
1761
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1762
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1763
|
-
...contents,
|
|
1764
|
-
});
|
|
1765
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1766
|
-
};
|
|
1767
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1768
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1769
|
-
const data = parsedOutput.body;
|
|
1770
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1771
|
-
Message: smithy_client_1.expectString,
|
|
1772
|
-
ResourceName: smithy_client_1.expectString,
|
|
1773
|
-
});
|
|
1774
|
-
Object.assign(contents, doc);
|
|
1775
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
1776
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1777
|
-
...contents,
|
|
1778
|
-
});
|
|
1779
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1780
|
-
};
|
|
1781
|
-
const de_Accessor = (output, context) => {
|
|
1782
|
-
return (0, smithy_client_1.take)(output, {
|
|
1783
|
-
Arn: smithy_client_1.expectString,
|
|
1784
|
-
BillingToken: smithy_client_1.expectString,
|
|
1785
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1786
|
-
Id: smithy_client_1.expectString,
|
|
1787
|
-
NetworkType: smithy_client_1.expectString,
|
|
1788
|
-
Status: smithy_client_1.expectString,
|
|
1789
|
-
Tags: smithy_client_1._json,
|
|
1790
|
-
Type: smithy_client_1.expectString,
|
|
1791
|
-
});
|
|
1792
|
-
};
|
|
1793
|
-
const de_AccessorSummary = (output, context) => {
|
|
1794
|
-
return (0, smithy_client_1.take)(output, {
|
|
1795
|
-
Arn: smithy_client_1.expectString,
|
|
1796
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1797
|
-
Id: smithy_client_1.expectString,
|
|
1798
|
-
NetworkType: smithy_client_1.expectString,
|
|
1799
|
-
Status: smithy_client_1.expectString,
|
|
1800
|
-
Type: smithy_client_1.expectString,
|
|
1801
|
-
});
|
|
1802
|
-
};
|
|
1803
|
-
const de_AccessorSummaryList = (output, context) => {
|
|
1804
|
-
const retVal = (output || [])
|
|
1805
|
-
.filter((e) => e != null)
|
|
1806
|
-
.map((entry) => {
|
|
1807
|
-
return de_AccessorSummary(entry, context);
|
|
1808
|
-
});
|
|
1809
|
-
return retVal;
|
|
1810
|
-
};
|
|
1811
|
-
const de_Invitation = (output, context) => {
|
|
1812
|
-
return (0, smithy_client_1.take)(output, {
|
|
1813
|
-
Arn: smithy_client_1.expectString,
|
|
1814
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1815
|
-
ExpirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1816
|
-
InvitationId: smithy_client_1.expectString,
|
|
1817
|
-
NetworkSummary: (_) => de_NetworkSummary(_, context),
|
|
1818
|
-
Status: smithy_client_1.expectString,
|
|
1819
|
-
});
|
|
1820
|
-
};
|
|
1821
|
-
const de_InvitationList = (output, context) => {
|
|
1822
|
-
const retVal = (output || [])
|
|
1823
|
-
.filter((e) => e != null)
|
|
1824
|
-
.map((entry) => {
|
|
1825
|
-
return de_Invitation(entry, context);
|
|
1826
|
-
});
|
|
1827
|
-
return retVal;
|
|
1828
|
-
};
|
|
1829
|
-
const de_Member = (output, context) => {
|
|
1830
|
-
return (0, smithy_client_1.take)(output, {
|
|
1831
|
-
Arn: smithy_client_1.expectString,
|
|
1832
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1833
|
-
Description: smithy_client_1.expectString,
|
|
1834
|
-
FrameworkAttributes: smithy_client_1._json,
|
|
1835
|
-
Id: smithy_client_1.expectString,
|
|
1836
|
-
KmsKeyArn: smithy_client_1.expectString,
|
|
1837
|
-
LogPublishingConfiguration: smithy_client_1._json,
|
|
1838
|
-
Name: smithy_client_1.expectString,
|
|
1839
|
-
NetworkId: smithy_client_1.expectString,
|
|
1840
|
-
Status: smithy_client_1.expectString,
|
|
1841
|
-
Tags: smithy_client_1._json,
|
|
1842
|
-
});
|
|
1843
|
-
};
|
|
1844
|
-
const de_MemberSummary = (output, context) => {
|
|
1845
|
-
return (0, smithy_client_1.take)(output, {
|
|
1846
|
-
Arn: smithy_client_1.expectString,
|
|
1847
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1848
|
-
Description: smithy_client_1.expectString,
|
|
1849
|
-
Id: smithy_client_1.expectString,
|
|
1850
|
-
IsOwned: smithy_client_1.expectBoolean,
|
|
1851
|
-
Name: smithy_client_1.expectString,
|
|
1852
|
-
Status: smithy_client_1.expectString,
|
|
1853
|
-
});
|
|
1854
|
-
};
|
|
1855
|
-
const de_MemberSummaryList = (output, context) => {
|
|
1856
|
-
const retVal = (output || [])
|
|
1857
|
-
.filter((e) => e != null)
|
|
1858
|
-
.map((entry) => {
|
|
1859
|
-
return de_MemberSummary(entry, context);
|
|
1860
|
-
});
|
|
1861
|
-
return retVal;
|
|
1862
|
-
};
|
|
1863
|
-
const de_Network = (output, context) => {
|
|
1864
|
-
return (0, smithy_client_1.take)(output, {
|
|
1865
|
-
Arn: smithy_client_1.expectString,
|
|
1866
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1867
|
-
Description: smithy_client_1.expectString,
|
|
1868
|
-
Framework: smithy_client_1.expectString,
|
|
1869
|
-
FrameworkAttributes: smithy_client_1._json,
|
|
1870
|
-
FrameworkVersion: smithy_client_1.expectString,
|
|
1871
|
-
Id: smithy_client_1.expectString,
|
|
1872
|
-
Name: smithy_client_1.expectString,
|
|
1873
|
-
Status: smithy_client_1.expectString,
|
|
1874
|
-
Tags: smithy_client_1._json,
|
|
1875
|
-
VotingPolicy: smithy_client_1._json,
|
|
1876
|
-
VpcEndpointServiceName: smithy_client_1.expectString,
|
|
1877
|
-
});
|
|
1878
|
-
};
|
|
1879
|
-
const de_NetworkSummary = (output, context) => {
|
|
1880
|
-
return (0, smithy_client_1.take)(output, {
|
|
1881
|
-
Arn: smithy_client_1.expectString,
|
|
1882
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1883
|
-
Description: smithy_client_1.expectString,
|
|
1884
|
-
Framework: smithy_client_1.expectString,
|
|
1885
|
-
FrameworkVersion: smithy_client_1.expectString,
|
|
1886
|
-
Id: smithy_client_1.expectString,
|
|
1887
|
-
Name: smithy_client_1.expectString,
|
|
1888
|
-
Status: smithy_client_1.expectString,
|
|
1889
|
-
});
|
|
1890
|
-
};
|
|
1891
|
-
const de_NetworkSummaryList = (output, context) => {
|
|
1892
|
-
const retVal = (output || [])
|
|
1893
|
-
.filter((e) => e != null)
|
|
1894
|
-
.map((entry) => {
|
|
1895
|
-
return de_NetworkSummary(entry, context);
|
|
1896
|
-
});
|
|
1897
|
-
return retVal;
|
|
1898
|
-
};
|
|
1899
|
-
const de_Node = (output, context) => {
|
|
1900
|
-
return (0, smithy_client_1.take)(output, {
|
|
1901
|
-
Arn: smithy_client_1.expectString,
|
|
1902
|
-
AvailabilityZone: smithy_client_1.expectString,
|
|
1903
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1904
|
-
FrameworkAttributes: smithy_client_1._json,
|
|
1905
|
-
Id: smithy_client_1.expectString,
|
|
1906
|
-
InstanceType: smithy_client_1.expectString,
|
|
1907
|
-
KmsKeyArn: smithy_client_1.expectString,
|
|
1908
|
-
LogPublishingConfiguration: smithy_client_1._json,
|
|
1909
|
-
MemberId: smithy_client_1.expectString,
|
|
1910
|
-
NetworkId: smithy_client_1.expectString,
|
|
1911
|
-
StateDB: smithy_client_1.expectString,
|
|
1912
|
-
Status: smithy_client_1.expectString,
|
|
1913
|
-
Tags: smithy_client_1._json,
|
|
1914
|
-
});
|
|
1915
|
-
};
|
|
1916
|
-
const de_NodeSummary = (output, context) => {
|
|
1917
|
-
return (0, smithy_client_1.take)(output, {
|
|
1918
|
-
Arn: smithy_client_1.expectString,
|
|
1919
|
-
AvailabilityZone: smithy_client_1.expectString,
|
|
1920
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1921
|
-
Id: smithy_client_1.expectString,
|
|
1922
|
-
InstanceType: smithy_client_1.expectString,
|
|
1923
|
-
Status: smithy_client_1.expectString,
|
|
1924
|
-
});
|
|
1925
|
-
};
|
|
1926
|
-
const de_NodeSummaryList = (output, context) => {
|
|
1927
|
-
const retVal = (output || [])
|
|
1928
|
-
.filter((e) => e != null)
|
|
1929
|
-
.map((entry) => {
|
|
1930
|
-
return de_NodeSummary(entry, context);
|
|
1931
|
-
});
|
|
1932
|
-
return retVal;
|
|
1933
|
-
};
|
|
1934
|
-
const de_Proposal = (output, context) => {
|
|
1935
|
-
return (0, smithy_client_1.take)(output, {
|
|
1936
|
-
Actions: smithy_client_1._json,
|
|
1937
|
-
Arn: smithy_client_1.expectString,
|
|
1938
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1939
|
-
Description: smithy_client_1.expectString,
|
|
1940
|
-
ExpirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1941
|
-
NetworkId: smithy_client_1.expectString,
|
|
1942
|
-
NoVoteCount: smithy_client_1.expectInt32,
|
|
1943
|
-
OutstandingVoteCount: smithy_client_1.expectInt32,
|
|
1944
|
-
ProposalId: smithy_client_1.expectString,
|
|
1945
|
-
ProposedByMemberId: smithy_client_1.expectString,
|
|
1946
|
-
ProposedByMemberName: smithy_client_1.expectString,
|
|
1947
|
-
Status: smithy_client_1.expectString,
|
|
1948
|
-
Tags: smithy_client_1._json,
|
|
1949
|
-
YesVoteCount: smithy_client_1.expectInt32,
|
|
1950
|
-
});
|
|
1951
|
-
};
|
|
1952
|
-
const de_ProposalSummary = (output, context) => {
|
|
1953
|
-
return (0, smithy_client_1.take)(output, {
|
|
1954
|
-
Arn: smithy_client_1.expectString,
|
|
1955
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1956
|
-
Description: smithy_client_1.expectString,
|
|
1957
|
-
ExpirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1958
|
-
ProposalId: smithy_client_1.expectString,
|
|
1959
|
-
ProposedByMemberId: smithy_client_1.expectString,
|
|
1960
|
-
ProposedByMemberName: smithy_client_1.expectString,
|
|
1961
|
-
Status: smithy_client_1.expectString,
|
|
1962
|
-
});
|
|
1963
|
-
};
|
|
1964
|
-
const de_ProposalSummaryList = (output, context) => {
|
|
1965
|
-
const retVal = (output || [])
|
|
1966
|
-
.filter((e) => e != null)
|
|
1967
|
-
.map((entry) => {
|
|
1968
|
-
return de_ProposalSummary(entry, context);
|
|
1969
|
-
});
|
|
1970
|
-
return retVal;
|
|
1971
|
-
};
|
|
1972
|
-
const deserializeMetadata = (output) => ({
|
|
1973
|
-
httpStatusCode: output.statusCode,
|
|
1974
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1975
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1976
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1977
|
-
});
|
|
1978
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1979
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1980
|
-
value !== null &&
|
|
1981
|
-
value !== "" &&
|
|
1982
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1983
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1984
|
-
const _F = "Framework";
|
|
1985
|
-
const _IO = "IsOwned";
|
|
1986
|
-
const _MI = "MemberId";
|
|
1987
|
-
const _MR = "MaxResults";
|
|
1988
|
-
const _N = "Name";
|
|
1989
|
-
const _NT = "NextToken";
|
|
1990
|
-
const _NTe = "NetworkType";
|
|
1991
|
-
const _S = "Status";
|
|
1992
|
-
const _TK = "TagKeys";
|
|
1993
|
-
const _f = "framework";
|
|
1994
|
-
const _iO = "isOwned";
|
|
1995
|
-
const _mI = "memberId";
|
|
1996
|
-
const _mR = "maxResults";
|
|
1997
|
-
const _n = "name";
|
|
1998
|
-
const _nT = "nextToken";
|
|
1999
|
-
const _nTe = "networkType";
|
|
2000
|
-
const _s = "status";
|
|
2001
|
-
const _tK = "tagKeys";
|
|
2002
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2003
|
-
if (encoded.length) {
|
|
2004
|
-
return JSON.parse(encoded);
|
|
2005
|
-
}
|
|
2006
|
-
return {};
|
|
2007
|
-
});
|
|
2008
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2009
|
-
const value = await parseBody(errorBody, context);
|
|
2010
|
-
value.message = value.message ?? value.Message;
|
|
2011
|
-
return value;
|
|
2012
|
-
};
|
|
2013
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2014
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2015
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2016
|
-
let cleanValue = rawValue;
|
|
2017
|
-
if (typeof cleanValue === "number") {
|
|
2018
|
-
cleanValue = cleanValue.toString();
|
|
2019
|
-
}
|
|
2020
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2021
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2022
|
-
}
|
|
2023
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2024
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2025
|
-
}
|
|
2026
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2027
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2028
|
-
}
|
|
2029
|
-
return cleanValue;
|
|
2030
|
-
};
|
|
2031
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2032
|
-
if (headerKey !== undefined) {
|
|
2033
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2034
|
-
}
|
|
2035
|
-
if (data.code !== undefined) {
|
|
2036
|
-
return sanitizeErrorCode(data.code);
|
|
2037
|
-
}
|
|
2038
|
-
if (data["__type"] !== undefined) {
|
|
2039
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2040
|
-
}
|
|
2041
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|