:doc:`CodeGuruSecurity <../../codeguru-security>` / Client / update_account_configuration

****************************
update_account_configuration
****************************



.. py:method:: CodeGuruSecurity.Client.update_account_configuration(**kwargs)

  

  Use to update the encryption configuration for an account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeguru-security-2018-05-10/UpdateAccountConfiguration>`_  


  **Request Syntax**
  ::

    response = client.update_account_configuration(
        encryptionConfig={
            'kmsKeyArn': 'string'
        }
    )
    
  :type encryptionConfig: dict
  :param encryptionConfig: **[REQUIRED]** 

    The customer-managed KMS key ARN you want to use for encryption. If not specified, CodeGuru Security will use an AWS-managed key for encryption. If you previously specified a customer-managed KMS key and want CodeGuru Security to use an AWS-managed key for encryption instead, pass nothing.

    

  
    - **kmsKeyArn** *(string) --* 

      The KMS key ARN that is used for encryption. If an AWS-managed key is used for encryption, returns empty.

      

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

    
    ::

      {
          'encryptionConfig': {
              'kmsKeyArn': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **encryptionConfig** *(dict) --* 

        An ``EncryptionConfig`` object that contains the KMS key ARN that is used for encryption. If you did not specify a customer-managed KMS key in the request, returns empty.

        
        

        - **kmsKeyArn** *(string) --* 

          The KMS key ARN that is used for encryption. If an AWS-managed key is used for encryption, returns empty.

          
    
  
  **Exceptions**
  
  *   :py:class:`CodeGuruSecurity.Client.exceptions.InternalServerException`

  
  *   :py:class:`CodeGuruSecurity.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CodeGuruSecurity.Client.exceptions.ThrottlingException`

  
  *   :py:class:`CodeGuruSecurity.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`CodeGuruSecurity.Client.exceptions.ValidationException`

  