:doc:`Kafka <../../kafka>` / Client / update_topic

************
update_topic
************



.. py:method:: Kafka.Client.update_topic(**kwargs)

  

  Updates the configuration of the specified topic.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateTopic>`_  


  **Request Syntax**
  ::

    response = client.update_topic(
        ClusterArn='string',
        TopicName='string',
        Configs='string',
        PartitionCount=123
    )
    
  :type ClusterArn: string
  :param ClusterArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) that uniquely identifies the cluster.

    

  
  :type TopicName: string
  :param TopicName: **[REQUIRED]** 

    The name of the topic to update configuration for.

    

  
  :type Configs: string
  :param Configs: 

    The new topic configurations encoded as a Base64 string.

    

  
  :type PartitionCount: integer
  :param PartitionCount: 

    The new total number of partitions for the topic.

    

  
  
  :rtype: 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**
  
  *   :py:class:`Kafka.Client.exceptions.BadRequestException`

  
  *   :py:class:`Kafka.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`Kafka.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`Kafka.Client.exceptions.ForbiddenException`

  
  *   :py:class:`Kafka.Client.exceptions.NotFoundException`

  
  *   :py:class:`Kafka.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`Kafka.Client.exceptions.ClusterConnectivityException`

  
  *   :py:class:`Kafka.Client.exceptions.KafkaTimeoutException`

  
  *   :py:class:`Kafka.Client.exceptions.UnknownTopicOrPartitionException`

  
  *   :py:class:`Kafka.Client.exceptions.ControllerMovedException`

  
  *   :py:class:`Kafka.Client.exceptions.NotControllerException`

  
  *   :py:class:`Kafka.Client.exceptions.ReassignmentInProgressException`

  
  *   :py:class:`Kafka.Client.exceptions.GroupSubscribedToTopicException`

  
  *   :py:class:`Kafka.Client.exceptions.KafkaRequestException`

  