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

com.pulumi.googlenative.dataplex.v1.kotlin.LakeZoneIamMemberArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.googlenative.dataplex.v1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.dataplex.v1.LakeZoneIamMemberArgs.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 LakeZoneIamMemberArgs(
    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.dataplex.v1.LakeZoneIamMemberArgs =
        com.pulumi.googlenative.dataplex.v1.LakeZoneIamMemberArgs.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 [LakeZoneIamMemberArgs].
 */
@PulumiTagMarker
public class LakeZoneIamMemberArgsBuilder 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("gemcxdhsfgqmdujp")
    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("bxdglticrdltirns")
    public suspend fun member(`value`: Output) {
        this.member = value
    }

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

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

    /**
     * @param value An IAM Condition for a given binding.
     */
    @JvmName("rdtkpemaygbxpyfy")
    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("nwfgmpalxifkrrow")
    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("lngloxooikykvkxo")
    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("enxwumqkiewffagt")
    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("eqtohydvjvrfwhrt")
    public suspend fun role(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.role = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy