GuideReference
TrainingSupportCommunity
Guide

Penalty box conditions

akamai_appsec_penalty_box_conditions

Create, update, or delete the conditions that trigger penalty box settings for a given security policy. To delete your settings, run terraform destroy.

resource "akamai_appsec_penalty_box_conditions" "my_conditions" {
  config_id = 12345
  security_policy_id = abcd_123456
  penalty_box_conditions = file("$path.root/conditions.json")
}

Arguments

Argument Required Description
config_id A security configuration ID.
security_policy_id A security policy ID.
penalty_box_conditions A pointer to a JSON file with your penalty box conditions. File contains:

{
  "conditionOperator": "AND",
  "conditions": [
    {
      "type": "filenameMatch",
      "filenames": [
        "my-json-files"
      ],
      "order": 0,
      "positiveMatch": true
    }
  ]
}

Attributes

There is no standard output for this resource, but setting an output method returns these attributes.

AttributeDescription
config_idYour security configuration's ID.
idA concatenation of your security configuration and policy IDs.
jsonA JSON encoded representation of your condition details.
output_textA table representation of your condition details.
security_policy_idYour security policy's ID.