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

com.pulumi.awsnative.wafv2.kotlin.inputs.LoggingConfigurationFieldToMatchArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.wafv2.kotlin.inputs

import com.pulumi.awsnative.wafv2.inputs.LoggingConfigurationFieldToMatchArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * A key-value pair to associate with a resource.
 * @property method Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
 * @property queryString Inspect the query string. This is the part of a URL that appears after a ? character, if any.
 * @property singleHeader Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
 * @property uriPath Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
 */
public data class LoggingConfigurationFieldToMatchArgs(
    public val method: Output? = null,
    public val queryString: Output? = null,
    public val singleHeader: Output? =
        null,
    public val uriPath: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wafv2.inputs.LoggingConfigurationFieldToMatchArgs =
        com.pulumi.awsnative.wafv2.inputs.LoggingConfigurationFieldToMatchArgs.builder()
            .method(method?.applyValue({ args0 -> args0 }))
            .queryString(queryString?.applyValue({ args0 -> args0 }))
            .singleHeader(singleHeader?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .uriPath(uriPath?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LoggingConfigurationFieldToMatchArgs].
 */
@PulumiTagMarker
public class LoggingConfigurationFieldToMatchArgsBuilder internal constructor() {
    private var method: Output? = null

    private var queryString: Output? = null

    private var singleHeader: Output? =
        null

    private var uriPath: Output? = null

    /**
     * @param value Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
     */
    @JvmName("uajoacvbfstnsfar")
    public suspend fun method(`value`: Output) {
        this.method = value
    }

    /**
     * @param value Inspect the query string. This is the part of a URL that appears after a ? character, if any.
     */
    @JvmName("bwvajkqjgsfurymy")
    public suspend fun queryString(`value`: Output) {
        this.queryString = value
    }

    /**
     * @param value Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
     */
    @JvmName("ppuolmahxjsjaupy")
    public suspend fun singleHeader(`value`: Output) {
        this.singleHeader = value
    }

    /**
     * @param value Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
     */
    @JvmName("pdsntuppsxhcqixr")
    public suspend fun uriPath(`value`: Output) {
        this.uriPath = value
    }

    /**
     * @param value Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
     */
    @JvmName("sckiejtunmeadyyy")
    public suspend fun method(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.method = mapped
    }

    /**
     * @param value Inspect the query string. This is the part of a URL that appears after a ? character, if any.
     */
    @JvmName("vnkswnycdccqjdqf")
    public suspend fun queryString(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryString = mapped
    }

    /**
     * @param value Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
     */
    @JvmName("uyiwbmksbmxxaeig")
    public suspend fun singleHeader(`value`: LoggingConfigurationFieldToMatchSingleHeaderPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.singleHeader = mapped
    }

    /**
     * @param argument Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive.
     */
    @JvmName("ginqabkwyxbrsfle")
    public suspend fun singleHeader(argument: suspend LoggingConfigurationFieldToMatchSingleHeaderPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped =
            LoggingConfigurationFieldToMatchSingleHeaderPropertiesArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.singleHeader = mapped
    }

    /**
     * @param value Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg.
     */
    @JvmName("wbypwyrsparennrd")
    public suspend fun uriPath(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uriPath = mapped
    }

    internal fun build(): LoggingConfigurationFieldToMatchArgs = LoggingConfigurationFieldToMatchArgs(
        method = method,
        queryString = queryString,
        singleHeader = singleHeader,
        uriPath = uriPath,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy