com.pulumi.gcp.compute.kotlin.outputs.GetBackendBucketCdnPolicy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property 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.
* @property cacheKeyPolicies The CacheKeyPolicy for this CdnPolicy.
* @property 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"]
* @property clientTtl Specifies the maximum allowed TTL for cached content served by this origin.
* @property 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).
* @property maxTtl Specifies the maximum allowed TTL for cached content served by this origin.
* @property negativeCaching Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching for common errors or redirects.
* @property negativeCachingPolicies 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.
* @property requestCoalescing If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin.
* @property 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.
* @property 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.
*/
public data class GetBackendBucketCdnPolicy(
public val bypassCacheOnRequestHeaders: List,
public val cacheKeyPolicies: List,
public val cacheMode: String,
public val clientTtl: Int,
public val defaultTtl: Int,
public val maxTtl: Int,
public val negativeCaching: Boolean,
public val negativeCachingPolicies: List,
public val requestCoalescing: Boolean,
public val serveWhileStale: Int,
public val signedUrlCacheMaxAgeSec: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetBackendBucketCdnPolicy): GetBackendBucketCdnPolicy = GetBackendBucketCdnPolicy(
bypassCacheOnRequestHeaders = javaType.bypassCacheOnRequestHeaders().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetBackendBucketCdnPolicyBypassCacheOnRequestHeader.Companion.toKotlin(args0)
})
}),
cacheKeyPolicies = javaType.cacheKeyPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetBackendBucketCdnPolicyCacheKeyPolicy.Companion.toKotlin(args0)
})
}),
cacheMode = javaType.cacheMode(),
clientTtl = javaType.clientTtl(),
defaultTtl = javaType.defaultTtl(),
maxTtl = javaType.maxTtl(),
negativeCaching = javaType.negativeCaching(),
negativeCachingPolicies = javaType.negativeCachingPolicies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.compute.kotlin.outputs.GetBackendBucketCdnPolicyNegativeCachingPolicy.Companion.toKotlin(args0)
})
}),
requestCoalescing = javaType.requestCoalescing(),
serveWhileStale = javaType.serveWhileStale(),
signedUrlCacheMaxAgeSec = javaType.signedUrlCacheMaxAgeSec(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy