enableInsightRules method
Enables the specified Contributor Insights rules. When rules are enabled, they immediately begin analyzing log data.
May throw InvalidParameterValueException. May throw MissingRequiredParameterException. May throw LimitExceededException.
Parameter ruleNames
:
An array of the rule names to enable. If you need to find out the names of
your rules, use DescribeInsightRules.
Implementation
Future<EnableInsightRulesOutput> enableInsightRules({
required List<String> ruleNames,
}) async {
ArgumentError.checkNotNull(ruleNames, 'ruleNames');
final $request = <String, dynamic>{};
$request['RuleNames'] = ruleNames;
final $result = await _protocol.send(
$request,
action: 'EnableInsightRules',
version: '2010-08-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['EnableInsightRulesInput'],
shapes: shapes,
resultWrapper: 'EnableInsightRulesResult',
);
return EnableInsightRulesOutput.fromXml($result);
}