Skip to content

Commit 4a0c193

Browse files
authored
Add cdn_policy field to backend service (hashicorp#1208)
* Add CDN policy support * docs and reorderings for cdn policy * test fmt
1 parent 92aa9a3 commit 4a0c193

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/r/compute_backend_service.html.markdown

+25
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ The following arguments are supported:
7979

8080
* `iap` - (Optional) Specification for the Identity-Aware proxy. Disabled if not specified. Structure is documented below.
8181

82+
* `cdn_policy` - (Optional) Cloud CDN configuration for this BackendService. Structure is documented below.
83+
8284
* `description` - (Optional) The textual description for the backend service.
8385

8486
* `enable_cdn` - (Optional) Whether or not to enable the Cloud CDN on the backend service.
@@ -128,6 +130,29 @@ The `backend` block supports:
128130
float in the range [0.0, 1.0]. This flag can only be provided when the
129131
balancing mode is `UTILIZATION`. Defaults to `0.8`.
130132

133+
The `cdn_policy` block supports:
134+
135+
* `cache_key_policy` - (Optional) The CacheKeyPolicy for this CdnPolicy.
136+
Structure is documented below.
137+
138+
The `cache_key_policy` block supports:
139+
140+
* `include_host` - (Optional) If true, requests to different hosts will be cached separately.
141+
142+
* `include_protocol` - (Optional) If true, http and https requests will be cached separately.
143+
144+
* `include_query_string` - (Optional) If true, include query string parameters in the cache key
145+
according to `query_string_whitelist` and `query_string_blacklist`. If neither is set, the entire
146+
query string will be included. If false, the query string will be excluded from the cache key entirely.
147+
148+
* `query_string_blacklist` - (Optional) Names of query string parameters to exclude in cache keys.
149+
All other parameters will be included. Either specify `query_string_whitelist` or
150+
`query_string_blacklist`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
151+
152+
* `query_string_whitelist` - (Optional) Names of query string parameters to include in cache keys.
153+
All other parameters will be excluded. Either specify `query_string_whitelist` or
154+
`query_string_blacklist`, not both. '&' and '=' will be percent encoded and not treated as delimiters.
155+
131156
The `iap` block supports:
132157

133158
* `oauth2_client_id` - (Required) The client ID for use with OAuth 2.0.

0 commit comments

Comments
 (0)