
com.pulumi.aws.waf.kotlin.inputs.XssMatchSetXssMatchTupleFieldToMatchArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.waf.kotlin.inputs
import com.pulumi.aws.waf.inputs.XssMatchSetXssMatchTupleFieldToMatchArgs.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 data When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`.
* If `type` is any other value, omit this field.
* @property type The part of the web request that you want AWS WAF to search for a specified string.
* e.g., `HEADER`, `METHOD` or `BODY`.
* See [docs](http://docs.aws.amazon.com/waf/latest/APIReference/API_FieldToMatch.html)
* for all supported values.
*/
public data class XssMatchSetXssMatchTupleFieldToMatchArgs(
public val `data`: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.waf.inputs.XssMatchSetXssMatchTupleFieldToMatchArgs =
com.pulumi.aws.waf.inputs.XssMatchSetXssMatchTupleFieldToMatchArgs.builder()
.`data`(`data`?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [XssMatchSetXssMatchTupleFieldToMatchArgs].
*/
@PulumiTagMarker
public class XssMatchSetXssMatchTupleFieldToMatchArgsBuilder internal constructor() {
private var `data`: Output? = null
private var type: Output? = null
/**
* @param value When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`.
* If `type` is any other value, omit this field.
*/
@JvmName("mavhwxeqvxriklii")
public suspend fun `data`(`value`: Output) {
this.`data` = value
}
/**
* @param value The part of the web request that you want AWS WAF to search for a specified string.
* e.g., `HEADER`, `METHOD` or `BODY`.
* See [docs](http://docs.aws.amazon.com/waf/latest/APIReference/API_FieldToMatch.html)
* for all supported values.
*/
@JvmName("mndnimcxnitdkcmj")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value When `type` is `HEADER`, enter the name of the header that you want to search, e.g., `User-Agent` or `Referer`.
* If `type` is any other value, omit this field.
*/
@JvmName("jmdelbsjeuinwytn")
public suspend fun `data`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`data` = mapped
}
/**
* @param value The part of the web request that you want AWS WAF to search for a specified string.
* e.g., `HEADER`, `METHOD` or `BODY`.
* See [docs](http://docs.aws.amazon.com/waf/latest/APIReference/API_FieldToMatch.html)
* for all supported values.
*/
@JvmName("sidmbvlaocigbqaw")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): XssMatchSetXssMatchTupleFieldToMatchArgs =
XssMatchSetXssMatchTupleFieldToMatchArgs(
`data` = `data`,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy