getTopicRule method
Gets information about the rule.
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 {
ArgumentError.checkNotNull(ruleName, 'ruleName');
_s.validateStringLength(
'ruleName',
ruleName,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/rules/${Uri.encodeComponent(ruleName)}',
exceptionFnMap: _exceptionFns,
);
return GetTopicRuleResponse.fromJson(response);
}