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

com.pulumi.azure.lighthouse.kotlin.inputs.DefinitionAuthorizationArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.lighthouse.kotlin.inputs

import com.pulumi.azure.lighthouse.inputs.DefinitionAuthorizationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property delegatedRoleDefinitionIds The set of role definition ids which define all the permissions that the principal id can assign.
 * @property principalDisplayName The display name of the security group/service principal/user that would be assigned permissions to the projected subscription.
 * @property principalId Principal ID of the security group/service principal/user that would be assigned permissions to the projected subscription.
 * @property roleDefinitionId The role definition identifier. This role will define the permissions that are granted to the principal. This cannot be an `Owner` role.
 */
public data class DefinitionAuthorizationArgs(
    public val delegatedRoleDefinitionIds: Output>? = null,
    public val principalDisplayName: Output? = null,
    public val principalId: Output,
    public val roleDefinitionId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.lighthouse.inputs.DefinitionAuthorizationArgs =
        com.pulumi.azure.lighthouse.inputs.DefinitionAuthorizationArgs.builder()
            .delegatedRoleDefinitionIds(
                delegatedRoleDefinitionIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .principalDisplayName(principalDisplayName?.applyValue({ args0 -> args0 }))
            .principalId(principalId.applyValue({ args0 -> args0 }))
            .roleDefinitionId(roleDefinitionId.applyValue({ args0 -> args0 })).build()
}

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

    private var principalDisplayName: Output? = null

    private var principalId: Output? = null

    private var roleDefinitionId: Output? = null

    /**
     * @param value The set of role definition ids which define all the permissions that the principal id can assign.
     */
    @JvmName("ybigdsxabcpmpaue")
    public suspend fun delegatedRoleDefinitionIds(`value`: Output>) {
        this.delegatedRoleDefinitionIds = value
    }

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

    /**
     * @param values The set of role definition ids which define all the permissions that the principal id can assign.
     */
    @JvmName("pjrsrdmqweuordmf")
    public suspend fun delegatedRoleDefinitionIds(values: List>) {
        this.delegatedRoleDefinitionIds = Output.all(values)
    }

    /**
     * @param value The display name of the security group/service principal/user that would be assigned permissions to the projected subscription.
     */
    @JvmName("xcaposncbwdeenct")
    public suspend fun principalDisplayName(`value`: Output) {
        this.principalDisplayName = value
    }

    /**
     * @param value Principal ID of the security group/service principal/user that would be assigned permissions to the projected subscription.
     */
    @JvmName("yafbeqgsmmpjwhgj")
    public suspend fun principalId(`value`: Output) {
        this.principalId = value
    }

    /**
     * @param value The role definition identifier. This role will define the permissions that are granted to the principal. This cannot be an `Owner` role.
     */
    @JvmName("haxqhponpopshaod")
    public suspend fun roleDefinitionId(`value`: Output) {
        this.roleDefinitionId = value
    }

    /**
     * @param value The set of role definition ids which define all the permissions that the principal id can assign.
     */
    @JvmName("duftvdehybxvqpfc")
    public suspend fun delegatedRoleDefinitionIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.delegatedRoleDefinitionIds = mapped
    }

    /**
     * @param values The set of role definition ids which define all the permissions that the principal id can assign.
     */
    @JvmName("rwiysskpvraeohdq")
    public suspend fun delegatedRoleDefinitionIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.delegatedRoleDefinitionIds = mapped
    }

    /**
     * @param value The display name of the security group/service principal/user that would be assigned permissions to the projected subscription.
     */
    @JvmName("anxvodfkhswajvbv")
    public suspend fun principalDisplayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.principalDisplayName = mapped
    }

    /**
     * @param value Principal ID of the security group/service principal/user that would be assigned permissions to the projected subscription.
     */
    @JvmName("atdsifaxheuugqhj")
    public suspend fun principalId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principalId = mapped
    }

    /**
     * @param value The role definition identifier. This role will define the permissions that are granted to the principal. This cannot be an `Owner` role.
     */
    @JvmName("lkovaorygplmsqpl")
    public suspend fun roleDefinitionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleDefinitionId = mapped
    }

    internal fun build(): DefinitionAuthorizationArgs = DefinitionAuthorizationArgs(
        delegatedRoleDefinitionIds = delegatedRoleDefinitionIds,
        principalDisplayName = principalDisplayName,
        principalId = principalId ?: throw PulumiNullFieldException("principalId"),
        roleDefinitionId = roleDefinitionId ?: throw PulumiNullFieldException("roleDefinitionId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy