ComputeBackendBucketBackendBucketCdnPolicy class
cdn_policy block — Cloud CDN configuration for this backend
bucket. Only honored when GoogleComputeBackendBucket.enableCdn is
true. Distinct type from BackendServiceCdnPolicy: the shape
is similar but the schema has bucket-specific quirks (no
cacheKeyPolicy.includeHost / includeProtocol /
includeQueryString — buckets only expose the
queryStringWhitelist / includeHttpHeaders axes).
- Annotations
-
- @immutable
Constructors
-
ComputeBackendBucketBackendBucketCdnPolicy({BackendBucketCacheMode? cacheMode, TfArg<
int> ? clientTtl, TfArg<int> ? defaultTtl, TfArg<int> ? maxTtl, TfArg<bool> ? negativeCaching, TfArg<bool> ? requestCoalescing, TfArg<int> ? serveWhileStale, TfArg<int> ? signedUrlCacheMaxAgeSec, List<ComputeBackendBucketBackendBucketCdnBypassCacheOnRequestHeader> ? bypassCacheOnRequestHeaders, ComputeBackendBucketBackendBucketCdnCacheKeyPolicy? cacheKeyPolicy, List<ComputeBackendBucketBackendBucketCdnNegativeCachingPolicy> ? negativeCachingPolicy}) -
const
Properties
-
bypassCacheOnRequestHeaders
→ List<
ComputeBackendBucketBackendBucketCdnBypassCacheOnRequestHeader> ? -
Bypass the cache when any of these request headers is present.
Up to 5 entries.
final
- cacheKeyPolicy → ComputeBackendBucketBackendBucketCdnCacheKeyPolicy?
-
Cache key policy — which request components participate in the
cache key.
final
- cacheMode → BackendBucketCacheMode?
-
Cache mode. Defaults to
CACHE_ALL_STATICwhen CDN is enabled.final -
clientTtl
→ TfArg<
int> ? -
Max TTL (seconds) the cache will serve content to clients for.
Must be omitted when cacheMode is
BackendBucketCacheMode.useOriginHeaders.
final
-
defaultTtl
→ TfArg<
int> ? -
Default TTL for cached content with no upstream
Cache-Control. Must be omitted when cacheMode is BackendBucketCacheMode.useOriginHeaders.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
maxTtl
→ TfArg<
int> ? -
Hard ceiling on cached content TTL. Must be omitted when
cacheMode is BackendBucketCacheMode.useOriginHeaders.
final
-
negativeCaching
→ TfArg<
bool> ? -
Negative caching for selected status codes. Pair with
negativeCachingPolicy for per-code TTLs.
final
-
negativeCachingPolicy
→ List<
ComputeBackendBucketBackendBucketCdnNegativeCachingPolicy> ? -
Per-status-code negative-cache TTLs. Only honored when
negativeCaching is
true.final -
requestCoalescing
→ TfArg<
bool> ? -
Coalesce concurrent cache-fill requests to the origin.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serveWhileStale
→ TfArg<
int> ? -
Serve cached content during origin revalidation or errors
(seconds).
final
-
signedUrlCacheMaxAgeSec
→ TfArg<
int> ? -
TTL for signed-URL responses (defaults to 3600 if unset).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArgMap(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited