com.pulumi.googlenative.managedidentities.v1alpha1.kotlin.PeeringIamBindingArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.managedidentities.v1alpha1.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.managedidentities.v1alpha1.PeeringIamBindingArgs.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 PeeringIamBindingArgs(
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.managedidentities.v1alpha1.PeeringIamBindingArgs =
com.pulumi.googlenative.managedidentities.v1alpha1.PeeringIamBindingArgs.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 [PeeringIamBindingArgs].
*/
@PulumiTagMarker
public class PeeringIamBindingArgsBuilder 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("yfiaktrnfaubwiyl")
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("nufdhibfueeahhhx")
public suspend fun members(`value`: Output>) {
this.members = value
}
@JvmName("bbuvtjloibimonep")
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("ivmwkbbkicberetq")
public suspend fun members(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy