@aws-sdk/client-kafka 3.121.0 → 3.130.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
  });
@@ -3221,267 +3182,232 @@ const serializeAws_restJson1__mapOf__string = (input, context) => {
3221
3182
  };
3222
3183
  const serializeAws_restJson1BrokerEBSVolumeInfo = (input, context) => {
3223
3184
  return {
3224
- ...(input.KafkaBrokerNodeId !== undefined &&
3225
- input.KafkaBrokerNodeId !== null && { kafkaBrokerNodeId: input.KafkaBrokerNodeId }),
3226
- ...(input.ProvisionedThroughput !== undefined &&
3227
- input.ProvisionedThroughput !== null && {
3185
+ ...(input.KafkaBrokerNodeId != null && { kafkaBrokerNodeId: input.KafkaBrokerNodeId }),
3186
+ ...(input.ProvisionedThroughput != null && {
3228
3187
  provisionedThroughput: serializeAws_restJson1ProvisionedThroughput(input.ProvisionedThroughput, context),
3229
3188
  }),
3230
- ...(input.VolumeSizeGB !== undefined && input.VolumeSizeGB !== null && { volumeSizeGB: input.VolumeSizeGB }),
3189
+ ...(input.VolumeSizeGB != null && { volumeSizeGB: input.VolumeSizeGB }),
3231
3190
  };
3232
3191
  };
3233
3192
  const serializeAws_restJson1BrokerLogs = (input, context) => {
3234
3193
  return {
3235
- ...(input.CloudWatchLogs !== undefined &&
3236
- input.CloudWatchLogs !== null && {
3194
+ ...(input.CloudWatchLogs != null && {
3237
3195
  cloudWatchLogs: serializeAws_restJson1CloudWatchLogs(input.CloudWatchLogs, context),
3238
3196
  }),
3239
- ...(input.Firehose !== undefined &&
3240
- input.Firehose !== null && { firehose: serializeAws_restJson1Firehose(input.Firehose, context) }),
3241
- ...(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) }),
3242
3199
  };
3243
3200
  };
3244
3201
  const serializeAws_restJson1BrokerNodeGroupInfo = (input, context) => {
3245
3202
  return {
3246
- ...(input.BrokerAZDistribution !== undefined &&
3247
- input.BrokerAZDistribution !== null && { brokerAZDistribution: input.BrokerAZDistribution }),
3248
- ...(input.ClientSubnets !== undefined &&
3249
- input.ClientSubnets !== null && {
3203
+ ...(input.BrokerAZDistribution != null && { brokerAZDistribution: input.BrokerAZDistribution }),
3204
+ ...(input.ClientSubnets != null && {
3250
3205
  clientSubnets: serializeAws_restJson1__listOf__string(input.ClientSubnets, context),
3251
3206
  }),
3252
- ...(input.ConnectivityInfo !== undefined &&
3253
- input.ConnectivityInfo !== null && {
3207
+ ...(input.ConnectivityInfo != null && {
3254
3208
  connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
3255
3209
  }),
3256
- ...(input.InstanceType !== undefined && input.InstanceType !== null && { instanceType: input.InstanceType }),
3257
- ...(input.SecurityGroups !== undefined &&
3258
- input.SecurityGroups !== null && {
3210
+ ...(input.InstanceType != null && { instanceType: input.InstanceType }),
3211
+ ...(input.SecurityGroups != null && {
3259
3212
  securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
3260
3213
  }),
3261
- ...(input.StorageInfo !== undefined &&
3262
- input.StorageInfo !== null && { storageInfo: serializeAws_restJson1StorageInfo(input.StorageInfo, context) }),
3214
+ ...(input.StorageInfo != null && { storageInfo: serializeAws_restJson1StorageInfo(input.StorageInfo, context) }),
3263
3215
  };
3264
3216
  };
3265
3217
  const serializeAws_restJson1ClientAuthentication = (input, context) => {
3266
3218
  return {
3267
- ...(input.Sasl !== undefined && input.Sasl !== null && { sasl: serializeAws_restJson1Sasl(input.Sasl, context) }),
3268
- ...(input.Tls !== undefined && input.Tls !== null && { tls: serializeAws_restJson1Tls(input.Tls, context) }),
3269
- ...(input.Unauthenticated !== undefined &&
3270
- 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 && {
3271
3222
  unauthenticated: serializeAws_restJson1Unauthenticated(input.Unauthenticated, context),
3272
3223
  }),
3273
3224
  };
3274
3225
  };
3275
3226
  const serializeAws_restJson1CloudWatchLogs = (input, context) => {
3276
3227
  return {
3277
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3278
- ...(input.LogGroup !== undefined && input.LogGroup !== null && { logGroup: input.LogGroup }),
3228
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3229
+ ...(input.LogGroup != null && { logGroup: input.LogGroup }),
3279
3230
  };
3280
3231
  };
3281
3232
  const serializeAws_restJson1ConfigurationInfo = (input, context) => {
3282
3233
  return {
3283
- ...(input.Arn !== undefined && input.Arn !== null && { arn: input.Arn }),
3284
- ...(input.Revision !== undefined && input.Revision !== null && { revision: input.Revision }),
3234
+ ...(input.Arn != null && { arn: input.Arn }),
3235
+ ...(input.Revision != null && { revision: input.Revision }),
3285
3236
  };
3286
3237
  };
3287
3238
  const serializeAws_restJson1ConnectivityInfo = (input, context) => {
3288
3239
  return {
3289
- ...(input.PublicAccess !== undefined &&
3290
- input.PublicAccess !== null && { publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context) }),
3240
+ ...(input.PublicAccess != null && {
3241
+ publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context),
3242
+ }),
3291
3243
  };
3292
3244
  };
3293
3245
  const serializeAws_restJson1EBSStorageInfo = (input, context) => {
3294
3246
  return {
3295
- ...(input.ProvisionedThroughput !== undefined &&
3296
- input.ProvisionedThroughput !== null && {
3247
+ ...(input.ProvisionedThroughput != null && {
3297
3248
  provisionedThroughput: serializeAws_restJson1ProvisionedThroughput(input.ProvisionedThroughput, context),
3298
3249
  }),
3299
- ...(input.VolumeSize !== undefined && input.VolumeSize !== null && { volumeSize: input.VolumeSize }),
3250
+ ...(input.VolumeSize != null && { volumeSize: input.VolumeSize }),
3300
3251
  };
3301
3252
  };
3302
3253
  const serializeAws_restJson1EncryptionAtRest = (input, context) => {
3303
3254
  return {
3304
- ...(input.DataVolumeKMSKeyId !== undefined &&
3305
- input.DataVolumeKMSKeyId !== null && { dataVolumeKMSKeyId: input.DataVolumeKMSKeyId }),
3255
+ ...(input.DataVolumeKMSKeyId != null && { dataVolumeKMSKeyId: input.DataVolumeKMSKeyId }),
3306
3256
  };
3307
3257
  };
3308
3258
  const serializeAws_restJson1EncryptionInfo = (input, context) => {
3309
3259
  return {
3310
- ...(input.EncryptionAtRest !== undefined &&
3311
- input.EncryptionAtRest !== null && {
3260
+ ...(input.EncryptionAtRest != null && {
3312
3261
  encryptionAtRest: serializeAws_restJson1EncryptionAtRest(input.EncryptionAtRest, context),
3313
3262
  }),
3314
- ...(input.EncryptionInTransit !== undefined &&
3315
- input.EncryptionInTransit !== null && {
3263
+ ...(input.EncryptionInTransit != null && {
3316
3264
  encryptionInTransit: serializeAws_restJson1EncryptionInTransit(input.EncryptionInTransit, context),
3317
3265
  }),
3318
3266
  };
3319
3267
  };
3320
3268
  const serializeAws_restJson1EncryptionInTransit = (input, context) => {
3321
3269
  return {
3322
- ...(input.ClientBroker !== undefined && input.ClientBroker !== null && { clientBroker: input.ClientBroker }),
3323
- ...(input.InCluster !== undefined && input.InCluster !== null && { inCluster: input.InCluster }),
3270
+ ...(input.ClientBroker != null && { clientBroker: input.ClientBroker }),
3271
+ ...(input.InCluster != null && { inCluster: input.InCluster }),
3324
3272
  };
3325
3273
  };
3326
3274
  const serializeAws_restJson1Firehose = (input, context) => {
3327
3275
  return {
3328
- ...(input.DeliveryStream !== undefined &&
3329
- input.DeliveryStream !== null && { deliveryStream: input.DeliveryStream }),
3330
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3276
+ ...(input.DeliveryStream != null && { deliveryStream: input.DeliveryStream }),
3277
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3331
3278
  };
3332
3279
  };
3333
3280
  const serializeAws_restJson1Iam = (input, context) => {
3334
3281
  return {
3335
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3282
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3336
3283
  };
3337
3284
  };
3338
3285
  const serializeAws_restJson1JmxExporterInfo = (input, context) => {
3339
3286
  return {
3340
- ...(input.EnabledInBroker !== undefined &&
3341
- input.EnabledInBroker !== null && { enabledInBroker: input.EnabledInBroker }),
3287
+ ...(input.EnabledInBroker != null && { enabledInBroker: input.EnabledInBroker }),
3342
3288
  };
3343
3289
  };
3344
3290
  const serializeAws_restJson1LoggingInfo = (input, context) => {
3345
3291
  return {
3346
- ...(input.BrokerLogs !== undefined &&
3347
- input.BrokerLogs !== null && { brokerLogs: serializeAws_restJson1BrokerLogs(input.BrokerLogs, context) }),
3292
+ ...(input.BrokerLogs != null && { brokerLogs: serializeAws_restJson1BrokerLogs(input.BrokerLogs, context) }),
3348
3293
  };
3349
3294
  };
3350
3295
  const serializeAws_restJson1NodeExporterInfo = (input, context) => {
3351
3296
  return {
3352
- ...(input.EnabledInBroker !== undefined &&
3353
- input.EnabledInBroker !== null && { enabledInBroker: input.EnabledInBroker }),
3297
+ ...(input.EnabledInBroker != null && { enabledInBroker: input.EnabledInBroker }),
3354
3298
  };
3355
3299
  };
3356
3300
  const serializeAws_restJson1OpenMonitoringInfo = (input, context) => {
3357
3301
  return {
3358
- ...(input.Prometheus !== undefined &&
3359
- input.Prometheus !== null && { prometheus: serializeAws_restJson1PrometheusInfo(input.Prometheus, context) }),
3302
+ ...(input.Prometheus != null && { prometheus: serializeAws_restJson1PrometheusInfo(input.Prometheus, context) }),
3360
3303
  };
3361
3304
  };
3362
3305
  const serializeAws_restJson1PrometheusInfo = (input, context) => {
3363
3306
  return {
3364
- ...(input.JmxExporter !== undefined &&
3365
- input.JmxExporter !== null && { jmxExporter: serializeAws_restJson1JmxExporterInfo(input.JmxExporter, context) }),
3366
- ...(input.NodeExporter !== undefined &&
3367
- input.NodeExporter !== null && {
3307
+ ...(input.JmxExporter != null && {
3308
+ jmxExporter: serializeAws_restJson1JmxExporterInfo(input.JmxExporter, context),
3309
+ }),
3310
+ ...(input.NodeExporter != null && {
3368
3311
  nodeExporter: serializeAws_restJson1NodeExporterInfo(input.NodeExporter, context),
3369
3312
  }),
3370
3313
  };
3371
3314
  };
3372
3315
  const serializeAws_restJson1ProvisionedRequest = (input, context) => {
3373
3316
  return {
3374
- ...(input.BrokerNodeGroupInfo !== undefined &&
3375
- input.BrokerNodeGroupInfo !== null && {
3317
+ ...(input.BrokerNodeGroupInfo != null && {
3376
3318
  brokerNodeGroupInfo: serializeAws_restJson1BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
3377
3319
  }),
3378
- ...(input.ClientAuthentication !== undefined &&
3379
- input.ClientAuthentication !== null && {
3320
+ ...(input.ClientAuthentication != null && {
3380
3321
  clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
3381
3322
  }),
3382
- ...(input.ConfigurationInfo !== undefined &&
3383
- input.ConfigurationInfo !== null && {
3323
+ ...(input.ConfigurationInfo != null && {
3384
3324
  configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
3385
3325
  }),
3386
- ...(input.EncryptionInfo !== undefined &&
3387
- input.EncryptionInfo !== null && {
3326
+ ...(input.EncryptionInfo != null && {
3388
3327
  encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
3389
3328
  }),
3390
- ...(input.EnhancedMonitoring !== undefined &&
3391
- input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring }),
3392
- ...(input.KafkaVersion !== undefined && input.KafkaVersion !== null && { kafkaVersion: input.KafkaVersion }),
3393
- ...(input.LoggingInfo !== undefined &&
3394
- input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) }),
3395
- ...(input.NumberOfBrokerNodes !== undefined &&
3396
- input.NumberOfBrokerNodes !== null && { numberOfBrokerNodes: input.NumberOfBrokerNodes }),
3397
- ...(input.OpenMonitoring !== undefined &&
3398
- 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 && {
3399
3334
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
3400
3335
  }),
3401
3336
  };
3402
3337
  };
3403
3338
  const serializeAws_restJson1ProvisionedThroughput = (input, context) => {
3404
3339
  return {
3405
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3406
- ...(input.VolumeThroughput !== undefined &&
3407
- input.VolumeThroughput !== null && { volumeThroughput: input.VolumeThroughput }),
3340
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3341
+ ...(input.VolumeThroughput != null && { volumeThroughput: input.VolumeThroughput }),
3408
3342
  };
3409
3343
  };
3410
3344
  const serializeAws_restJson1PublicAccess = (input, context) => {
3411
3345
  return {
3412
- ...(input.Type !== undefined && input.Type !== null && { type: input.Type }),
3346
+ ...(input.Type != null && { type: input.Type }),
3413
3347
  };
3414
3348
  };
3415
3349
  const serializeAws_restJson1S3 = (input, context) => {
3416
3350
  return {
3417
- ...(input.Bucket !== undefined && input.Bucket !== null && { bucket: input.Bucket }),
3418
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3419
- ...(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 }),
3420
3354
  };
3421
3355
  };
3422
3356
  const serializeAws_restJson1Sasl = (input, context) => {
3423
3357
  return {
3424
- ...(input.Iam !== undefined && input.Iam !== null && { iam: serializeAws_restJson1Iam(input.Iam, context) }),
3425
- ...(input.Scram !== undefined &&
3426
- 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) }),
3427
3360
  };
3428
3361
  };
3429
3362
  const serializeAws_restJson1Scram = (input, context) => {
3430
3363
  return {
3431
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3364
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3432
3365
  };
3433
3366
  };
3434
3367
  const serializeAws_restJson1ServerlessClientAuthentication = (input, context) => {
3435
3368
  return {
3436
- ...(input.Sasl !== undefined &&
3437
- input.Sasl !== null && { sasl: serializeAws_restJson1ServerlessSasl(input.Sasl, context) }),
3369
+ ...(input.Sasl != null && { sasl: serializeAws_restJson1ServerlessSasl(input.Sasl, context) }),
3438
3370
  };
3439
3371
  };
3440
3372
  const serializeAws_restJson1ServerlessRequest = (input, context) => {
3441
3373
  return {
3442
- ...(input.ClientAuthentication !== undefined &&
3443
- input.ClientAuthentication !== null && {
3374
+ ...(input.ClientAuthentication != null && {
3444
3375
  clientAuthentication: serializeAws_restJson1ServerlessClientAuthentication(input.ClientAuthentication, context),
3445
3376
  }),
3446
- ...(input.VpcConfigs !== undefined &&
3447
- input.VpcConfigs !== null && { vpcConfigs: serializeAws_restJson1__listOfVpcConfig(input.VpcConfigs, context) }),
3377
+ ...(input.VpcConfigs != null && { vpcConfigs: serializeAws_restJson1__listOfVpcConfig(input.VpcConfigs, context) }),
3448
3378
  };
3449
3379
  };
3450
3380
  const serializeAws_restJson1ServerlessSasl = (input, context) => {
3451
3381
  return {
3452
- ...(input.Iam !== undefined && input.Iam !== null && { iam: serializeAws_restJson1Iam(input.Iam, context) }),
3382
+ ...(input.Iam != null && { iam: serializeAws_restJson1Iam(input.Iam, context) }),
3453
3383
  };
3454
3384
  };
3455
3385
  const serializeAws_restJson1StorageInfo = (input, context) => {
3456
3386
  return {
3457
- ...(input.EbsStorageInfo !== undefined &&
3458
- input.EbsStorageInfo !== null && {
3387
+ ...(input.EbsStorageInfo != null && {
3459
3388
  ebsStorageInfo: serializeAws_restJson1EBSStorageInfo(input.EbsStorageInfo, context),
3460
3389
  }),
3461
3390
  };
3462
3391
  };
3463
3392
  const serializeAws_restJson1Tls = (input, context) => {
3464
3393
  return {
3465
- ...(input.CertificateAuthorityArnList !== undefined &&
3466
- input.CertificateAuthorityArnList !== null && {
3394
+ ...(input.CertificateAuthorityArnList != null && {
3467
3395
  certificateAuthorityArnList: serializeAws_restJson1__listOf__string(input.CertificateAuthorityArnList, context),
3468
3396
  }),
3469
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3397
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3470
3398
  };
3471
3399
  };
3472
3400
  const serializeAws_restJson1Unauthenticated = (input, context) => {
3473
3401
  return {
3474
- ...(input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }),
3402
+ ...(input.Enabled != null && { enabled: input.Enabled }),
3475
3403
  };
3476
3404
  };
3477
3405
  const serializeAws_restJson1VpcConfig = (input, context) => {
3478
3406
  return {
3479
- ...(input.SecurityGroupIds !== undefined &&
3480
- input.SecurityGroupIds !== null && {
3407
+ ...(input.SecurityGroupIds != null && {
3481
3408
  securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
3482
3409
  }),
3483
- ...(input.SubnetIds !== undefined &&
3484
- input.SubnetIds !== null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }),
3410
+ ...(input.SubnetIds != null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }),
3485
3411
  };
3486
3412
  };
3487
3413
  const deserializeAws_restJson1__listOf__string = (output, context) => {
@@ -3641,7 +3567,7 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
3641
3567
  const deserializeAws_restJson1BrokerEBSVolumeInfo = (output, context) => {
3642
3568
  return {
3643
3569
  KafkaBrokerNodeId: (0, smithy_client_1.expectString)(output.kafkaBrokerNodeId),
3644
- ProvisionedThroughput: output.provisionedThroughput !== undefined && output.provisionedThroughput !== null
3570
+ ProvisionedThroughput: output.provisionedThroughput != null
3645
3571
  ? deserializeAws_restJson1ProvisionedThroughput(output.provisionedThroughput, context)
3646
3572
  : undefined,
3647
3573
  VolumeSizeGB: (0, smithy_client_1.expectInt32)(output.volumeSizeGB),
@@ -3649,31 +3575,27 @@ const deserializeAws_restJson1BrokerEBSVolumeInfo = (output, context) => {
3649
3575
  };
3650
3576
  const deserializeAws_restJson1BrokerLogs = (output, context) => {
3651
3577
  return {
3652
- CloudWatchLogs: output.cloudWatchLogs !== undefined && output.cloudWatchLogs !== null
3578
+ CloudWatchLogs: output.cloudWatchLogs != null
3653
3579
  ? deserializeAws_restJson1CloudWatchLogs(output.cloudWatchLogs, context)
3654
3580
  : undefined,
3655
- Firehose: output.firehose !== undefined && output.firehose !== null
3656
- ? deserializeAws_restJson1Firehose(output.firehose, context)
3657
- : undefined,
3658
- 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,
3659
3583
  };
3660
3584
  };
3661
3585
  const deserializeAws_restJson1BrokerNodeGroupInfo = (output, context) => {
3662
3586
  return {
3663
3587
  BrokerAZDistribution: (0, smithy_client_1.expectString)(output.brokerAZDistribution),
3664
- ClientSubnets: output.clientSubnets !== undefined && output.clientSubnets !== null
3588
+ ClientSubnets: output.clientSubnets != null
3665
3589
  ? deserializeAws_restJson1__listOf__string(output.clientSubnets, context)
3666
3590
  : undefined,
3667
- ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
3591
+ ConnectivityInfo: output.connectivityInfo != null
3668
3592
  ? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
3669
3593
  : undefined,
3670
3594
  InstanceType: (0, smithy_client_1.expectString)(output.instanceType),
3671
- SecurityGroups: output.securityGroups !== undefined && output.securityGroups !== null
3595
+ SecurityGroups: output.securityGroups != null
3672
3596
  ? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
3673
3597
  : undefined,
3674
- StorageInfo: output.storageInfo !== undefined && output.storageInfo !== null
3675
- ? deserializeAws_restJson1StorageInfo(output.storageInfo, context)
3676
- : undefined,
3598
+ StorageInfo: output.storageInfo != null ? deserializeAws_restJson1StorageInfo(output.storageInfo, context) : undefined,
3677
3599
  };
3678
3600
  };
3679
3601
  const deserializeAws_restJson1BrokerNodeInfo = (output, context) => {
@@ -3682,12 +3604,10 @@ const deserializeAws_restJson1BrokerNodeInfo = (output, context) => {
3682
3604
  BrokerId: (0, smithy_client_1.limitedParseDouble)(output.brokerId),
3683
3605
  ClientSubnet: (0, smithy_client_1.expectString)(output.clientSubnet),
3684
3606
  ClientVpcIpAddress: (0, smithy_client_1.expectString)(output.clientVpcIpAddress),
3685
- CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
3607
+ CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
3686
3608
  ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
3687
3609
  : undefined,
3688
- Endpoints: output.endpoints !== undefined && output.endpoints !== null
3689
- ? deserializeAws_restJson1__listOf__string(output.endpoints, context)
3690
- : undefined,
3610
+ Endpoints: output.endpoints != null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined,
3691
3611
  };
3692
3612
  };
3693
3613
  const deserializeAws_restJson1BrokerSoftwareInfo = (output, context) => {
@@ -3699,11 +3619,9 @@ const deserializeAws_restJson1BrokerSoftwareInfo = (output, context) => {
3699
3619
  };
3700
3620
  const deserializeAws_restJson1ClientAuthentication = (output, context) => {
3701
3621
  return {
3702
- Sasl: output.sasl !== undefined && output.sasl !== null
3703
- ? deserializeAws_restJson1Sasl(output.sasl, context)
3704
- : undefined,
3705
- Tls: output.tls !== undefined && output.tls !== null ? deserializeAws_restJson1Tls(output.tls, context) : undefined,
3706
- 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
3707
3625
  ? deserializeAws_restJson1Unauthenticated(output.unauthenticated, context)
3708
3626
  : undefined,
3709
3627
  };
@@ -3720,61 +3638,43 @@ const deserializeAws_restJson1Cluster = (output, context) => {
3720
3638
  ClusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
3721
3639
  ClusterName: (0, smithy_client_1.expectString)(output.clusterName),
3722
3640
  ClusterType: (0, smithy_client_1.expectString)(output.clusterType),
3723
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3724
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3725
- : undefined,
3641
+ CreationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
3726
3642
  CurrentVersion: (0, smithy_client_1.expectString)(output.currentVersion),
3727
- Provisioned: output.provisioned !== undefined && output.provisioned !== null
3728
- ? deserializeAws_restJson1Provisioned(output.provisioned, context)
3729
- : undefined,
3730
- Serverless: output.serverless !== undefined && output.serverless !== null
3731
- ? deserializeAws_restJson1Serverless(output.serverless, context)
3732
- : undefined,
3643
+ Provisioned: output.provisioned != null ? deserializeAws_restJson1Provisioned(output.provisioned, context) : undefined,
3644
+ Serverless: output.serverless != null ? deserializeAws_restJson1Serverless(output.serverless, context) : undefined,
3733
3645
  State: (0, smithy_client_1.expectString)(output.state),
3734
- StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
3735
- ? deserializeAws_restJson1StateInfo(output.stateInfo, context)
3736
- : undefined,
3737
- Tags: output.tags !== undefined && output.tags !== null
3738
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
3739
- : 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,
3740
3648
  };
3741
3649
  };
3742
3650
  const deserializeAws_restJson1ClusterInfo = (output, context) => {
3743
3651
  return {
3744
3652
  ActiveOperationArn: (0, smithy_client_1.expectString)(output.activeOperationArn),
3745
- BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
3653
+ BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null
3746
3654
  ? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
3747
3655
  : undefined,
3748
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
3656
+ ClientAuthentication: output.clientAuthentication != null
3749
3657
  ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
3750
3658
  : undefined,
3751
3659
  ClusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
3752
3660
  ClusterName: (0, smithy_client_1.expectString)(output.clusterName),
3753
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3754
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3755
- : undefined,
3756
- 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
3757
3663
  ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
3758
3664
  : undefined,
3759
3665
  CurrentVersion: (0, smithy_client_1.expectString)(output.currentVersion),
3760
- EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
3666
+ EncryptionInfo: output.encryptionInfo != null
3761
3667
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
3762
3668
  : undefined,
3763
3669
  EnhancedMonitoring: (0, smithy_client_1.expectString)(output.enhancedMonitoring),
3764
- LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
3765
- ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
3766
- : undefined,
3670
+ LoggingInfo: output.loggingInfo != null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined,
3767
3671
  NumberOfBrokerNodes: (0, smithy_client_1.expectInt32)(output.numberOfBrokerNodes),
3768
- OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
3672
+ OpenMonitoring: output.openMonitoring != null
3769
3673
  ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
3770
3674
  : undefined,
3771
3675
  State: (0, smithy_client_1.expectString)(output.state),
3772
- StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
3773
- ? deserializeAws_restJson1StateInfo(output.stateInfo, context)
3774
- : undefined,
3775
- Tags: output.tags !== undefined && output.tags !== null
3776
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
3777
- : 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,
3778
3678
  ZookeeperConnectString: (0, smithy_client_1.expectString)(output.zookeeperConnectString),
3779
3679
  ZookeeperConnectStringTls: (0, smithy_client_1.expectString)(output.zookeeperConnectStringTls),
3780
3680
  };
@@ -3783,34 +3683,26 @@ const deserializeAws_restJson1ClusterOperationInfo = (output, context) => {
3783
3683
  return {
3784
3684
  ClientRequestId: (0, smithy_client_1.expectString)(output.clientRequestId),
3785
3685
  ClusterArn: (0, smithy_client_1.expectString)(output.clusterArn),
3786
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3787
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3788
- : undefined,
3789
- EndTime: output.endTime !== undefined && output.endTime !== null
3790
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.endTime))
3791
- : undefined,
3792
- ErrorInfo: output.errorInfo !== undefined && output.errorInfo !== null
3793
- ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context)
3794
- : 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,
3795
3689
  OperationArn: (0, smithy_client_1.expectString)(output.operationArn),
3796
3690
  OperationState: (0, smithy_client_1.expectString)(output.operationState),
3797
- OperationSteps: output.operationSteps !== undefined && output.operationSteps !== null
3691
+ OperationSteps: output.operationSteps != null
3798
3692
  ? deserializeAws_restJson1__listOfClusterOperationStep(output.operationSteps, context)
3799
3693
  : undefined,
3800
3694
  OperationType: (0, smithy_client_1.expectString)(output.operationType),
3801
- SourceClusterInfo: output.sourceClusterInfo !== undefined && output.sourceClusterInfo !== null
3695
+ SourceClusterInfo: output.sourceClusterInfo != null
3802
3696
  ? deserializeAws_restJson1MutableClusterInfo(output.sourceClusterInfo, context)
3803
3697
  : undefined,
3804
- TargetClusterInfo: output.targetClusterInfo !== undefined && output.targetClusterInfo !== null
3698
+ TargetClusterInfo: output.targetClusterInfo != null
3805
3699
  ? deserializeAws_restJson1MutableClusterInfo(output.targetClusterInfo, context)
3806
3700
  : undefined,
3807
3701
  };
3808
3702
  };
3809
3703
  const deserializeAws_restJson1ClusterOperationStep = (output, context) => {
3810
3704
  return {
3811
- StepInfo: output.stepInfo !== undefined && output.stepInfo !== null
3812
- ? deserializeAws_restJson1ClusterOperationStepInfo(output.stepInfo, context)
3813
- : undefined,
3705
+ StepInfo: output.stepInfo != null ? deserializeAws_restJson1ClusterOperationStepInfo(output.stepInfo, context) : undefined,
3814
3706
  StepName: (0, smithy_client_1.expectString)(output.stepName),
3815
3707
  };
3816
3708
  };
@@ -3822,7 +3714,7 @@ const deserializeAws_restJson1ClusterOperationStepInfo = (output, context) => {
3822
3714
  const deserializeAws_restJson1CompatibleKafkaVersion = (output, context) => {
3823
3715
  return {
3824
3716
  SourceVersion: (0, smithy_client_1.expectString)(output.sourceVersion),
3825
- TargetVersions: output.targetVersions !== undefined && output.targetVersions !== null
3717
+ TargetVersions: output.targetVersions != null
3826
3718
  ? deserializeAws_restJson1__listOf__string(output.targetVersions, context)
3827
3719
  : undefined,
3828
3720
  };
@@ -3830,14 +3722,12 @@ const deserializeAws_restJson1CompatibleKafkaVersion = (output, context) => {
3830
3722
  const deserializeAws_restJson1Configuration = (output, context) => {
3831
3723
  return {
3832
3724
  Arn: (0, smithy_client_1.expectString)(output.arn),
3833
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3834
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3835
- : undefined,
3725
+ CreationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
3836
3726
  Description: (0, smithy_client_1.expectString)(output.description),
3837
- KafkaVersions: output.kafkaVersions !== undefined && output.kafkaVersions !== null
3727
+ KafkaVersions: output.kafkaVersions != null
3838
3728
  ? deserializeAws_restJson1__listOf__string(output.kafkaVersions, context)
3839
3729
  : undefined,
3840
- LatestRevision: output.latestRevision !== undefined && output.latestRevision !== null
3730
+ LatestRevision: output.latestRevision != null
3841
3731
  ? deserializeAws_restJson1ConfigurationRevision(output.latestRevision, context)
3842
3732
  : undefined,
3843
3733
  Name: (0, smithy_client_1.expectString)(output.name),
@@ -3852,23 +3742,19 @@ const deserializeAws_restJson1ConfigurationInfo = (output, context) => {
3852
3742
  };
3853
3743
  const deserializeAws_restJson1ConfigurationRevision = (output, context) => {
3854
3744
  return {
3855
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
3856
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
3857
- : undefined,
3745
+ CreationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime)) : undefined,
3858
3746
  Description: (0, smithy_client_1.expectString)(output.description),
3859
3747
  Revision: (0, smithy_client_1.expectLong)(output.revision),
3860
3748
  };
3861
3749
  };
3862
3750
  const deserializeAws_restJson1ConnectivityInfo = (output, context) => {
3863
3751
  return {
3864
- PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
3865
- ? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
3866
- : undefined,
3752
+ PublicAccess: output.publicAccess != null ? deserializeAws_restJson1PublicAccess(output.publicAccess, context) : undefined,
3867
3753
  };
3868
3754
  };
3869
3755
  const deserializeAws_restJson1EBSStorageInfo = (output, context) => {
3870
3756
  return {
3871
- ProvisionedThroughput: output.provisionedThroughput !== undefined && output.provisionedThroughput !== null
3757
+ ProvisionedThroughput: output.provisionedThroughput != null
3872
3758
  ? deserializeAws_restJson1ProvisionedThroughput(output.provisionedThroughput, context)
3873
3759
  : undefined,
3874
3760
  VolumeSize: (0, smithy_client_1.expectInt32)(output.volumeSize),
@@ -3881,10 +3767,10 @@ const deserializeAws_restJson1EncryptionAtRest = (output, context) => {
3881
3767
  };
3882
3768
  const deserializeAws_restJson1EncryptionInfo = (output, context) => {
3883
3769
  return {
3884
- EncryptionAtRest: output.encryptionAtRest !== undefined && output.encryptionAtRest !== null
3770
+ EncryptionAtRest: output.encryptionAtRest != null
3885
3771
  ? deserializeAws_restJson1EncryptionAtRest(output.encryptionAtRest, context)
3886
3772
  : undefined,
3887
- EncryptionInTransit: output.encryptionInTransit !== undefined && output.encryptionInTransit !== null
3773
+ EncryptionInTransit: output.encryptionInTransit != null
3888
3774
  ? deserializeAws_restJson1EncryptionInTransit(output.encryptionInTransit, context)
3889
3775
  : undefined,
3890
3776
  };
@@ -3930,36 +3816,32 @@ const deserializeAws_restJson1KafkaVersion = (output, context) => {
3930
3816
  };
3931
3817
  const deserializeAws_restJson1LoggingInfo = (output, context) => {
3932
3818
  return {
3933
- BrokerLogs: output.brokerLogs !== undefined && output.brokerLogs !== null
3934
- ? deserializeAws_restJson1BrokerLogs(output.brokerLogs, context)
3935
- : undefined,
3819
+ BrokerLogs: output.brokerLogs != null ? deserializeAws_restJson1BrokerLogs(output.brokerLogs, context) : undefined,
3936
3820
  };
3937
3821
  };
3938
3822
  const deserializeAws_restJson1MutableClusterInfo = (output, context) => {
3939
3823
  return {
3940
- BrokerEBSVolumeInfo: output.brokerEBSVolumeInfo !== undefined && output.brokerEBSVolumeInfo !== null
3824
+ BrokerEBSVolumeInfo: output.brokerEBSVolumeInfo != null
3941
3825
  ? deserializeAws_restJson1__listOfBrokerEBSVolumeInfo(output.brokerEBSVolumeInfo, context)
3942
3826
  : undefined,
3943
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
3827
+ ClientAuthentication: output.clientAuthentication != null
3944
3828
  ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
3945
3829
  : undefined,
3946
- ConfigurationInfo: output.configurationInfo !== undefined && output.configurationInfo !== null
3830
+ ConfigurationInfo: output.configurationInfo != null
3947
3831
  ? deserializeAws_restJson1ConfigurationInfo(output.configurationInfo, context)
3948
3832
  : undefined,
3949
- ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
3833
+ ConnectivityInfo: output.connectivityInfo != null
3950
3834
  ? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
3951
3835
  : undefined,
3952
- EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
3836
+ EncryptionInfo: output.encryptionInfo != null
3953
3837
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
3954
3838
  : undefined,
3955
3839
  EnhancedMonitoring: (0, smithy_client_1.expectString)(output.enhancedMonitoring),
3956
3840
  InstanceType: (0, smithy_client_1.expectString)(output.instanceType),
3957
3841
  KafkaVersion: (0, smithy_client_1.expectString)(output.kafkaVersion),
3958
- LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
3959
- ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
3960
- : undefined,
3842
+ LoggingInfo: output.loggingInfo != null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined,
3961
3843
  NumberOfBrokerNodes: (0, smithy_client_1.expectInt32)(output.numberOfBrokerNodes),
3962
- OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
3844
+ OpenMonitoring: output.openMonitoring != null
3963
3845
  ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
3964
3846
  : undefined,
3965
3847
  };
@@ -3977,71 +3859,57 @@ const deserializeAws_restJson1NodeExporterInfo = (output, context) => {
3977
3859
  const deserializeAws_restJson1NodeInfo = (output, context) => {
3978
3860
  return {
3979
3861
  AddedToClusterTime: (0, smithy_client_1.expectString)(output.addedToClusterTime),
3980
- BrokerNodeInfo: output.brokerNodeInfo !== undefined && output.brokerNodeInfo !== null
3862
+ BrokerNodeInfo: output.brokerNodeInfo != null
3981
3863
  ? deserializeAws_restJson1BrokerNodeInfo(output.brokerNodeInfo, context)
3982
3864
  : undefined,
3983
3865
  InstanceType: (0, smithy_client_1.expectString)(output.instanceType),
3984
3866
  NodeARN: (0, smithy_client_1.expectString)(output.nodeARN),
3985
3867
  NodeType: (0, smithy_client_1.expectString)(output.nodeType),
3986
- ZookeeperNodeInfo: output.zookeeperNodeInfo !== undefined && output.zookeeperNodeInfo !== null
3868
+ ZookeeperNodeInfo: output.zookeeperNodeInfo != null
3987
3869
  ? deserializeAws_restJson1ZookeeperNodeInfo(output.zookeeperNodeInfo, context)
3988
3870
  : undefined,
3989
3871
  };
3990
3872
  };
3991
3873
  const deserializeAws_restJson1OpenMonitoring = (output, context) => {
3992
3874
  return {
3993
- Prometheus: output.prometheus !== undefined && output.prometheus !== null
3994
- ? deserializeAws_restJson1Prometheus(output.prometheus, context)
3995
- : undefined,
3875
+ Prometheus: output.prometheus != null ? deserializeAws_restJson1Prometheus(output.prometheus, context) : undefined,
3996
3876
  };
3997
3877
  };
3998
3878
  const deserializeAws_restJson1OpenMonitoringInfo = (output, context) => {
3999
3879
  return {
4000
- Prometheus: output.prometheus !== undefined && output.prometheus !== null
4001
- ? deserializeAws_restJson1PrometheusInfo(output.prometheus, context)
4002
- : undefined,
3880
+ Prometheus: output.prometheus != null ? deserializeAws_restJson1PrometheusInfo(output.prometheus, context) : undefined,
4003
3881
  };
4004
3882
  };
4005
3883
  const deserializeAws_restJson1Prometheus = (output, context) => {
4006
3884
  return {
4007
- JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
4008
- ? deserializeAws_restJson1JmxExporter(output.jmxExporter, context)
4009
- : undefined,
4010
- NodeExporter: output.nodeExporter !== undefined && output.nodeExporter !== null
4011
- ? deserializeAws_restJson1NodeExporter(output.nodeExporter, context)
4012
- : undefined,
3885
+ JmxExporter: output.jmxExporter != null ? deserializeAws_restJson1JmxExporter(output.jmxExporter, context) : undefined,
3886
+ NodeExporter: output.nodeExporter != null ? deserializeAws_restJson1NodeExporter(output.nodeExporter, context) : undefined,
4013
3887
  };
4014
3888
  };
4015
3889
  const deserializeAws_restJson1PrometheusInfo = (output, context) => {
4016
3890
  return {
4017
- JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
4018
- ? deserializeAws_restJson1JmxExporterInfo(output.jmxExporter, context)
4019
- : undefined,
4020
- NodeExporter: output.nodeExporter !== undefined && output.nodeExporter !== null
4021
- ? deserializeAws_restJson1NodeExporterInfo(output.nodeExporter, context)
4022
- : undefined,
3891
+ JmxExporter: output.jmxExporter != null ? deserializeAws_restJson1JmxExporterInfo(output.jmxExporter, context) : undefined,
3892
+ NodeExporter: output.nodeExporter != null ? deserializeAws_restJson1NodeExporterInfo(output.nodeExporter, context) : undefined,
4023
3893
  };
4024
3894
  };
4025
3895
  const deserializeAws_restJson1Provisioned = (output, context) => {
4026
3896
  return {
4027
- BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
3897
+ BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null
4028
3898
  ? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
4029
3899
  : undefined,
4030
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
3900
+ ClientAuthentication: output.clientAuthentication != null
4031
3901
  ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
4032
3902
  : undefined,
4033
- CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
3903
+ CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
4034
3904
  ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
4035
3905
  : undefined,
4036
- EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
3906
+ EncryptionInfo: output.encryptionInfo != null
4037
3907
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
4038
3908
  : undefined,
4039
3909
  EnhancedMonitoring: (0, smithy_client_1.expectString)(output.enhancedMonitoring),
4040
- LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
4041
- ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
4042
- : undefined,
3910
+ LoggingInfo: output.loggingInfo != null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined,
4043
3911
  NumberOfBrokerNodes: (0, smithy_client_1.expectInt32)(output.numberOfBrokerNodes),
4044
- OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
3912
+ OpenMonitoring: output.openMonitoring != null
4045
3913
  ? deserializeAws_restJson1OpenMonitoringInfo(output.openMonitoring, context)
4046
3914
  : undefined,
4047
3915
  ZookeeperConnectString: (0, smithy_client_1.expectString)(output.zookeeperConnectString),
@@ -4068,10 +3936,8 @@ const deserializeAws_restJson1S3 = (output, context) => {
4068
3936
  };
4069
3937
  const deserializeAws_restJson1Sasl = (output, context) => {
4070
3938
  return {
4071
- Iam: output.iam !== undefined && output.iam !== null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
4072
- Scram: output.scram !== undefined && output.scram !== null
4073
- ? deserializeAws_restJson1Scram(output.scram, context)
4074
- : undefined,
3939
+ Iam: output.iam != null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
3940
+ Scram: output.scram != null ? deserializeAws_restJson1Scram(output.scram, context) : undefined,
4075
3941
  };
4076
3942
  };
4077
3943
  const deserializeAws_restJson1Scram = (output, context) => {
@@ -4081,24 +3947,20 @@ const deserializeAws_restJson1Scram = (output, context) => {
4081
3947
  };
4082
3948
  const deserializeAws_restJson1Serverless = (output, context) => {
4083
3949
  return {
4084
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
3950
+ ClientAuthentication: output.clientAuthentication != null
4085
3951
  ? deserializeAws_restJson1ServerlessClientAuthentication(output.clientAuthentication, context)
4086
3952
  : undefined,
4087
- VpcConfigs: output.vpcConfigs !== undefined && output.vpcConfigs !== null
4088
- ? deserializeAws_restJson1__listOfVpcConfig(output.vpcConfigs, context)
4089
- : undefined,
3953
+ VpcConfigs: output.vpcConfigs != null ? deserializeAws_restJson1__listOfVpcConfig(output.vpcConfigs, context) : undefined,
4090
3954
  };
4091
3955
  };
4092
3956
  const deserializeAws_restJson1ServerlessClientAuthentication = (output, context) => {
4093
3957
  return {
4094
- Sasl: output.sasl !== undefined && output.sasl !== null
4095
- ? deserializeAws_restJson1ServerlessSasl(output.sasl, context)
4096
- : undefined,
3958
+ Sasl: output.sasl != null ? deserializeAws_restJson1ServerlessSasl(output.sasl, context) : undefined,
4097
3959
  };
4098
3960
  };
4099
3961
  const deserializeAws_restJson1ServerlessSasl = (output, context) => {
4100
3962
  return {
4101
- Iam: output.iam !== undefined && output.iam !== null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
3963
+ Iam: output.iam != null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
4102
3964
  };
4103
3965
  };
4104
3966
  const deserializeAws_restJson1StateInfo = (output, context) => {
@@ -4109,14 +3971,14 @@ const deserializeAws_restJson1StateInfo = (output, context) => {
4109
3971
  };
4110
3972
  const deserializeAws_restJson1StorageInfo = (output, context) => {
4111
3973
  return {
4112
- EbsStorageInfo: output.ebsStorageInfo !== undefined && output.ebsStorageInfo !== null
3974
+ EbsStorageInfo: output.ebsStorageInfo != null
4113
3975
  ? deserializeAws_restJson1EBSStorageInfo(output.ebsStorageInfo, context)
4114
3976
  : undefined,
4115
3977
  };
4116
3978
  };
4117
3979
  const deserializeAws_restJson1Tls = (output, context) => {
4118
3980
  return {
4119
- CertificateAuthorityArnList: output.certificateAuthorityArnList !== undefined && output.certificateAuthorityArnList !== null
3981
+ CertificateAuthorityArnList: output.certificateAuthorityArnList != null
4120
3982
  ? deserializeAws_restJson1__listOf__string(output.certificateAuthorityArnList, context)
4121
3983
  : undefined,
4122
3984
  Enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
@@ -4136,21 +3998,17 @@ const deserializeAws_restJson1UnprocessedScramSecret = (output, context) => {
4136
3998
  };
4137
3999
  const deserializeAws_restJson1VpcConfig = (output, context) => {
4138
4000
  return {
4139
- SecurityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
4001
+ SecurityGroupIds: output.securityGroupIds != null
4140
4002
  ? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
4141
4003
  : undefined,
4142
- SubnetIds: output.subnetIds !== undefined && output.subnetIds !== null
4143
- ? deserializeAws_restJson1__listOf__string(output.subnetIds, context)
4144
- : undefined,
4004
+ SubnetIds: output.subnetIds != null ? deserializeAws_restJson1__listOf__string(output.subnetIds, context) : undefined,
4145
4005
  };
4146
4006
  };
4147
4007
  const deserializeAws_restJson1ZookeeperNodeInfo = (output, context) => {
4148
4008
  return {
4149
4009
  AttachedENIId: (0, smithy_client_1.expectString)(output.attachedENIId),
4150
4010
  ClientVpcIpAddress: (0, smithy_client_1.expectString)(output.clientVpcIpAddress),
4151
- Endpoints: output.endpoints !== undefined && output.endpoints !== null
4152
- ? deserializeAws_restJson1__listOf__string(output.endpoints, context)
4153
- : undefined,
4011
+ Endpoints: output.endpoints != null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined,
4154
4012
  ZookeeperId: (0, smithy_client_1.limitedParseDouble)(output.zookeeperId),
4155
4013
  ZookeeperVersion: (0, smithy_client_1.expectString)(output.zookeeperVersion),
4156
4014
  };
@@ -4186,6 +4044,9 @@ const loadRestJsonErrorCode = (output, data) => {
4186
4044
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
4187
4045
  const sanitizeErrorCode = (rawValue) => {
4188
4046
  let cleanValue = rawValue;
4047
+ if (typeof cleanValue === "number") {
4048
+ cleanValue = cleanValue.toString();
4049
+ }
4189
4050
  if (cleanValue.indexOf(":") >= 0) {
4190
4051
  cleanValue = cleanValue.split(":")[0];
4191
4052
  }