RegionBackendServiceCdnPolicy constructor

const RegionBackendServiceCdnPolicy({
  1. Input<RegionBackendServiceCdnPolicyCacheKeyPolicy?>? cacheKeyPolicy,
  2. Input<String?>? cacheMode,
  3. Input<int?>? clientTtl,
  4. Input<int?>? defaultTtl,
  5. Input<int?>? maxTtl,
  6. Input<bool?>? negativeCaching,
  7. Input<List<RegionBackendServiceCdnPolicyNegativeCachingPolicy>?>? negativeCachingPolicies,
  8. Input<int?>? serveWhileStale,
  9. Input<int?>? signedUrlCacheMaxAgeSec,
})

Creates a new RegionBackendServiceCdnPolicy. cacheKeyPolicy 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. 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 RegionBackendServiceCdnPolicy({
  this.cacheKeyPolicy,
  this.cacheMode,
  this.clientTtl,
  this.defaultTtl,
  this.maxTtl,
  this.negativeCaching,
  this.negativeCachingPolicies,
  this.serveWhileStale,
  this.signedUrlCacheMaxAgeSec,
});