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

com.pulumi.azure.waf.kotlin.inputs.PolicyPolicySettingsLogScrubbingArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.waf.kotlin.inputs

import com.pulumi.azure.waf.inputs.PolicyPolicySettingsLogScrubbingArgs.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.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property enabled Whether the log scrubbing is enabled or disabled. Defaults to `true`.
 * @property rules One or more `scrubbing_rule` blocks as define below.
 */
public data class PolicyPolicySettingsLogScrubbingArgs(
    public val enabled: Output? = null,
    public val rules: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.waf.inputs.PolicyPolicySettingsLogScrubbingArgs =
        com.pulumi.azure.waf.inputs.PolicyPolicySettingsLogScrubbingArgs.builder()
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .rules(
                rules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [PolicyPolicySettingsLogScrubbingArgs].
 */
@PulumiTagMarker
public class PolicyPolicySettingsLogScrubbingArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var rules: Output>? = null

    /**
     * @param value Whether the log scrubbing is enabled or disabled. Defaults to `true`.
     */
    @JvmName("ehntdixdmsdpluqw")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value One or more `scrubbing_rule` blocks as define below.
     */
    @JvmName("woxpunnjiefaunig")
    public suspend fun rules(`value`: Output>) {
        this.rules = value
    }

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

    /**
     * @param values One or more `scrubbing_rule` blocks as define below.
     */
    @JvmName("pgvdnsojlmjsiueq")
    public suspend fun rules(values: List>) {
        this.rules = Output.all(values)
    }

    /**
     * @param value Whether the log scrubbing is enabled or disabled. Defaults to `true`.
     */
    @JvmName("liwmnulyquvbwasi")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value One or more `scrubbing_rule` blocks as define below.
     */
    @JvmName("emoumqqnviwwdhvi")
    public suspend fun rules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    /**
     * @param argument One or more `scrubbing_rule` blocks as define below.
     */
    @JvmName("kldcljjeclatcaxq")
    public suspend
    fun rules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PolicyPolicySettingsLogScrubbingRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument One or more `scrubbing_rule` blocks as define below.
     */
    @JvmName("npvqrgomsqjyyaxv")
    public suspend fun rules(
        vararg
        argument: suspend PolicyPolicySettingsLogScrubbingRuleArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            PolicyPolicySettingsLogScrubbingRuleArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param argument One or more `scrubbing_rule` blocks as define below.
     */
    @JvmName("ufadrtkxqsjpsngi")
    public suspend
    fun rules(argument: suspend PolicyPolicySettingsLogScrubbingRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PolicyPolicySettingsLogScrubbingRuleArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.rules = mapped
    }

    /**
     * @param values One or more `scrubbing_rule` blocks as define below.
     */
    @JvmName("lmnibbmbmfphcqut")
    public suspend fun rules(vararg values: PolicyPolicySettingsLogScrubbingRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.rules = mapped
    }

    internal fun build(): PolicyPolicySettingsLogScrubbingArgs = PolicyPolicySettingsLogScrubbingArgs(
        enabled = enabled,
        rules = rules,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy