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

com.pulumi.googlenative.gkeonprem.v1.kotlin.VmwareClusterIamMemberArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.gkeonprem.v1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.gkeonprem.v1.VmwareClusterIamMemberArgs.builder
import com.pulumi.googlenative.iam.v1.kotlin.inputs.ConditionArgs
import com.pulumi.googlenative.iam.v1.kotlin.inputs.ConditionArgsBuilder
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

/**
 * 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 member Identity that will be granted the privilege in role. The 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.
 */
public data class VmwareClusterIamMemberArgs(
    public val condition: Output? = null,
    public val member: Output? = null,
    public val name: Output? = null,
    public val role: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.gkeonprem.v1.VmwareClusterIamMemberArgs =
        com.pulumi.googlenative.gkeonprem.v1.VmwareClusterIamMemberArgs.builder()
            .condition(condition?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .member(member?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .role(role?.applyValue({ args0 -> args0 })).build()
}

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

    private var member: Output? = null

    private var name: Output? = null

    private var role: Output? = null

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

    /**
     * @param value Identity that will be granted the privilege in role. The 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("ccfxphoscfldqlyb")
    public suspend fun member(`value`: Output) {
        this.member = value
    }

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

    /**
     * @param value The role that should be applied.
     */
    @JvmName("jrwpaswkprgpfvgt")
    public suspend fun role(`value`: Output) {
        this.role = value
    }

    /**
     * @param value An IAM Condition for a given binding.
     */
    @JvmName("ynjrwvouahtrghmq")
    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("okywfjhldfdduyck")
    public suspend fun condition(argument: suspend ConditionArgsBuilder.() -> Unit) {
        val toBeMapped = ConditionArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.condition = mapped
    }

    /**
     * @param value Identity that will be granted the privilege in role. The 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("gtwqmhryxfynohtf")
    public suspend fun member(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.member = mapped
    }

    /**
     * @param value The name of the resource to manage IAM policies for.
     */
    @JvmName("ariphrltmeryvwhe")
    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.
     */
    @JvmName("awgkgjovgitjdcwd")
    public suspend fun role(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.role = mapped
    }

    internal fun build(): VmwareClusterIamMemberArgs = VmwareClusterIamMemberArgs(
        condition = condition,
        member = member,
        name = name,
        role = role,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy