All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.outputs.RegionBackendServiceCdnPolicyCacheKeyPolicy.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 RegionBackendServiceCdnPolicyCacheKeyPolicy(
    public val includeHost: Boolean? = null,
    public val includeNamedCookies: List? = null,
    public val includeProtocol: Boolean? = null,
    public val includeQueryString: Boolean? = null,
    public val queryStringBlacklists: List? = null,
    public val queryStringWhitelists: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionBackendServiceCdnPolicyCacheKeyPolicy): RegionBackendServiceCdnPolicyCacheKeyPolicy = RegionBackendServiceCdnPolicyCacheKeyPolicy(
            includeHost = javaType.includeHost().map({ args0 -> args0 }).orElse(null),
            includeNamedCookies = javaType.includeNamedCookies().map({ args0 -> args0 }),
            includeProtocol = javaType.includeProtocol().map({ args0 -> args0 }).orElse(null),
            includeQueryString = javaType.includeQueryString().map({ args0 -> args0 }).orElse(null),
            queryStringBlacklists = javaType.queryStringBlacklists().map({ args0 -> args0 }),
            queryStringWhitelists = javaType.queryStringWhitelists().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy