diff --git a/docs/resources/firewall_config.md b/docs/resources/firewall_config.md index cdb0d39d..1df7392a 100644 --- a/docs/resources/firewall_config.md +++ b/docs/resources/firewall_config.md @@ -105,7 +105,7 @@ resource "vercel_firewall_config" "example" { algo = "fixed_window" action = "deny" } - actionDuration = "5m" + action_duration = "5m" } } } diff --git a/examples/resources/vercel_firewall_config/resource.tf b/examples/resources/vercel_firewall_config/resource.tf index f4cf090a..b7bbcb6a 100644 --- a/examples/resources/vercel_firewall_config/resource.tf +++ b/examples/resources/vercel_firewall_config/resource.tf @@ -90,7 +90,7 @@ resource "vercel_firewall_config" "example" { algo = "fixed_window" action = "deny" } - actionDuration = "5m" + action_duration = "5m" } } } diff --git a/vercel/resource_firewall_config.go b/vercel/resource_firewall_config.go index b0e2c71e..b8fb578b 100644 --- a/vercel/resource_firewall_config.go +++ b/vercel/resource_firewall_config.go @@ -511,8 +511,8 @@ func (r *FirewallRule) Mitigate() (client.Mitigate, error) { if !r.Action.Redirect.IsNull() { rd := &client.Redirect{} diags := r.Action.Redirect.As(context.Background(), rd, basetypes.ObjectAsOptions{ - UnhandledNullAsEmpty: true, - UnhandledUnknownAsEmpty: true, + UnhandledNullAsEmpty: false, + UnhandledUnknownAsEmpty: false, }) if diags.HasError() { return mit, fmt.Errorf("error converting rate limit: %s - %s", diags[0].Summary(), diags[0].Detail())