@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.
@@ -26,9 +26,8 @@ const serializeAws_restJson1CreateMemberCommand = async (input, context) => {
26
26
  let body;
27
27
  body = JSON.stringify({
28
28
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
29
- ...(input.InvitationId !== undefined && input.InvitationId !== null && { InvitationId: input.InvitationId }),
30
- ...(input.MemberConfiguration !== undefined &&
31
- input.MemberConfiguration !== null && {
29
+ ...(input.InvitationId != null && { InvitationId: input.InvitationId }),
30
+ ...(input.MemberConfiguration != null && {
32
31
  MemberConfiguration: serializeAws_restJson1MemberConfiguration(input.MemberConfiguration, context),
33
32
  }),
34
33
  });
@@ -53,23 +52,20 @@ const serializeAws_restJson1CreateNetworkCommand = async (input, context) => {
53
52
  let body;
54
53
  body = JSON.stringify({
55
54
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
56
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
57
- ...(input.Framework !== undefined && input.Framework !== null && { Framework: input.Framework }),
58
- ...(input.FrameworkConfiguration !== undefined &&
59
- input.FrameworkConfiguration !== null && {
55
+ ...(input.Description != null && { Description: input.Description }),
56
+ ...(input.Framework != null && { Framework: input.Framework }),
57
+ ...(input.FrameworkConfiguration != null && {
60
58
  FrameworkConfiguration: serializeAws_restJson1NetworkFrameworkConfiguration(input.FrameworkConfiguration, context),
61
59
  }),
62
- ...(input.FrameworkVersion !== undefined &&
63
- input.FrameworkVersion !== null && { FrameworkVersion: input.FrameworkVersion }),
64
- ...(input.MemberConfiguration !== undefined &&
65
- input.MemberConfiguration !== null && {
60
+ ...(input.FrameworkVersion != null && { FrameworkVersion: input.FrameworkVersion }),
61
+ ...(input.MemberConfiguration != null && {
66
62
  MemberConfiguration: serializeAws_restJson1MemberConfiguration(input.MemberConfiguration, context),
67
63
  }),
68
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
69
- ...(input.Tags !== undefined &&
70
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
71
- ...(input.VotingPolicy !== undefined &&
72
- input.VotingPolicy !== null && { VotingPolicy: serializeAws_restJson1VotingPolicy(input.VotingPolicy, context) }),
64
+ ...(input.Name != null && { Name: input.Name }),
65
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
66
+ ...(input.VotingPolicy != null && {
67
+ VotingPolicy: serializeAws_restJson1VotingPolicy(input.VotingPolicy, context),
68
+ }),
73
69
  });
74
70
  return new protocol_http_1.HttpRequest({
75
71
  protocol,
@@ -102,13 +98,11 @@ const serializeAws_restJson1CreateNodeCommand = async (input, context) => {
102
98
  let body;
103
99
  body = JSON.stringify({
104
100
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
105
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
106
- ...(input.NodeConfiguration !== undefined &&
107
- input.NodeConfiguration !== null && {
101
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
102
+ ...(input.NodeConfiguration != null && {
108
103
  NodeConfiguration: serializeAws_restJson1NodeConfiguration(input.NodeConfiguration, context),
109
104
  }),
110
- ...(input.Tags !== undefined &&
111
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
105
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
112
106
  });
113
107
  return new protocol_http_1.HttpRequest({
114
108
  protocol,
@@ -140,13 +134,11 @@ const serializeAws_restJson1CreateProposalCommand = async (input, context) => {
140
134
  }
141
135
  let body;
142
136
  body = JSON.stringify({
143
- ...(input.Actions !== undefined &&
144
- input.Actions !== null && { Actions: serializeAws_restJson1ProposalActions(input.Actions, context) }),
137
+ ...(input.Actions != null && { Actions: serializeAws_restJson1ProposalActions(input.Actions, context) }),
145
138
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
146
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
147
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
148
- ...(input.Tags !== undefined &&
149
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
139
+ ...(input.Description != null && { Description: input.Description }),
140
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
141
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
150
142
  });
151
143
  return new protocol_http_1.HttpRequest({
152
144
  protocol,
@@ -629,8 +621,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
629
621
  }
630
622
  let body;
631
623
  body = JSON.stringify({
632
- ...(input.Tags !== undefined &&
633
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
624
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
634
625
  });
635
626
  return new protocol_http_1.HttpRequest({
636
627
  protocol,
@@ -701,8 +692,7 @@ const serializeAws_restJson1UpdateMemberCommand = async (input, context) => {
701
692
  }
702
693
  let body;
703
694
  body = JSON.stringify({
704
- ...(input.LogPublishingConfiguration !== undefined &&
705
- input.LogPublishingConfiguration !== null && {
695
+ ...(input.LogPublishingConfiguration != null && {
706
696
  LogPublishingConfiguration: serializeAws_restJson1MemberLogPublishingConfiguration(input.LogPublishingConfiguration, context),
707
697
  }),
708
698
  });
@@ -745,11 +735,10 @@ const serializeAws_restJson1UpdateNodeCommand = async (input, context) => {
745
735
  }
746
736
  let body;
747
737
  body = JSON.stringify({
748
- ...(input.LogPublishingConfiguration !== undefined &&
749
- input.LogPublishingConfiguration !== null && {
738
+ ...(input.LogPublishingConfiguration != null && {
750
739
  LogPublishingConfiguration: serializeAws_restJson1NodeLogPublishingConfiguration(input.LogPublishingConfiguration, context),
751
740
  }),
752
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
741
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
753
742
  });
754
743
  return new protocol_http_1.HttpRequest({
755
744
  protocol,
@@ -791,8 +780,8 @@ const serializeAws_restJson1VoteOnProposalCommand = async (input, context) => {
791
780
  }
792
781
  let body;
793
782
  body = JSON.stringify({
794
- ...(input.Vote !== undefined && input.Vote !== null && { Vote: input.Vote }),
795
- ...(input.VoterMemberId !== undefined && input.VoterMemberId !== null && { VoterMemberId: input.VoterMemberId }),
783
+ ...(input.Vote != null && { Vote: input.Vote }),
784
+ ...(input.VoterMemberId != null && { VoterMemberId: input.VoterMemberId }),
796
785
  });
797
786
  return new protocol_http_1.HttpRequest({
798
787
  protocol,
@@ -826,8 +815,7 @@ const deserializeAws_restJson1CreateMemberCommandError = async (output, context)
826
815
  body: await parseBody(output.body, context),
827
816
  };
828
817
  let response;
829
- let errorCode = "UnknownError";
830
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
818
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
831
819
  switch (errorCode) {
832
820
  case "AccessDeniedException":
833
821
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -858,10 +846,12 @@ const deserializeAws_restJson1CreateMemberCommandError = async (output, context)
858
846
  throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
859
847
  default:
860
848
  const parsedBody = parsedOutput.body;
849
+ const $metadata = deserializeMetadata(output);
850
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
861
851
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
862
- name: parsedBody.code || parsedBody.Code || errorCode,
852
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
863
853
  $fault: "client",
864
- $metadata: deserializeMetadata(output),
854
+ $metadata,
865
855
  });
866
856
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
867
857
  }
@@ -891,8 +881,7 @@ const deserializeAws_restJson1CreateNetworkCommandError = async (output, context
891
881
  body: await parseBody(output.body, context),
892
882
  };
893
883
  let response;
894
- let errorCode = "UnknownError";
895
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
884
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
896
885
  switch (errorCode) {
897
886
  case "AccessDeniedException":
898
887
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -917,10 +906,12 @@ const deserializeAws_restJson1CreateNetworkCommandError = async (output, context
917
906
  throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
918
907
  default:
919
908
  const parsedBody = parsedOutput.body;
909
+ const $metadata = deserializeMetadata(output);
910
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
920
911
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
921
- name: parsedBody.code || parsedBody.Code || errorCode,
912
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
922
913
  $fault: "client",
923
- $metadata: deserializeMetadata(output),
914
+ $metadata,
924
915
  });
925
916
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
926
917
  }
@@ -946,8 +937,7 @@ const deserializeAws_restJson1CreateNodeCommandError = async (output, context) =
946
937
  body: await parseBody(output.body, context),
947
938
  };
948
939
  let response;
949
- let errorCode = "UnknownError";
950
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
940
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
951
941
  switch (errorCode) {
952
942
  case "AccessDeniedException":
953
943
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -978,10 +968,12 @@ const deserializeAws_restJson1CreateNodeCommandError = async (output, context) =
978
968
  throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
979
969
  default:
980
970
  const parsedBody = parsedOutput.body;
971
+ const $metadata = deserializeMetadata(output);
972
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
981
973
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
982
- name: parsedBody.code || parsedBody.Code || errorCode,
974
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
983
975
  $fault: "client",
984
- $metadata: deserializeMetadata(output),
976
+ $metadata,
985
977
  });
986
978
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
987
979
  }
@@ -1007,8 +999,7 @@ const deserializeAws_restJson1CreateProposalCommandError = async (output, contex
1007
999
  body: await parseBody(output.body, context),
1008
1000
  };
1009
1001
  let response;
1010
- let errorCode = "UnknownError";
1011
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1002
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1012
1003
  switch (errorCode) {
1013
1004
  case "AccessDeniedException":
1014
1005
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1033,10 +1024,12 @@ const deserializeAws_restJson1CreateProposalCommandError = async (output, contex
1033
1024
  throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
1034
1025
  default:
1035
1026
  const parsedBody = parsedOutput.body;
1027
+ const $metadata = deserializeMetadata(output);
1028
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1036
1029
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1037
- name: parsedBody.code || parsedBody.Code || errorCode,
1030
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1038
1031
  $fault: "client",
1039
- $metadata: deserializeMetadata(output),
1032
+ $metadata,
1040
1033
  });
1041
1034
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1042
1035
  }
@@ -1058,8 +1051,7 @@ const deserializeAws_restJson1DeleteMemberCommandError = async (output, context)
1058
1051
  body: await parseBody(output.body, context),
1059
1052
  };
1060
1053
  let response;
1061
- let errorCode = "UnknownError";
1062
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1054
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1063
1055
  switch (errorCode) {
1064
1056
  case "AccessDeniedException":
1065
1057
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1081,10 +1073,12 @@ const deserializeAws_restJson1DeleteMemberCommandError = async (output, context)
1081
1073
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1082
1074
  default:
1083
1075
  const parsedBody = parsedOutput.body;
1076
+ const $metadata = deserializeMetadata(output);
1077
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1084
1078
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1085
- name: parsedBody.code || parsedBody.Code || errorCode,
1079
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1086
1080
  $fault: "client",
1087
- $metadata: deserializeMetadata(output),
1081
+ $metadata,
1088
1082
  });
1089
1083
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1090
1084
  }
@@ -1106,8 +1100,7 @@ const deserializeAws_restJson1DeleteNodeCommandError = async (output, context) =
1106
1100
  body: await parseBody(output.body, context),
1107
1101
  };
1108
1102
  let response;
1109
- let errorCode = "UnknownError";
1110
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1103
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1111
1104
  switch (errorCode) {
1112
1105
  case "AccessDeniedException":
1113
1106
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1129,10 +1122,12 @@ const deserializeAws_restJson1DeleteNodeCommandError = async (output, context) =
1129
1122
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1130
1123
  default:
1131
1124
  const parsedBody = parsedOutput.body;
1125
+ const $metadata = deserializeMetadata(output);
1126
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1132
1127
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1133
- name: parsedBody.code || parsedBody.Code || errorCode,
1128
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1134
1129
  $fault: "client",
1135
- $metadata: deserializeMetadata(output),
1130
+ $metadata,
1136
1131
  });
1137
1132
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1138
1133
  }
@@ -1158,8 +1153,7 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
1158
1153
  body: await parseBody(output.body, context),
1159
1154
  };
1160
1155
  let response;
1161
- let errorCode = "UnknownError";
1162
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1156
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1163
1157
  switch (errorCode) {
1164
1158
  case "AccessDeniedException":
1165
1159
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1178,10 +1172,12 @@ const deserializeAws_restJson1GetMemberCommandError = async (output, context) =>
1178
1172
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1179
1173
  default:
1180
1174
  const parsedBody = parsedOutput.body;
1175
+ const $metadata = deserializeMetadata(output);
1176
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1181
1177
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1182
- name: parsedBody.code || parsedBody.Code || errorCode,
1178
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1183
1179
  $fault: "client",
1184
- $metadata: deserializeMetadata(output),
1180
+ $metadata,
1185
1181
  });
1186
1182
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1187
1183
  }
@@ -1207,8 +1203,7 @@ const deserializeAws_restJson1GetNetworkCommandError = async (output, context) =
1207
1203
  body: await parseBody(output.body, context),
1208
1204
  };
1209
1205
  let response;
1210
- let errorCode = "UnknownError";
1211
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1206
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1212
1207
  switch (errorCode) {
1213
1208
  case "AccessDeniedException":
1214
1209
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1227,10 +1222,12 @@ const deserializeAws_restJson1GetNetworkCommandError = async (output, context) =
1227
1222
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1228
1223
  default:
1229
1224
  const parsedBody = parsedOutput.body;
1225
+ const $metadata = deserializeMetadata(output);
1226
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1230
1227
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1231
- name: parsedBody.code || parsedBody.Code || errorCode,
1228
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1232
1229
  $fault: "client",
1233
- $metadata: deserializeMetadata(output),
1230
+ $metadata,
1234
1231
  });
1235
1232
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1236
1233
  }
@@ -1256,8 +1253,7 @@ const deserializeAws_restJson1GetNodeCommandError = async (output, context) => {
1256
1253
  body: await parseBody(output.body, context),
1257
1254
  };
1258
1255
  let response;
1259
- let errorCode = "UnknownError";
1260
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1256
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1261
1257
  switch (errorCode) {
1262
1258
  case "AccessDeniedException":
1263
1259
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1276,10 +1272,12 @@ const deserializeAws_restJson1GetNodeCommandError = async (output, context) => {
1276
1272
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1277
1273
  default:
1278
1274
  const parsedBody = parsedOutput.body;
1275
+ const $metadata = deserializeMetadata(output);
1276
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1279
1277
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1280
- name: parsedBody.code || parsedBody.Code || errorCode,
1278
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1281
1279
  $fault: "client",
1282
- $metadata: deserializeMetadata(output),
1280
+ $metadata,
1283
1281
  });
1284
1282
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1285
1283
  }
@@ -1305,8 +1303,7 @@ const deserializeAws_restJson1GetProposalCommandError = async (output, context)
1305
1303
  body: await parseBody(output.body, context),
1306
1304
  };
1307
1305
  let response;
1308
- let errorCode = "UnknownError";
1309
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1306
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1310
1307
  switch (errorCode) {
1311
1308
  case "AccessDeniedException":
1312
1309
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1325,10 +1322,12 @@ const deserializeAws_restJson1GetProposalCommandError = async (output, context)
1325
1322
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1326
1323
  default:
1327
1324
  const parsedBody = parsedOutput.body;
1325
+ const $metadata = deserializeMetadata(output);
1326
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1328
1327
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1329
- name: parsedBody.code || parsedBody.Code || errorCode,
1328
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1330
1329
  $fault: "client",
1331
- $metadata: deserializeMetadata(output),
1330
+ $metadata,
1332
1331
  });
1333
1332
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1334
1333
  }
@@ -1358,8 +1357,7 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
1358
1357
  body: await parseBody(output.body, context),
1359
1358
  };
1360
1359
  let response;
1361
- let errorCode = "UnknownError";
1362
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1360
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1363
1361
  switch (errorCode) {
1364
1362
  case "AccessDeniedException":
1365
1363
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1381,10 +1379,12 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
1381
1379
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1382
1380
  default:
1383
1381
  const parsedBody = parsedOutput.body;
1382
+ const $metadata = deserializeMetadata(output);
1383
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1384
1384
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1385
- name: parsedBody.code || parsedBody.Code || errorCode,
1385
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1386
1386
  $fault: "client",
1387
- $metadata: deserializeMetadata(output),
1387
+ $metadata,
1388
1388
  });
1389
1389
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1390
1390
  }
@@ -1414,8 +1414,7 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
1414
1414
  body: await parseBody(output.body, context),
1415
1415
  };
1416
1416
  let response;
1417
- let errorCode = "UnknownError";
1418
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1417
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1419
1418
  switch (errorCode) {
1420
1419
  case "AccessDeniedException":
1421
1420
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1431,10 +1430,12 @@ const deserializeAws_restJson1ListMembersCommandError = async (output, context)
1431
1430
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1432
1431
  default:
1433
1432
  const parsedBody = parsedOutput.body;
1433
+ const $metadata = deserializeMetadata(output);
1434
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1434
1435
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1435
- name: parsedBody.code || parsedBody.Code || errorCode,
1436
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1436
1437
  $fault: "client",
1437
- $metadata: deserializeMetadata(output),
1438
+ $metadata,
1438
1439
  });
1439
1440
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1440
1441
  }
@@ -1464,8 +1465,7 @@ const deserializeAws_restJson1ListNetworksCommandError = async (output, context)
1464
1465
  body: await parseBody(output.body, context),
1465
1466
  };
1466
1467
  let response;
1467
- let errorCode = "UnknownError";
1468
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1468
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1469
1469
  switch (errorCode) {
1470
1470
  case "AccessDeniedException":
1471
1471
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1481,10 +1481,12 @@ const deserializeAws_restJson1ListNetworksCommandError = async (output, context)
1481
1481
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1482
1482
  default:
1483
1483
  const parsedBody = parsedOutput.body;
1484
+ const $metadata = deserializeMetadata(output);
1485
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1484
1486
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1485
- name: parsedBody.code || parsedBody.Code || errorCode,
1487
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1486
1488
  $fault: "client",
1487
- $metadata: deserializeMetadata(output),
1489
+ $metadata,
1488
1490
  });
1489
1491
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1490
1492
  }
@@ -1514,8 +1516,7 @@ const deserializeAws_restJson1ListNodesCommandError = async (output, context) =>
1514
1516
  body: await parseBody(output.body, context),
1515
1517
  };
1516
1518
  let response;
1517
- let errorCode = "UnknownError";
1518
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1519
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1519
1520
  switch (errorCode) {
1520
1521
  case "AccessDeniedException":
1521
1522
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1531,10 +1532,12 @@ const deserializeAws_restJson1ListNodesCommandError = async (output, context) =>
1531
1532
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1532
1533
  default:
1533
1534
  const parsedBody = parsedOutput.body;
1535
+ const $metadata = deserializeMetadata(output);
1536
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1534
1537
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1535
- name: parsedBody.code || parsedBody.Code || errorCode,
1538
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1536
1539
  $fault: "client",
1537
- $metadata: deserializeMetadata(output),
1540
+ $metadata,
1538
1541
  });
1539
1542
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1540
1543
  }
@@ -1564,8 +1567,7 @@ const deserializeAws_restJson1ListProposalsCommandError = async (output, context
1564
1567
  body: await parseBody(output.body, context),
1565
1568
  };
1566
1569
  let response;
1567
- let errorCode = "UnknownError";
1568
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1570
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1569
1571
  switch (errorCode) {
1570
1572
  case "AccessDeniedException":
1571
1573
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1584,10 +1586,12 @@ const deserializeAws_restJson1ListProposalsCommandError = async (output, context
1584
1586
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1585
1587
  default:
1586
1588
  const parsedBody = parsedOutput.body;
1589
+ const $metadata = deserializeMetadata(output);
1590
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1587
1591
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1588
- name: parsedBody.code || parsedBody.Code || errorCode,
1592
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1589
1593
  $fault: "client",
1590
- $metadata: deserializeMetadata(output),
1594
+ $metadata,
1591
1595
  });
1592
1596
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1593
1597
  }
@@ -1617,8 +1621,7 @@ const deserializeAws_restJson1ListProposalVotesCommandError = async (output, con
1617
1621
  body: await parseBody(output.body, context),
1618
1622
  };
1619
1623
  let response;
1620
- let errorCode = "UnknownError";
1621
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1624
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1622
1625
  switch (errorCode) {
1623
1626
  case "AccessDeniedException":
1624
1627
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1634,10 +1637,12 @@ const deserializeAws_restJson1ListProposalVotesCommandError = async (output, con
1634
1637
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1635
1638
  default:
1636
1639
  const parsedBody = parsedOutput.body;
1640
+ const $metadata = deserializeMetadata(output);
1641
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1637
1642
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1638
- name: parsedBody.code || parsedBody.Code || errorCode,
1643
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1639
1644
  $fault: "client",
1640
- $metadata: deserializeMetadata(output),
1645
+ $metadata,
1641
1646
  });
1642
1647
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1643
1648
  }
@@ -1663,8 +1668,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1663
1668
  body: await parseBody(output.body, context),
1664
1669
  };
1665
1670
  let response;
1666
- let errorCode = "UnknownError";
1667
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1671
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1668
1672
  switch (errorCode) {
1669
1673
  case "InternalServiceErrorException":
1670
1674
  case "com.amazonaws.managedblockchain#InternalServiceErrorException":
@@ -1680,10 +1684,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1680
1684
  throw await deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context);
1681
1685
  default:
1682
1686
  const parsedBody = parsedOutput.body;
1687
+ const $metadata = deserializeMetadata(output);
1688
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1683
1689
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1684
- name: parsedBody.code || parsedBody.Code || errorCode,
1690
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1685
1691
  $fault: "client",
1686
- $metadata: deserializeMetadata(output),
1692
+ $metadata,
1687
1693
  });
1688
1694
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1689
1695
  }
@@ -1705,8 +1711,7 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
1705
1711
  body: await parseBody(output.body, context),
1706
1712
  };
1707
1713
  let response;
1708
- let errorCode = "UnknownError";
1709
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1714
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1710
1715
  switch (errorCode) {
1711
1716
  case "AccessDeniedException":
1712
1717
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1728,10 +1733,12 @@ const deserializeAws_restJson1RejectInvitationCommandError = async (output, cont
1728
1733
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1729
1734
  default:
1730
1735
  const parsedBody = parsedOutput.body;
1736
+ const $metadata = deserializeMetadata(output);
1737
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1731
1738
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1732
- name: parsedBody.code || parsedBody.Code || errorCode,
1739
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1733
1740
  $fault: "client",
1734
- $metadata: deserializeMetadata(output),
1741
+ $metadata,
1735
1742
  });
1736
1743
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1737
1744
  }
@@ -1753,8 +1760,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1753
1760
  body: await parseBody(output.body, context),
1754
1761
  };
1755
1762
  let response;
1756
- let errorCode = "UnknownError";
1757
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1763
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1758
1764
  switch (errorCode) {
1759
1765
  case "InternalServiceErrorException":
1760
1766
  case "com.amazonaws.managedblockchain#InternalServiceErrorException":
@@ -1773,10 +1779,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1773
1779
  throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
1774
1780
  default:
1775
1781
  const parsedBody = parsedOutput.body;
1782
+ const $metadata = deserializeMetadata(output);
1783
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1776
1784
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1777
- name: parsedBody.code || parsedBody.Code || errorCode,
1785
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1778
1786
  $fault: "client",
1779
- $metadata: deserializeMetadata(output),
1787
+ $metadata,
1780
1788
  });
1781
1789
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1782
1790
  }
@@ -1798,8 +1806,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1798
1806
  body: await parseBody(output.body, context),
1799
1807
  };
1800
1808
  let response;
1801
- let errorCode = "UnknownError";
1802
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1809
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1803
1810
  switch (errorCode) {
1804
1811
  case "InternalServiceErrorException":
1805
1812
  case "com.amazonaws.managedblockchain#InternalServiceErrorException":
@@ -1815,10 +1822,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1815
1822
  throw await deserializeAws_restJson1ResourceNotReadyExceptionResponse(parsedOutput, context);
1816
1823
  default:
1817
1824
  const parsedBody = parsedOutput.body;
1825
+ const $metadata = deserializeMetadata(output);
1826
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1818
1827
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1819
- name: parsedBody.code || parsedBody.Code || errorCode,
1828
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1820
1829
  $fault: "client",
1821
- $metadata: deserializeMetadata(output),
1830
+ $metadata,
1822
1831
  });
1823
1832
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1824
1833
  }
@@ -1840,8 +1849,7 @@ const deserializeAws_restJson1UpdateMemberCommandError = async (output, context)
1840
1849
  body: await parseBody(output.body, context),
1841
1850
  };
1842
1851
  let response;
1843
- let errorCode = "UnknownError";
1844
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1852
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1845
1853
  switch (errorCode) {
1846
1854
  case "AccessDeniedException":
1847
1855
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1860,10 +1868,12 @@ const deserializeAws_restJson1UpdateMemberCommandError = async (output, context)
1860
1868
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1861
1869
  default:
1862
1870
  const parsedBody = parsedOutput.body;
1871
+ const $metadata = deserializeMetadata(output);
1872
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1863
1873
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1864
- name: parsedBody.code || parsedBody.Code || errorCode,
1874
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1865
1875
  $fault: "client",
1866
- $metadata: deserializeMetadata(output),
1876
+ $metadata,
1867
1877
  });
1868
1878
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1869
1879
  }
@@ -1885,8 +1895,7 @@ const deserializeAws_restJson1UpdateNodeCommandError = async (output, context) =
1885
1895
  body: await parseBody(output.body, context),
1886
1896
  };
1887
1897
  let response;
1888
- let errorCode = "UnknownError";
1889
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1898
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1890
1899
  switch (errorCode) {
1891
1900
  case "AccessDeniedException":
1892
1901
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1905,10 +1914,12 @@ const deserializeAws_restJson1UpdateNodeCommandError = async (output, context) =
1905
1914
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1906
1915
  default:
1907
1916
  const parsedBody = parsedOutput.body;
1917
+ const $metadata = deserializeMetadata(output);
1918
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1908
1919
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1909
- name: parsedBody.code || parsedBody.Code || errorCode,
1920
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1910
1921
  $fault: "client",
1911
- $metadata: deserializeMetadata(output),
1922
+ $metadata,
1912
1923
  });
1913
1924
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1914
1925
  }
@@ -1930,8 +1941,7 @@ const deserializeAws_restJson1VoteOnProposalCommandError = async (output, contex
1930
1941
  body: await parseBody(output.body, context),
1931
1942
  };
1932
1943
  let response;
1933
- let errorCode = "UnknownError";
1934
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1944
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1935
1945
  switch (errorCode) {
1936
1946
  case "AccessDeniedException":
1937
1947
  case "com.amazonaws.managedblockchain#AccessDeniedException":
@@ -1953,10 +1963,12 @@ const deserializeAws_restJson1VoteOnProposalCommandError = async (output, contex
1953
1963
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1954
1964
  default:
1955
1965
  const parsedBody = parsedOutput.body;
1966
+ const $metadata = deserializeMetadata(output);
1967
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1956
1968
  response = new ManagedBlockchainServiceException_1.ManagedBlockchainServiceException({
1957
- name: parsedBody.code || parsedBody.Code || errorCode,
1969
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1958
1970
  $fault: "client",
1959
- $metadata: deserializeMetadata(output),
1971
+ $metadata,
1960
1972
  });
1961
1973
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1962
1974
  }
@@ -2083,12 +2095,9 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
2083
2095
  };
2084
2096
  const serializeAws_restJson1ApprovalThresholdPolicy = (input, context) => {
2085
2097
  return {
2086
- ...(input.ProposalDurationInHours !== undefined &&
2087
- input.ProposalDurationInHours !== null && { ProposalDurationInHours: input.ProposalDurationInHours }),
2088
- ...(input.ThresholdComparator !== undefined &&
2089
- input.ThresholdComparator !== null && { ThresholdComparator: input.ThresholdComparator }),
2090
- ...(input.ThresholdPercentage !== undefined &&
2091
- input.ThresholdPercentage !== null && { ThresholdPercentage: input.ThresholdPercentage }),
2098
+ ...(input.ProposalDurationInHours != null && { ProposalDurationInHours: input.ProposalDurationInHours }),
2099
+ ...(input.ThresholdComparator != null && { ThresholdComparator: input.ThresholdComparator }),
2100
+ ...(input.ThresholdPercentage != null && { ThresholdPercentage: input.ThresholdPercentage }),
2092
2101
  };
2093
2102
  };
2094
2103
  const serializeAws_restJson1InputTagMap = (input, context) => {
@@ -2104,7 +2113,7 @@ const serializeAws_restJson1InputTagMap = (input, context) => {
2104
2113
  };
2105
2114
  const serializeAws_restJson1InviteAction = (input, context) => {
2106
2115
  return {
2107
- ...(input.Principal !== undefined && input.Principal !== null && { Principal: input.Principal }),
2116
+ ...(input.Principal != null && { Principal: input.Principal }),
2108
2117
  };
2109
2118
  };
2110
2119
  const serializeAws_restJson1InviteActionList = (input, context) => {
@@ -2119,112 +2128,97 @@ const serializeAws_restJson1InviteActionList = (input, context) => {
2119
2128
  };
2120
2129
  const serializeAws_restJson1LogConfiguration = (input, context) => {
2121
2130
  return {
2122
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
2131
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
2123
2132
  };
2124
2133
  };
2125
2134
  const serializeAws_restJson1LogConfigurations = (input, context) => {
2126
2135
  return {
2127
- ...(input.Cloudwatch !== undefined &&
2128
- input.Cloudwatch !== null && { Cloudwatch: serializeAws_restJson1LogConfiguration(input.Cloudwatch, context) }),
2136
+ ...(input.Cloudwatch != null && { Cloudwatch: serializeAws_restJson1LogConfiguration(input.Cloudwatch, context) }),
2129
2137
  };
2130
2138
  };
2131
2139
  const serializeAws_restJson1MemberConfiguration = (input, context) => {
2132
2140
  return {
2133
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2134
- ...(input.FrameworkConfiguration !== undefined &&
2135
- input.FrameworkConfiguration !== null && {
2141
+ ...(input.Description != null && { Description: input.Description }),
2142
+ ...(input.FrameworkConfiguration != null && {
2136
2143
  FrameworkConfiguration: serializeAws_restJson1MemberFrameworkConfiguration(input.FrameworkConfiguration, context),
2137
2144
  }),
2138
- ...(input.KmsKeyArn !== undefined && input.KmsKeyArn !== null && { KmsKeyArn: input.KmsKeyArn }),
2139
- ...(input.LogPublishingConfiguration !== undefined &&
2140
- input.LogPublishingConfiguration !== null && {
2145
+ ...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
2146
+ ...(input.LogPublishingConfiguration != null && {
2141
2147
  LogPublishingConfiguration: serializeAws_restJson1MemberLogPublishingConfiguration(input.LogPublishingConfiguration, context),
2142
2148
  }),
2143
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2144
- ...(input.Tags !== undefined &&
2145
- input.Tags !== null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
2149
+ ...(input.Name != null && { Name: input.Name }),
2150
+ ...(input.Tags != null && { Tags: serializeAws_restJson1InputTagMap(input.Tags, context) }),
2146
2151
  };
2147
2152
  };
2148
2153
  const serializeAws_restJson1MemberFabricConfiguration = (input, context) => {
2149
2154
  return {
2150
- ...(input.AdminPassword !== undefined && input.AdminPassword !== null && { AdminPassword: input.AdminPassword }),
2151
- ...(input.AdminUsername !== undefined && input.AdminUsername !== null && { AdminUsername: input.AdminUsername }),
2155
+ ...(input.AdminPassword != null && { AdminPassword: input.AdminPassword }),
2156
+ ...(input.AdminUsername != null && { AdminUsername: input.AdminUsername }),
2152
2157
  };
2153
2158
  };
2154
2159
  const serializeAws_restJson1MemberFabricLogPublishingConfiguration = (input, context) => {
2155
2160
  return {
2156
- ...(input.CaLogs !== undefined &&
2157
- input.CaLogs !== null && { CaLogs: serializeAws_restJson1LogConfigurations(input.CaLogs, context) }),
2161
+ ...(input.CaLogs != null && { CaLogs: serializeAws_restJson1LogConfigurations(input.CaLogs, context) }),
2158
2162
  };
2159
2163
  };
2160
2164
  const serializeAws_restJson1MemberFrameworkConfiguration = (input, context) => {
2161
2165
  return {
2162
- ...(input.Fabric !== undefined &&
2163
- input.Fabric !== null && { Fabric: serializeAws_restJson1MemberFabricConfiguration(input.Fabric, context) }),
2166
+ ...(input.Fabric != null && { Fabric: serializeAws_restJson1MemberFabricConfiguration(input.Fabric, context) }),
2164
2167
  };
2165
2168
  };
2166
2169
  const serializeAws_restJson1MemberLogPublishingConfiguration = (input, context) => {
2167
2170
  return {
2168
- ...(input.Fabric !== undefined &&
2169
- input.Fabric !== null && {
2171
+ ...(input.Fabric != null && {
2170
2172
  Fabric: serializeAws_restJson1MemberFabricLogPublishingConfiguration(input.Fabric, context),
2171
2173
  }),
2172
2174
  };
2173
2175
  };
2174
2176
  const serializeAws_restJson1NetworkFabricConfiguration = (input, context) => {
2175
2177
  return {
2176
- ...(input.Edition !== undefined && input.Edition !== null && { Edition: input.Edition }),
2178
+ ...(input.Edition != null && { Edition: input.Edition }),
2177
2179
  };
2178
2180
  };
2179
2181
  const serializeAws_restJson1NetworkFrameworkConfiguration = (input, context) => {
2180
2182
  return {
2181
- ...(input.Fabric !== undefined &&
2182
- input.Fabric !== null && { Fabric: serializeAws_restJson1NetworkFabricConfiguration(input.Fabric, context) }),
2183
+ ...(input.Fabric != null && { Fabric: serializeAws_restJson1NetworkFabricConfiguration(input.Fabric, context) }),
2183
2184
  };
2184
2185
  };
2185
2186
  const serializeAws_restJson1NodeConfiguration = (input, context) => {
2186
2187
  return {
2187
- ...(input.AvailabilityZone !== undefined &&
2188
- input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone }),
2189
- ...(input.InstanceType !== undefined && input.InstanceType !== null && { InstanceType: input.InstanceType }),
2190
- ...(input.LogPublishingConfiguration !== undefined &&
2191
- input.LogPublishingConfiguration !== null && {
2188
+ ...(input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone }),
2189
+ ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
2190
+ ...(input.LogPublishingConfiguration != null && {
2192
2191
  LogPublishingConfiguration: serializeAws_restJson1NodeLogPublishingConfiguration(input.LogPublishingConfiguration, context),
2193
2192
  }),
2194
- ...(input.StateDB !== undefined && input.StateDB !== null && { StateDB: input.StateDB }),
2193
+ ...(input.StateDB != null && { StateDB: input.StateDB }),
2195
2194
  };
2196
2195
  };
2197
2196
  const serializeAws_restJson1NodeFabricLogPublishingConfiguration = (input, context) => {
2198
2197
  return {
2199
- ...(input.ChaincodeLogs !== undefined &&
2200
- input.ChaincodeLogs !== null && {
2198
+ ...(input.ChaincodeLogs != null && {
2201
2199
  ChaincodeLogs: serializeAws_restJson1LogConfigurations(input.ChaincodeLogs, context),
2202
2200
  }),
2203
- ...(input.PeerLogs !== undefined &&
2204
- input.PeerLogs !== null && { PeerLogs: serializeAws_restJson1LogConfigurations(input.PeerLogs, context) }),
2201
+ ...(input.PeerLogs != null && { PeerLogs: serializeAws_restJson1LogConfigurations(input.PeerLogs, context) }),
2205
2202
  };
2206
2203
  };
2207
2204
  const serializeAws_restJson1NodeLogPublishingConfiguration = (input, context) => {
2208
2205
  return {
2209
- ...(input.Fabric !== undefined &&
2210
- input.Fabric !== null && {
2206
+ ...(input.Fabric != null && {
2211
2207
  Fabric: serializeAws_restJson1NodeFabricLogPublishingConfiguration(input.Fabric, context),
2212
2208
  }),
2213
2209
  };
2214
2210
  };
2215
2211
  const serializeAws_restJson1ProposalActions = (input, context) => {
2216
2212
  return {
2217
- ...(input.Invitations !== undefined &&
2218
- input.Invitations !== null && {
2213
+ ...(input.Invitations != null && {
2219
2214
  Invitations: serializeAws_restJson1InviteActionList(input.Invitations, context),
2220
2215
  }),
2221
- ...(input.Removals !== undefined &&
2222
- input.Removals !== null && { Removals: serializeAws_restJson1RemoveActionList(input.Removals, context) }),
2216
+ ...(input.Removals != null && { Removals: serializeAws_restJson1RemoveActionList(input.Removals, context) }),
2223
2217
  };
2224
2218
  };
2225
2219
  const serializeAws_restJson1RemoveAction = (input, context) => {
2226
2220
  return {
2227
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
2221
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
2228
2222
  };
2229
2223
  };
2230
2224
  const serializeAws_restJson1RemoveActionList = (input, context) => {
@@ -2239,8 +2233,7 @@ const serializeAws_restJson1RemoveActionList = (input, context) => {
2239
2233
  };
2240
2234
  const serializeAws_restJson1VotingPolicy = (input, context) => {
2241
2235
  return {
2242
- ...(input.ApprovalThresholdPolicy !== undefined &&
2243
- input.ApprovalThresholdPolicy !== null && {
2236
+ ...(input.ApprovalThresholdPolicy != null && {
2244
2237
  ApprovalThresholdPolicy: serializeAws_restJson1ApprovalThresholdPolicy(input.ApprovalThresholdPolicy, context),
2245
2238
  }),
2246
2239
  };
@@ -2255,14 +2248,10 @@ const deserializeAws_restJson1ApprovalThresholdPolicy = (output, context) => {
2255
2248
  const deserializeAws_restJson1Invitation = (output, context) => {
2256
2249
  return {
2257
2250
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2258
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2259
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2260
- : undefined,
2261
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
2262
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate))
2263
- : undefined,
2251
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2252
+ ExpirationDate: output.ExpirationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate)) : undefined,
2264
2253
  InvitationId: (0, smithy_client_1.expectString)(output.InvitationId),
2265
- NetworkSummary: output.NetworkSummary !== undefined && output.NetworkSummary !== null
2254
+ NetworkSummary: output.NetworkSummary != null
2266
2255
  ? deserializeAws_restJson1NetworkSummary(output.NetworkSummary, context)
2267
2256
  : undefined,
2268
2257
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -2302,32 +2291,26 @@ const deserializeAws_restJson1LogConfiguration = (output, context) => {
2302
2291
  };
2303
2292
  const deserializeAws_restJson1LogConfigurations = (output, context) => {
2304
2293
  return {
2305
- Cloudwatch: output.Cloudwatch !== undefined && output.Cloudwatch !== null
2306
- ? deserializeAws_restJson1LogConfiguration(output.Cloudwatch, context)
2307
- : undefined,
2294
+ Cloudwatch: output.Cloudwatch != null ? deserializeAws_restJson1LogConfiguration(output.Cloudwatch, context) : undefined,
2308
2295
  };
2309
2296
  };
2310
2297
  const deserializeAws_restJson1Member = (output, context) => {
2311
2298
  return {
2312
2299
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2313
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2314
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2315
- : undefined,
2300
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2316
2301
  Description: (0, smithy_client_1.expectString)(output.Description),
2317
- FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
2302
+ FrameworkAttributes: output.FrameworkAttributes != null
2318
2303
  ? deserializeAws_restJson1MemberFrameworkAttributes(output.FrameworkAttributes, context)
2319
2304
  : undefined,
2320
2305
  Id: (0, smithy_client_1.expectString)(output.Id),
2321
2306
  KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
2322
- LogPublishingConfiguration: output.LogPublishingConfiguration !== undefined && output.LogPublishingConfiguration !== null
2307
+ LogPublishingConfiguration: output.LogPublishingConfiguration != null
2323
2308
  ? deserializeAws_restJson1MemberLogPublishingConfiguration(output.LogPublishingConfiguration, context)
2324
2309
  : undefined,
2325
2310
  Name: (0, smithy_client_1.expectString)(output.Name),
2326
2311
  NetworkId: (0, smithy_client_1.expectString)(output.NetworkId),
2327
2312
  Status: (0, smithy_client_1.expectString)(output.Status),
2328
- Tags: output.Tags !== undefined && output.Tags !== null
2329
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2330
- : undefined,
2313
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2331
2314
  };
2332
2315
  };
2333
2316
  const deserializeAws_restJson1MemberFabricAttributes = (output, context) => {
@@ -2338,21 +2321,17 @@ const deserializeAws_restJson1MemberFabricAttributes = (output, context) => {
2338
2321
  };
2339
2322
  const deserializeAws_restJson1MemberFabricLogPublishingConfiguration = (output, context) => {
2340
2323
  return {
2341
- CaLogs: output.CaLogs !== undefined && output.CaLogs !== null
2342
- ? deserializeAws_restJson1LogConfigurations(output.CaLogs, context)
2343
- : undefined,
2324
+ CaLogs: output.CaLogs != null ? deserializeAws_restJson1LogConfigurations(output.CaLogs, context) : undefined,
2344
2325
  };
2345
2326
  };
2346
2327
  const deserializeAws_restJson1MemberFrameworkAttributes = (output, context) => {
2347
2328
  return {
2348
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2349
- ? deserializeAws_restJson1MemberFabricAttributes(output.Fabric, context)
2350
- : undefined,
2329
+ Fabric: output.Fabric != null ? deserializeAws_restJson1MemberFabricAttributes(output.Fabric, context) : undefined,
2351
2330
  };
2352
2331
  };
2353
2332
  const deserializeAws_restJson1MemberLogPublishingConfiguration = (output, context) => {
2354
2333
  return {
2355
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2334
+ Fabric: output.Fabric != null
2356
2335
  ? deserializeAws_restJson1MemberFabricLogPublishingConfiguration(output.Fabric, context)
2357
2336
  : undefined,
2358
2337
  };
@@ -2360,9 +2339,7 @@ const deserializeAws_restJson1MemberLogPublishingConfiguration = (output, contex
2360
2339
  const deserializeAws_restJson1MemberSummary = (output, context) => {
2361
2340
  return {
2362
2341
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2363
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2364
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2365
- : undefined,
2342
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2366
2343
  Description: (0, smithy_client_1.expectString)(output.Description),
2367
2344
  Id: (0, smithy_client_1.expectString)(output.Id),
2368
2345
  IsOwned: (0, smithy_client_1.expectBoolean)(output.IsOwned),
@@ -2384,24 +2361,18 @@ const deserializeAws_restJson1MemberSummaryList = (output, context) => {
2384
2361
  const deserializeAws_restJson1Network = (output, context) => {
2385
2362
  return {
2386
2363
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2387
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2388
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2389
- : undefined,
2364
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2390
2365
  Description: (0, smithy_client_1.expectString)(output.Description),
2391
2366
  Framework: (0, smithy_client_1.expectString)(output.Framework),
2392
- FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
2367
+ FrameworkAttributes: output.FrameworkAttributes != null
2393
2368
  ? deserializeAws_restJson1NetworkFrameworkAttributes(output.FrameworkAttributes, context)
2394
2369
  : undefined,
2395
2370
  FrameworkVersion: (0, smithy_client_1.expectString)(output.FrameworkVersion),
2396
2371
  Id: (0, smithy_client_1.expectString)(output.Id),
2397
2372
  Name: (0, smithy_client_1.expectString)(output.Name),
2398
2373
  Status: (0, smithy_client_1.expectString)(output.Status),
2399
- Tags: output.Tags !== undefined && output.Tags !== null
2400
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2401
- : undefined,
2402
- VotingPolicy: output.VotingPolicy !== undefined && output.VotingPolicy !== null
2403
- ? deserializeAws_restJson1VotingPolicy(output.VotingPolicy, context)
2404
- : undefined,
2374
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2375
+ VotingPolicy: output.VotingPolicy != null ? deserializeAws_restJson1VotingPolicy(output.VotingPolicy, context) : undefined,
2405
2376
  VpcEndpointServiceName: (0, smithy_client_1.expectString)(output.VpcEndpointServiceName),
2406
2377
  };
2407
2378
  };
@@ -2418,20 +2389,14 @@ const deserializeAws_restJson1NetworkFabricAttributes = (output, context) => {
2418
2389
  };
2419
2390
  const deserializeAws_restJson1NetworkFrameworkAttributes = (output, context) => {
2420
2391
  return {
2421
- Ethereum: output.Ethereum !== undefined && output.Ethereum !== null
2422
- ? deserializeAws_restJson1NetworkEthereumAttributes(output.Ethereum, context)
2423
- : undefined,
2424
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2425
- ? deserializeAws_restJson1NetworkFabricAttributes(output.Fabric, context)
2426
- : undefined,
2392
+ Ethereum: output.Ethereum != null ? deserializeAws_restJson1NetworkEthereumAttributes(output.Ethereum, context) : undefined,
2393
+ Fabric: output.Fabric != null ? deserializeAws_restJson1NetworkFabricAttributes(output.Fabric, context) : undefined,
2427
2394
  };
2428
2395
  };
2429
2396
  const deserializeAws_restJson1NetworkSummary = (output, context) => {
2430
2397
  return {
2431
2398
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2432
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2433
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2434
- : undefined,
2399
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2435
2400
  Description: (0, smithy_client_1.expectString)(output.Description),
2436
2401
  Framework: (0, smithy_client_1.expectString)(output.Framework),
2437
2402
  FrameworkVersion: (0, smithy_client_1.expectString)(output.FrameworkVersion),
@@ -2455,25 +2420,21 @@ const deserializeAws_restJson1Node = (output, context) => {
2455
2420
  return {
2456
2421
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2457
2422
  AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
2458
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2459
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2460
- : undefined,
2461
- FrameworkAttributes: output.FrameworkAttributes !== undefined && output.FrameworkAttributes !== null
2423
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2424
+ FrameworkAttributes: output.FrameworkAttributes != null
2462
2425
  ? deserializeAws_restJson1NodeFrameworkAttributes(output.FrameworkAttributes, context)
2463
2426
  : undefined,
2464
2427
  Id: (0, smithy_client_1.expectString)(output.Id),
2465
2428
  InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
2466
2429
  KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
2467
- LogPublishingConfiguration: output.LogPublishingConfiguration !== undefined && output.LogPublishingConfiguration !== null
2430
+ LogPublishingConfiguration: output.LogPublishingConfiguration != null
2468
2431
  ? deserializeAws_restJson1NodeLogPublishingConfiguration(output.LogPublishingConfiguration, context)
2469
2432
  : undefined,
2470
2433
  MemberId: (0, smithy_client_1.expectString)(output.MemberId),
2471
2434
  NetworkId: (0, smithy_client_1.expectString)(output.NetworkId),
2472
2435
  StateDB: (0, smithy_client_1.expectString)(output.StateDB),
2473
2436
  Status: (0, smithy_client_1.expectString)(output.Status),
2474
- Tags: output.Tags !== undefined && output.Tags !== null
2475
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2476
- : undefined,
2437
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2477
2438
  };
2478
2439
  };
2479
2440
  const deserializeAws_restJson1NodeEthereumAttributes = (output, context) => {
@@ -2490,27 +2451,21 @@ const deserializeAws_restJson1NodeFabricAttributes = (output, context) => {
2490
2451
  };
2491
2452
  const deserializeAws_restJson1NodeFabricLogPublishingConfiguration = (output, context) => {
2492
2453
  return {
2493
- ChaincodeLogs: output.ChaincodeLogs !== undefined && output.ChaincodeLogs !== null
2454
+ ChaincodeLogs: output.ChaincodeLogs != null
2494
2455
  ? deserializeAws_restJson1LogConfigurations(output.ChaincodeLogs, context)
2495
2456
  : undefined,
2496
- PeerLogs: output.PeerLogs !== undefined && output.PeerLogs !== null
2497
- ? deserializeAws_restJson1LogConfigurations(output.PeerLogs, context)
2498
- : undefined,
2457
+ PeerLogs: output.PeerLogs != null ? deserializeAws_restJson1LogConfigurations(output.PeerLogs, context) : undefined,
2499
2458
  };
2500
2459
  };
2501
2460
  const deserializeAws_restJson1NodeFrameworkAttributes = (output, context) => {
2502
2461
  return {
2503
- Ethereum: output.Ethereum !== undefined && output.Ethereum !== null
2504
- ? deserializeAws_restJson1NodeEthereumAttributes(output.Ethereum, context)
2505
- : undefined,
2506
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2507
- ? deserializeAws_restJson1NodeFabricAttributes(output.Fabric, context)
2508
- : undefined,
2462
+ Ethereum: output.Ethereum != null ? deserializeAws_restJson1NodeEthereumAttributes(output.Ethereum, context) : undefined,
2463
+ Fabric: output.Fabric != null ? deserializeAws_restJson1NodeFabricAttributes(output.Fabric, context) : undefined,
2509
2464
  };
2510
2465
  };
2511
2466
  const deserializeAws_restJson1NodeLogPublishingConfiguration = (output, context) => {
2512
2467
  return {
2513
- Fabric: output.Fabric !== undefined && output.Fabric !== null
2468
+ Fabric: output.Fabric != null
2514
2469
  ? deserializeAws_restJson1NodeFabricLogPublishingConfiguration(output.Fabric, context)
2515
2470
  : undefined,
2516
2471
  };
@@ -2519,9 +2474,7 @@ const deserializeAws_restJson1NodeSummary = (output, context) => {
2519
2474
  return {
2520
2475
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2521
2476
  AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
2522
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2523
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2524
- : undefined,
2477
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2525
2478
  Id: (0, smithy_client_1.expectString)(output.Id),
2526
2479
  InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
2527
2480
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -2551,17 +2504,11 @@ const deserializeAws_restJson1OutputTagMap = (output, context) => {
2551
2504
  };
2552
2505
  const deserializeAws_restJson1Proposal = (output, context) => {
2553
2506
  return {
2554
- Actions: output.Actions !== undefined && output.Actions !== null
2555
- ? deserializeAws_restJson1ProposalActions(output.Actions, context)
2556
- : undefined,
2507
+ Actions: output.Actions != null ? deserializeAws_restJson1ProposalActions(output.Actions, context) : undefined,
2557
2508
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2558
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2559
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2560
- : undefined,
2509
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2561
2510
  Description: (0, smithy_client_1.expectString)(output.Description),
2562
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
2563
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate))
2564
- : undefined,
2511
+ ExpirationDate: output.ExpirationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate)) : undefined,
2565
2512
  NetworkId: (0, smithy_client_1.expectString)(output.NetworkId),
2566
2513
  NoVoteCount: (0, smithy_client_1.expectInt32)(output.NoVoteCount),
2567
2514
  OutstandingVoteCount: (0, smithy_client_1.expectInt32)(output.OutstandingVoteCount),
@@ -2569,32 +2516,22 @@ const deserializeAws_restJson1Proposal = (output, context) => {
2569
2516
  ProposedByMemberId: (0, smithy_client_1.expectString)(output.ProposedByMemberId),
2570
2517
  ProposedByMemberName: (0, smithy_client_1.expectString)(output.ProposedByMemberName),
2571
2518
  Status: (0, smithy_client_1.expectString)(output.Status),
2572
- Tags: output.Tags !== undefined && output.Tags !== null
2573
- ? deserializeAws_restJson1OutputTagMap(output.Tags, context)
2574
- : undefined,
2519
+ Tags: output.Tags != null ? deserializeAws_restJson1OutputTagMap(output.Tags, context) : undefined,
2575
2520
  YesVoteCount: (0, smithy_client_1.expectInt32)(output.YesVoteCount),
2576
2521
  };
2577
2522
  };
2578
2523
  const deserializeAws_restJson1ProposalActions = (output, context) => {
2579
2524
  return {
2580
- Invitations: output.Invitations !== undefined && output.Invitations !== null
2581
- ? deserializeAws_restJson1InviteActionList(output.Invitations, context)
2582
- : undefined,
2583
- Removals: output.Removals !== undefined && output.Removals !== null
2584
- ? deserializeAws_restJson1RemoveActionList(output.Removals, context)
2585
- : undefined,
2525
+ Invitations: output.Invitations != null ? deserializeAws_restJson1InviteActionList(output.Invitations, context) : undefined,
2526
+ Removals: output.Removals != null ? deserializeAws_restJson1RemoveActionList(output.Removals, context) : undefined,
2586
2527
  };
2587
2528
  };
2588
2529
  const deserializeAws_restJson1ProposalSummary = (output, context) => {
2589
2530
  return {
2590
2531
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2591
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2592
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate))
2593
- : undefined,
2532
+ CreationDate: output.CreationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreationDate)) : undefined,
2594
2533
  Description: (0, smithy_client_1.expectString)(output.Description),
2595
- ExpirationDate: output.ExpirationDate !== undefined && output.ExpirationDate !== null
2596
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate))
2597
- : undefined,
2534
+ ExpirationDate: output.ExpirationDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ExpirationDate)) : undefined,
2598
2535
  ProposalId: (0, smithy_client_1.expectString)(output.ProposalId),
2599
2536
  ProposedByMemberId: (0, smithy_client_1.expectString)(output.ProposedByMemberId),
2600
2537
  ProposedByMemberName: (0, smithy_client_1.expectString)(output.ProposedByMemberName),
@@ -2648,7 +2585,7 @@ const deserializeAws_restJson1VoteSummary = (output, context) => {
2648
2585
  };
2649
2586
  const deserializeAws_restJson1VotingPolicy = (output, context) => {
2650
2587
  return {
2651
- ApprovalThresholdPolicy: output.ApprovalThresholdPolicy !== undefined && output.ApprovalThresholdPolicy !== null
2588
+ ApprovalThresholdPolicy: output.ApprovalThresholdPolicy != null
2652
2589
  ? deserializeAws_restJson1ApprovalThresholdPolicy(output.ApprovalThresholdPolicy, context)
2653
2590
  : undefined,
2654
2591
  };
@@ -2702,5 +2639,4 @@ const loadRestJsonErrorCode = (output, data) => {
2702
2639
  if (data["__type"] !== undefined) {
2703
2640
  return sanitizeErrorCode(data["__type"]);
2704
2641
  }
2705
- return "";
2706
2642
  };