@aws-sdk/client-kafka 3.118.0 → 3.127.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.
@@ -24,8 +24,7 @@ const serializeAws_restJson1BatchAssociateScramSecretCommand = async (input, con
24
24
  }
25
25
  let body;
26
26
  body = JSON.stringify({
27
- ...(input.SecretArnList !== undefined &&
28
- input.SecretArnList !== null && {
27
+ ...(input.SecretArnList != null && {
29
28
  secretArnList: serializeAws_restJson1__listOf__string(input.SecretArnList, context),
30
29
  }),
31
30
  });
@@ -58,8 +57,7 @@ const serializeAws_restJson1BatchDisassociateScramSecretCommand = async (input,
58
57
  }
59
58
  let body;
60
59
  body = JSON.stringify({
61
- ...(input.SecretArnList !== undefined &&
62
- input.SecretArnList !== null && {
60
+ ...(input.SecretArnList != null && {
63
61
  secretArnList: serializeAws_restJson1__listOf__string(input.SecretArnList, context),
64
62
  }),
65
63
  });
@@ -82,36 +80,27 @@ const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
82
80
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters";
83
81
  let body;
84
82
  body = JSON.stringify({
85
- ...(input.BrokerNodeGroupInfo !== undefined &&
86
- input.BrokerNodeGroupInfo !== null && {
83
+ ...(input.BrokerNodeGroupInfo != null && {
87
84
  brokerNodeGroupInfo: serializeAws_restJson1BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
88
85
  }),
89
- ...(input.ClientAuthentication !== undefined &&
90
- input.ClientAuthentication !== null && {
86
+ ...(input.ClientAuthentication != null && {
91
87
  clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
92
88
  }),
93
- ...(input.ClusterName !== undefined && input.ClusterName !== null && { clusterName: input.ClusterName }),
94
- ...(input.ConfigurationInfo !== undefined &&
95
- input.ConfigurationInfo !== null && {
89
+ ...(input.ClusterName != null && { clusterName: input.ClusterName }),
90
+ ...(input.ConfigurationInfo != null && {
96
91
  configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
97
92
  }),
98
- ...(input.EncryptionInfo !== undefined &&
99
- input.EncryptionInfo !== null && {
93
+ ...(input.EncryptionInfo != null && {
100
94
  encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
101
95
  }),
102
- ...(input.EnhancedMonitoring !== undefined &&
103
- input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring }),
104
- ...(input.KafkaVersion !== undefined && input.KafkaVersion !== null && { kafkaVersion: input.KafkaVersion }),
105
- ...(input.LoggingInfo !== undefined &&
106
- input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) }),
107
- ...(input.NumberOfBrokerNodes !== undefined &&
108
- input.NumberOfBrokerNodes !== null && { numberOfBrokerNodes: input.NumberOfBrokerNodes }),
109
- ...(input.OpenMonitoring !== undefined &&
110
- input.OpenMonitoring !== null && {
96
+ ...(input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring }),
97
+ ...(input.KafkaVersion != null && { kafkaVersion: input.KafkaVersion }),
98
+ ...(input.LoggingInfo != null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) }),
99
+ ...(input.NumberOfBrokerNodes != null && { numberOfBrokerNodes: input.NumberOfBrokerNodes }),
100
+ ...(input.OpenMonitoring != null && {
111
101
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
112
102
  }),
113
- ...(input.Tags !== undefined &&
114
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
103
+ ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
115
104
  });
116
105
  return new protocol_http_1.HttpRequest({
117
106
  protocol,
@@ -132,15 +121,12 @@ const serializeAws_restJson1CreateClusterV2Command = async (input, context) => {
132
121
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/api/v2/clusters";
133
122
  let body;
134
123
  body = JSON.stringify({
135
- ...(input.ClusterName !== undefined && input.ClusterName !== null && { clusterName: input.ClusterName }),
136
- ...(input.Provisioned !== undefined &&
137
- input.Provisioned !== null && {
124
+ ...(input.ClusterName != null && { clusterName: input.ClusterName }),
125
+ ...(input.Provisioned != null && {
138
126
  provisioned: serializeAws_restJson1ProvisionedRequest(input.Provisioned, context),
139
127
  }),
140
- ...(input.Serverless !== undefined &&
141
- input.Serverless !== null && { serverless: serializeAws_restJson1ServerlessRequest(input.Serverless, context) }),
142
- ...(input.Tags !== undefined &&
143
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
128
+ ...(input.Serverless != null && { serverless: serializeAws_restJson1ServerlessRequest(input.Serverless, context) }),
129
+ ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
144
130
  });
145
131
  return new protocol_http_1.HttpRequest({
146
132
  protocol,
@@ -161,14 +147,12 @@ const serializeAws_restJson1CreateConfigurationCommand = async (input, context)
161
147
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/configurations";
162
148
  let body;
163
149
  body = JSON.stringify({
164
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
165
- ...(input.KafkaVersions !== undefined &&
166
- input.KafkaVersions !== null && {
150
+ ...(input.Description != null && { description: input.Description }),
151
+ ...(input.KafkaVersions != null && {
167
152
  kafkaVersions: serializeAws_restJson1__listOf__string(input.KafkaVersions, context),
168
153
  }),
169
- ...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
170
- ...(input.ServerProperties !== undefined &&
171
- input.ServerProperties !== null && { serverProperties: context.base64Encoder(input.ServerProperties) }),
154
+ ...(input.Name != null && { name: input.Name }),
155
+ ...(input.ServerProperties != null && { serverProperties: context.base64Encoder(input.ServerProperties) }),
172
156
  });
173
157
  return new protocol_http_1.HttpRequest({
174
158
  protocol,
@@ -680,8 +664,7 @@ const serializeAws_restJson1RebootBrokerCommand = async (input, context) => {
680
664
  }
681
665
  let body;
682
666
  body = JSON.stringify({
683
- ...(input.BrokerIds !== undefined &&
684
- input.BrokerIds !== null && { brokerIds: serializeAws_restJson1__listOf__string(input.BrokerIds, context) }),
667
+ ...(input.BrokerIds != null && { brokerIds: serializeAws_restJson1__listOf__string(input.BrokerIds, context) }),
685
668
  });
686
669
  return new protocol_http_1.HttpRequest({
687
670
  protocol,
@@ -712,8 +695,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
712
695
  }
713
696
  let body;
714
697
  body = JSON.stringify({
715
- ...(input.Tags !== undefined &&
716
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
698
+ ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
717
699
  });
718
700
  return new protocol_http_1.HttpRequest({
719
701
  protocol,
@@ -774,10 +756,8 @@ const serializeAws_restJson1UpdateBrokerCountCommand = async (input, context) =>
774
756
  }
775
757
  let body;
776
758
  body = JSON.stringify({
777
- ...(input.CurrentVersion !== undefined &&
778
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
779
- ...(input.TargetNumberOfBrokerNodes !== undefined &&
780
- input.TargetNumberOfBrokerNodes !== null && { targetNumberOfBrokerNodes: input.TargetNumberOfBrokerNodes }),
759
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
760
+ ...(input.TargetNumberOfBrokerNodes != null && { targetNumberOfBrokerNodes: input.TargetNumberOfBrokerNodes }),
781
761
  });
782
762
  return new protocol_http_1.HttpRequest({
783
763
  protocol,
@@ -808,10 +788,8 @@ const serializeAws_restJson1UpdateBrokerStorageCommand = async (input, context)
808
788
  }
809
789
  let body;
810
790
  body = JSON.stringify({
811
- ...(input.CurrentVersion !== undefined &&
812
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
813
- ...(input.TargetBrokerEBSVolumeInfo !== undefined &&
814
- input.TargetBrokerEBSVolumeInfo !== null && {
791
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
792
+ ...(input.TargetBrokerEBSVolumeInfo != null && {
815
793
  targetBrokerEBSVolumeInfo: serializeAws_restJson1__listOfBrokerEBSVolumeInfo(input.TargetBrokerEBSVolumeInfo, context),
816
794
  }),
817
795
  });
@@ -844,10 +822,8 @@ const serializeAws_restJson1UpdateBrokerTypeCommand = async (input, context) =>
844
822
  }
845
823
  let body;
846
824
  body = JSON.stringify({
847
- ...(input.CurrentVersion !== undefined &&
848
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
849
- ...(input.TargetInstanceType !== undefined &&
850
- input.TargetInstanceType !== null && { targetInstanceType: input.TargetInstanceType }),
825
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
826
+ ...(input.TargetInstanceType != null && { targetInstanceType: input.TargetInstanceType }),
851
827
  });
852
828
  return new protocol_http_1.HttpRequest({
853
829
  protocol,
@@ -878,12 +854,10 @@ const serializeAws_restJson1UpdateClusterConfigurationCommand = async (input, co
878
854
  }
879
855
  let body;
880
856
  body = JSON.stringify({
881
- ...(input.ConfigurationInfo !== undefined &&
882
- input.ConfigurationInfo !== null && {
857
+ ...(input.ConfigurationInfo != null && {
883
858
  configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
884
859
  }),
885
- ...(input.CurrentVersion !== undefined &&
886
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
860
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
887
861
  });
888
862
  return new protocol_http_1.HttpRequest({
889
863
  protocol,
@@ -914,14 +888,11 @@ const serializeAws_restJson1UpdateClusterKafkaVersionCommand = async (input, con
914
888
  }
915
889
  let body;
916
890
  body = JSON.stringify({
917
- ...(input.ConfigurationInfo !== undefined &&
918
- input.ConfigurationInfo !== null && {
891
+ ...(input.ConfigurationInfo != null && {
919
892
  configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
920
893
  }),
921
- ...(input.CurrentVersion !== undefined &&
922
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
923
- ...(input.TargetKafkaVersion !== undefined &&
924
- input.TargetKafkaVersion !== null && { targetKafkaVersion: input.TargetKafkaVersion }),
894
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
895
+ ...(input.TargetKafkaVersion != null && { targetKafkaVersion: input.TargetKafkaVersion }),
925
896
  });
926
897
  return new protocol_http_1.HttpRequest({
927
898
  protocol,
@@ -952,9 +923,8 @@ const serializeAws_restJson1UpdateConfigurationCommand = async (input, context)
952
923
  }
953
924
  let body;
954
925
  body = JSON.stringify({
955
- ...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
956
- ...(input.ServerProperties !== undefined &&
957
- input.ServerProperties !== null && { serverProperties: context.base64Encoder(input.ServerProperties) }),
926
+ ...(input.Description != null && { description: input.Description }),
927
+ ...(input.ServerProperties != null && { serverProperties: context.base64Encoder(input.ServerProperties) }),
958
928
  });
959
929
  return new protocol_http_1.HttpRequest({
960
930
  protocol,
@@ -985,12 +955,10 @@ const serializeAws_restJson1UpdateConnectivityCommand = async (input, context) =
985
955
  }
986
956
  let body;
987
957
  body = JSON.stringify({
988
- ...(input.ConnectivityInfo !== undefined &&
989
- input.ConnectivityInfo !== null && {
958
+ ...(input.ConnectivityInfo != null && {
990
959
  connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
991
960
  }),
992
- ...(input.CurrentVersion !== undefined &&
993
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
961
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
994
962
  });
995
963
  return new protocol_http_1.HttpRequest({
996
964
  protocol,
@@ -1021,14 +989,10 @@ const serializeAws_restJson1UpdateMonitoringCommand = async (input, context) =>
1021
989
  }
1022
990
  let body;
1023
991
  body = JSON.stringify({
1024
- ...(input.CurrentVersion !== undefined &&
1025
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
1026
- ...(input.EnhancedMonitoring !== undefined &&
1027
- input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring }),
1028
- ...(input.LoggingInfo !== undefined &&
1029
- input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) }),
1030
- ...(input.OpenMonitoring !== undefined &&
1031
- input.OpenMonitoring !== null && {
992
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
993
+ ...(input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring }),
994
+ ...(input.LoggingInfo != null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) }),
995
+ ...(input.OpenMonitoring != null && {
1032
996
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
1033
997
  }),
1034
998
  });
@@ -1061,14 +1025,11 @@ const serializeAws_restJson1UpdateSecurityCommand = async (input, context) => {
1061
1025
  }
1062
1026
  let body;
1063
1027
  body = JSON.stringify({
1064
- ...(input.ClientAuthentication !== undefined &&
1065
- input.ClientAuthentication !== null && {
1028
+ ...(input.ClientAuthentication != null && {
1066
1029
  clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
1067
1030
  }),
1068
- ...(input.CurrentVersion !== undefined &&
1069
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
1070
- ...(input.EncryptionInfo !== undefined &&
1071
- input.EncryptionInfo !== null && {
1031
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
1032
+ ...(input.EncryptionInfo != null && {
1072
1033
  encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
1073
1034
  }),
1074
1035
  });
@@ -1108,8 +1069,7 @@ const deserializeAws_restJson1BatchAssociateScramSecretCommandError = async (out
1108
1069
  body: await parseBody(output.body, context),
1109
1070
  };
1110
1071
  let response;
1111
- let errorCode = "UnknownError";
1112
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1072
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1113
1073
  switch (errorCode) {
1114
1074
  case "BadRequestException":
1115
1075
  case "com.amazonaws.kafka#BadRequestException":
@@ -1134,10 +1094,12 @@ const deserializeAws_restJson1BatchAssociateScramSecretCommandError = async (out
1134
1094
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1135
1095
  default:
1136
1096
  const parsedBody = parsedOutput.body;
1097
+ const $metadata = deserializeMetadata(output);
1098
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1137
1099
  response = new KafkaServiceException_1.KafkaServiceException({
1138
- name: parsedBody.code || parsedBody.Code || errorCode,
1100
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1139
1101
  $fault: "client",
1140
- $metadata: deserializeMetadata(output),
1102
+ $metadata,
1141
1103
  });
1142
1104
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1143
1105
  }
@@ -1167,8 +1129,7 @@ const deserializeAws_restJson1BatchDisassociateScramSecretCommandError = async (
1167
1129
  body: await parseBody(output.body, context),
1168
1130
  };
1169
1131
  let response;
1170
- let errorCode = "UnknownError";
1171
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1132
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1172
1133
  switch (errorCode) {
1173
1134
  case "BadRequestException":
1174
1135
  case "com.amazonaws.kafka#BadRequestException":
@@ -1193,10 +1154,12 @@ const deserializeAws_restJson1BatchDisassociateScramSecretCommandError = async (
1193
1154
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1194
1155
  default:
1195
1156
  const parsedBody = parsedOutput.body;
1157
+ const $metadata = deserializeMetadata(output);
1158
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1196
1159
  response = new KafkaServiceException_1.KafkaServiceException({
1197
- name: parsedBody.code || parsedBody.Code || errorCode,
1160
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1198
1161
  $fault: "client",
1199
- $metadata: deserializeMetadata(output),
1162
+ $metadata,
1200
1163
  });
1201
1164
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1202
1165
  }
@@ -1230,8 +1193,7 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
1230
1193
  body: await parseBody(output.body, context),
1231
1194
  };
1232
1195
  let response;
1233
- let errorCode = "UnknownError";
1234
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1196
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1235
1197
  switch (errorCode) {
1236
1198
  case "BadRequestException":
1237
1199
  case "com.amazonaws.kafka#BadRequestException":
@@ -1256,10 +1218,12 @@ const deserializeAws_restJson1CreateClusterCommandError = async (output, context
1256
1218
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1257
1219
  default:
1258
1220
  const parsedBody = parsedOutput.body;
1221
+ const $metadata = deserializeMetadata(output);
1222
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1259
1223
  response = new KafkaServiceException_1.KafkaServiceException({
1260
- name: parsedBody.code || parsedBody.Code || errorCode,
1224
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1261
1225
  $fault: "client",
1262
- $metadata: deserializeMetadata(output),
1226
+ $metadata,
1263
1227
  });
1264
1228
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1265
1229
  }
@@ -1297,8 +1261,7 @@ const deserializeAws_restJson1CreateClusterV2CommandError = async (output, conte
1297
1261
  body: await parseBody(output.body, context),
1298
1262
  };
1299
1263
  let response;
1300
- let errorCode = "UnknownError";
1301
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1264
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1302
1265
  switch (errorCode) {
1303
1266
  case "BadRequestException":
1304
1267
  case "com.amazonaws.kafka#BadRequestException":
@@ -1323,10 +1286,12 @@ const deserializeAws_restJson1CreateClusterV2CommandError = async (output, conte
1323
1286
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1324
1287
  default:
1325
1288
  const parsedBody = parsedOutput.body;
1289
+ const $metadata = deserializeMetadata(output);
1290
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1326
1291
  response = new KafkaServiceException_1.KafkaServiceException({
1327
- name: parsedBody.code || parsedBody.Code || errorCode,
1292
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1328
1293
  $fault: "client",
1329
- $metadata: deserializeMetadata(output),
1294
+ $metadata,
1330
1295
  });
1331
1296
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1332
1297
  }
@@ -1368,8 +1333,7 @@ const deserializeAws_restJson1CreateConfigurationCommandError = async (output, c
1368
1333
  body: await parseBody(output.body, context),
1369
1334
  };
1370
1335
  let response;
1371
- let errorCode = "UnknownError";
1372
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1336
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1373
1337
  switch (errorCode) {
1374
1338
  case "BadRequestException":
1375
1339
  case "com.amazonaws.kafka#BadRequestException":
@@ -1394,10 +1358,12 @@ const deserializeAws_restJson1CreateConfigurationCommandError = async (output, c
1394
1358
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1395
1359
  default:
1396
1360
  const parsedBody = parsedOutput.body;
1361
+ const $metadata = deserializeMetadata(output);
1362
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1397
1363
  response = new KafkaServiceException_1.KafkaServiceException({
1398
- name: parsedBody.code || parsedBody.Code || errorCode,
1364
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1399
1365
  $fault: "client",
1400
- $metadata: deserializeMetadata(output),
1366
+ $metadata,
1401
1367
  });
1402
1368
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1403
1369
  }
@@ -1427,8 +1393,7 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
1427
1393
  body: await parseBody(output.body, context),
1428
1394
  };
1429
1395
  let response;
1430
- let errorCode = "UnknownError";
1431
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1396
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1432
1397
  switch (errorCode) {
1433
1398
  case "BadRequestException":
1434
1399
  case "com.amazonaws.kafka#BadRequestException":
@@ -1444,10 +1409,12 @@ const deserializeAws_restJson1DeleteClusterCommandError = async (output, context
1444
1409
  throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1445
1410
  default:
1446
1411
  const parsedBody = parsedOutput.body;
1412
+ const $metadata = deserializeMetadata(output);
1413
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1447
1414
  response = new KafkaServiceException_1.KafkaServiceException({
1448
- name: parsedBody.code || parsedBody.Code || errorCode,
1415
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1449
1416
  $fault: "client",
1450
- $metadata: deserializeMetadata(output),
1417
+ $metadata,
1451
1418
  });
1452
1419
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1453
1420
  }
@@ -1477,8 +1444,7 @@ const deserializeAws_restJson1DeleteConfigurationCommandError = async (output, c
1477
1444
  body: await parseBody(output.body, context),
1478
1445
  };
1479
1446
  let response;
1480
- let errorCode = "UnknownError";
1481
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1447
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1482
1448
  switch (errorCode) {
1483
1449
  case "BadRequestException":
1484
1450
  case "com.amazonaws.kafka#BadRequestException":
@@ -1494,10 +1460,12 @@ const deserializeAws_restJson1DeleteConfigurationCommandError = async (output, c
1494
1460
  throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
1495
1461
  default:
1496
1462
  const parsedBody = parsedOutput.body;
1463
+ const $metadata = deserializeMetadata(output);
1464
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1497
1465
  response = new KafkaServiceException_1.KafkaServiceException({
1498
- name: parsedBody.code || parsedBody.Code || errorCode,
1466
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1499
1467
  $fault: "client",
1500
- $metadata: deserializeMetadata(output),
1468
+ $metadata,
1501
1469
  });
1502
1470
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1503
1471
  }
@@ -1523,8 +1491,7 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
1523
1491
  body: await parseBody(output.body, context),
1524
1492
  };
1525
1493
  let response;
1526
- let errorCode = "UnknownError";
1527
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1494
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1528
1495
  switch (errorCode) {
1529
1496
  case "BadRequestException":
1530
1497
  case "com.amazonaws.kafka#BadRequestException":
@@ -1543,10 +1510,12 @@ const deserializeAws_restJson1DescribeClusterCommandError = async (output, conte
1543
1510
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1544
1511
  default:
1545
1512
  const parsedBody = parsedOutput.body;
1513
+ const $metadata = deserializeMetadata(output);
1514
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1546
1515
  response = new KafkaServiceException_1.KafkaServiceException({
1547
- name: parsedBody.code || parsedBody.Code || errorCode,
1516
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1548
1517
  $fault: "client",
1549
- $metadata: deserializeMetadata(output),
1518
+ $metadata,
1550
1519
  });
1551
1520
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1552
1521
  }
@@ -1572,8 +1541,7 @@ const deserializeAws_restJson1DescribeClusterOperationCommandError = async (outp
1572
1541
  body: await parseBody(output.body, context),
1573
1542
  };
1574
1543
  let response;
1575
- let errorCode = "UnknownError";
1576
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1544
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1577
1545
  switch (errorCode) {
1578
1546
  case "BadRequestException":
1579
1547
  case "com.amazonaws.kafka#BadRequestException":
@@ -1592,10 +1560,12 @@ const deserializeAws_restJson1DescribeClusterOperationCommandError = async (outp
1592
1560
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1593
1561
  default:
1594
1562
  const parsedBody = parsedOutput.body;
1563
+ const $metadata = deserializeMetadata(output);
1564
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1595
1565
  response = new KafkaServiceException_1.KafkaServiceException({
1596
- name: parsedBody.code || parsedBody.Code || errorCode,
1566
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1597
1567
  $fault: "client",
1598
- $metadata: deserializeMetadata(output),
1568
+ $metadata,
1599
1569
  });
1600
1570
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1601
1571
  }
@@ -1621,8 +1591,7 @@ const deserializeAws_restJson1DescribeClusterV2CommandError = async (output, con
1621
1591
  body: await parseBody(output.body, context),
1622
1592
  };
1623
1593
  let response;
1624
- let errorCode = "UnknownError";
1625
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1594
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1626
1595
  switch (errorCode) {
1627
1596
  case "BadRequestException":
1628
1597
  case "com.amazonaws.kafka#BadRequestException":
@@ -1641,10 +1610,12 @@ const deserializeAws_restJson1DescribeClusterV2CommandError = async (output, con
1641
1610
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1642
1611
  default:
1643
1612
  const parsedBody = parsedOutput.body;
1613
+ const $metadata = deserializeMetadata(output);
1614
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1644
1615
  response = new KafkaServiceException_1.KafkaServiceException({
1645
- name: parsedBody.code || parsedBody.Code || errorCode,
1616
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1646
1617
  $fault: "client",
1647
- $metadata: deserializeMetadata(output),
1618
+ $metadata,
1648
1619
  });
1649
1620
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1650
1621
  }
@@ -1694,8 +1665,7 @@ const deserializeAws_restJson1DescribeConfigurationCommandError = async (output,
1694
1665
  body: await parseBody(output.body, context),
1695
1666
  };
1696
1667
  let response;
1697
- let errorCode = "UnknownError";
1698
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1668
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1699
1669
  switch (errorCode) {
1700
1670
  case "BadRequestException":
1701
1671
  case "com.amazonaws.kafka#BadRequestException":
@@ -1717,10 +1687,12 @@ const deserializeAws_restJson1DescribeConfigurationCommandError = async (output,
1717
1687
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1718
1688
  default:
1719
1689
  const parsedBody = parsedOutput.body;
1690
+ const $metadata = deserializeMetadata(output);
1691
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1720
1692
  response = new KafkaServiceException_1.KafkaServiceException({
1721
- name: parsedBody.code || parsedBody.Code || errorCode,
1693
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1722
1694
  $fault: "client",
1723
- $metadata: deserializeMetadata(output),
1695
+ $metadata,
1724
1696
  });
1725
1697
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1726
1698
  }
@@ -1762,8 +1734,7 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommandError = async
1762
1734
  body: await parseBody(output.body, context),
1763
1735
  };
1764
1736
  let response;
1765
- let errorCode = "UnknownError";
1766
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1737
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1767
1738
  switch (errorCode) {
1768
1739
  case "BadRequestException":
1769
1740
  case "com.amazonaws.kafka#BadRequestException":
@@ -1785,10 +1756,12 @@ const deserializeAws_restJson1DescribeConfigurationRevisionCommandError = async
1785
1756
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1786
1757
  default:
1787
1758
  const parsedBody = parsedOutput.body;
1759
+ const $metadata = deserializeMetadata(output);
1760
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1788
1761
  response = new KafkaServiceException_1.KafkaServiceException({
1789
- name: parsedBody.code || parsedBody.Code || errorCode,
1762
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1790
1763
  $fault: "client",
1791
- $metadata: deserializeMetadata(output),
1764
+ $metadata,
1792
1765
  });
1793
1766
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1794
1767
  }
@@ -1838,8 +1811,7 @@ const deserializeAws_restJson1GetBootstrapBrokersCommandError = async (output, c
1838
1811
  body: await parseBody(output.body, context),
1839
1812
  };
1840
1813
  let response;
1841
- let errorCode = "UnknownError";
1842
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1814
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1843
1815
  switch (errorCode) {
1844
1816
  case "BadRequestException":
1845
1817
  case "com.amazonaws.kafka#BadRequestException":
@@ -1858,10 +1830,12 @@ const deserializeAws_restJson1GetBootstrapBrokersCommandError = async (output, c
1858
1830
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1859
1831
  default:
1860
1832
  const parsedBody = parsedOutput.body;
1833
+ const $metadata = deserializeMetadata(output);
1834
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1861
1835
  response = new KafkaServiceException_1.KafkaServiceException({
1862
- name: parsedBody.code || parsedBody.Code || errorCode,
1836
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1863
1837
  $fault: "client",
1864
- $metadata: deserializeMetadata(output),
1838
+ $metadata,
1865
1839
  });
1866
1840
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1867
1841
  }
@@ -1887,8 +1861,7 @@ const deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError = async (ou
1887
1861
  body: await parseBody(output.body, context),
1888
1862
  };
1889
1863
  let response;
1890
- let errorCode = "UnknownError";
1891
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1864
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1892
1865
  switch (errorCode) {
1893
1866
  case "BadRequestException":
1894
1867
  case "com.amazonaws.kafka#BadRequestException":
@@ -1913,10 +1886,12 @@ const deserializeAws_restJson1GetCompatibleKafkaVersionsCommandError = async (ou
1913
1886
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1914
1887
  default:
1915
1888
  const parsedBody = parsedOutput.body;
1889
+ const $metadata = deserializeMetadata(output);
1890
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1916
1891
  response = new KafkaServiceException_1.KafkaServiceException({
1917
- name: parsedBody.code || parsedBody.Code || errorCode,
1892
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1918
1893
  $fault: "client",
1919
- $metadata: deserializeMetadata(output),
1894
+ $metadata,
1920
1895
  });
1921
1896
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1922
1897
  }
@@ -1946,8 +1921,7 @@ const deserializeAws_restJson1ListClusterOperationsCommandError = async (output,
1946
1921
  body: await parseBody(output.body, context),
1947
1922
  };
1948
1923
  let response;
1949
- let errorCode = "UnknownError";
1950
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1924
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1951
1925
  switch (errorCode) {
1952
1926
  case "BadRequestException":
1953
1927
  case "com.amazonaws.kafka#BadRequestException":
@@ -1963,10 +1937,12 @@ const deserializeAws_restJson1ListClusterOperationsCommandError = async (output,
1963
1937
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
1964
1938
  default:
1965
1939
  const parsedBody = parsedOutput.body;
1940
+ const $metadata = deserializeMetadata(output);
1941
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1966
1942
  response = new KafkaServiceException_1.KafkaServiceException({
1967
- name: parsedBody.code || parsedBody.Code || errorCode,
1943
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1968
1944
  $fault: "client",
1969
- $metadata: deserializeMetadata(output),
1945
+ $metadata,
1970
1946
  });
1971
1947
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1972
1948
  }
@@ -1996,8 +1972,7 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
1996
1972
  body: await parseBody(output.body, context),
1997
1973
  };
1998
1974
  let response;
1999
- let errorCode = "UnknownError";
2000
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1975
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2001
1976
  switch (errorCode) {
2002
1977
  case "BadRequestException":
2003
1978
  case "com.amazonaws.kafka#BadRequestException":
@@ -2013,10 +1988,12 @@ const deserializeAws_restJson1ListClustersCommandError = async (output, context)
2013
1988
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2014
1989
  default:
2015
1990
  const parsedBody = parsedOutput.body;
1991
+ const $metadata = deserializeMetadata(output);
1992
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2016
1993
  response = new KafkaServiceException_1.KafkaServiceException({
2017
- name: parsedBody.code || parsedBody.Code || errorCode,
1994
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2018
1995
  $fault: "client",
2019
- $metadata: deserializeMetadata(output),
1996
+ $metadata,
2020
1997
  });
2021
1998
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2022
1999
  }
@@ -2046,8 +2023,7 @@ const deserializeAws_restJson1ListClustersV2CommandError = async (output, contex
2046
2023
  body: await parseBody(output.body, context),
2047
2024
  };
2048
2025
  let response;
2049
- let errorCode = "UnknownError";
2050
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2026
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2051
2027
  switch (errorCode) {
2052
2028
  case "BadRequestException":
2053
2029
  case "com.amazonaws.kafka#BadRequestException":
@@ -2063,10 +2039,12 @@ const deserializeAws_restJson1ListClustersV2CommandError = async (output, contex
2063
2039
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2064
2040
  default:
2065
2041
  const parsedBody = parsedOutput.body;
2042
+ const $metadata = deserializeMetadata(output);
2043
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2066
2044
  response = new KafkaServiceException_1.KafkaServiceException({
2067
- name: parsedBody.code || parsedBody.Code || errorCode,
2045
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2068
2046
  $fault: "client",
2069
- $metadata: deserializeMetadata(output),
2047
+ $metadata,
2070
2048
  });
2071
2049
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2072
2050
  }
@@ -2096,8 +2074,7 @@ const deserializeAws_restJson1ListConfigurationRevisionsCommandError = async (ou
2096
2074
  body: await parseBody(output.body, context),
2097
2075
  };
2098
2076
  let response;
2099
- let errorCode = "UnknownError";
2100
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2077
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2101
2078
  switch (errorCode) {
2102
2079
  case "BadRequestException":
2103
2080
  case "com.amazonaws.kafka#BadRequestException":
@@ -2119,10 +2096,12 @@ const deserializeAws_restJson1ListConfigurationRevisionsCommandError = async (ou
2119
2096
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2120
2097
  default:
2121
2098
  const parsedBody = parsedOutput.body;
2099
+ const $metadata = deserializeMetadata(output);
2100
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2122
2101
  response = new KafkaServiceException_1.KafkaServiceException({
2123
- name: parsedBody.code || parsedBody.Code || errorCode,
2102
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2124
2103
  $fault: "client",
2125
- $metadata: deserializeMetadata(output),
2104
+ $metadata,
2126
2105
  });
2127
2106
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2128
2107
  }
@@ -2152,8 +2131,7 @@ const deserializeAws_restJson1ListConfigurationsCommandError = async (output, co
2152
2131
  body: await parseBody(output.body, context),
2153
2132
  };
2154
2133
  let response;
2155
- let errorCode = "UnknownError";
2156
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2134
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2157
2135
  switch (errorCode) {
2158
2136
  case "BadRequestException":
2159
2137
  case "com.amazonaws.kafka#BadRequestException":
@@ -2172,10 +2150,12 @@ const deserializeAws_restJson1ListConfigurationsCommandError = async (output, co
2172
2150
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2173
2151
  default:
2174
2152
  const parsedBody = parsedOutput.body;
2153
+ const $metadata = deserializeMetadata(output);
2154
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2175
2155
  response = new KafkaServiceException_1.KafkaServiceException({
2176
- name: parsedBody.code || parsedBody.Code || errorCode,
2156
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2177
2157
  $fault: "client",
2178
- $metadata: deserializeMetadata(output),
2158
+ $metadata,
2179
2159
  });
2180
2160
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2181
2161
  }
@@ -2205,8 +2185,7 @@ const deserializeAws_restJson1ListKafkaVersionsCommandError = async (output, con
2205
2185
  body: await parseBody(output.body, context),
2206
2186
  };
2207
2187
  let response;
2208
- let errorCode = "UnknownError";
2209
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2188
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2210
2189
  switch (errorCode) {
2211
2190
  case "BadRequestException":
2212
2191
  case "com.amazonaws.kafka#BadRequestException":
@@ -2222,10 +2201,12 @@ const deserializeAws_restJson1ListKafkaVersionsCommandError = async (output, con
2222
2201
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2223
2202
  default:
2224
2203
  const parsedBody = parsedOutput.body;
2204
+ const $metadata = deserializeMetadata(output);
2205
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2225
2206
  response = new KafkaServiceException_1.KafkaServiceException({
2226
- name: parsedBody.code || parsedBody.Code || errorCode,
2207
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2227
2208
  $fault: "client",
2228
- $metadata: deserializeMetadata(output),
2209
+ $metadata,
2229
2210
  });
2230
2211
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2231
2212
  }
@@ -2255,8 +2236,7 @@ const deserializeAws_restJson1ListNodesCommandError = async (output, context) =>
2255
2236
  body: await parseBody(output.body, context),
2256
2237
  };
2257
2238
  let response;
2258
- let errorCode = "UnknownError";
2259
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2239
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2260
2240
  switch (errorCode) {
2261
2241
  case "BadRequestException":
2262
2242
  case "com.amazonaws.kafka#BadRequestException":
@@ -2272,10 +2252,12 @@ const deserializeAws_restJson1ListNodesCommandError = async (output, context) =>
2272
2252
  throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2273
2253
  default:
2274
2254
  const parsedBody = parsedOutput.body;
2255
+ const $metadata = deserializeMetadata(output);
2256
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2275
2257
  response = new KafkaServiceException_1.KafkaServiceException({
2276
- name: parsedBody.code || parsedBody.Code || errorCode,
2258
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2277
2259
  $fault: "client",
2278
- $metadata: deserializeMetadata(output),
2260
+ $metadata,
2279
2261
  });
2280
2262
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2281
2263
  }
@@ -2305,8 +2287,7 @@ const deserializeAws_restJson1ListScramSecretsCommandError = async (output, cont
2305
2287
  body: await parseBody(output.body, context),
2306
2288
  };
2307
2289
  let response;
2308
- let errorCode = "UnknownError";
2309
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2290
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2310
2291
  switch (errorCode) {
2311
2292
  case "BadRequestException":
2312
2293
  case "com.amazonaws.kafka#BadRequestException":
@@ -2331,10 +2312,12 @@ const deserializeAws_restJson1ListScramSecretsCommandError = async (output, cont
2331
2312
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2332
2313
  default:
2333
2314
  const parsedBody = parsedOutput.body;
2315
+ const $metadata = deserializeMetadata(output);
2316
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2334
2317
  response = new KafkaServiceException_1.KafkaServiceException({
2335
- name: parsedBody.code || parsedBody.Code || errorCode,
2318
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2336
2319
  $fault: "client",
2337
- $metadata: deserializeMetadata(output),
2320
+ $metadata,
2338
2321
  });
2339
2322
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2340
2323
  }
@@ -2360,8 +2343,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
2360
2343
  body: await parseBody(output.body, context),
2361
2344
  };
2362
2345
  let response;
2363
- let errorCode = "UnknownError";
2364
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2346
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2365
2347
  switch (errorCode) {
2366
2348
  case "BadRequestException":
2367
2349
  case "com.amazonaws.kafka#BadRequestException":
@@ -2374,10 +2356,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
2374
2356
  throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2375
2357
  default:
2376
2358
  const parsedBody = parsedOutput.body;
2359
+ const $metadata = deserializeMetadata(output);
2360
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2377
2361
  response = new KafkaServiceException_1.KafkaServiceException({
2378
- name: parsedBody.code || parsedBody.Code || errorCode,
2362
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2379
2363
  $fault: "client",
2380
- $metadata: deserializeMetadata(output),
2364
+ $metadata,
2381
2365
  });
2382
2366
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2383
2367
  }
@@ -2407,8 +2391,7 @@ const deserializeAws_restJson1RebootBrokerCommandError = async (output, context)
2407
2391
  body: await parseBody(output.body, context),
2408
2392
  };
2409
2393
  let response;
2410
- let errorCode = "UnknownError";
2411
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2394
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2412
2395
  switch (errorCode) {
2413
2396
  case "BadRequestException":
2414
2397
  case "com.amazonaws.kafka#BadRequestException":
@@ -2433,10 +2416,12 @@ const deserializeAws_restJson1RebootBrokerCommandError = async (output, context)
2433
2416
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2434
2417
  default:
2435
2418
  const parsedBody = parsedOutput.body;
2419
+ const $metadata = deserializeMetadata(output);
2420
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2436
2421
  response = new KafkaServiceException_1.KafkaServiceException({
2437
- name: parsedBody.code || parsedBody.Code || errorCode,
2422
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2438
2423
  $fault: "client",
2439
- $metadata: deserializeMetadata(output),
2424
+ $metadata,
2440
2425
  });
2441
2426
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2442
2427
  }
@@ -2458,8 +2443,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2458
2443
  body: await parseBody(output.body, context),
2459
2444
  };
2460
2445
  let response;
2461
- let errorCode = "UnknownError";
2462
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2446
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2463
2447
  switch (errorCode) {
2464
2448
  case "BadRequestException":
2465
2449
  case "com.amazonaws.kafka#BadRequestException":
@@ -2472,10 +2456,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2472
2456
  throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2473
2457
  default:
2474
2458
  const parsedBody = parsedOutput.body;
2459
+ const $metadata = deserializeMetadata(output);
2460
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2475
2461
  response = new KafkaServiceException_1.KafkaServiceException({
2476
- name: parsedBody.code || parsedBody.Code || errorCode,
2462
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2477
2463
  $fault: "client",
2478
- $metadata: deserializeMetadata(output),
2464
+ $metadata,
2479
2465
  });
2480
2466
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2481
2467
  }
@@ -2497,8 +2483,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2497
2483
  body: await parseBody(output.body, context),
2498
2484
  };
2499
2485
  let response;
2500
- let errorCode = "UnknownError";
2501
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2486
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2502
2487
  switch (errorCode) {
2503
2488
  case "BadRequestException":
2504
2489
  case "com.amazonaws.kafka#BadRequestException":
@@ -2511,10 +2496,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2511
2496
  throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2512
2497
  default:
2513
2498
  const parsedBody = parsedOutput.body;
2499
+ const $metadata = deserializeMetadata(output);
2500
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2514
2501
  response = new KafkaServiceException_1.KafkaServiceException({
2515
- name: parsedBody.code || parsedBody.Code || errorCode,
2502
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2516
2503
  $fault: "client",
2517
- $metadata: deserializeMetadata(output),
2504
+ $metadata,
2518
2505
  });
2519
2506
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2520
2507
  }
@@ -2544,8 +2531,7 @@ const deserializeAws_restJson1UpdateBrokerCountCommandError = async (output, con
2544
2531
  body: await parseBody(output.body, context),
2545
2532
  };
2546
2533
  let response;
2547
- let errorCode = "UnknownError";
2548
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2534
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2549
2535
  switch (errorCode) {
2550
2536
  case "BadRequestException":
2551
2537
  case "com.amazonaws.kafka#BadRequestException":
@@ -2564,10 +2550,12 @@ const deserializeAws_restJson1UpdateBrokerCountCommandError = async (output, con
2564
2550
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2565
2551
  default:
2566
2552
  const parsedBody = parsedOutput.body;
2553
+ const $metadata = deserializeMetadata(output);
2554
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2567
2555
  response = new KafkaServiceException_1.KafkaServiceException({
2568
- name: parsedBody.code || parsedBody.Code || errorCode,
2556
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2569
2557
  $fault: "client",
2570
- $metadata: deserializeMetadata(output),
2558
+ $metadata,
2571
2559
  });
2572
2560
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2573
2561
  }
@@ -2597,8 +2585,7 @@ const deserializeAws_restJson1UpdateBrokerStorageCommandError = async (output, c
2597
2585
  body: await parseBody(output.body, context),
2598
2586
  };
2599
2587
  let response;
2600
- let errorCode = "UnknownError";
2601
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2588
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2602
2589
  switch (errorCode) {
2603
2590
  case "BadRequestException":
2604
2591
  case "com.amazonaws.kafka#BadRequestException":
@@ -2617,10 +2604,12 @@ const deserializeAws_restJson1UpdateBrokerStorageCommandError = async (output, c
2617
2604
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2618
2605
  default:
2619
2606
  const parsedBody = parsedOutput.body;
2607
+ const $metadata = deserializeMetadata(output);
2608
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2620
2609
  response = new KafkaServiceException_1.KafkaServiceException({
2621
- name: parsedBody.code || parsedBody.Code || errorCode,
2610
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2622
2611
  $fault: "client",
2623
- $metadata: deserializeMetadata(output),
2612
+ $metadata,
2624
2613
  });
2625
2614
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2626
2615
  }
@@ -2650,8 +2639,7 @@ const deserializeAws_restJson1UpdateBrokerTypeCommandError = async (output, cont
2650
2639
  body: await parseBody(output.body, context),
2651
2640
  };
2652
2641
  let response;
2653
- let errorCode = "UnknownError";
2654
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2642
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2655
2643
  switch (errorCode) {
2656
2644
  case "BadRequestException":
2657
2645
  case "com.amazonaws.kafka#BadRequestException":
@@ -2676,10 +2664,12 @@ const deserializeAws_restJson1UpdateBrokerTypeCommandError = async (output, cont
2676
2664
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2677
2665
  default:
2678
2666
  const parsedBody = parsedOutput.body;
2667
+ const $metadata = deserializeMetadata(output);
2668
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2679
2669
  response = new KafkaServiceException_1.KafkaServiceException({
2680
- name: parsedBody.code || parsedBody.Code || errorCode,
2670
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2681
2671
  $fault: "client",
2682
- $metadata: deserializeMetadata(output),
2672
+ $metadata,
2683
2673
  });
2684
2674
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2685
2675
  }
@@ -2709,8 +2699,7 @@ const deserializeAws_restJson1UpdateClusterConfigurationCommandError = async (ou
2709
2699
  body: await parseBody(output.body, context),
2710
2700
  };
2711
2701
  let response;
2712
- let errorCode = "UnknownError";
2713
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2702
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2714
2703
  switch (errorCode) {
2715
2704
  case "BadRequestException":
2716
2705
  case "com.amazonaws.kafka#BadRequestException":
@@ -2732,10 +2721,12 @@ const deserializeAws_restJson1UpdateClusterConfigurationCommandError = async (ou
2732
2721
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2733
2722
  default:
2734
2723
  const parsedBody = parsedOutput.body;
2724
+ const $metadata = deserializeMetadata(output);
2725
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2735
2726
  response = new KafkaServiceException_1.KafkaServiceException({
2736
- name: parsedBody.code || parsedBody.Code || errorCode,
2727
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2737
2728
  $fault: "client",
2738
- $metadata: deserializeMetadata(output),
2729
+ $metadata,
2739
2730
  });
2740
2731
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2741
2732
  }
@@ -2765,8 +2756,7 @@ const deserializeAws_restJson1UpdateClusterKafkaVersionCommandError = async (out
2765
2756
  body: await parseBody(output.body, context),
2766
2757
  };
2767
2758
  let response;
2768
- let errorCode = "UnknownError";
2769
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2759
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2770
2760
  switch (errorCode) {
2771
2761
  case "BadRequestException":
2772
2762
  case "com.amazonaws.kafka#BadRequestException":
@@ -2791,10 +2781,12 @@ const deserializeAws_restJson1UpdateClusterKafkaVersionCommandError = async (out
2791
2781
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2792
2782
  default:
2793
2783
  const parsedBody = parsedOutput.body;
2784
+ const $metadata = deserializeMetadata(output);
2785
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2794
2786
  response = new KafkaServiceException_1.KafkaServiceException({
2795
- name: parsedBody.code || parsedBody.Code || errorCode,
2787
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2796
2788
  $fault: "client",
2797
- $metadata: deserializeMetadata(output),
2789
+ $metadata,
2798
2790
  });
2799
2791
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2800
2792
  }
@@ -2824,8 +2816,7 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
2824
2816
  body: await parseBody(output.body, context),
2825
2817
  };
2826
2818
  let response;
2827
- let errorCode = "UnknownError";
2828
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2819
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2829
2820
  switch (errorCode) {
2830
2821
  case "BadRequestException":
2831
2822
  case "com.amazonaws.kafka#BadRequestException":
@@ -2847,10 +2838,12 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
2847
2838
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2848
2839
  default:
2849
2840
  const parsedBody = parsedOutput.body;
2841
+ const $metadata = deserializeMetadata(output);
2842
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2850
2843
  response = new KafkaServiceException_1.KafkaServiceException({
2851
- name: parsedBody.code || parsedBody.Code || errorCode,
2844
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2852
2845
  $fault: "client",
2853
- $metadata: deserializeMetadata(output),
2846
+ $metadata,
2854
2847
  });
2855
2848
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2856
2849
  }
@@ -2880,8 +2873,7 @@ const deserializeAws_restJson1UpdateConnectivityCommandError = async (output, co
2880
2873
  body: await parseBody(output.body, context),
2881
2874
  };
2882
2875
  let response;
2883
- let errorCode = "UnknownError";
2884
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2876
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2885
2877
  switch (errorCode) {
2886
2878
  case "BadRequestException":
2887
2879
  case "com.amazonaws.kafka#BadRequestException":
@@ -2903,10 +2895,12 @@ const deserializeAws_restJson1UpdateConnectivityCommandError = async (output, co
2903
2895
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2904
2896
  default:
2905
2897
  const parsedBody = parsedOutput.body;
2898
+ const $metadata = deserializeMetadata(output);
2899
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2906
2900
  response = new KafkaServiceException_1.KafkaServiceException({
2907
- name: parsedBody.code || parsedBody.Code || errorCode,
2901
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2908
2902
  $fault: "client",
2909
- $metadata: deserializeMetadata(output),
2903
+ $metadata,
2910
2904
  });
2911
2905
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2912
2906
  }
@@ -2936,8 +2930,7 @@ const deserializeAws_restJson1UpdateMonitoringCommandError = async (output, cont
2936
2930
  body: await parseBody(output.body, context),
2937
2931
  };
2938
2932
  let response;
2939
- let errorCode = "UnknownError";
2940
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2933
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2941
2934
  switch (errorCode) {
2942
2935
  case "BadRequestException":
2943
2936
  case "com.amazonaws.kafka#BadRequestException":
@@ -2956,10 +2949,12 @@ const deserializeAws_restJson1UpdateMonitoringCommandError = async (output, cont
2956
2949
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2957
2950
  default:
2958
2951
  const parsedBody = parsedOutput.body;
2952
+ const $metadata = deserializeMetadata(output);
2953
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2959
2954
  response = new KafkaServiceException_1.KafkaServiceException({
2960
- name: parsedBody.code || parsedBody.Code || errorCode,
2955
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2961
2956
  $fault: "client",
2962
- $metadata: deserializeMetadata(output),
2957
+ $metadata,
2963
2958
  });
2964
2959
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2965
2960
  }
@@ -2989,8 +2984,7 @@ const deserializeAws_restJson1UpdateSecurityCommandError = async (output, contex
2989
2984
  body: await parseBody(output.body, context),
2990
2985
  };
2991
2986
  let response;
2992
- let errorCode = "UnknownError";
2993
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2987
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2994
2988
  switch (errorCode) {
2995
2989
  case "BadRequestException":
2996
2990
  case "com.amazonaws.kafka#BadRequestException":
@@ -3015,10 +3009,12 @@ const deserializeAws_restJson1UpdateSecurityCommandError = async (output, contex
3015
3009
  throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
3016
3010
  default:
3017
3011
  const parsedBody = parsedOutput.body;
3012
+ const $metadata = deserializeMetadata(output);
3013
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3018
3014
  response = new KafkaServiceException_1.KafkaServiceException({
3019
- name: parsedBody.code || parsedBody.Code || errorCode,
3015
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3020
3016
  $fault: "client",
3021
- $metadata: deserializeMetadata(output),
3017
+ $metadata,
3022
3018
  });
3023
3019
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3024
3020
  }
@@ -3186,267 +3182,232 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
3186
3182
  };
3187
3183
  const serializeAws_restJson1BrokerEBSVolumeInfo = (input, context) => {
3188
3184
  return {
3189
- ...(input.KafkaBrokerNodeId !== undefined &&
3190
- input.KafkaBrokerNodeId !== null && { kafkaBrokerNodeId: input.KafkaBrokerNodeId }),
3191
- ...(input.ProvisionedThroughput !== undefined &&
3192
- input.ProvisionedThroughput !== null && {
3185
+ ...(input.KafkaBrokerNodeId != null && { kafkaBrokerNodeId: input.KafkaBrokerNodeId }),
3186
+ ...(input.ProvisionedThroughput != null && {
3193
3187
  provisionedThroughput: serializeAws_restJson1ProvisionedThroughput(input.ProvisionedThroughput, context),
3194
3188
  }),
3195
- ...(input.VolumeSizeGB !== undefined && input.VolumeSizeGB !== null && { volumeSizeGB: input.VolumeSizeGB }),
3189
+ ...(input.VolumeSizeGB != null && { volumeSizeGB: input.VolumeSizeGB }),
3196
3190
  };
3197
3191
  };
3198
3192
  const serializeAws_restJson1BrokerLogs = (input, context) => {
3199
3193
  return {
3200
- ...(input.CloudWatchLogs !== undefined &&
3201
- input.CloudWatchLogs !== null && {
3194
+ ...(input.CloudWatchLogs != null && {
3202
3195
  cloudWatchLogs: serializeAws_restJson1CloudWatchLogs(input.CloudWatchLogs, context),
3203
3196
  }),
3204
- ...(input.Firehose !== undefined &&
3205
- input.Firehose !== null && { firehose: serializeAws_restJson1Firehose(input.Firehose, context) }),
3206
- ...(input.S3 !== undefined && input.S3 !== null && { s3: serializeAws_restJson1S3(input.S3, context) }),
3197
+ ...(input.Firehose != null && { firehose: serializeAws_restJson1Firehose(input.Firehose, context) }),
3198
+ ...(input.S3 != null && { s3: serializeAws_restJson1S3(input.S3, context) }),
3207
3199
  };
3208
3200
  };
3209
3201
  const serializeAws_restJson1BrokerNodeGroupInfo = (input, context) => {
3210
3202
  return {
3211
- ...(input.BrokerAZDistribution !== undefined &&
3212
- input.BrokerAZDistribution !== null && { brokerAZDistribution: input.BrokerAZDistribution }),
3213
- ...(input.ClientSubnets !== undefined &&
3214
- input.ClientSubnets !== null && {
3203
+ ...(input.BrokerAZDistribution != null && { brokerAZDistribution: input.BrokerAZDistribution }),
3204
+ ...(input.ClientSubnets != null && {
3215
3205
  clientSubnets: serializeAws_restJson1__listOf__string(input.ClientSubnets, context),
3216
3206
  }),
3217
- ...(input.ConnectivityInfo !== undefined &&
3218
- input.ConnectivityInfo !== null && {
3207
+ ...(input.ConnectivityInfo != null && {
3219
3208
  connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
3220
3209
  }),
3221
- ...(input.InstanceType !== undefined && input.InstanceType !== null && { instanceType: input.InstanceType }),
3222
- ...(input.SecurityGroups !== undefined &&
3223
- input.SecurityGroups !== null && {
3210
+ ...(input.InstanceType != null && { instanceType: input.InstanceType }),
3211
+ ...(input.SecurityGroups != null && {
3224
3212
  securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
3225
3213
  }),
3226
- ...(input.StorageInfo !== undefined &&
3227
- input.StorageInfo !== null && { storageInfo: serializeAws_restJson1StorageInfo(input.StorageInfo, context) }),
3214
+ ...(input.StorageInfo != null && { storageInfo: serializeAws_restJson1StorageInfo(input.StorageInfo, context) }),
3228
3215
  };
3229
3216
  };
3230
3217
  const serializeAws_restJson1ClientAuthentication = (input, context) => {
3231
3218
  return {
3232
- ...(input.Sasl !== undefined && input.Sasl !== null && { sasl: serializeAws_restJson1Sasl(input.Sasl, context) }),
3233
- ...(input.Tls !== undefined && input.Tls !== null && { tls: serializeAws_restJson1Tls(input.Tls, context) }),
3234
- ...(input.Unauthenticated !== undefined &&
3235
- input.Unauthenticated !== null && {
3219
+ ...(input.Sasl != null && { sasl: serializeAws_restJson1Sasl(input.Sasl, context) }),
3220
+ ...(input.Tls != null && { tls: serializeAws_restJson1Tls(input.Tls, context) }),
3221
+ ...(input.Unauthenticated != null && {
3236
3222
  unauthenticated: serializeAws_restJson1Unauthenticated(input.Unauthenticated, context),
3237
3223
  }),
3238
3224
  };
3239
3225
  };
3240
3226
  const serializeAws_restJson1CloudWatchLogs = (input, context) => {
3241
3227
  return {
3242
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3243
- ...(input.LogGroup !== undefined && input.LogGroup !== null && { logGroup: input.LogGroup }),
3228
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3229
+ ...(input.LogGroup != null && { logGroup: input.LogGroup }),
3244
3230
  };
3245
3231
  };
3246
3232
  const serializeAws_restJson1ConfigurationInfo = (input, context) => {
3247
3233
  return {
3248
- ...(input.Arn !== undefined && input.Arn !== null && { arn: input.Arn }),
3249
- ...(input.Revision !== undefined && input.Revision !== null && { revision: input.Revision }),
3234
+ ...(input.Arn != null && { arn: input.Arn }),
3235
+ ...(input.Revision != null && { revision: input.Revision }),
3250
3236
  };
3251
3237
  };
3252
3238
  const serializeAws_restJson1ConnectivityInfo = (input, context) => {
3253
3239
  return {
3254
- ...(input.PublicAccess !== undefined &&
3255
- input.PublicAccess !== null && { publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context) }),
3240
+ ...(input.PublicAccess != null && {
3241
+ publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context),
3242
+ }),
3256
3243
  };
3257
3244
  };
3258
3245
  const serializeAws_restJson1EBSStorageInfo = (input, context) => {
3259
3246
  return {
3260
- ...(input.ProvisionedThroughput !== undefined &&
3261
- input.ProvisionedThroughput !== null && {
3247
+ ...(input.ProvisionedThroughput != null && {
3262
3248
  provisionedThroughput: serializeAws_restJson1ProvisionedThroughput(input.ProvisionedThroughput, context),
3263
3249
  }),
3264
- ...(input.VolumeSize !== undefined && input.VolumeSize !== null && { volumeSize: input.VolumeSize }),
3250
+ ...(input.VolumeSize != null && { volumeSize: input.VolumeSize }),
3265
3251
  };
3266
3252
  };
3267
3253
  const serializeAws_restJson1EncryptionAtRest = (input, context) => {
3268
3254
  return {
3269
- ...(input.DataVolumeKMSKeyId !== undefined &&
3270
- input.DataVolumeKMSKeyId !== null && { dataVolumeKMSKeyId: input.DataVolumeKMSKeyId }),
3255
+ ...(input.DataVolumeKMSKeyId != null && { dataVolumeKMSKeyId: input.DataVolumeKMSKeyId }),
3271
3256
  };
3272
3257
  };
3273
3258
  const serializeAws_restJson1EncryptionInfo = (input, context) => {
3274
3259
  return {
3275
- ...(input.EncryptionAtRest !== undefined &&
3276
- input.EncryptionAtRest !== null && {
3260
+ ...(input.EncryptionAtRest != null && {
3277
3261
  encryptionAtRest: serializeAws_restJson1EncryptionAtRest(input.EncryptionAtRest, context),
3278
3262
  }),
3279
- ...(input.EncryptionInTransit !== undefined &&
3280
- input.EncryptionInTransit !== null && {
3263
+ ...(input.EncryptionInTransit != null && {
3281
3264
  encryptionInTransit: serializeAws_restJson1EncryptionInTransit(input.EncryptionInTransit, context),
3282
3265
  }),
3283
3266
  };
3284
3267
  };
3285
3268
  const serializeAws_restJson1EncryptionInTransit = (input, context) => {
3286
3269
  return {
3287
- ...(input.ClientBroker !== undefined && input.ClientBroker !== null && { clientBroker: input.ClientBroker }),
3288
- ...(input.InCluster !== undefined && input.InCluster !== null && { inCluster: input.InCluster }),
3270
+ ...(input.ClientBroker != null && { clientBroker: input.ClientBroker }),
3271
+ ...(input.InCluster != null && { inCluster: input.InCluster }),
3289
3272
  };
3290
3273
  };
3291
3274
  const serializeAws_restJson1Firehose = (input, context) => {
3292
3275
  return {
3293
- ...(input.DeliveryStream !== undefined &&
3294
- input.DeliveryStream !== null && { deliveryStream: input.DeliveryStream }),
3295
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3276
+ ...(input.DeliveryStream != null && { deliveryStream: input.DeliveryStream }),
3277
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3296
3278
  };
3297
3279
  };
3298
3280
  const serializeAws_restJson1Iam = (input, context) => {
3299
3281
  return {
3300
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3282
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3301
3283
  };
3302
3284
  };
3303
3285
  const serializeAws_restJson1JmxExporterInfo = (input, context) => {
3304
3286
  return {
3305
- ...(input.EnabledInBroker !== undefined &&
3306
- input.EnabledInBroker !== null && { enabledInBroker: input.EnabledInBroker }),
3287
+ ...(input.EnabledInBroker != null && { enabledInBroker: input.EnabledInBroker }),
3307
3288
  };
3308
3289
  };
3309
3290
  const serializeAws_restJson1LoggingInfo = (input, context) => {
3310
3291
  return {
3311
- ...(input.BrokerLogs !== undefined &&
3312
- input.BrokerLogs !== null && { brokerLogs: serializeAws_restJson1BrokerLogs(input.BrokerLogs, context) }),
3292
+ ...(input.BrokerLogs != null && { brokerLogs: serializeAws_restJson1BrokerLogs(input.BrokerLogs, context) }),
3313
3293
  };
3314
3294
  };
3315
3295
  const serializeAws_restJson1NodeExporterInfo = (input, context) => {
3316
3296
  return {
3317
- ...(input.EnabledInBroker !== undefined &&
3318
- input.EnabledInBroker !== null && { enabledInBroker: input.EnabledInBroker }),
3297
+ ...(input.EnabledInBroker != null && { enabledInBroker: input.EnabledInBroker }),
3319
3298
  };
3320
3299
  };
3321
3300
  const serializeAws_restJson1OpenMonitoringInfo = (input, context) => {
3322
3301
  return {
3323
- ...(input.Prometheus !== undefined &&
3324
- input.Prometheus !== null && { prometheus: serializeAws_restJson1PrometheusInfo(input.Prometheus, context) }),
3302
+ ...(input.Prometheus != null && { prometheus: serializeAws_restJson1PrometheusInfo(input.Prometheus, context) }),
3325
3303
  };
3326
3304
  };
3327
3305
  const serializeAws_restJson1PrometheusInfo = (input, context) => {
3328
3306
  return {
3329
- ...(input.JmxExporter !== undefined &&
3330
- input.JmxExporter !== null && { jmxExporter: serializeAws_restJson1JmxExporterInfo(input.JmxExporter, context) }),
3331
- ...(input.NodeExporter !== undefined &&
3332
- input.NodeExporter !== null && {
3307
+ ...(input.JmxExporter != null && {
3308
+ jmxExporter: serializeAws_restJson1JmxExporterInfo(input.JmxExporter, context),
3309
+ }),
3310
+ ...(input.NodeExporter != null && {
3333
3311
  nodeExporter: serializeAws_restJson1NodeExporterInfo(input.NodeExporter, context),
3334
3312
  }),
3335
3313
  };
3336
3314
  };
3337
3315
  const serializeAws_restJson1ProvisionedRequest = (input, context) => {
3338
3316
  return {
3339
- ...(input.BrokerNodeGroupInfo !== undefined &&
3340
- input.BrokerNodeGroupInfo !== null && {
3317
+ ...(input.BrokerNodeGroupInfo != null && {
3341
3318
  brokerNodeGroupInfo: serializeAws_restJson1BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
3342
3319
  }),
3343
- ...(input.ClientAuthentication !== undefined &&
3344
- input.ClientAuthentication !== null && {
3320
+ ...(input.ClientAuthentication != null && {
3345
3321
  clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
3346
3322
  }),
3347
- ...(input.ConfigurationInfo !== undefined &&
3348
- input.ConfigurationInfo !== null && {
3323
+ ...(input.ConfigurationInfo != null && {
3349
3324
  configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
3350
3325
  }),
3351
- ...(input.EncryptionInfo !== undefined &&
3352
- input.EncryptionInfo !== null && {
3326
+ ...(input.EncryptionInfo != null && {
3353
3327
  encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
3354
3328
  }),
3355
- ...(input.EnhancedMonitoring !== undefined &&
3356
- input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring }),
3357
- ...(input.KafkaVersion !== undefined && input.KafkaVersion !== null && { kafkaVersion: input.KafkaVersion }),
3358
- ...(input.LoggingInfo !== undefined &&
3359
- input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) }),
3360
- ...(input.NumberOfBrokerNodes !== undefined &&
3361
- input.NumberOfBrokerNodes !== null && { numberOfBrokerNodes: input.NumberOfBrokerNodes }),
3362
- ...(input.OpenMonitoring !== undefined &&
3363
- input.OpenMonitoring !== null && {
3329
+ ...(input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring }),
3330
+ ...(input.KafkaVersion != null && { kafkaVersion: input.KafkaVersion }),
3331
+ ...(input.LoggingInfo != null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) }),
3332
+ ...(input.NumberOfBrokerNodes != null && { numberOfBrokerNodes: input.NumberOfBrokerNodes }),
3333
+ ...(input.OpenMonitoring != null && {
3364
3334
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
3365
3335
  }),
3366
3336
  };
3367
3337
  };
3368
3338
  const serializeAws_restJson1ProvisionedThroughput = (input, context) => {
3369
3339
  return {
3370
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3371
- ...(input.VolumeThroughput !== undefined &&
3372
- input.VolumeThroughput !== null && { volumeThroughput: input.VolumeThroughput }),
3340
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3341
+ ...(input.VolumeThroughput != null && { volumeThroughput: input.VolumeThroughput }),
3373
3342
  };
3374
3343
  };
3375
3344
  const serializeAws_restJson1PublicAccess = (input, context) => {
3376
3345
  return {
3377
- ...(input.Type !== undefined && input.Type !== null && { type: input.Type }),
3346
+ ...(input.Type != null && { type: input.Type }),
3378
3347
  };
3379
3348
  };
3380
3349
  const serializeAws_restJson1S3 = (input, context) => {
3381
3350
  return {
3382
- ...(input.Bucket !== undefined && input.Bucket !== null && { bucket: input.Bucket }),
3383
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3384
- ...(input.Prefix !== undefined && input.Prefix !== null && { prefix: input.Prefix }),
3351
+ ...(input.Bucket != null && { bucket: input.Bucket }),
3352
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3353
+ ...(input.Prefix != null && { prefix: input.Prefix }),
3385
3354
  };
3386
3355
  };
3387
3356
  const serializeAws_restJson1Sasl = (input, context) => {
3388
3357
  return {
3389
- ...(input.Iam !== undefined && input.Iam !== null && { iam: serializeAws_restJson1Iam(input.Iam, context) }),
3390
- ...(input.Scram !== undefined &&
3391
- input.Scram !== null && { scram: serializeAws_restJson1Scram(input.Scram, context) }),
3358
+ ...(input.Iam != null && { iam: serializeAws_restJson1Iam(input.Iam, context) }),
3359
+ ...(input.Scram != null && { scram: serializeAws_restJson1Scram(input.Scram, context) }),
3392
3360
  };
3393
3361
  };
3394
3362
  const serializeAws_restJson1Scram = (input, context) => {
3395
3363
  return {
3396
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3364
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3397
3365
  };
3398
3366
  };
3399
3367
  const serializeAws_restJson1ServerlessClientAuthentication = (input, context) => {
3400
3368
  return {
3401
- ...(input.Sasl !== undefined &&
3402
- input.Sasl !== null && { sasl: serializeAws_restJson1ServerlessSasl(input.Sasl, context) }),
3369
+ ...(input.Sasl != null && { sasl: serializeAws_restJson1ServerlessSasl(input.Sasl, context) }),
3403
3370
  };
3404
3371
  };
3405
3372
  const serializeAws_restJson1ServerlessRequest = (input, context) => {
3406
3373
  return {
3407
- ...(input.ClientAuthentication !== undefined &&
3408
- input.ClientAuthentication !== null && {
3374
+ ...(input.ClientAuthentication != null && {
3409
3375
  clientAuthentication: serializeAws_restJson1ServerlessClientAuthentication(input.ClientAuthentication, context),
3410
3376
  }),
3411
- ...(input.VpcConfigs !== undefined &&
3412
- input.VpcConfigs !== null && { vpcConfigs: serializeAws_restJson1__listOfVpcConfig(input.VpcConfigs, context) }),
3377
+ ...(input.VpcConfigs != null && { vpcConfigs: serializeAws_restJson1__listOfVpcConfig(input.VpcConfigs, context) }),
3413
3378
  };
3414
3379
  };
3415
3380
  const serializeAws_restJson1ServerlessSasl = (input, context) => {
3416
3381
  return {
3417
- ...(input.Iam !== undefined && input.Iam !== null && { iam: serializeAws_restJson1Iam(input.Iam, context) }),
3382
+ ...(input.Iam != null && { iam: serializeAws_restJson1Iam(input.Iam, context) }),
3418
3383
  };
3419
3384
  };
3420
3385
  const serializeAws_restJson1StorageInfo = (input, context) => {
3421
3386
  return {
3422
- ...(input.EbsStorageInfo !== undefined &&
3423
- input.EbsStorageInfo !== null && {
3387
+ ...(input.EbsStorageInfo != null && {
3424
3388
  ebsStorageInfo: serializeAws_restJson1EBSStorageInfo(input.EbsStorageInfo, context),
3425
3389
  }),
3426
3390
  };
3427
3391
  };
3428
3392
  const serializeAws_restJson1Tls = (input, context) => {
3429
3393
  return {
3430
- ...(input.CertificateAuthorityArnList !== undefined &&
3431
- input.CertificateAuthorityArnList !== null && {
3394
+ ...(input.CertificateAuthorityArnList != null && {
3432
3395
  certificateAuthorityArnList: serializeAws_restJson1__listOf__string(input.CertificateAuthorityArnList, context),
3433
3396
  }),
3434
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3397
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3435
3398
  };
3436
3399
  };
3437
3400
  const serializeAws_restJson1Unauthenticated = (input, context) => {
3438
3401
  return {
3439
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3402
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3440
3403
  };
3441
3404
  };
3442
3405
  const serializeAws_restJson1VpcConfig = (input, context) => {
3443
3406
  return {
3444
- ...(input.SecurityGroupIds !== undefined &&
3445
- input.SecurityGroupIds !== null && {
3407
+ ...(input.SecurityGroupIds != null && {
3446
3408
  securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
3447
3409
  }),
3448
- ...(input.SubnetIds !== undefined &&
3449
- input.SubnetIds !== null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }),
3410
+ ...(input.SubnetIds != null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }),
3450
3411
  };
3451
3412
  };
3452
3413
  const deserializeAws_restJson1__listOf__string = (output, context) => {
@@ -3606,7 +3567,7 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
3606
3567
  const deserializeAws_restJson1BrokerEBSVolumeInfo = (output, context) => {
3607
3568
  return {
3608
3569
  KafkaBrokerNodeId: (0, smithy_client_1.expectString)(output.kafkaBrokerNodeId),
3609
- ProvisionedThroughput: output.provisionedThroughput !== undefined && output.provisionedThroughput !== null
3570
+ ProvisionedThroughput: output.provisionedThroughput != null
3610
3571
  ? deserializeAws_restJson1ProvisionedThroughput(output.provisionedThroughput, context)
3611
3572
  : undefined,
3612
3573
  VolumeSizeGB: (0, smithy_client_1.expectInt32)(output.volumeSizeGB),
@@ -3614,31 +3575,27 @@ const deserializeAws_restJson1BrokerEBSVolumeInfo = (output, context) => {
3614
3575
  };
3615
3576
  const deserializeAws_restJson1BrokerLogs = (output, context) => {
3616
3577
  return {
3617
- CloudWatchLogs: output.cloudWatchLogs !== undefined && output.cloudWatchLogs !== null
3578
+ CloudWatchLogs: output.cloudWatchLogs != null
3618
3579
  ? deserializeAws_restJson1CloudWatchLogs(output.cloudWatchLogs, context)
3619
3580
  : undefined,
3620
- Firehose: output.firehose !== undefined && output.firehose !== null
3621
- ? deserializeAws_restJson1Firehose(output.firehose, context)
3622
- : undefined,
3623
- S3: output.s3 !== undefined && output.s3 !== null ? deserializeAws_restJson1S3(output.s3, context) : undefined,
3581
+ Firehose: output.firehose != null ? deserializeAws_restJson1Firehose(output.firehose, context) : undefined,
3582
+ S3: output.s3 != null ? deserializeAws_restJson1S3(output.s3, context) : undefined,
3624
3583
  };
3625
3584
  };
3626
3585
  const deserializeAws_restJson1BrokerNodeGroupInfo = (output, context) => {
3627
3586
  return {
3628
3587
  BrokerAZDistribution: (0, smithy_client_1.expectString)(output.brokerAZDistribution),
3629
- ClientSubnets: output.clientSubnets !== undefined && output.clientSubnets !== null
3588
+ ClientSubnets: output.clientSubnets != null
3630
3589
  ? deserializeAws_restJson1__listOf__string(output.clientSubnets, context)
3631
3590
  : undefined,
3632
- ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
3591
+ ConnectivityInfo: output.connectivityInfo != null
3633
3592
  ? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
3634
3593
  : undefined,
3635
3594
  InstanceType: (0, smithy_client_1.expectString)(output.instanceType),
3636
- SecurityGroups: output.securityGroups !== undefined && output.securityGroups !== null
3595
+ SecurityGroups: output.securityGroups != null
3637
3596
  ? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
3638
3597
  : undefined,
3639
- StorageInfo: output.storageInfo !== undefined && output.storageInfo !== null
3640
- ? deserializeAws_restJson1StorageInfo(output.storageInfo, context)
3641
- : undefined,
3598
+ StorageInfo: output.storageInfo != null ? deserializeAws_restJson1StorageInfo(output.storageInfo, context) : undefined,
3642
3599
  };
3643
3600
  };
3644
3601
  const deserializeAws_restJson1BrokerNodeInfo = (output, context) => {
@@ -3647,12 +3604,10 @@ const deserializeAws_restJson1BrokerNodeInfo = (output, context) => {
3647
3604
  BrokerId: (0, smithy_client_1.limitedParseDouble)(output.brokerId),
3648
3605
  ClientSubnet: (0, smithy_client_1.expectString)(output.clientSubnet),
3649
3606
  ClientVpcIpAddress: (0, smithy_client_1.expectString)(output.clientVpcIpAddress),
3650
- CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
3607
+ CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
3651
3608
  ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
3652
3609
  : undefined,
3653
- Endpoints: output.endpoints !== undefined && output.endpoints !== null
3654
- ? deserializeAws_restJson1__listOf__string(output.endpoints, context)
3655
- : undefined,
3610
+ Endpoints: output.endpoints != null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined,
3656
3611
  };
3657
3612
  };
3658
3613
  const deserializeAws_restJson1BrokerSoftwareInfo = (output, context) => {
@@ -3664,11 +3619,9 @@ const deserializeAws_restJson1BrokerSoftwareInfo = (output, context) => {
3664
3619
  };
3665
3620
  const deserializeAws_restJson1ClientAuthentication = (output, context) => {
3666
3621
  return {
3667
- Sasl: output.sasl !== undefined && output.sasl !== null
3668
- ? deserializeAws_restJson1Sasl(output.sasl, context)
3669
- : undefined,
3670
- Tls: output.tls !== undefined && output.tls !== null ? deserializeAws_restJson1Tls(output.tls, context) : undefined,
3671
- Unauthenticated: output.unauthenticated !== undefined && output.unauthenticated !== null
3622
+ Sasl: output.sasl != null ? deserializeAws_restJson1Sasl(output.sasl, context) : undefined,
3623
+ Tls: output.tls != null ? deserializeAws_restJson1Tls(output.tls, context) : undefined,
3624
+ Unauthenticated: output.unauthenticated != null
3672
3625
  ? deserializeAws_restJson1Unauthenticated(output.unauthenticated, context)
3673
3626
  : undefined,
3674
3627
  };
@@ -3685,61 +3638,43 @@ const deserializeAws_restJson1Cluster = (output, context) => {
3685
3638
  ClusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
3686
3639
  ClusterName: (0, smithy_client_1.expectString)(output.clusterName),
3687
3640
  ClusterType: (0, smithy_client_1.expectString)(output.clusterType),
3688
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3689
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3690
- : undefined,
3641
+ CreationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
3691
3642
  CurrentVersion: (0, smithy_client_1.expectString)(output.currentVersion),
3692
- Provisioned: output.provisioned !== undefined && output.provisioned !== null
3693
- ? deserializeAws_restJson1Provisioned(output.provisioned, context)
3694
- : undefined,
3695
- Serverless: output.serverless !== undefined && output.serverless !== null
3696
- ? deserializeAws_restJson1Serverless(output.serverless, context)
3697
- : undefined,
3643
+ Provisioned: output.provisioned != null ? deserializeAws_restJson1Provisioned(output.provisioned, context) : undefined,
3644
+ Serverless: output.serverless != null ? deserializeAws_restJson1Serverless(output.serverless, context) : undefined,
3698
3645
  State: (0, smithy_client_1.expectString)(output.state),
3699
- StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
3700
- ? deserializeAws_restJson1StateInfo(output.stateInfo, context)
3701
- : undefined,
3702
- Tags: output.tags !== undefined && output.tags !== null
3703
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
3704
- : undefined,
3646
+ StateInfo: output.stateInfo != null ? deserializeAws_restJson1StateInfo(output.stateInfo, context) : undefined,
3647
+ Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
3705
3648
  };
3706
3649
  };
3707
3650
  const deserializeAws_restJson1ClusterInfo = (output, context) => {
3708
3651
  return {
3709
3652
  ActiveOperationArn: (0, smithy_client_1.expectString)(output.activeOperationArn),
3710
- BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
3653
+ BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null
3711
3654
  ? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
3712
3655
  : undefined,
3713
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
3656
+ ClientAuthentication: output.clientAuthentication != null
3714
3657
  ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
3715
3658
  : undefined,
3716
3659
  ClusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
3717
3660
  ClusterName: (0, smithy_client_1.expectString)(output.clusterName),
3718
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3719
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3720
- : undefined,
3721
- CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
3661
+ CreationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
3662
+ CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
3722
3663
  ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
3723
3664
  : undefined,
3724
3665
  CurrentVersion: (0, smithy_client_1.expectString)(output.currentVersion),
3725
- EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
3666
+ EncryptionInfo: output.encryptionInfo != null
3726
3667
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
3727
3668
  : undefined,
3728
3669
  EnhancedMonitoring: (0, smithy_client_1.expectString)(output.enhancedMonitoring),
3729
- LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
3730
- ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
3731
- : undefined,
3670
+ LoggingInfo: output.loggingInfo != null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined,
3732
3671
  NumberOfBrokerNodes: (0, smithy_client_1.expectInt32)(output.numberOfBrokerNodes),
3733
- OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
3672
+ OpenMonitoring: output.openMonitoring != null
3734
3673
  ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
3735
3674
  : undefined,
3736
3675
  State: (0, smithy_client_1.expectString)(output.state),
3737
- StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
3738
- ? deserializeAws_restJson1StateInfo(output.stateInfo, context)
3739
- : undefined,
3740
- Tags: output.tags !== undefined && output.tags !== null
3741
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
3742
- : undefined,
3676
+ StateInfo: output.stateInfo != null ? deserializeAws_restJson1StateInfo(output.stateInfo, context) : undefined,
3677
+ Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
3743
3678
  ZookeeperConnectString: (0, smithy_client_1.expectString)(output.zookeeperConnectString),
3744
3679
  ZookeeperConnectStringTls: (0, smithy_client_1.expectString)(output.zookeeperConnectStringTls),
3745
3680
  };
@@ -3748,34 +3683,26 @@ const deserializeAws_restJson1ClusterOperationInfo = (output, context) => {
3748
3683
  return {
3749
3684
  ClientRequestId: (0, smithy_client_1.expectString)(output.clientRequestId),
3750
3685
  ClusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
3751
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3752
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3753
- : undefined,
3754
- EndTime: output.endTime !== undefined && output.endTime !== null
3755
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
3756
- : undefined,
3757
- ErrorInfo: output.errorInfo !== undefined && output.errorInfo !== null
3758
- ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context)
3759
- : undefined,
3686
+ CreationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
3687
+ EndTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime)) : undefined,
3688
+ ErrorInfo: output.errorInfo != null ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context) : undefined,
3760
3689
  OperationArn: (0, smithy_client_1.expectString)(output.operationArn),
3761
3690
  OperationState: (0, smithy_client_1.expectString)(output.operationState),
3762
- OperationSteps: output.operationSteps !== undefined && output.operationSteps !== null
3691
+ OperationSteps: output.operationSteps != null
3763
3692
  ? deserializeAws_restJson1__listOfClusterOperationStep(output.operationSteps, context)
3764
3693
  : undefined,
3765
3694
  OperationType: (0, smithy_client_1.expectString)(output.operationType),
3766
- SourceClusterInfo: output.sourceClusterInfo !== undefined && output.sourceClusterInfo !== null
3695
+ SourceClusterInfo: output.sourceClusterInfo != null
3767
3696
  ? deserializeAws_restJson1MutableClusterInfo(output.sourceClusterInfo, context)
3768
3697
  : undefined,
3769
- TargetClusterInfo: output.targetClusterInfo !== undefined && output.targetClusterInfo !== null
3698
+ TargetClusterInfo: output.targetClusterInfo != null
3770
3699
  ? deserializeAws_restJson1MutableClusterInfo(output.targetClusterInfo, context)
3771
3700
  : undefined,
3772
3701
  };
3773
3702
  };
3774
3703
  const deserializeAws_restJson1ClusterOperationStep = (output, context) => {
3775
3704
  return {
3776
- StepInfo: output.stepInfo !== undefined && output.stepInfo !== null
3777
- ? deserializeAws_restJson1ClusterOperationStepInfo(output.stepInfo, context)
3778
- : undefined,
3705
+ StepInfo: output.stepInfo != null ? deserializeAws_restJson1ClusterOperationStepInfo(output.stepInfo, context) : undefined,
3779
3706
  StepName: (0, smithy_client_1.expectString)(output.stepName),
3780
3707
  };
3781
3708
  };
@@ -3787,7 +3714,7 @@ const deserializeAws_restJson1ClusterOperationStepInfo = (output, context) => {
3787
3714
  const deserializeAws_restJson1CompatibleKafkaVersion = (output, context) => {
3788
3715
  return {
3789
3716
  SourceVersion: (0, smithy_client_1.expectString)(output.sourceVersion),
3790
- TargetVersions: output.targetVersions !== undefined && output.targetVersions !== null
3717
+ TargetVersions: output.targetVersions != null
3791
3718
  ? deserializeAws_restJson1__listOf__string(output.targetVersions, context)
3792
3719
  : undefined,
3793
3720
  };
@@ -3795,14 +3722,12 @@ const deserializeAws_restJson1CompatibleKafkaVersion = (output, context) => {
3795
3722
  const deserializeAws_restJson1Configuration = (output, context) => {
3796
3723
  return {
3797
3724
  Arn: (0, smithy_client_1.expectString)(output.arn),
3798
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3799
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3800
- : undefined,
3725
+ CreationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
3801
3726
  Description: (0, smithy_client_1.expectString)(output.description),
3802
- KafkaVersions: output.kafkaVersions !== undefined && output.kafkaVersions !== null
3727
+ KafkaVersions: output.kafkaVersions != null
3803
3728
  ? deserializeAws_restJson1__listOf__string(output.kafkaVersions, context)
3804
3729
  : undefined,
3805
- LatestRevision: output.latestRevision !== undefined && output.latestRevision !== null
3730
+ LatestRevision: output.latestRevision != null
3806
3731
  ? deserializeAws_restJson1ConfigurationRevision(output.latestRevision, context)
3807
3732
  : undefined,
3808
3733
  Name: (0, smithy_client_1.expectString)(output.name),
@@ -3817,23 +3742,19 @@ const deserializeAws_restJson1ConfigurationInfo = (output, context) => {
3817
3742
  };
3818
3743
  const deserializeAws_restJson1ConfigurationRevision = (output, context) => {
3819
3744
  return {
3820
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3821
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3822
- : undefined,
3745
+ CreationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
3823
3746
  Description: (0, smithy_client_1.expectString)(output.description),
3824
3747
  Revision: (0, smithy_client_1.expectLong)(output.revision),
3825
3748
  };
3826
3749
  };
3827
3750
  const deserializeAws_restJson1ConnectivityInfo = (output, context) => {
3828
3751
  return {
3829
- PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
3830
- ? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
3831
- : undefined,
3752
+ PublicAccess: output.publicAccess != null ? deserializeAws_restJson1PublicAccess(output.publicAccess, context) : undefined,
3832
3753
  };
3833
3754
  };
3834
3755
  const deserializeAws_restJson1EBSStorageInfo = (output, context) => {
3835
3756
  return {
3836
- ProvisionedThroughput: output.provisionedThroughput !== undefined && output.provisionedThroughput !== null
3757
+ ProvisionedThroughput: output.provisionedThroughput != null
3837
3758
  ? deserializeAws_restJson1ProvisionedThroughput(output.provisionedThroughput, context)
3838
3759
  : undefined,
3839
3760
  VolumeSize: (0, smithy_client_1.expectInt32)(output.volumeSize),
@@ -3846,10 +3767,10 @@ const deserializeAws_restJson1EncryptionAtRest = (output, context) => {
3846
3767
  };
3847
3768
  const deserializeAws_restJson1EncryptionInfo = (output, context) => {
3848
3769
  return {
3849
- EncryptionAtRest: output.encryptionAtRest !== undefined && output.encryptionAtRest !== null
3770
+ EncryptionAtRest: output.encryptionAtRest != null
3850
3771
  ? deserializeAws_restJson1EncryptionAtRest(output.encryptionAtRest, context)
3851
3772
  : undefined,
3852
- EncryptionInTransit: output.encryptionInTransit !== undefined && output.encryptionInTransit !== null
3773
+ EncryptionInTransit: output.encryptionInTransit != null
3853
3774
  ? deserializeAws_restJson1EncryptionInTransit(output.encryptionInTransit, context)
3854
3775
  : undefined,
3855
3776
  };
@@ -3895,36 +3816,32 @@ const deserializeAws_restJson1KafkaVersion = (output, context) => {
3895
3816
  };
3896
3817
  const deserializeAws_restJson1LoggingInfo = (output, context) => {
3897
3818
  return {
3898
- BrokerLogs: output.brokerLogs !== undefined && output.brokerLogs !== null
3899
- ? deserializeAws_restJson1BrokerLogs(output.brokerLogs, context)
3900
- : undefined,
3819
+ BrokerLogs: output.brokerLogs != null ? deserializeAws_restJson1BrokerLogs(output.brokerLogs, context) : undefined,
3901
3820
  };
3902
3821
  };
3903
3822
  const deserializeAws_restJson1MutableClusterInfo = (output, context) => {
3904
3823
  return {
3905
- BrokerEBSVolumeInfo: output.brokerEBSVolumeInfo !== undefined && output.brokerEBSVolumeInfo !== null
3824
+ BrokerEBSVolumeInfo: output.brokerEBSVolumeInfo != null
3906
3825
  ? deserializeAws_restJson1__listOfBrokerEBSVolumeInfo(output.brokerEBSVolumeInfo, context)
3907
3826
  : undefined,
3908
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
3827
+ ClientAuthentication: output.clientAuthentication != null
3909
3828
  ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
3910
3829
  : undefined,
3911
- ConfigurationInfo: output.configurationInfo !== undefined && output.configurationInfo !== null
3830
+ ConfigurationInfo: output.configurationInfo != null
3912
3831
  ? deserializeAws_restJson1ConfigurationInfo(output.configurationInfo, context)
3913
3832
  : undefined,
3914
- ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
3833
+ ConnectivityInfo: output.connectivityInfo != null
3915
3834
  ? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
3916
3835
  : undefined,
3917
- EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
3836
+ EncryptionInfo: output.encryptionInfo != null
3918
3837
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
3919
3838
  : undefined,
3920
3839
  EnhancedMonitoring: (0, smithy_client_1.expectString)(output.enhancedMonitoring),
3921
3840
  InstanceType: (0, smithy_client_1.expectString)(output.instanceType),
3922
3841
  KafkaVersion: (0, smithy_client_1.expectString)(output.kafkaVersion),
3923
- LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
3924
- ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
3925
- : undefined,
3842
+ LoggingInfo: output.loggingInfo != null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined,
3926
3843
  NumberOfBrokerNodes: (0, smithy_client_1.expectInt32)(output.numberOfBrokerNodes),
3927
- OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
3844
+ OpenMonitoring: output.openMonitoring != null
3928
3845
  ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
3929
3846
  : undefined,
3930
3847
  };
@@ -3942,71 +3859,57 @@ const deserializeAws_restJson1NodeExporterInfo = (output, context) => {
3942
3859
  const deserializeAws_restJson1NodeInfo = (output, context) => {
3943
3860
  return {
3944
3861
  AddedToClusterTime: (0, smithy_client_1.expectString)(output.addedToClusterTime),
3945
- BrokerNodeInfo: output.brokerNodeInfo !== undefined && output.brokerNodeInfo !== null
3862
+ BrokerNodeInfo: output.brokerNodeInfo != null
3946
3863
  ? deserializeAws_restJson1BrokerNodeInfo(output.brokerNodeInfo, context)
3947
3864
  : undefined,
3948
3865
  InstanceType: (0, smithy_client_1.expectString)(output.instanceType),
3949
3866
  NodeARN: (0, smithy_client_1.expectString)(output.nodeARN),
3950
3867
  NodeType: (0, smithy_client_1.expectString)(output.nodeType),
3951
- ZookeeperNodeInfo: output.zookeeperNodeInfo !== undefined && output.zookeeperNodeInfo !== null
3868
+ ZookeeperNodeInfo: output.zookeeperNodeInfo != null
3952
3869
  ? deserializeAws_restJson1ZookeeperNodeInfo(output.zookeeperNodeInfo, context)
3953
3870
  : undefined,
3954
3871
  };
3955
3872
  };
3956
3873
  const deserializeAws_restJson1OpenMonitoring = (output, context) => {
3957
3874
  return {
3958
- Prometheus: output.prometheus !== undefined && output.prometheus !== null
3959
- ? deserializeAws_restJson1Prometheus(output.prometheus, context)
3960
- : undefined,
3875
+ Prometheus: output.prometheus != null ? deserializeAws_restJson1Prometheus(output.prometheus, context) : undefined,
3961
3876
  };
3962
3877
  };
3963
3878
  const deserializeAws_restJson1OpenMonitoringInfo = (output, context) => {
3964
3879
  return {
3965
- Prometheus: output.prometheus !== undefined && output.prometheus !== null
3966
- ? deserializeAws_restJson1PrometheusInfo(output.prometheus, context)
3967
- : undefined,
3880
+ Prometheus: output.prometheus != null ? deserializeAws_restJson1PrometheusInfo(output.prometheus, context) : undefined,
3968
3881
  };
3969
3882
  };
3970
3883
  const deserializeAws_restJson1Prometheus = (output, context) => {
3971
3884
  return {
3972
- JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
3973
- ? deserializeAws_restJson1JmxExporter(output.jmxExporter, context)
3974
- : undefined,
3975
- NodeExporter: output.nodeExporter !== undefined && output.nodeExporter !== null
3976
- ? deserializeAws_restJson1NodeExporter(output.nodeExporter, context)
3977
- : undefined,
3885
+ JmxExporter: output.jmxExporter != null ? deserializeAws_restJson1JmxExporter(output.jmxExporter, context) : undefined,
3886
+ NodeExporter: output.nodeExporter != null ? deserializeAws_restJson1NodeExporter(output.nodeExporter, context) : undefined,
3978
3887
  };
3979
3888
  };
3980
3889
  const deserializeAws_restJson1PrometheusInfo = (output, context) => {
3981
3890
  return {
3982
- JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
3983
- ? deserializeAws_restJson1JmxExporterInfo(output.jmxExporter, context)
3984
- : undefined,
3985
- NodeExporter: output.nodeExporter !== undefined && output.nodeExporter !== null
3986
- ? deserializeAws_restJson1NodeExporterInfo(output.nodeExporter, context)
3987
- : undefined,
3891
+ JmxExporter: output.jmxExporter != null ? deserializeAws_restJson1JmxExporterInfo(output.jmxExporter, context) : undefined,
3892
+ NodeExporter: output.nodeExporter != null ? deserializeAws_restJson1NodeExporterInfo(output.nodeExporter, context) : undefined,
3988
3893
  };
3989
3894
  };
3990
3895
  const deserializeAws_restJson1Provisioned = (output, context) => {
3991
3896
  return {
3992
- BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
3897
+ BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null
3993
3898
  ? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
3994
3899
  : undefined,
3995
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
3900
+ ClientAuthentication: output.clientAuthentication != null
3996
3901
  ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
3997
3902
  : undefined,
3998
- CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
3903
+ CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
3999
3904
  ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
4000
3905
  : undefined,
4001
- EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
3906
+ EncryptionInfo: output.encryptionInfo != null
4002
3907
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
4003
3908
  : undefined,
4004
3909
  EnhancedMonitoring: (0, smithy_client_1.expectString)(output.enhancedMonitoring),
4005
- LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
4006
- ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
4007
- : undefined,
3910
+ LoggingInfo: output.loggingInfo != null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined,
4008
3911
  NumberOfBrokerNodes: (0, smithy_client_1.expectInt32)(output.numberOfBrokerNodes),
4009
- OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
3912
+ OpenMonitoring: output.openMonitoring != null
4010
3913
  ? deserializeAws_restJson1OpenMonitoringInfo(output.openMonitoring, context)
4011
3914
  : undefined,
4012
3915
  ZookeeperConnectString: (0, smithy_client_1.expectString)(output.zookeeperConnectString),
@@ -4033,10 +3936,8 @@ const deserializeAws_restJson1S3 = (output, context) => {
4033
3936
  };
4034
3937
  const deserializeAws_restJson1Sasl = (output, context) => {
4035
3938
  return {
4036
- Iam: output.iam !== undefined && output.iam !== null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
4037
- Scram: output.scram !== undefined && output.scram !== null
4038
- ? deserializeAws_restJson1Scram(output.scram, context)
4039
- : undefined,
3939
+ Iam: output.iam != null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
3940
+ Scram: output.scram != null ? deserializeAws_restJson1Scram(output.scram, context) : undefined,
4040
3941
  };
4041
3942
  };
4042
3943
  const deserializeAws_restJson1Scram = (output, context) => {
@@ -4046,24 +3947,20 @@ const deserializeAws_restJson1Scram = (output, context) => {
4046
3947
  };
4047
3948
  const deserializeAws_restJson1Serverless = (output, context) => {
4048
3949
  return {
4049
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
3950
+ ClientAuthentication: output.clientAuthentication != null
4050
3951
  ? deserializeAws_restJson1ServerlessClientAuthentication(output.clientAuthentication, context)
4051
3952
  : undefined,
4052
- VpcConfigs: output.vpcConfigs !== undefined && output.vpcConfigs !== null
4053
- ? deserializeAws_restJson1__listOfVpcConfig(output.vpcConfigs, context)
4054
- : undefined,
3953
+ VpcConfigs: output.vpcConfigs != null ? deserializeAws_restJson1__listOfVpcConfig(output.vpcConfigs, context) : undefined,
4055
3954
  };
4056
3955
  };
4057
3956
  const deserializeAws_restJson1ServerlessClientAuthentication = (output, context) => {
4058
3957
  return {
4059
- Sasl: output.sasl !== undefined && output.sasl !== null
4060
- ? deserializeAws_restJson1ServerlessSasl(output.sasl, context)
4061
- : undefined,
3958
+ Sasl: output.sasl != null ? deserializeAws_restJson1ServerlessSasl(output.sasl, context) : undefined,
4062
3959
  };
4063
3960
  };
4064
3961
  const deserializeAws_restJson1ServerlessSasl = (output, context) => {
4065
3962
  return {
4066
- Iam: output.iam !== undefined && output.iam !== null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
3963
+ Iam: output.iam != null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
4067
3964
  };
4068
3965
  };
4069
3966
  const deserializeAws_restJson1StateInfo = (output, context) => {
@@ -4074,14 +3971,14 @@ const deserializeAws_restJson1StateInfo = (output, context) => {
4074
3971
  };
4075
3972
  const deserializeAws_restJson1StorageInfo = (output, context) => {
4076
3973
  return {
4077
- EbsStorageInfo: output.ebsStorageInfo !== undefined && output.ebsStorageInfo !== null
3974
+ EbsStorageInfo: output.ebsStorageInfo != null
4078
3975
  ? deserializeAws_restJson1EBSStorageInfo(output.ebsStorageInfo, context)
4079
3976
  : undefined,
4080
3977
  };
4081
3978
  };
4082
3979
  const deserializeAws_restJson1Tls = (output, context) => {
4083
3980
  return {
4084
- CertificateAuthorityArnList: output.certificateAuthorityArnList !== undefined && output.certificateAuthorityArnList !== null
3981
+ CertificateAuthorityArnList: output.certificateAuthorityArnList != null
4085
3982
  ? deserializeAws_restJson1__listOf__string(output.certificateAuthorityArnList, context)
4086
3983
  : undefined,
4087
3984
  Enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
@@ -4101,21 +3998,17 @@ const deserializeAws_restJson1UnprocessedScramSecret = (output, context) => {
4101
3998
  };
4102
3999
  const deserializeAws_restJson1VpcConfig = (output, context) => {
4103
4000
  return {
4104
- SecurityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
4001
+ SecurityGroupIds: output.securityGroupIds != null
4105
4002
  ? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
4106
4003
  : undefined,
4107
- SubnetIds: output.subnetIds !== undefined && output.subnetIds !== null
4108
- ? deserializeAws_restJson1__listOf__string(output.subnetIds, context)
4109
- : undefined,
4004
+ SubnetIds: output.subnetIds != null ? deserializeAws_restJson1__listOf__string(output.subnetIds, context) : undefined,
4110
4005
  };
4111
4006
  };
4112
4007
  const deserializeAws_restJson1ZookeeperNodeInfo = (output, context) => {
4113
4008
  return {
4114
4009
  AttachedENIId: (0, smithy_client_1.expectString)(output.attachedENIId),
4115
4010
  ClientVpcIpAddress: (0, smithy_client_1.expectString)(output.clientVpcIpAddress),
4116
- Endpoints: output.endpoints !== undefined && output.endpoints !== null
4117
- ? deserializeAws_restJson1__listOf__string(output.endpoints, context)
4118
- : undefined,
4011
+ Endpoints: output.endpoints != null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined,
4119
4012
  ZookeeperId: (0, smithy_client_1.limitedParseDouble)(output.zookeeperId),
4120
4013
  ZookeeperVersion: (0, smithy_client_1.expectString)(output.zookeeperVersion),
4121
4014
  };
@@ -4169,5 +4062,4 @@ const loadRestJsonErrorCode = (output, data) => {
4169
4062
  if (data["__type"] !== undefined) {
4170
4063
  return sanitizeErrorCode(data["__type"]);
4171
4064
  }
4172
- return "";
4173
4065
  };