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

*******************
update_broker_count
*******************



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

  

  Updates the number of broker nodes in the cluster.

  

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


  **Request Syntax**
  ::

    response = client.update_broker_count(
        ClusterArn='string',
        CurrentVersion='string',
        TargetNumberOfBrokerNodes=123
    )
    
  :type ClusterArn: string
  :param ClusterArn: **[REQUIRED]** 

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

    

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

    The version of cluster to update from. A successful operation will then generate a new version.

    

  
  :type TargetNumberOfBrokerNodes: integer
  :param TargetNumberOfBrokerNodes: **[REQUIRED]** 

    The number of broker nodes that you want the cluster to have after this operation completes successfully.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ClusterArn': 'string',
          'ClusterOperationArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Successful response.

      
      

      - **ClusterArn** *(string) --* 

        The Amazon Resource Name (ARN) of the cluster.

        
      

      - **ClusterOperationArn** *(string) --* 

        The Amazon Resource Name (ARN) of the cluster operation.

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

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

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

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

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

  