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

com.pulumi.gcp.compute.kotlin.outputs.GetBackendServiceCdnPolicyCacheKeyPolicy.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 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 GetBackendServiceCdnPolicyCacheKeyPolicy(
    public val includeHost: Boolean,
    public val includeHttpHeaders: List,
    public val includeNamedCookies: List,
    public val includeProtocol: Boolean,
    public val includeQueryString: Boolean,
    public val queryStringBlacklists: List,
    public val queryStringWhitelists: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetBackendServiceCdnPolicyCacheKeyPolicy): GetBackendServiceCdnPolicyCacheKeyPolicy = GetBackendServiceCdnPolicyCacheKeyPolicy(
            includeHost = javaType.includeHost(),
            includeHttpHeaders = javaType.includeHttpHeaders().map({ args0 -> args0 }),
            includeNamedCookies = javaType.includeNamedCookies().map({ args0 -> args0 }),
            includeProtocol = javaType.includeProtocol(),
            includeQueryString = javaType.includeQueryString(),
            queryStringBlacklists = javaType.queryStringBlacklists().map({ args0 -> args0 }),
            queryStringWhitelists = javaType.queryStringWhitelists().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy