com.pulumi.gcp.compute.kotlin.outputs.GetBackendBucketCdnPolicyNegativeCachingPolicy.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.Int
import kotlin.Suppress
/**
*
* @property code The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 308, 404, 405, 410, 421, 451 and 501
* can be specified as values, and you cannot specify a status code more than once.
* @property ttl The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s
* (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
*/
public data class GetBackendBucketCdnPolicyNegativeCachingPolicy(
public val code: Int,
public val ttl: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetBackendBucketCdnPolicyNegativeCachingPolicy): GetBackendBucketCdnPolicyNegativeCachingPolicy =
GetBackendBucketCdnPolicyNegativeCachingPolicy(
code = javaType.code(),
ttl = javaType.ttl(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy