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

*********************
get_bootstrap_brokers
*********************



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

  

  A list of brokers that a client application can use to bootstrap. This list doesn't necessarily include all of the brokers in the cluster. The following Python 3.6 example shows how you can use the Amazon Resource Name (ARN) of a cluster to get its bootstrap brokers. If you don't know the ARN of your cluster, you can use the ``ListClusters`` operation to get the ARNs of all the clusters in this account and Region.

  

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


  **Request Syntax**
  ::

    response = client.get_bootstrap_brokers(
        ClusterArn='string'
    )
    
  :type ClusterArn: string
  :param ClusterArn: **[REQUIRED]** 

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

    

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

    
    ::

      {
          'BootstrapBrokerString': 'string',
          'BootstrapBrokerStringTls': 'string',
          'BootstrapBrokerStringSaslScram': 'string',
          'BootstrapBrokerStringSaslIam': 'string',
          'BootstrapBrokerStringPublicTls': 'string',
          'BootstrapBrokerStringPublicSaslScram': 'string',
          'BootstrapBrokerStringPublicSaslIam': 'string',
          'BootstrapBrokerStringVpcConnectivityTls': 'string',
          'BootstrapBrokerStringVpcConnectivitySaslScram': 'string',
          'BootstrapBrokerStringVpcConnectivitySaslIam': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Successful response.

      
      

      - **BootstrapBrokerString** *(string) --* 

        A string containing one or more hostname:port pairs.

        
      

      - **BootstrapBrokerStringTls** *(string) --* 

        A string containing one or more DNS names (or IP) and TLS port pairs.

        
      

      - **BootstrapBrokerStringSaslScram** *(string) --* 

        A string containing one or more DNS names (or IP) and Sasl Scram port pairs.

        
      

      - **BootstrapBrokerStringSaslIam** *(string) --* 

        A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs.

        
      

      - **BootstrapBrokerStringPublicTls** *(string) --* 

        A string containing one or more DNS names (or IP) and TLS port pairs.

        
      

      - **BootstrapBrokerStringPublicSaslScram** *(string) --* 

        A string containing one or more DNS names (or IP) and Sasl Scram port pairs.

        
      

      - **BootstrapBrokerStringPublicSaslIam** *(string) --* 

        A string that contains one or more DNS names (or IP addresses) and SASL IAM port pairs.

        
      

      - **BootstrapBrokerStringVpcConnectivityTls** *(string) --* 

        A string containing one or more DNS names (or IP) and TLS port pairs for VPC connectivity.

        
      

      - **BootstrapBrokerStringVpcConnectivitySaslScram** *(string) --* 

        A string containing one or more DNS names (or IP) and SASL/SCRAM port pairs for VPC connectivity.

        
      

      - **BootstrapBrokerStringVpcConnectivitySaslIam** *(string) --* 

        A string containing one or more DNS names (or IP) and SASL/IAM port pairs for VPC connectivity.

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

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

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

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

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

  