![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupCookiesArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.wafv2.kotlin.inputs
import com.pulumi.awsnative.wafv2.inputs.RuleGroupCookiesArgs.builder
import com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupMapMatchScope
import com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupOversizeHandling
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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Includes cookies of a web request.
* @property matchPattern The filter to use to identify the subset of cookies to inspect in a web request.
* You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .
* Example JSON: `"MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }`
* @property matchScope The parts of the cookies to inspect with the rule inspection criteria. If you specify `ALL` , AWS WAF inspects both keys and values.
* `All` does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical `AND` statement to combine two match rules, one that inspects the keys and another that inspects the values.
* @property oversizeHandling What AWS WAF should do if the cookies of the request are more numerous or larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF .
* The options for oversize handling are the following:
* - `CONTINUE` - Inspect the available cookies normally, according to the rule inspection criteria.
* - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
* - `NO_MATCH` - Treat the web request as not matching the rule statement.
*/
public data class RuleGroupCookiesArgs(
public val matchPattern: Output,
public val matchScope: Output,
public val oversizeHandling: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.RuleGroupCookiesArgs =
com.pulumi.awsnative.wafv2.inputs.RuleGroupCookiesArgs.builder()
.matchPattern(matchPattern.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.matchScope(matchScope.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.oversizeHandling(
oversizeHandling.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [RuleGroupCookiesArgs].
*/
@PulumiTagMarker
public class RuleGroupCookiesArgsBuilder internal constructor() {
private var matchPattern: Output? = null
private var matchScope: Output? = null
private var oversizeHandling: Output? = null
/**
* @param value The filter to use to identify the subset of cookies to inspect in a web request.
* You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .
* Example JSON: `"MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }`
*/
@JvmName("klrdibaoeeketbiq")
public suspend fun matchPattern(`value`: Output) {
this.matchPattern = value
}
/**
* @param value The parts of the cookies to inspect with the rule inspection criteria. If you specify `ALL` , AWS WAF inspects both keys and values.
* `All` does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical `AND` statement to combine two match rules, one that inspects the keys and another that inspects the values.
*/
@JvmName("ireokjjugauxafca")
public suspend fun matchScope(`value`: Output) {
this.matchScope = value
}
/**
* @param value What AWS WAF should do if the cookies of the request are more numerous or larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF .
* The options for oversize handling are the following:
* - `CONTINUE` - Inspect the available cookies normally, according to the rule inspection criteria.
* - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
* - `NO_MATCH` - Treat the web request as not matching the rule statement.
*/
@JvmName("fssuvtpreslhjwna")
public suspend fun oversizeHandling(`value`: Output) {
this.oversizeHandling = value
}
/**
* @param value The filter to use to identify the subset of cookies to inspect in a web request.
* You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .
* Example JSON: `"MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }`
*/
@JvmName("rhcqjemaigukxpos")
public suspend fun matchPattern(`value`: RuleGroupCookieMatchPatternArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.matchPattern = mapped
}
/**
* @param argument The filter to use to identify the subset of cookies to inspect in a web request.
* You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .
* Example JSON: `"MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }`
*/
@JvmName("lnwnugietfekvbeu")
public suspend fun matchPattern(argument: suspend RuleGroupCookieMatchPatternArgsBuilder.() -> Unit) {
val toBeMapped = RuleGroupCookieMatchPatternArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.matchPattern = mapped
}
/**
* @param value The parts of the cookies to inspect with the rule inspection criteria. If you specify `ALL` , AWS WAF inspects both keys and values.
* `All` does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical `AND` statement to combine two match rules, one that inspects the keys and another that inspects the values.
*/
@JvmName("anexxsqojayaepae")
public suspend fun matchScope(`value`: RuleGroupMapMatchScope) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.matchScope = mapped
}
/**
* @param value What AWS WAF should do if the cookies of the request are more numerous or larger than AWS WAF can inspect. AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF .
* The options for oversize handling are the following:
* - `CONTINUE` - Inspect the available cookies normally, according to the rule inspection criteria.
* - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
* - `NO_MATCH` - Treat the web request as not matching the rule statement.
*/
@JvmName("scnewkkuwrkiohpg")
public suspend fun oversizeHandling(`value`: RuleGroupOversizeHandling) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.oversizeHandling = mapped
}
internal fun build(): RuleGroupCookiesArgs = RuleGroupCookiesArgs(
matchPattern = matchPattern ?: throw PulumiNullFieldException("matchPattern"),
matchScope = matchScope ?: throw PulumiNullFieldException("matchScope"),
oversizeHandling = oversizeHandling ?: throw PulumiNullFieldException("oversizeHandling"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy