GuideReference
Guide

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

ArgumentRequiredDescription
configuration_id✔️A security configuration ID.
security_policy_id✔️A security policy ID.
rule_definitionsThe path to the JSON file containing your rapid rules settings.
default_actionThe default action for new rapid rules. Value is one of:
  • akamai_managed. Action taken as recommended by Akamai's threat research team.
  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_id. Action taken by a custom deny setting. When using this argument, replace id with your custom deny action's ID.
  • none
  • . Take no action.

Rule definitions JSON

PropertyDescription
idA rapid rule's ID.
actionThe response action to take. Value is one of:
  • alert. Record the event.
  • deny. Block the request.
  • deny_custom_id. Action taken by a custom deny setting. When using this argument, replace id with your custom deny action's ID.
  • none
  • . Take no action.
lockManages which action setting to use.
  • true uses action.
  • false uses default_action.
conditionExceptionThe 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.