
com.pulumi.awsnative.cloudfront.kotlin.outputs.OriginRequestPolicyCookiesConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudfront.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 OriginRequestPolicyCookiesConfig(
public val cookieBehavior: String,
public val cookies: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cloudfront.outputs.OriginRequestPolicyCookiesConfig): OriginRequestPolicyCookiesConfig = OriginRequestPolicyCookiesConfig(
cookieBehavior = javaType.cookieBehavior(),
cookies = javaType.cookies().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy