enableTopicRule method

Future<void> enableTopicRule({
  1. required String ruleName,
})

Enables the rule.

Requires permission to access the EnableTopicRule action.

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

Parameter ruleName : The name of the topic rule to enable.

Implementation

Future<void> enableTopicRule({
  required String ruleName,
}) async {
  await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/rules/${Uri.encodeComponent(ruleName)}/enable',
    exceptionFnMap: _exceptionFns,
  );
}