DeleteInsightRules
Permanently deletes the specified Contributor Insights rules.
If you create a rule, delete it, and then re-create it with the same name, historical data from the first time the rule was created might not be available.
Request Syntax
{
"RuleNames": [ "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.
- RuleNames
-
An array of the rule names to delete. 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 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 listing the rules that could not be deleted. You cannot delete built-in rules.
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: