BackendBucketCdnPolicyArgs

data class BackendBucketCdnPolicyArgs(val bypassCacheOnRequestHeaders: Output<List<BackendBucketCdnPolicyBypassCacheOnRequestHeaderArgs>>? = null, val cacheKeyPolicy: Output<BackendBucketCdnPolicyCacheKeyPolicyArgs>? = null, val cacheMode: Output<String>? = null, val clientTtl: Output<Int>? = null, val defaultTtl: Output<Int>? = null, val maxTtl: Output<Int>? = null, val negativeCaching: Output<Boolean>? = null, val negativeCachingPolicies: Output<List<BackendBucketCdnPolicyNegativeCachingPolicyArgs>>? = null, val requestCoalescing: Output<Boolean>? = null, val serveWhileStale: Output<Int>? = null, val signedUrlCacheMaxAgeSec: Output<Int>? = null) : ConvertibleToJava<BackendBucketCdnPolicyArgs>

Constructors

Link copied to clipboard
constructor(bypassCacheOnRequestHeaders: Output<List<BackendBucketCdnPolicyBypassCacheOnRequestHeaderArgs>>? = null, cacheKeyPolicy: Output<BackendBucketCdnPolicyCacheKeyPolicyArgs>? = null, cacheMode: Output<String>? = null, clientTtl: Output<Int>? = null, defaultTtl: Output<Int>? = null, maxTtl: Output<Int>? = null, negativeCaching: Output<Boolean>? = null, negativeCachingPolicies: Output<List<BackendBucketCdnPolicyNegativeCachingPolicyArgs>>? = null, requestCoalescing: Output<Boolean>? = null, serveWhileStale: Output<Int>? = null, signedUrlCacheMaxAgeSec: Output<Int>? = null)

Properties

Link copied to clipboard

Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. Structure is documented below.

Link copied to clipboard

The CacheKeyPolicy for this CdnPolicy. Structure is documented below.

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

Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS, FORCE_CACHE_ALL and CACHE_ALL_STATIC Possible values are: USE_ORIGIN_HEADERS, FORCE_CACHE_ALL, CACHE_ALL_STATIC.

Link copied to clipboard
val clientTtl: Output<Int>? = null

Specifies the maximum allowed TTL for cached content served by this origin.

Link copied to clipboard
val defaultTtl: Output<Int>? = null

Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age).

Link copied to clipboard
val maxTtl: Output<Int>? = null

Specifies the maximum allowed TTL for cached content served by this origin.

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

Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects.

Link copied to clipboard

Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy. Omitting the policy and leaving negativeCaching enabled will use Cloud CDN's default cache TTLs. Structure is documented below.

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

If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin.

Link copied to clipboard
val serveWhileStale: Output<Int>? = null

Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache.

Link copied to clipboard
val signedUrlCacheMaxAgeSec: Output<Int>? = null

Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=TTL" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.

Functions

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