
com.pulumi.awsnative.cloudfront.kotlin.inputs.OriginRequestPolicyCookiesConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudfront.kotlin.inputs
import com.pulumi.awsnative.cloudfront.inputs.OriginRequestPolicyCookiesConfigArgs.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 cookieBehavior Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
* - `none` – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to `none` , any cookies that are listed in a `CachePolicy` *are* included in origin requests.
* - `whitelist` – Only the cookies in viewer requests that are listed in the `CookieNames` type are included in requests that CloudFront sends to the origin.
* - `all` – All cookies in viewer requests are included in requests that CloudFront sends to the origin.
* - `allExcept` – All cookies in viewer requests are included in requests that CloudFront sends to the origin, **except** for those listed in the `CookieNames` type, which are not included.
* @property cookies Contains a list of cookie names.
*/
public data class OriginRequestPolicyCookiesConfigArgs(
public val cookieBehavior: Output,
public val cookies: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.OriginRequestPolicyCookiesConfigArgs = com.pulumi.awsnative.cloudfront.inputs.OriginRequestPolicyCookiesConfigArgs.builder()
.cookieBehavior(cookieBehavior.applyValue({ args0 -> args0 }))
.cookies(cookies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [OriginRequestPolicyCookiesConfigArgs].
*/
@PulumiTagMarker
public class OriginRequestPolicyCookiesConfigArgsBuilder internal constructor() {
private var cookieBehavior: Output? = null
private var cookies: Output>? = null
/**
* @param value Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
* - `none` – No cookies in viewer requests are included in requests that CloudFront sends to the origin. Even when this field is set to `none` , any cookies that are listed in a `CachePolicy` *are* included in origin requests.
* - `whitelist` – Only the cookies in viewer requests that are listed in the `CookieNames` type are included in requests that CloudFront sends to the origin.
* - `all` – All cookies in viewer requests are included in requests that CloudFront sends to the origin.
* - `allExcept` – All cookies in viewer requests are included in requests that CloudFront sends to the origin, **except** for those listed in the `CookieNames` type, which are not included.
*/
@JvmName("cxqjjnnaooprsuul")
public suspend fun cookieBehavior(`value`: Output) {
this.cookieBehavior = value
}
/**
* @param value Contains a list of cookie names.
*/
@JvmName("cimpmwtprusiwicq")
public suspend fun cookies(`value`: Output>) {
this.cookies = value
}
@JvmName("rcedqysnmtixtivw")
public suspend fun cookies(vararg values: Output) {
this.cookies = Output.all(values.asList())
}
/**
* @param values Contains a list of cookie names.
*/
@JvmName("uxtiwmsqvvjxsbxd")
public suspend fun cookies(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy