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

com.pulumi.gcp.iam.kotlin.inputs.AccessBoundaryPolicyRuleAccessBoundaryRuleArgs.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.10.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.AccessBoundaryPolicyRuleAccessBoundaryRuleArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property availabilityCondition The availability condition further constrains the access allowed by the access boundary rule.
 * Structure is documented below.
 * @property availablePermissions A list of permissions that may be allowed for use on the specified resource.
 * @property availableResource The full resource name of a Google Cloud resource entity.
 */
public data class AccessBoundaryPolicyRuleAccessBoundaryRuleArgs(
    public val availabilityCondition: Output? = null,
    public val availablePermissions: Output>? = null,
    public val availableResource: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.iam.inputs.AccessBoundaryPolicyRuleAccessBoundaryRuleArgs =
        com.pulumi.gcp.iam.inputs.AccessBoundaryPolicyRuleAccessBoundaryRuleArgs.builder()
            .availabilityCondition(
                availabilityCondition?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .availablePermissions(availablePermissions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .availableResource(availableResource?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessBoundaryPolicyRuleAccessBoundaryRuleArgs].
 */
@PulumiTagMarker
public class AccessBoundaryPolicyRuleAccessBoundaryRuleArgsBuilder internal constructor() {
    private var availabilityCondition:
        Output? = null

    private var availablePermissions: Output>? = null

    private var availableResource: Output? = null

    /**
     * @param value The availability condition further constrains the access allowed by the access boundary rule.
     * Structure is documented below.
     */
    @JvmName("potklvigyfqljktm")
    public suspend fun availabilityCondition(`value`: Output) {
        this.availabilityCondition = value
    }

    /**
     * @param value A list of permissions that may be allowed for use on the specified resource.
     */
    @JvmName("rrevpghmkuxtwyjj")
    public suspend fun availablePermissions(`value`: Output>) {
        this.availablePermissions = value
    }

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

    /**
     * @param values A list of permissions that may be allowed for use on the specified resource.
     */
    @JvmName("shqqehjtcyypfrxm")
    public suspend fun availablePermissions(values: List>) {
        this.availablePermissions = Output.all(values)
    }

    /**
     * @param value The full resource name of a Google Cloud resource entity.
     */
    @JvmName("ccmoxaiusanfnsvk")
    public suspend fun availableResource(`value`: Output) {
        this.availableResource = value
    }

    /**
     * @param value The availability condition further constrains the access allowed by the access boundary rule.
     * Structure is documented below.
     */
    @JvmName("ciwrnpryuowcvdjs")
    public suspend fun availabilityCondition(`value`: AccessBoundaryPolicyRuleAccessBoundaryRuleAvailabilityConditionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityCondition = mapped
    }

    /**
     * @param argument The availability condition further constrains the access allowed by the access boundary rule.
     * Structure is documented below.
     */
    @JvmName("fxymcrjsdqetrvqb")
    public suspend fun availabilityCondition(argument: suspend AccessBoundaryPolicyRuleAccessBoundaryRuleAvailabilityConditionArgsBuilder.() -> Unit) {
        val toBeMapped =
            AccessBoundaryPolicyRuleAccessBoundaryRuleAvailabilityConditionArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.availabilityCondition = mapped
    }

    /**
     * @param value A list of permissions that may be allowed for use on the specified resource.
     */
    @JvmName("xetunvifpojlvlsf")
    public suspend fun availablePermissions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availablePermissions = mapped
    }

    /**
     * @param values A list of permissions that may be allowed for use on the specified resource.
     */
    @JvmName("mquqrlxapvtqshey")
    public suspend fun availablePermissions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.availablePermissions = mapped
    }

    /**
     * @param value The full resource name of a Google Cloud resource entity.
     */
    @JvmName("lsbvclogghcanlii")
    public suspend fun availableResource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availableResource = mapped
    }

    internal fun build(): AccessBoundaryPolicyRuleAccessBoundaryRuleArgs =
        AccessBoundaryPolicyRuleAccessBoundaryRuleArgs(
            availabilityCondition = availabilityCondition,
            availablePermissions = availablePermissions,
            availableResource = availableResource,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy