All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.wafv2.kotlin.inputs.WebAclJsonMatchPatternArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@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>) {
        this.includedPaths = Output.all(values)
    }

    /**
     * @param value Inspect all parts of the web request's JSON body.
     */
    @JvmName("jgqbadmioqxgpsam")
    public suspend fun all(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.all = mapped
    }

    /**
     * @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("xkvdlixuuffsqfgr")
    public suspend fun includedPaths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includedPaths = mapped
    }

    /**
     * @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("didhgdvovqadnpqc")
    public suspend fun includedPaths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includedPaths = mapped
    }

    internal fun build(): WebAclJsonMatchPatternArgs = WebAclJsonMatchPatternArgs(
        all = all,
        includedPaths = includedPaths,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy