getAutomationEvent method
Retrieves details about a specific automation event.
May throw AccessDeniedException.
May throw ForbiddenException.
May throw InternalServerException.
May throw InvalidParameterValueException.
May throw OptInRequiredException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Parameter eventId :
The ID of the automation event to retrieve.
Implementation
Future<GetAutomationEventResponse> getAutomationEvent({
required String eventId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'ComputeOptimizerAutomationService.GetAutomationEvent'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'eventId': eventId,
},
);
return GetAutomationEventResponse.fromJson(jsonResponse.body);
}