Skip to content

Commit

Permalink
Merge pull request #1 from fastly/WAF-1748-unrequire-prefetch-condition
Browse files Browse the repository at this point in the history
remove prefetch condition requirement
  • Loading branch information
squeemishly authored and phamann committed Aug 7, 2020
1 parent 7e81bd6 commit 182c38f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fastly/block_fastly_service_v1_waf.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (h *WAFServiceAttributeHandler) Register(s *schema.Resource) error {
},
"prefetch_condition": {
Type: schema.TypeString,
Required: true,
Optional: true,
Description: "The Web Application Firewall's (WAF) prefetch condition",
},
"waf_id": {
Expand Down
3 changes: 1 addition & 2 deletions website/docs/r/service_v1.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,7 @@ the items are managed outside of Terraform.
The `waf` block supports:

* `response_object` - (Required) The name of the [response object](#response_object) used by the Web Application Firewall.
* `prefetch_condition` - (Required) Name of already defined `condition` to apply. This `condition` must be of type `PREFETCH`.
For detailed information about Conditionals, see [Fastly's Documentation on Conditionals][fastly-conditionals].
* `prefetch_condition` - (Optional) The `condition` to determine which requests will be run past your Fastly WAF. This `condition` must be of type `PREFETCH`. For detailed information about Conditionals, see [Fastly's Documentation on Conditionals][fastly-conditionals].

## Attributes Reference

Expand Down

0 comments on commit 182c38f

Please sign in to comment.