com.pulumi.gcp.container.kotlin.inputs.AzureClusterAuthorizationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.AzureClusterAuthorizationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property adminGroups Groups of users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole to the groups. Up to ten admin groups can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
* @property adminUsers Users that can perform operations as a cluster admin. A new ClusterRoleBinding will be created to grant the cluster-admin ClusterRole to the users. Up to ten admin users can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
*/
public data class AzureClusterAuthorizationArgs(
public val adminGroups: Output>? = null,
public val adminUsers: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.AzureClusterAuthorizationArgs =
com.pulumi.gcp.container.inputs.AzureClusterAuthorizationArgs.builder()
.adminGroups(
adminGroups?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.adminUsers(
adminUsers.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AzureClusterAuthorizationArgs].
*/
@PulumiTagMarker
public class AzureClusterAuthorizationArgsBuilder internal constructor() {
private var adminGroups: Output>? = null
private var adminUsers: Output>? = null
/**
* @param value Groups of users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole to the groups. Up to ten admin groups can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
*/
@JvmName("maqvkbshaayekjoh")
public suspend fun adminGroups(`value`: Output>) {
this.adminGroups = value
}
@JvmName("elnyqhyooqjdxlmg")
public suspend fun adminGroups(vararg values: Output) {
this.adminGroups = Output.all(values.asList())
}
/**
* @param values Groups of users that can perform operations as a cluster admin. A managed ClusterRoleBinding will be created to grant the `cluster-admin` ClusterRole to the groups. Up to ten admin groups can be provided. For more info on RBAC, see https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles
*/
@JvmName("reubdahjbdcdwipq")
public suspend fun adminGroups(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy