getKMSEncryptionKey method

Future<GetKMSEncryptionKeyResult> getKMSEncryptionKey()

Gets the encryption key if a Key Management Service (KMS) customer master key (CMK) has been specified to be used to encrypt content in Amazon Fraud Detector.

May throw ResourceNotFoundException. May throw InternalServerException. May throw AccessDeniedException.

Implementation

Future<GetKMSEncryptionKeyResult> getKMSEncryptionKey() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSHawksNestServiceFacade.GetKMSEncryptionKey'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return GetKMSEncryptionKeyResult.fromJson(jsonResponse.body);
}