getTopicRule method

Future<GetTopicRuleResponse> getTopicRule({
  1. required String ruleName,
})

Gets information about the rule.

Requires permission to access the GetTopicRule action.

May throw InternalException. May throw InvalidRequestException. May throw ServiceUnavailableException. May throw UnauthorizedException.

Parameter ruleName : The name of the rule.

Implementation

Future<GetTopicRuleResponse> getTopicRule({
  required String ruleName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/rules/${Uri.encodeComponent(ruleName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetTopicRuleResponse.fromJson(response);
}