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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterSecurityConfigAuthorizationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gkeonprem.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterSecurityConfigAuthorizationArgs.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 adminUsers Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
 * Structure is documented below.
 */
public data class BareMetalAdminClusterSecurityConfigAuthorizationArgs(
    public val adminUsers: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterSecurityConfigAuthorizationArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterSecurityConfigAuthorizationArgs.builder()
            .adminUsers(
                adminUsers.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [BareMetalAdminClusterSecurityConfigAuthorizationArgs].
 */
@PulumiTagMarker
public class BareMetalAdminClusterSecurityConfigAuthorizationArgsBuilder internal constructor() {
    private var adminUsers:
        Output>? = null

    /**
     * @param value Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
     * Structure is documented below.
     */
    @JvmName("rxnpiqachupfmfba")
    public suspend fun adminUsers(`value`: Output>) {
        this.adminUsers = value
    }

    @JvmName("awldmuonxhxitoom")
    public suspend fun adminUsers(vararg values: Output) {
        this.adminUsers = Output.all(values.asList())
    }

    /**
     * @param values Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
     * Structure is documented below.
     */
    @JvmName("aaelnhdoakdnhxnr")
    public suspend fun adminUsers(values: List>) {
        this.adminUsers = Output.all(values)
    }

    /**
     * @param value Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
     * Structure is documented below.
     */
    @JvmName("doxtbfqpistsdblc")
    public suspend fun adminUsers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminUsers = mapped
    }

    /**
     * @param argument Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
     * Structure is documented below.
     */
    @JvmName("gfbcpbymrorksutd")
    public suspend fun adminUsers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.adminUsers = mapped
    }

    /**
     * @param argument Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
     * Structure is documented below.
     */
    @JvmName("tekejtldyisusmyr")
    public suspend fun adminUsers(vararg argument: suspend BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.adminUsers = mapped
    }

    /**
     * @param argument Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
     * Structure is documented below.
     */
    @JvmName("tttudhtrdoqxmqao")
    public suspend fun adminUsers(argument: suspend BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.adminUsers = mapped
    }

    /**
     * @param values Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
     * Structure is documented below.
     */
    @JvmName("asnhxvfgyusafccr")
    public suspend fun adminUsers(vararg values: BareMetalAdminClusterSecurityConfigAuthorizationAdminUserArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminUsers = mapped
    }

    internal fun build(): BareMetalAdminClusterSecurityConfigAuthorizationArgs =
        BareMetalAdminClusterSecurityConfigAuthorizationArgs(
            adminUsers = adminUsers ?: throw PulumiNullFieldException("adminUsers"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy