Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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.BackendServiceCdnPolicyCacheKeyPolicyArgs.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 includeHttpHeaders Allows HTTP request headers (by name) to be used in the
* cache key.
* @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 BackendServiceCdnPolicyCacheKeyPolicyArgs(
public val includeHost: Output? = null,
public val includeHttpHeaders: 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.BackendServiceCdnPolicyCacheKeyPolicyArgs =
com.pulumi.gcp.compute.inputs.BackendServiceCdnPolicyCacheKeyPolicyArgs.builder()
.includeHost(includeHost?.applyValue({ args0 -> args0 }))
.includeHttpHeaders(includeHttpHeaders?.applyValue({ args0 -> args0.map({ 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 [BackendServiceCdnPolicyCacheKeyPolicyArgs].
*/
@PulumiTagMarker
public class BackendServiceCdnPolicyCacheKeyPolicyArgsBuilder internal constructor() {
private var includeHost: Output? = null
private var includeHttpHeaders: 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("fbdnuwdwenleirhx")
public suspend fun includeHost(`value`: Output) {
this.includeHost = value
}
/**
* @param value Allows HTTP request headers (by name) to be used in the
* cache key.
*/
@JvmName("seuafrhessxktain")
public suspend fun includeHttpHeaders(`value`: Output>) {
this.includeHttpHeaders = value
}
@JvmName("dysotoltucgvecjq")
public suspend fun includeHttpHeaders(vararg values: Output) {
this.includeHttpHeaders = Output.all(values.asList())
}
/**
* @param values Allows HTTP request headers (by name) to be used in the
* cache key.
*/
@JvmName("jptpllvwrguhnqvo")
public suspend fun includeHttpHeaders(values: List