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

com.pulumi.awsnative.cloudfront.kotlin.inputs.OriginRequestPolicyQueryStringsConfigArgs.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.inputs

import com.pulumi.awsnative.cloudfront.inputs.OriginRequestPolicyQueryStringsConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @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 OriginRequestPolicyQueryStringsConfigArgs(
    public val queryStringBehavior: Output,
    public val queryStrings: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.OriginRequestPolicyQueryStringsConfigArgs =
        com.pulumi.awsnative.cloudfront.inputs.OriginRequestPolicyQueryStringsConfigArgs.builder()
            .queryStringBehavior(queryStringBehavior.applyValue({ args0 -> args0 }))
            .queryStrings(queryStrings?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [OriginRequestPolicyQueryStringsConfigArgs].
 */
@PulumiTagMarker
public class OriginRequestPolicyQueryStringsConfigArgsBuilder internal constructor() {
    private var queryStringBehavior: Output? = null

    private var queryStrings: Output>? = null

    /**
     * @param value 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.
     */
    @JvmName("rdgrquysqrnevrck")
    public suspend fun queryStringBehavior(`value`: Output) {
        this.queryStringBehavior = value
    }

    /**
     * @param value Contains a list of query string names.
     */
    @JvmName("aedlqumibqkiwqib")
    public suspend fun queryStrings(`value`: Output>) {
        this.queryStrings = value
    }

    @JvmName("pjsqbgvknplcotek")
    public suspend fun queryStrings(vararg values: Output) {
        this.queryStrings = Output.all(values.asList())
    }

    /**
     * @param values Contains a list of query string names.
     */
    @JvmName("nmlxtngeyvqfjcln")
    public suspend fun queryStrings(values: List>) {
        this.queryStrings = Output.all(values)
    }

    /**
     * @param value 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.
     */
    @JvmName("blolkrndkcwekqmy")
    public suspend fun queryStringBehavior(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStringBehavior = mapped
    }

    /**
     * @param value Contains a list of query string names.
     */
    @JvmName("kbhaoaumsnrxjqkg")
    public suspend fun queryStrings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryStrings = mapped
    }

    /**
     * @param values Contains a list of query string names.
     */
    @JvmName("lobcjmkpvcxpcdab")
    public suspend fun queryStrings(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryStrings = mapped
    }

    internal fun build(): OriginRequestPolicyQueryStringsConfigArgs =
        OriginRequestPolicyQueryStringsConfigArgs(
            queryStringBehavior = queryStringBehavior ?: throw PulumiNullFieldException("queryStringBehavior"),
            queryStrings = queryStrings,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy