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

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

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.wafv2.inputs.WebAclFieldToMatchSingleHeaderPropertiesArgs.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

/**
 * Inspect a single header. Provide the name of the header to inspect, for example, `User-Agent` or `Referer` . This setting isn't case sensitive.
 * Example JSON: `"SingleHeader": { "Name": "haystack" }`
 * Alternately, you can filter and inspect all headers with the `Headers` `FieldToMatch` setting.
 * @property name
 */
public data class WebAclFieldToMatchSingleHeaderPropertiesArgs(
    public val name: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclFieldToMatchSingleHeaderPropertiesArgs =
        com.pulumi.awsnative.wafv2.inputs.WebAclFieldToMatchSingleHeaderPropertiesArgs.builder()
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WebAclFieldToMatchSingleHeaderPropertiesArgs].
 */
@PulumiTagMarker
public class WebAclFieldToMatchSingleHeaderPropertiesArgsBuilder internal constructor() {
    private var name: Output? = null

    /**
     * @param value
     */
    @JvmName("lkanspisvfmnjldr")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value
     */
    @JvmName("qgkkncygsotqvjep")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): WebAclFieldToMatchSingleHeaderPropertiesArgs =
        WebAclFieldToMatchSingleHeaderPropertiesArgs(
            name = name ?: throw PulumiNullFieldException("name"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy