getKMSEncryptionKey method

Future<GetKMSEncryptionKeyResult> getKMSEncryptionKey()

Gets the encryption key if a KMS key has been specified to be used to encrypt content in Amazon Fraud Detector.

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

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);
}