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

****************************
batch_associate_scram_secret
****************************



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

  

  Associates one or more Scram Secrets with an Amazon MSK cluster.

  

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


  **Request Syntax**
  ::

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

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

    

  
  :type SecretArnList: list
  :param SecretArnList: **[REQUIRED]** 

    List of AWS Secrets Manager secret ARNs.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'ClusterArn': 'string',
          'UnprocessedScramSecrets': [
              {
                  'ErrorCode': 'string',
                  'ErrorMessage': 'string',
                  'SecretArn': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      200 response

      
      

      - **ClusterArn** *(string) --* 

        The Amazon Resource Name (ARN) of the cluster.

        
      

      - **UnprocessedScramSecrets** *(list) --* 

        List of errors when associating secrets to cluster.

        
        

        - *(dict) --* 

          Error info for scram secret associate/disassociate failure.

          
          

          - **ErrorCode** *(string) --* 

            Error code for associate/disassociate failure.

            
          

          - **ErrorMessage** *(string) --* 

            Error message for associate/disassociate failure.

            
          

          - **SecretArn** *(string) --* 

            AWS Secrets Manager secret ARN.

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

  