2026/02/10 - Managed Streaming for Kafka - 3 new api methods
Changes Amazon MSK adds three new APIs, CreateTopic, UpdateTopic, and DeleteTopic for managing Kafka topics in your MSK clusters.
Updates the configuration of the specified topic.
See also: AWS API Documentation
Request Syntax
client.update_topic(
ClusterArn='string',
TopicName='string',
Configs='string',
PartitionCount=123
)
string
[REQUIRED]
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
string
[REQUIRED]
The name of the topic to update configuration for.
string
The new topic configurations encoded as a Base64 string.
integer
The new total number of partitions for the topic.
dict
Response Syntax
{
'TopicArn': 'string',
'TopicName': 'string',
'Status': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE'
}
Response Structure
(dict) --
200 response
TopicArn (string) --
The Amazon Resource Name (ARN) of the topic.
TopicName (string) --
The name of the topic whose configuration was updated.
Status (string) --
The status of the topic update.
Creates a topic in the specified MSK cluster.
See also: AWS API Documentation
Request Syntax
client.create_topic(
ClusterArn='string',
TopicName='string',
PartitionCount=123,
ReplicationFactor=123,
Configs='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
string
[REQUIRED]
The name of the topic to create.
integer
[REQUIRED]
The number of partitions for the topic.
integer
[REQUIRED]
The replication factor for the topic.
string
Topic configurations encoded as a Base64 string.
dict
Response Syntax
{
'TopicArn': 'string',
'TopicName': 'string',
'Status': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE'
}
Response Structure
(dict) --
200 response
TopicArn (string) --
The Amazon Resource Name (ARN) of the topic.
TopicName (string) --
The name of the topic that was created.
Status (string) --
The status of the topic creation.
Deletes a topic in the specified MSK cluster.
See also: AWS API Documentation
Request Syntax
client.delete_topic(
ClusterArn='string',
TopicName='string'
)
string
[REQUIRED]
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
string
[REQUIRED]
The name of the topic to delete.
dict
Response Syntax
{
'TopicArn': 'string',
'TopicName': 'string',
'Status': 'CREATING'|'UPDATING'|'DELETING'|'ACTIVE'
}
Response Structure
(dict) --
200 response
TopicArn (string) --
The Amazon Resource Name (ARN) of the topic.
TopicName (string) --
The name of the topic that was deleted.
Status (string) --
The status of the topic deletion.