You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"azurerm_web_application_firewall_policy" {
source="./modules/azurerm/r/azurerm_web_application_firewall_policy"# http_listener_ids - (optional) is a type of list of stringhttp_listener_ids=[]
# location - (required) is a type of stringlocation=null# name - (required) is a type of stringname=null# path_based_rule_ids - (optional) is a type of list of stringpath_based_rule_ids=[]
# resource_group_name - (required) is a type of stringresource_group_name=null# tags - (optional) is a type of map of stringtags={}
custom_rules=[{
action =null
match_conditions = [{
match_values = []
match_variables = [{
selector =null
variable_name =null
}]
negation_condition =null
operator =null
transforms = []
}]
name =null
priority =null
rule_type =null
}]
managed_rules=[{
exclusion = [{
match_variable =null
selector =null
selector_match_operator =null
}]
managed_rule_set = [{
rule_group_override = [{
disabled_rules = []
rule_group_name =null
}]
type =null
version =null
}]
}]
policy_settings=[{
enabled =null
file_upload_limit_in_mb =null
max_request_body_size_in_kb =null
mode =null
request_body_check =null
}]
timeouts=[{
create =null
delete =null
read =null
update =null
}]
}
resource"azurerm_web_application_firewall_policy""this" {
# http_listener_ids - (optional) is a type of list of stringhttp_listener_ids=var.http_listener_ids# location - (required) is a type of stringlocation=var.location# name - (required) is a type of stringname=var.name# path_based_rule_ids - (optional) is a type of list of stringpath_based_rule_ids=var.path_based_rule_ids# resource_group_name - (required) is a type of stringresource_group_name=var.resource_group_name# tags - (optional) is a type of map of stringtags=var.tagsdynamic"custom_rules" {
for_each=var.custom_rulescontent {
# action - (required) is a type of stringaction=custom_rules.value["action"]
# name - (optional) is a type of stringname=custom_rules.value["name"]
# priority - (required) is a type of numberpriority=custom_rules.value["priority"]
# rule_type - (required) is a type of stringrule_type=custom_rules.value["rule_type"]
dynamic"match_conditions" {
for_each=custom_rules.value.match_conditionscontent {
# match_values - (required) is a type of list of stringmatch_values=match_conditions.value["match_values"]
# negation_condition - (optional) is a type of boolnegation_condition=match_conditions.value["negation_condition"]
# operator - (required) is a type of stringoperator=match_conditions.value["operator"]
# transforms - (optional) is a type of set of stringtransforms=match_conditions.value["transforms"]
dynamic"match_variables" {
for_each=match_conditions.value.match_variablescontent {
# selector - (optional) is a type of stringselector=match_variables.value["selector"]
# variable_name - (required) is a type of stringvariable_name=match_variables.value["variable_name"]
}
}
}
}
}
}
dynamic"managed_rules" {
for_each=var.managed_rulescontent {
dynamic"exclusion" {
for_each=managed_rules.value.exclusioncontent {
# match_variable - (required) is a type of stringmatch_variable=exclusion.value["match_variable"]
# selector - (required) is a type of stringselector=exclusion.value["selector"]
# selector_match_operator - (required) is a type of stringselector_match_operator=exclusion.value["selector_match_operator"]
}
}
dynamic"managed_rule_set" {
for_each=managed_rules.value.managed_rule_setcontent {
# type - (optional) is a type of stringtype=managed_rule_set.value["type"]
# version - (required) is a type of stringversion=managed_rule_set.value["version"]
dynamic"rule_group_override" {
for_each=managed_rule_set.value.rule_group_overridecontent {
# disabled_rules - (required) is a type of list of stringdisabled_rules=rule_group_override.value["disabled_rules"]
# rule_group_name - (required) is a type of stringrule_group_name=rule_group_override.value["rule_group_name"]
}
}
}
}
}
}
dynamic"policy_settings" {
for_each=var.policy_settingscontent {
# enabled - (optional) is a type of boolenabled=policy_settings.value["enabled"]
# file_upload_limit_in_mb - (optional) is a type of numberfile_upload_limit_in_mb=policy_settings.value["file_upload_limit_in_mb"]
# max_request_body_size_in_kb - (optional) is a type of numbermax_request_body_size_in_kb=policy_settings.value["max_request_body_size_in_kb"]
# mode - (optional) is a type of stringmode=policy_settings.value["mode"]
# request_body_check - (optional) is a type of boolrequest_body_check=policy_settings.value["request_body_check"]
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# read - (optional) is a type of stringread=timeouts.value["read"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}