@aws-sdk/client-managedblockchain 3.30.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/ManagedBlockchainClient.js +13 -13
- package/dist/cjs/ManagedBlockchainClient.js.map +1 -1
- package/dist/cjs/commands/CreateMemberCommand.js +3 -3
- package/dist/cjs/commands/CreateMemberCommand.js.map +1 -1
- package/dist/cjs/commands/CreateNetworkCommand.js +3 -3
- package/dist/cjs/commands/CreateNetworkCommand.js.map +1 -1
- package/dist/cjs/commands/CreateNodeCommand.js +3 -3
- package/dist/cjs/commands/CreateNodeCommand.js.map +1 -1
- package/dist/cjs/commands/CreateProposalCommand.js +3 -3
- package/dist/cjs/commands/CreateProposalCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteMemberCommand.js +3 -3
- package/dist/cjs/commands/DeleteMemberCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteNodeCommand.js +3 -3
- package/dist/cjs/commands/DeleteNodeCommand.js.map +1 -1
- package/dist/cjs/commands/GetMemberCommand.js +3 -3
- package/dist/cjs/commands/GetMemberCommand.js.map +1 -1
- package/dist/cjs/commands/GetNetworkCommand.js +3 -3
- package/dist/cjs/commands/GetNetworkCommand.js.map +1 -1
- package/dist/cjs/commands/GetNodeCommand.js +3 -3
- package/dist/cjs/commands/GetNodeCommand.js.map +1 -1
- package/dist/cjs/commands/GetProposalCommand.js +3 -3
- package/dist/cjs/commands/GetProposalCommand.js.map +1 -1
- package/dist/cjs/commands/ListInvitationsCommand.js +3 -3
- package/dist/cjs/commands/ListInvitationsCommand.js.map +1 -1
- package/dist/cjs/commands/ListMembersCommand.js +3 -3
- package/dist/cjs/commands/ListMembersCommand.js.map +1 -1
- package/dist/cjs/commands/ListNetworksCommand.js +3 -3
- package/dist/cjs/commands/ListNetworksCommand.js.map +1 -1
- package/dist/cjs/commands/ListNodesCommand.js +3 -3
- package/dist/cjs/commands/ListNodesCommand.js.map +1 -1
- package/dist/cjs/commands/ListProposalVotesCommand.js +3 -3
- package/dist/cjs/commands/ListProposalVotesCommand.js.map +1 -1
- package/dist/cjs/commands/ListProposalsCommand.js +3 -3
- package/dist/cjs/commands/ListProposalsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/RejectInvitationCommand.js +3 -3
- package/dist/cjs/commands/RejectInvitationCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateMemberCommand.js +3 -3
- package/dist/cjs/commands/UpdateMemberCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateNodeCommand.js +3 -3
- package/dist/cjs/commands/UpdateNodeCommand.js.map +1 -1
- package/dist/cjs/commands/VoteOnProposalCommand.js +3 -3
- package/dist/cjs/commands/VoteOnProposalCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +33 -33
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_restJson1.js +179 -161
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/ManagedBlockchain.js +1 -7
- package/dist/es/ManagedBlockchain.js.map +1 -1
- package/dist/es/ManagedBlockchainClient.js +1 -12
- package/dist/es/ManagedBlockchainClient.js.map +1 -1
- package/dist/es/commands/CreateMemberCommand.js +2 -28
- package/dist/es/commands/CreateMemberCommand.js.map +1 -1
- package/dist/es/commands/CreateNetworkCommand.js +2 -28
- package/dist/es/commands/CreateNetworkCommand.js.map +1 -1
- package/dist/es/commands/CreateNodeCommand.js +2 -28
- package/dist/es/commands/CreateNodeCommand.js.map +1 -1
- package/dist/es/commands/CreateProposalCommand.js +2 -28
- package/dist/es/commands/CreateProposalCommand.js.map +1 -1
- package/dist/es/commands/DeleteMemberCommand.js +2 -28
- package/dist/es/commands/DeleteMemberCommand.js.map +1 -1
- package/dist/es/commands/DeleteNodeCommand.js +2 -28
- package/dist/es/commands/DeleteNodeCommand.js.map +1 -1
- package/dist/es/commands/GetMemberCommand.js +2 -28
- package/dist/es/commands/GetMemberCommand.js.map +1 -1
- package/dist/es/commands/GetNetworkCommand.js +2 -28
- package/dist/es/commands/GetNetworkCommand.js.map +1 -1
- package/dist/es/commands/GetNodeCommand.js +2 -28
- package/dist/es/commands/GetNodeCommand.js.map +1 -1
- package/dist/es/commands/GetProposalCommand.js +2 -28
- package/dist/es/commands/GetProposalCommand.js.map +1 -1
- package/dist/es/commands/ListInvitationsCommand.js +2 -28
- package/dist/es/commands/ListInvitationsCommand.js.map +1 -1
- package/dist/es/commands/ListMembersCommand.js +2 -28
- package/dist/es/commands/ListMembersCommand.js.map +1 -1
- package/dist/es/commands/ListNetworksCommand.js +2 -28
- package/dist/es/commands/ListNetworksCommand.js.map +1 -1
- package/dist/es/commands/ListNodesCommand.js +2 -28
- package/dist/es/commands/ListNodesCommand.js.map +1 -1
- package/dist/es/commands/ListProposalVotesCommand.js +2 -28
- package/dist/es/commands/ListProposalVotesCommand.js.map +1 -1
- package/dist/es/commands/ListProposalsCommand.js +2 -28
- package/dist/es/commands/ListProposalsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -28
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/RejectInvitationCommand.js +2 -28
- package/dist/es/commands/RejectInvitationCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -30
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -28
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateMemberCommand.js +2 -28
- package/dist/es/commands/UpdateMemberCommand.js.map +1 -1
- package/dist/es/commands/UpdateNodeCommand.js +2 -28
- package/dist/es/commands/UpdateNodeCommand.js.map +1 -1
- package/dist/es/commands/VoteOnProposalCommand.js +2 -28
- package/dist/es/commands/VoteOnProposalCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -273
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/ListInvitationsPaginator.js +16 -28
- package/dist/es/pagination/ListInvitationsPaginator.js.map +1 -1
- package/dist/es/pagination/ListMembersPaginator.js +16 -28
- package/dist/es/pagination/ListMembersPaginator.js.map +1 -1
- package/dist/es/pagination/ListNetworksPaginator.js +16 -28
- package/dist/es/pagination/ListNetworksPaginator.js.map +1 -1
- package/dist/es/pagination/ListNodesPaginator.js +16 -28
- package/dist/es/pagination/ListNodesPaginator.js.map +1 -1
- package/dist/es/pagination/ListProposalVotesPaginator.js +16 -28
- package/dist/es/pagination/ListProposalVotesPaginator.js.map +1 -1
- package/dist/es/pagination/ListProposalsPaginator.js +16 -28
- package/dist/es/pagination/ListProposalsPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +752 -739
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -39
- package/protocols/Aws_restJson1.ts +31 -12
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
export var serializeAws_restJson1CreateMemberCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
6
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
7
7
|
var _c;
|
|
8
8
|
return __generator(this, function (_d) {
|
|
9
9
|
switch (_d.label) {
|
|
10
|
-
case 0: return [4
|
|
10
|
+
case 0: return [4, context.endpoint()];
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {
|
|
@@ -28,7 +28,7 @@ export var serializeAws_restJson1CreateMemberCommand = function (input, context)
|
|
|
28
28
|
input.MemberConfiguration !== null && {
|
|
29
29
|
MemberConfiguration: serializeAws_restJson1MemberConfiguration(input.MemberConfiguration, context),
|
|
30
30
|
})));
|
|
31
|
-
return [2
|
|
31
|
+
return [2, new __HttpRequest({
|
|
32
32
|
protocol: protocol,
|
|
33
33
|
hostname: hostname,
|
|
34
34
|
port: port,
|
|
@@ -45,7 +45,7 @@ export var serializeAws_restJson1CreateNetworkCommand = function (input, context
|
|
|
45
45
|
var _c;
|
|
46
46
|
return __generator(this, function (_d) {
|
|
47
47
|
switch (_d.label) {
|
|
48
|
-
case 0: return [4
|
|
48
|
+
case 0: return [4, context.endpoint()];
|
|
49
49
|
case 1:
|
|
50
50
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
51
51
|
headers = {
|
|
@@ -62,7 +62,7 @@ export var serializeAws_restJson1CreateNetworkCommand = function (input, context
|
|
|
62
62
|
})), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined &&
|
|
63
63
|
input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })), (input.VotingPolicy !== undefined &&
|
|
64
64
|
input.VotingPolicy !== null && { VotingPolicy: serializeAws_restJson1VotingPolicy(input.VotingPolicy, context) })));
|
|
65
|
-
return [2
|
|
65
|
+
return [2, new __HttpRequest({
|
|
66
66
|
protocol: protocol,
|
|
67
67
|
hostname: hostname,
|
|
68
68
|
port: port,
|
|
@@ -79,7 +79,7 @@ export var serializeAws_restJson1CreateNodeCommand = function (input, context) {
|
|
|
79
79
|
var _c;
|
|
80
80
|
return __generator(this, function (_d) {
|
|
81
81
|
switch (_d.label) {
|
|
82
|
-
case 0: return [4
|
|
82
|
+
case 0: return [4, context.endpoint()];
|
|
83
83
|
case 1:
|
|
84
84
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
85
85
|
headers = {
|
|
@@ -101,7 +101,7 @@ export var serializeAws_restJson1CreateNodeCommand = function (input, context) {
|
|
|
101
101
|
NodeConfiguration: serializeAws_restJson1NodeConfiguration(input.NodeConfiguration, context),
|
|
102
102
|
})), (input.Tags !== undefined &&
|
|
103
103
|
input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
|
|
104
|
-
return [2
|
|
104
|
+
return [2, new __HttpRequest({
|
|
105
105
|
protocol: protocol,
|
|
106
106
|
hostname: hostname,
|
|
107
107
|
port: port,
|
|
@@ -118,7 +118,7 @@ export var serializeAws_restJson1CreateProposalCommand = function (input, contex
|
|
|
118
118
|
var _c;
|
|
119
119
|
return __generator(this, function (_d) {
|
|
120
120
|
switch (_d.label) {
|
|
121
|
-
case 0: return [4
|
|
121
|
+
case 0: return [4, context.endpoint()];
|
|
122
122
|
case 1:
|
|
123
123
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
124
124
|
headers = {
|
|
@@ -138,7 +138,7 @@ export var serializeAws_restJson1CreateProposalCommand = function (input, contex
|
|
|
138
138
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Actions !== undefined &&
|
|
139
139
|
input.Actions !== null && { Actions: serializeAws_restJson1ProposalActions(input.Actions, context) })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId })), (input.Tags !== undefined &&
|
|
140
140
|
input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
|
|
141
|
-
return [2
|
|
141
|
+
return [2, new __HttpRequest({
|
|
142
142
|
protocol: protocol,
|
|
143
143
|
hostname: hostname,
|
|
144
144
|
port: port,
|
|
@@ -154,7 +154,7 @@ export var serializeAws_restJson1DeleteMemberCommand = function (input, context)
|
|
|
154
154
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
155
155
|
return __generator(this, function (_c) {
|
|
156
156
|
switch (_c.label) {
|
|
157
|
-
case 0: return [4
|
|
157
|
+
case 0: return [4, context.endpoint()];
|
|
158
158
|
case 1:
|
|
159
159
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
160
160
|
headers = {};
|
|
@@ -179,7 +179,7 @@ export var serializeAws_restJson1DeleteMemberCommand = function (input, context)
|
|
|
179
179
|
else {
|
|
180
180
|
throw new Error("No value provided for input HTTP label: MemberId.");
|
|
181
181
|
}
|
|
182
|
-
return [2
|
|
182
|
+
return [2, new __HttpRequest({
|
|
183
183
|
protocol: protocol,
|
|
184
184
|
hostname: hostname,
|
|
185
185
|
port: port,
|
|
@@ -195,7 +195,7 @@ export var serializeAws_restJson1DeleteNodeCommand = function (input, context) {
|
|
|
195
195
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
196
196
|
return __generator(this, function (_c) {
|
|
197
197
|
switch (_c.label) {
|
|
198
|
-
case 0: return [4
|
|
198
|
+
case 0: return [4, context.endpoint()];
|
|
199
199
|
case 1:
|
|
200
200
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
201
201
|
headers = {};
|
|
@@ -221,7 +221,7 @@ export var serializeAws_restJson1DeleteNodeCommand = function (input, context) {
|
|
|
221
221
|
throw new Error("No value provided for input HTTP label: NodeId.");
|
|
222
222
|
}
|
|
223
223
|
query = __assign({}, (input.MemberId !== undefined && { memberId: input.MemberId }));
|
|
224
|
-
return [2
|
|
224
|
+
return [2, new __HttpRequest({
|
|
225
225
|
protocol: protocol,
|
|
226
226
|
hostname: hostname,
|
|
227
227
|
port: port,
|
|
@@ -238,7 +238,7 @@ export var serializeAws_restJson1GetMemberCommand = function (input, context) {
|
|
|
238
238
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
239
239
|
return __generator(this, function (_c) {
|
|
240
240
|
switch (_c.label) {
|
|
241
|
-
case 0: return [4
|
|
241
|
+
case 0: return [4, context.endpoint()];
|
|
242
242
|
case 1:
|
|
243
243
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
244
244
|
headers = {};
|
|
@@ -263,7 +263,7 @@ export var serializeAws_restJson1GetMemberCommand = function (input, context) {
|
|
|
263
263
|
else {
|
|
264
264
|
throw new Error("No value provided for input HTTP label: MemberId.");
|
|
265
265
|
}
|
|
266
|
-
return [2
|
|
266
|
+
return [2, new __HttpRequest({
|
|
267
267
|
protocol: protocol,
|
|
268
268
|
hostname: hostname,
|
|
269
269
|
port: port,
|
|
@@ -279,7 +279,7 @@ export var serializeAws_restJson1GetNetworkCommand = function (input, context) {
|
|
|
279
279
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
280
280
|
return __generator(this, function (_c) {
|
|
281
281
|
switch (_c.label) {
|
|
282
|
-
case 0: return [4
|
|
282
|
+
case 0: return [4, context.endpoint()];
|
|
283
283
|
case 1:
|
|
284
284
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
285
285
|
headers = {};
|
|
@@ -294,7 +294,7 @@ export var serializeAws_restJson1GetNetworkCommand = function (input, context) {
|
|
|
294
294
|
else {
|
|
295
295
|
throw new Error("No value provided for input HTTP label: NetworkId.");
|
|
296
296
|
}
|
|
297
|
-
return [2
|
|
297
|
+
return [2, new __HttpRequest({
|
|
298
298
|
protocol: protocol,
|
|
299
299
|
hostname: hostname,
|
|
300
300
|
port: port,
|
|
@@ -310,7 +310,7 @@ export var serializeAws_restJson1GetNodeCommand = function (input, context) { re
|
|
|
310
310
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
311
311
|
return __generator(this, function (_c) {
|
|
312
312
|
switch (_c.label) {
|
|
313
|
-
case 0: return [4
|
|
313
|
+
case 0: return [4, context.endpoint()];
|
|
314
314
|
case 1:
|
|
315
315
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
316
316
|
headers = {};
|
|
@@ -336,7 +336,7 @@ export var serializeAws_restJson1GetNodeCommand = function (input, context) { re
|
|
|
336
336
|
throw new Error("No value provided for input HTTP label: NodeId.");
|
|
337
337
|
}
|
|
338
338
|
query = __assign({}, (input.MemberId !== undefined && { memberId: input.MemberId }));
|
|
339
|
-
return [2
|
|
339
|
+
return [2, new __HttpRequest({
|
|
340
340
|
protocol: protocol,
|
|
341
341
|
hostname: hostname,
|
|
342
342
|
port: port,
|
|
@@ -353,7 +353,7 @@ export var serializeAws_restJson1GetProposalCommand = function (input, context)
|
|
|
353
353
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
354
354
|
return __generator(this, function (_c) {
|
|
355
355
|
switch (_c.label) {
|
|
356
|
-
case 0: return [4
|
|
356
|
+
case 0: return [4, context.endpoint()];
|
|
357
357
|
case 1:
|
|
358
358
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
359
359
|
headers = {};
|
|
@@ -379,7 +379,7 @@ export var serializeAws_restJson1GetProposalCommand = function (input, context)
|
|
|
379
379
|
else {
|
|
380
380
|
throw new Error("No value provided for input HTTP label: ProposalId.");
|
|
381
381
|
}
|
|
382
|
-
return [2
|
|
382
|
+
return [2, new __HttpRequest({
|
|
383
383
|
protocol: protocol,
|
|
384
384
|
hostname: hostname,
|
|
385
385
|
port: port,
|
|
@@ -395,13 +395,13 @@ export var serializeAws_restJson1ListInvitationsCommand = function (input, conte
|
|
|
395
395
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
396
396
|
return __generator(this, function (_c) {
|
|
397
397
|
switch (_c.label) {
|
|
398
|
-
case 0: return [4
|
|
398
|
+
case 0: return [4, context.endpoint()];
|
|
399
399
|
case 1:
|
|
400
400
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
401
401
|
headers = {};
|
|
402
402
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations";
|
|
403
403
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
404
|
-
return [2
|
|
404
|
+
return [2, new __HttpRequest({
|
|
405
405
|
protocol: protocol,
|
|
406
406
|
hostname: hostname,
|
|
407
407
|
port: port,
|
|
@@ -418,7 +418,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
|
|
|
418
418
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
419
419
|
return __generator(this, function (_c) {
|
|
420
420
|
switch (_c.label) {
|
|
421
|
-
case 0: return [4
|
|
421
|
+
case 0: return [4, context.endpoint()];
|
|
422
422
|
case 1:
|
|
423
423
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
424
424
|
headers = {};
|
|
@@ -434,7 +434,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
|
|
|
434
434
|
throw new Error("No value provided for input HTTP label: NetworkId.");
|
|
435
435
|
}
|
|
436
436
|
query = __assign(__assign(__assign(__assign(__assign({}, (input.Name !== undefined && { name: input.Name })), (input.Status !== undefined && { status: input.Status })), (input.IsOwned !== undefined && { isOwned: input.IsOwned.toString() })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
437
|
-
return [2
|
|
437
|
+
return [2, new __HttpRequest({
|
|
438
438
|
protocol: protocol,
|
|
439
439
|
hostname: hostname,
|
|
440
440
|
port: port,
|
|
@@ -451,13 +451,13 @@ export var serializeAws_restJson1ListNetworksCommand = function (input, context)
|
|
|
451
451
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
452
452
|
return __generator(this, function (_c) {
|
|
453
453
|
switch (_c.label) {
|
|
454
|
-
case 0: return [4
|
|
454
|
+
case 0: return [4, context.endpoint()];
|
|
455
455
|
case 1:
|
|
456
456
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
457
457
|
headers = {};
|
|
458
458
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/networks";
|
|
459
459
|
query = __assign(__assign(__assign(__assign(__assign({}, (input.Name !== undefined && { name: input.Name })), (input.Framework !== undefined && { framework: input.Framework })), (input.Status !== undefined && { status: input.Status })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
460
|
-
return [2
|
|
460
|
+
return [2, new __HttpRequest({
|
|
461
461
|
protocol: protocol,
|
|
462
462
|
hostname: hostname,
|
|
463
463
|
port: port,
|
|
@@ -474,7 +474,7 @@ export var serializeAws_restJson1ListNodesCommand = function (input, context) {
|
|
|
474
474
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
475
475
|
return __generator(this, function (_c) {
|
|
476
476
|
switch (_c.label) {
|
|
477
|
-
case 0: return [4
|
|
477
|
+
case 0: return [4, context.endpoint()];
|
|
478
478
|
case 1:
|
|
479
479
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
480
480
|
headers = {};
|
|
@@ -490,7 +490,7 @@ export var serializeAws_restJson1ListNodesCommand = function (input, context) {
|
|
|
490
490
|
throw new Error("No value provided for input HTTP label: NetworkId.");
|
|
491
491
|
}
|
|
492
492
|
query = __assign(__assign(__assign(__assign({}, (input.MemberId !== undefined && { memberId: input.MemberId })), (input.Status !== undefined && { status: input.Status })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
493
|
-
return [2
|
|
493
|
+
return [2, new __HttpRequest({
|
|
494
494
|
protocol: protocol,
|
|
495
495
|
hostname: hostname,
|
|
496
496
|
port: port,
|
|
@@ -507,7 +507,7 @@ export var serializeAws_restJson1ListProposalsCommand = function (input, context
|
|
|
507
507
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
508
508
|
return __generator(this, function (_c) {
|
|
509
509
|
switch (_c.label) {
|
|
510
|
-
case 0: return [4
|
|
510
|
+
case 0: return [4, context.endpoint()];
|
|
511
511
|
case 1:
|
|
512
512
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
513
513
|
headers = {};
|
|
@@ -523,7 +523,7 @@ export var serializeAws_restJson1ListProposalsCommand = function (input, context
|
|
|
523
523
|
throw new Error("No value provided for input HTTP label: NetworkId.");
|
|
524
524
|
}
|
|
525
525
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
526
|
-
return [2
|
|
526
|
+
return [2, new __HttpRequest({
|
|
527
527
|
protocol: protocol,
|
|
528
528
|
hostname: hostname,
|
|
529
529
|
port: port,
|
|
@@ -540,7 +540,7 @@ export var serializeAws_restJson1ListProposalVotesCommand = function (input, con
|
|
|
540
540
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
541
541
|
return __generator(this, function (_c) {
|
|
542
542
|
switch (_c.label) {
|
|
543
|
-
case 0: return [4
|
|
543
|
+
case 0: return [4, context.endpoint()];
|
|
544
544
|
case 1:
|
|
545
545
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
546
546
|
headers = {};
|
|
@@ -567,7 +567,7 @@ export var serializeAws_restJson1ListProposalVotesCommand = function (input, con
|
|
|
567
567
|
throw new Error("No value provided for input HTTP label: ProposalId.");
|
|
568
568
|
}
|
|
569
569
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
570
|
-
return [2
|
|
570
|
+
return [2, new __HttpRequest({
|
|
571
571
|
protocol: protocol,
|
|
572
572
|
hostname: hostname,
|
|
573
573
|
port: port,
|
|
@@ -584,7 +584,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
584
584
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
585
585
|
return __generator(this, function (_c) {
|
|
586
586
|
switch (_c.label) {
|
|
587
|
-
case 0: return [4
|
|
587
|
+
case 0: return [4, context.endpoint()];
|
|
588
588
|
case 1:
|
|
589
589
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
590
590
|
headers = {};
|
|
@@ -599,7 +599,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
599
599
|
else {
|
|
600
600
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
601
601
|
}
|
|
602
|
-
return [2
|
|
602
|
+
return [2, new __HttpRequest({
|
|
603
603
|
protocol: protocol,
|
|
604
604
|
hostname: hostname,
|
|
605
605
|
port: port,
|
|
@@ -615,7 +615,7 @@ export var serializeAws_restJson1RejectInvitationCommand = function (input, cont
|
|
|
615
615
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
616
616
|
return __generator(this, function (_c) {
|
|
617
617
|
switch (_c.label) {
|
|
618
|
-
case 0: return [4
|
|
618
|
+
case 0: return [4, context.endpoint()];
|
|
619
619
|
case 1:
|
|
620
620
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
621
621
|
headers = {};
|
|
@@ -630,7 +630,7 @@ export var serializeAws_restJson1RejectInvitationCommand = function (input, cont
|
|
|
630
630
|
else {
|
|
631
631
|
throw new Error("No value provided for input HTTP label: InvitationId.");
|
|
632
632
|
}
|
|
633
|
-
return [2
|
|
633
|
+
return [2, new __HttpRequest({
|
|
634
634
|
protocol: protocol,
|
|
635
635
|
hostname: hostname,
|
|
636
636
|
port: port,
|
|
@@ -646,7 +646,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
646
646
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
647
647
|
return __generator(this, function (_c) {
|
|
648
648
|
switch (_c.label) {
|
|
649
|
-
case 0: return [4
|
|
649
|
+
case 0: return [4, context.endpoint()];
|
|
650
650
|
case 1:
|
|
651
651
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
652
652
|
headers = {
|
|
@@ -665,7 +665,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
665
665
|
}
|
|
666
666
|
body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
|
|
667
667
|
input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
|
|
668
|
-
return [2
|
|
668
|
+
return [2, new __HttpRequest({
|
|
669
669
|
protocol: protocol,
|
|
670
670
|
hostname: hostname,
|
|
671
671
|
port: port,
|
|
@@ -681,7 +681,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
681
681
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
682
682
|
return __generator(this, function (_c) {
|
|
683
683
|
switch (_c.label) {
|
|
684
|
-
case 0: return [4
|
|
684
|
+
case 0: return [4, context.endpoint()];
|
|
685
685
|
case 1:
|
|
686
686
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
687
687
|
headers = {};
|
|
@@ -697,7 +697,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
697
697
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
698
698
|
}
|
|
699
699
|
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
700
|
-
return [2
|
|
700
|
+
return [2, new __HttpRequest({
|
|
701
701
|
protocol: protocol,
|
|
702
702
|
hostname: hostname,
|
|
703
703
|
port: port,
|
|
@@ -714,7 +714,7 @@ export var serializeAws_restJson1UpdateMemberCommand = function (input, context)
|
|
|
714
714
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
715
715
|
return __generator(this, function (_c) {
|
|
716
716
|
switch (_c.label) {
|
|
717
|
-
case 0: return [4
|
|
717
|
+
case 0: return [4, context.endpoint()];
|
|
718
718
|
case 1:
|
|
719
719
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
720
720
|
headers = {
|
|
@@ -745,7 +745,7 @@ export var serializeAws_restJson1UpdateMemberCommand = function (input, context)
|
|
|
745
745
|
input.LogPublishingConfiguration !== null && {
|
|
746
746
|
LogPublishingConfiguration: serializeAws_restJson1MemberLogPublishingConfiguration(input.LogPublishingConfiguration, context),
|
|
747
747
|
})));
|
|
748
|
-
return [2
|
|
748
|
+
return [2, new __HttpRequest({
|
|
749
749
|
protocol: protocol,
|
|
750
750
|
hostname: hostname,
|
|
751
751
|
port: port,
|
|
@@ -761,7 +761,7 @@ export var serializeAws_restJson1UpdateNodeCommand = function (input, context) {
|
|
|
761
761
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
762
762
|
return __generator(this, function (_c) {
|
|
763
763
|
switch (_c.label) {
|
|
764
|
-
case 0: return [4
|
|
764
|
+
case 0: return [4, context.endpoint()];
|
|
765
765
|
case 1:
|
|
766
766
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
767
767
|
headers = {
|
|
@@ -792,7 +792,7 @@ export var serializeAws_restJson1UpdateNodeCommand = function (input, context) {
|
|
|
792
792
|
input.LogPublishingConfiguration !== null && {
|
|
793
793
|
LogPublishingConfiguration: serializeAws_restJson1NodeLogPublishingConfiguration(input.LogPublishingConfiguration, context),
|
|
794
794
|
})), (input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId })));
|
|
795
|
-
return [2
|
|
795
|
+
return [2, new __HttpRequest({
|
|
796
796
|
protocol: protocol,
|
|
797
797
|
hostname: hostname,
|
|
798
798
|
port: port,
|
|
@@ -808,7 +808,7 @@ export var serializeAws_restJson1VoteOnProposalCommand = function (input, contex
|
|
|
808
808
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
809
809
|
return __generator(this, function (_c) {
|
|
810
810
|
switch (_c.label) {
|
|
811
|
-
case 0: return [4
|
|
811
|
+
case 0: return [4, context.endpoint()];
|
|
812
812
|
case 1:
|
|
813
813
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
814
814
|
headers = {
|
|
@@ -837,7 +837,7 @@ export var serializeAws_restJson1VoteOnProposalCommand = function (input, contex
|
|
|
837
837
|
throw new Error("No value provided for input HTTP label: ProposalId.");
|
|
838
838
|
}
|
|
839
839
|
body = JSON.stringify(__assign(__assign({}, (input.Vote !== undefined && input.Vote !== null && { Vote: input.Vote })), (input.VoterMemberId !== undefined && input.VoterMemberId !== null && { VoterMemberId: input.VoterMemberId })));
|
|
840
|
-
return [2
|
|
840
|
+
return [2, new __HttpRequest({
|
|
841
841
|
protocol: protocol,
|
|
842
842
|
hostname: hostname,
|
|
843
843
|
port: port,
|
|
@@ -855,7 +855,7 @@ export var deserializeAws_restJson1CreateMemberCommand = function (output, conte
|
|
|
855
855
|
switch (_c.label) {
|
|
856
856
|
case 0:
|
|
857
857
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
858
|
-
return [2
|
|
858
|
+
return [2, deserializeAws_restJson1CreateMemberCommandError(output, context)];
|
|
859
859
|
}
|
|
860
860
|
contents = {
|
|
861
861
|
$metadata: deserializeMetadata(output),
|
|
@@ -863,13 +863,13 @@ export var deserializeAws_restJson1CreateMemberCommand = function (output, conte
|
|
|
863
863
|
};
|
|
864
864
|
_a = __expectNonNull;
|
|
865
865
|
_b = __expectObject;
|
|
866
|
-
return [4
|
|
866
|
+
return [4, parseBody(output.body, context)];
|
|
867
867
|
case 1:
|
|
868
868
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
869
869
|
if (data.MemberId !== undefined && data.MemberId !== null) {
|
|
870
870
|
contents.MemberId = __expectString(data.MemberId);
|
|
871
871
|
}
|
|
872
|
-
return [2
|
|
872
|
+
return [2, Promise.resolve(contents)];
|
|
873
873
|
}
|
|
874
874
|
});
|
|
875
875
|
}); };
|
|
@@ -881,87 +881,87 @@ var deserializeAws_restJson1CreateMemberCommandError = function (output, context
|
|
|
881
881
|
case 0:
|
|
882
882
|
_a = [__assign({}, output)];
|
|
883
883
|
_m = {};
|
|
884
|
-
return [4
|
|
884
|
+
return [4, parseBody(output.body, context)];
|
|
885
885
|
case 1:
|
|
886
886
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
887
887
|
errorCode = "UnknownError";
|
|
888
888
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
889
|
_b = errorCode;
|
|
890
890
|
switch (_b) {
|
|
891
|
-
case "AccessDeniedException": return [3
|
|
892
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
893
|
-
case "InternalServiceErrorException": return [3
|
|
894
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
895
|
-
case "InvalidRequestException": return [3
|
|
896
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
897
|
-
case "ResourceAlreadyExistsException": return [3
|
|
898
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException": return [3
|
|
899
|
-
case "ResourceLimitExceededException": return [3
|
|
900
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException": return [3
|
|
901
|
-
case "ResourceNotFoundException": return [3
|
|
902
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
903
|
-
case "ResourceNotReadyException": return [3
|
|
904
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3
|
|
905
|
-
case "ThrottlingException": return [3
|
|
906
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
907
|
-
case "TooManyTagsException": return [3
|
|
908
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3
|
|
909
|
-
}
|
|
910
|
-
return [3
|
|
891
|
+
case "AccessDeniedException": return [3, 2];
|
|
892
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
893
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
894
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
895
|
+
case "InvalidRequestException": return [3, 6];
|
|
896
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
897
|
+
case "ResourceAlreadyExistsException": return [3, 8];
|
|
898
|
+
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException": return [3, 8];
|
|
899
|
+
case "ResourceLimitExceededException": return [3, 10];
|
|
900
|
+
case "com.amazonaws.managedblockchain#ResourceLimitExceededException": return [3, 10];
|
|
901
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
902
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 12];
|
|
903
|
+
case "ResourceNotReadyException": return [3, 14];
|
|
904
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3, 14];
|
|
905
|
+
case "ThrottlingException": return [3, 16];
|
|
906
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 16];
|
|
907
|
+
case "TooManyTagsException": return [3, 18];
|
|
908
|
+
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3, 18];
|
|
909
|
+
}
|
|
910
|
+
return [3, 20];
|
|
911
911
|
case 2:
|
|
912
912
|
_c = [{}];
|
|
913
|
-
return [4
|
|
913
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
914
914
|
case 3:
|
|
915
915
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
916
|
-
return [3
|
|
916
|
+
return [3, 21];
|
|
917
917
|
case 4:
|
|
918
918
|
_d = [{}];
|
|
919
|
-
return [4
|
|
919
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
920
920
|
case 5:
|
|
921
921
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
922
|
-
return [3
|
|
922
|
+
return [3, 21];
|
|
923
923
|
case 6:
|
|
924
924
|
_e = [{}];
|
|
925
|
-
return [4
|
|
925
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
926
926
|
case 7:
|
|
927
927
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
928
|
-
return [3
|
|
928
|
+
return [3, 21];
|
|
929
929
|
case 8:
|
|
930
930
|
_f = [{}];
|
|
931
|
-
return [4
|
|
931
|
+
return [4, deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
932
932
|
case 9:
|
|
933
933
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
934
|
-
return [3
|
|
934
|
+
return [3, 21];
|
|
935
935
|
case 10:
|
|
936
936
|
_g = [{}];
|
|
937
|
-
return [4
|
|
937
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
938
938
|
case 11:
|
|
939
939
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
940
|
-
return [3
|
|
940
|
+
return [3, 21];
|
|
941
941
|
case 12:
|
|
942
942
|
_h = [{}];
|
|
943
|
-
return [4
|
|
943
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
944
944
|
case 13:
|
|
945
945
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
946
|
-
return [3
|
|
946
|
+
return [3, 21];
|
|
947
947
|
case 14:
|
|
948
948
|
_j = [{}];
|
|
949
|
-
return [4
|
|
949
|
+
return [4, deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context)];
|
|
950
950
|
case 15:
|
|
951
951
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
952
|
-
return [3
|
|
952
|
+
return [3, 21];
|
|
953
953
|
case 16:
|
|
954
954
|
_k = [{}];
|
|
955
|
-
return [4
|
|
955
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
956
956
|
case 17:
|
|
957
957
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
958
|
-
return [3
|
|
958
|
+
return [3, 21];
|
|
959
959
|
case 18:
|
|
960
960
|
_l = [{}];
|
|
961
|
-
return [4
|
|
961
|
+
return [4, deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
962
962
|
case 19:
|
|
963
963
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
964
|
-
return [3
|
|
964
|
+
return [3, 21];
|
|
965
965
|
case 20:
|
|
966
966
|
parsedBody = parsedOutput.body;
|
|
967
967
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -971,7 +971,7 @@ var deserializeAws_restJson1CreateMemberCommandError = function (output, context
|
|
|
971
971
|
message = response.message || response.Message || errorCode;
|
|
972
972
|
response.message = message;
|
|
973
973
|
delete response.Message;
|
|
974
|
-
return [2
|
|
974
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
975
975
|
}
|
|
976
976
|
});
|
|
977
977
|
}); };
|
|
@@ -981,7 +981,7 @@ export var deserializeAws_restJson1CreateNetworkCommand = function (output, cont
|
|
|
981
981
|
switch (_c.label) {
|
|
982
982
|
case 0:
|
|
983
983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return [2
|
|
984
|
+
return [2, deserializeAws_restJson1CreateNetworkCommandError(output, context)];
|
|
985
985
|
}
|
|
986
986
|
contents = {
|
|
987
987
|
$metadata: deserializeMetadata(output),
|
|
@@ -990,7 +990,7 @@ export var deserializeAws_restJson1CreateNetworkCommand = function (output, cont
|
|
|
990
990
|
};
|
|
991
991
|
_a = __expectNonNull;
|
|
992
992
|
_b = __expectObject;
|
|
993
|
-
return [4
|
|
993
|
+
return [4, parseBody(output.body, context)];
|
|
994
994
|
case 1:
|
|
995
995
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
996
996
|
if (data.MemberId !== undefined && data.MemberId !== null) {
|
|
@@ -999,7 +999,7 @@ export var deserializeAws_restJson1CreateNetworkCommand = function (output, cont
|
|
|
999
999
|
if (data.NetworkId !== undefined && data.NetworkId !== null) {
|
|
1000
1000
|
contents.NetworkId = __expectString(data.NetworkId);
|
|
1001
1001
|
}
|
|
1002
|
-
return [2
|
|
1002
|
+
return [2, Promise.resolve(contents)];
|
|
1003
1003
|
}
|
|
1004
1004
|
});
|
|
1005
1005
|
}); };
|
|
@@ -1011,71 +1011,71 @@ var deserializeAws_restJson1CreateNetworkCommandError = function (output, contex
|
|
|
1011
1011
|
case 0:
|
|
1012
1012
|
_a = [__assign({}, output)];
|
|
1013
1013
|
_k = {};
|
|
1014
|
-
return [4
|
|
1014
|
+
return [4, parseBody(output.body, context)];
|
|
1015
1015
|
case 1:
|
|
1016
1016
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1017
1017
|
errorCode = "UnknownError";
|
|
1018
1018
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
1019
|
_b = errorCode;
|
|
1020
1020
|
switch (_b) {
|
|
1021
|
-
case "AccessDeniedException": return [3
|
|
1022
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1023
|
-
case "InternalServiceErrorException": return [3
|
|
1024
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1025
|
-
case "InvalidRequestException": return [3
|
|
1026
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1027
|
-
case "ResourceAlreadyExistsException": return [3
|
|
1028
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException": return [3
|
|
1029
|
-
case "ResourceLimitExceededException": return [3
|
|
1030
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException": return [3
|
|
1031
|
-
case "ThrottlingException": return [3
|
|
1032
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1033
|
-
case "TooManyTagsException": return [3
|
|
1034
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3
|
|
1035
|
-
}
|
|
1036
|
-
return [3
|
|
1021
|
+
case "AccessDeniedException": return [3, 2];
|
|
1022
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1023
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1024
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1025
|
+
case "InvalidRequestException": return [3, 6];
|
|
1026
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1027
|
+
case "ResourceAlreadyExistsException": return [3, 8];
|
|
1028
|
+
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException": return [3, 8];
|
|
1029
|
+
case "ResourceLimitExceededException": return [3, 10];
|
|
1030
|
+
case "com.amazonaws.managedblockchain#ResourceLimitExceededException": return [3, 10];
|
|
1031
|
+
case "ThrottlingException": return [3, 12];
|
|
1032
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 12];
|
|
1033
|
+
case "TooManyTagsException": return [3, 14];
|
|
1034
|
+
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3, 14];
|
|
1035
|
+
}
|
|
1036
|
+
return [3, 16];
|
|
1037
1037
|
case 2:
|
|
1038
1038
|
_c = [{}];
|
|
1039
|
-
return [4
|
|
1039
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1040
1040
|
case 3:
|
|
1041
1041
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1042
|
-
return [3
|
|
1042
|
+
return [3, 17];
|
|
1043
1043
|
case 4:
|
|
1044
1044
|
_d = [{}];
|
|
1045
|
-
return [4
|
|
1045
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1046
1046
|
case 5:
|
|
1047
1047
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1048
|
-
return [3
|
|
1048
|
+
return [3, 17];
|
|
1049
1049
|
case 6:
|
|
1050
1050
|
_e = [{}];
|
|
1051
|
-
return [4
|
|
1051
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1052
1052
|
case 7:
|
|
1053
1053
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1054
|
-
return [3
|
|
1054
|
+
return [3, 17];
|
|
1055
1055
|
case 8:
|
|
1056
1056
|
_f = [{}];
|
|
1057
|
-
return [4
|
|
1057
|
+
return [4, deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1058
1058
|
case 9:
|
|
1059
1059
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1060
|
-
return [3
|
|
1060
|
+
return [3, 17];
|
|
1061
1061
|
case 10:
|
|
1062
1062
|
_g = [{}];
|
|
1063
|
-
return [4
|
|
1063
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1064
1064
|
case 11:
|
|
1065
1065
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1066
|
-
return [3
|
|
1066
|
+
return [3, 17];
|
|
1067
1067
|
case 12:
|
|
1068
1068
|
_h = [{}];
|
|
1069
|
-
return [4
|
|
1069
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1070
1070
|
case 13:
|
|
1071
1071
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1072
|
-
return [3
|
|
1072
|
+
return [3, 17];
|
|
1073
1073
|
case 14:
|
|
1074
1074
|
_j = [{}];
|
|
1075
|
-
return [4
|
|
1075
|
+
return [4, deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1076
1076
|
case 15:
|
|
1077
1077
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1078
|
-
return [3
|
|
1078
|
+
return [3, 17];
|
|
1079
1079
|
case 16:
|
|
1080
1080
|
parsedBody = parsedOutput.body;
|
|
1081
1081
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1085,7 +1085,7 @@ var deserializeAws_restJson1CreateNetworkCommandError = function (output, contex
|
|
|
1085
1085
|
message = response.message || response.Message || errorCode;
|
|
1086
1086
|
response.message = message;
|
|
1087
1087
|
delete response.Message;
|
|
1088
|
-
return [2
|
|
1088
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1089
1089
|
}
|
|
1090
1090
|
});
|
|
1091
1091
|
}); };
|
|
@@ -1095,7 +1095,7 @@ export var deserializeAws_restJson1CreateNodeCommand = function (output, context
|
|
|
1095
1095
|
switch (_c.label) {
|
|
1096
1096
|
case 0:
|
|
1097
1097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1098
|
-
return [2
|
|
1098
|
+
return [2, deserializeAws_restJson1CreateNodeCommandError(output, context)];
|
|
1099
1099
|
}
|
|
1100
1100
|
contents = {
|
|
1101
1101
|
$metadata: deserializeMetadata(output),
|
|
@@ -1103,13 +1103,13 @@ export var deserializeAws_restJson1CreateNodeCommand = function (output, context
|
|
|
1103
1103
|
};
|
|
1104
1104
|
_a = __expectNonNull;
|
|
1105
1105
|
_b = __expectObject;
|
|
1106
|
-
return [4
|
|
1106
|
+
return [4, parseBody(output.body, context)];
|
|
1107
1107
|
case 1:
|
|
1108
1108
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1109
1109
|
if (data.NodeId !== undefined && data.NodeId !== null) {
|
|
1110
1110
|
contents.NodeId = __expectString(data.NodeId);
|
|
1111
1111
|
}
|
|
1112
|
-
return [2
|
|
1112
|
+
return [2, Promise.resolve(contents)];
|
|
1113
1113
|
}
|
|
1114
1114
|
});
|
|
1115
1115
|
}); };
|
|
@@ -1121,87 +1121,87 @@ var deserializeAws_restJson1CreateNodeCommandError = function (output, context)
|
|
|
1121
1121
|
case 0:
|
|
1122
1122
|
_a = [__assign({}, output)];
|
|
1123
1123
|
_m = {};
|
|
1124
|
-
return [4
|
|
1124
|
+
return [4, parseBody(output.body, context)];
|
|
1125
1125
|
case 1:
|
|
1126
1126
|
parsedOutput = __assign.apply(void 0, _a.concat([(_m.body = _o.sent(), _m)]));
|
|
1127
1127
|
errorCode = "UnknownError";
|
|
1128
1128
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1129
1129
|
_b = errorCode;
|
|
1130
1130
|
switch (_b) {
|
|
1131
|
-
case "AccessDeniedException": return [3
|
|
1132
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1133
|
-
case "InternalServiceErrorException": return [3
|
|
1134
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1135
|
-
case "InvalidRequestException": return [3
|
|
1136
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1137
|
-
case "ResourceAlreadyExistsException": return [3
|
|
1138
|
-
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException": return [3
|
|
1139
|
-
case "ResourceLimitExceededException": return [3
|
|
1140
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException": return [3
|
|
1141
|
-
case "ResourceNotFoundException": return [3
|
|
1142
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
1143
|
-
case "ResourceNotReadyException": return [3
|
|
1144
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3
|
|
1145
|
-
case "ThrottlingException": return [3
|
|
1146
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1147
|
-
case "TooManyTagsException": return [3
|
|
1148
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3
|
|
1149
|
-
}
|
|
1150
|
-
return [3
|
|
1131
|
+
case "AccessDeniedException": return [3, 2];
|
|
1132
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1133
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1134
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1135
|
+
case "InvalidRequestException": return [3, 6];
|
|
1136
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1137
|
+
case "ResourceAlreadyExistsException": return [3, 8];
|
|
1138
|
+
case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException": return [3, 8];
|
|
1139
|
+
case "ResourceLimitExceededException": return [3, 10];
|
|
1140
|
+
case "com.amazonaws.managedblockchain#ResourceLimitExceededException": return [3, 10];
|
|
1141
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1142
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 12];
|
|
1143
|
+
case "ResourceNotReadyException": return [3, 14];
|
|
1144
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3, 14];
|
|
1145
|
+
case "ThrottlingException": return [3, 16];
|
|
1146
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 16];
|
|
1147
|
+
case "TooManyTagsException": return [3, 18];
|
|
1148
|
+
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3, 18];
|
|
1149
|
+
}
|
|
1150
|
+
return [3, 20];
|
|
1151
1151
|
case 2:
|
|
1152
1152
|
_c = [{}];
|
|
1153
|
-
return [4
|
|
1153
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1154
1154
|
case 3:
|
|
1155
1155
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1156
|
-
return [3
|
|
1156
|
+
return [3, 21];
|
|
1157
1157
|
case 4:
|
|
1158
1158
|
_d = [{}];
|
|
1159
|
-
return [4
|
|
1159
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1160
1160
|
case 5:
|
|
1161
1161
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1162
|
-
return [3
|
|
1162
|
+
return [3, 21];
|
|
1163
1163
|
case 6:
|
|
1164
1164
|
_e = [{}];
|
|
1165
|
-
return [4
|
|
1165
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1166
1166
|
case 7:
|
|
1167
1167
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1168
|
-
return [3
|
|
1168
|
+
return [3, 21];
|
|
1169
1169
|
case 8:
|
|
1170
1170
|
_f = [{}];
|
|
1171
|
-
return [4
|
|
1171
|
+
return [4, deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1172
1172
|
case 9:
|
|
1173
1173
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1174
|
-
return [3
|
|
1174
|
+
return [3, 21];
|
|
1175
1175
|
case 10:
|
|
1176
1176
|
_g = [{}];
|
|
1177
|
-
return [4
|
|
1177
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1178
1178
|
case 11:
|
|
1179
1179
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1180
|
-
return [3
|
|
1180
|
+
return [3, 21];
|
|
1181
1181
|
case 12:
|
|
1182
1182
|
_h = [{}];
|
|
1183
|
-
return [4
|
|
1183
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1184
1184
|
case 13:
|
|
1185
1185
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1186
|
-
return [3
|
|
1186
|
+
return [3, 21];
|
|
1187
1187
|
case 14:
|
|
1188
1188
|
_j = [{}];
|
|
1189
|
-
return [4
|
|
1189
|
+
return [4, deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context)];
|
|
1190
1190
|
case 15:
|
|
1191
1191
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1192
|
-
return [3
|
|
1192
|
+
return [3, 21];
|
|
1193
1193
|
case 16:
|
|
1194
1194
|
_k = [{}];
|
|
1195
|
-
return [4
|
|
1195
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1196
1196
|
case 17:
|
|
1197
1197
|
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1198
|
-
return [3
|
|
1198
|
+
return [3, 21];
|
|
1199
1199
|
case 18:
|
|
1200
1200
|
_l = [{}];
|
|
1201
|
-
return [4
|
|
1201
|
+
return [4, deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1202
1202
|
case 19:
|
|
1203
1203
|
response = __assign.apply(void 0, [__assign.apply(void 0, _l.concat([(_o.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1204
|
-
return [3
|
|
1204
|
+
return [3, 21];
|
|
1205
1205
|
case 20:
|
|
1206
1206
|
parsedBody = parsedOutput.body;
|
|
1207
1207
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1211,7 +1211,7 @@ var deserializeAws_restJson1CreateNodeCommandError = function (output, context)
|
|
|
1211
1211
|
message = response.message || response.Message || errorCode;
|
|
1212
1212
|
response.message = message;
|
|
1213
1213
|
delete response.Message;
|
|
1214
|
-
return [2
|
|
1214
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1215
1215
|
}
|
|
1216
1216
|
});
|
|
1217
1217
|
}); };
|
|
@@ -1221,7 +1221,7 @@ export var deserializeAws_restJson1CreateProposalCommand = function (output, con
|
|
|
1221
1221
|
switch (_c.label) {
|
|
1222
1222
|
case 0:
|
|
1223
1223
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1224
|
-
return [2
|
|
1224
|
+
return [2, deserializeAws_restJson1CreateProposalCommandError(output, context)];
|
|
1225
1225
|
}
|
|
1226
1226
|
contents = {
|
|
1227
1227
|
$metadata: deserializeMetadata(output),
|
|
@@ -1229,13 +1229,13 @@ export var deserializeAws_restJson1CreateProposalCommand = function (output, con
|
|
|
1229
1229
|
};
|
|
1230
1230
|
_a = __expectNonNull;
|
|
1231
1231
|
_b = __expectObject;
|
|
1232
|
-
return [4
|
|
1232
|
+
return [4, parseBody(output.body, context)];
|
|
1233
1233
|
case 1:
|
|
1234
1234
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1235
1235
|
if (data.ProposalId !== undefined && data.ProposalId !== null) {
|
|
1236
1236
|
contents.ProposalId = __expectString(data.ProposalId);
|
|
1237
1237
|
}
|
|
1238
|
-
return [2
|
|
1238
|
+
return [2, Promise.resolve(contents)];
|
|
1239
1239
|
}
|
|
1240
1240
|
});
|
|
1241
1241
|
}); };
|
|
@@ -1247,71 +1247,71 @@ var deserializeAws_restJson1CreateProposalCommandError = function (output, conte
|
|
|
1247
1247
|
case 0:
|
|
1248
1248
|
_a = [__assign({}, output)];
|
|
1249
1249
|
_k = {};
|
|
1250
|
-
return [4
|
|
1250
|
+
return [4, parseBody(output.body, context)];
|
|
1251
1251
|
case 1:
|
|
1252
1252
|
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
1253
1253
|
errorCode = "UnknownError";
|
|
1254
1254
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
1255
|
_b = errorCode;
|
|
1256
1256
|
switch (_b) {
|
|
1257
|
-
case "AccessDeniedException": return [3
|
|
1258
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1259
|
-
case "InternalServiceErrorException": return [3
|
|
1260
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1261
|
-
case "InvalidRequestException": return [3
|
|
1262
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1263
|
-
case "ResourceNotFoundException": return [3
|
|
1264
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
1265
|
-
case "ResourceNotReadyException": return [3
|
|
1266
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3
|
|
1267
|
-
case "ThrottlingException": return [3
|
|
1268
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1269
|
-
case "TooManyTagsException": return [3
|
|
1270
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3
|
|
1271
|
-
}
|
|
1272
|
-
return [3
|
|
1257
|
+
case "AccessDeniedException": return [3, 2];
|
|
1258
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1259
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1260
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1261
|
+
case "InvalidRequestException": return [3, 6];
|
|
1262
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1263
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1264
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
1265
|
+
case "ResourceNotReadyException": return [3, 10];
|
|
1266
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3, 10];
|
|
1267
|
+
case "ThrottlingException": return [3, 12];
|
|
1268
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 12];
|
|
1269
|
+
case "TooManyTagsException": return [3, 14];
|
|
1270
|
+
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3, 14];
|
|
1271
|
+
}
|
|
1272
|
+
return [3, 16];
|
|
1273
1273
|
case 2:
|
|
1274
1274
|
_c = [{}];
|
|
1275
|
-
return [4
|
|
1275
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1276
1276
|
case 3:
|
|
1277
1277
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1278
|
-
return [3
|
|
1278
|
+
return [3, 17];
|
|
1279
1279
|
case 4:
|
|
1280
1280
|
_d = [{}];
|
|
1281
|
-
return [4
|
|
1281
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1282
1282
|
case 5:
|
|
1283
1283
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1284
|
-
return [3
|
|
1284
|
+
return [3, 17];
|
|
1285
1285
|
case 6:
|
|
1286
1286
|
_e = [{}];
|
|
1287
|
-
return [4
|
|
1287
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1288
1288
|
case 7:
|
|
1289
1289
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1290
|
-
return [3
|
|
1290
|
+
return [3, 17];
|
|
1291
1291
|
case 8:
|
|
1292
1292
|
_f = [{}];
|
|
1293
|
-
return [4
|
|
1293
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1294
1294
|
case 9:
|
|
1295
1295
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1296
|
-
return [3
|
|
1296
|
+
return [3, 17];
|
|
1297
1297
|
case 10:
|
|
1298
1298
|
_g = [{}];
|
|
1299
|
-
return [4
|
|
1299
|
+
return [4, deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context)];
|
|
1300
1300
|
case 11:
|
|
1301
1301
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1302
|
-
return [3
|
|
1302
|
+
return [3, 17];
|
|
1303
1303
|
case 12:
|
|
1304
1304
|
_h = [{}];
|
|
1305
|
-
return [4
|
|
1305
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1306
1306
|
case 13:
|
|
1307
1307
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1308
|
-
return [3
|
|
1308
|
+
return [3, 17];
|
|
1309
1309
|
case 14:
|
|
1310
1310
|
_j = [{}];
|
|
1311
|
-
return [4
|
|
1311
|
+
return [4, deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1312
1312
|
case 15:
|
|
1313
1313
|
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1314
|
-
return [3
|
|
1314
|
+
return [3, 17];
|
|
1315
1315
|
case 16:
|
|
1316
1316
|
parsedBody = parsedOutput.body;
|
|
1317
1317
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1321,7 +1321,7 @@ var deserializeAws_restJson1CreateProposalCommandError = function (output, conte
|
|
|
1321
1321
|
message = response.message || response.Message || errorCode;
|
|
1322
1322
|
response.message = message;
|
|
1323
1323
|
delete response.Message;
|
|
1324
|
-
return [2
|
|
1324
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1325
1325
|
}
|
|
1326
1326
|
});
|
|
1327
1327
|
}); };
|
|
@@ -1331,15 +1331,15 @@ export var deserializeAws_restJson1DeleteMemberCommand = function (output, conte
|
|
|
1331
1331
|
switch (_a.label) {
|
|
1332
1332
|
case 0:
|
|
1333
1333
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
|
-
return [2
|
|
1334
|
+
return [2, deserializeAws_restJson1DeleteMemberCommandError(output, context)];
|
|
1335
1335
|
}
|
|
1336
1336
|
contents = {
|
|
1337
1337
|
$metadata: deserializeMetadata(output),
|
|
1338
1338
|
};
|
|
1339
|
-
return [4
|
|
1339
|
+
return [4, collectBody(output.body, context)];
|
|
1340
1340
|
case 1:
|
|
1341
1341
|
_a.sent();
|
|
1342
|
-
return [2
|
|
1342
|
+
return [2, Promise.resolve(contents)];
|
|
1343
1343
|
}
|
|
1344
1344
|
});
|
|
1345
1345
|
}); };
|
|
@@ -1351,63 +1351,63 @@ var deserializeAws_restJson1DeleteMemberCommandError = function (output, context
|
|
|
1351
1351
|
case 0:
|
|
1352
1352
|
_a = [__assign({}, output)];
|
|
1353
1353
|
_j = {};
|
|
1354
|
-
return [4
|
|
1354
|
+
return [4, parseBody(output.body, context)];
|
|
1355
1355
|
case 1:
|
|
1356
1356
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1357
1357
|
errorCode = "UnknownError";
|
|
1358
1358
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1359
1359
|
_b = errorCode;
|
|
1360
1360
|
switch (_b) {
|
|
1361
|
-
case "AccessDeniedException": return [3
|
|
1362
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1363
|
-
case "InternalServiceErrorException": return [3
|
|
1364
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1365
|
-
case "InvalidRequestException": return [3
|
|
1366
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1367
|
-
case "ResourceNotFoundException": return [3
|
|
1368
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
1369
|
-
case "ResourceNotReadyException": return [3
|
|
1370
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3
|
|
1371
|
-
case "ThrottlingException": return [3
|
|
1372
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1373
|
-
}
|
|
1374
|
-
return [3
|
|
1361
|
+
case "AccessDeniedException": return [3, 2];
|
|
1362
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1363
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1364
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1365
|
+
case "InvalidRequestException": return [3, 6];
|
|
1366
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1367
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1368
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
1369
|
+
case "ResourceNotReadyException": return [3, 10];
|
|
1370
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3, 10];
|
|
1371
|
+
case "ThrottlingException": return [3, 12];
|
|
1372
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 12];
|
|
1373
|
+
}
|
|
1374
|
+
return [3, 14];
|
|
1375
1375
|
case 2:
|
|
1376
1376
|
_c = [{}];
|
|
1377
|
-
return [4
|
|
1377
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1378
1378
|
case 3:
|
|
1379
1379
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1380
|
-
return [3
|
|
1380
|
+
return [3, 15];
|
|
1381
1381
|
case 4:
|
|
1382
1382
|
_d = [{}];
|
|
1383
|
-
return [4
|
|
1383
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1384
1384
|
case 5:
|
|
1385
1385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1386
|
-
return [3
|
|
1386
|
+
return [3, 15];
|
|
1387
1387
|
case 6:
|
|
1388
1388
|
_e = [{}];
|
|
1389
|
-
return [4
|
|
1389
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1390
1390
|
case 7:
|
|
1391
1391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1392
|
-
return [3
|
|
1392
|
+
return [3, 15];
|
|
1393
1393
|
case 8:
|
|
1394
1394
|
_f = [{}];
|
|
1395
|
-
return [4
|
|
1395
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1396
1396
|
case 9:
|
|
1397
1397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1398
|
-
return [3
|
|
1398
|
+
return [3, 15];
|
|
1399
1399
|
case 10:
|
|
1400
1400
|
_g = [{}];
|
|
1401
|
-
return [4
|
|
1401
|
+
return [4, deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context)];
|
|
1402
1402
|
case 11:
|
|
1403
1403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1404
|
-
return [3
|
|
1404
|
+
return [3, 15];
|
|
1405
1405
|
case 12:
|
|
1406
1406
|
_h = [{}];
|
|
1407
|
-
return [4
|
|
1407
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1408
1408
|
case 13:
|
|
1409
1409
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1410
|
-
return [3
|
|
1410
|
+
return [3, 15];
|
|
1411
1411
|
case 14:
|
|
1412
1412
|
parsedBody = parsedOutput.body;
|
|
1413
1413
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1417,7 +1417,7 @@ var deserializeAws_restJson1DeleteMemberCommandError = function (output, context
|
|
|
1417
1417
|
message = response.message || response.Message || errorCode;
|
|
1418
1418
|
response.message = message;
|
|
1419
1419
|
delete response.Message;
|
|
1420
|
-
return [2
|
|
1420
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1421
1421
|
}
|
|
1422
1422
|
});
|
|
1423
1423
|
}); };
|
|
@@ -1427,15 +1427,15 @@ export var deserializeAws_restJson1DeleteNodeCommand = function (output, context
|
|
|
1427
1427
|
switch (_a.label) {
|
|
1428
1428
|
case 0:
|
|
1429
1429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
|
-
return [2
|
|
1430
|
+
return [2, deserializeAws_restJson1DeleteNodeCommandError(output, context)];
|
|
1431
1431
|
}
|
|
1432
1432
|
contents = {
|
|
1433
1433
|
$metadata: deserializeMetadata(output),
|
|
1434
1434
|
};
|
|
1435
|
-
return [4
|
|
1435
|
+
return [4, collectBody(output.body, context)];
|
|
1436
1436
|
case 1:
|
|
1437
1437
|
_a.sent();
|
|
1438
|
-
return [2
|
|
1438
|
+
return [2, Promise.resolve(contents)];
|
|
1439
1439
|
}
|
|
1440
1440
|
});
|
|
1441
1441
|
}); };
|
|
@@ -1447,63 +1447,63 @@ var deserializeAws_restJson1DeleteNodeCommandError = function (output, context)
|
|
|
1447
1447
|
case 0:
|
|
1448
1448
|
_a = [__assign({}, output)];
|
|
1449
1449
|
_j = {};
|
|
1450
|
-
return [4
|
|
1450
|
+
return [4, parseBody(output.body, context)];
|
|
1451
1451
|
case 1:
|
|
1452
1452
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1453
1453
|
errorCode = "UnknownError";
|
|
1454
1454
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1455
|
_b = errorCode;
|
|
1456
1456
|
switch (_b) {
|
|
1457
|
-
case "AccessDeniedException": return [3
|
|
1458
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1459
|
-
case "InternalServiceErrorException": return [3
|
|
1460
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1461
|
-
case "InvalidRequestException": return [3
|
|
1462
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1463
|
-
case "ResourceNotFoundException": return [3
|
|
1464
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
1465
|
-
case "ResourceNotReadyException": return [3
|
|
1466
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3
|
|
1467
|
-
case "ThrottlingException": return [3
|
|
1468
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1469
|
-
}
|
|
1470
|
-
return [3
|
|
1457
|
+
case "AccessDeniedException": return [3, 2];
|
|
1458
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1459
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1460
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1461
|
+
case "InvalidRequestException": return [3, 6];
|
|
1462
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1463
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1464
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
1465
|
+
case "ResourceNotReadyException": return [3, 10];
|
|
1466
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3, 10];
|
|
1467
|
+
case "ThrottlingException": return [3, 12];
|
|
1468
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 12];
|
|
1469
|
+
}
|
|
1470
|
+
return [3, 14];
|
|
1471
1471
|
case 2:
|
|
1472
1472
|
_c = [{}];
|
|
1473
|
-
return [4
|
|
1473
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1474
1474
|
case 3:
|
|
1475
1475
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1476
|
-
return [3
|
|
1476
|
+
return [3, 15];
|
|
1477
1477
|
case 4:
|
|
1478
1478
|
_d = [{}];
|
|
1479
|
-
return [4
|
|
1479
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1480
1480
|
case 5:
|
|
1481
1481
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1482
|
-
return [3
|
|
1482
|
+
return [3, 15];
|
|
1483
1483
|
case 6:
|
|
1484
1484
|
_e = [{}];
|
|
1485
|
-
return [4
|
|
1485
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1486
1486
|
case 7:
|
|
1487
1487
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1488
|
-
return [3
|
|
1488
|
+
return [3, 15];
|
|
1489
1489
|
case 8:
|
|
1490
1490
|
_f = [{}];
|
|
1491
|
-
return [4
|
|
1491
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1492
1492
|
case 9:
|
|
1493
1493
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1494
|
-
return [3
|
|
1494
|
+
return [3, 15];
|
|
1495
1495
|
case 10:
|
|
1496
1496
|
_g = [{}];
|
|
1497
|
-
return [4
|
|
1497
|
+
return [4, deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context)];
|
|
1498
1498
|
case 11:
|
|
1499
1499
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1500
|
-
return [3
|
|
1500
|
+
return [3, 15];
|
|
1501
1501
|
case 12:
|
|
1502
1502
|
_h = [{}];
|
|
1503
|
-
return [4
|
|
1503
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1504
1504
|
case 13:
|
|
1505
1505
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1506
|
-
return [3
|
|
1506
|
+
return [3, 15];
|
|
1507
1507
|
case 14:
|
|
1508
1508
|
parsedBody = parsedOutput.body;
|
|
1509
1509
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1513,7 +1513,7 @@ var deserializeAws_restJson1DeleteNodeCommandError = function (output, context)
|
|
|
1513
1513
|
message = response.message || response.Message || errorCode;
|
|
1514
1514
|
response.message = message;
|
|
1515
1515
|
delete response.Message;
|
|
1516
|
-
return [2
|
|
1516
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1517
1517
|
}
|
|
1518
1518
|
});
|
|
1519
1519
|
}); };
|
|
@@ -1523,7 +1523,7 @@ export var deserializeAws_restJson1GetMemberCommand = function (output, context)
|
|
|
1523
1523
|
switch (_c.label) {
|
|
1524
1524
|
case 0:
|
|
1525
1525
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1526
|
-
return [2
|
|
1526
|
+
return [2, deserializeAws_restJson1GetMemberCommandError(output, context)];
|
|
1527
1527
|
}
|
|
1528
1528
|
contents = {
|
|
1529
1529
|
$metadata: deserializeMetadata(output),
|
|
@@ -1531,13 +1531,13 @@ export var deserializeAws_restJson1GetMemberCommand = function (output, context)
|
|
|
1531
1531
|
};
|
|
1532
1532
|
_a = __expectNonNull;
|
|
1533
1533
|
_b = __expectObject;
|
|
1534
|
-
return [4
|
|
1534
|
+
return [4, parseBody(output.body, context)];
|
|
1535
1535
|
case 1:
|
|
1536
1536
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1537
1537
|
if (data.Member !== undefined && data.Member !== null) {
|
|
1538
1538
|
contents.Member = deserializeAws_restJson1Member(data.Member, context);
|
|
1539
1539
|
}
|
|
1540
|
-
return [2
|
|
1540
|
+
return [2, Promise.resolve(contents)];
|
|
1541
1541
|
}
|
|
1542
1542
|
});
|
|
1543
1543
|
}); };
|
|
@@ -1549,55 +1549,55 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
1549
1549
|
case 0:
|
|
1550
1550
|
_a = [__assign({}, output)];
|
|
1551
1551
|
_h = {};
|
|
1552
|
-
return [4
|
|
1552
|
+
return [4, parseBody(output.body, context)];
|
|
1553
1553
|
case 1:
|
|
1554
1554
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1555
1555
|
errorCode = "UnknownError";
|
|
1556
1556
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
1557
|
_b = errorCode;
|
|
1558
1558
|
switch (_b) {
|
|
1559
|
-
case "AccessDeniedException": return [3
|
|
1560
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1561
|
-
case "InternalServiceErrorException": return [3
|
|
1562
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1563
|
-
case "InvalidRequestException": return [3
|
|
1564
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1565
|
-
case "ResourceNotFoundException": return [3
|
|
1566
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
1567
|
-
case "ThrottlingException": return [3
|
|
1568
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1569
|
-
}
|
|
1570
|
-
return [3
|
|
1559
|
+
case "AccessDeniedException": return [3, 2];
|
|
1560
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1561
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1562
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1563
|
+
case "InvalidRequestException": return [3, 6];
|
|
1564
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1565
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1566
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
1567
|
+
case "ThrottlingException": return [3, 10];
|
|
1568
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 10];
|
|
1569
|
+
}
|
|
1570
|
+
return [3, 12];
|
|
1571
1571
|
case 2:
|
|
1572
1572
|
_c = [{}];
|
|
1573
|
-
return [4
|
|
1573
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1574
1574
|
case 3:
|
|
1575
1575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1576
|
-
return [3
|
|
1576
|
+
return [3, 13];
|
|
1577
1577
|
case 4:
|
|
1578
1578
|
_d = [{}];
|
|
1579
|
-
return [4
|
|
1579
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1580
1580
|
case 5:
|
|
1581
1581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1582
|
-
return [3
|
|
1582
|
+
return [3, 13];
|
|
1583
1583
|
case 6:
|
|
1584
1584
|
_e = [{}];
|
|
1585
|
-
return [4
|
|
1585
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1586
1586
|
case 7:
|
|
1587
1587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3
|
|
1588
|
+
return [3, 13];
|
|
1589
1589
|
case 8:
|
|
1590
1590
|
_f = [{}];
|
|
1591
|
-
return [4
|
|
1591
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1592
1592
|
case 9:
|
|
1593
1593
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1594
|
-
return [3
|
|
1594
|
+
return [3, 13];
|
|
1595
1595
|
case 10:
|
|
1596
1596
|
_g = [{}];
|
|
1597
|
-
return [4
|
|
1597
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1598
1598
|
case 11:
|
|
1599
1599
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1600
|
-
return [3
|
|
1600
|
+
return [3, 13];
|
|
1601
1601
|
case 12:
|
|
1602
1602
|
parsedBody = parsedOutput.body;
|
|
1603
1603
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1607,7 +1607,7 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
1607
1607
|
message = response.message || response.Message || errorCode;
|
|
1608
1608
|
response.message = message;
|
|
1609
1609
|
delete response.Message;
|
|
1610
|
-
return [2
|
|
1610
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1611
1611
|
}
|
|
1612
1612
|
});
|
|
1613
1613
|
}); };
|
|
@@ -1617,7 +1617,7 @@ export var deserializeAws_restJson1GetNetworkCommand = function (output, context
|
|
|
1617
1617
|
switch (_c.label) {
|
|
1618
1618
|
case 0:
|
|
1619
1619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1620
|
-
return [2
|
|
1620
|
+
return [2, deserializeAws_restJson1GetNetworkCommandError(output, context)];
|
|
1621
1621
|
}
|
|
1622
1622
|
contents = {
|
|
1623
1623
|
$metadata: deserializeMetadata(output),
|
|
@@ -1625,13 +1625,13 @@ export var deserializeAws_restJson1GetNetworkCommand = function (output, context
|
|
|
1625
1625
|
};
|
|
1626
1626
|
_a = __expectNonNull;
|
|
1627
1627
|
_b = __expectObject;
|
|
1628
|
-
return [4
|
|
1628
|
+
return [4, parseBody(output.body, context)];
|
|
1629
1629
|
case 1:
|
|
1630
1630
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1631
1631
|
if (data.Network !== undefined && data.Network !== null) {
|
|
1632
1632
|
contents.Network = deserializeAws_restJson1Network(data.Network, context);
|
|
1633
1633
|
}
|
|
1634
|
-
return [2
|
|
1634
|
+
return [2, Promise.resolve(contents)];
|
|
1635
1635
|
}
|
|
1636
1636
|
});
|
|
1637
1637
|
}); };
|
|
@@ -1643,55 +1643,55 @@ var deserializeAws_restJson1GetNetworkCommandError = function (output, context)
|
|
|
1643
1643
|
case 0:
|
|
1644
1644
|
_a = [__assign({}, output)];
|
|
1645
1645
|
_h = {};
|
|
1646
|
-
return [4
|
|
1646
|
+
return [4, parseBody(output.body, context)];
|
|
1647
1647
|
case 1:
|
|
1648
1648
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1649
1649
|
errorCode = "UnknownError";
|
|
1650
1650
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
1651
|
_b = errorCode;
|
|
1652
1652
|
switch (_b) {
|
|
1653
|
-
case "AccessDeniedException": return [3
|
|
1654
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1655
|
-
case "InternalServiceErrorException": return [3
|
|
1656
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1657
|
-
case "InvalidRequestException": return [3
|
|
1658
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1659
|
-
case "ResourceNotFoundException": return [3
|
|
1660
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
1661
|
-
case "ThrottlingException": return [3
|
|
1662
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1663
|
-
}
|
|
1664
|
-
return [3
|
|
1653
|
+
case "AccessDeniedException": return [3, 2];
|
|
1654
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1655
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1656
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1657
|
+
case "InvalidRequestException": return [3, 6];
|
|
1658
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1659
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1660
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
1661
|
+
case "ThrottlingException": return [3, 10];
|
|
1662
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 10];
|
|
1663
|
+
}
|
|
1664
|
+
return [3, 12];
|
|
1665
1665
|
case 2:
|
|
1666
1666
|
_c = [{}];
|
|
1667
|
-
return [4
|
|
1667
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1668
1668
|
case 3:
|
|
1669
1669
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1670
|
-
return [3
|
|
1670
|
+
return [3, 13];
|
|
1671
1671
|
case 4:
|
|
1672
1672
|
_d = [{}];
|
|
1673
|
-
return [4
|
|
1673
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1674
1674
|
case 5:
|
|
1675
1675
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1676
|
-
return [3
|
|
1676
|
+
return [3, 13];
|
|
1677
1677
|
case 6:
|
|
1678
1678
|
_e = [{}];
|
|
1679
|
-
return [4
|
|
1679
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1680
1680
|
case 7:
|
|
1681
1681
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1682
|
-
return [3
|
|
1682
|
+
return [3, 13];
|
|
1683
1683
|
case 8:
|
|
1684
1684
|
_f = [{}];
|
|
1685
|
-
return [4
|
|
1685
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1686
1686
|
case 9:
|
|
1687
1687
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1688
|
-
return [3
|
|
1688
|
+
return [3, 13];
|
|
1689
1689
|
case 10:
|
|
1690
1690
|
_g = [{}];
|
|
1691
|
-
return [4
|
|
1691
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1692
1692
|
case 11:
|
|
1693
1693
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1694
|
-
return [3
|
|
1694
|
+
return [3, 13];
|
|
1695
1695
|
case 12:
|
|
1696
1696
|
parsedBody = parsedOutput.body;
|
|
1697
1697
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1701,7 +1701,7 @@ var deserializeAws_restJson1GetNetworkCommandError = function (output, context)
|
|
|
1701
1701
|
message = response.message || response.Message || errorCode;
|
|
1702
1702
|
response.message = message;
|
|
1703
1703
|
delete response.Message;
|
|
1704
|
-
return [2
|
|
1704
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1705
1705
|
}
|
|
1706
1706
|
});
|
|
1707
1707
|
}); };
|
|
@@ -1711,7 +1711,7 @@ export var deserializeAws_restJson1GetNodeCommand = function (output, context) {
|
|
|
1711
1711
|
switch (_c.label) {
|
|
1712
1712
|
case 0:
|
|
1713
1713
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1714
|
-
return [2
|
|
1714
|
+
return [2, deserializeAws_restJson1GetNodeCommandError(output, context)];
|
|
1715
1715
|
}
|
|
1716
1716
|
contents = {
|
|
1717
1717
|
$metadata: deserializeMetadata(output),
|
|
@@ -1719,13 +1719,13 @@ export var deserializeAws_restJson1GetNodeCommand = function (output, context) {
|
|
|
1719
1719
|
};
|
|
1720
1720
|
_a = __expectNonNull;
|
|
1721
1721
|
_b = __expectObject;
|
|
1722
|
-
return [4
|
|
1722
|
+
return [4, parseBody(output.body, context)];
|
|
1723
1723
|
case 1:
|
|
1724
1724
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1725
1725
|
if (data.Node !== undefined && data.Node !== null) {
|
|
1726
1726
|
contents.Node = deserializeAws_restJson1Node(data.Node, context);
|
|
1727
1727
|
}
|
|
1728
|
-
return [2
|
|
1728
|
+
return [2, Promise.resolve(contents)];
|
|
1729
1729
|
}
|
|
1730
1730
|
});
|
|
1731
1731
|
}); };
|
|
@@ -1737,55 +1737,55 @@ var deserializeAws_restJson1GetNodeCommandError = function (output, context) { r
|
|
|
1737
1737
|
case 0:
|
|
1738
1738
|
_a = [__assign({}, output)];
|
|
1739
1739
|
_h = {};
|
|
1740
|
-
return [4
|
|
1740
|
+
return [4, parseBody(output.body, context)];
|
|
1741
1741
|
case 1:
|
|
1742
1742
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1743
1743
|
errorCode = "UnknownError";
|
|
1744
1744
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1745
1745
|
_b = errorCode;
|
|
1746
1746
|
switch (_b) {
|
|
1747
|
-
case "AccessDeniedException": return [3
|
|
1748
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1749
|
-
case "InternalServiceErrorException": return [3
|
|
1750
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1751
|
-
case "InvalidRequestException": return [3
|
|
1752
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1753
|
-
case "ResourceNotFoundException": return [3
|
|
1754
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
1755
|
-
case "ThrottlingException": return [3
|
|
1756
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1757
|
-
}
|
|
1758
|
-
return [3
|
|
1747
|
+
case "AccessDeniedException": return [3, 2];
|
|
1748
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1749
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1750
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1751
|
+
case "InvalidRequestException": return [3, 6];
|
|
1752
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1753
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1754
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
1755
|
+
case "ThrottlingException": return [3, 10];
|
|
1756
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 10];
|
|
1757
|
+
}
|
|
1758
|
+
return [3, 12];
|
|
1759
1759
|
case 2:
|
|
1760
1760
|
_c = [{}];
|
|
1761
|
-
return [4
|
|
1761
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1762
1762
|
case 3:
|
|
1763
1763
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1764
|
-
return [3
|
|
1764
|
+
return [3, 13];
|
|
1765
1765
|
case 4:
|
|
1766
1766
|
_d = [{}];
|
|
1767
|
-
return [4
|
|
1767
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1768
1768
|
case 5:
|
|
1769
1769
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1770
|
-
return [3
|
|
1770
|
+
return [3, 13];
|
|
1771
1771
|
case 6:
|
|
1772
1772
|
_e = [{}];
|
|
1773
|
-
return [4
|
|
1773
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1774
1774
|
case 7:
|
|
1775
1775
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1776
|
-
return [3
|
|
1776
|
+
return [3, 13];
|
|
1777
1777
|
case 8:
|
|
1778
1778
|
_f = [{}];
|
|
1779
|
-
return [4
|
|
1779
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1780
1780
|
case 9:
|
|
1781
1781
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1782
|
-
return [3
|
|
1782
|
+
return [3, 13];
|
|
1783
1783
|
case 10:
|
|
1784
1784
|
_g = [{}];
|
|
1785
|
-
return [4
|
|
1785
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1786
1786
|
case 11:
|
|
1787
1787
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1788
|
-
return [3
|
|
1788
|
+
return [3, 13];
|
|
1789
1789
|
case 12:
|
|
1790
1790
|
parsedBody = parsedOutput.body;
|
|
1791
1791
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1795,7 +1795,7 @@ var deserializeAws_restJson1GetNodeCommandError = function (output, context) { r
|
|
|
1795
1795
|
message = response.message || response.Message || errorCode;
|
|
1796
1796
|
response.message = message;
|
|
1797
1797
|
delete response.Message;
|
|
1798
|
-
return [2
|
|
1798
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1799
1799
|
}
|
|
1800
1800
|
});
|
|
1801
1801
|
}); };
|
|
@@ -1805,7 +1805,7 @@ export var deserializeAws_restJson1GetProposalCommand = function (output, contex
|
|
|
1805
1805
|
switch (_c.label) {
|
|
1806
1806
|
case 0:
|
|
1807
1807
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1808
|
-
return [2
|
|
1808
|
+
return [2, deserializeAws_restJson1GetProposalCommandError(output, context)];
|
|
1809
1809
|
}
|
|
1810
1810
|
contents = {
|
|
1811
1811
|
$metadata: deserializeMetadata(output),
|
|
@@ -1813,13 +1813,13 @@ export var deserializeAws_restJson1GetProposalCommand = function (output, contex
|
|
|
1813
1813
|
};
|
|
1814
1814
|
_a = __expectNonNull;
|
|
1815
1815
|
_b = __expectObject;
|
|
1816
|
-
return [4
|
|
1816
|
+
return [4, parseBody(output.body, context)];
|
|
1817
1817
|
case 1:
|
|
1818
1818
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1819
1819
|
if (data.Proposal !== undefined && data.Proposal !== null) {
|
|
1820
1820
|
contents.Proposal = deserializeAws_restJson1Proposal(data.Proposal, context);
|
|
1821
1821
|
}
|
|
1822
|
-
return [2
|
|
1822
|
+
return [2, Promise.resolve(contents)];
|
|
1823
1823
|
}
|
|
1824
1824
|
});
|
|
1825
1825
|
}); };
|
|
@@ -1831,55 +1831,55 @@ var deserializeAws_restJson1GetProposalCommandError = function (output, context)
|
|
|
1831
1831
|
case 0:
|
|
1832
1832
|
_a = [__assign({}, output)];
|
|
1833
1833
|
_h = {};
|
|
1834
|
-
return [4
|
|
1834
|
+
return [4, parseBody(output.body, context)];
|
|
1835
1835
|
case 1:
|
|
1836
1836
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1837
1837
|
errorCode = "UnknownError";
|
|
1838
1838
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1839
|
_b = errorCode;
|
|
1840
1840
|
switch (_b) {
|
|
1841
|
-
case "AccessDeniedException": return [3
|
|
1842
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1843
|
-
case "InternalServiceErrorException": return [3
|
|
1844
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1845
|
-
case "InvalidRequestException": return [3
|
|
1846
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1847
|
-
case "ResourceNotFoundException": return [3
|
|
1848
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
1849
|
-
case "ThrottlingException": return [3
|
|
1850
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1851
|
-
}
|
|
1852
|
-
return [3
|
|
1841
|
+
case "AccessDeniedException": return [3, 2];
|
|
1842
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1843
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1844
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1845
|
+
case "InvalidRequestException": return [3, 6];
|
|
1846
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1847
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1848
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
1849
|
+
case "ThrottlingException": return [3, 10];
|
|
1850
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 10];
|
|
1851
|
+
}
|
|
1852
|
+
return [3, 12];
|
|
1853
1853
|
case 2:
|
|
1854
1854
|
_c = [{}];
|
|
1855
|
-
return [4
|
|
1855
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1856
1856
|
case 3:
|
|
1857
1857
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1858
|
-
return [3
|
|
1858
|
+
return [3, 13];
|
|
1859
1859
|
case 4:
|
|
1860
1860
|
_d = [{}];
|
|
1861
|
-
return [4
|
|
1861
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1862
1862
|
case 5:
|
|
1863
1863
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1864
|
-
return [3
|
|
1864
|
+
return [3, 13];
|
|
1865
1865
|
case 6:
|
|
1866
1866
|
_e = [{}];
|
|
1867
|
-
return [4
|
|
1867
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1868
1868
|
case 7:
|
|
1869
1869
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1870
|
-
return [3
|
|
1870
|
+
return [3, 13];
|
|
1871
1871
|
case 8:
|
|
1872
1872
|
_f = [{}];
|
|
1873
|
-
return [4
|
|
1873
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1874
1874
|
case 9:
|
|
1875
1875
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1876
|
-
return [3
|
|
1876
|
+
return [3, 13];
|
|
1877
1877
|
case 10:
|
|
1878
1878
|
_g = [{}];
|
|
1879
|
-
return [4
|
|
1879
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1880
1880
|
case 11:
|
|
1881
1881
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1882
|
-
return [3
|
|
1882
|
+
return [3, 13];
|
|
1883
1883
|
case 12:
|
|
1884
1884
|
parsedBody = parsedOutput.body;
|
|
1885
1885
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1889,7 +1889,7 @@ var deserializeAws_restJson1GetProposalCommandError = function (output, context)
|
|
|
1889
1889
|
message = response.message || response.Message || errorCode;
|
|
1890
1890
|
response.message = message;
|
|
1891
1891
|
delete response.Message;
|
|
1892
|
-
return [2
|
|
1892
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1893
1893
|
}
|
|
1894
1894
|
});
|
|
1895
1895
|
}); };
|
|
@@ -1899,7 +1899,7 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
1899
1899
|
switch (_c.label) {
|
|
1900
1900
|
case 0:
|
|
1901
1901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1902
|
-
return [2
|
|
1902
|
+
return [2, deserializeAws_restJson1ListInvitationsCommandError(output, context)];
|
|
1903
1903
|
}
|
|
1904
1904
|
contents = {
|
|
1905
1905
|
$metadata: deserializeMetadata(output),
|
|
@@ -1908,7 +1908,7 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
1908
1908
|
};
|
|
1909
1909
|
_a = __expectNonNull;
|
|
1910
1910
|
_b = __expectObject;
|
|
1911
|
-
return [4
|
|
1911
|
+
return [4, parseBody(output.body, context)];
|
|
1912
1912
|
case 1:
|
|
1913
1913
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1914
1914
|
if (data.Invitations !== undefined && data.Invitations !== null) {
|
|
@@ -1917,7 +1917,7 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
1917
1917
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1918
1918
|
contents.NextToken = __expectString(data.NextToken);
|
|
1919
1919
|
}
|
|
1920
|
-
return [2
|
|
1920
|
+
return [2, Promise.resolve(contents)];
|
|
1921
1921
|
}
|
|
1922
1922
|
});
|
|
1923
1923
|
}); };
|
|
@@ -1929,63 +1929,63 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
1929
1929
|
case 0:
|
|
1930
1930
|
_a = [__assign({}, output)];
|
|
1931
1931
|
_j = {};
|
|
1932
|
-
return [4
|
|
1932
|
+
return [4, parseBody(output.body, context)];
|
|
1933
1933
|
case 1:
|
|
1934
1934
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1935
1935
|
errorCode = "UnknownError";
|
|
1936
1936
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
1937
|
_b = errorCode;
|
|
1938
1938
|
switch (_b) {
|
|
1939
|
-
case "AccessDeniedException": return [3
|
|
1940
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
1941
|
-
case "InternalServiceErrorException": return [3
|
|
1942
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
1943
|
-
case "InvalidRequestException": return [3
|
|
1944
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
1945
|
-
case "ResourceLimitExceededException": return [3
|
|
1946
|
-
case "com.amazonaws.managedblockchain#ResourceLimitExceededException": return [3
|
|
1947
|
-
case "ResourceNotFoundException": return [3
|
|
1948
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
1949
|
-
case "ThrottlingException": return [3
|
|
1950
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
1951
|
-
}
|
|
1952
|
-
return [3
|
|
1939
|
+
case "AccessDeniedException": return [3, 2];
|
|
1940
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
1941
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
1942
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
1943
|
+
case "InvalidRequestException": return [3, 6];
|
|
1944
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
1945
|
+
case "ResourceLimitExceededException": return [3, 8];
|
|
1946
|
+
case "com.amazonaws.managedblockchain#ResourceLimitExceededException": return [3, 8];
|
|
1947
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1948
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 10];
|
|
1949
|
+
case "ThrottlingException": return [3, 12];
|
|
1950
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 12];
|
|
1951
|
+
}
|
|
1952
|
+
return [3, 14];
|
|
1953
1953
|
case 2:
|
|
1954
1954
|
_c = [{}];
|
|
1955
|
-
return [4
|
|
1955
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1956
1956
|
case 3:
|
|
1957
1957
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1958
|
-
return [3
|
|
1958
|
+
return [3, 15];
|
|
1959
1959
|
case 4:
|
|
1960
1960
|
_d = [{}];
|
|
1961
|
-
return [4
|
|
1961
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1962
1962
|
case 5:
|
|
1963
1963
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1964
|
-
return [3
|
|
1964
|
+
return [3, 15];
|
|
1965
1965
|
case 6:
|
|
1966
1966
|
_e = [{}];
|
|
1967
|
-
return [4
|
|
1967
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1968
1968
|
case 7:
|
|
1969
1969
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1970
|
-
return [3
|
|
1970
|
+
return [3, 15];
|
|
1971
1971
|
case 8:
|
|
1972
1972
|
_f = [{}];
|
|
1973
|
-
return [4
|
|
1973
|
+
return [4, deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1974
1974
|
case 9:
|
|
1975
1975
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1976
|
-
return [3
|
|
1976
|
+
return [3, 15];
|
|
1977
1977
|
case 10:
|
|
1978
1978
|
_g = [{}];
|
|
1979
|
-
return [4
|
|
1979
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1980
1980
|
case 11:
|
|
1981
1981
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1982
|
-
return [3
|
|
1982
|
+
return [3, 15];
|
|
1983
1983
|
case 12:
|
|
1984
1984
|
_h = [{}];
|
|
1985
|
-
return [4
|
|
1985
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1986
1986
|
case 13:
|
|
1987
1987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1988
|
-
return [3
|
|
1988
|
+
return [3, 15];
|
|
1989
1989
|
case 14:
|
|
1990
1990
|
parsedBody = parsedOutput.body;
|
|
1991
1991
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1995,7 +1995,7 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
1995
1995
|
message = response.message || response.Message || errorCode;
|
|
1996
1996
|
response.message = message;
|
|
1997
1997
|
delete response.Message;
|
|
1998
|
-
return [2
|
|
1998
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1999
1999
|
}
|
|
2000
2000
|
});
|
|
2001
2001
|
}); };
|
|
@@ -2005,7 +2005,7 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
2005
2005
|
switch (_c.label) {
|
|
2006
2006
|
case 0:
|
|
2007
2007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2008
|
-
return [2
|
|
2008
|
+
return [2, deserializeAws_restJson1ListMembersCommandError(output, context)];
|
|
2009
2009
|
}
|
|
2010
2010
|
contents = {
|
|
2011
2011
|
$metadata: deserializeMetadata(output),
|
|
@@ -2014,7 +2014,7 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
2014
2014
|
};
|
|
2015
2015
|
_a = __expectNonNull;
|
|
2016
2016
|
_b = __expectObject;
|
|
2017
|
-
return [4
|
|
2017
|
+
return [4, parseBody(output.body, context)];
|
|
2018
2018
|
case 1:
|
|
2019
2019
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2020
2020
|
if (data.Members !== undefined && data.Members !== null) {
|
|
@@ -2023,7 +2023,7 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
2023
2023
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2024
2024
|
contents.NextToken = __expectString(data.NextToken);
|
|
2025
2025
|
}
|
|
2026
|
-
return [2
|
|
2026
|
+
return [2, Promise.resolve(contents)];
|
|
2027
2027
|
}
|
|
2028
2028
|
});
|
|
2029
2029
|
}); };
|
|
@@ -2035,47 +2035,47 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
2035
2035
|
case 0:
|
|
2036
2036
|
_a = [__assign({}, output)];
|
|
2037
2037
|
_g = {};
|
|
2038
|
-
return [4
|
|
2038
|
+
return [4, parseBody(output.body, context)];
|
|
2039
2039
|
case 1:
|
|
2040
2040
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2041
2041
|
errorCode = "UnknownError";
|
|
2042
2042
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
2043
|
_b = errorCode;
|
|
2044
2044
|
switch (_b) {
|
|
2045
|
-
case "AccessDeniedException": return [3
|
|
2046
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
2047
|
-
case "InternalServiceErrorException": return [3
|
|
2048
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2049
|
-
case "InvalidRequestException": return [3
|
|
2050
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2051
|
-
case "ThrottlingException": return [3
|
|
2052
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
2053
|
-
}
|
|
2054
|
-
return [3
|
|
2045
|
+
case "AccessDeniedException": return [3, 2];
|
|
2046
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
2047
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
2048
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
2049
|
+
case "InvalidRequestException": return [3, 6];
|
|
2050
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
2051
|
+
case "ThrottlingException": return [3, 8];
|
|
2052
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 8];
|
|
2053
|
+
}
|
|
2054
|
+
return [3, 10];
|
|
2055
2055
|
case 2:
|
|
2056
2056
|
_c = [{}];
|
|
2057
|
-
return [4
|
|
2057
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2058
2058
|
case 3:
|
|
2059
2059
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2060
|
-
return [3
|
|
2060
|
+
return [3, 11];
|
|
2061
2061
|
case 4:
|
|
2062
2062
|
_d = [{}];
|
|
2063
|
-
return [4
|
|
2063
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2064
2064
|
case 5:
|
|
2065
2065
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2066
|
-
return [3
|
|
2066
|
+
return [3, 11];
|
|
2067
2067
|
case 6:
|
|
2068
2068
|
_e = [{}];
|
|
2069
|
-
return [4
|
|
2069
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2070
2070
|
case 7:
|
|
2071
2071
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2072
|
-
return [3
|
|
2072
|
+
return [3, 11];
|
|
2073
2073
|
case 8:
|
|
2074
2074
|
_f = [{}];
|
|
2075
|
-
return [4
|
|
2075
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2076
2076
|
case 9:
|
|
2077
2077
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2078
|
-
return [3
|
|
2078
|
+
return [3, 11];
|
|
2079
2079
|
case 10:
|
|
2080
2080
|
parsedBody = parsedOutput.body;
|
|
2081
2081
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2085,7 +2085,7 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
2085
2085
|
message = response.message || response.Message || errorCode;
|
|
2086
2086
|
response.message = message;
|
|
2087
2087
|
delete response.Message;
|
|
2088
|
-
return [2
|
|
2088
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2089
2089
|
}
|
|
2090
2090
|
});
|
|
2091
2091
|
}); };
|
|
@@ -2095,7 +2095,7 @@ export var deserializeAws_restJson1ListNetworksCommand = function (output, conte
|
|
|
2095
2095
|
switch (_c.label) {
|
|
2096
2096
|
case 0:
|
|
2097
2097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2098
|
-
return [2
|
|
2098
|
+
return [2, deserializeAws_restJson1ListNetworksCommandError(output, context)];
|
|
2099
2099
|
}
|
|
2100
2100
|
contents = {
|
|
2101
2101
|
$metadata: deserializeMetadata(output),
|
|
@@ -2104,7 +2104,7 @@ export var deserializeAws_restJson1ListNetworksCommand = function (output, conte
|
|
|
2104
2104
|
};
|
|
2105
2105
|
_a = __expectNonNull;
|
|
2106
2106
|
_b = __expectObject;
|
|
2107
|
-
return [4
|
|
2107
|
+
return [4, parseBody(output.body, context)];
|
|
2108
2108
|
case 1:
|
|
2109
2109
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2110
2110
|
if (data.Networks !== undefined && data.Networks !== null) {
|
|
@@ -2113,7 +2113,7 @@ export var deserializeAws_restJson1ListNetworksCommand = function (output, conte
|
|
|
2113
2113
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2114
2114
|
contents.NextToken = __expectString(data.NextToken);
|
|
2115
2115
|
}
|
|
2116
|
-
return [2
|
|
2116
|
+
return [2, Promise.resolve(contents)];
|
|
2117
2117
|
}
|
|
2118
2118
|
});
|
|
2119
2119
|
}); };
|
|
@@ -2125,47 +2125,47 @@ var deserializeAws_restJson1ListNetworksCommandError = function (output, context
|
|
|
2125
2125
|
case 0:
|
|
2126
2126
|
_a = [__assign({}, output)];
|
|
2127
2127
|
_g = {};
|
|
2128
|
-
return [4
|
|
2128
|
+
return [4, parseBody(output.body, context)];
|
|
2129
2129
|
case 1:
|
|
2130
2130
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2131
2131
|
errorCode = "UnknownError";
|
|
2132
2132
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2133
2133
|
_b = errorCode;
|
|
2134
2134
|
switch (_b) {
|
|
2135
|
-
case "AccessDeniedException": return [3
|
|
2136
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
2137
|
-
case "InternalServiceErrorException": return [3
|
|
2138
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2139
|
-
case "InvalidRequestException": return [3
|
|
2140
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2141
|
-
case "ThrottlingException": return [3
|
|
2142
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
2143
|
-
}
|
|
2144
|
-
return [3
|
|
2135
|
+
case "AccessDeniedException": return [3, 2];
|
|
2136
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
2137
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
2138
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
2139
|
+
case "InvalidRequestException": return [3, 6];
|
|
2140
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
2141
|
+
case "ThrottlingException": return [3, 8];
|
|
2142
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 8];
|
|
2143
|
+
}
|
|
2144
|
+
return [3, 10];
|
|
2145
2145
|
case 2:
|
|
2146
2146
|
_c = [{}];
|
|
2147
|
-
return [4
|
|
2147
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2148
2148
|
case 3:
|
|
2149
2149
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2150
|
-
return [3
|
|
2150
|
+
return [3, 11];
|
|
2151
2151
|
case 4:
|
|
2152
2152
|
_d = [{}];
|
|
2153
|
-
return [4
|
|
2153
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2154
2154
|
case 5:
|
|
2155
2155
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2156
|
-
return [3
|
|
2156
|
+
return [3, 11];
|
|
2157
2157
|
case 6:
|
|
2158
2158
|
_e = [{}];
|
|
2159
|
-
return [4
|
|
2159
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2160
2160
|
case 7:
|
|
2161
2161
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2162
|
-
return [3
|
|
2162
|
+
return [3, 11];
|
|
2163
2163
|
case 8:
|
|
2164
2164
|
_f = [{}];
|
|
2165
|
-
return [4
|
|
2165
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2166
2166
|
case 9:
|
|
2167
2167
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2168
|
-
return [3
|
|
2168
|
+
return [3, 11];
|
|
2169
2169
|
case 10:
|
|
2170
2170
|
parsedBody = parsedOutput.body;
|
|
2171
2171
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2175,7 +2175,7 @@ var deserializeAws_restJson1ListNetworksCommandError = function (output, context
|
|
|
2175
2175
|
message = response.message || response.Message || errorCode;
|
|
2176
2176
|
response.message = message;
|
|
2177
2177
|
delete response.Message;
|
|
2178
|
-
return [2
|
|
2178
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2179
2179
|
}
|
|
2180
2180
|
});
|
|
2181
2181
|
}); };
|
|
@@ -2185,7 +2185,7 @@ export var deserializeAws_restJson1ListNodesCommand = function (output, context)
|
|
|
2185
2185
|
switch (_c.label) {
|
|
2186
2186
|
case 0:
|
|
2187
2187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2188
|
-
return [2
|
|
2188
|
+
return [2, deserializeAws_restJson1ListNodesCommandError(output, context)];
|
|
2189
2189
|
}
|
|
2190
2190
|
contents = {
|
|
2191
2191
|
$metadata: deserializeMetadata(output),
|
|
@@ -2194,7 +2194,7 @@ export var deserializeAws_restJson1ListNodesCommand = function (output, context)
|
|
|
2194
2194
|
};
|
|
2195
2195
|
_a = __expectNonNull;
|
|
2196
2196
|
_b = __expectObject;
|
|
2197
|
-
return [4
|
|
2197
|
+
return [4, parseBody(output.body, context)];
|
|
2198
2198
|
case 1:
|
|
2199
2199
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2200
2200
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -2203,7 +2203,7 @@ export var deserializeAws_restJson1ListNodesCommand = function (output, context)
|
|
|
2203
2203
|
if (data.Nodes !== undefined && data.Nodes !== null) {
|
|
2204
2204
|
contents.Nodes = deserializeAws_restJson1NodeSummaryList(data.Nodes, context);
|
|
2205
2205
|
}
|
|
2206
|
-
return [2
|
|
2206
|
+
return [2, Promise.resolve(contents)];
|
|
2207
2207
|
}
|
|
2208
2208
|
});
|
|
2209
2209
|
}); };
|
|
@@ -2215,47 +2215,47 @@ var deserializeAws_restJson1ListNodesCommandError = function (output, context) {
|
|
|
2215
2215
|
case 0:
|
|
2216
2216
|
_a = [__assign({}, output)];
|
|
2217
2217
|
_g = {};
|
|
2218
|
-
return [4
|
|
2218
|
+
return [4, parseBody(output.body, context)];
|
|
2219
2219
|
case 1:
|
|
2220
2220
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2221
2221
|
errorCode = "UnknownError";
|
|
2222
2222
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
2223
|
_b = errorCode;
|
|
2224
2224
|
switch (_b) {
|
|
2225
|
-
case "AccessDeniedException": return [3
|
|
2226
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
2227
|
-
case "InternalServiceErrorException": return [3
|
|
2228
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2229
|
-
case "InvalidRequestException": return [3
|
|
2230
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2231
|
-
case "ThrottlingException": return [3
|
|
2232
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
2233
|
-
}
|
|
2234
|
-
return [3
|
|
2225
|
+
case "AccessDeniedException": return [3, 2];
|
|
2226
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
2227
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
2228
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
2229
|
+
case "InvalidRequestException": return [3, 6];
|
|
2230
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
2231
|
+
case "ThrottlingException": return [3, 8];
|
|
2232
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 8];
|
|
2233
|
+
}
|
|
2234
|
+
return [3, 10];
|
|
2235
2235
|
case 2:
|
|
2236
2236
|
_c = [{}];
|
|
2237
|
-
return [4
|
|
2237
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2238
2238
|
case 3:
|
|
2239
2239
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2240
|
-
return [3
|
|
2240
|
+
return [3, 11];
|
|
2241
2241
|
case 4:
|
|
2242
2242
|
_d = [{}];
|
|
2243
|
-
return [4
|
|
2243
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2244
2244
|
case 5:
|
|
2245
2245
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2246
|
-
return [3
|
|
2246
|
+
return [3, 11];
|
|
2247
2247
|
case 6:
|
|
2248
2248
|
_e = [{}];
|
|
2249
|
-
return [4
|
|
2249
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2250
2250
|
case 7:
|
|
2251
2251
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2252
|
-
return [3
|
|
2252
|
+
return [3, 11];
|
|
2253
2253
|
case 8:
|
|
2254
2254
|
_f = [{}];
|
|
2255
|
-
return [4
|
|
2255
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2256
2256
|
case 9:
|
|
2257
2257
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2258
|
-
return [3
|
|
2258
|
+
return [3, 11];
|
|
2259
2259
|
case 10:
|
|
2260
2260
|
parsedBody = parsedOutput.body;
|
|
2261
2261
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2265,7 +2265,7 @@ var deserializeAws_restJson1ListNodesCommandError = function (output, context) {
|
|
|
2265
2265
|
message = response.message || response.Message || errorCode;
|
|
2266
2266
|
response.message = message;
|
|
2267
2267
|
delete response.Message;
|
|
2268
|
-
return [2
|
|
2268
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2269
2269
|
}
|
|
2270
2270
|
});
|
|
2271
2271
|
}); };
|
|
@@ -2275,7 +2275,7 @@ export var deserializeAws_restJson1ListProposalsCommand = function (output, cont
|
|
|
2275
2275
|
switch (_c.label) {
|
|
2276
2276
|
case 0:
|
|
2277
2277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2278
|
-
return [2
|
|
2278
|
+
return [2, deserializeAws_restJson1ListProposalsCommandError(output, context)];
|
|
2279
2279
|
}
|
|
2280
2280
|
contents = {
|
|
2281
2281
|
$metadata: deserializeMetadata(output),
|
|
@@ -2284,7 +2284,7 @@ export var deserializeAws_restJson1ListProposalsCommand = function (output, cont
|
|
|
2284
2284
|
};
|
|
2285
2285
|
_a = __expectNonNull;
|
|
2286
2286
|
_b = __expectObject;
|
|
2287
|
-
return [4
|
|
2287
|
+
return [4, parseBody(output.body, context)];
|
|
2288
2288
|
case 1:
|
|
2289
2289
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2290
2290
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -2293,7 +2293,7 @@ export var deserializeAws_restJson1ListProposalsCommand = function (output, cont
|
|
|
2293
2293
|
if (data.Proposals !== undefined && data.Proposals !== null) {
|
|
2294
2294
|
contents.Proposals = deserializeAws_restJson1ProposalSummaryList(data.Proposals, context);
|
|
2295
2295
|
}
|
|
2296
|
-
return [2
|
|
2296
|
+
return [2, Promise.resolve(contents)];
|
|
2297
2297
|
}
|
|
2298
2298
|
});
|
|
2299
2299
|
}); };
|
|
@@ -2305,55 +2305,55 @@ var deserializeAws_restJson1ListProposalsCommandError = function (output, contex
|
|
|
2305
2305
|
case 0:
|
|
2306
2306
|
_a = [__assign({}, output)];
|
|
2307
2307
|
_h = {};
|
|
2308
|
-
return [4
|
|
2308
|
+
return [4, parseBody(output.body, context)];
|
|
2309
2309
|
case 1:
|
|
2310
2310
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2311
2311
|
errorCode = "UnknownError";
|
|
2312
2312
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2313
2313
|
_b = errorCode;
|
|
2314
2314
|
switch (_b) {
|
|
2315
|
-
case "AccessDeniedException": return [3
|
|
2316
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
2317
|
-
case "InternalServiceErrorException": return [3
|
|
2318
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2319
|
-
case "InvalidRequestException": return [3
|
|
2320
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2321
|
-
case "ResourceNotFoundException": return [3
|
|
2322
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
2323
|
-
case "ThrottlingException": return [3
|
|
2324
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
2325
|
-
}
|
|
2326
|
-
return [3
|
|
2315
|
+
case "AccessDeniedException": return [3, 2];
|
|
2316
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
2317
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
2318
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
2319
|
+
case "InvalidRequestException": return [3, 6];
|
|
2320
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
2321
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2322
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
2323
|
+
case "ThrottlingException": return [3, 10];
|
|
2324
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 10];
|
|
2325
|
+
}
|
|
2326
|
+
return [3, 12];
|
|
2327
2327
|
case 2:
|
|
2328
2328
|
_c = [{}];
|
|
2329
|
-
return [4
|
|
2329
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2330
2330
|
case 3:
|
|
2331
2331
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2332
|
-
return [3
|
|
2332
|
+
return [3, 13];
|
|
2333
2333
|
case 4:
|
|
2334
2334
|
_d = [{}];
|
|
2335
|
-
return [4
|
|
2335
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2336
2336
|
case 5:
|
|
2337
2337
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2338
|
-
return [3
|
|
2338
|
+
return [3, 13];
|
|
2339
2339
|
case 6:
|
|
2340
2340
|
_e = [{}];
|
|
2341
|
-
return [4
|
|
2341
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2342
2342
|
case 7:
|
|
2343
2343
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2344
|
-
return [3
|
|
2344
|
+
return [3, 13];
|
|
2345
2345
|
case 8:
|
|
2346
2346
|
_f = [{}];
|
|
2347
|
-
return [4
|
|
2347
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2348
2348
|
case 9:
|
|
2349
2349
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2350
|
-
return [3
|
|
2350
|
+
return [3, 13];
|
|
2351
2351
|
case 10:
|
|
2352
2352
|
_g = [{}];
|
|
2353
|
-
return [4
|
|
2353
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2354
2354
|
case 11:
|
|
2355
2355
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2356
|
-
return [3
|
|
2356
|
+
return [3, 13];
|
|
2357
2357
|
case 12:
|
|
2358
2358
|
parsedBody = parsedOutput.body;
|
|
2359
2359
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2363,7 +2363,7 @@ var deserializeAws_restJson1ListProposalsCommandError = function (output, contex
|
|
|
2363
2363
|
message = response.message || response.Message || errorCode;
|
|
2364
2364
|
response.message = message;
|
|
2365
2365
|
delete response.Message;
|
|
2366
|
-
return [2
|
|
2366
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2367
2367
|
}
|
|
2368
2368
|
});
|
|
2369
2369
|
}); };
|
|
@@ -2373,7 +2373,7 @@ export var deserializeAws_restJson1ListProposalVotesCommand = function (output,
|
|
|
2373
2373
|
switch (_c.label) {
|
|
2374
2374
|
case 0:
|
|
2375
2375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2376
|
-
return [2
|
|
2376
|
+
return [2, deserializeAws_restJson1ListProposalVotesCommandError(output, context)];
|
|
2377
2377
|
}
|
|
2378
2378
|
contents = {
|
|
2379
2379
|
$metadata: deserializeMetadata(output),
|
|
@@ -2382,7 +2382,7 @@ export var deserializeAws_restJson1ListProposalVotesCommand = function (output,
|
|
|
2382
2382
|
};
|
|
2383
2383
|
_a = __expectNonNull;
|
|
2384
2384
|
_b = __expectObject;
|
|
2385
|
-
return [4
|
|
2385
|
+
return [4, parseBody(output.body, context)];
|
|
2386
2386
|
case 1:
|
|
2387
2387
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2388
2388
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -2391,7 +2391,7 @@ export var deserializeAws_restJson1ListProposalVotesCommand = function (output,
|
|
|
2391
2391
|
if (data.ProposalVotes !== undefined && data.ProposalVotes !== null) {
|
|
2392
2392
|
contents.ProposalVotes = deserializeAws_restJson1ProposalVoteList(data.ProposalVotes, context);
|
|
2393
2393
|
}
|
|
2394
|
-
return [2
|
|
2394
|
+
return [2, Promise.resolve(contents)];
|
|
2395
2395
|
}
|
|
2396
2396
|
});
|
|
2397
2397
|
}); };
|
|
@@ -2403,47 +2403,47 @@ var deserializeAws_restJson1ListProposalVotesCommandError = function (output, co
|
|
|
2403
2403
|
case 0:
|
|
2404
2404
|
_a = [__assign({}, output)];
|
|
2405
2405
|
_g = {};
|
|
2406
|
-
return [4
|
|
2406
|
+
return [4, parseBody(output.body, context)];
|
|
2407
2407
|
case 1:
|
|
2408
2408
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2409
2409
|
errorCode = "UnknownError";
|
|
2410
2410
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2411
2411
|
_b = errorCode;
|
|
2412
2412
|
switch (_b) {
|
|
2413
|
-
case "AccessDeniedException": return [3
|
|
2414
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
2415
|
-
case "InternalServiceErrorException": return [3
|
|
2416
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2417
|
-
case "InvalidRequestException": return [3
|
|
2418
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2419
|
-
case "ThrottlingException": return [3
|
|
2420
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
2421
|
-
}
|
|
2422
|
-
return [3
|
|
2413
|
+
case "AccessDeniedException": return [3, 2];
|
|
2414
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
2415
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
2416
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
2417
|
+
case "InvalidRequestException": return [3, 6];
|
|
2418
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
2419
|
+
case "ThrottlingException": return [3, 8];
|
|
2420
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 8];
|
|
2421
|
+
}
|
|
2422
|
+
return [3, 10];
|
|
2423
2423
|
case 2:
|
|
2424
2424
|
_c = [{}];
|
|
2425
|
-
return [4
|
|
2425
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2426
2426
|
case 3:
|
|
2427
2427
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2428
|
-
return [3
|
|
2428
|
+
return [3, 11];
|
|
2429
2429
|
case 4:
|
|
2430
2430
|
_d = [{}];
|
|
2431
|
-
return [4
|
|
2431
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2432
2432
|
case 5:
|
|
2433
2433
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2434
|
-
return [3
|
|
2434
|
+
return [3, 11];
|
|
2435
2435
|
case 6:
|
|
2436
2436
|
_e = [{}];
|
|
2437
|
-
return [4
|
|
2437
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2438
2438
|
case 7:
|
|
2439
2439
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2440
|
-
return [3
|
|
2440
|
+
return [3, 11];
|
|
2441
2441
|
case 8:
|
|
2442
2442
|
_f = [{}];
|
|
2443
|
-
return [4
|
|
2443
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2444
2444
|
case 9:
|
|
2445
2445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2446
|
-
return [3
|
|
2446
|
+
return [3, 11];
|
|
2447
2447
|
case 10:
|
|
2448
2448
|
parsedBody = parsedOutput.body;
|
|
2449
2449
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2453,7 +2453,7 @@ var deserializeAws_restJson1ListProposalVotesCommandError = function (output, co
|
|
|
2453
2453
|
message = response.message || response.Message || errorCode;
|
|
2454
2454
|
response.message = message;
|
|
2455
2455
|
delete response.Message;
|
|
2456
|
-
return [2
|
|
2456
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2457
2457
|
}
|
|
2458
2458
|
});
|
|
2459
2459
|
}); };
|
|
@@ -2463,7 +2463,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2463
2463
|
switch (_c.label) {
|
|
2464
2464
|
case 0:
|
|
2465
2465
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2466
|
-
return [2
|
|
2466
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
2467
2467
|
}
|
|
2468
2468
|
contents = {
|
|
2469
2469
|
$metadata: deserializeMetadata(output),
|
|
@@ -2471,13 +2471,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2471
2471
|
};
|
|
2472
2472
|
_a = __expectNonNull;
|
|
2473
2473
|
_b = __expectObject;
|
|
2474
|
-
return [4
|
|
2474
|
+
return [4, parseBody(output.body, context)];
|
|
2475
2475
|
case 1:
|
|
2476
2476
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2477
2477
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
2478
2478
|
contents.Tags = deserializeAws_restJson1OutputTagMap(data.Tags, context);
|
|
2479
2479
|
}
|
|
2480
|
-
return [2
|
|
2480
|
+
return [2, Promise.resolve(contents)];
|
|
2481
2481
|
}
|
|
2482
2482
|
});
|
|
2483
2483
|
}); };
|
|
@@ -2489,47 +2489,47 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2489
2489
|
case 0:
|
|
2490
2490
|
_a = [__assign({}, output)];
|
|
2491
2491
|
_g = {};
|
|
2492
|
-
return [4
|
|
2492
|
+
return [4, parseBody(output.body, context)];
|
|
2493
2493
|
case 1:
|
|
2494
2494
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2495
2495
|
errorCode = "UnknownError";
|
|
2496
2496
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2497
2497
|
_b = errorCode;
|
|
2498
2498
|
switch (_b) {
|
|
2499
|
-
case "InternalServiceErrorException": return [3
|
|
2500
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2501
|
-
case "InvalidRequestException": return [3
|
|
2502
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2503
|
-
case "ResourceNotFoundException": return [3
|
|
2504
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
2505
|
-
case "ResourceNotReadyException": return [3
|
|
2506
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3
|
|
2507
|
-
}
|
|
2508
|
-
return [3
|
|
2499
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
2500
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 2];
|
|
2501
|
+
case "InvalidRequestException": return [3, 4];
|
|
2502
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 4];
|
|
2503
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2504
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 6];
|
|
2505
|
+
case "ResourceNotReadyException": return [3, 8];
|
|
2506
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3, 8];
|
|
2507
|
+
}
|
|
2508
|
+
return [3, 10];
|
|
2509
2509
|
case 2:
|
|
2510
2510
|
_c = [{}];
|
|
2511
|
-
return [4
|
|
2511
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2512
2512
|
case 3:
|
|
2513
2513
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2514
|
-
return [3
|
|
2514
|
+
return [3, 11];
|
|
2515
2515
|
case 4:
|
|
2516
2516
|
_d = [{}];
|
|
2517
|
-
return [4
|
|
2517
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2518
2518
|
case 5:
|
|
2519
2519
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2520
|
-
return [3
|
|
2520
|
+
return [3, 11];
|
|
2521
2521
|
case 6:
|
|
2522
2522
|
_e = [{}];
|
|
2523
|
-
return [4
|
|
2523
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2524
2524
|
case 7:
|
|
2525
2525
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2526
|
-
return [3
|
|
2526
|
+
return [3, 11];
|
|
2527
2527
|
case 8:
|
|
2528
2528
|
_f = [{}];
|
|
2529
|
-
return [4
|
|
2529
|
+
return [4, deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context)];
|
|
2530
2530
|
case 9:
|
|
2531
2531
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2532
|
-
return [3
|
|
2532
|
+
return [3, 11];
|
|
2533
2533
|
case 10:
|
|
2534
2534
|
parsedBody = parsedOutput.body;
|
|
2535
2535
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2539,7 +2539,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2539
2539
|
message = response.message || response.Message || errorCode;
|
|
2540
2540
|
response.message = message;
|
|
2541
2541
|
delete response.Message;
|
|
2542
|
-
return [2
|
|
2542
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2543
2543
|
}
|
|
2544
2544
|
});
|
|
2545
2545
|
}); };
|
|
@@ -2549,15 +2549,15 @@ export var deserializeAws_restJson1RejectInvitationCommand = function (output, c
|
|
|
2549
2549
|
switch (_a.label) {
|
|
2550
2550
|
case 0:
|
|
2551
2551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2552
|
-
return [2
|
|
2552
|
+
return [2, deserializeAws_restJson1RejectInvitationCommandError(output, context)];
|
|
2553
2553
|
}
|
|
2554
2554
|
contents = {
|
|
2555
2555
|
$metadata: deserializeMetadata(output),
|
|
2556
2556
|
};
|
|
2557
|
-
return [4
|
|
2557
|
+
return [4, collectBody(output.body, context)];
|
|
2558
2558
|
case 1:
|
|
2559
2559
|
_a.sent();
|
|
2560
|
-
return [2
|
|
2560
|
+
return [2, Promise.resolve(contents)];
|
|
2561
2561
|
}
|
|
2562
2562
|
});
|
|
2563
2563
|
}); };
|
|
@@ -2569,63 +2569,63 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
|
|
|
2569
2569
|
case 0:
|
|
2570
2570
|
_a = [__assign({}, output)];
|
|
2571
2571
|
_j = {};
|
|
2572
|
-
return [4
|
|
2572
|
+
return [4, parseBody(output.body, context)];
|
|
2573
2573
|
case 1:
|
|
2574
2574
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2575
2575
|
errorCode = "UnknownError";
|
|
2576
2576
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
2577
|
_b = errorCode;
|
|
2578
2578
|
switch (_b) {
|
|
2579
|
-
case "AccessDeniedException": return [3
|
|
2580
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
2581
|
-
case "IllegalActionException": return [3
|
|
2582
|
-
case "com.amazonaws.managedblockchain#IllegalActionException": return [3
|
|
2583
|
-
case "InternalServiceErrorException": return [3
|
|
2584
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2585
|
-
case "InvalidRequestException": return [3
|
|
2586
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2587
|
-
case "ResourceNotFoundException": return [3
|
|
2588
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
2589
|
-
case "ThrottlingException": return [3
|
|
2590
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
2591
|
-
}
|
|
2592
|
-
return [3
|
|
2579
|
+
case "AccessDeniedException": return [3, 2];
|
|
2580
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
2581
|
+
case "IllegalActionException": return [3, 4];
|
|
2582
|
+
case "com.amazonaws.managedblockchain#IllegalActionException": return [3, 4];
|
|
2583
|
+
case "InternalServiceErrorException": return [3, 6];
|
|
2584
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 6];
|
|
2585
|
+
case "InvalidRequestException": return [3, 8];
|
|
2586
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 8];
|
|
2587
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
2588
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 10];
|
|
2589
|
+
case "ThrottlingException": return [3, 12];
|
|
2590
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 12];
|
|
2591
|
+
}
|
|
2592
|
+
return [3, 14];
|
|
2593
2593
|
case 2:
|
|
2594
2594
|
_c = [{}];
|
|
2595
|
-
return [4
|
|
2595
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2596
2596
|
case 3:
|
|
2597
2597
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2598
|
-
return [3
|
|
2598
|
+
return [3, 15];
|
|
2599
2599
|
case 4:
|
|
2600
2600
|
_d = [{}];
|
|
2601
|
-
return [4
|
|
2601
|
+
return [4, deserializeAws_restJson1IllegalActionExceptionResponse(parsedOutput, context)];
|
|
2602
2602
|
case 5:
|
|
2603
2603
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2604
|
-
return [3
|
|
2604
|
+
return [3, 15];
|
|
2605
2605
|
case 6:
|
|
2606
2606
|
_e = [{}];
|
|
2607
|
-
return [4
|
|
2607
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2608
2608
|
case 7:
|
|
2609
2609
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2610
|
-
return [3
|
|
2610
|
+
return [3, 15];
|
|
2611
2611
|
case 8:
|
|
2612
2612
|
_f = [{}];
|
|
2613
|
-
return [4
|
|
2613
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2614
2614
|
case 9:
|
|
2615
2615
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2616
|
-
return [3
|
|
2616
|
+
return [3, 15];
|
|
2617
2617
|
case 10:
|
|
2618
2618
|
_g = [{}];
|
|
2619
|
-
return [4
|
|
2619
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2620
2620
|
case 11:
|
|
2621
2621
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2622
|
-
return [3
|
|
2622
|
+
return [3, 15];
|
|
2623
2623
|
case 12:
|
|
2624
2624
|
_h = [{}];
|
|
2625
|
-
return [4
|
|
2625
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2626
2626
|
case 13:
|
|
2627
2627
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2628
|
-
return [3
|
|
2628
|
+
return [3, 15];
|
|
2629
2629
|
case 14:
|
|
2630
2630
|
parsedBody = parsedOutput.body;
|
|
2631
2631
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2635,7 +2635,7 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
|
|
|
2635
2635
|
message = response.message || response.Message || errorCode;
|
|
2636
2636
|
response.message = message;
|
|
2637
2637
|
delete response.Message;
|
|
2638
|
-
return [2
|
|
2638
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2639
2639
|
}
|
|
2640
2640
|
});
|
|
2641
2641
|
}); };
|
|
@@ -2645,15 +2645,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2645
2645
|
switch (_a.label) {
|
|
2646
2646
|
case 0:
|
|
2647
2647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2648
|
-
return [2
|
|
2648
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
2649
2649
|
}
|
|
2650
2650
|
contents = {
|
|
2651
2651
|
$metadata: deserializeMetadata(output),
|
|
2652
2652
|
};
|
|
2653
|
-
return [4
|
|
2653
|
+
return [4, collectBody(output.body, context)];
|
|
2654
2654
|
case 1:
|
|
2655
2655
|
_a.sent();
|
|
2656
|
-
return [2
|
|
2656
|
+
return [2, Promise.resolve(contents)];
|
|
2657
2657
|
}
|
|
2658
2658
|
});
|
|
2659
2659
|
}); };
|
|
@@ -2665,55 +2665,55 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2665
2665
|
case 0:
|
|
2666
2666
|
_a = [__assign({}, output)];
|
|
2667
2667
|
_h = {};
|
|
2668
|
-
return [4
|
|
2668
|
+
return [4, parseBody(output.body, context)];
|
|
2669
2669
|
case 1:
|
|
2670
2670
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2671
2671
|
errorCode = "UnknownError";
|
|
2672
2672
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2673
2673
|
_b = errorCode;
|
|
2674
2674
|
switch (_b) {
|
|
2675
|
-
case "InternalServiceErrorException": return [3
|
|
2676
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2677
|
-
case "InvalidRequestException": return [3
|
|
2678
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2679
|
-
case "ResourceNotFoundException": return [3
|
|
2680
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
2681
|
-
case "ResourceNotReadyException": return [3
|
|
2682
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3
|
|
2683
|
-
case "TooManyTagsException": return [3
|
|
2684
|
-
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3
|
|
2685
|
-
}
|
|
2686
|
-
return [3
|
|
2675
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
2676
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 2];
|
|
2677
|
+
case "InvalidRequestException": return [3, 4];
|
|
2678
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 4];
|
|
2679
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2680
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 6];
|
|
2681
|
+
case "ResourceNotReadyException": return [3, 8];
|
|
2682
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3, 8];
|
|
2683
|
+
case "TooManyTagsException": return [3, 10];
|
|
2684
|
+
case "com.amazonaws.managedblockchain#TooManyTagsException": return [3, 10];
|
|
2685
|
+
}
|
|
2686
|
+
return [3, 12];
|
|
2687
2687
|
case 2:
|
|
2688
2688
|
_c = [{}];
|
|
2689
|
-
return [4
|
|
2689
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2690
2690
|
case 3:
|
|
2691
2691
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2692
|
-
return [3
|
|
2692
|
+
return [3, 13];
|
|
2693
2693
|
case 4:
|
|
2694
2694
|
_d = [{}];
|
|
2695
|
-
return [4
|
|
2695
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2696
2696
|
case 5:
|
|
2697
2697
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2698
|
-
return [3
|
|
2698
|
+
return [3, 13];
|
|
2699
2699
|
case 6:
|
|
2700
2700
|
_e = [{}];
|
|
2701
|
-
return [4
|
|
2701
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2702
2702
|
case 7:
|
|
2703
2703
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2704
|
-
return [3
|
|
2704
|
+
return [3, 13];
|
|
2705
2705
|
case 8:
|
|
2706
2706
|
_f = [{}];
|
|
2707
|
-
return [4
|
|
2707
|
+
return [4, deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context)];
|
|
2708
2708
|
case 9:
|
|
2709
2709
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2710
|
-
return [3
|
|
2710
|
+
return [3, 13];
|
|
2711
2711
|
case 10:
|
|
2712
2712
|
_g = [{}];
|
|
2713
|
-
return [4
|
|
2713
|
+
return [4, deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2714
2714
|
case 11:
|
|
2715
2715
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2716
|
-
return [3
|
|
2716
|
+
return [3, 13];
|
|
2717
2717
|
case 12:
|
|
2718
2718
|
parsedBody = parsedOutput.body;
|
|
2719
2719
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2723,7 +2723,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2723
2723
|
message = response.message || response.Message || errorCode;
|
|
2724
2724
|
response.message = message;
|
|
2725
2725
|
delete response.Message;
|
|
2726
|
-
return [2
|
|
2726
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2727
2727
|
}
|
|
2728
2728
|
});
|
|
2729
2729
|
}); };
|
|
@@ -2733,15 +2733,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2733
2733
|
switch (_a.label) {
|
|
2734
2734
|
case 0:
|
|
2735
2735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2736
|
-
return [2
|
|
2736
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
2737
2737
|
}
|
|
2738
2738
|
contents = {
|
|
2739
2739
|
$metadata: deserializeMetadata(output),
|
|
2740
2740
|
};
|
|
2741
|
-
return [4
|
|
2741
|
+
return [4, collectBody(output.body, context)];
|
|
2742
2742
|
case 1:
|
|
2743
2743
|
_a.sent();
|
|
2744
|
-
return [2
|
|
2744
|
+
return [2, Promise.resolve(contents)];
|
|
2745
2745
|
}
|
|
2746
2746
|
});
|
|
2747
2747
|
}); };
|
|
@@ -2753,47 +2753,47 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2753
2753
|
case 0:
|
|
2754
2754
|
_a = [__assign({}, output)];
|
|
2755
2755
|
_g = {};
|
|
2756
|
-
return [4
|
|
2756
|
+
return [4, parseBody(output.body, context)];
|
|
2757
2757
|
case 1:
|
|
2758
2758
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2759
2759
|
errorCode = "UnknownError";
|
|
2760
2760
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
2761
|
_b = errorCode;
|
|
2762
2762
|
switch (_b) {
|
|
2763
|
-
case "InternalServiceErrorException": return [3
|
|
2764
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2765
|
-
case "InvalidRequestException": return [3
|
|
2766
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2767
|
-
case "ResourceNotFoundException": return [3
|
|
2768
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
2769
|
-
case "ResourceNotReadyException": return [3
|
|
2770
|
-
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3
|
|
2771
|
-
}
|
|
2772
|
-
return [3
|
|
2763
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
2764
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 2];
|
|
2765
|
+
case "InvalidRequestException": return [3, 4];
|
|
2766
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 4];
|
|
2767
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2768
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 6];
|
|
2769
|
+
case "ResourceNotReadyException": return [3, 8];
|
|
2770
|
+
case "com.amazonaws.managedblockchain#ResourceNotReadyException": return [3, 8];
|
|
2771
|
+
}
|
|
2772
|
+
return [3, 10];
|
|
2773
2773
|
case 2:
|
|
2774
2774
|
_c = [{}];
|
|
2775
|
-
return [4
|
|
2775
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2776
2776
|
case 3:
|
|
2777
2777
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2778
|
-
return [3
|
|
2778
|
+
return [3, 11];
|
|
2779
2779
|
case 4:
|
|
2780
2780
|
_d = [{}];
|
|
2781
|
-
return [4
|
|
2781
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2782
2782
|
case 5:
|
|
2783
2783
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2784
|
-
return [3
|
|
2784
|
+
return [3, 11];
|
|
2785
2785
|
case 6:
|
|
2786
2786
|
_e = [{}];
|
|
2787
|
-
return [4
|
|
2787
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2788
2788
|
case 7:
|
|
2789
2789
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2790
|
-
return [3
|
|
2790
|
+
return [3, 11];
|
|
2791
2791
|
case 8:
|
|
2792
2792
|
_f = [{}];
|
|
2793
|
-
return [4
|
|
2793
|
+
return [4, deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context)];
|
|
2794
2794
|
case 9:
|
|
2795
2795
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2796
|
-
return [3
|
|
2796
|
+
return [3, 11];
|
|
2797
2797
|
case 10:
|
|
2798
2798
|
parsedBody = parsedOutput.body;
|
|
2799
2799
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2803,7 +2803,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2803
2803
|
message = response.message || response.Message || errorCode;
|
|
2804
2804
|
response.message = message;
|
|
2805
2805
|
delete response.Message;
|
|
2806
|
-
return [2
|
|
2806
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2807
2807
|
}
|
|
2808
2808
|
});
|
|
2809
2809
|
}); };
|
|
@@ -2813,15 +2813,15 @@ export var deserializeAws_restJson1UpdateMemberCommand = function (output, conte
|
|
|
2813
2813
|
switch (_a.label) {
|
|
2814
2814
|
case 0:
|
|
2815
2815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2816
|
-
return [2
|
|
2816
|
+
return [2, deserializeAws_restJson1UpdateMemberCommandError(output, context)];
|
|
2817
2817
|
}
|
|
2818
2818
|
contents = {
|
|
2819
2819
|
$metadata: deserializeMetadata(output),
|
|
2820
2820
|
};
|
|
2821
|
-
return [4
|
|
2821
|
+
return [4, collectBody(output.body, context)];
|
|
2822
2822
|
case 1:
|
|
2823
2823
|
_a.sent();
|
|
2824
|
-
return [2
|
|
2824
|
+
return [2, Promise.resolve(contents)];
|
|
2825
2825
|
}
|
|
2826
2826
|
});
|
|
2827
2827
|
}); };
|
|
@@ -2833,55 +2833,55 @@ var deserializeAws_restJson1UpdateMemberCommandError = function (output, context
|
|
|
2833
2833
|
case 0:
|
|
2834
2834
|
_a = [__assign({}, output)];
|
|
2835
2835
|
_h = {};
|
|
2836
|
-
return [4
|
|
2836
|
+
return [4, parseBody(output.body, context)];
|
|
2837
2837
|
case 1:
|
|
2838
2838
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2839
2839
|
errorCode = "UnknownError";
|
|
2840
2840
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2841
2841
|
_b = errorCode;
|
|
2842
2842
|
switch (_b) {
|
|
2843
|
-
case "AccessDeniedException": return [3
|
|
2844
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
2845
|
-
case "InternalServiceErrorException": return [3
|
|
2846
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2847
|
-
case "InvalidRequestException": return [3
|
|
2848
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2849
|
-
case "ResourceNotFoundException": return [3
|
|
2850
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
2851
|
-
case "ThrottlingException": return [3
|
|
2852
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
2853
|
-
}
|
|
2854
|
-
return [3
|
|
2843
|
+
case "AccessDeniedException": return [3, 2];
|
|
2844
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
2845
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
2846
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
2847
|
+
case "InvalidRequestException": return [3, 6];
|
|
2848
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
2849
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2850
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
2851
|
+
case "ThrottlingException": return [3, 10];
|
|
2852
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 10];
|
|
2853
|
+
}
|
|
2854
|
+
return [3, 12];
|
|
2855
2855
|
case 2:
|
|
2856
2856
|
_c = [{}];
|
|
2857
|
-
return [4
|
|
2857
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2858
2858
|
case 3:
|
|
2859
2859
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2860
|
-
return [3
|
|
2860
|
+
return [3, 13];
|
|
2861
2861
|
case 4:
|
|
2862
2862
|
_d = [{}];
|
|
2863
|
-
return [4
|
|
2863
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2864
2864
|
case 5:
|
|
2865
2865
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2866
|
-
return [3
|
|
2866
|
+
return [3, 13];
|
|
2867
2867
|
case 6:
|
|
2868
2868
|
_e = [{}];
|
|
2869
|
-
return [4
|
|
2869
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2870
2870
|
case 7:
|
|
2871
2871
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2872
|
-
return [3
|
|
2872
|
+
return [3, 13];
|
|
2873
2873
|
case 8:
|
|
2874
2874
|
_f = [{}];
|
|
2875
|
-
return [4
|
|
2875
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2876
2876
|
case 9:
|
|
2877
2877
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2878
|
-
return [3
|
|
2878
|
+
return [3, 13];
|
|
2879
2879
|
case 10:
|
|
2880
2880
|
_g = [{}];
|
|
2881
|
-
return [4
|
|
2881
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2882
2882
|
case 11:
|
|
2883
2883
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2884
|
-
return [3
|
|
2884
|
+
return [3, 13];
|
|
2885
2885
|
case 12:
|
|
2886
2886
|
parsedBody = parsedOutput.body;
|
|
2887
2887
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2891,7 +2891,7 @@ var deserializeAws_restJson1UpdateMemberCommandError = function (output, context
|
|
|
2891
2891
|
message = response.message || response.Message || errorCode;
|
|
2892
2892
|
response.message = message;
|
|
2893
2893
|
delete response.Message;
|
|
2894
|
-
return [2
|
|
2894
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2895
2895
|
}
|
|
2896
2896
|
});
|
|
2897
2897
|
}); };
|
|
@@ -2901,15 +2901,15 @@ export var deserializeAws_restJson1UpdateNodeCommand = function (output, context
|
|
|
2901
2901
|
switch (_a.label) {
|
|
2902
2902
|
case 0:
|
|
2903
2903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2904
|
-
return [2
|
|
2904
|
+
return [2, deserializeAws_restJson1UpdateNodeCommandError(output, context)];
|
|
2905
2905
|
}
|
|
2906
2906
|
contents = {
|
|
2907
2907
|
$metadata: deserializeMetadata(output),
|
|
2908
2908
|
};
|
|
2909
|
-
return [4
|
|
2909
|
+
return [4, collectBody(output.body, context)];
|
|
2910
2910
|
case 1:
|
|
2911
2911
|
_a.sent();
|
|
2912
|
-
return [2
|
|
2912
|
+
return [2, Promise.resolve(contents)];
|
|
2913
2913
|
}
|
|
2914
2914
|
});
|
|
2915
2915
|
}); };
|
|
@@ -2921,55 +2921,55 @@ var deserializeAws_restJson1UpdateNodeCommandError = function (output, context)
|
|
|
2921
2921
|
case 0:
|
|
2922
2922
|
_a = [__assign({}, output)];
|
|
2923
2923
|
_h = {};
|
|
2924
|
-
return [4
|
|
2924
|
+
return [4, parseBody(output.body, context)];
|
|
2925
2925
|
case 1:
|
|
2926
2926
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2927
2927
|
errorCode = "UnknownError";
|
|
2928
2928
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2929
2929
|
_b = errorCode;
|
|
2930
2930
|
switch (_b) {
|
|
2931
|
-
case "AccessDeniedException": return [3
|
|
2932
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
2933
|
-
case "InternalServiceErrorException": return [3
|
|
2934
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
2935
|
-
case "InvalidRequestException": return [3
|
|
2936
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
2937
|
-
case "ResourceNotFoundException": return [3
|
|
2938
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
2939
|
-
case "ThrottlingException": return [3
|
|
2940
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
2941
|
-
}
|
|
2942
|
-
return [3
|
|
2931
|
+
case "AccessDeniedException": return [3, 2];
|
|
2932
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
2933
|
+
case "InternalServiceErrorException": return [3, 4];
|
|
2934
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 4];
|
|
2935
|
+
case "InvalidRequestException": return [3, 6];
|
|
2936
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 6];
|
|
2937
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2938
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 8];
|
|
2939
|
+
case "ThrottlingException": return [3, 10];
|
|
2940
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 10];
|
|
2941
|
+
}
|
|
2942
|
+
return [3, 12];
|
|
2943
2943
|
case 2:
|
|
2944
2944
|
_c = [{}];
|
|
2945
|
-
return [4
|
|
2945
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2946
2946
|
case 3:
|
|
2947
2947
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2948
|
-
return [3
|
|
2948
|
+
return [3, 13];
|
|
2949
2949
|
case 4:
|
|
2950
2950
|
_d = [{}];
|
|
2951
|
-
return [4
|
|
2951
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
2952
2952
|
case 5:
|
|
2953
2953
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2954
|
-
return [3
|
|
2954
|
+
return [3, 13];
|
|
2955
2955
|
case 6:
|
|
2956
2956
|
_e = [{}];
|
|
2957
|
-
return [4
|
|
2957
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2958
2958
|
case 7:
|
|
2959
2959
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2960
|
-
return [3
|
|
2960
|
+
return [3, 13];
|
|
2961
2961
|
case 8:
|
|
2962
2962
|
_f = [{}];
|
|
2963
|
-
return [4
|
|
2963
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2964
2964
|
case 9:
|
|
2965
2965
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2966
|
-
return [3
|
|
2966
|
+
return [3, 13];
|
|
2967
2967
|
case 10:
|
|
2968
2968
|
_g = [{}];
|
|
2969
|
-
return [4
|
|
2969
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2970
2970
|
case 11:
|
|
2971
2971
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2972
|
-
return [3
|
|
2972
|
+
return [3, 13];
|
|
2973
2973
|
case 12:
|
|
2974
2974
|
parsedBody = parsedOutput.body;
|
|
2975
2975
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2979,7 +2979,7 @@ var deserializeAws_restJson1UpdateNodeCommandError = function (output, context)
|
|
|
2979
2979
|
message = response.message || response.Message || errorCode;
|
|
2980
2980
|
response.message = message;
|
|
2981
2981
|
delete response.Message;
|
|
2982
|
-
return [2
|
|
2982
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2983
2983
|
}
|
|
2984
2984
|
});
|
|
2985
2985
|
}); };
|
|
@@ -2989,15 +2989,15 @@ export var deserializeAws_restJson1VoteOnProposalCommand = function (output, con
|
|
|
2989
2989
|
switch (_a.label) {
|
|
2990
2990
|
case 0:
|
|
2991
2991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2992
|
-
return [2
|
|
2992
|
+
return [2, deserializeAws_restJson1VoteOnProposalCommandError(output, context)];
|
|
2993
2993
|
}
|
|
2994
2994
|
contents = {
|
|
2995
2995
|
$metadata: deserializeMetadata(output),
|
|
2996
2996
|
};
|
|
2997
|
-
return [4
|
|
2997
|
+
return [4, collectBody(output.body, context)];
|
|
2998
2998
|
case 1:
|
|
2999
2999
|
_a.sent();
|
|
3000
|
-
return [2
|
|
3000
|
+
return [2, Promise.resolve(contents)];
|
|
3001
3001
|
}
|
|
3002
3002
|
});
|
|
3003
3003
|
}); };
|
|
@@ -3009,63 +3009,63 @@ var deserializeAws_restJson1VoteOnProposalCommandError = function (output, conte
|
|
|
3009
3009
|
case 0:
|
|
3010
3010
|
_a = [__assign({}, output)];
|
|
3011
3011
|
_j = {};
|
|
3012
|
-
return [4
|
|
3012
|
+
return [4, parseBody(output.body, context)];
|
|
3013
3013
|
case 1:
|
|
3014
3014
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
3015
3015
|
errorCode = "UnknownError";
|
|
3016
3016
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3017
3017
|
_b = errorCode;
|
|
3018
3018
|
switch (_b) {
|
|
3019
|
-
case "AccessDeniedException": return [3
|
|
3020
|
-
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3
|
|
3021
|
-
case "IllegalActionException": return [3
|
|
3022
|
-
case "com.amazonaws.managedblockchain#IllegalActionException": return [3
|
|
3023
|
-
case "InternalServiceErrorException": return [3
|
|
3024
|
-
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3
|
|
3025
|
-
case "InvalidRequestException": return [3
|
|
3026
|
-
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3
|
|
3027
|
-
case "ResourceNotFoundException": return [3
|
|
3028
|
-
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3
|
|
3029
|
-
case "ThrottlingException": return [3
|
|
3030
|
-
case "com.amazonaws.managedblockchain#ThrottlingException": return [3
|
|
3031
|
-
}
|
|
3032
|
-
return [3
|
|
3019
|
+
case "AccessDeniedException": return [3, 2];
|
|
3020
|
+
case "com.amazonaws.managedblockchain#AccessDeniedException": return [3, 2];
|
|
3021
|
+
case "IllegalActionException": return [3, 4];
|
|
3022
|
+
case "com.amazonaws.managedblockchain#IllegalActionException": return [3, 4];
|
|
3023
|
+
case "InternalServiceErrorException": return [3, 6];
|
|
3024
|
+
case "com.amazonaws.managedblockchain#InternalServiceErrorException": return [3, 6];
|
|
3025
|
+
case "InvalidRequestException": return [3, 8];
|
|
3026
|
+
case "com.amazonaws.managedblockchain#InvalidRequestException": return [3, 8];
|
|
3027
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
3028
|
+
case "com.amazonaws.managedblockchain#ResourceNotFoundException": return [3, 10];
|
|
3029
|
+
case "ThrottlingException": return [3, 12];
|
|
3030
|
+
case "com.amazonaws.managedblockchain#ThrottlingException": return [3, 12];
|
|
3031
|
+
}
|
|
3032
|
+
return [3, 14];
|
|
3033
3033
|
case 2:
|
|
3034
3034
|
_c = [{}];
|
|
3035
|
-
return [4
|
|
3035
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3036
3036
|
case 3:
|
|
3037
3037
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3038
|
-
return [3
|
|
3038
|
+
return [3, 15];
|
|
3039
3039
|
case 4:
|
|
3040
3040
|
_d = [{}];
|
|
3041
|
-
return [4
|
|
3041
|
+
return [4, deserializeAws_restJson1IllegalActionExceptionResponse(parsedOutput, context)];
|
|
3042
3042
|
case 5:
|
|
3043
3043
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3044
|
-
return [3
|
|
3044
|
+
return [3, 15];
|
|
3045
3045
|
case 6:
|
|
3046
3046
|
_e = [{}];
|
|
3047
|
-
return [4
|
|
3047
|
+
return [4, deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
3048
3048
|
case 7:
|
|
3049
3049
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3050
|
-
return [3
|
|
3050
|
+
return [3, 15];
|
|
3051
3051
|
case 8:
|
|
3052
3052
|
_f = [{}];
|
|
3053
|
-
return [4
|
|
3053
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
3054
3054
|
case 9:
|
|
3055
3055
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3056
|
-
return [3
|
|
3056
|
+
return [3, 15];
|
|
3057
3057
|
case 10:
|
|
3058
3058
|
_g = [{}];
|
|
3059
|
-
return [4
|
|
3059
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3060
3060
|
case 11:
|
|
3061
3061
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3062
|
-
return [3
|
|
3062
|
+
return [3, 15];
|
|
3063
3063
|
case 12:
|
|
3064
3064
|
_h = [{}];
|
|
3065
|
-
return [4
|
|
3065
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3066
3066
|
case 13:
|
|
3067
3067
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3068
|
-
return [3
|
|
3068
|
+
return [3, 15];
|
|
3069
3069
|
case 14:
|
|
3070
3070
|
parsedBody = parsedOutput.body;
|
|
3071
3071
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3075,7 +3075,7 @@ var deserializeAws_restJson1VoteOnProposalCommandError = function (output, conte
|
|
|
3075
3075
|
message = response.message || response.Message || errorCode;
|
|
3076
3076
|
response.message = message;
|
|
3077
3077
|
delete response.Message;
|
|
3078
|
-
return [2
|
|
3078
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3079
3079
|
}
|
|
3080
3080
|
});
|
|
3081
3081
|
}); };
|
|
@@ -3092,7 +3092,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
3092
3092
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3093
3093
|
contents.Message = __expectString(data.Message);
|
|
3094
3094
|
}
|
|
3095
|
-
return [2
|
|
3095
|
+
return [2, contents];
|
|
3096
3096
|
});
|
|
3097
3097
|
}); };
|
|
3098
3098
|
var deserializeAws_restJson1IllegalActionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3108,7 +3108,7 @@ var deserializeAws_restJson1IllegalActionExceptionResponse = function (parsedOut
|
|
|
3108
3108
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3109
3109
|
contents.Message = __expectString(data.Message);
|
|
3110
3110
|
}
|
|
3111
|
-
return [2
|
|
3111
|
+
return [2, contents];
|
|
3112
3112
|
});
|
|
3113
3113
|
}); };
|
|
3114
3114
|
var deserializeAws_restJson1InternalServiceErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3120,7 +3120,7 @@ var deserializeAws_restJson1InternalServiceErrorExceptionResponse = function (pa
|
|
|
3120
3120
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3121
3121
|
};
|
|
3122
3122
|
data = parsedOutput.body;
|
|
3123
|
-
return [2
|
|
3123
|
+
return [2, contents];
|
|
3124
3124
|
});
|
|
3125
3125
|
}); };
|
|
3126
3126
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3136,7 +3136,7 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
3136
3136
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3137
3137
|
contents.Message = __expectString(data.Message);
|
|
3138
3138
|
}
|
|
3139
|
-
return [2
|
|
3139
|
+
return [2, contents];
|
|
3140
3140
|
});
|
|
3141
3141
|
}); };
|
|
3142
3142
|
var deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3152,7 +3152,7 @@ var deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = function (p
|
|
|
3152
3152
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3153
3153
|
contents.Message = __expectString(data.Message);
|
|
3154
3154
|
}
|
|
3155
|
-
return [2
|
|
3155
|
+
return [2, contents];
|
|
3156
3156
|
});
|
|
3157
3157
|
}); };
|
|
3158
3158
|
var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3168,7 +3168,7 @@ var deserializeAws_restJson1ResourceLimitExceededExceptionResponse = function (p
|
|
|
3168
3168
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3169
3169
|
contents.Message = __expectString(data.Message);
|
|
3170
3170
|
}
|
|
3171
|
-
return [2
|
|
3171
|
+
return [2, contents];
|
|
3172
3172
|
});
|
|
3173
3173
|
}); };
|
|
3174
3174
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3188,7 +3188,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
3188
3188
|
if (data.ResourceName !== undefined && data.ResourceName !== null) {
|
|
3189
3189
|
contents.ResourceName = __expectString(data.ResourceName);
|
|
3190
3190
|
}
|
|
3191
|
-
return [2
|
|
3191
|
+
return [2, contents];
|
|
3192
3192
|
});
|
|
3193
3193
|
}); };
|
|
3194
3194
|
var deserializeAws_restJson1ResourceNotReadyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3204,7 +3204,7 @@ var deserializeAws_restJson1ResourceNotReadyExceptionResponse = function (parsed
|
|
|
3204
3204
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3205
3205
|
contents.Message = __expectString(data.Message);
|
|
3206
3206
|
}
|
|
3207
|
-
return [2
|
|
3207
|
+
return [2, contents];
|
|
3208
3208
|
});
|
|
3209
3209
|
}); };
|
|
3210
3210
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3216,7 +3216,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
3216
3216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3217
3217
|
};
|
|
3218
3218
|
data = parsedOutput.body;
|
|
3219
|
-
return [2
|
|
3219
|
+
return [2, contents];
|
|
3220
3220
|
});
|
|
3221
3221
|
}); };
|
|
3222
3222
|
var deserializeAws_restJson1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3236,7 +3236,7 @@ var deserializeAws_restJson1TooManyTagsExceptionResponse = function (parsedOutpu
|
|
|
3236
3236
|
if (data.ResourceName !== undefined && data.ResourceName !== null) {
|
|
3237
3237
|
contents.ResourceName = __expectString(data.ResourceName);
|
|
3238
3238
|
}
|
|
3239
|
-
return [2
|
|
3239
|
+
return [2, contents];
|
|
3240
3240
|
});
|
|
3241
3241
|
}); };
|
|
3242
3242
|
var serializeAws_restJson1ApprovalThresholdPolicy = function (input, context) {
|
|
@@ -3365,9 +3365,11 @@ var deserializeAws_restJson1ApprovalThresholdPolicy = function (output, context)
|
|
|
3365
3365
|
var deserializeAws_restJson1Invitation = function (output, context) {
|
|
3366
3366
|
return {
|
|
3367
3367
|
Arn: __expectString(output.Arn),
|
|
3368
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3368
|
+
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3369
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3370
|
+
: undefined,
|
|
3369
3371
|
ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
|
|
3370
|
-
?
|
|
3372
|
+
? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate))
|
|
3371
3373
|
: undefined,
|
|
3372
3374
|
InvitationId: __expectString(output.InvitationId),
|
|
3373
3375
|
NetworkSummary: output.NetworkSummary !== undefined && output.NetworkSummary !== null
|
|
@@ -3416,7 +3418,9 @@ var deserializeAws_restJson1LogConfigurations = function (output, context) {
|
|
|
3416
3418
|
var deserializeAws_restJson1Member = function (output, context) {
|
|
3417
3419
|
return {
|
|
3418
3420
|
Arn: __expectString(output.Arn),
|
|
3419
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3421
|
+
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3422
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3423
|
+
: undefined,
|
|
3420
3424
|
Description: __expectString(output.Description),
|
|
3421
3425
|
FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
|
|
3422
3426
|
? deserializeAws_restJson1MemberFrameworkAttributes(output.FrameworkAttributes, context)
|
|
@@ -3464,7 +3468,9 @@ var deserializeAws_restJson1MemberLogPublishingConfiguration = function (output,
|
|
|
3464
3468
|
var deserializeAws_restJson1MemberSummary = function (output, context) {
|
|
3465
3469
|
return {
|
|
3466
3470
|
Arn: __expectString(output.Arn),
|
|
3467
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3471
|
+
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3472
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3473
|
+
: undefined,
|
|
3468
3474
|
Description: __expectString(output.Description),
|
|
3469
3475
|
Id: __expectString(output.Id),
|
|
3470
3476
|
IsOwned: __expectBoolean(output.IsOwned),
|
|
@@ -3485,7 +3491,9 @@ var deserializeAws_restJson1MemberSummaryList = function (output, context) {
|
|
|
3485
3491
|
var deserializeAws_restJson1Network = function (output, context) {
|
|
3486
3492
|
return {
|
|
3487
3493
|
Arn: __expectString(output.Arn),
|
|
3488
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3494
|
+
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3495
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3496
|
+
: undefined,
|
|
3489
3497
|
Description: __expectString(output.Description),
|
|
3490
3498
|
Framework: __expectString(output.Framework),
|
|
3491
3499
|
FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
|
|
@@ -3528,7 +3536,9 @@ var deserializeAws_restJson1NetworkFrameworkAttributes = function (output, conte
|
|
|
3528
3536
|
var deserializeAws_restJson1NetworkSummary = function (output, context) {
|
|
3529
3537
|
return {
|
|
3530
3538
|
Arn: __expectString(output.Arn),
|
|
3531
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3539
|
+
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3540
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3541
|
+
: undefined,
|
|
3532
3542
|
Description: __expectString(output.Description),
|
|
3533
3543
|
Framework: __expectString(output.Framework),
|
|
3534
3544
|
FrameworkVersion: __expectString(output.FrameworkVersion),
|
|
@@ -3551,7 +3561,9 @@ var deserializeAws_restJson1Node = function (output, context) {
|
|
|
3551
3561
|
return {
|
|
3552
3562
|
Arn: __expectString(output.Arn),
|
|
3553
3563
|
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
3554
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3564
|
+
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3565
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3566
|
+
: undefined,
|
|
3555
3567
|
FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
|
|
3556
3568
|
? deserializeAws_restJson1NodeFrameworkAttributes(output.FrameworkAttributes, context)
|
|
3557
3569
|
: undefined,
|
|
@@ -3613,7 +3625,9 @@ var deserializeAws_restJson1NodeSummary = function (output, context) {
|
|
|
3613
3625
|
return {
|
|
3614
3626
|
Arn: __expectString(output.Arn),
|
|
3615
3627
|
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
3616
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3628
|
+
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3629
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3630
|
+
: undefined,
|
|
3617
3631
|
Id: __expectString(output.Id),
|
|
3618
3632
|
InstanceType: __expectString(output.InstanceType),
|
|
3619
3633
|
Status: __expectString(output.Status),
|
|
@@ -3645,10 +3659,12 @@ var deserializeAws_restJson1Proposal = function (output, context) {
|
|
|
3645
3659
|
? deserializeAws_restJson1ProposalActions(output.Actions, context)
|
|
3646
3660
|
: undefined,
|
|
3647
3661
|
Arn: __expectString(output.Arn),
|
|
3648
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3662
|
+
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3663
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3664
|
+
: undefined,
|
|
3649
3665
|
Description: __expectString(output.Description),
|
|
3650
3666
|
ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
|
|
3651
|
-
?
|
|
3667
|
+
? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate))
|
|
3652
3668
|
: undefined,
|
|
3653
3669
|
NetworkId: __expectString(output.NetworkId),
|
|
3654
3670
|
NoVoteCount: __expectInt32(output.NoVoteCount),
|
|
@@ -3676,10 +3692,12 @@ var deserializeAws_restJson1ProposalActions = function (output, context) {
|
|
|
3676
3692
|
var deserializeAws_restJson1ProposalSummary = function (output, context) {
|
|
3677
3693
|
return {
|
|
3678
3694
|
Arn: __expectString(output.Arn),
|
|
3679
|
-
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3695
|
+
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
3696
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3697
|
+
: undefined,
|
|
3680
3698
|
Description: __expectString(output.Description),
|
|
3681
3699
|
ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
|
|
3682
|
-
?
|
|
3700
|
+
? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate))
|
|
3683
3701
|
: undefined,
|
|
3684
3702
|
ProposalId: __expectString(output.ProposalId),
|
|
3685
3703
|
ProposedByMemberId: __expectString(output.ProposedByMemberId),
|
|
@@ -3745,7 +3763,6 @@ var deserializeMetadata = function (output) {
|
|
|
3745
3763
|
cfId: output.headers["x-amz-cf-id"],
|
|
3746
3764
|
});
|
|
3747
3765
|
};
|
|
3748
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3749
3766
|
var collectBody = function (streamBody, context) {
|
|
3750
3767
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3751
3768
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3753,7 +3770,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3753
3770
|
}
|
|
3754
3771
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3755
3772
|
};
|
|
3756
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3757
3773
|
var collectBodyString = function (streamBody, context) {
|
|
3758
3774
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3759
3775
|
};
|
|
@@ -3772,9 +3788,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3772
3788
|
return {};
|
|
3773
3789
|
});
|
|
3774
3790
|
};
|
|
3775
|
-
/**
|
|
3776
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3777
|
-
*/
|
|
3778
3791
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3779
3792
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3780
3793
|
var sanitizeErrorCode = function (rawValue) {
|