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

com.pulumi.googlenative.privateca.v1beta1.kotlin.ReusableConfigIamBindingArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.privateca.v1beta1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.iam.v1.kotlin.inputs.ConditionArgs
import com.pulumi.googlenative.iam.v1.kotlin.inputs.ConditionArgsBuilder
import com.pulumi.googlenative.privateca.v1beta1.ReusableConfigIamBindingArgs.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

/**
 * Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
 * @property condition An IAM Condition for a given binding.
 * @property members Identities that will be granted the privilege in role. Each entry can have one of the following values:
 *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
 *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
 *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
 *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
 * @property name The name of the resource to manage IAM policies for.
 * @property role The role that should be applied. Only one `IamBinding` can be used per role.
 */
public data class ReusableConfigIamBindingArgs(
    public val condition: Output? = null,
    public val members: Output>? = null,
    public val name: Output? = null,
    public val role: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.privateca.v1beta1.ReusableConfigIamBindingArgs =
        com.pulumi.googlenative.privateca.v1beta1.ReusableConfigIamBindingArgs.builder()
            .condition(condition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .members(members?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .role(role?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReusableConfigIamBindingArgs].
 */
@PulumiTagMarker
public class ReusableConfigIamBindingArgsBuilder internal constructor() {
    private var condition: Output? = null

    private var members: Output>? = null

    private var name: Output? = null

    private var role: Output? = null

    /**
     * @param value An IAM Condition for a given binding.
     */
    @JvmName("yiqtxhdflxqrpooa")
    public suspend fun condition(`value`: Output) {
        this.condition = value
    }

    /**
     * @param value Identities that will be granted the privilege in role. Each entry can have one of the following values:
     *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
     *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
     *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
     *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
     */
    @JvmName("wcwrbfdgpjmybvfj")
    public suspend fun members(`value`: Output>) {
        this.members = value
    }

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

    /**
     * @param values Identities that will be granted the privilege in role. Each entry can have one of the following values:
     *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
     *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
     *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
     *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
     */
    @JvmName("thcuolmymdnxrksm")
    public suspend fun members(values: List>) {
        this.members = Output.all(values)
    }

    /**
     * @param value The name of the resource to manage IAM policies for.
     */
    @JvmName("mbofecbltogqgbns")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The role that should be applied. Only one `IamBinding` can be used per role.
     */
    @JvmName("grcqtgqordfliyer")
    public suspend fun role(`value`: Output) {
        this.role = value
    }

    /**
     * @param value An IAM Condition for a given binding.
     */
    @JvmName("gtqvigmwchupxbjs")
    public suspend fun condition(`value`: ConditionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.condition = mapped
    }

    /**
     * @param argument An IAM Condition for a given binding.
     */
    @JvmName("psrobnypvpvhsevk")
    public suspend fun condition(argument: suspend ConditionArgsBuilder.() -> Unit) {
        val toBeMapped = ConditionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.condition = mapped
    }

    /**
     * @param value Identities that will be granted the privilege in role. Each entry can have one of the following values:
     *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
     *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
     *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
     *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
     */
    @JvmName("vbnfcsufiemyswqh")
    public suspend fun members(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.members = mapped
    }

    /**
     * @param values Identities that will be granted the privilege in role. Each entry can have one of the following values:
     *  * user:{emailid}: An email address that represents a specific Google account. For example, [email protected] or [email protected].
     *  * serviceAccount:{emailid}: An email address that represents a service account. For example, [email protected].
     *  * group:{emailid}: An email address that represents a Google group. For example, [email protected].
     *  * domain:{domain}: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
     */
    @JvmName("ixkchtmqncffrmoq")
    public suspend fun members(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.members = mapped
    }

    /**
     * @param value The name of the resource to manage IAM policies for.
     */
    @JvmName("mwycfqclchfkmbas")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The role that should be applied. Only one `IamBinding` can be used per role.
     */
    @JvmName("itcerqmunwmeslpo")
    public suspend fun role(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.role = mapped
    }

    internal fun build(): ReusableConfigIamBindingArgs = ReusableConfigIamBindingArgs(
        condition = condition,
        members = members,
        name = name,
        role = role,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy