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

com.pulumi.gcp.iam.kotlin.inputs.DenyPolicyRuleArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.iam.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.iam.inputs.DenyPolicyRuleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property denyRule A deny rule in an IAM deny policy.
 * Structure is documented below.
 * @property description The description of the rule.
 */
public data class DenyPolicyRuleArgs(
    public val denyRule: Output? = null,
    public val description: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.iam.inputs.DenyPolicyRuleArgs =
        com.pulumi.gcp.iam.inputs.DenyPolicyRuleArgs.builder()
            .denyRule(denyRule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DenyPolicyRuleArgs].
 */
@PulumiTagMarker
public class DenyPolicyRuleArgsBuilder internal constructor() {
    private var denyRule: Output? = null

    private var description: Output? = null

    /**
     * @param value A deny rule in an IAM deny policy.
     * Structure is documented below.
     */
    @JvmName("yiblxbgirnpcjmdy")
    public suspend fun denyRule(`value`: Output) {
        this.denyRule = value
    }

    /**
     * @param value The description of the rule.
     */
    @JvmName("rhgmqburduobrgro")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A deny rule in an IAM deny policy.
     * Structure is documented below.
     */
    @JvmName("bhsvrujfurqspfqr")
    public suspend fun denyRule(`value`: DenyPolicyRuleDenyRuleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.denyRule = mapped
    }

    /**
     * @param argument A deny rule in an IAM deny policy.
     * Structure is documented below.
     */
    @JvmName("jvoljabxrdueakhm")
    public suspend fun denyRule(argument: suspend DenyPolicyRuleDenyRuleArgsBuilder.() -> Unit) {
        val toBeMapped = DenyPolicyRuleDenyRuleArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.denyRule = mapped
    }

    /**
     * @param value The description of the rule.
     */
    @JvmName("qdlrxvsdswhkkoni")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    internal fun build(): DenyPolicyRuleArgs = DenyPolicyRuleArgs(
        denyRule = denyRule,
        description = description,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy