
com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclRequestInspection.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 com.pulumi.awsnative.wafv2.kotlin.enums.WebAclRequestInspectionPayloadType
import kotlin.Suppress
/**
* Configures the inspection of login requests
* @property passwordField The name of the field in the request payload that contains your customer's password.
* How you specify this depends on the request inspection payload type.
* - For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation [JavaScript Object Notation (JSON) Pointer](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6901) .
* For example, for the JSON payload `{ "form": { "password": "THE_PASSWORD" } }` , the password field specification is `/form/password` .
* - For form encoded payload types, use the HTML form names.
* For example, for an HTML form with the input element named `password1` , the password field specification is `password1` .
* @property payloadType The payload type for your login endpoint, either JSON or form encoded.
* @property usernameField The name of the field in the request payload that contains your customer's username.
* How you specify this depends on the request inspection payload type.
* - For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation [JavaScript Object Notation (JSON) Pointer](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6901) .
* For example, for the JSON payload `{ "form": { "username": "THE_USERNAME" } }` , the username field specification is `/form/username` .
* - For form encoded payload types, use the HTML form names.
* For example, for an HTML form with the input element named `username1` , the username field specification is `username1`
*/
public data class WebAclRequestInspection(
public val passwordField: WebAclFieldIdentifier,
public val payloadType: WebAclRequestInspectionPayloadType,
public val usernameField: WebAclFieldIdentifier,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.WebAclRequestInspection): WebAclRequestInspection = WebAclRequestInspection(
passwordField = javaType.passwordField().let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclFieldIdentifier.Companion.toKotlin(args0)
}),
payloadType = javaType.payloadType().let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.enums.WebAclRequestInspectionPayloadType.Companion.toKotlin(args0)
}),
usernameField = javaType.usernameField().let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclFieldIdentifier.Companion.toKotlin(args0)
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy