com.pulumi.awsnative.wafv2.kotlin.inputs.WebAclFieldIdentifierArgs.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.inputs
import com.pulumi.awsnative.wafv2.inputs.WebAclFieldIdentifierArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property identifier The name of the field.
* When the `PayloadType` in the request inspection is `JSON` , this identifier must be in JSON pointer syntax. For example `/form/username` . 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) .
* When the `PayloadType` is `FORM_ENCODED` , use the HTML form names. For example, `username` .
* For more information, see the descriptions for each field type in the request inspection properties.
*/
public data class WebAclFieldIdentifierArgs(
public val identifier: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclFieldIdentifierArgs =
com.pulumi.awsnative.wafv2.inputs.WebAclFieldIdentifierArgs.builder()
.identifier(identifier.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WebAclFieldIdentifierArgs].
*/
@PulumiTagMarker
public class WebAclFieldIdentifierArgsBuilder internal constructor() {
private var identifier: Output? = null
/**
* @param value The name of the field.
* When the `PayloadType` in the request inspection is `JSON` , this identifier must be in JSON pointer syntax. For example `/form/username` . 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) .
* When the `PayloadType` is `FORM_ENCODED` , use the HTML form names. For example, `username` .
* For more information, see the descriptions for each field type in the request inspection properties.
*/
@JvmName("iiofwuocwxwbvkat")
public suspend fun identifier(`value`: Output) {
this.identifier = value
}
/**
* @param value The name of the field.
* When the `PayloadType` in the request inspection is `JSON` , this identifier must be in JSON pointer syntax. For example `/form/username` . 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) .
* When the `PayloadType` is `FORM_ENCODED` , use the HTML form names. For example, `username` .
* For more information, see the descriptions for each field type in the request inspection properties.
*/
@JvmName("msddjsudovpfgijj")
public suspend fun identifier(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.identifier = mapped
}
internal fun build(): WebAclFieldIdentifierArgs = WebAclFieldIdentifierArgs(
identifier = identifier ?: throw PulumiNullFieldException("identifier"),
)
}