Makes request condition optional for fastly request settings
This commit is contained in:
parent
eeecf5183c
commit
3489795396
|
@ -776,12 +776,13 @@ func resourceServiceV1() *schema.Resource {
|
|||
Required: true,
|
||||
Description: "Unique name to refer to this Request Setting",
|
||||
},
|
||||
// Optional fields
|
||||
"request_condition": {
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
Description: "Name of a request condition to apply.",
|
||||
Optional: true,
|
||||
Default: "",
|
||||
Description: "Name of a request condition to apply. If there is no condition this setting will always be applied.",
|
||||
},
|
||||
// Optional fields
|
||||
"max_stale_age": {
|
||||
Type: schema.TypeInt,
|
||||
Optional: true,
|
||||
|
|
|
@ -263,7 +263,7 @@ The `request_setting` block allow you to customize Fastly's request handling, by
|
|||
defining behavior that should change based on a predefined `condition`:
|
||||
|
||||
* `name` - (Required) The domain for this request setting.
|
||||
* `request_condition` - (Required) Name of already defined `condition` to
|
||||
* `request_condition` - (Optional) Name of already defined `condition` to
|
||||
determine if this request setting should be applied.
|
||||
* `max_stale_age` - (Optional) How old an object is allowed to be to serve
|
||||
`stale-if-error` or `stale-while-revalidate`, in seconds. Default `60`.
|
||||
|
|
Loading…
Reference in New Issue