Rapid rules
akamai_appsec_rapid_rules
Create and manage your security policy's rapid rules settings. To delete a set of rapid rules, run terraform destroy
.
resource "akamai_appsec_rapid_rules" "my_rules" {
config_id = 12345
security_policy_id = "myrr_12345"
default_action = "deny"
rule_definitions = file("./RuleDefinitions.json")
}
output "my_conditions" {
value = data.akamai_appsec_rapid_rules.my_rules
}
Arguments
Argument | Required | Description |
---|---|---|
configuration_id | ✔️ | A security configuration ID. |
security_policy_id | ✔️ | A security policy ID. |
rule_definitions | The path to the JSON file containing your rapid rules settings. | |
default_action | The default action for new rapid rules. Value is one of:
|
Rule definitions JSON
Property | Description |
---|---|
id | A rapid rule's ID. |
action | The response action to take. Value is one of:
|
lock | Manages which action setting to use.
|
conditionException | The conditions for which an inspection exception is made. Contains an exception object. See Modify the conditions and exceptions of a rule for all exception types. |
[
{
"id": 7654321,
"action": "deny_custom_12345",
"lock": false,
"conditionException": {
"exception": {
"specificHeaderCookieParamXmlOrJsonNames": [
{
"names": [
"Auth"
],
"selector": "REQUEST_HEADERS",
"wildcard": false
}
]
}
}
}
]
Attributes
There is no standard output for this resource. Setting an output method returns a combination of the arguments and the contents of your json file.
Updated 18 days ago