@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 @@ export var serializeAws_restJson1BatchAssociateScramSecretCommand = function (in
24
24
  else {
25
25
  throw new Error("No value provided for input HTTP label: ClusterArn.");
26
26
  }
27
- body = JSON.stringify(__assign({}, (input.SecretArnList !== undefined &&
28
- input.SecretArnList !== null && {
27
+ body = JSON.stringify(__assign({}, (input.SecretArnList != null && {
29
28
  secretArnList: serializeAws_restJson1__listOf__string(input.SecretArnList, context),
30
29
  })));
31
30
  return [2, new __HttpRequest({
@@ -61,8 +60,7 @@ export var serializeAws_restJson1BatchDisassociateScramSecretCommand = function
61
60
  else {
62
61
  throw new Error("No value provided for input HTTP label: ClusterArn.");
63
62
  }
64
- body = JSON.stringify(__assign({}, (input.SecretArnList !== undefined &&
65
- input.SecretArnList !== null && {
63
+ body = JSON.stringify(__assign({}, (input.SecretArnList != null && {
66
64
  secretArnList: serializeAws_restJson1__listOf__string(input.SecretArnList, context),
67
65
  })));
68
66
  return [2, new __HttpRequest({
@@ -88,26 +86,17 @@ export var serializeAws_restJson1CreateClusterCommand = function (input, context
88
86
  "content-type": "application/json",
89
87
  };
90
88
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/clusters";
91
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerNodeGroupInfo !== undefined &&
92
- input.BrokerNodeGroupInfo !== null && {
89
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerNodeGroupInfo != null && {
93
90
  brokerNodeGroupInfo: serializeAws_restJson1BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
94
- })), (input.ClientAuthentication !== undefined &&
95
- input.ClientAuthentication !== null && {
91
+ })), (input.ClientAuthentication != null && {
96
92
  clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
97
- })), (input.ClusterName !== undefined && input.ClusterName !== null && { clusterName: input.ClusterName })), (input.ConfigurationInfo !== undefined &&
98
- input.ConfigurationInfo !== null && {
93
+ })), (input.ClusterName != null && { clusterName: input.ClusterName })), (input.ConfigurationInfo != null && {
99
94
  configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
100
- })), (input.EncryptionInfo !== undefined &&
101
- input.EncryptionInfo !== null && {
95
+ })), (input.EncryptionInfo != null && {
102
96
  encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
103
- })), (input.EnhancedMonitoring !== undefined &&
104
- input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring })), (input.KafkaVersion !== undefined && input.KafkaVersion !== null && { kafkaVersion: input.KafkaVersion })), (input.LoggingInfo !== undefined &&
105
- input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) })), (input.NumberOfBrokerNodes !== undefined &&
106
- input.NumberOfBrokerNodes !== null && { numberOfBrokerNodes: input.NumberOfBrokerNodes })), (input.OpenMonitoring !== undefined &&
107
- input.OpenMonitoring !== null && {
97
+ })), (input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring })), (input.KafkaVersion != null && { kafkaVersion: input.KafkaVersion })), (input.LoggingInfo != null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) })), (input.NumberOfBrokerNodes != null && { numberOfBrokerNodes: input.NumberOfBrokerNodes })), (input.OpenMonitoring != null && {
108
98
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
109
- })), (input.Tags !== undefined &&
110
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
99
+ })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
111
100
  return [2, new __HttpRequest({
112
101
  protocol: protocol,
113
102
  hostname: hostname,
@@ -131,12 +120,9 @@ export var serializeAws_restJson1CreateClusterV2Command = function (input, conte
131
120
  "content-type": "application/json",
132
121
  };
133
122
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/api/v2/clusters";
134
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ClusterName !== undefined && input.ClusterName !== null && { clusterName: input.ClusterName })), (input.Provisioned !== undefined &&
135
- input.Provisioned !== null && {
123
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ClusterName != null && { clusterName: input.ClusterName })), (input.Provisioned != null && {
136
124
  provisioned: serializeAws_restJson1ProvisionedRequest(input.Provisioned, context),
137
- })), (input.Serverless !== undefined &&
138
- input.Serverless !== null && { serverless: serializeAws_restJson1ServerlessRequest(input.Serverless, context) })), (input.Tags !== undefined &&
139
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
125
+ })), (input.Serverless != null && { serverless: serializeAws_restJson1ServerlessRequest(input.Serverless, context) })), (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
140
126
  return [2, new __HttpRequest({
141
127
  protocol: protocol,
142
128
  hostname: hostname,
@@ -160,11 +146,9 @@ export var serializeAws_restJson1CreateConfigurationCommand = function (input, c
160
146
  "content-type": "application/json",
161
147
  };
162
148
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/configurations";
163
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.KafkaVersions !== undefined &&
164
- input.KafkaVersions !== null && {
149
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { description: input.Description })), (input.KafkaVersions != null && {
165
150
  kafkaVersions: serializeAws_restJson1__listOf__string(input.KafkaVersions, context),
166
- })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.ServerProperties !== undefined &&
167
- input.ServerProperties !== null && { serverProperties: context.base64Encoder(input.ServerProperties) })));
151
+ })), (input.Name != null && { name: input.Name })), (input.ServerProperties != null && { serverProperties: context.base64Encoder(input.ServerProperties) })));
168
152
  return [2, new __HttpRequest({
169
153
  protocol: protocol,
170
154
  hostname: hostname,
@@ -738,8 +722,7 @@ export var serializeAws_restJson1RebootBrokerCommand = function (input, context)
738
722
  else {
739
723
  throw new Error("No value provided for input HTTP label: ClusterArn.");
740
724
  }
741
- body = JSON.stringify(__assign({}, (input.BrokerIds !== undefined &&
742
- input.BrokerIds !== null && { brokerIds: serializeAws_restJson1__listOf__string(input.BrokerIds, context) })));
725
+ body = JSON.stringify(__assign({}, (input.BrokerIds != null && { brokerIds: serializeAws_restJson1__listOf__string(input.BrokerIds, context) })));
743
726
  return [2, new __HttpRequest({
744
727
  protocol: protocol,
745
728
  hostname: hostname,
@@ -773,8 +756,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
773
756
  else {
774
757
  throw new Error("No value provided for input HTTP label: ResourceArn.");
775
758
  }
776
- body = JSON.stringify(__assign({}, (input.Tags !== undefined &&
777
- input.Tags !== null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
759
+ body = JSON.stringify(__assign({}, (input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) })));
778
760
  return [2, new __HttpRequest({
779
761
  protocol: protocol,
780
762
  hostname: hostname,
@@ -841,9 +823,7 @@ export var serializeAws_restJson1UpdateBrokerCountCommand = function (input, con
841
823
  else {
842
824
  throw new Error("No value provided for input HTTP label: ClusterArn.");
843
825
  }
844
- body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion !== undefined &&
845
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })), (input.TargetNumberOfBrokerNodes !== undefined &&
846
- input.TargetNumberOfBrokerNodes !== null && { targetNumberOfBrokerNodes: input.TargetNumberOfBrokerNodes })));
826
+ body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.TargetNumberOfBrokerNodes != null && { targetNumberOfBrokerNodes: input.TargetNumberOfBrokerNodes })));
847
827
  return [2, new __HttpRequest({
848
828
  protocol: protocol,
849
829
  hostname: hostname,
@@ -877,9 +857,7 @@ export var serializeAws_restJson1UpdateBrokerStorageCommand = function (input, c
877
857
  else {
878
858
  throw new Error("No value provided for input HTTP label: ClusterArn.");
879
859
  }
880
- body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion !== undefined &&
881
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })), (input.TargetBrokerEBSVolumeInfo !== undefined &&
882
- input.TargetBrokerEBSVolumeInfo !== null && {
860
+ body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.TargetBrokerEBSVolumeInfo != null && {
883
861
  targetBrokerEBSVolumeInfo: serializeAws_restJson1__listOfBrokerEBSVolumeInfo(input.TargetBrokerEBSVolumeInfo, context),
884
862
  })));
885
863
  return [2, new __HttpRequest({
@@ -915,9 +893,7 @@ export var serializeAws_restJson1UpdateBrokerTypeCommand = function (input, cont
915
893
  else {
916
894
  throw new Error("No value provided for input HTTP label: ClusterArn.");
917
895
  }
918
- body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion !== undefined &&
919
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })), (input.TargetInstanceType !== undefined &&
920
- input.TargetInstanceType !== null && { targetInstanceType: input.TargetInstanceType })));
896
+ body = JSON.stringify(__assign(__assign({}, (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.TargetInstanceType != null && { targetInstanceType: input.TargetInstanceType })));
921
897
  return [2, new __HttpRequest({
922
898
  protocol: protocol,
923
899
  hostname: hostname,
@@ -951,11 +927,9 @@ export var serializeAws_restJson1UpdateClusterConfigurationCommand = function (i
951
927
  else {
952
928
  throw new Error("No value provided for input HTTP label: ClusterArn.");
953
929
  }
954
- body = JSON.stringify(__assign(__assign({}, (input.ConfigurationInfo !== undefined &&
955
- input.ConfigurationInfo !== null && {
930
+ body = JSON.stringify(__assign(__assign({}, (input.ConfigurationInfo != null && {
956
931
  configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
957
- })), (input.CurrentVersion !== undefined &&
958
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })));
932
+ })), (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })));
959
933
  return [2, new __HttpRequest({
960
934
  protocol: protocol,
961
935
  hostname: hostname,
@@ -989,12 +963,9 @@ export var serializeAws_restJson1UpdateClusterKafkaVersionCommand = function (in
989
963
  else {
990
964
  throw new Error("No value provided for input HTTP label: ClusterArn.");
991
965
  }
992
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ConfigurationInfo !== undefined &&
993
- input.ConfigurationInfo !== null && {
966
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ConfigurationInfo != null && {
994
967
  configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
995
- })), (input.CurrentVersion !== undefined &&
996
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })), (input.TargetKafkaVersion !== undefined &&
997
- input.TargetKafkaVersion !== null && { targetKafkaVersion: input.TargetKafkaVersion })));
968
+ })), (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.TargetKafkaVersion != null && { targetKafkaVersion: input.TargetKafkaVersion })));
998
969
  return [2, new __HttpRequest({
999
970
  protocol: protocol,
1000
971
  hostname: hostname,
@@ -1028,8 +999,7 @@ export var serializeAws_restJson1UpdateConfigurationCommand = function (input, c
1028
999
  else {
1029
1000
  throw new Error("No value provided for input HTTP label: Arn.");
1030
1001
  }
1031
- body = JSON.stringify(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.ServerProperties !== undefined &&
1032
- input.ServerProperties !== null && { serverProperties: context.base64Encoder(input.ServerProperties) })));
1002
+ body = JSON.stringify(__assign(__assign({}, (input.Description != null && { description: input.Description })), (input.ServerProperties != null && { serverProperties: context.base64Encoder(input.ServerProperties) })));
1033
1003
  return [2, new __HttpRequest({
1034
1004
  protocol: protocol,
1035
1005
  hostname: hostname,
@@ -1063,11 +1033,9 @@ export var serializeAws_restJson1UpdateConnectivityCommand = function (input, co
1063
1033
  else {
1064
1034
  throw new Error("No value provided for input HTTP label: ClusterArn.");
1065
1035
  }
1066
- body = JSON.stringify(__assign(__assign({}, (input.ConnectivityInfo !== undefined &&
1067
- input.ConnectivityInfo !== null && {
1036
+ body = JSON.stringify(__assign(__assign({}, (input.ConnectivityInfo != null && {
1068
1037
  connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
1069
- })), (input.CurrentVersion !== undefined &&
1070
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })));
1038
+ })), (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })));
1071
1039
  return [2, new __HttpRequest({
1072
1040
  protocol: protocol,
1073
1041
  hostname: hostname,
@@ -1101,11 +1069,7 @@ export var serializeAws_restJson1UpdateMonitoringCommand = function (input, cont
1101
1069
  else {
1102
1070
  throw new Error("No value provided for input HTTP label: ClusterArn.");
1103
1071
  }
1104
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CurrentVersion !== undefined &&
1105
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })), (input.EnhancedMonitoring !== undefined &&
1106
- input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring })), (input.LoggingInfo !== undefined &&
1107
- input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) })), (input.OpenMonitoring !== undefined &&
1108
- input.OpenMonitoring !== null && {
1072
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring })), (input.LoggingInfo != null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) })), (input.OpenMonitoring != null && {
1109
1073
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
1110
1074
  })));
