getEventRule method
Returns a specified EventRule.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter arn :
The Amazon Resource Name (ARN) of the EventRule to return.
Implementation
Future<GetEventRuleResponse> getEventRule({
required String arn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/event-rules/${Uri.encodeComponent(arn)}',
exceptionFnMap: _exceptionFns,
);
return GetEventRuleResponse.fromJson(response);
}