
com.pulumi.aws.wafv2.kotlin.outputs.WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.wafv2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property fieldToMatch Part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details.
* @property positionalConstraint 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 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 transformation is required. See `text_transformation` below for details.
*/
public data class WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement(
public val fieldToMatch: WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch? = null,
public val positionalConstraint: String,
public val searchString: String,
public val textTransformations: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement): WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement =
WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatement(
fieldToMatch = javaType.fieldToMatch().map({ args0 ->
args0.let({ args0 ->
com.pulumi.aws.wafv2.kotlin.outputs.WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementFieldToMatch.Companion.toKotlin(args0)
})
}).orElse(null),
positionalConstraint = javaType.positionalConstraint(),
searchString = javaType.searchString(),
textTransformations = javaType.textTransformations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.aws.wafv2.kotlin.outputs.WebAclRuleStatementRateBasedStatementScopeDownStatementByteMatchStatementTextTransformation.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy