DisableInsightRules - Amazon CloudWatch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

DisableInsightRules

Disables the specified Contributor Insights rules. When rules are disabled, they do not analyze log groups and do not incur costs.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

RuleNames.member.N

An array of the rule names to disable. If you need to find out the names of your rules, use DescribeInsightRules.

Type: Array of strings

Length Constraints: Minimum length of 1. Maximum length of 128.

Pattern: [\x20-\x7E]+

Required: Yes

Response Elements

The following element is returned by the service.

Failures.member.N

An array listing the rules that could not be disabled. You cannot disable built-in rules.

Type: Array of PartialFailure objects

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidParameterValue

The value of an input parameter is bad or out-of-range.

HTTP Status Code: 400

MissingParameter

An input parameter that is required is missing.

HTTP Status Code: 400