com.pulumi.gcp.edgecontainer.kotlin.inputs.ClusterAuthorizationArgs.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.edgecontainer.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.edgecontainer.inputs.ClusterAuthorizationArgs.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.jvm.JvmName
/**
*
* @property adminUsers User that will be granted the cluster-admin role on the cluster, providing
* full access to the cluster. Currently, this is a singular field, but will
* be expanded to allow multiple admins in the future.
* Structure is documented below.
*/
public data class ClusterAuthorizationArgs(
public val adminUsers: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.edgecontainer.inputs.ClusterAuthorizationArgs =
com.pulumi.gcp.edgecontainer.inputs.ClusterAuthorizationArgs.builder()
.adminUsers(adminUsers.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ClusterAuthorizationArgs].
*/
@PulumiTagMarker
public class ClusterAuthorizationArgsBuilder internal constructor() {
private var adminUsers: Output? = null
/**
* @param value User that will be granted the cluster-admin role on the cluster, providing
* full access to the cluster. Currently, this is a singular field, but will
* be expanded to allow multiple admins in the future.
* Structure is documented below.
*/
@JvmName("qjjlkoyoctidvciw")
public suspend fun adminUsers(`value`: Output) {
this.adminUsers = value
}
/**
* @param value User that will be granted the cluster-admin role on the cluster, providing
* full access to the cluster. Currently, this is a singular field, but will
* be expanded to allow multiple admins in the future.
* Structure is documented below.
*/
@JvmName("mawvtybflgjpcvru")
public suspend fun adminUsers(`value`: ClusterAuthorizationAdminUsersArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.adminUsers = mapped
}
/**
* @param argument User that will be granted the cluster-admin role on the cluster, providing
* full access to the cluster. Currently, this is a singular field, but will
* be expanded to allow multiple admins in the future.
* Structure is documented below.
*/
@JvmName("sjgpyxgfbtvivcbc")
public suspend fun adminUsers(argument: suspend ClusterAuthorizationAdminUsersArgsBuilder.() -> Unit) {
val toBeMapped = ClusterAuthorizationAdminUsersArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.adminUsers = mapped
}
internal fun build(): ClusterAuthorizationArgs = ClusterAuthorizationArgs(
adminUsers = adminUsers ?: throw PulumiNullFieldException("adminUsers"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy