com.pulumi.googlenative.apigateway.v1.kotlin.GatewayIamMemberArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.apigateway.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.apigateway.v1.GatewayIamMemberArgs.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 GatewayIamMemberArgs(
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.apigateway.v1.GatewayIamMemberArgs =
com.pulumi.googlenative.apigateway.v1.GatewayIamMemberArgs.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 [GatewayIamMemberArgs].
*/
@PulumiTagMarker
public class GatewayIamMemberArgsBuilder 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("abqpipsywcntfvkp")
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("fxyvqjlwknmglpfe")
public suspend fun member(`value`: Output) {
this.member = value
}
/**
* @param value The name of the resource to manage IAM policies for.
*/
@JvmName("gaqfwjmasrdakedi")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The role that should be applied.
*/
@JvmName("isdkreewdtulsyas")
public suspend fun role(`value`: Output) {
this.role = value
}
/**
* @param value An IAM Condition for a given binding.
*/
@JvmName("wvpnxywbbuplxkel")
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("iibsdtqscfyioaun")
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("lhbdypyayfloueao")
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("qvcpsecnvddnliuo")
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("bifdktpdgmspnplf")
public suspend fun role(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.role = mapped
}
internal fun build(): GatewayIamMemberArgs = GatewayIamMemberArgs(
condition = condition,
member = member,
name = name,
role = role,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy