Makes cache setting condition optional in fastly service
This commit is contained in:
parent
3489795396
commit
041d5a369e
|
@ -318,17 +318,18 @@ func resourceServiceV1() *schema.Resource {
|
||||||
Required: true,
|
Required: true,
|
||||||
Description: "A name to refer to this Cache Setting",
|
Description: "A name to refer to this Cache Setting",
|
||||||
},
|
},
|
||||||
"cache_condition": {
|
|
||||||
Type: schema.TypeString,
|
|
||||||
Required: true,
|
|
||||||
Description: "Name of a condition to check if this Cache Setting applies",
|
|
||||||
},
|
|
||||||
"action": {
|
"action": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Description: "Action to take",
|
Description: "Action to take",
|
||||||
},
|
},
|
||||||
// optional
|
// optional
|
||||||
|
"cache_condition": {
|
||||||
|
Type: schema.TypeString,
|
||||||
|
Optional: true,
|
||||||
|
Default: "",
|
||||||
|
Description: "Name of a condition to check if this Cache Setting applies",
|
||||||
|
},
|
||||||
"stale_ttl": {
|
"stale_ttl": {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
|
|
@ -209,7 +209,7 @@ The `cache_setting` block supports:
|
||||||
* `name` - (Required) Unique name for this Cache Setting.
|
* `name` - (Required) Unique name for this Cache Setting.
|
||||||
* `action` - (Required) One of `cache`, `pass`, or `restart`, as defined
|
* `action` - (Required) One of `cache`, `pass`, or `restart`, as defined
|
||||||
on Fastly's documentation under ["Caching action descriptions"](https://docs.fastly.com/guides/performance-tuning/controlling-caching#caching-action-descriptions).
|
on Fastly's documentation under ["Caching action descriptions"](https://docs.fastly.com/guides/performance-tuning/controlling-caching#caching-action-descriptions).
|
||||||
* `cache_condition` - (Required) Name of already defined `condition` used to test whether this settings object should be used. This `condition` must be of type `CACHE`.
|
* `cache_condition` - (Optional) Name of already defined `condition` used to test whether this settings object should be used. This `condition` must be of type `CACHE`.
|
||||||
* `stale_ttl` - (Optional) Max "Time To Live" for stale (unreachable) objects.
|
* `stale_ttl` - (Optional) Max "Time To Live" for stale (unreachable) objects.
|
||||||
Default `300`.
|
Default `300`.
|
||||||
* `ttl` - (Optional) The Time-To-Live (TTL) for the object.
|
* `ttl` - (Optional) The Time-To-Live (TTL) for the object.
|
||||||
|
|
Loading…
Reference in New Issue