disableInsightRules method
Disables the specified Contributor Insights rules. When rules are disabled, they do not analyze log groups and do not incur costs.
May throw InvalidParameterValueException. May throw MissingRequiredParameterException.
Parameter ruleNames
:
An array of the rule names to disable. If you need to find out the names
of your rules, use DescribeInsightRules.
Implementation
Future<DisableInsightRulesOutput> disableInsightRules({
required List<String> ruleNames,
}) async {
ArgumentError.checkNotNull(ruleNames, 'ruleNames');
final $request = <String, dynamic>{};
$request['RuleNames'] = ruleNames;
final $result = await _protocol.send(
$request,
action: 'DisableInsightRules',
version: '2010-08-01',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['DisableInsightRulesInput'],
shapes: shapes,
resultWrapper: 'DisableInsightRulesResult',
);
return DisableInsightRulesOutput.fromXml($result);
}