disableTopicRule method
Disables the rule.
May throw InternalException. May throw InvalidRequestException. May throw ServiceUnavailableException. May throw UnauthorizedException. May throw ConflictingResourceUpdateException.
Parameter ruleName
:
The name of the rule to disable.
Implementation
Future<void> disableTopicRule({
required String ruleName,
}) async {
ArgumentError.checkNotNull(ruleName, 'ruleName');
_s.validateStringLength(
'ruleName',
ruleName,
1,
128,
isRequired: true,
);
await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/rules/${Uri.encodeComponent(ruleName)}/disable',
exceptionFnMap: _exceptionFns,
);
}