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

com.pulumi.aws.waf.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.waf.kotlin.inputs

import com.pulumi.aws.waf.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.waf.inputs.WebAclLoggingConfigurationRedactedFieldsArgs =
        com.pulumi.aws.waf.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("jpkmarjlcobklyix")
    public suspend fun fieldToMatches(`value`: Output>) {
        this.fieldToMatches = value
    }

    @JvmName("sleulvlxqorrebep")
    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("lrefwnsmvjjjcrdd")
    public suspend fun fieldToMatches(values: List>) {
        this.fieldToMatches = Output.all(values)
    }

    /**
     * @param value Set of configuration blocks for fields to redact. Detailed below.
     */
    @JvmName("bvbnwfjcnxrnssbq")
    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("lalmyvfdlgqnqbek")
    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("yfoluqvcwmejlgpk")
    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("jybhsvipsgrplsrk")
    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("nvxfycfbyedwyvec")
    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