GetBackendBucketCdnPolicy constructor

const GetBackendBucketCdnPolicy({
  1. required Input<List<GetBackendBucketCdnPolicyBypassCacheOnRequestHeader>> bypassCacheOnRequestHeaders,
  2. required Input<List<GetBackendBucketCdnPolicyCacheKeyPolicy>> 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<GetBackendBucketCdnPolicyNegativeCachingPolicy>> negativeCachingPolicies,
  9. required Input<bool> requestCoalescing,
  10. required Input<int> serveWhileStale,
  11. required Input<int> signedUrlCacheMaxAgeSec,
})

Creates a new GetBackendBucketCdnPolicy. bypassCacheOnRequestHeaders 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. 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. When the 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. When the 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 to the origin. 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 will

Implementation

const GetBackendBucketCdnPolicy({
  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,
});