
com.pulumi.awsnative.wafv2.kotlin.inputs.WebAclJsonMatchPatternArgs.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.WebAclJsonMatchPatternArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The pattern to look for in the JSON body.
* @property all Inspect all parts of the web request's JSON body.
* @property includedPaths Match only the specified include paths. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification.
* Provide the include paths using JSON Pointer syntax. For example, `"IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]` . For information about this 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) .
* You must specify either this setting or the `All` setting, but not both.
* > Don't use this option to include all paths. Instead, use the `All` setting.
*/
public data class WebAclJsonMatchPatternArgs(
public val all: Output? = null,
public val includedPaths: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclJsonMatchPatternArgs =
com.pulumi.awsnative.wafv2.inputs.WebAclJsonMatchPatternArgs.builder()
.all(all?.applyValue({ args0 -> args0 }))
.includedPaths(includedPaths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [WebAclJsonMatchPatternArgs].
*/
@PulumiTagMarker
public class WebAclJsonMatchPatternArgsBuilder internal constructor() {
private var all: Output? = null
private var includedPaths: Output>? = null
/**
* @param value Inspect all parts of the web request's JSON body.
*/
@JvmName("xrdppttwvrwxpwhl")
public suspend fun all(`value`: Output) {
this.all = value
}
/**
* @param value Match only the specified include paths. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification.
* Provide the include paths using JSON Pointer syntax. For example, `"IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]` . For information about this 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) .
* You must specify either this setting or the `All` setting, but not both.
* > Don't use this option to include all paths. Instead, use the `All` setting.
*/
@JvmName("ivwrfivrldqfxwok")
public suspend fun includedPaths(`value`: Output>) {
this.includedPaths = value
}
@JvmName("cgsvdsmoldhbgfow")
public suspend fun includedPaths(vararg values: Output) {
this.includedPaths = Output.all(values.asList())
}
/**
* @param values Match only the specified include paths. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification.
* Provide the include paths using JSON Pointer syntax. For example, `"IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]` . For information about this 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) .
* You must specify either this setting or the `All` setting, but not both.
* > Don't use this option to include all paths. Instead, use the `All` setting.
*/
@JvmName("xvwgehxypbjjxxnh")
public suspend fun includedPaths(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy