com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclAwsManagedRulesAtpRuleSet.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.wafv2.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
* Configures how to use the Account Takeover Prevention managed rule group in the web ACL
* @property enableRegexInPath Allow the use of regular expressions in the login page path.
* @property loginPath The path of the login endpoint for your application. For example, for the URL `https://example.com/web/login` , you would provide the path `/web/login` . Login paths that start with the path that you provide are considered a match. For example `/web/login` matches the login paths `/web/login` , `/web/login/` , `/web/loginPage` , and `/web/login/thisPage` , but doesn't match the login path `/home/web/login` or `/website/login` .
* The rule group inspects only HTTP `POST` requests to your specified login endpoint.
* @property requestInspection The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.
* @property responseInspection The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates.
* > Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
* The ATP rule group evaluates the responses that your protected resources send back to client login attempts, keeping count of successful and failed attempts for each IP address and client session. Using this information, the rule group labels and mitigates requests from client sessions and IP addresses that have had too many failed login attempts in a short amount of time.
*/
public data class WebAclAwsManagedRulesAtpRuleSet(
public val enableRegexInPath: Boolean? = null,
public val loginPath: String,
public val requestInspection: WebAclRequestInspection? = null,
public val responseInspection: WebAclResponseInspection? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.WebAclAwsManagedRulesAtpRuleSet): WebAclAwsManagedRulesAtpRuleSet = WebAclAwsManagedRulesAtpRuleSet(
enableRegexInPath = javaType.enableRegexInPath().map({ args0 -> args0 }).orElse(null),
loginPath = javaType.loginPath(),
requestInspection = javaType.requestInspection().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclRequestInspection.Companion.toKotlin(args0)
})
}).orElse(null),
responseInspection = javaType.responseInspection().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclResponseInspection.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}