1111
1075
  return [2, new __HttpRequest({
@@ -1141,12 +1105,9 @@ export var serializeAws_restJson1UpdateSecurityCommand = function (input, contex
1141
1105
  else {
1142
1106
  throw new Error("No value provided for input HTTP label: ClusterArn.");
1143
1107
  }
1144
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ClientAuthentication !== undefined &&
1145
- input.ClientAuthentication !== null && {
1108
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.ClientAuthentication != null && {
1146
1109
  clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
1147
- })), (input.CurrentVersion !== undefined &&
1148
- input.CurrentVersion !== null && { currentVersion: input.CurrentVersion })), (input.EncryptionInfo !== undefined &&
1149
- input.EncryptionInfo !== null && {
1110
+ })), (input.CurrentVersion != null && { currentVersion: input.CurrentVersion })), (input.EncryptionInfo != null && {
1150
1111
  encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
1151
1112
  })));
1152
1113
  return [2, new __HttpRequest({
@@ -4113,174 +4074,139 @@ var serializeAws_restJson1__mapOf__string = function (input, context) {
4113
4074
  }, {});
4114
4075
  };
4115
4076
  var serializeAws_restJson1BrokerEBSVolumeInfo = function (input, context) {
4116
- return __assign(__assign(__assign({}, (input.KafkaBrokerNodeId !== undefined &&
4117
- input.KafkaBrokerNodeId !== null && { kafkaBrokerNodeId: input.KafkaBrokerNodeId })), (input.ProvisionedThroughput !== undefined &&
4118
- input.ProvisionedThroughput !== null && {
4077
+ return __assign(__assign(__assign({}, (input.KafkaBrokerNodeId != null && { kafkaBrokerNodeId: input.KafkaBrokerNodeId })), (input.ProvisionedThroughput != null && {
4119
4078
  provisionedThroughput: serializeAws_restJson1ProvisionedThroughput(input.ProvisionedThroughput, context),
4120
- })), (input.VolumeSizeGB !== undefined && input.VolumeSizeGB !== null && { volumeSizeGB: input.VolumeSizeGB }));
4079
+ })), (input.VolumeSizeGB != null && { volumeSizeGB: input.VolumeSizeGB }));
4121
4080
  };
4122
4081
  var serializeAws_restJson1BrokerLogs = function (input, context) {
4123
- return __assign(__assign(__assign({}, (input.CloudWatchLogs !== undefined &&
4124
- input.CloudWatchLogs !== null && {
4082
+ return __assign(__assign(__assign({}, (input.CloudWatchLogs != null && {
4125
4083
  cloudWatchLogs: serializeAws_restJson1CloudWatchLogs(input.CloudWatchLogs, context),
4126
- })), (input.Firehose !== undefined &&
4127
- input.Firehose !== null && { firehose: serializeAws_restJson1Firehose(input.Firehose, context) })), (input.S3 !== undefined && input.S3 !== null && { s3: serializeAws_restJson1S3(input.S3, context) }));
4084
+ })), (input.Firehose != null && { firehose: serializeAws_restJson1Firehose(input.Firehose, context) })), (input.S3 != null && { s3: serializeAws_restJson1S3(input.S3, context) }));
4128
4085
  };
4129
4086
  var serializeAws_restJson1BrokerNodeGroupInfo = function (input, context) {
4130
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerAZDistribution !== undefined &&
4131
- input.BrokerAZDistribution !== null && { brokerAZDistribution: input.BrokerAZDistribution })), (input.ClientSubnets !== undefined &&
4132
- input.ClientSubnets !== null && {
4087
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerAZDistribution != null && { brokerAZDistribution: input.BrokerAZDistribution })), (input.ClientSubnets != null && {
4133
4088
  clientSubnets: serializeAws_restJson1__listOf__string(input.ClientSubnets, context),
4134
- })), (input.ConnectivityInfo !== undefined &&
4135
- input.ConnectivityInfo !== null && {
4089
+ })), (input.ConnectivityInfo != null && {
4136
4090
  connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
4137
- })), (input.InstanceType !== undefined && input.InstanceType !== null && { instanceType: input.InstanceType })), (input.SecurityGroups !== undefined &&
4138
- input.SecurityGroups !== null && {
4091
+ })), (input.InstanceType != null && { instanceType: input.InstanceType })), (input.SecurityGroups != null && {
4139
4092
  securityGroups: serializeAws_restJson1__listOf__string(input.SecurityGroups, context),
4140
- })), (input.StorageInfo !== undefined &&
4141
- input.StorageInfo !== null && { storageInfo: serializeAws_restJson1StorageInfo(input.StorageInfo, context) }));
4093
+ })), (input.StorageInfo != null && { storageInfo: serializeAws_restJson1StorageInfo(input.StorageInfo, context) }));
4142
4094
  };
4143
4095
  var serializeAws_restJson1ClientAuthentication = function (input, context) {
4144
- return __assign(__assign(__assign({}, (input.Sasl !== undefined && input.Sasl !== null && { sasl: serializeAws_restJson1Sasl(input.Sasl, context) })), (input.Tls !== undefined && input.Tls !== null && { tls: serializeAws_restJson1Tls(input.Tls, context) })), (input.Unauthenticated !== undefined &&
4145
- input.Unauthenticated !== null && {
4096
+ return __assign(__assign(__assign({}, (input.Sasl != null && { sasl: serializeAws_restJson1Sasl(input.Sasl, context) })), (input.Tls != null && { tls: serializeAws_restJson1Tls(input.Tls, context) })), (input.Unauthenticated != null && {
4146
4097
  unauthenticated: serializeAws_restJson1Unauthenticated(input.Unauthenticated, context),
4147
4098
  }));
4148
4099
  };
4149
4100
  var serializeAws_restJson1CloudWatchLogs = function (input, context) {
4150
- return __assign(__assign({}, (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled })), (input.LogGroup !== undefined && input.LogGroup !== null && { logGroup: input.LogGroup }));
4101
+ return __assign(__assign({}, (input.Enabled != null && { enabled: input.Enabled })), (input.LogGroup != null && { logGroup: input.LogGroup }));
4151
4102
  };
4152
4103
  var serializeAws_restJson1ConfigurationInfo = function (input, context) {
4153
- return __assign(__assign({}, (input.Arn !== undefined && input.Arn !== null && { arn: input.Arn })), (input.Revision !== undefined && input.Revision !== null && { revision: input.Revision }));
4104
+ return __assign(__assign({}, (input.Arn != null && { arn: input.Arn })), (input.Revision != null && { revision: input.Revision }));
4154
4105
  };
4155
4106
  var serializeAws_restJson1ConnectivityInfo = function (input, context) {
4156
- return __assign({}, (input.PublicAccess !== undefined &&
4157
- input.PublicAccess !== null && { publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context) }));
4107
+ return __assign({}, (input.PublicAccess != null && {
4108
+ publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context),
4109
+ }));
4158
4110
  };
4159
4111
  var serializeAws_restJson1EBSStorageInfo = function (input, context) {
4160
- return __assign(__assign({}, (input.ProvisionedThroughput !== undefined &&
4161
- input.ProvisionedThroughput !== null && {
4112
+ return __assign(__assign({}, (input.ProvisionedThroughput != null && {
4162
4113
  provisionedThroughput: serializeAws_restJson1ProvisionedThroughput(input.ProvisionedThroughput, context),
4163
- })), (input.VolumeSize !== undefined && input.VolumeSize !== null && { volumeSize: input.VolumeSize }));
4114
+ })), (input.VolumeSize != null && { volumeSize: input.VolumeSize }));
4164
4115
  };
4165
4116
  var serializeAws_restJson1EncryptionAtRest = function (input, context) {
4166
- return __assign({}, (input.DataVolumeKMSKeyId !== undefined &&
4167
- input.DataVolumeKMSKeyId !== null && { dataVolumeKMSKeyId: input.DataVolumeKMSKeyId }));
4117
+ return __assign({}, (input.DataVolumeKMSKeyId != null && { dataVolumeKMSKeyId: input.DataVolumeKMSKeyId }));
4168
4118
  };
4169
4119
  var serializeAws_restJson1EncryptionInfo = function (input, context) {
4170
- return __assign(__assign({}, (input.EncryptionAtRest !== undefined &&
4171
- input.EncryptionAtRest !== null && {
4120
+ return __assign(__assign({}, (input.EncryptionAtRest != null && {
4172
4121
  encryptionAtRest: serializeAws_restJson1EncryptionAtRest(input.EncryptionAtRest, context),
4173
- })), (input.EncryptionInTransit !== undefined &&
4174
- input.EncryptionInTransit !== null && {
4122
+ })), (input.EncryptionInTransit != null && {
4175
4123
  encryptionInTransit: serializeAws_restJson1EncryptionInTransit(input.EncryptionInTransit, context),
4176
4124
  }));
4177
4125
  };
4178
4126
  var serializeAws_restJson1EncryptionInTransit = function (input, context) {
4179
- return __assign(__assign({}, (input.ClientBroker !== undefined && input.ClientBroker !== null && { clientBroker: input.ClientBroker })), (input.InCluster !== undefined && input.InCluster !== null && { inCluster: input.InCluster }));
4127
+ return __assign(__assign({}, (input.ClientBroker != null && { clientBroker: input.ClientBroker })), (input.InCluster != null && { inCluster: input.InCluster }));
4180
4128
  };
4181
4129
  var serializeAws_restJson1Firehose = function (input, context) {
4182
- return __assign(__assign({}, (input.DeliveryStream !== undefined &&
4183
- input.DeliveryStream !== null && { deliveryStream: input.DeliveryStream })), (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }));
4130
+ return __assign(__assign({}, (input.DeliveryStream != null && { deliveryStream: input.DeliveryStream })), (input.Enabled != null && { enabled: input.Enabled }));
4184
4131
  };
4185
4132
  var serializeAws_restJson1Iam = function (input, context) {
4186
- return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }));
4133
+ return __assign({}, (input.Enabled != null && { enabled: input.Enabled }));
4187
4134
  };
4188
4135
  var serializeAws_restJson1JmxExporterInfo = function (input, context) {
4189
- return __assign({}, (input.EnabledInBroker !== undefined &&
4190
- input.EnabledInBroker !== null && { enabledInBroker: input.EnabledInBroker }));
4136
+ return __assign({}, (input.EnabledInBroker != null && { enabledInBroker: input.EnabledInBroker }));
4191
4137
  };
4192
4138
  var serializeAws_restJson1LoggingInfo = function (input, context) {
4193
- return __assign({}, (input.BrokerLogs !== undefined &&
4194
- input.BrokerLogs !== null && { brokerLogs: serializeAws_restJson1BrokerLogs(input.BrokerLogs, context) }));
4139
+ return __assign({}, (input.BrokerLogs != null && { brokerLogs: serializeAws_restJson1BrokerLogs(input.BrokerLogs, context) }));
4195
4140
  };
4196
4141
  var serializeAws_restJson1NodeExporterInfo = function (input, context) {
4197
- return __assign({}, (input.EnabledInBroker !== undefined &&
4198
- input.EnabledInBroker !== null && { enabledInBroker: input.EnabledInBroker }));
4142
+ return __assign({}, (input.EnabledInBroker != null && { enabledInBroker: input.EnabledInBroker }));
4199
4143
  };
4200
4144
  var serializeAws_restJson1OpenMonitoringInfo = function (input, context) {
4201
- return __assign({}, (input.Prometheus !== undefined &&
4202
- input.Prometheus !== null && { prometheus: serializeAws_restJson1PrometheusInfo(input.Prometheus, context) }));
4145
+ return __assign({}, (input.Prometheus != null && { prometheus: serializeAws_restJson1PrometheusInfo(input.Prometheus, context) }));
4203
4146
  };
4204
4147
  var serializeAws_restJson1PrometheusInfo = function (input, context) {
4205
- return __assign(__assign({}, (input.JmxExporter !== undefined &&
4206
- input.JmxExporter !== null && { jmxExporter: serializeAws_restJson1JmxExporterInfo(input.JmxExporter, context) })), (input.NodeExporter !== undefined &&
4207
- input.NodeExporter !== null && {
4148
+ return __assign(__assign({}, (input.JmxExporter != null && {
4149
+ jmxExporter: serializeAws_restJson1JmxExporterInfo(input.JmxExporter, context),
4150
+ })), (input.NodeExporter != null && {
4208
4151
  nodeExporter: serializeAws_restJson1NodeExporterInfo(input.NodeExporter, context),
4209
4152
  }));
4210
4153
  };
4211
4154
  var serializeAws_restJson1ProvisionedRequest = function (input, context) {
4212
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerNodeGroupInfo !== undefined &&
4213
- input.BrokerNodeGroupInfo !== null && {
4155
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BrokerNodeGroupInfo != null && {
4214
4156
  brokerNodeGroupInfo: serializeAws_restJson1BrokerNodeGroupInfo(input.BrokerNodeGroupInfo, context),
4215
- })), (input.ClientAuthentication !== undefined &&
4216
- input.ClientAuthentication !== null && {
4157
+ })), (input.ClientAuthentication != null && {
4217
4158
  clientAuthentication: serializeAws_restJson1ClientAuthentication(input.ClientAuthentication, context),
4218
- })), (input.ConfigurationInfo !== undefined &&
4219
- input.ConfigurationInfo !== null && {
4159
+ })), (input.ConfigurationInfo != null && {
4220
4160
  configurationInfo: serializeAws_restJson1ConfigurationInfo(input.ConfigurationInfo, context),
4221
- })), (input.EncryptionInfo !== undefined &&
4222
- input.EncryptionInfo !== null && {
4161
+ })), (input.EncryptionInfo != null && {
4223
4162
  encryptionInfo: serializeAws_restJson1EncryptionInfo(input.EncryptionInfo, context),
4224
- })), (input.EnhancedMonitoring !== undefined &&
4225
- input.EnhancedMonitoring !== null && { enhancedMonitoring: input.EnhancedMonitoring })), (input.KafkaVersion !== undefined && input.KafkaVersion !== null && { kafkaVersion: input.KafkaVersion })), (input.LoggingInfo !== undefined &&
4226
- input.LoggingInfo !== null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) })), (input.NumberOfBrokerNodes !== undefined &&
4227
- input.NumberOfBrokerNodes !== null && { numberOfBrokerNodes: input.NumberOfBrokerNodes })), (input.OpenMonitoring !== undefined &&
4228
- input.OpenMonitoring !== null && {
4163
+ })), (input.EnhancedMonitoring != null && { enhancedMonitoring: input.EnhancedMonitoring })), (input.KafkaVersion != null && { kafkaVersion: input.KafkaVersion })), (input.LoggingInfo != null && { loggingInfo: serializeAws_restJson1LoggingInfo(input.LoggingInfo, context) })), (input.NumberOfBrokerNodes != null && { numberOfBrokerNodes: input.NumberOfBrokerNodes })), (input.OpenMonitoring != null && {
4229
4164
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
4230
4165
  }));
4231
4166
  };
4232
4167
  var serializeAws_restJson1ProvisionedThroughput = function (input, context) {
4233
- return __assign(__assign({}, (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled })), (input.VolumeThroughput !== undefined &&
4234
- input.VolumeThroughput !== null && { volumeThroughput: input.VolumeThroughput }));
4168
+ return __assign(__assign({}, (input.Enabled != null && { enabled: input.Enabled })), (input.VolumeThroughput != null && { volumeThroughput: input.VolumeThroughput }));
4235
4169
  };
4236
4170
  var serializeAws_restJson1PublicAccess = function (input, context) {
4237
- return __assign({}, (input.Type !== undefined && input.Type !== null && { type: input.Type }));
4171
+ return __assign({}, (input.Type != null && { type: input.Type }));
4238
4172
  };
4239
4173
  var serializeAws_restJson1S3 = function (input, context) {
4240
- return __assign(__assign(__assign({}, (input.Bucket !== undefined && input.Bucket !== null && { bucket: input.Bucket })), (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled })), (input.Prefix !== undefined && input.Prefix !== null && { prefix: input.Prefix }));
4174
+ return __assign(__assign(__assign({}, (input.Bucket != null && { bucket: input.Bucket })), (input.Enabled != null && { enabled: input.Enabled })), (input.Prefix != null && { prefix: input.Prefix }));
4241
4175
  };
4242
4176
  var serializeAws_restJson1Sasl = function (input, context) {
4243
- return __assign(__assign({}, (input.Iam !== undefined && input.Iam !== null && { iam: serializeAws_restJson1Iam(input.Iam, context) })), (input.Scram !== undefined &&
4244
- input.Scram !== null && { scram: serializeAws_restJson1Scram(input.Scram, context) }));
4177
+ return __assign(__assign({}, (input.Iam != null && { iam: serializeAws_restJson1Iam(input.Iam, context) })), (input.Scram != null && { scram: serializeAws_restJson1Scram(input.Scram, context) }));
4245
4178
  };
4246
4179
  var serializeAws_restJson1Scram = function (input, context) {
4247
- return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }));
4180
+ return __assign({}, (input.Enabled != null && { enabled: input.Enabled }));
4248
4181
  };
4249
4182
  var serializeAws_restJson1ServerlessClientAuthentication = function (input, context) {
4250
- return __assign({}, (input.Sasl !== undefined &&
4251
- input.Sasl !== null && { sasl: serializeAws_restJson1ServerlessSasl(input.Sasl, context) }));
4183
+ return __assign({}, (input.Sasl != null && { sasl: serializeAws_restJson1ServerlessSasl(input.Sasl, context) }));
4252
4184
  };
4253
4185
  var serializeAws_restJson1ServerlessRequest = function (input, context) {
4254
- return __assign(__assign({}, (input.ClientAuthentication !== undefined &&
4255
- input.ClientAuthentication !== null && {
4186
+ return __assign(__assign({}, (input.ClientAuthentication != null && {
4256
4187
  clientAuthentication: serializeAws_restJson1ServerlessClientAuthentication(input.ClientAuthentication, context),
4257
- })), (input.VpcConfigs !== undefined &&
4258
- input.VpcConfigs !== null && { vpcConfigs: serializeAws_restJson1__listOfVpcConfig(input.VpcConfigs, context) }));
4188
+ })), (input.VpcConfigs != null && { vpcConfigs: serializeAws_restJson1__listOfVpcConfig(input.VpcConfigs, context) }));
4259
4189
  };
4260
4190
  var serializeAws_restJson1ServerlessSasl = function (input, context) {
4261
- return __assign({}, (input.Iam !== undefined && input.Iam !== null && { iam: serializeAws_restJson1Iam(input.Iam, context) }));
4191
+ return __assign({}, (input.Iam != null && { iam: serializeAws_restJson1Iam(input.Iam, context) }));
4262
4192
  };
4263
4193
  var serializeAws_restJson1StorageInfo = function (input, context) {
4264
- return __assign({}, (input.EbsStorageInfo !== undefined &&
4265
- input.EbsStorageInfo !== null && {
4194
+ return __assign({}, (input.EbsStorageInfo != null && {
4266
4195
  ebsStorageInfo: serializeAws_restJson1EBSStorageInfo(input.EbsStorageInfo, context),
4267
4196
  }));
4268
4197
  };
4269
4198
  var serializeAws_restJson1Tls = function (input, context) {
4270
- return __assign(__assign({}, (input.CertificateAuthorityArnList !== undefined &&
4271
- input.CertificateAuthorityArnList !== null && {
4199
+ return __assign(__assign({}, (input.CertificateAuthorityArnList != null && {
4272
4200
  certificateAuthorityArnList: serializeAws_restJson1__listOf__string(input.CertificateAuthorityArnList, context),
4273
- })), (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }));
4201
+ })), (input.Enabled != null && { enabled: input.Enabled }));
4274
4202
  };
4275
4203
  var serializeAws_restJson1Unauthenticated = function (input, context) {
4276
- return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { enabled: input.Enabled }));
4204
+ return __assign({}, (input.Enabled != null && { enabled: input.Enabled }));
4277
4205
  };
4278
4206
  var serializeAws_restJson1VpcConfig = function (input, context) {
4279
- return __assign(__assign({}, (input.SecurityGroupIds !== undefined &&
4280
- input.SecurityGroupIds !== null && {
4207
+ return __assign(__assign({}, (input.SecurityGroupIds != null && {
4281
4208
  securityGroupIds: serializeAws_restJson1__listOf__string(input.SecurityGroupIds, context),
4282
- })), (input.SubnetIds !== undefined &&
4283
- input.SubnetIds !== null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }));
4209
+ })), (input.SubnetIds != null && { subnetIds: serializeAws_restJson1__listOf__string(input.SubnetIds, context) }));
4284
4210
  };
4285
4211
  var deserializeAws_restJson1__listOf__string = function (output, context) {
4286
4212
  var retVal = (output || [])
@@ -4438,7 +4364,7 @@ var deserializeAws_restJson1__mapOf__string = function (output, context) {
4438
4364
  var deserializeAws_restJson1BrokerEBSVolumeInfo = function (output, context) {
4439
4365
  return {
4440
4366
  KafkaBrokerNodeId: __expectString(output.kafkaBrokerNodeId),
4441
- ProvisionedThroughput: output.provisionedThroughput !== undefined && output.provisionedThroughput !== null
4367
+ ProvisionedThroughput: output.provisionedThroughput != null
4442
4368
  ? deserializeAws_restJson1ProvisionedThroughput(output.provisionedThroughput, context)
4443
4369
  : undefined,
4444
4370
  VolumeSizeGB: __expectInt32(output.volumeSizeGB),
@@ -4446,31 +4372,27 @@ var deserializeAws_restJson1BrokerEBSVolumeInfo = function (output, context) {
4446
4372
  };
4447
4373
  var deserializeAws_restJson1BrokerLogs = function (output, context) {
4448
4374
  return {
4449
- CloudWatchLogs: output.cloudWatchLogs !== undefined && output.cloudWatchLogs !== null
4375
+ CloudWatchLogs: output.cloudWatchLogs != null
4450
4376
  ? deserializeAws_restJson1CloudWatchLogs(output.cloudWatchLogs, context)
4451
4377
  : undefined,
4452
- Firehose: output.firehose !== undefined && output.firehose !== null
4453
- ? deserializeAws_restJson1Firehose(output.firehose, context)
4454
- : undefined,
4455
- S3: output.s3 !== undefined && output.s3 !== null ? deserializeAws_restJson1S3(output.s3, context) : undefined,
4378
+ Firehose: output.firehose != null ? deserializeAws_restJson1Firehose(output.firehose, context) : undefined,
4379
+ S3: output.s3 != null ? deserializeAws_restJson1S3(output.s3, context) : undefined,
4456
4380
  };
4457
4381
  };
4458
4382
  var deserializeAws_restJson1BrokerNodeGroupInfo = function (output, context) {
4459
4383
  return {
4460
4384
  BrokerAZDistribution: __expectString(output.brokerAZDistribution),
4461
- ClientSubnets: output.clientSubnets !== undefined && output.clientSubnets !== null
4385
+ ClientSubnets: output.clientSubnets != null
4462
4386
  ? deserializeAws_restJson1__listOf__string(output.clientSubnets, context)
4463
4387
  : undefined,
4464
- ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
4388
+ ConnectivityInfo: output.connectivityInfo != null
4465
4389
  ? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
4466
4390
  : undefined,
4467
4391
  InstanceType: __expectString(output.instanceType),
4468
- SecurityGroups: output.securityGroups !== undefined && output.securityGroups !== null
4392
+ SecurityGroups: output.securityGroups != null
4469
4393
  ? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
4470
4394
  : undefined,
4471
- StorageInfo: output.storageInfo !== undefined && output.storageInfo !== null
4472
- ? deserializeAws_restJson1StorageInfo(output.storageInfo, context)
4473
- : undefined,
4395
+ StorageInfo: output.storageInfo != null ? deserializeAws_restJson1StorageInfo(output.storageInfo, context) : undefined,
4474
4396
  };
4475
4397
  };
4476
4398
  var deserializeAws_restJson1BrokerNodeInfo = function (output, context) {
@@ -4479,12 +4401,10 @@ var deserializeAws_restJson1BrokerNodeInfo = function (output, context) {
4479
4401
  BrokerId: __limitedParseDouble(output.brokerId),
4480
4402
  ClientSubnet: __expectString(output.clientSubnet),
4481
4403
  ClientVpcIpAddress: __expectString(output.clientVpcIpAddress),
4482
- CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
4404
+ CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
4483
4405
  ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
4484
4406
  : undefined,
4485
- Endpoints: output.endpoints !== undefined && output.endpoints !== null
4486
- ? deserializeAws_restJson1__listOf__string(output.endpoints, context)
4487
- : undefined,
4407
+ Endpoints: output.endpoints != null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined,
4488
4408
  };
4489
4409
  };
4490
4410
  var deserializeAws_restJson1BrokerSoftwareInfo = function (output, context) {
@@ -4496,11 +4416,9 @@ var deserializeAws_restJson1BrokerSoftwareInfo = function (output, context) {
4496
4416
  };
4497
4417
  var deserializeAws_restJson1ClientAuthentication = function (output, context) {
4498
4418
  return {
4499
- Sasl: output.sasl !== undefined && output.sasl !== null
4500
- ? deserializeAws_restJson1Sasl(output.sasl, context)
4501
- : undefined,
4502
- Tls: output.tls !== undefined && output.tls !== null ? deserializeAws_restJson1Tls(output.tls, context) : undefined,
4503
- Unauthenticated: output.unauthenticated !== undefined && output.unauthenticated !== null
4419
+ Sasl: output.sasl != null ? deserializeAws_restJson1Sasl(output.sasl, context) : undefined,
4420
+ Tls: output.tls != null ? deserializeAws_restJson1Tls(output.tls, context) : undefined,
4421
+ Unauthenticated: output.unauthenticated != null
4504
4422
  ? deserializeAws_restJson1Unauthenticated(output.unauthenticated, context)
4505
4423
  : undefined,
4506
4424
  };
@@ -4517,61 +4435,43 @@ var deserializeAws_restJson1Cluster = function (output, context) {
4517
4435
  ClusterArn: __expectString(output.clusterArn),
4518
4436
  ClusterName: __expectString(output.clusterName),
4519
4437
  ClusterType: __expectString(output.clusterType),
4520
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
4521
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
4522
- : undefined,
4438
+ CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
4523
4439
  CurrentVersion: __expectString(output.currentVersion),
4524
- Provisioned: output.provisioned !== undefined && output.provisioned !== null
4525
- ? deserializeAws_restJson1Provisioned(output.provisioned, context)
4526
- : undefined,
4527
- Serverless: output.serverless !== undefined && output.serverless !== null
4528
- ? deserializeAws_restJson1Serverless(output.serverless, context)
4529
- : undefined,
4440
+ Provisioned: output.provisioned != null ? deserializeAws_restJson1Provisioned(output.provisioned, context) : undefined,
4441
+ Serverless: output.serverless != null ? deserializeAws_restJson1Serverless(output.serverless, context) : undefined,
4530
4442
  State: __expectString(output.state),
4531
- StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
4532
- ? deserializeAws_restJson1StateInfo(output.stateInfo, context)
4533
- : undefined,
4534
- Tags: output.tags !== undefined && output.tags !== null
4535
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
4536
- : undefined,
4443
+ StateInfo: output.stateInfo != null ? deserializeAws_restJson1StateInfo(output.stateInfo, context) : undefined,
4444
+ Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
4537
4445
  };
4538
4446
  };
4539
4447
  var deserializeAws_restJson1ClusterInfo = function (output, context) {
4540
4448
  return {
4541
4449
  ActiveOperationArn: __expectString(output.activeOperationArn),
4542
- BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
4450
+ BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null
4543
4451
  ? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
4544
4452
  : undefined,
4545
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
4453
+ ClientAuthentication: output.clientAuthentication != null
4546
4454
  ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
4547
4455
  : undefined,
4548
4456
  ClusterArn: __expectString(output.clusterArn),
4549
4457
  ClusterName: __expectString(output.clusterName),
4550
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
4551
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
4552
- : undefined,
4553
- CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
4458
+ CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
4459
+ CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
4554
4460
  ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
4555
4461
  : undefined,
4556
4462
  CurrentVersion: __expectString(output.currentVersion),
4557
- EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
4463
+ EncryptionInfo: output.encryptionInfo != null
4558
4464
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
4559
4465
  : undefined,
4560
4466
  EnhancedMonitoring: __expectString(output.enhancedMonitoring),
4561
- LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
4562
- ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
4563
- : undefined,
4467
+ LoggingInfo: output.loggingInfo != null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined,
4564
4468
  NumberOfBrokerNodes: __expectInt32(output.numberOfBrokerNodes),
4565
- OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
4469
+ OpenMonitoring: output.openMonitoring != null
4566
4470
  ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
4567
4471
  : undefined,
4568
4472
  State: __expectString(output.state),
4569
- StateInfo: output.stateInfo !== undefined && output.stateInfo !== null
4570
- ? deserializeAws_restJson1StateInfo(output.stateInfo, context)
4571
- : undefined,
4572
- Tags: output.tags !== undefined && output.tags !== null
4573
- ? deserializeAws_restJson1__mapOf__string(output.tags, context)
4574
- : undefined,
4473
+ StateInfo: output.stateInfo != null ? deserializeAws_restJson1StateInfo(output.stateInfo, context) : undefined,
4474
+ Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
4575
4475
  ZookeeperConnectString: __expectString(output.zookeeperConnectString),
4576
4476
  ZookeeperConnectStringTls: __expectString(output.zookeeperConnectStringTls),
4577
4477
  };
@@ -4580,34 +4480,26 @@ var deserializeAws_restJson1ClusterOperationInfo = function (output, context) {
4580
4480
  return {
4581
4481
  ClientRequestId: __expectString(output.clientRequestId),
4582
4482
  ClusterArn: __expectString(output.clusterArn),
4583
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
4584
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
4585
- : undefined,
4586
- EndTime: output.endTime !== undefined && output.endTime !== null
4587
- ? __expectNonNull(__parseRfc3339DateTime(output.endTime))
4588
- : undefined,
4589
- ErrorInfo: output.errorInfo !== undefined && output.errorInfo !== null
4590
- ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context)
4591
- : undefined,
4483
+ CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
4484
+ EndTime: output.endTime != null ? __expectNonNull(__parseRfc3339DateTime(output.endTime)) : undefined,
4485
+ ErrorInfo: output.errorInfo != null ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context) : undefined,
4592
4486
  OperationArn: __expectString(output.operationArn),
4593
4487
  OperationState: __expectString(output.operationState),
4594
- OperationSteps: output.operationSteps !== undefined && output.operationSteps !== null
4488
+ OperationSteps: output.operationSteps != null
4595
4489
  ? deserializeAws_restJson1__listOfClusterOperationStep(output.operationSteps, context)
4596
4490
  : undefined,
4597
4491
  OperationType: __expectString(output.operationType),
4598
- SourceClusterInfo: output.sourceClusterInfo !== undefined && output.sourceClusterInfo !== null
4492
+ SourceClusterInfo: output.sourceClusterInfo != null
4599
4493
  ? deserializeAws_restJson1MutableClusterInfo(output.sourceClusterInfo, context)
4600
4494
  : undefined,
4601
- TargetClusterInfo: output.targetClusterInfo !== undefined && output.targetClusterInfo !== null
4495
+ TargetClusterInfo: output.targetClusterInfo != null
4602
4496
  ? deserializeAws_restJson1MutableClusterInfo(output.targetClusterInfo, context)
4603
4497
  : undefined,
4604
4498
  };
4605
4499
  };
4606
4500
  var deserializeAws_restJson1ClusterOperationStep = function (output, context) {
4607
4501
  return {
4608
- StepInfo: output.stepInfo !== undefined && output.stepInfo !== null
4609
- ? deserializeAws_restJson1ClusterOperationStepInfo(output.stepInfo, context)
4610
- : undefined,
4502
+ StepInfo: output.stepInfo != null ? deserializeAws_restJson1ClusterOperationStepInfo(output.stepInfo, context) : undefined,
4611
4503
  StepName: __expectString(output.stepName),
4612
4504
  };
4613
4505
  };
@@ -4619,7 +4511,7 @@ var deserializeAws_restJson1ClusterOperationStepInfo = function (output, context
4619
4511
  var deserializeAws_restJson1CompatibleKafkaVersion = function (output, context) {
4620
4512
  return {
4621
4513
  SourceVersion: __expectString(output.sourceVersion),
4622
- TargetVersions: output.targetVersions !== undefined && output.targetVersions !== null
4514
+ TargetVersions: output.targetVersions != null
4623
4515
  ? deserializeAws_restJson1__listOf__string(output.targetVersions, context)
4624
4516
  : undefined,
4625
4517
  };
@@ -4627,14 +4519,12 @@ var deserializeAws_restJson1CompatibleKafkaVersion = function (output, context)
4627
4519
  var deserializeAws_restJson1Configuration = function (output, context) {
4628
4520
  return {
4629
4521
  Arn: __expectString(output.arn),
4630
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
4631
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
4632
- : undefined,
4522
+ CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
4633
4523
  Description: __expectString(output.description),
4634
- KafkaVersions: output.kafkaVersions !== undefined && output.kafkaVersions !== null
4524
+ KafkaVersions: output.kafkaVersions != null
4635
4525
  ? deserializeAws_restJson1__listOf__string(output.kafkaVersions, context)
4636
4526
  : undefined,
4637
- LatestRevision: output.latestRevision !== undefined && output.latestRevision !== null
4527
+ LatestRevision: output.latestRevision != null
4638
4528
  ? deserializeAws_restJson1ConfigurationRevision(output.latestRevision, context)
4639
4529
  : undefined,
4640
4530
  Name: __expectString(output.name),
@@ -4649,23 +4539,19 @@ var deserializeAws_restJson1ConfigurationInfo = function (output, context) {
4649
4539
  };
4650
4540
  var deserializeAws_restJson1ConfigurationRevision = function (output, context) {
4651
4541
  return {
4652
- CreationTime: output.creationTime !== undefined && output.creationTime !== null
4653
- ? __expectNonNull(__parseRfc3339DateTime(output.creationTime))
4654
- : undefined,
4542
+ CreationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
4655
4543
  Description: __expectString(output.description),
4656
4544
  Revision: __expectLong(output.revision),
4657
4545
  };
4658
4546
  };
4659
4547
  var deserializeAws_restJson1ConnectivityInfo = function (output, context) {
4660
4548
  return {
4661
- PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
4662
- ? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
4663
- : undefined,
4549
+ PublicAccess: output.publicAccess != null ? deserializeAws_restJson1PublicAccess(output.publicAccess, context) : undefined,
4664
4550
  };
4665
4551
  };
4666
4552
  var deserializeAws_restJson1EBSStorageInfo = function (output, context) {
4667
4553
  return {
4668
- ProvisionedThroughput: output.provisionedThroughput !== undefined && output.provisionedThroughput !== null
4554
+ ProvisionedThroughput: output.provisionedThroughput != null
4669
4555
  ? deserializeAws_restJson1ProvisionedThroughput(output.provisionedThroughput, context)
4670
4556
  : undefined,
4671
4557
  VolumeSize: __expectInt32(output.volumeSize),
@@ -4678,10 +4564,10 @@ var deserializeAws_restJson1EncryptionAtRest = function (output, context) {
4678
4564
  };
4679
4565
  var deserializeAws_restJson1EncryptionInfo = function (output, context) {
4680
4566
  return {
4681
- EncryptionAtRest: output.encryptionAtRest !== undefined && output.encryptionAtRest !== null
4567
+ EncryptionAtRest: output.encryptionAtRest != null
4682
4568
  ? deserializeAws_restJson1EncryptionAtRest(output.encryptionAtRest, context)
4683
4569
  : undefined,
4684
- EncryptionInTransit: output.encryptionInTransit !== undefined && output.encryptionInTransit !== null
4570
+ EncryptionInTransit: output.encryptionInTransit != null
4685
4571
  ? deserializeAws_restJson1EncryptionInTransit(output.encryptionInTransit, context)
4686
4572
  : undefined,
4687
4573
  };
@@ -4727,36 +4613,32 @@ var deserializeAws_restJson1KafkaVersion = function (output, context) {
4727
4613
  };
4728
4614
  var deserializeAws_restJson1LoggingInfo = function (output, context) {
4729
4615
  return {
4730
- BrokerLogs: output.brokerLogs !== undefined && output.brokerLogs !== null
4731
- ? deserializeAws_restJson1BrokerLogs(output.brokerLogs, context)
4732
- : undefined,
4616
+ BrokerLogs: output.brokerLogs != null ? deserializeAws_restJson1BrokerLogs(output.brokerLogs, context) : undefined,
4733
4617
  };
4734
4618
  };
4735
4619
  var deserializeAws_restJson1MutableClusterInfo = function (output, context) {
4736
4620
  return {
4737
- BrokerEBSVolumeInfo: output.brokerEBSVolumeInfo !== undefined && output.brokerEBSVolumeInfo !== null
4621
+ BrokerEBSVolumeInfo: output.brokerEBSVolumeInfo != null
4738
4622
  ? deserializeAws_restJson1__listOfBrokerEBSVolumeInfo(output.brokerEBSVolumeInfo, context)
4739
4623
  : undefined,
4740
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
4624
+ ClientAuthentication: output.clientAuthentication != null
4741
4625
  ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
4742
4626
  : undefined,
4743
- ConfigurationInfo: output.configurationInfo !== undefined && output.configurationInfo !== null
4627
+ ConfigurationInfo: output.configurationInfo != null
4744
4628
  ? deserializeAws_restJson1ConfigurationInfo(output.configurationInfo, context)
4745
4629
  : undefined,
4746
- ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
4630
+ ConnectivityInfo: output.connectivityInfo != null
4747
4631
  ? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
4748
4632
  : undefined,
4749
- EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
4633
+ EncryptionInfo: output.encryptionInfo != null
4750
4634
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
4751
4635
  : undefined,
4752
4636
  EnhancedMonitoring: __expectString(output.enhancedMonitoring),
4753
4637
  InstanceType: __expectString(output.instanceType),
4754
4638
  KafkaVersion: __expectString(output.kafkaVersion),
4755
- LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
4756
- ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
4757
- : undefined,
4639
+ LoggingInfo: output.loggingInfo != null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined,
4758
4640
  NumberOfBrokerNodes: __expectInt32(output.numberOfBrokerNodes),
4759
- OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
4641
+ OpenMonitoring: output.openMonitoring != null
4760
4642
  ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
4761
4643
  : undefined,
4762
4644
  };
@@ -4774,71 +4656,57 @@ var deserializeAws_restJson1NodeExporterInfo = function (output, context) {
4774
4656
  var deserializeAws_restJson1NodeInfo = function (output, context) {
4775
4657
  return {
4776
4658
  AddedToClusterTime: __expectString(output.addedToClusterTime),
4777
- BrokerNodeInfo: output.brokerNodeInfo !== undefined && output.brokerNodeInfo !== null
4659
+ BrokerNodeInfo: output.brokerNodeInfo != null
4778
4660
  ? deserializeAws_restJson1BrokerNodeInfo(output.brokerNodeInfo, context)
4779
4661
  : undefined,
4780
4662
  InstanceType: __expectString(output.instanceType),
4781
4663
  NodeARN: __expectString(output.nodeARN),
4782
4664
  NodeType: __expectString(output.nodeType),
4783
- ZookeeperNodeInfo: output.zookeeperNodeInfo !== undefined && output.zookeeperNodeInfo !== null
4665
+ ZookeeperNodeInfo: output.zookeeperNodeInfo != null
4784
4666
  ? deserializeAws_restJson1ZookeeperNodeInfo(output.zookeeperNodeInfo, context)
4785
4667
  : undefined,
4786
4668
  };
4787
4669
  };
4788
4670
  var deserializeAws_restJson1OpenMonitoring = function (output, context) {
4789
4671
  return {
4790
- Prometheus: output.prometheus !== undefined && output.prometheus !== null
4791
- ? deserializeAws_restJson1Prometheus(output.prometheus, context)
4792
- : undefined,
4672
+ Prometheus: output.prometheus != null ? deserializeAws_restJson1Prometheus(output.prometheus, context) : undefined,
4793
4673
  };
4794
4674
  };
4795
4675
  var deserializeAws_restJson1OpenMonitoringInfo = function (output, context) {
4796
4676
  return {
4797
- Prometheus: output.prometheus !== undefined && output.prometheus !== null
4798
- ? deserializeAws_restJson1PrometheusInfo(output.prometheus, context)
4799
- : undefined,
4677
+ Prometheus: output.prometheus != null ? deserializeAws_restJson1PrometheusInfo(output.prometheus, context) : undefined,
4800
4678
  };
4801
4679
  };
4802
4680
  var deserializeAws_restJson1Prometheus = function (output, context) {
4803
4681
  return {
4804
- JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
4805
- ? deserializeAws_restJson1JmxExporter(output.jmxExporter, context)
4806
- : undefined,
4807
- NodeExporter: output.nodeExporter !== undefined && output.nodeExporter !== null
4808
- ? deserializeAws_restJson1NodeExporter(output.nodeExporter, context)
4809
- : undefined,
4682
+ JmxExporter: output.jmxExporter != null ? deserializeAws_restJson1JmxExporter(output.jmxExporter, context) : undefined,
4683
+ NodeExporter: output.nodeExporter != null ? deserializeAws_restJson1NodeExporter(output.nodeExporter, context) : undefined,
4810
4684
  };
4811
4685
  };
4812
4686
  var deserializeAws_restJson1PrometheusInfo = function (output, context) {
4813
4687
  return {
4814
- JmxExporter: output.jmxExporter !== undefined && output.jmxExporter !== null
4815
- ? deserializeAws_restJson1JmxExporterInfo(output.jmxExporter, context)
4816
- : undefined,
4817
- NodeExporter: output.nodeExporter !== undefined && output.nodeExporter !== null
4818
- ? deserializeAws_restJson1NodeExporterInfo(output.nodeExporter, context)
4819
- : undefined,
4688
+ JmxExporter: output.jmxExporter != null ? deserializeAws_restJson1JmxExporterInfo(output.jmxExporter, context) : undefined,
4689
+ NodeExporter: output.nodeExporter != null ? deserializeAws_restJson1NodeExporterInfo(output.nodeExporter, context) : undefined,
4820
4690
  };
4821
4691
  };
4822
4692
  var deserializeAws_restJson1Provisioned = function (output, context) {
4823
4693
  return {
4824
- BrokerNodeGroupInfo: output.brokerNodeGroupInfo !== undefined && output.brokerNodeGroupInfo !== null
4694
+ BrokerNodeGroupInfo: output.brokerNodeGroupInfo != null
4825
4695
  ? deserializeAws_restJson1BrokerNodeGroupInfo(output.brokerNodeGroupInfo, context)
4826
4696
  : undefined,
4827
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
4697
+ ClientAuthentication: output.clientAuthentication != null
4828
4698
  ? deserializeAws_restJson1ClientAuthentication(output.clientAuthentication, context)
4829
4699
  : undefined,
4830
- CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo !== undefined && output.currentBrokerSoftwareInfo !== null
4700
+ CurrentBrokerSoftwareInfo: output.currentBrokerSoftwareInfo != null
4831
4701
  ? deserializeAws_restJson1BrokerSoftwareInfo(output.currentBrokerSoftwareInfo, context)
4832
4702
  : undefined,
4833
- EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
4703
+ EncryptionInfo: output.encryptionInfo != null
4834
4704
  ? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
4835
4705
  : undefined,
4836
4706
  EnhancedMonitoring: __expectString(output.enhancedMonitoring),
4837
- LoggingInfo: output.loggingInfo !== undefined && output.loggingInfo !== null
4838
- ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context)
4839
- : undefined,
4707
+ LoggingInfo: output.loggingInfo != null ? deserializeAws_restJson1LoggingInfo(output.loggingInfo, context) : undefined,
4840
4708
  NumberOfBrokerNodes: __expectInt32(output.numberOfBrokerNodes),
4841
- OpenMonitoring: output.openMonitoring !== undefined && output.openMonitoring !== null
4709
+ OpenMonitoring: output.openMonitoring != null
4842
4710
  ? deserializeAws_restJson1OpenMonitoringInfo(output.openMonitoring, context)
4843
4711
  : undefined,
4844
4712
  ZookeeperConnectString: __expectString(output.zookeeperConnectString),
@@ -4865,10 +4733,8 @@ var deserializeAws_restJson1S3 = function (output, context) {
4865
4733
  };
4866
4734
  var deserializeAws_restJson1Sasl = function (output, context) {
4867
4735
  return {
4868
- Iam: output.iam !== undefined && output.iam !== null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
4869
- Scram: output.scram !== undefined && output.scram !== null
4870
- ? deserializeAws_restJson1Scram(output.scram, context)
4871
- : undefined,
4736
+ Iam: output.iam != null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
4737
+ Scram: output.scram != null ? deserializeAws_restJson1Scram(output.scram, context) : undefined,
4872
4738
  };
4873
4739
  };
4874
4740
  var deserializeAws_restJson1Scram = function (output, context) {
@@ -4878,24 +4744,20 @@ var deserializeAws_restJson1Scram = function (output, context) {
4878
4744
  };
4879
4745
  var deserializeAws_restJson1Serverless = function (output, context) {
4880
4746
  return {
4881
- ClientAuthentication: output.clientAuthentication !== undefined && output.clientAuthentication !== null
4747
+ ClientAuthentication: output.clientAuthentication != null
4882
4748
  ? deserializeAws_restJson1ServerlessClientAuthentication(output.clientAuthentication, context)
4883
4749
  : undefined,
4884
- VpcConfigs: output.vpcConfigs !== undefined && output.vpcConfigs !== null
4885
- ? deserializeAws_restJson1__listOfVpcConfig(output.vpcConfigs, context)
4886
- : undefined,
4750
+ VpcConfigs: output.vpcConfigs != null ? deserializeAws_restJson1__listOfVpcConfig(output.vpcConfigs, context) : undefined,
4887
4751
  };
4888
4752
  };
4889
4753
  var deserializeAws_restJson1ServerlessClientAuthentication = function (output, context) {
4890
4754
  return {
4891
- Sasl: output.sasl !== undefined && output.sasl !== null
4892
- ? deserializeAws_restJson1ServerlessSasl(output.sasl, context)
4893
- : undefined,
4755
+ Sasl: output.sasl != null ? deserializeAws_restJson1ServerlessSasl(output.sasl, context) : undefined,
4894
4756
  };
4895
4757
  };
4896
4758
  var deserializeAws_restJson1ServerlessSasl = function (output, context) {
4897
4759
  return {
4898
- Iam: output.iam !== undefined && output.iam !== null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
4760
+ Iam: output.iam != null ? deserializeAws_restJson1Iam(output.iam, context) : undefined,
4899
4761
  };
4900
4762
  };
4901
4763
  var deserializeAws_restJson1StateInfo = function (output, context) {
@@ -4906,14 +4768,14 @@ var deserializeAws_restJson1StateInfo = function (output, context) {
4906
4768
  };
4907
4769
  var deserializeAws_restJson1StorageInfo = function (output, context) {
4908
4770
  return {
4909
- EbsStorageInfo: output.ebsStorageInfo !== undefined && output.ebsStorageInfo !== null
4771
+ EbsStorageInfo: output.ebsStorageInfo != null
4910
4772
  ? deserializeAws_restJson1EBSStorageInfo(output.ebsStorageInfo, context)
4911
4773
  : undefined,
4912
4774
  };
4913
4775
  };
4914
4776
  var deserializeAws_restJson1Tls = function (output, context) {
4915
4777
  return {
4916
- CertificateAuthorityArnList: output.certificateAuthorityArnList !== undefined && output.certificateAuthorityArnList !== null
4778
+ CertificateAuthorityArnList: output.certificateAuthorityArnList != null
4917
4779
  ? deserializeAws_restJson1__listOf__string(output.certificateAuthorityArnList, context)
4918
4780
  : undefined,
4919
4781
  Enabled: __expectBoolean(output.enabled),
@@ -4933,21 +4795,17 @@ var deserializeAws_restJson1UnprocessedScramSecret = function (output, context)
4933
4795
  };
4934
4796
  var deserializeAws_restJson1VpcConfig = function (output, context) {
4935
4797
  return {
4936
- SecurityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
4798
+ SecurityGroupIds: output.securityGroupIds != null
4937
4799
  ? deserializeAws_restJson1__listOf__string(output.securityGroupIds, context)
4938
4800
  : undefined,
4939
- SubnetIds: output.subnetIds !== undefined && output.subnetIds !== null
4940
- ? deserializeAws_restJson1__listOf__string(output.subnetIds, context)
4941
- : undefined,
4801
+ SubnetIds: output.subnetIds != null ? deserializeAws_restJson1__listOf__string(output.subnetIds, context) : undefined,
4942
4802
  };
4943
4803
  };
4944
4804
  var deserializeAws_restJson1ZookeeperNodeInfo = function (output, context) {
4945
4805
  return {
4946
4806
  AttachedENIId: __expectString(output.attachedENIId),
4947
4807
  ClientVpcIpAddress: __expectString(output.clientVpcIpAddress),
4948
- Endpoints: output.endpoints !== undefined && output.endpoints !== null
4949
- ? deserializeAws_restJson1__listOf__string(output.endpoints, context)
4950
- : undefined,
4808
+ Endpoints: output.endpoints != null ? deserializeAws_restJson1__listOf__string(output.endpoints, context) : undefined,
4951
4809
  ZookeeperId: __limitedParseDouble(output.zookeeperId),
4952
4810
  ZookeeperVersion: __expectString(output.zookeeperVersion),
4953
4811
  };
@@ -4990,6 +4848,9 @@ var loadRestJsonErrorCode = function (output, data) {
4990
4848
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
4991
4849
  var sanitizeErrorCode = function (rawValue) {
4992
4850
  var cleanValue = rawValue;
4851
+ if (typeof cleanValue === "number") {
4852
+ cleanValue = cleanValue.toString();
4853
+ }
4993
4854
  if (cleanValue.indexOf(":") >= 0) {
4994
4855
  cleanValue = cleanValue.split(":")[0];
4995
4856
  }