Behavorial DDoS profile

akamai_appsec_behavioral_ddos_profile

Create, update, or delete a Behavioral DDoS (BDE) protection profile in a security configuration.

A profile defines how the platform detects volumetric DDoS attacks against your hostnames based on behavioral signals.

To set what happens when a profile is triggered, use the Behavioral DDoS action resource.

resource "akamai_appsec_behavioral_ddos_profile" "my_bde_profile" {
  config_id   = 12345
  name        = "my_bde_profile"
  description = "Behavioral DDoS profile for my site."
  sensitivity = "MODERATE"
  hostnames   = ["www.example.com", "api.example.com"]

  bypass_conditions_match_type = "ALL"

  bypass_conditions = [
    {
      type                 = "RequestHeaderCondition"
      names                = ["X-My-Header"]
      values               = ["my-value"]
      name_wildcard        = false
      value_wildcard       = false
      value_case_sensitive = false
      positive_match       = true
    }
  ]

  exceptions = [
    {
      hosts = ["www.example.com"]
      paths = ["/health"]
    }
  ]

  sensitivity_overrides = [
    {
      host        = "api.example.com"
      path        = "/login"
      sensitivity = "STRICT"
    }
  ]

  suspend = {
    hostnames = ["www.example.com"]
    from_date = "2026-12-01T00:00:00Z"
    to_date   = "2026-12-02T00:00:00Z"
  }
}
my_bde_profile = {
  behavioral_ddos_profile_id = 987654
  bypass_conditions = [
    {
      check_ips            = null
      index                = 0
      name_wildcard        = false
      names                = ["X-My-Header"]
      positive_match       = true
      type                 = "RequestHeaderCondition"
      value_case_sensitive = false
      value_wildcard       = false
      values               = ["my-value"]
    },
  ]
  bypass_conditions_match_type = "ALL"
  config_id                    = 12345
  create_date                  = "2026-11-19T15:22:28Z"
  created_by                   = "jsmith"
  description                  = "Behavioral DDoS profile for my site."
  exceptions = [
    {
      hosts = ["www.example.com"]
      paths = ["/health"]
    },
  ]
  hostnames   = ["www.example.com", "api.example.com"]
  name        = "my_bde_profile"
  sensitivity = "MODERATE"
  sensitivity_overrides = [
    {
      host        = "api.example.com"
      path        = "/login"
      sensitivity = "STRICT"
    },
  ]
  suspend = {
    from_date = "2026-12-01T00:00:00Z"
    hostnames = ["www.example.com"]
    to_date   = "2026-12-02T00:00:00Z"
  }
  update_date = "2026-11-19T15:22:28Z"
  updated_by  = "jsmith"
  used        = false
}

Arguments

Send the required arguments to create a BDE profile.

📘

You can't change the config_id after you create the profile.

ArgumentRequiredDescription
config_id✔️Your security configuration's ID.
name✔️The BDE profile's name.
sensitivity✔️The profile's detection sensitivity level. Possible values are:
  • CONSERVATIVE
  • MODERATE
  • STRICT
hostnames✔️A list of hostnames the profile applies to.
descriptionA human-readable statement about the profile.
bypass_conditionsA list of conditions that let matching requests bypass the profile. Contains:
  • type. Required. The type of condition, for example RequestHeaderCondition or NetworkListCondition.
  • names. A list of names to match, for example header names used with RequestHeaderCondition.
  • name_wildcard. When set to true, uses wildcard matching for names.
  • values. A list of values to match.
  • value_case_sensitive. When set to true, uses case-sensitive value matching.
  • value_wildcard. When set to true, uses wildcard matching for values.
  • check_ips. The IP address to check with NetworkListCondition, for example connecting or xff.
  • positive_match. When set to true, the condition matches when the request meets it. When set to false, the condition matches when the request doesn't meet it.
  • index. The condition's position in the list. If you don't set it, it's computed for you.
bypass_conditions_match_typeHow the profile evaluates your bypass_conditions. Possible values are:
  • ALL. Default. A request bypasses the profile only when it matches every condition.
  • ANY. A request bypasses the profile when it matches at least one condition.
exceptionsA list of host and path combinations the profile doesn't apply to. Contains:
  • hosts. A list of hostnames to exclude.
  • paths. A list of paths to exclude.
sensitivity_overridesA list of per-host sensitivity levels that override the profile's sensitivity. Contains:
  • host. Required. The hostname to which the override applies.
  • path. The path to which the override applies.
  • sensitivity. Required. The override sensitivity level. Possible values are CONSERVATIVE, MODERATE, or STRICT.
suspendA scheduled window during which the profile is suspended for the given hostnames. Contains:
  • hostnames. Required. A list of hostnames to suspend.
  • from_date. Required. The start of the suspension window as an ISO 8601 timestamp, for example 2026-12-01T00:00:00Z.
  • to_date. Required. The end of the suspension window as an ISO 8601 timestamp, for example 2026-12-02T00:00:00Z.

Attributes

There is no standard output for this resource. Adding an output block returns the profile's details you provided on create and these computed attributes.

AttributeDescription
behavioral_ddos_profile_idThe BDE profile's ID.
usedWhen true, the profile is in use by a security policy.
create_dateThe date the profile was created.
created_byThe name of the user who created the profile.
update_dateThe date of the profile's last change.
updated_byThe name of the user who last changed the profile.

Did this page help you?