User risk response strategy

akamai_apr_user_risk_response_strategy

📘

Hello. Just a note to let you know the underlying API on which this resource is built is general release and has been vetted, but because this is a new feature for our Terraform provider, we've given it beta label.

This status just means we've paused for a bit to get your feedback to make sure this resource works like you need and expect.

Create and update a user risk response strategy.

resource "akamai_apr_user_risk_response_strategy" "my_strategy" {
  config_id                   = 12345
  user_risk_response_strategy = jsonencode(
    {
      "traffic" : {
        "standard" : {
          "cautious" : {
            "threshold" : 0
          },
          "strict" : {
            "threshold" : 51
          },
          "aggressive" : {
            "threshold" : 66
          }
        },
        "inline" : {
          "cautious" : {
            "threshold" : 0
          },
          "strict" : {
            "threshold" : 51
          },
          "aggressive" : {
            "threshold" : 76
          }
        },
        "nativeSdkIos" : {
          "cautious" : {
            "threshold" : 0
          },
          "strict" : {
            "threshold" : 51
          },
          "aggressive" : {
            "threshold" : 76
          }
        },
        "nativeSdkAndroid" : {
          "cautious" : {
            "threshold" : 0
          },
          "strict" : {
            "threshold" : 51
          },
          "aggressive" : {
            "threshold" : 76
          }
        }
      }
    }
  )
}
my_strategy = {
  config_id                   = 12345
  id                          = "12345"
  user_risk_response_strategy = jsonencode(
    {
      traffic = {
        inline           = {
          aggressive = {
            threshold = 66
          }
          cautious   = {
            threshold = 0
          }
          strict     = {
            threshold = 51
          }
        }
        nativeSdkAndroid = {
          aggressive = {
            threshold = 76
          }
          cautious   = {
            threshold = 0
          }
          strict     = {
            threshold = 51
          }
                  }
        nativeSdkIos     = {
          aggressive = {
            threshold = 76
          }
          cautious   = {
            threshold = 0
          }
          strict     = {
            threshold = 51
          }
        }
        standard         = {
          aggressive = {
            threshold = 76
          }
          cautious   = {
            threshold = 0
          }
          strict     = {
            threshold = 51
          }
        }
      }
    }
  )
}

Argument

Pass all arguments ID to create a response strategy.

ArgumentRequiredDescription
config_id✔️Your security configuration's ID.
user_risk_response_strategy✔️The response strategy per telemetry type. Contains:
  • inline. Attaches user telemetry directly to the protected request without using a first-party cookie. Contains:
    • aggressive. Aggressive response settings object with a property of threshold set to a default of 90. Available range is 2-100.
    • cautious. Cautious response settings object with a property of threshold set to a default of 30. Available range is 0-98.
    • strict. Strict response settings object with a property of threshold set to a default of 70. Available range is 1-99.
  • standard. Uses first-party cookies to associate and transmit user behavior data.
    Important:The requesting page and protected resource need to be on the same domain as the cookie is limited to a single domain.
    Contains:
    • aggressive. Aggressive response settings object with a property of threshold set to a default of 90. Available range is 2-100.
    • cautious. Cautious response settings object with a property of threshold set to a default of 30. Available range is 0-98.
    • strict. Strict response settings object with a property of threshold set to a default of 70. Available range is 1-99.
  • nativeSdkAndroid. Attaches telemetry directly from a native Android mobile application. Contains:
    • aggressive. Aggressive response settings object with a property of threshold set to a default of 90. Available range is 2-100.
    • cautious. Cautious response settings object with a property of threshold set to a default of 30. Available range is 0-98.
    • strict. Strict response settings object with a property of threshold set to a default of 70. Available range is 1-99.
  • nativeSdkIos.. Attaches telemetry traffic directly from a native iOS mobile application. Contains:
    • aggressive. Aggressive response settings object with a property of threshold set to a default of 90. Available range is 2-100.
    • cautious. Cautious response settings object with a property of threshold set to a default of 30. Available range is 0-98.
    • strict. Strict response settings object with a property of threshold set to a default of 70. Available range is 1-99.

Attributes

There is no standard output for this resource as the changes are reflected in your state file. The attributes returned mirror the arguments.

Note: There is an id attribute. It is an ID for the run of the resource and is not needed downstream anywhere.