GetBackendServiceCdnPolicy constructor

const GetBackendServiceCdnPolicy({
  1. required Input<List<GetBackendServiceCdnPolicyBypassCacheOnRequestHeader>> bypassCacheOnRequestHeaders,
  2. required Input<List<GetBackendServiceCdnPolicyCacheKeyPolicy>> cacheKeyPolicies,
  3. required Input<String> cacheMode,
  4. required Input<int> clientTtl,
  5. required Input<int> defaultTtl,
  6. required Input<int> maxTtl,
  7. required Input<bool> negativeCaching,
  8. required Input<List<GetBackendServiceCdnPolicyNegativeCachingPolicy>> negativeCachingPolicies,
  9. required Input<bool> requestCoalescing,
  10. required Input<int> serveWhileStale,
  11. required Input<int> signedUrlCacheMaxAgeSec,
})

Creates a new GetBackendServiceCdnPolicy. bypassCacheOnRequestHeaders Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. cacheKeyPolicies The CacheKeyPolicy for this CdnPolicy. cacheMode Specifies the cache setting for all responses from this backend. clientTtl Specifies the maximum allowed TTL for cached content served by this origin. defaultTtl Specifies the default TTL for cached content served by this origin for responses maxTtl Specifies the maximum allowed TTL for cached content served by this origin. negativeCaching Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. negativeCachingPolicies Sets a cache TTL for the specified HTTP status code. negativeCaching must be enabled to configure negativeCachingPolicy. requestCoalescing If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests serveWhileStale Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. signedUrlCacheMaxAgeSec Maximum number of seconds the response to a signed URL request

Implementation

const GetBackendServiceCdnPolicy({
  required this.bypassCacheOnRequestHeaders,
  required this.cacheKeyPolicies,
  required this.cacheMode,
  required this.clientTtl,
  required this.defaultTtl,
  required this.maxTtl,
  required this.negativeCaching,
  required this.negativeCachingPolicies,
  required this.requestCoalescing,
  required this.serveWhileStale,
  required this.signedUrlCacheMaxAgeSec,
});