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

*******************
update_connectivity
*******************



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

  

  Updates the cluster's connectivity configuration.

  

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


  **Request Syntax**
  ::

    response = client.update_connectivity(
        ClusterArn='string',
        ConnectivityInfo={
            'PublicAccess': {
                'Type': 'string'
            },
            'VpcConnectivity': {
                'ClientAuthentication': {
                    'Sasl': {
                        'Scram': {
                            'Enabled': True|False
                        },
                        'Iam': {
                            'Enabled': True|False
                        }
                    },
                    'Tls': {
                        'Enabled': True|False
                    }
                }
            }
        },
        CurrentVersion='string'
    )
    
  :type ClusterArn: string
  :param ClusterArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the configuration.

    

  
  :type ConnectivityInfo: dict
  :param ConnectivityInfo: **[REQUIRED]** 

    Information about the broker access configuration.

    

  
    - **PublicAccess** *(dict) --* 

      Public access control for brokers.

      

    
      - **Type** *(string) --* 

        The value DISABLED indicates that public access is turned off. SERVICE_PROVIDED_EIPS indicates that public access is turned on.

        

      
    
    - **VpcConnectivity** *(dict) --* 

      VPC connectivity access control for brokers.

      

    
      - **ClientAuthentication** *(dict) --* 

        Includes all client authentication information for VPC connectivity.

        

      
        - **Sasl** *(dict) --* 

          SASL authentication type details for VPC connectivity.

          

        
          - **Scram** *(dict) --* 

            Details for SASL/SCRAM client authentication for VPC connectivity.

            

          
            - **Enabled** *(boolean) --* 

              SASL/SCRAM authentication is on or off for VPC connectivity.

              

            
          
          - **Iam** *(dict) --* 

            Details for SASL/IAM client authentication for VPC connectivity.

            

          
            - **Enabled** *(boolean) --* 

              SASL/IAM authentication is on or off for VPC connectivity.

              

            
          
        
        - **Tls** *(dict) --* 

          TLS authentication type details for VPC connectivity.

          

        
          - **Enabled** *(boolean) --* 

            TLS authentication is on or off for VPC connectivity.

            

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

    The version of the MSK cluster to update. Cluster versions aren't simple numbers. You can describe an MSK cluster to find its version. When this update operation is successful, it generates a new cluster 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`

  