Kafka / Client / update_topic
update_topic¶
- Kafka.Client.update_topic(**kwargs)¶
Updates the configuration of the specified topic.
See also: AWS API Documentation
Request Syntax
response = client.update_topic( ClusterArn='string', TopicName='string', Configs='string', PartitionCount=123 )
- Parameters:
ClusterArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
TopicName (string) –
[REQUIRED]
The name of the topic to update configuration for.
Configs (string) – The new topic configurations encoded as a Base64 string.
PartitionCount (integer) – The new total number of partitions for the topic.
- Return type:
dict
- Returns:
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.
Exceptions
Kafka.Client.exceptions.BadRequestExceptionKafka.Client.exceptions.UnauthorizedExceptionKafka.Client.exceptions.InternalServerErrorExceptionKafka.Client.exceptions.ForbiddenExceptionKafka.Client.exceptions.NotFoundExceptionKafka.Client.exceptions.ServiceUnavailableExceptionKafka.Client.exceptions.ClusterConnectivityExceptionKafka.Client.exceptions.KafkaTimeoutExceptionKafka.Client.exceptions.UnknownTopicOrPartitionExceptionKafka.Client.exceptions.ControllerMovedExceptionKafka.Client.exceptions.NotControllerExceptionKafka.Client.exceptions.ReassignmentInProgressExceptionKafka.Client.exceptions.GroupSubscribedToTopicExceptionKafka.Client.exceptions.KafkaRequestException