CodeGuruSecurity / Client / update_account_configuration

update_account_configuration#

CodeGuruSecurity.Client.update_account_configuration(**kwargs)#

Use to update the encryption configuration for an account.

See also: AWS API Documentation

Request Syntax

response = client.update_account_configuration(
    encryptionConfig={
        'kmsKeyArn': 'string'
    }
)
Parameters:

encryptionConfig (dict) –

[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.

Return type:

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

  • CodeGuruSecurity.Client.exceptions.InternalServerException

  • CodeGuruSecurity.Client.exceptions.ResourceNotFoundException

  • CodeGuruSecurity.Client.exceptions.ThrottlingException

  • CodeGuruSecurity.Client.exceptions.ValidationException

  • CodeGuruSecurity.Client.exceptions.AccessDeniedException