updateAccountConfiguration method
Future<UpdateAccountConfigurationResponse>
updateAccountConfiguration({
- required EncryptionConfig encryptionConfig,
Use to update the encryption configuration for an account.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter encryptionConfig :
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.
Implementation
Future<UpdateAccountConfigurationResponse> updateAccountConfiguration({
required EncryptionConfig encryptionConfig,
}) async {
final $payload = <String, dynamic>{
'encryptionConfig': encryptionConfig,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/updateAccountConfiguration',
exceptionFnMap: _exceptionFns,
);
return UpdateAccountConfigurationResponse.fromJson(response);
}