Conditional action
akamai_botman_conditional_action
Creates or updates a conditional action.
Example
data "akamai_appsec_configuration" "configuration" {
name = "Documentation"
}
// USE CASE: User wants to create a new conditional action
resource "akamai_botman_conditional_action" "conditional_action" {
config_id = data.akamai_appsec_configuration.configuration.config_id
conditional_action = file("${path.module}/conditional_action.json")
}
// USE CASE: User wants to update an existing conditional action
resource "akamai_botman_conditional_action" "conditional_action" {
config_id = data.akamai_appsec_configuration.configuration.config_id
conditional_action = file("${path.module}/conditional_action.json")
}
Argument reference
This resource supports the following arguments:
config_id
(Required). Unique identifier of the security configuration associated with the conditional actions.conditional_action
(Required). JSON-formatted collection of conditional action settings and setting values. In the preceding sample code, the syntaxfile("${path.module}/conditional_action.json")
points to the location of a JSON file containing the conditional action settings and values. Use the Bot Manager API or Bot Manager in Akamai Control Center to create a configuration. Then, export your configuration or use the corresponding data source to get the JSON file.
Updated 11 months ago