Class ComputeBackendBucketCdnPolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bypassCacheOnRequestHeaders

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder bypassCacheOnRequestHeaders​(com.hashicorp.cdktf.IResolvable bypassCacheOnRequestHeaders)
        Parameters:
        bypassCacheOnRequestHeaders - bypass_cache_on_request_headers block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#bypass_cache_on_request_headers ComputeBackendBucket#bypass_cache_on_request_headers}
        Returns:
        this
      • cacheMode

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder cacheMode​(String cacheMode)
        Parameters:
        cacheMode - 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"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#cache_mode ComputeBackendBucket#cache_mode}
        Returns:
        this
      • clientTtl

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder clientTtl​(Number clientTtl)
        Parameters:
        clientTtl - Specifies the maximum allowed TTL for cached content served by this origin. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#client_ttl ComputeBackendBucket#client_ttl}
        Returns:
        this
      • defaultTtl

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder defaultTtl​(Number defaultTtl)
        Parameters:
        defaultTtl - 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). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#default_ttl ComputeBackendBucket#default_ttl}
        Returns:
        this
      • maxTtl

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder maxTtl​(Number maxTtl)
        Parameters:
        maxTtl - Specifies the maximum allowed TTL for cached content served by this origin. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#max_ttl ComputeBackendBucket#max_ttl}
        Returns:
        this
      • negativeCaching

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder negativeCaching​(Boolean negativeCaching)
        Parameters:
        negativeCaching - Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#negative_caching ComputeBackendBucket#negative_caching}
        Returns:
        this
      • negativeCaching

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder negativeCaching​(com.hashicorp.cdktf.IResolvable negativeCaching)
        Parameters:
        negativeCaching - Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#negative_caching ComputeBackendBucket#negative_caching}
        Returns:
        this
      • negativeCachingPolicy

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder negativeCachingPolicy​(com.hashicorp.cdktf.IResolvable negativeCachingPolicy)
        Parameters:
        negativeCachingPolicy - negative_caching_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#negative_caching_policy ComputeBackendBucket#negative_caching_policy}
        Returns:
        this
      • requestCoalescing

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder requestCoalescing​(Boolean requestCoalescing)
        Parameters:
        requestCoalescing - If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#request_coalescing ComputeBackendBucket#request_coalescing}
        Returns:
        this
      • requestCoalescing

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder requestCoalescing​(com.hashicorp.cdktf.IResolvable requestCoalescing)
        Parameters:
        requestCoalescing - If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#request_coalescing ComputeBackendBucket#request_coalescing}
        Returns:
        this
      • serveWhileStale

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder serveWhileStale​(Number serveWhileStale)
        Parameters:
        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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#serve_while_stale ComputeBackendBucket#serve_while_stale}
        Returns:
        this
      • signedUrlCacheMaxAgeSec

        @Stability(Stable)
        public ComputeBackendBucketCdnPolicy.Builder signedUrlCacheMaxAgeSec​(Number signedUrlCacheMaxAgeSec)
        Parameters:
        signedUrlCacheMaxAgeSec - Maximum number of seconds the response to a signed URL request will be considered fresh. After this time period, the response will be revalidated before being served. When serving responses to signed URL requests, Cloud CDN will internally behave as though all responses from this backend had a "Cache-Control: public, max-age=[TTL]" header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_bucket#signed_url_cache_max_age_sec ComputeBackendBucket#signed_url_cache_max_age_sec}
        Returns:
        this