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