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

******************
put_cluster_policy
******************



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

  

  Creates or updates the MSK cluster policy specified by the cluster Amazon Resource Name (ARN) in the request.

  

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


  **Request Syntax**
  ::

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

    The Amazon Resource Name (ARN) of the cluster.

    

  
  :type CurrentVersion: string
  :param CurrentVersion: 

    The policy version.

    

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

    The policy.

    

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

    
    ::

      {
          'CurrentVersion': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Successful response.

      
      

      - **CurrentVersion** *(string) --* 

        The policy version.

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

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

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

  