com.pulumi.gcp.compute.kotlin.inputs.RegionBackendServiceCdnPolicyCacheKeyPolicyArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionBackendServiceCdnPolicyCacheKeyPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property includeHost If true requests to different hosts will be cached separately.
* @property includeNamedCookies Names of cookies to include in cache keys.
* @property includeProtocol If true, http and https requests will be cached separately.
* @property includeQueryString If true, include query string parameters in the cache key
* according to query_string_whitelist and
* query_string_blacklist. If neither is set, the entire query
* string will be included.
* If false, the query string will be excluded from the cache
* key entirely.
* @property queryStringBlacklists Names of query string parameters to exclude in cache keys.
* All other parameters will be included. Either specify
* query_string_whitelist or query_string_blacklist, not both.
* '&' and '=' will be percent encoded and not treated as
* delimiters.
* @property queryStringWhitelists Names of query string parameters to include in cache keys.
* All other parameters will be excluded. Either specify
* query_string_whitelist or query_string_blacklist, not both.
* '&' and '=' will be percent encoded and not treated as
* delimiters.
*/
public data class RegionBackendServiceCdnPolicyCacheKeyPolicyArgs(
public val includeHost: Output? = null,
public val includeNamedCookies: Output>? = null,
public val includeProtocol: Output? = null,
public val includeQueryString: Output? = null,
public val queryStringBlacklists: Output>? = null,
public val queryStringWhitelists: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionBackendServiceCdnPolicyCacheKeyPolicyArgs =
com.pulumi.gcp.compute.inputs.RegionBackendServiceCdnPolicyCacheKeyPolicyArgs.builder()
.includeHost(includeHost?.applyValue({ args0 -> args0 }))
.includeNamedCookies(includeNamedCookies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.includeProtocol(includeProtocol?.applyValue({ args0 -> args0 }))
.includeQueryString(includeQueryString?.applyValue({ args0 -> args0 }))
.queryStringBlacklists(queryStringBlacklists?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.queryStringWhitelists(
queryStringWhitelists?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
).build()
}
/**
* Builder for [RegionBackendServiceCdnPolicyCacheKeyPolicyArgs].
*/
@PulumiTagMarker
public class RegionBackendServiceCdnPolicyCacheKeyPolicyArgsBuilder internal constructor() {
private var includeHost: Output? = null
private var includeNamedCookies: Output>? = null
private var includeProtocol: Output? = null
private var includeQueryString: Output? = null
private var queryStringBlacklists: Output>? = null
private var queryStringWhitelists: Output>? = null
/**
* @param value If true requests to different hosts will be cached separately.
*/
@JvmName("khlldnuvxnpixjbc")
public suspend fun includeHost(`value`: Output) {
this.includeHost = value
}
/**
* @param value Names of cookies to include in cache keys.
*/
@JvmName("wksmmuxcebleqkdq")
public suspend fun includeNamedCookies(`value`: Output>) {
this.includeNamedCookies = value
}
@JvmName("hjcdrgvojummqfyy")
public suspend fun includeNamedCookies(vararg values: Output) {
this.includeNamedCookies = Output.all(values.asList())
}
/**
* @param values Names of cookies to include in cache keys.
*/
@JvmName("lngnefbvjoljrrsq")
public suspend fun includeNamedCookies(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy