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 Syntax
{
"ManagedRules": [
{
"ResourceARN": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
],
"TemplateName": "string"
}
]
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- ManagedRules
-
A list of
ManagedRulesto enable.Type: Array of ManagedRule objects
Required: Yes
Response Syntax
{
"Failures": [
{
"ExceptionType": "string",
"FailureCode": "string",
"FailureDescription": "string",
"FailureResource": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format 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: