Skip to content

Commit 8c9bbb1

Browse files
author
awstools
committed
feat(client-kafka): Adds ControllerNodeInfo in ListNodes response to support Raft mode for MSK
1 parent 3b77493 commit 8c9bbb1

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

clients/client-kafka/src/commands/ListNodesCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ export interface ListNodesCommandOutput extends ListNodesResponse, __MetadataBea
6060
* // "STRING_VALUE",
6161
* // ],
6262
* // },
63+
* // ControllerNodeInfo: { // ControllerNodeInfo
64+
* // Endpoints: [
65+
* // "STRING_VALUE",
66+
* // ],
67+
* // },
6368
* // InstanceType: "STRING_VALUE",
6469
* // NodeARN: "STRING_VALUE",
6570
* // NodeType: "BROKER",

clients/client-kafka/src/models/models_0.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,18 @@ export interface BrokerNodeInfo {
16751675
Endpoints?: string[];
16761676
}
16771677

1678+
/**
1679+
* <p>Controller node information.</p>
1680+
* @public
1681+
*/
1682+
export interface ControllerNodeInfo {
1683+
/**
1684+
* <p>Endpoints for accessing the Controller.</p>
1685+
* @public
1686+
*/
1687+
Endpoints?: string[];
1688+
}
1689+
16781690
/**
16791691
* @public
16801692
* @enum
@@ -1741,6 +1753,12 @@ export interface NodeInfo {
17411753
*/
17421754
BrokerNodeInfo?: BrokerNodeInfo;
17431755

1756+
/**
1757+
* <p>The ControllerNodeInfo.</p>
1758+
* @public
1759+
*/
1760+
ControllerNodeInfo?: ControllerNodeInfo;
1761+
17441762
/**
17451763
* <p>The instance type.</p>
17461764
* @public

clients/client-kafka/src/protocols/Aws_restJson1.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ import {
183183
ConnectivityInfo,
184184
ConsumerGroupReplication,
185185
ConsumerGroupReplicationUpdate,
186+
ControllerNodeInfo,
186187
EBSStorageInfo,
187188
EncryptionAtRest,
188189
EncryptionInfo,
@@ -3816,6 +3817,15 @@ const de_ConsumerGroupReplication = (output: any, context: __SerdeContext): Cons
38163817
}) as any;
38173818
};
38183819

3820+
/**
3821+
* deserializeAws_restJson1ControllerNodeInfo
3822+
*/
3823+
const de_ControllerNodeInfo = (output: any, context: __SerdeContext): ControllerNodeInfo => {
3824+
return take(output, {
3825+
Endpoints: [, _json, `endpoints`],
3826+
}) as any;
3827+
};
3828+
38193829
/**
38203830
* deserializeAws_restJson1EBSStorageInfo
38213831
*/
@@ -3998,6 +4008,7 @@ const de_NodeInfo = (output: any, context: __SerdeContext): NodeInfo => {
39984008
return take(output, {
39994009
AddedToClusterTime: [, __expectString, `addedToClusterTime`],
40004010
BrokerNodeInfo: [, (_: any) => de_BrokerNodeInfo(_, context), `brokerNodeInfo`],
4011+
ControllerNodeInfo: [, (_: any) => de_ControllerNodeInfo(_, context), `controllerNodeInfo`],
40014012
InstanceType: [, __expectString, `instanceType`],
40024013
NodeARN: [, __expectString, `nodeARN`],
40034014
NodeType: [, __expectString, `nodeType`],

codegen/sdk-codegen/aws-models/kafka.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,6 +1523,21 @@
15231523
"smithy.api#documentation": "<p>Details about consumer group replication.</p>"
15241524
}
15251525
},
1526+
"com.amazonaws.kafka#ControllerNodeInfo": {
1527+
"type": "structure",
1528+
"members": {
1529+
"Endpoints": {
1530+
"target": "com.amazonaws.kafka#__listOf__string",
1531+
"traits": {
1532+
"smithy.api#documentation": "<p>Endpoints for accessing the Controller.</p>",
1533+
"smithy.api#jsonName": "endpoints"
1534+
}
1535+
}
1536+
},
1537+
"traits": {
1538+
"smithy.api#documentation": "<p>Controller node information.</p>"
1539+
}
1540+
},
15261541
"com.amazonaws.kafka#CreateCluster": {
15271542
"type": "operation",
15281543
"input": {
@@ -6461,6 +6476,13 @@
64616476
"smithy.api#jsonName": "brokerNodeInfo"
64626477
}
64636478
},
6479+
"ControllerNodeInfo": {
6480+
"target": "com.amazonaws.kafka#ControllerNodeInfo",
6481+
"traits": {
6482+
"smithy.api#documentation": "<p>The ControllerNodeInfo.</p>",
6483+
"smithy.api#jsonName": "controllerNodeInfo"
6484+
}
6485+
},
64646486
"InstanceType": {
64656487
"target": "com.amazonaws.kafka#__string",
64666488
"traits": {

0 commit comments

Comments
 (0)