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

com.pulumi.awsnative.cloudfront.kotlin.outputs.OriginRequestPolicyQueryStringsConfig.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudfront.kotlin.outputs

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

/**
 *
 * @property queryStringBehavior Determines whether any URL query strings in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
 * - `none` – No query strings in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to `none` , any query strings that are listed in a `CachePolicy` *are* included in origin requests.
 * - `whitelist` – Only the query strings in viewer requests that are listed in the `QueryStringNames` type are included in requests that CloudFront sends to the origin.
 * - `all` – All query strings in viewer requests are included in requests that CloudFront sends to the origin.
 * - `allExcept` – All query strings in viewer requests are included in requests that CloudFront sends to the origin, **except** for those listed in the `QueryStringNames` type, which are not included.
 * @property queryStrings Contains a list of query string names.
 */
public data class OriginRequestPolicyQueryStringsConfig(
    public val queryStringBehavior: String,
    public val queryStrings: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.cloudfront.outputs.OriginRequestPolicyQueryStringsConfig): OriginRequestPolicyQueryStringsConfig = OriginRequestPolicyQueryStringsConfig(
            queryStringBehavior = javaType.queryStringBehavior(),
            queryStrings = javaType.queryStrings().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy