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

******************
update_broker_type
******************



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

  

  Updates EC2 instance type.

  

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


  **Request Syntax**
  ::

    response = client.update_broker_type(
        ClusterArn='string',
        CurrentVersion='string',
        TargetInstanceType='string'
    )
    
  :type ClusterArn: string
  :param ClusterArn: **[REQUIRED]** 

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

    

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

    The cluster version that you want to change. After this operation completes successfully, the cluster will have a new version.

    

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

    The Amazon MSK broker type that you want all of the brokers in this cluster to be.

    

  
  
  :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.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.TooManyRequestsException`

  