Custom rule
akamai_appsec_custom_rule
Creates a custom rule associated with a security configuration. Custom rules are rules that you define yourself and are not part of the Kona Rule Set.
resource "akamai_appsec_custom_rule" "my_custom_rule" {
config_id = 12345
custom_rule = file("${path.module}/my_custom_rule.json")
}
output "custom_rule_rule_id" {
value = akamai_appsec_custom_rule.custom_rule.my_custom_rule
}
Arguments
| Argument | Required | Description |
|---|---|---|
config_id | ✔️ | A security configuration ID. |
custom_rule | ✔️ | Path to a JSON file containing the custom rule definition. |
Attribute
Returned is the custom rule's ID.
Updated 22 days ago
