GetRegionBackendServiceCdnPolicy class
Constructors
-
GetRegionBackendServiceCdnPolicy({required Input<List<GetRegionBackendServiceCdnPolicyCacheKeyPolicy>> cacheKeyPolicies, required Input<String> cacheMode, required Input<int> clientTtl, required Input<int> defaultTtl, required Input<int> maxTtl, required Input<bool> negativeCaching, required Input<List<GetRegionBackendServiceCdnPolicyNegativeCachingPolicy>> negativeCachingPolicies, required Input<int> serveWhileStale, required Input<int> signedUrlCacheMaxAgeSec})
-
Creates a new GetRegionBackendServiceCdnPolicy.
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.
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
const
-
GetRegionBackendServiceCdnPolicy.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
cacheKeyPolicies
→ Input<List<GetRegionBackendServiceCdnPolicyCacheKeyPolicy>>
-
The CacheKeyPolicy for this CdnPolicy.
final
-
cacheMode
→ Input<String>
-
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:
"USE_ORIGIN_HEADERS", "FORCE_CACHE_ALL", "CACHE_ALL_STATIC"
final
-
clientTtl
→ Input<int>
-
Specifies the maximum allowed TTL for cached content served by this origin.
final
-
defaultTtl
→ Input<int>
-
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).
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
maxTtl
→ Input<int>
-
Specifies the maximum allowed TTL for cached content served by this origin.
final
-
negativeCaching
→ Input<bool>
-
Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects.
final
-
negativeCachingPolicies
→ Input<List<GetRegionBackendServiceCdnPolicyNegativeCachingPolicy>>
-
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.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
serveWhileStale
→ Input<int>
-
Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache.
final
-
signedUrlCacheMaxAgeSec
→ Input<int>
-
Maximum number of seconds the response to a signed URL request
will be considered fresh, defaults to 1hr (3600s). After this
time period, the response will be revalidated before
being served.
final