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

****************************
update_cluster_kafka_version
****************************



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

  

  Updates the Apache Kafka version for the cluster.

  

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


  **Request Syntax**
  ::

    response = client.update_cluster_kafka_version(
        ClusterArn='string',
        ConfigurationInfo={
            'Arn': 'string',
            'Revision': 123
        },
        CurrentVersion='string',
        TargetKafkaVersion='string'
    )
    
  :type ClusterArn: string
  :param ClusterArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the cluster to be updated.

    

  
  :type ConfigurationInfo: dict
  :param ConfigurationInfo: 

    The custom configuration that should be applied on the new version of cluster.

    

  
    - **Arn** *(string) --* **[REQUIRED]** 

      ARN of the configuration to use.

      

    
    - **Revision** *(integer) --* **[REQUIRED]** 

      The revision of the configuration to use.

      

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

    Current cluster version.

    

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

    Target Kafka version.

    

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

  