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

com.pulumi.gcp.iam.kotlin.inputs.AccessBoundaryPolicyRuleArgs.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: 8.12.0.0
Show newest version
@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.AccessBoundaryPolicyRuleArgs.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 accessBoundaryRule An access boundary rule in an IAM policy.
 * Structure is documented below.
 * @property description The description of the rule.
 */
public data class AccessBoundaryPolicyRuleArgs(
    public val accessBoundaryRule: Output? = null,
    public val description: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.iam.inputs.AccessBoundaryPolicyRuleArgs =
        com.pulumi.gcp.iam.inputs.AccessBoundaryPolicyRuleArgs.builder()
            .accessBoundaryRule(
                accessBoundaryRule?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessBoundaryPolicyRuleArgs].
 */
@PulumiTagMarker
public class AccessBoundaryPolicyRuleArgsBuilder internal constructor() {
    private var accessBoundaryRule: Output? = null

    private var description: Output? = null

    /**
     * @param value An access boundary rule in an IAM policy.
     * Structure is documented below.
     */
    @JvmName("nsitvrdmuwofactr")
    public suspend fun accessBoundaryRule(`value`: Output) {
        this.accessBoundaryRule = value
    }

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

    /**
     * @param value An access boundary rule in an IAM policy.
     * Structure is documented below.
     */
    @JvmName("uphrvlagvfknfgsc")
    public suspend fun accessBoundaryRule(`value`: AccessBoundaryPolicyRuleAccessBoundaryRuleArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessBoundaryRule = mapped
    }

    /**
     * @param argument An access boundary rule in an IAM policy.
     * Structure is documented below.
     */
    @JvmName("ttavahlavstcfwpx")
    public suspend fun accessBoundaryRule(argument: suspend AccessBoundaryPolicyRuleAccessBoundaryRuleArgsBuilder.() -> Unit) {
        val toBeMapped = AccessBoundaryPolicyRuleAccessBoundaryRuleArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.accessBoundaryRule = mapped
    }

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

    internal fun build(): AccessBoundaryPolicyRuleArgs = AccessBoundaryPolicyRuleArgs(
        accessBoundaryRule = accessBoundaryRule,
        description = description,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy