getEvent method
Retrieves details of events stored with Amazon Fraud Detector. This action does not retrieve prediction results.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter eventId :
The ID of the event to retrieve.
Parameter eventTypeName :
The event type of the event to retrieve.
Implementation
Future<GetEventResult> getEvent({
required String eventId,
required String eventTypeName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSHawksNestServiceFacade.GetEvent'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'eventId': eventId,
'eventTypeName': eventTypeName,
},
);
return GetEventResult.fromJson(jsonResponse.body);
}