@aws-sdk/client-managedblockchain 3.118.1 → 3.128.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +208 -272
- package/dist-es/protocols/Aws_restJson1.js +189 -253
- package/package.json +26 -26
|
@@ -26,8 +26,7 @@ export var serializeAws_restJson1CreateMemberCommand = function (input, context)
|
|
|
26
26
|
else {
|
|
27
27
|
throw new Error("No value provided for input HTTP label: NetworkId.");
|
|
28
28
|
}
|
|
29
|
-
body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.InvitationId
|
|
30
|
-
input.MemberConfiguration !== null && {
|
|
29
|
+
body = JSON.stringify(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.InvitationId != null && { InvitationId: input.InvitationId })), (input.MemberConfiguration != null && {
|
|
31
30
|
MemberConfiguration: serializeAws_restJson1MemberConfiguration(input.MemberConfiguration, context),
|
|
32
31
|
})));
|
|
33
32
|
return [2, new __HttpRequest({
|
|
@@ -54,16 +53,13 @@ export var serializeAws_restJson1CreateNetworkCommand = function (input, context
|
|
|
54
53
|
"content-type": "application/json",
|
|
55
54
|
};
|
|
56
55
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/networks";
|
|
57
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description
|
|
58
|
-
input.FrameworkConfiguration !== null && {
|
|
56
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Framework != null && { Framework: input.Framework })), (input.FrameworkConfiguration != null && {
|
|
59
57
|
FrameworkConfiguration: serializeAws_restJson1NetworkFrameworkConfiguration(input.FrameworkConfiguration, context),
|
|
60
|
-
})), (input.FrameworkVersion
|
|
61
|
-
input.FrameworkVersion !== null && { FrameworkVersion: input.FrameworkVersion })), (input.MemberConfiguration !== undefined &&
|
|
62
|
-
input.MemberConfiguration !== null && {
|
|
58
|
+
})), (input.FrameworkVersion != null && { FrameworkVersion: input.FrameworkVersion })), (input.MemberConfiguration != null && {
|
|
63
59
|
MemberConfiguration: serializeAws_restJson1MemberConfiguration(input.MemberConfiguration, context),
|
|
64
|
-
})), (input.Name
|
|
65
|
-
|
|
66
|
-
|
|
60
|
+
})), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })), (input.VotingPolicy != null && {
|
|
61
|
+
VotingPolicy: serializeAws_restJson1VotingPolicy(input.VotingPolicy, context),
|
|
62
|
+
})));
|
|
67
63
|
return [2, new __HttpRequest({
|
|
68
64
|
protocol: protocol,
|
|
69
65
|
hostname: hostname,
|
|
@@ -98,11 +94,9 @@ export var serializeAws_restJson1CreateNodeCommand = function (input, context) {
|
|
|
98
94
|
else {
|
|
99
95
|
throw new Error("No value provided for input HTTP label: NetworkId.");
|
|
100
96
|
}
|
|
101
|
-
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.MemberId
|
|
102
|
-
input.NodeConfiguration !== null && {
|
|
97
|
+
body = JSON.stringify(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.MemberId != null && { MemberId: input.MemberId })), (input.NodeConfiguration != null && {
|
|
103
98
|
NodeConfiguration: serializeAws_restJson1NodeConfiguration(input.NodeConfiguration, context),
|
|
104
|
-
})), (input.Tags
|
|
105
|
-
input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
|
|
99
|
+
})), (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
|
|
106
100
|
return [2, new __HttpRequest({
|
|
107
101
|
protocol: protocol,
|
|
108
102
|
hostname: hostname,
|
|
@@ -137,9 +131,7 @@ export var serializeAws_restJson1CreateProposalCommand = function (input, contex
|
|
|
137
131
|
else {
|
|
138
132
|
throw new Error("No value provided for input HTTP label: NetworkId.");
|
|
139
133
|
}
|
|
140
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Actions !==
|
|
141
|
-
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 &&
|
|
142
|
-
input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
|
|
134
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Actions != null && { Actions: serializeAws_restJson1ProposalActions(input.Actions, context) })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.Description != null && { Description: input.Description })), (input.MemberId != null && { MemberId: input.MemberId })), (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
|
|
143
135
|
return [2, new __HttpRequest({
|
|
144
136
|
protocol: protocol,
|
|
145
137
|
hostname: hostname,
|
|
@@ -665,8 +657,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
665
657
|
else {
|
|
666
658
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
667
659
|
}
|
|
668
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
669
|
-
input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
|
|
660
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) })));
|
|
670
661
|
return [2, new __HttpRequest({
|
|
671
662
|
protocol: protocol,
|
|
672
663
|
hostname: hostname,
|
|
@@ -743,8 +734,7 @@ export var serializeAws_restJson1UpdateMemberCommand = function (input, context)
|
|
|
743
734
|
else {
|
|
744
735
|
throw new Error("No value provided for input HTTP label: MemberId.");
|
|
745
736
|
}
|
|
746
|
-
body = JSON.stringify(__assign({}, (input.LogPublishingConfiguration
|
|
747
|
-
input.LogPublishingConfiguration !== null && {
|
|
737
|
+
body = JSON.stringify(__assign({}, (input.LogPublishingConfiguration != null && {
|
|
748
738
|
LogPublishingConfiguration: serializeAws_restJson1MemberLogPublishingConfiguration(input.LogPublishingConfiguration, context),
|
|
749
739
|
})));
|
|
750
740
|
return [2, new __HttpRequest({
|
|
@@ -790,10 +780,9 @@ export var serializeAws_restJson1UpdateNodeCommand = function (input, context) {
|
|
|
790
780
|
else {
|
|
791
781
|
throw new Error("No value provided for input HTTP label: NodeId.");
|
|
792
782
|
}
|
|
793
|
-
body = JSON.stringify(__assign(__assign({}, (input.LogPublishingConfiguration
|
|
794
|
-
input.LogPublishingConfiguration !== null && {
|
|
783
|
+
body = JSON.stringify(__assign(__assign({}, (input.LogPublishingConfiguration != null && {
|
|
795
784
|
LogPublishingConfiguration: serializeAws_restJson1NodeLogPublishingConfiguration(input.LogPublishingConfiguration, context),
|
|
796
|
-
})), (input.MemberId
|
|
785
|
+
})), (input.MemberId != null && { MemberId: input.MemberId })));
|
|
797
786
|
return [2, new __HttpRequest({
|
|
798
787
|
protocol: protocol,
|
|
799
788
|
hostname: hostname,
|
|
@@ -838,7 +827,7 @@ export var serializeAws_restJson1VoteOnProposalCommand = function (input, contex
|
|
|
838
827
|
else {
|
|
839
828
|
throw new Error("No value provided for input HTTP label: ProposalId.");
|
|
840
829
|
}
|
|
841
|
-
body = JSON.stringify(__assign(__assign({}, (input.Vote
|
|
830
|
+
body = JSON.stringify(__assign(__assign({}, (input.Vote != null && { Vote: input.Vote })), (input.VoterMemberId != null && { VoterMemberId: input.VoterMemberId })));
|
|
842
831
|
return [2, new __HttpRequest({
|
|
843
832
|
protocol: protocol,
|
|
844
833
|
hostname: hostname,
|
|
@@ -876,7 +865,7 @@ export var deserializeAws_restJson1CreateMemberCommand = function (output, conte
|
|
|
876
865
|
});
|
|
877
866
|
}); };
|
|
878
867
|
var deserializeAws_restJson1CreateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
879
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
868
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
880
869
|
var _c;
|
|
881
870
|
return __generator(this, function (_d) {
|
|
882
871
|
switch (_d.label) {
|
|
@@ -886,7 +875,6 @@ var deserializeAws_restJson1CreateMemberCommandError = function (output, context
|
|
|
886
875
|
return [4, parseBody(output.body, context)];
|
|
887
876
|
case 1:
|
|
888
877
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
889
|
-
errorCode = "UnknownError";
|
|
890
878
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
879
|
_b = errorCode;
|
|
892
880
|
switch (_b) {
|
|
@@ -930,10 +918,12 @@ var deserializeAws_restJson1CreateMemberCommandError = function (output, context
|
|
|
930
918
|
case 19: throw _d.sent();
|
|
931
919
|
case 20:
|
|
932
920
|
parsedBody = parsedOutput.body;
|
|
921
|
+
$metadata = deserializeMetadata(output);
|
|
922
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
933
923
|
response = new __BaseException({
|
|
934
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
924
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
935
925
|
$fault: "client",
|
|
936
|
-
$metadata:
|
|
926
|
+
$metadata: $metadata,
|
|
937
927
|
});
|
|
938
928
|
throw __decorateServiceException(response, parsedBody);
|
|
939
929
|
}
|
|
@@ -968,7 +958,7 @@ export var deserializeAws_restJson1CreateNetworkCommand = function (output, cont
|
|
|
968
958
|
});
|
|
969
959
|
}); };
|
|
970
960
|
var deserializeAws_restJson1CreateNetworkCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
971
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
961
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
972
962
|
var _c;
|
|
973
963
|
return __generator(this, function (_d) {
|
|
974
964
|
switch (_d.label) {
|
|
@@ -978,7 +968,6 @@ var deserializeAws_restJson1CreateNetworkCommandError = function (output, contex
|
|
|
978
968
|
return [4, parseBody(output.body, context)];
|
|
979
969
|
case 1:
|
|
980
970
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
981
|
-
errorCode = "UnknownError";
|
|
982
971
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
972
|
_b = errorCode;
|
|
984
973
|
switch (_b) {
|
|
@@ -1014,10 +1003,12 @@ var deserializeAws_restJson1CreateNetworkCommandError = function (output, contex
|
|
|
1014
1003
|
case 15: throw _d.sent();
|
|
1015
1004
|
case 16:
|
|
1016
1005
|
parsedBody = parsedOutput.body;
|
|
1006
|
+
$metadata = deserializeMetadata(output);
|
|
1007
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1017
1008
|
response = new __BaseException({
|
|
1018
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1009
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1019
1010
|
$fault: "client",
|
|
1020
|
-
$metadata:
|
|
1011
|
+
$metadata: $metadata,
|
|
1021
1012
|
});
|
|
1022
1013
|
throw __decorateServiceException(response, parsedBody);
|
|
1023
1014
|
}
|
|
@@ -1048,7 +1039,7 @@ export var deserializeAws_restJson1CreateNodeCommand = function (output, context
|
|
|
1048
1039
|
});
|
|
1049
1040
|
}); };
|
|
1050
1041
|
var deserializeAws_restJson1CreateNodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1051
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1042
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1052
1043
|
var _c;
|
|
1053
1044
|
return __generator(this, function (_d) {
|
|
1054
1045
|
switch (_d.label) {
|
|
@@ -1058,7 +1049,6 @@ var deserializeAws_restJson1CreateNodeCommandError = function (output, context)
|
|
|
1058
1049
|
return [4, parseBody(output.body, context)];
|
|
1059
1050
|
case 1:
|
|
1060
1051
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1061
|
-
errorCode = "UnknownError";
|
|
1062
1052
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
1053
|
_b = errorCode;
|
|
1064
1054
|
switch (_b) {
|
|
@@ -1102,10 +1092,12 @@ var deserializeAws_restJson1CreateNodeCommandError = function (output, context)
|
|
|
1102
1092
|
case 19: throw _d.sent();
|
|
1103
1093
|
case 20:
|
|
1104
1094
|
parsedBody = parsedOutput.body;
|
|
1095
|
+
$metadata = deserializeMetadata(output);
|
|
1096
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1105
1097
|
response = new __BaseException({
|
|
1106
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1098
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1107
1099
|
$fault: "client",
|
|
1108
|
-
$metadata:
|
|
1100
|
+
$metadata: $metadata,
|
|
1109
1101
|
});
|
|
1110
1102
|
throw __decorateServiceException(response, parsedBody);
|
|
1111
1103
|
}
|
|
@@ -1136,7 +1128,7 @@ export var deserializeAws_restJson1CreateProposalCommand = function (output, con
|
|
|
1136
1128
|
});
|
|
1137
1129
|
}); };
|
|
1138
1130
|
var deserializeAws_restJson1CreateProposalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1139
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1131
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1140
1132
|
var _c;
|
|
1141
1133
|
return __generator(this, function (_d) {
|
|
1142
1134
|
switch (_d.label) {
|
|
@@ -1146,7 +1138,6 @@ var deserializeAws_restJson1CreateProposalCommandError = function (output, conte
|
|
|
1146
1138
|
return [4, parseBody(output.body, context)];
|
|
1147
1139
|
case 1:
|
|
1148
1140
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1149
|
-
errorCode = "UnknownError";
|
|
1150
1141
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
1142
|
_b = errorCode;
|
|
1152
1143
|
switch (_b) {
|
|
@@ -1182,10 +1173,12 @@ var deserializeAws_restJson1CreateProposalCommandError = function (output, conte
|
|
|
1182
1173
|
case 15: throw _d.sent();
|
|
1183
1174
|
case 16:
|
|
1184
1175
|
parsedBody = parsedOutput.body;
|
|
1176
|
+
$metadata = deserializeMetadata(output);
|
|
1177
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1185
1178
|
response = new __BaseException({
|
|
1186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1179
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1187
1180
|
$fault: "client",
|
|
1188
|
-
$metadata:
|
|
1181
|
+
$metadata: $metadata,
|
|
1189
1182
|
});
|
|
1190
1183
|
throw __decorateServiceException(response, parsedBody);
|
|
1191
1184
|
}
|
|
@@ -1210,7 +1203,7 @@ export var deserializeAws_restJson1DeleteMemberCommand = function (output, conte
|
|
|
1210
1203
|
});
|
|
1211
1204
|
}); };
|
|
1212
1205
|
var deserializeAws_restJson1DeleteMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1213
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1206
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1214
1207
|
var _c;
|
|
1215
1208
|
return __generator(this, function (_d) {
|
|
1216
1209
|
switch (_d.label) {
|
|
@@ -1220,7 +1213,6 @@ var deserializeAws_restJson1DeleteMemberCommandError = function (output, context
|
|
|
1220
1213
|
return [4, parseBody(output.body, context)];
|
|
1221
1214
|
case 1:
|
|
1222
1215
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1223
|
-
errorCode = "UnknownError";
|
|
1224
1216
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
1217
|
_b = errorCode;
|
|
1226
1218
|
switch (_b) {
|
|
@@ -1252,10 +1244,12 @@ var deserializeAws_restJson1DeleteMemberCommandError = function (output, context
|
|
|
1252
1244
|
case 13: throw _d.sent();
|
|
1253
1245
|
case 14:
|
|
1254
1246
|
parsedBody = parsedOutput.body;
|
|
1247
|
+
$metadata = deserializeMetadata(output);
|
|
1248
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1255
1249
|
response = new __BaseException({
|
|
1256
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1250
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1257
1251
|
$fault: "client",
|
|
1258
|
-
$metadata:
|
|
1252
|
+
$metadata: $metadata,
|
|
1259
1253
|
});
|
|
1260
1254
|
throw __decorateServiceException(response, parsedBody);
|
|
1261
1255
|
}
|
|
@@ -1280,7 +1274,7 @@ export var deserializeAws_restJson1DeleteNodeCommand = function (output, context
|
|
|
1280
1274
|
});
|
|
1281
1275
|
}); };
|
|
1282
1276
|
var deserializeAws_restJson1DeleteNodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1283
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1277
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1284
1278
|
var _c;
|
|
1285
1279
|
return __generator(this, function (_d) {
|
|
1286
1280
|
switch (_d.label) {
|
|
@@ -1290,7 +1284,6 @@ var deserializeAws_restJson1DeleteNodeCommandError = function (output, context)
|
|
|
1290
1284
|
return [4, parseBody(output.body, context)];
|
|
1291
1285
|
case 1:
|
|
1292
1286
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1293
|
-
errorCode = "UnknownError";
|
|
1294
1287
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1295
1288
|
_b = errorCode;
|
|
1296
1289
|
switch (_b) {
|
|
@@ -1322,10 +1315,12 @@ var deserializeAws_restJson1DeleteNodeCommandError = function (output, context)
|
|
|
1322
1315
|
case 13: throw _d.sent();
|
|
1323
1316
|
case 14:
|
|
1324
1317
|
parsedBody = parsedOutput.body;
|
|
1318
|
+
$metadata = deserializeMetadata(output);
|
|
1319
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1325
1320
|
response = new __BaseException({
|
|
1326
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1321
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1327
1322
|
$fault: "client",
|
|
1328
|
-
$metadata:
|
|
1323
|
+
$metadata: $metadata,
|
|
1329
1324
|
});
|
|
1330
1325
|
throw __decorateServiceException(response, parsedBody);
|
|
1331
1326
|
}
|
|
@@ -1356,7 +1351,7 @@ export var deserializeAws_restJson1GetMemberCommand = function (output, context)
|
|
|
1356
1351
|
});
|
|
1357
1352
|
}); };
|
|
1358
1353
|
var deserializeAws_restJson1GetMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1359
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1354
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1360
1355
|
var _c;
|
|
1361
1356
|
return __generator(this, function (_d) {
|
|
1362
1357
|
switch (_d.label) {
|
|
@@ -1366,7 +1361,6 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
1366
1361
|
return [4, parseBody(output.body, context)];
|
|
1367
1362
|
case 1:
|
|
1368
1363
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1369
|
-
errorCode = "UnknownError";
|
|
1370
1364
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1371
1365
|
_b = errorCode;
|
|
1372
1366
|
switch (_b) {
|
|
@@ -1394,10 +1388,12 @@ var deserializeAws_restJson1GetMemberCommandError = function (output, context) {
|
|
|
1394
1388
|
case 11: throw _d.sent();
|
|
1395
1389
|
case 12:
|
|
1396
1390
|
parsedBody = parsedOutput.body;
|
|
1391
|
+
$metadata = deserializeMetadata(output);
|
|
1392
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1397
1393
|
response = new __BaseException({
|
|
1398
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1394
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1399
1395
|
$fault: "client",
|
|
1400
|
-
$metadata:
|
|
1396
|
+
$metadata: $metadata,
|
|
1401
1397
|
});
|
|
1402
1398
|
throw __decorateServiceException(response, parsedBody);
|
|
1403
1399
|
}
|
|
@@ -1428,7 +1424,7 @@ export var deserializeAws_restJson1GetNetworkCommand = function (output, context
|
|
|
1428
1424
|
});
|
|
1429
1425
|
}); };
|
|
1430
1426
|
var deserializeAws_restJson1GetNetworkCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1431
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1427
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1432
1428
|
var _c;
|
|
1433
1429
|
return __generator(this, function (_d) {
|
|
1434
1430
|
switch (_d.label) {
|
|
@@ -1438,7 +1434,6 @@ var deserializeAws_restJson1GetNetworkCommandError = function (output, context)
|
|
|
1438
1434
|
return [4, parseBody(output.body, context)];
|
|
1439
1435
|
case 1:
|
|
1440
1436
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1441
|
-
errorCode = "UnknownError";
|
|
1442
1437
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
1438
|
_b = errorCode;
|
|
1444
1439
|
switch (_b) {
|
|
@@ -1466,10 +1461,12 @@ var deserializeAws_restJson1GetNetworkCommandError = function (output, context)
|
|
|
1466
1461
|
case 11: throw _d.sent();
|
|
1467
1462
|
case 12:
|
|
1468
1463
|
parsedBody = parsedOutput.body;
|
|
1464
|
+
$metadata = deserializeMetadata(output);
|
|
1465
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1469
1466
|
response = new __BaseException({
|
|
1470
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1467
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1471
1468
|
$fault: "client",
|
|
1472
|
-
$metadata:
|
|
1469
|
+
$metadata: $metadata,
|
|
1473
1470
|
});
|
|
1474
1471
|
throw __decorateServiceException(response, parsedBody);
|
|
1475
1472
|
}
|
|
@@ -1500,7 +1497,7 @@ export var deserializeAws_restJson1GetNodeCommand = function (output, context) {
|
|
|
1500
1497
|
});
|
|
1501
1498
|
}); };
|
|
1502
1499
|
var deserializeAws_restJson1GetNodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1503
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1500
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1504
1501
|
var _c;
|
|
1505
1502
|
return __generator(this, function (_d) {
|
|
1506
1503
|
switch (_d.label) {
|
|
@@ -1510,7 +1507,6 @@ var deserializeAws_restJson1GetNodeCommandError = function (output, context) { r
|
|
|
1510
1507
|
return [4, parseBody(output.body, context)];
|
|
1511
1508
|
case 1:
|
|
1512
1509
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1513
|
-
errorCode = "UnknownError";
|
|
1514
1510
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1515
1511
|
_b = errorCode;
|
|
1516
1512
|
switch (_b) {
|
|
@@ -1538,10 +1534,12 @@ var deserializeAws_restJson1GetNodeCommandError = function (output, context) { r
|
|
|
1538
1534
|
case 11: throw _d.sent();
|
|
1539
1535
|
case 12:
|
|
1540
1536
|
parsedBody = parsedOutput.body;
|
|
1537
|
+
$metadata = deserializeMetadata(output);
|
|
1538
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1541
1539
|
response = new __BaseException({
|
|
1542
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1540
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1543
1541
|
$fault: "client",
|
|
1544
|
-
$metadata:
|
|
1542
|
+
$metadata: $metadata,
|
|
1545
1543
|
});
|
|
1546
1544
|
throw __decorateServiceException(response, parsedBody);
|
|
1547
1545
|
}
|
|
@@ -1572,7 +1570,7 @@ export var deserializeAws_restJson1GetProposalCommand = function (output, contex
|
|
|
1572
1570
|
});
|
|
1573
1571
|
}); };
|
|
1574
1572
|
var deserializeAws_restJson1GetProposalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1575
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1573
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1576
1574
|
var _c;
|
|
1577
1575
|
return __generator(this, function (_d) {
|
|
1578
1576
|
switch (_d.label) {
|
|
@@ -1582,7 +1580,6 @@ var deserializeAws_restJson1GetProposalCommandError = function (output, context)
|
|
|
1582
1580
|
return [4, parseBody(output.body, context)];
|
|
1583
1581
|
case 1:
|
|
1584
1582
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1585
|
-
errorCode = "UnknownError";
|
|
1586
1583
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
1584
|
_b = errorCode;
|
|
1588
1585
|
switch (_b) {
|
|
@@ -1610,10 +1607,12 @@ var deserializeAws_restJson1GetProposalCommandError = function (output, context)
|
|
|
1610
1607
|
case 11: throw _d.sent();
|
|
1611
1608
|
case 12:
|
|
1612
1609
|
parsedBody = parsedOutput.body;
|
|
1610
|
+
$metadata = deserializeMetadata(output);
|
|
1611
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1613
1612
|
response = new __BaseException({
|
|
1614
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1613
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1615
1614
|
$fault: "client",
|
|
1616
|
-
$metadata:
|
|
1615
|
+
$metadata: $metadata,
|
|
1617
1616
|
});
|
|
1618
1617
|
throw __decorateServiceException(response, parsedBody);
|
|
1619
1618
|
}
|
|
@@ -1648,7 +1647,7 @@ export var deserializeAws_restJson1ListInvitationsCommand = function (output, co
|
|
|
1648
1647
|
});
|
|
1649
1648
|
}); };
|
|
1650
1649
|
var deserializeAws_restJson1ListInvitationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1651
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1650
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1652
1651
|
var _c;
|
|
1653
1652
|
return __generator(this, function (_d) {
|
|
1654
1653
|
switch (_d.label) {
|
|
@@ -1658,7 +1657,6 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
1658
1657
|
return [4, parseBody(output.body, context)];
|
|
1659
1658
|
case 1:
|
|
1660
1659
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1661
|
-
errorCode = "UnknownError";
|
|
1662
1660
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
1661
|
_b = errorCode;
|
|
1664
1662
|
switch (_b) {
|
|
@@ -1690,10 +1688,12 @@ var deserializeAws_restJson1ListInvitationsCommandError = function (output, cont
|
|
|
1690
1688
|
case 13: throw _d.sent();
|
|
1691
1689
|
case 14:
|
|
1692
1690
|
parsedBody = parsedOutput.body;
|
|
1691
|
+
$metadata = deserializeMetadata(output);
|
|
1692
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1693
1693
|
response = new __BaseException({
|
|
1694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1694
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1695
1695
|
$fault: "client",
|
|
1696
|
-
$metadata:
|
|
1696
|
+
$metadata: $metadata,
|
|
1697
1697
|
});
|
|
1698
1698
|
throw __decorateServiceException(response, parsedBody);
|
|
1699
1699
|
}
|
|
@@ -1728,7 +1728,7 @@ export var deserializeAws_restJson1ListMembersCommand = function (output, contex
|
|
|
1728
1728
|
});
|
|
1729
1729
|
}); };
|
|
1730
1730
|
var deserializeAws_restJson1ListMembersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1731
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1731
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1732
1732
|
var _c;
|
|
1733
1733
|
return __generator(this, function (_d) {
|
|
1734
1734
|
switch (_d.label) {
|
|
@@ -1738,7 +1738,6 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
1738
1738
|
return [4, parseBody(output.body, context)];
|
|
1739
1739
|
case 1:
|
|
1740
1740
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1741
|
-
errorCode = "UnknownError";
|
|
1742
1741
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
1742
|
_b = errorCode;
|
|
1744
1743
|
switch (_b) {
|
|
@@ -1762,10 +1761,12 @@ var deserializeAws_restJson1ListMembersCommandError = function (output, context)
|
|
|
1762
1761
|
case 9: throw _d.sent();
|
|
1763
1762
|
case 10:
|
|
1764
1763
|
parsedBody = parsedOutput.body;
|
|
1764
|
+
$metadata = deserializeMetadata(output);
|
|
1765
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1765
1766
|
response = new __BaseException({
|
|
1766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1767
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1767
1768
|
$fault: "client",
|
|
1768
|
-
$metadata:
|
|
1769
|
+
$metadata: $metadata,
|
|
1769
1770
|
});
|
|
1770
1771
|
throw __decorateServiceException(response, parsedBody);
|
|
1771
1772
|
}
|
|
@@ -1800,7 +1801,7 @@ export var deserializeAws_restJson1ListNetworksCommand = function (output, conte
|
|
|
1800
1801
|
});
|
|
1801
1802
|
}); };
|
|
1802
1803
|
var deserializeAws_restJson1ListNetworksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1803
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1804
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1804
1805
|
var _c;
|
|
1805
1806
|
return __generator(this, function (_d) {
|
|
1806
1807
|
switch (_d.label) {
|
|
@@ -1810,7 +1811,6 @@ var deserializeAws_restJson1ListNetworksCommandError = function (output, context
|
|
|
1810
1811
|
return [4, parseBody(output.body, context)];
|
|
1811
1812
|
case 1:
|
|
1812
1813
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1813
|
-
errorCode = "UnknownError";
|
|
1814
1814
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
1815
|
_b = errorCode;
|
|
1816
1816
|
switch (_b) {
|
|
@@ -1834,10 +1834,12 @@ var deserializeAws_restJson1ListNetworksCommandError = function (output, context
|
|
|
1834
1834
|
case 9: throw _d.sent();
|
|
1835
1835
|
case 10:
|
|
1836
1836
|
parsedBody = parsedOutput.body;
|
|
1837
|
+
$metadata = deserializeMetadata(output);
|
|
1838
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1837
1839
|
response = new __BaseException({
|
|
1838
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1840
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1839
1841
|
$fault: "client",
|
|
1840
|
-
$metadata:
|
|
1842
|
+
$metadata: $metadata,
|
|
1841
1843
|
});
|
|
1842
1844
|
throw __decorateServiceException(response, parsedBody);
|
|
1843
1845
|
}
|
|
@@ -1872,7 +1874,7 @@ export var deserializeAws_restJson1ListNodesCommand = function (output, context)
|
|
|
1872
1874
|
});
|
|
1873
1875
|
}); };
|
|
1874
1876
|
var deserializeAws_restJson1ListNodesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1875
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1877
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1876
1878
|
var _c;
|
|
1877
1879
|
return __generator(this, function (_d) {
|
|
1878
1880
|
switch (_d.label) {
|
|
@@ -1882,7 +1884,6 @@ var deserializeAws_restJson1ListNodesCommandError = function (output, context) {
|
|
|
1882
1884
|
return [4, parseBody(output.body, context)];
|
|
1883
1885
|
case 1:
|
|
1884
1886
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1885
|
-
errorCode = "UnknownError";
|
|
1886
1887
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1887
1888
|
_b = errorCode;
|
|
1888
1889
|
switch (_b) {
|
|
@@ -1906,10 +1907,12 @@ var deserializeAws_restJson1ListNodesCommandError = function (output, context) {
|
|
|
1906
1907
|
case 9: throw _d.sent();
|
|
1907
1908
|
case 10:
|
|
1908
1909
|
parsedBody = parsedOutput.body;
|
|
1910
|
+
$metadata = deserializeMetadata(output);
|
|
1911
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1909
1912
|
response = new __BaseException({
|
|
1910
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1913
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1911
1914
|
$fault: "client",
|
|
1912
|
-
$metadata:
|
|
1915
|
+
$metadata: $metadata,
|
|
1913
1916
|
});
|
|
1914
1917
|
throw __decorateServiceException(response, parsedBody);
|
|
1915
1918
|
}
|
|
@@ -1944,7 +1947,7 @@ export var deserializeAws_restJson1ListProposalsCommand = function (output, cont
|
|
|
1944
1947
|
});
|
|
1945
1948
|
}); };
|
|
1946
1949
|
var deserializeAws_restJson1ListProposalsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1947
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1950
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1948
1951
|
var _c;
|
|
1949
1952
|
return __generator(this, function (_d) {
|
|
1950
1953
|
switch (_d.label) {
|
|
@@ -1954,7 +1957,6 @@ var deserializeAws_restJson1ListProposalsCommandError = function (output, contex
|
|
|
1954
1957
|
return [4, parseBody(output.body, context)];
|
|
1955
1958
|
case 1:
|
|
1956
1959
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1957
|
-
errorCode = "UnknownError";
|
|
1958
1960
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1959
1961
|
_b = errorCode;
|
|
1960
1962
|
switch (_b) {
|
|
@@ -1982,10 +1984,12 @@ var deserializeAws_restJson1ListProposalsCommandError = function (output, contex
|
|
|
1982
1984
|
case 11: throw _d.sent();
|
|
1983
1985
|
case 12:
|
|
1984
1986
|
parsedBody = parsedOutput.body;
|
|
1987
|
+
$metadata = deserializeMetadata(output);
|
|
1988
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1985
1989
|
response = new __BaseException({
|
|
1986
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1987
1991
|
$fault: "client",
|
|
1988
|
-
$metadata:
|
|
1992
|
+
$metadata: $metadata,
|
|
1989
1993
|
});
|
|
1990
1994
|
throw __decorateServiceException(response, parsedBody);
|
|
1991
1995
|
}
|
|
@@ -2020,7 +2024,7 @@ export var deserializeAws_restJson1ListProposalVotesCommand = function (output,
|
|
|
2020
2024
|
});
|
|
2021
2025
|
}); };
|
|
2022
2026
|
var deserializeAws_restJson1ListProposalVotesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2023
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2027
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2024
2028
|
var _c;
|
|
2025
2029
|
return __generator(this, function (_d) {
|
|
2026
2030
|
switch (_d.label) {
|
|
@@ -2030,7 +2034,6 @@ var deserializeAws_restJson1ListProposalVotesCommandError = function (output, co
|
|
|
2030
2034
|
return [4, parseBody(output.body, context)];
|
|
2031
2035
|
case 1:
|
|
2032
2036
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2033
|
-
errorCode = "UnknownError";
|
|
2034
2037
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2035
2038
|
_b = errorCode;
|
|
2036
2039
|
switch (_b) {
|
|
@@ -2054,10 +2057,12 @@ var deserializeAws_restJson1ListProposalVotesCommandError = function (output, co
|
|
|
2054
2057
|
case 9: throw _d.sent();
|
|
2055
2058
|
case 10:
|
|
2056
2059
|
parsedBody = parsedOutput.body;
|
|
2060
|
+
$metadata = deserializeMetadata(output);
|
|
2061
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2057
2062
|
response = new __BaseException({
|
|
2058
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2063
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2059
2064
|
$fault: "client",
|
|
2060
|
-
$metadata:
|
|
2065
|
+
$metadata: $metadata,
|
|
2061
2066
|
});
|
|
2062
2067
|
throw __decorateServiceException(response, parsedBody);
|
|
2063
2068
|
}
|
|
@@ -2088,7 +2093,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2088
2093
|
});
|
|
2089
2094
|
}); };
|
|
2090
2095
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2091
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2096
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2092
2097
|
var _c;
|
|
2093
2098
|
return __generator(this, function (_d) {
|
|
2094
2099
|
switch (_d.label) {
|
|
@@ -2098,7 +2103,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2098
2103
|
return [4, parseBody(output.body, context)];
|
|
2099
2104
|
case 1:
|
|
2100
2105
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2101
|
-
errorCode = "UnknownError";
|
|
2102
2106
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2103
2107
|
_b = errorCode;
|
|
2104
2108
|
switch (_b) {
|
|
@@ -2122,10 +2126,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2122
2126
|
case 9: throw _d.sent();
|
|
2123
2127
|
case 10:
|
|
2124
2128
|
parsedBody = parsedOutput.body;
|
|
2129
|
+
$metadata = deserializeMetadata(output);
|
|
2130
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2125
2131
|
response = new __BaseException({
|
|
2126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2132
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2127
2133
|
$fault: "client",
|
|
2128
|
-
$metadata:
|
|
2134
|
+
$metadata: $metadata,
|
|
2129
2135
|
});
|
|
2130
2136
|
throw __decorateServiceException(response, parsedBody);
|
|
2131
2137
|
}
|
|
@@ -2150,7 +2156,7 @@ export var deserializeAws_restJson1RejectInvitationCommand = function (output, c
|
|
|
2150
2156
|
});
|
|
2151
2157
|
}); };
|
|
2152
2158
|
var deserializeAws_restJson1RejectInvitationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2153
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2159
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2154
2160
|
var _c;
|
|
2155
2161
|
return __generator(this, function (_d) {
|
|
2156
2162
|
switch (_d.label) {
|
|
@@ -2160,7 +2166,6 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
|
|
|
2160
2166
|
return [4, parseBody(output.body, context)];
|
|
2161
2167
|
case 1:
|
|
2162
2168
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2163
|
-
errorCode = "UnknownError";
|
|
2164
2169
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2165
2170
|
_b = errorCode;
|
|
2166
2171
|
switch (_b) {
|
|
@@ -2192,10 +2197,12 @@ var deserializeAws_restJson1RejectInvitationCommandError = function (output, con
|
|
|
2192
2197
|
case 13: throw _d.sent();
|
|
2193
2198
|
case 14:
|
|
2194
2199
|
parsedBody = parsedOutput.body;
|
|
2200
|
+
$metadata = deserializeMetadata(output);
|
|
2201
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2195
2202
|
response = new __BaseException({
|
|
2196
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2203
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2197
2204
|
$fault: "client",
|
|
2198
|
-
$metadata:
|
|
2205
|
+
$metadata: $metadata,
|
|
2199
2206
|
});
|
|
2200
2207
|
throw __decorateServiceException(response, parsedBody);
|
|
2201
2208
|
}
|
|
@@ -2220,7 +2227,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2220
2227
|
});
|
|
2221
2228
|
}); };
|
|
2222
2229
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2223
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2230
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2224
2231
|
var _c;
|
|
2225
2232
|
return __generator(this, function (_d) {
|
|
2226
2233
|
switch (_d.label) {
|
|
@@ -2230,7 +2237,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2230
2237
|
return [4, parseBody(output.body, context)];
|
|
2231
2238
|
case 1:
|
|
2232
2239
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2233
|
-
errorCode = "UnknownError";
|
|
2234
2240
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2235
2241
|
_b = errorCode;
|
|
2236
2242
|
switch (_b) {
|
|
@@ -2258,10 +2264,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2258
2264
|
case 11: throw _d.sent();
|
|
2259
2265
|
case 12:
|
|
2260
2266
|
parsedBody = parsedOutput.body;
|
|
2267
|
+
$metadata = deserializeMetadata(output);
|
|
2268
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2261
2269
|
response = new __BaseException({
|
|
2262
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2270
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2263
2271
|
$fault: "client",
|
|
2264
|
-
$metadata:
|
|
2272
|
+
$metadata: $metadata,
|
|
2265
2273
|
});
|
|
2266
2274
|
throw __decorateServiceException(response, parsedBody);
|
|
2267
2275
|
}
|
|
@@ -2286,7 +2294,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2286
2294
|
});
|
|
2287
2295
|
}); };
|
|
2288
2296
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2289
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2297
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2290
2298
|
var _c;
|
|
2291
2299
|
return __generator(this, function (_d) {
|
|
2292
2300
|
switch (_d.label) {
|
|
@@ -2296,7 +2304,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2296
2304
|
return [4, parseBody(output.body, context)];
|
|
2297
2305
|
case 1:
|
|
2298
2306
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2299
|
-
errorCode = "UnknownError";
|
|
2300
2307
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2301
2308
|
_b = errorCode;
|
|
2302
2309
|
switch (_b) {
|
|
@@ -2320,10 +2327,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2320
2327
|
case 9: throw _d.sent();
|
|
2321
2328
|
case 10:
|
|
2322
2329
|
parsedBody = parsedOutput.body;
|
|
2330
|
+
$metadata = deserializeMetadata(output);
|
|
2331
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2323
2332
|
response = new __BaseException({
|
|
2324
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2333
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2325
2334
|
$fault: "client",
|
|
2326
|
-
$metadata:
|
|
2335
|
+
$metadata: $metadata,
|
|
2327
2336
|
});
|
|
2328
2337
|
throw __decorateServiceException(response, parsedBody);
|
|
2329
2338
|
}
|
|
@@ -2348,7 +2357,7 @@ export var deserializeAws_restJson1UpdateMemberCommand = function (output, conte
|
|
|
2348
2357
|
});
|
|
2349
2358
|
}); };
|
|
2350
2359
|
var deserializeAws_restJson1UpdateMemberCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2351
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2360
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2352
2361
|
var _c;
|
|
2353
2362
|
return __generator(this, function (_d) {
|
|
2354
2363
|
switch (_d.label) {
|
|
@@ -2358,7 +2367,6 @@ var deserializeAws_restJson1UpdateMemberCommandError = function (output, context
|
|
|
2358
2367
|
return [4, parseBody(output.body, context)];
|
|
2359
2368
|
case 1:
|
|
2360
2369
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2361
|
-
errorCode = "UnknownError";
|
|
2362
2370
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2363
2371
|
_b = errorCode;
|
|
2364
2372
|
switch (_b) {
|
|
@@ -2386,10 +2394,12 @@ var deserializeAws_restJson1UpdateMemberCommandError = function (output, context
|
|
|
2386
2394
|
case 11: throw _d.sent();
|
|
2387
2395
|
case 12:
|
|
2388
2396
|
parsedBody = parsedOutput.body;
|
|
2397
|
+
$metadata = deserializeMetadata(output);
|
|
2398
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2389
2399
|
response = new __BaseException({
|
|
2390
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2400
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2391
2401
|
$fault: "client",
|
|
2392
|
-
$metadata:
|
|
2402
|
+
$metadata: $metadata,
|
|
2393
2403
|
});
|
|
2394
2404
|
throw __decorateServiceException(response, parsedBody);
|
|
2395
2405
|
}
|
|
@@ -2414,7 +2424,7 @@ export var deserializeAws_restJson1UpdateNodeCommand = function (output, context
|
|
|
2414
2424
|
});
|
|
2415
2425
|
}); };
|
|
2416
2426
|
var deserializeAws_restJson1UpdateNodeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2417
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2427
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2418
2428
|
var _c;
|
|
2419
2429
|
return __generator(this, function (_d) {
|
|
2420
2430
|
switch (_d.label) {
|
|
@@ -2424,7 +2434,6 @@ var deserializeAws_restJson1UpdateNodeCommandError = function (output, context)
|
|
|
2424
2434
|
return [4, parseBody(output.body, context)];
|
|
2425
2435
|
case 1:
|
|
2426
2436
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2427
|
-
errorCode = "UnknownError";
|
|
2428
2437
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2429
2438
|
_b = errorCode;
|
|
2430
2439
|
switch (_b) {
|
|
@@ -2452,10 +2461,12 @@ var deserializeAws_restJson1UpdateNodeCommandError = function (output, context)
|
|
|
2452
2461
|
case 11: throw _d.sent();
|
|
2453
2462
|
case 12:
|
|
2454
2463
|
parsedBody = parsedOutput.body;
|
|
2464
|
+
$metadata = deserializeMetadata(output);
|
|
2465
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2455
2466
|
response = new __BaseException({
|
|
2456
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2467
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2457
2468
|
$fault: "client",
|
|
2458
|
-
$metadata:
|
|
2469
|
+
$metadata: $metadata,
|
|
2459
2470
|
});
|
|
2460
2471
|
throw __decorateServiceException(response, parsedBody);
|
|
2461
2472
|
}
|
|
@@ -2480,7 +2491,7 @@ export var deserializeAws_restJson1VoteOnProposalCommand = function (output, con
|
|
|
2480
2491
|
});
|
|
2481
2492
|
}); };
|
|
2482
2493
|
var deserializeAws_restJson1VoteOnProposalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2483
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2494
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2484
2495
|
var _c;
|
|
2485
2496
|
return __generator(this, function (_d) {
|
|
2486
2497
|
switch (_d.label) {
|
|
@@ -2490,7 +2501,6 @@ var deserializeAws_restJson1VoteOnProposalCommandError = function (output, conte
|
|
|
2490
2501
|
return [4, parseBody(output.body, context)];
|
|
2491
2502
|
case 1:
|
|
2492
2503
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2493
|
-
errorCode = "UnknownError";
|
|
2494
2504
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2495
2505
|
_b = errorCode;
|
|
2496
2506
|
switch (_b) {
|
|
@@ -2522,10 +2532,12 @@ var deserializeAws_restJson1VoteOnProposalCommandError = function (output, conte
|
|
|
2522
2532
|
case 13: throw _d.sent();
|
|
2523
2533
|
case 14:
|
|
2524
2534
|
parsedBody = parsedOutput.body;
|
|
2535
|
+
$metadata = deserializeMetadata(output);
|
|
2536
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2525
2537
|
response = new __BaseException({
|
|
2526
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2538
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2527
2539
|
$fault: "client",
|
|
2528
|
-
$metadata:
|
|
2540
|
+
$metadata: $metadata,
|
|
2529
2541
|
});
|
|
2530
2542
|
throw __decorateServiceException(response, parsedBody);
|
|
2531
2543
|
}
|
|
@@ -2652,10 +2664,7 @@ var deserializeAws_restJson1TooManyTagsExceptionResponse = function (parsedOutpu
|
|
|
2652
2664
|
});
|
|
2653
2665
|
}); };
|
|
2654
2666
|
var serializeAws_restJson1ApprovalThresholdPolicy = function (input, context) {
|
|
2655
|
-
return __assign(__assign(__assign({}, (input.ProposalDurationInHours
|
|
2656
|
-
input.ProposalDurationInHours !== null && { ProposalDurationInHours: input.ProposalDurationInHours })), (input.ThresholdComparator !== undefined &&
|
|
2657
|
-
input.ThresholdComparator !== null && { ThresholdComparator: input.ThresholdComparator })), (input.ThresholdPercentage !== undefined &&
|
|
2658
|
-
input.ThresholdPercentage !== null && { ThresholdPercentage: input.ThresholdPercentage }));
|
|
2667
|
+
return __assign(__assign(__assign({}, (input.ProposalDurationInHours != null && { ProposalDurationInHours: input.ProposalDurationInHours })), (input.ThresholdComparator != null && { ThresholdComparator: input.ThresholdComparator })), (input.ThresholdPercentage != null && { ThresholdPercentage: input.ThresholdPercentage }));
|
|
2659
2668
|
};
|
|
2660
2669
|
var serializeAws_restJson1InputTagMap = function (input, context) {
|
|
2661
2670
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -2668,7 +2677,7 @@ var serializeAws_restJson1InputTagMap = function (input, context) {
|
|
|
2668
2677
|
}, {});
|
|
2669
2678
|
};
|
|
2670
2679
|
var serializeAws_restJson1InviteAction = function (input, context) {
|
|
2671
|
-
return __assign({}, (input.Principal
|
|
2680
|
+
return __assign({}, (input.Principal != null && { Principal: input.Principal }));
|
|
2672
2681
|
};
|
|
2673
2682
|
var serializeAws_restJson1InviteActionList = function (input, context) {
|
|
2674
2683
|
return input
|
|
@@ -2681,75 +2690,60 @@ var serializeAws_restJson1InviteActionList = function (input, context) {
|
|
|
2681
2690
|
});
|
|
2682
2691
|
};
|
|
2683
2692
|
var serializeAws_restJson1LogConfiguration = function (input, context) {
|
|
2684
|
-
return __assign({}, (input.Enabled
|
|
2693
|
+
return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
|
|
2685
2694
|
};
|
|
2686
2695
|
var serializeAws_restJson1LogConfigurations = function (input, context) {
|
|
2687
|
-
return __assign({}, (input.Cloudwatch
|
|
2688
|
-
input.Cloudwatch !== null && { Cloudwatch: serializeAws_restJson1LogConfiguration(input.Cloudwatch, context) }));
|
|
2696
|
+
return __assign({}, (input.Cloudwatch != null && { Cloudwatch: serializeAws_restJson1LogConfiguration(input.Cloudwatch, context) }));
|
|
2689
2697
|
};
|
|
2690
2698
|
var serializeAws_restJson1MemberConfiguration = function (input, context) {
|
|
2691
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2692
|
-
input.FrameworkConfiguration !== null && {
|
|
2699
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.FrameworkConfiguration != null && {
|
|
2693
2700
|
FrameworkConfiguration: serializeAws_restJson1MemberFrameworkConfiguration(input.FrameworkConfiguration, context),
|
|
2694
|
-
})), (input.KmsKeyArn
|
|
2695
|
-
input.LogPublishingConfiguration !== null && {
|
|
2701
|
+
})), (input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn })), (input.LogPublishingConfiguration != null && {
|
|
2696
2702
|
LogPublishingConfiguration: serializeAws_restJson1MemberLogPublishingConfiguration(input.LogPublishingConfiguration, context),
|
|
2697
|
-
})), (input.Name
|
|
2698
|
-
input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }));
|
|
2703
|
+
})), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }));
|
|
2699
2704
|
};
|
|
2700
2705
|
var serializeAws_restJson1MemberFabricConfiguration = function (input, context) {
|
|
2701
|
-
return __assign(__assign({}, (input.AdminPassword
|
|
2706
|
+
return __assign(__assign({}, (input.AdminPassword != null && { AdminPassword: input.AdminPassword })), (input.AdminUsername != null && { AdminUsername: input.AdminUsername }));
|
|
2702
2707
|
};
|
|
2703
2708
|
var serializeAws_restJson1MemberFabricLogPublishingConfiguration = function (input, context) {
|
|
2704
|
-
return __assign({}, (input.CaLogs
|
|
2705
|
-
input.CaLogs !== null && { CaLogs: serializeAws_restJson1LogConfigurations(input.CaLogs, context) }));
|
|
2709
|
+
return __assign({}, (input.CaLogs != null && { CaLogs: serializeAws_restJson1LogConfigurations(input.CaLogs, context) }));
|
|
2706
2710
|
};
|
|
2707
2711
|
var serializeAws_restJson1MemberFrameworkConfiguration = function (input, context) {
|
|
2708
|
-
return __assign({}, (input.Fabric
|
|
2709
|
-
input.Fabric !== null && { Fabric: serializeAws_restJson1MemberFabricConfiguration(input.Fabric, context) }));
|
|
2712
|
+
return __assign({}, (input.Fabric != null && { Fabric: serializeAws_restJson1MemberFabricConfiguration(input.Fabric, context) }));
|
|
2710
2713
|
};
|
|
2711
2714
|
var serializeAws_restJson1MemberLogPublishingConfiguration = function (input, context) {
|
|
2712
|
-
return __assign({}, (input.Fabric
|
|
2713
|
-
input.Fabric !== null && {
|
|
2715
|
+
return __assign({}, (input.Fabric != null && {
|
|
2714
2716
|
Fabric: serializeAws_restJson1MemberFabricLogPublishingConfiguration(input.Fabric, context),
|
|
2715
2717
|
}));
|
|
2716
2718
|
};
|
|
2717
2719
|
var serializeAws_restJson1NetworkFabricConfiguration = function (input, context) {
|
|
2718
|
-
return __assign({}, (input.Edition
|
|
2720
|
+
return __assign({}, (input.Edition != null && { Edition: input.Edition }));
|
|
2719
2721
|
};
|
|
2720
2722
|
var serializeAws_restJson1NetworkFrameworkConfiguration = function (input, context) {
|
|
2721
|
-
return __assign({}, (input.Fabric
|
|
2722
|
-
input.Fabric !== null && { Fabric: serializeAws_restJson1NetworkFabricConfiguration(input.Fabric, context) }));
|
|
2723
|
+
return __assign({}, (input.Fabric != null && { Fabric: serializeAws_restJson1NetworkFabricConfiguration(input.Fabric, context) }));
|
|
2723
2724
|
};
|
|
2724
2725
|
var serializeAws_restJson1NodeConfiguration = function (input, context) {
|
|
2725
|
-
return __assign(__assign(__assign(__assign({}, (input.AvailabilityZone
|
|
2726
|
-
input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone })), (input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType })), (input.LogPublishingConfiguration !== undefined &&
|
|
2727
|
-
input.LogPublishingConfiguration !== null && {
|
|
2726
|
+
return __assign(__assign(__assign(__assign({}, (input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone })), (input.InstanceType != null && { InstanceType: input.InstanceType })), (input.LogPublishingConfiguration != null && {
|
|
2728
2727
|
LogPublishingConfiguration: serializeAws_restJson1NodeLogPublishingConfiguration(input.LogPublishingConfiguration, context),
|
|
2729
|
-
})), (input.StateDB
|
|
2728
|
+
})), (input.StateDB != null && { StateDB: input.StateDB }));
|
|
2730
2729
|
};
|
|
2731
2730
|
var serializeAws_restJson1NodeFabricLogPublishingConfiguration = function (input, context) {
|
|
2732
|
-
return __assign(__assign({}, (input.ChaincodeLogs
|
|
2733
|
-
input.ChaincodeLogs !== null && {
|
|
2731
|
+
return __assign(__assign({}, (input.ChaincodeLogs != null && {
|
|
2734
2732
|
ChaincodeLogs: serializeAws_restJson1LogConfigurations(input.ChaincodeLogs, context),
|
|
2735
|
-
})), (input.PeerLogs
|
|
2736
|
-
input.PeerLogs !== null && { PeerLogs: serializeAws_restJson1LogConfigurations(input.PeerLogs, context) }));
|
|
2733
|
+
})), (input.PeerLogs != null && { PeerLogs: serializeAws_restJson1LogConfigurations(input.PeerLogs, context) }));
|
|
2737
2734
|
};
|
|
2738
2735
|
var serializeAws_restJson1NodeLogPublishingConfiguration = function (input, context) {
|
|
2739
|
-
return __assign({}, (input.Fabric
|
|
2740
|
-
input.Fabric !== null && {
|
|
2736
|
+
return __assign({}, (input.Fabric != null && {
|
|
2741
2737
|
Fabric: serializeAws_restJson1NodeFabricLogPublishingConfiguration(input.Fabric, context),
|
|
2742
2738
|
}));
|
|
2743
2739
|
};
|
|
2744
2740
|
var serializeAws_restJson1ProposalActions = function (input, context) {
|
|
2745
|
-
return __assign(__assign({}, (input.Invitations
|
|
2746
|
-
input.Invitations !== null && {
|
|
2741
|
+
return __assign(__assign({}, (input.Invitations != null && {
|
|
2747
2742
|
Invitations: serializeAws_restJson1InviteActionList(input.Invitations, context),
|
|
2748
|
-
})), (input.Removals
|
|
2749
|
-
input.Removals !== null && { Removals: serializeAws_restJson1RemoveActionList(input.Removals, context) }));
|
|
2743
|
+
})), (input.Removals != null && { Removals: serializeAws_restJson1RemoveActionList(input.Removals, context) }));
|
|
2750
2744
|
};
|
|
2751
2745
|
var serializeAws_restJson1RemoveAction = function (input, context) {
|
|
2752
|
-
return __assign({}, (input.MemberId
|
|
2746
|
+
return __assign({}, (input.MemberId != null && { MemberId: input.MemberId }));
|
|
2753
2747
|
};
|
|
2754
2748
|
var serializeAws_restJson1RemoveActionList = function (input, context) {
|
|
2755
2749
|
return input
|
|
@@ -2762,8 +2756,7 @@ var serializeAws_restJson1RemoveActionList = function (input, context) {
|
|
|
2762
2756
|
});
|
|
2763
2757
|
};
|
|
2764
2758
|
var serializeAws_restJson1VotingPolicy = function (input, context) {
|
|
2765
|
-
return __assign({}, (input.ApprovalThresholdPolicy
|
|
2766
|
-
input.ApprovalThresholdPolicy !== null && {
|
|
2759
|
+
return __assign({}, (input.ApprovalThresholdPolicy != null && {
|
|
2767
2760
|
ApprovalThresholdPolicy: serializeAws_restJson1ApprovalThresholdPolicy(input.ApprovalThresholdPolicy, context),
|
|
2768
2761
|
}));
|
|
2769
2762
|
};
|
|
@@ -2777,14 +2770,10 @@ var deserializeAws_restJson1ApprovalThresholdPolicy = function (output, context)
|
|
|
2777
2770
|
var deserializeAws_restJson1Invitation = function (output, context) {
|
|
2778
2771
|
return {
|
|
2779
2772
|
Arn: __expectString(output.Arn),
|
|
2780
|
-
CreationDate: output.CreationDate
|
|
2781
|
-
|
|
2782
|
-
: undefined,
|
|
2783
|
-
ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
|
|
2784
|
-
? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate))
|
|
2785
|
-
: undefined,
|
|
2773
|
+
CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
|
|
2774
|
+
ExpirationDate: output.ExpirationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate)) : undefined,
|
|
2786
2775
|
InvitationId: __expectString(output.InvitationId),
|
|
2787
|
-
NetworkSummary: output.NetworkSummary
|
|
2776
|
+
NetworkSummary: output.NetworkSummary != null
|
|
2788
2777
|
? deserializeAws_restJson1NetworkSummary(output.NetworkSummary, context)
|
|
2789
2778
|
: undefined,
|
|
2790
2779
|
Status: __expectString(output.Status),
|
|
@@ -2824,32 +2813,26 @@ var deserializeAws_restJson1LogConfiguration = function (output, context) {
|
|
|
2824
2813
|
};
|
|
2825
2814
|
var deserializeAws_restJson1LogConfigurations = function (output, context) {
|
|
2826
2815
|
return {
|
|
2827
|
-
Cloudwatch: output.Cloudwatch
|
|
2828
|
-
? deserializeAws_restJson1LogConfiguration(output.Cloudwatch, context)
|
|
2829
|
-
: undefined,
|
|
2816
|
+
Cloudwatch: output.Cloudwatch != null ? deserializeAws_restJson1LogConfiguration(output.Cloudwatch, context) : undefined,
|
|
2830
2817
|
};
|
|
2831
2818
|
};
|
|
2832
2819
|
var deserializeAws_restJson1Member = function (output, context) {
|
|
2833
2820
|
return {
|
|
2834
2821
|
Arn: __expectString(output.Arn),
|
|
2835
|
-
CreationDate: output.CreationDate
|
|
2836
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
2837
|
-
: undefined,
|
|
2822
|
+
CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
|
|
2838
2823
|
Description: __expectString(output.Description),
|
|
2839
|
-
FrameworkAttributes: output.FrameworkAttributes
|
|
2824
|
+
FrameworkAttributes: output.FrameworkAttributes != null
|
|
2840
2825
|
? deserializeAws_restJson1MemberFrameworkAttributes(output.FrameworkAttributes, context)
|
|
2841
2826
|
: undefined,
|
|
2842
2827
|
Id: __expectString(output.Id),
|
|
2843
2828
|
KmsKeyArn: __expectString(output.KmsKeyArn),
|
|
2844
|
-
LogPublishingConfiguration: output.LogPublishingConfiguration
|
|
2829
|
+
LogPublishingConfiguration: output.LogPublishingConfiguration != null
|
|
2845
2830
|
? deserializeAws_restJson1MemberLogPublishingConfiguration(output.LogPublishingConfiguration, context)
|
|
2846
2831
|
: undefined,
|
|
2847
2832
|
Name: __expectString(output.Name),
|
|
2848
2833
|
NetworkId: __expectString(output.NetworkId),
|
|
2849
2834
|
Status: __expectString(output.Status),
|
|
2850
|
-
Tags: output.Tags
|
|
2851
|
-
? deserializeAws_restJson1OutputTagMap(output.Tags, context)
|
|
2852
|
-
: undefined,
|
|
2835
|
+
Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
|
|
2853
2836
|
};
|
|
2854
2837
|
};
|
|
2855
2838
|
var deserializeAws_restJson1MemberFabricAttributes = function (output, context) {
|
|
@@ -2860,21 +2843,17 @@ var deserializeAws_restJson1MemberFabricAttributes = function (output, context)
|
|
|
2860
2843
|
};
|
|
2861
2844
|
var deserializeAws_restJson1MemberFabricLogPublishingConfiguration = function (output, context) {
|
|
2862
2845
|
return {
|
|
2863
|
-
CaLogs: output.CaLogs
|
|
2864
|
-
? deserializeAws_restJson1LogConfigurations(output.CaLogs, context)
|
|
2865
|
-
: undefined,
|
|
2846
|
+
CaLogs: output.CaLogs != null ? deserializeAws_restJson1LogConfigurations(output.CaLogs, context) : undefined,
|
|
2866
2847
|
};
|
|
2867
2848
|
};
|
|
2868
2849
|
var deserializeAws_restJson1MemberFrameworkAttributes = function (output, context) {
|
|
2869
2850
|
return {
|
|
2870
|
-
Fabric: output.Fabric
|
|
2871
|
-
? deserializeAws_restJson1MemberFabricAttributes(output.Fabric, context)
|
|
2872
|
-
: undefined,
|
|
2851
|
+
Fabric: output.Fabric != null ? deserializeAws_restJson1MemberFabricAttributes(output.Fabric, context) : undefined,
|
|
2873
2852
|
};
|
|
2874
2853
|
};
|
|
2875
2854
|
var deserializeAws_restJson1MemberLogPublishingConfiguration = function (output, context) {
|
|
2876
2855
|
return {
|
|
2877
|
-
Fabric: output.Fabric
|
|
2856
|
+
Fabric: output.Fabric != null
|
|
2878
2857
|
? deserializeAws_restJson1MemberFabricLogPublishingConfiguration(output.Fabric, context)
|
|
2879
2858
|
: undefined,
|
|
2880
2859
|
};
|
|
@@ -2882,9 +2861,7 @@ var deserializeAws_restJson1MemberLogPublishingConfiguration = function (output,
|
|
|
2882
2861
|
var deserializeAws_restJson1MemberSummary = function (output, context) {
|
|
2883
2862
|
return {
|
|
2884
2863
|
Arn: __expectString(output.Arn),
|
|
2885
|
-
CreationDate: output.CreationDate
|
|
2886
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
2887
|
-
: undefined,
|
|
2864
|
+
CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
|
|
2888
2865
|
Description: __expectString(output.Description),
|
|
2889
2866
|
Id: __expectString(output.Id),
|
|
2890
2867
|
IsOwned: __expectBoolean(output.IsOwned),
|
|
@@ -2906,24 +2883,18 @@ var deserializeAws_restJson1MemberSummaryList = function (output, context) {
|
|
|
2906
2883
|
var deserializeAws_restJson1Network = function (output, context) {
|
|
2907
2884
|
return {
|
|
2908
2885
|
Arn: __expectString(output.Arn),
|
|
2909
|
-
CreationDate: output.CreationDate
|
|
2910
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
2911
|
-
: undefined,
|
|
2886
|
+
CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
|
|
2912
2887
|
Description: __expectString(output.Description),
|
|
2913
2888
|
Framework: __expectString(output.Framework),
|
|
2914
|
-
FrameworkAttributes: output.FrameworkAttributes
|
|
2889
|
+
FrameworkAttributes: output.FrameworkAttributes != null
|
|
2915
2890
|
? deserializeAws_restJson1NetworkFrameworkAttributes(output.FrameworkAttributes, context)
|
|
2916
2891
|
: undefined,
|
|
2917
2892
|
FrameworkVersion: __expectString(output.FrameworkVersion),
|
|
2918
2893
|
Id: __expectString(output.Id),
|
|
2919
2894
|
Name: __expectString(output.Name),
|
|
2920
2895
|
Status: __expectString(output.Status),
|
|
2921
|
-
Tags: output.Tags
|
|
2922
|
-
|
|
2923
|
-
: undefined,
|
|
2924
|
-
VotingPolicy: output.VotingPolicy !== undefined && output.VotingPolicy !== null
|
|
2925
|
-
? deserializeAws_restJson1VotingPolicy(output.VotingPolicy, context)
|
|
2926
|
-
: undefined,
|
|
2896
|
+
Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
|
|
2897
|
+
VotingPolicy: output.VotingPolicy != null ? deserializeAws_restJson1VotingPolicy(output.VotingPolicy, context) : undefined,
|
|
2927
2898
|
VpcEndpointServiceName: __expectString(output.VpcEndpointServiceName),
|
|
2928
2899
|
};
|
|
2929
2900
|
};
|
|
@@ -2940,20 +2911,14 @@ var deserializeAws_restJson1NetworkFabricAttributes = function (output, context)
|
|
|
2940
2911
|
};
|
|
2941
2912
|
var deserializeAws_restJson1NetworkFrameworkAttributes = function (output, context) {
|
|
2942
2913
|
return {
|
|
2943
|
-
Ethereum: output.Ethereum
|
|
2944
|
-
|
|
2945
|
-
: undefined,
|
|
2946
|
-
Fabric: output.Fabric !== undefined && output.Fabric !== null
|
|
2947
|
-
? deserializeAws_restJson1NetworkFabricAttributes(output.Fabric, context)
|
|
2948
|
-
: undefined,
|
|
2914
|
+
Ethereum: output.Ethereum != null ? deserializeAws_restJson1NetworkEthereumAttributes(output.Ethereum, context) : undefined,
|
|
2915
|
+
Fabric: output.Fabric != null ? deserializeAws_restJson1NetworkFabricAttributes(output.Fabric, context) : undefined,
|
|
2949
2916
|
};
|
|
2950
2917
|
};
|
|
2951
2918
|
var deserializeAws_restJson1NetworkSummary = function (output, context) {
|
|
2952
2919
|
return {
|
|
2953
2920
|
Arn: __expectString(output.Arn),
|
|
2954
|
-
CreationDate: output.CreationDate
|
|
2955
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
2956
|
-
: undefined,
|
|
2921
|
+
CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
|
|
2957
2922
|
Description: __expectString(output.Description),
|
|
2958
2923
|
Framework: __expectString(output.Framework),
|
|
2959
2924
|
FrameworkVersion: __expectString(output.FrameworkVersion),
|
|
@@ -2977,25 +2942,21 @@ var deserializeAws_restJson1Node = function (output, context) {
|
|
|
2977
2942
|
return {
|
|
2978
2943
|
Arn: __expectString(output.Arn),
|
|
2979
2944
|
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
2980
|
-
CreationDate: output.CreationDate
|
|
2981
|
-
|
|
2982
|
-
: undefined,
|
|
2983
|
-
FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
|
|
2945
|
+
CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
|
|
2946
|
+
FrameworkAttributes: output.FrameworkAttributes != null
|
|
2984
2947
|
? deserializeAws_restJson1NodeFrameworkAttributes(output.FrameworkAttributes, context)
|
|
2985
2948
|
: undefined,
|
|
2986
2949
|
Id: __expectString(output.Id),
|
|
2987
2950
|
InstanceType: __expectString(output.InstanceType),
|
|
2988
2951
|
KmsKeyArn: __expectString(output.KmsKeyArn),
|
|
2989
|
-
LogPublishingConfiguration: output.LogPublishingConfiguration
|
|
2952
|
+
LogPublishingConfiguration: output.LogPublishingConfiguration != null
|
|
2990
2953
|
? deserializeAws_restJson1NodeLogPublishingConfiguration(output.LogPublishingConfiguration, context)
|
|
2991
2954
|
: undefined,
|
|
2992
2955
|
MemberId: __expectString(output.MemberId),
|
|
2993
2956
|
NetworkId: __expectString(output.NetworkId),
|
|
2994
2957
|
StateDB: __expectString(output.StateDB),
|
|
2995
2958
|
Status: __expectString(output.Status),
|
|
2996
|
-
Tags: output.Tags
|
|
2997
|
-
? deserializeAws_restJson1OutputTagMap(output.Tags, context)
|
|
2998
|
-
: undefined,
|
|
2959
|
+
Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
|
|
2999
2960
|
};
|
|
3000
2961
|
};
|
|
3001
2962
|
var deserializeAws_restJson1NodeEthereumAttributes = function (output, context) {
|
|
@@ -3012,27 +2973,21 @@ var deserializeAws_restJson1NodeFabricAttributes = function (output, context) {
|
|
|
3012
2973
|
};
|
|
3013
2974
|
var deserializeAws_restJson1NodeFabricLogPublishingConfiguration = function (output, context) {
|
|
3014
2975
|
return {
|
|
3015
|
-
ChaincodeLogs: output.ChaincodeLogs
|
|
2976
|
+
ChaincodeLogs: output.ChaincodeLogs != null
|
|
3016
2977
|
? deserializeAws_restJson1LogConfigurations(output.ChaincodeLogs, context)
|
|
3017
2978
|
: undefined,
|
|
3018
|
-
PeerLogs: output.PeerLogs
|
|
3019
|
-
? deserializeAws_restJson1LogConfigurations(output.PeerLogs, context)
|
|
3020
|
-
: undefined,
|
|
2979
|
+
PeerLogs: output.PeerLogs != null ? deserializeAws_restJson1LogConfigurations(output.PeerLogs, context) : undefined,
|
|
3021
2980
|
};
|
|
3022
2981
|
};
|
|
3023
2982
|
var deserializeAws_restJson1NodeFrameworkAttributes = function (output, context) {
|
|
3024
2983
|
return {
|
|
3025
|
-
Ethereum: output.Ethereum
|
|
3026
|
-
|
|
3027
|
-
: undefined,
|
|
3028
|
-
Fabric: output.Fabric !== undefined && output.Fabric !== null
|
|
3029
|
-
? deserializeAws_restJson1NodeFabricAttributes(output.Fabric, context)
|
|
3030
|
-
: undefined,
|
|
2984
|
+
Ethereum: output.Ethereum != null ? deserializeAws_restJson1NodeEthereumAttributes(output.Ethereum, context) : undefined,
|
|
2985
|
+
Fabric: output.Fabric != null ? deserializeAws_restJson1NodeFabricAttributes(output.Fabric, context) : undefined,
|
|
3031
2986
|
};
|
|
3032
2987
|
};
|
|
3033
2988
|
var deserializeAws_restJson1NodeLogPublishingConfiguration = function (output, context) {
|
|
3034
2989
|
return {
|
|
3035
|
-
Fabric: output.Fabric
|
|
2990
|
+
Fabric: output.Fabric != null
|
|
3036
2991
|
? deserializeAws_restJson1NodeFabricLogPublishingConfiguration(output.Fabric, context)
|
|
3037
2992
|
: undefined,
|
|
3038
2993
|
};
|
|
@@ -3041,9 +2996,7 @@ var deserializeAws_restJson1NodeSummary = function (output, context) {
|
|
|
3041
2996
|
return {
|
|
3042
2997
|
Arn: __expectString(output.Arn),
|
|
3043
2998
|
AvailabilityZone: __expectString(output.AvailabilityZone),
|
|
3044
|
-
CreationDate: output.CreationDate
|
|
3045
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3046
|
-
: undefined,
|
|
2999
|
+
CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
|
|
3047
3000
|
Id: __expectString(output.Id),
|
|
3048
3001
|
InstanceType: __expectString(output.InstanceType),
|
|
3049
3002
|
Status: __expectString(output.Status),
|
|
@@ -3072,17 +3025,11 @@ var deserializeAws_restJson1OutputTagMap = function (output, context) {
|
|
|
3072
3025
|
};
|
|
3073
3026
|
var deserializeAws_restJson1Proposal = function (output, context) {
|
|
3074
3027
|
return {
|
|
3075
|
-
Actions: output.Actions
|
|
3076
|
-
? deserializeAws_restJson1ProposalActions(output.Actions, context)
|
|
3077
|
-
: undefined,
|
|
3028
|
+
Actions: output.Actions != null ? deserializeAws_restJson1ProposalActions(output.Actions, context) : undefined,
|
|
3078
3029
|
Arn: __expectString(output.Arn),
|
|
3079
|
-
CreationDate: output.CreationDate
|
|
3080
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3081
|
-
: undefined,
|
|
3030
|
+
CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
|
|
3082
3031
|
Description: __expectString(output.Description),
|
|
3083
|
-
ExpirationDate: output.ExpirationDate
|
|
3084
|
-
? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate))
|
|
3085
|
-
: undefined,
|
|
3032
|
+
ExpirationDate: output.ExpirationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate)) : undefined,
|
|
3086
3033
|
NetworkId: __expectString(output.NetworkId),
|
|
3087
3034
|
NoVoteCount: __expectInt32(output.NoVoteCount),
|
|
3088
3035
|
OutstandingVoteCount: __expectInt32(output.OutstandingVoteCount),
|
|
@@ -3090,32 +3037,22 @@ var deserializeAws_restJson1Proposal = function (output, context) {
|
|
|
3090
3037
|
ProposedByMemberId: __expectString(output.ProposedByMemberId),
|
|
3091
3038
|
ProposedByMemberName: __expectString(output.ProposedByMemberName),
|
|
3092
3039
|
Status: __expectString(output.Status),
|
|
3093
|
-
Tags: output.Tags
|
|
3094
|
-
? deserializeAws_restJson1OutputTagMap(output.Tags, context)
|
|
3095
|
-
: undefined,
|
|
3040
|
+
Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
|
|
3096
3041
|
YesVoteCount: __expectInt32(output.YesVoteCount),
|
|
3097
3042
|
};
|
|
3098
3043
|
};
|
|
3099
3044
|
var deserializeAws_restJson1ProposalActions = function (output, context) {
|
|
3100
3045
|
return {
|
|
3101
|
-
Invitations: output.Invitations
|
|
3102
|
-
|
|
3103
|
-
: undefined,
|
|
3104
|
-
Removals: output.Removals !== undefined && output.Removals !== null
|
|
3105
|
-
? deserializeAws_restJson1RemoveActionList(output.Removals, context)
|
|
3106
|
-
: undefined,
|
|
3046
|
+
Invitations: output.Invitations != null ? deserializeAws_restJson1InviteActionList(output.Invitations, context) : undefined,
|
|
3047
|
+
Removals: output.Removals != null ? deserializeAws_restJson1RemoveActionList(output.Removals, context) : undefined,
|
|
3107
3048
|
};
|
|
3108
3049
|
};
|
|
3109
3050
|
var deserializeAws_restJson1ProposalSummary = function (output, context) {
|
|
3110
3051
|
return {
|
|
3111
3052
|
Arn: __expectString(output.Arn),
|
|
3112
|
-
CreationDate: output.CreationDate
|
|
3113
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreationDate))
|
|
3114
|
-
: undefined,
|
|
3053
|
+
CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
|
|
3115
3054
|
Description: __expectString(output.Description),
|
|
3116
|
-
ExpirationDate: output.ExpirationDate
|
|
3117
|
-
? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate))
|
|
3118
|
-
: undefined,
|
|
3055
|
+
ExpirationDate: output.ExpirationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.ExpirationDate)) : undefined,
|
|
3119
3056
|
ProposalId: __expectString(output.ProposalId),
|
|
3120
3057
|
ProposedByMemberId: __expectString(output.ProposedByMemberId),
|
|
3121
3058
|
ProposedByMemberName: __expectString(output.ProposedByMemberName),
|
|
@@ -3169,7 +3106,7 @@ var deserializeAws_restJson1VoteSummary = function (output, context) {
|
|
|
3169
3106
|
};
|
|
3170
3107
|
var deserializeAws_restJson1VotingPolicy = function (output, context) {
|
|
3171
3108
|
return {
|
|
3172
|
-
ApprovalThresholdPolicy: output.ApprovalThresholdPolicy
|
|
3109
|
+
ApprovalThresholdPolicy: output.ApprovalThresholdPolicy != null
|
|
3173
3110
|
? deserializeAws_restJson1ApprovalThresholdPolicy(output.ApprovalThresholdPolicy, context)
|
|
3174
3111
|
: undefined,
|
|
3175
3112
|
};
|
|
@@ -3230,5 +3167,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3230
3167
|
if (data["__type"] !== undefined) {
|
|
3231
3168
|
return sanitizeErrorCode(data["__type"]);
|
|
3232
3169
|
}
|
|
3233
|
-
return "";
|
|
3234
3170
|
};
|