PutManagedInsightRules - Amazon CloudWatch

PutManagedInsightRules

Creates a managed Contributor Insights rule for a specified AWS resource. When you enable a managed rule, you create a Contributor Insights rule that collects data from AWS services. You cannot edit these rules with PutInsightRule. The rules can be enabled, disabled, and deleted using EnableInsightRules, DisableInsightRules, and DeleteInsightRules. If a previously created managed rule is currently disabled, a subsequent call to this API will re-enable it. Use ListManagedInsightRules to describe all available rules.

Request Parameters

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

ManagedRules.member.N

A list of ManagedRules to enable.

Type: Array of ManagedRule objects

Required: Yes

Response Elements

The following element is returned by the service.

Failures.member.N

An array that lists the rules that could not be enabled.

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

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: