com.pulumi.gcp.compute.kotlin.outputs.BackendServiceCdnPolicyNegativeCachingPolicy.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 BackendServiceCdnPolicyNegativeCachingPolicy(
public val code: Int? = null,
public val ttl: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.BackendServiceCdnPolicyNegativeCachingPolicy): BackendServiceCdnPolicyNegativeCachingPolicy = BackendServiceCdnPolicyNegativeCachingPolicy(
code = javaType.code().map({ args0 -> args0 }).orElse(null),
ttl = javaType.ttl().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy