Skip to content

Commit

Permalink
fix 27862
Browse files Browse the repository at this point in the history
  • Loading branch information
sinbai committed Oct 31, 2024
1 parent 5ac81cf commit 35859ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,8 @@ func resourceWebApplicationFirewallPolicy() *pluginsdk.Resource {
Type: pluginsdk.TypeSet,
Optional: true,
Elem: &pluginsdk.Schema{
Type: pluginsdk.TypeString,
ValidateFunc: validation.StringInSlice([]string{
string(webapplicationfirewallpolicies.WebApplicationFirewallTransformHtmlEntityDecode),
string(webapplicationfirewallpolicies.WebApplicationFirewallTransformLowercase),
string(webapplicationfirewallpolicies.WebApplicationFirewallTransformRemoveNulls),
string(webapplicationfirewallpolicies.WebApplicationFirewallTransformTrim),
string(webapplicationfirewallpolicies.WebApplicationFirewallTransformURLDecode),
string(webapplicationfirewallpolicies.WebApplicationFirewallTransformURLEncode),
}, false),
Type: pluginsdk.TypeString,
ValidateFunc: validation.StringInSlice(webapplicationfirewallpolicies.PossibleValuesForWebApplicationFirewallTransform(), false),
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ resource "azurerm_web_application_firewall_policy" "test" {
operator = "Contains"
negation_condition = false
match_values = ["windows"]
transforms = ["Lowercase"]
transforms = ["Uppercase"]
}
action = "Block"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ The `match_conditions` block supports the following:

* `negation_condition` - (Optional) Describes if this is negate condition or not

* `transforms` - (Optional) A list of transformations to do before the match is attempted. Possible values are `HtmlEntityDecode`, `Lowercase`, `RemoveNulls`, `Trim`, `UrlDecode` and `UrlEncode`.
* `transforms` - (Optional) A list of transformations to do before the match is attempted. Possible values are `HtmlEntityDecode`, `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `UrlDecode` and `UrlEncode`.

---

Expand Down

0 comments on commit 35859ee

Please sign in to comment.