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

ManagedRules

A list of ManagedRules to enable.

Type: Array of ManagedRule objects

Required: Yes

Response Elements

The following element is returned by the service.

Failures

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 Error Types.

InvalidParameterValue

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

message

HTTP Status Code: 400

MissingParameter

An input parameter that is required is missing.

message

HTTP Status Code: 400

See Also

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