CacheKeyPolicyArgs

data class CacheKeyPolicyArgs(val includeHost: Output<Boolean>? = null, val includeHttpHeaders: Output<List<String>>? = null, val includeNamedCookies: Output<List<String>>? = null, val includeProtocol: Output<Boolean>? = null, val includeQueryString: Output<Boolean>? = null, val queryStringBlacklist: Output<List<String>>? = null, val queryStringWhitelist: Output<List<String>>? = null) : ConvertibleToJava<CacheKeyPolicyArgs>

Message containing what to include in the cache key for a request for Cloud CDN.

Constructors

Link copied to clipboard
fun CacheKeyPolicyArgs(includeHost: Output<Boolean>? = null, includeHttpHeaders: Output<List<String>>? = null, includeNamedCookies: Output<List<String>>? = null, includeProtocol: Output<Boolean>? = null, includeQueryString: Output<Boolean>? = null, queryStringBlacklist: Output<List<String>>? = null, queryStringWhitelist: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): CacheKeyPolicyArgs

Properties

Link copied to clipboard
val includeHost: Output<Boolean>? = null

If true, requests to different hosts will be cached separately.

Link copied to clipboard
val includeHttpHeaders: Output<List<String>>? = null

Allows HTTP request headers (by name) to be used in the cache key.

Link copied to clipboard
val includeNamedCookies: Output<List<String>>? = null

Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.

Link copied to clipboard
val includeProtocol: Output<Boolean>? = null

If true, http and https requests will be cached separately.

Link copied to clipboard
val includeQueryString: Output<Boolean>? = null

If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.

Link copied to clipboard
val queryStringBlacklist: Output<List<String>>? = null

Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

Link copied to clipboard
val queryStringWhitelist: Output<List<String>>? = null

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.