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

com.pulumi.aws.wafregional.kotlin.inputs.WebAclLoggingConfigurationRedactedFieldsArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.wafregional.kotlin.inputs

import com.pulumi.aws.wafregional.inputs.WebAclLoggingConfigurationRedactedFieldsArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property fieldToMatches Set of configuration blocks for fields to redact. Detailed below.
 */
public data class WebAclLoggingConfigurationRedactedFieldsArgs(
    public val fieldToMatches: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.wafregional.inputs.WebAclLoggingConfigurationRedactedFieldsArgs =
        com.pulumi.aws.wafregional.inputs.WebAclLoggingConfigurationRedactedFieldsArgs.builder()
            .fieldToMatches(
                fieldToMatches.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [WebAclLoggingConfigurationRedactedFieldsArgs].
 */
@PulumiTagMarker
public class WebAclLoggingConfigurationRedactedFieldsArgsBuilder internal constructor() {
    private var fieldToMatches:
        Output>? = null

    /**
     * @param value Set of configuration blocks for fields to redact. Detailed below.
     */
    @JvmName("oxhmwvxgwduapgjr")
    public suspend fun fieldToMatches(`value`: Output>) {
        this.fieldToMatches = value
    }

    @JvmName("ctgsuwkmcekkjicb")
    public suspend fun fieldToMatches(vararg values: Output) {
        this.fieldToMatches = Output.all(values.asList())
    }

    /**
     * @param values Set of configuration blocks for fields to redact. Detailed below.
     */
    @JvmName("lnacgstkuyawghwo")
    public suspend fun fieldToMatches(values: List>) {
        this.fieldToMatches = Output.all(values)
    }

    /**
     * @param value Set of configuration blocks for fields to redact. Detailed below.
     */
    @JvmName("nxlugqdvpnqqpson")
    public suspend fun fieldToMatches(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldToMatches = mapped
    }

    /**
     * @param argument Set of configuration blocks for fields to redact. Detailed below.
     */
    @JvmName("tnuorrtjifvlktqw")
    public suspend fun fieldToMatches(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldToMatches = mapped
    }

    /**
     * @param argument Set of configuration blocks for fields to redact. Detailed below.
     */
    @JvmName("kdawnaqycmtltoil")
    public suspend fun fieldToMatches(vararg argument: suspend WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.fieldToMatches = mapped
    }

    /**
     * @param argument Set of configuration blocks for fields to redact. Detailed below.
     */
    @JvmName("gtwpmtgwmgsyivbw")
    public suspend fun fieldToMatches(argument: suspend WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.fieldToMatches = mapped
    }

    /**
     * @param values Set of configuration blocks for fields to redact. Detailed below.
     */
    @JvmName("rniihjcmsjcjscxx")
    public suspend fun fieldToMatches(vararg values: WebAclLoggingConfigurationRedactedFieldsFieldToMatchArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fieldToMatches = mapped
    }

    internal fun build(): WebAclLoggingConfigurationRedactedFieldsArgs =
        WebAclLoggingConfigurationRedactedFieldsArgs(
            fieldToMatches = fieldToMatches ?: throw PulumiNullFieldException("fieldToMatches"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy