All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclSqliMatchStatement.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.wafv2.kotlin.outputs

import com.pulumi.awsnative.wafv2.kotlin.enums.WebAclSensitivityLevel
import kotlin.Suppress
import kotlin.collections.List

/**
 * Sqli Match Statement.
 * @property fieldToMatch The part of the web request that you want AWS WAF to inspect.
 * @property sensitivityLevel The sensitivity that you want AWS WAF to use to inspect for SQL injection attacks.
 * `HIGH` detects more attacks, but might generate more false positives, especially if your web requests frequently contain unusual strings. For information about identifying and mitigating false positives, see [Testing and tuning](https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-testing.html) in the *AWS WAF Developer Guide* .
 * `LOW` is generally a better choice for resources that already have other protections against SQL injection attacks or that have a low tolerance for false positives.
 * Default: `LOW`
 * @property textTransformations Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.
 */
public data class WebAclSqliMatchStatement(
    public val fieldToMatch: WebAclFieldToMatch,
    public val sensitivityLevel: WebAclSensitivityLevel? = null,
    public val textTransformations: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.WebAclSqliMatchStatement): WebAclSqliMatchStatement = WebAclSqliMatchStatement(
            fieldToMatch = javaType.fieldToMatch().let({ args0 ->
                com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclFieldToMatch.Companion.toKotlin(args0)
            }),
            sensitivityLevel = javaType.sensitivityLevel().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.wafv2.kotlin.enums.WebAclSensitivityLevel.Companion.toKotlin(args0)
                })
            }).orElse(null),
            textTransformations = javaType.textTransformations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclTextTransformation.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy