com.pulumi.aws.wafv2.kotlin.inputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.wafv2.kotlin.inputs
import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property fieldToMatch The part of a web request that you want AWS WAF to inspect. See Field to Match below for details.
* @property positionalConstraint The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information.
* @property searchString A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes.
* @property textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
* At least one required.
* See Text Transformation below for details.
*/
public data class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs(
public val fieldToMatch: Output? =
null,
public val positionalConstraint: Output,
public val searchString: Output,
public val textTransformations: Output>,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs =
com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs.builder()
.fieldToMatch(fieldToMatch?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.positionalConstraint(positionalConstraint.applyValue({ args0 -> args0 }))
.searchString(searchString.applyValue({ args0 -> args0 }))
.textTransformations(
textTransformations.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgs].
*/
@PulumiTagMarker
public class RuleGroupRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementArgsBuilder
internal constructor() {
private var fieldToMatch:
Output? =
null
private var positionalConstraint: Output? = null
private var searchString: Output? = null
private var textTransformations:
Output>? =
null
/**
* @param value The part of a web request that you want AWS WAF to inspect. See Field to Match below for details.
*/
@JvmName("gaomostknsisfqhy")
public suspend fun fieldToMatch(`value`: Output) {
this.fieldToMatch = value
}
/**
* @param value The area within the portion of a web request that you want AWS WAF to search for `search_string`. Valid values include the following: `EXACTLY`, `STARTS_WITH`, `ENDS_WITH`, `CONTAINS`, `CONTAINS_WORD`. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_ByteMatchStatement.html) for more information.
*/
@JvmName("foqcbuybnrbrtbrg")
public suspend fun positionalConstraint(`value`: Output) {
this.positionalConstraint = value
}
/**
* @param value A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in `field_to_match`. The maximum length of the value is 50 bytes.
*/
@JvmName("tewwcevgxnqoccvr")
public suspend fun searchString(`value`: Output) {
this.searchString = value
}
/**
* @param value Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
* At least one required.
* See Text Transformation below for details.
*/
@JvmName("yjhuymjbvfkoyyoj")
public suspend fun textTransformations(`value`: Output>) {
this.textTransformations = value
}
@JvmName("shslihiivhjjvhqu")
public suspend fun textTransformations(vararg values: Output) {
this.textTransformations = Output.all(values.asList())
}
/**
* @param values Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
* At least one required.
* See Text Transformation below for details.
*/
@JvmName("wpduchgrnyrpcdnp")
public suspend fun textTransformations(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy