putKMSEncryptionKey method
Specifies the KMS key to be used to encrypt content in Amazon Fraud Detector.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter kmsEncryptionKeyArn :
The KMS encryption key ARN.
The KMS key must be single-Region key. Amazon Fraud Detector does not support multi-Region KMS key.
Implementation
Future<void> putKMSEncryptionKey({
required String kmsEncryptionKeyArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSHawksNestServiceFacade.PutKMSEncryptionKey'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'kmsEncryptionKeyArn': kmsEncryptionKeyArn,
},
);
}