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

com.pulumi.gcp.container.kotlin.inputs.AzureClusterAuthorizationArgs.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.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>) {
        this.adminGroups = Output.all(values)
    }

    /**
     * @param value 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
     */
    @JvmName("uwtqslbpyqlneqaf")
    public suspend fun adminUsers(`value`: Output>) {
        this.adminUsers = value
    }

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

    /**
     * @param values 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
     */
    @JvmName("wmgvppcpepctxkic")
    public suspend fun adminUsers(values: List>) {
        this.adminUsers = Output.all(values)
    }

    /**
     * @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("vdqqmjdfxfnpkgad")
    public suspend fun adminGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adminGroups = mapped
    }

    /**
     * @param argument 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("pjfxxjrytplqxqoq")
    public suspend fun adminGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AzureClusterAuthorizationAdminGroupArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.adminGroups = mapped
    }

    /**
     * @param argument 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("jtctwicprhfimkjg")
    public suspend fun adminGroups(vararg argument: suspend AzureClusterAuthorizationAdminGroupArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AzureClusterAuthorizationAdminGroupArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.adminGroups = mapped
    }

    /**
     * @param argument 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("dldixkfniabeenkx")
    public suspend fun adminGroups(argument: suspend AzureClusterAuthorizationAdminGroupArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AzureClusterAuthorizationAdminGroupArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.adminGroups = mapped
    }

    /**
     * @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("tktexlfluotmvvvv")
    public suspend fun adminGroups(vararg values: AzureClusterAuthorizationAdminGroupArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminGroups = mapped
    }

    /**
     * @param value 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
     */
    @JvmName("qabbgcgjcmrxwksi")
    public suspend fun adminUsers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminUsers = mapped
    }

    /**
     * @param argument 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
     */
    @JvmName("fxoglboctxortrhe")
    public suspend fun adminUsers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AzureClusterAuthorizationAdminUserArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.adminUsers = mapped
    }

    /**
     * @param argument 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
     */
    @JvmName("uwtnresboxddwnuq")
    public suspend fun adminUsers(vararg argument: suspend AzureClusterAuthorizationAdminUserArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AzureClusterAuthorizationAdminUserArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.adminUsers = mapped
    }

    /**
     * @param argument 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
     */
    @JvmName("pvidvjafjboavtnv")
    public suspend fun adminUsers(argument: suspend AzureClusterAuthorizationAdminUserArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AzureClusterAuthorizationAdminUserArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.adminUsers = mapped
    }

    /**
     * @param values 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
     */
    @JvmName("cwbvichriqawgtts")
    public suspend fun adminUsers(vararg values: AzureClusterAuthorizationAdminUserArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminUsers = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy