Skip to content

Commit

Permalink
fix(client-kafka): fix deserialization of clusterinfo
Browse files Browse the repository at this point in the history
Wrong input to function `take` cause clusterInfo omit some properties.

Refs: aws#4653
  • Loading branch information
Prashant Farkya committed Apr 24, 2023
1 parent d6d2db5 commit 4476dc8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions clients/client-kafka/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4202,20 +4202,20 @@ const de_Cluster = (output: any, context: __SerdeContext): Cluster => {
const de_ClusterInfo = (output: any, context: __SerdeContext): ClusterInfo => {
return take(output, {
ActiveOperationArn: [, __expectString, `activeOperationArn`],
BrokerNodeGroupInfo: (_) => [, de_BrokerNodeGroupInfo(_, context), `brokerNodeGroupInfo`],
ClientAuthentication: (_) => [, de_ClientAuthentication(_, context), `clientAuthentication`],
BrokerNodeGroupInfo: [, (_) => de_BrokerNodeGroupInfo(_, context), `brokerNodeGroupInfo`],
ClientAuthentication: [, (_) => de_ClientAuthentication(_, context), `clientAuthentication`],
ClusterArn: [, __expectString, `clusterArn`],
ClusterName: [, __expectString, `clusterName`],
CreationTime: (_) => [, __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `creationTime`],
CurrentBrokerSoftwareInfo: (_) => [, de_BrokerSoftwareInfo(_, context), `currentBrokerSoftwareInfo`],
CreationTime: [, (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), `creationTime`],
CurrentBrokerSoftwareInfo: [, (_) => de_BrokerSoftwareInfo(_, context), `currentBrokerSoftwareInfo`],
CurrentVersion: [, __expectString, `currentVersion`],
EncryptionInfo: (_) => [, de_EncryptionInfo(_, context), `encryptionInfo`],
EncryptionInfo: [, (_) => de_EncryptionInfo(_, context), `encryptionInfo`],
EnhancedMonitoring: [, __expectString, `enhancedMonitoring`],
LoggingInfo: (_) => [, de_LoggingInfo(_, context), `loggingInfo`],
LoggingInfo: [, (_) => de_LoggingInfo(_, context), `loggingInfo`],
NumberOfBrokerNodes: [, __expectInt32, `numberOfBrokerNodes`],
OpenMonitoring: (_) => [, de_OpenMonitoring(_, context), `openMonitoring`],
OpenMonitoring: [, (_) => de_OpenMonitoring(_, context), `openMonitoring`],
State: [, __expectString, `state`],
StateInfo: (_) => [, de_StateInfo(_, context), `stateInfo`],
StateInfo: [, (_) => de_StateInfo(_, context), `stateInfo`],
StorageMode: [, __expectString, `storageMode`],
Tags: [, _json, `tags`],
ZookeeperConnectString: [, __expectString, `zookeeperConnectString`],
Expand Down

0 comments on commit 4476dc8

Please sign in to comment.