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

com.pulumi.azure.lighthouse.kotlin.inputs.DefinitionEligibleAuthorizationArgs.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.DefinitionEligibleAuthorizationArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property justInTimeAccessPolicy A `just_in_time_access_policy` block as defined below.
 * @property principalDisplayName The display name of the Azure Active Directory Principal.
 * @property principalId Principal ID of the security group/service principal/user that would be assigned permissions to the projected subscription.
 * @property roleDefinitionId The Principal ID of the Azure built-in role that defines the permissions that the Azure Active Directory will have on the projected scope.
 */
public data class DefinitionEligibleAuthorizationArgs(
    public val justInTimeAccessPolicy: Output? = null,
    public val principalDisplayName: Output? = null,
    public val principalId: Output,
    public val roleDefinitionId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.lighthouse.inputs.DefinitionEligibleAuthorizationArgs =
        com.pulumi.azure.lighthouse.inputs.DefinitionEligibleAuthorizationArgs.builder()
            .justInTimeAccessPolicy(
                justInTimeAccessPolicy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .principalDisplayName(principalDisplayName?.applyValue({ args0 -> args0 }))
            .principalId(principalId.applyValue({ args0 -> args0 }))
            .roleDefinitionId(roleDefinitionId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DefinitionEligibleAuthorizationArgs].
 */
@PulumiTagMarker
public class DefinitionEligibleAuthorizationArgsBuilder internal constructor() {
    private var justInTimeAccessPolicy:
        Output? = null

    private var principalDisplayName: Output? = null

    private var principalId: Output? = null

    private var roleDefinitionId: Output? = null

    /**
     * @param value A `just_in_time_access_policy` block as defined below.
     */
    @JvmName("mqryskbjosocfdeq")
    public suspend fun justInTimeAccessPolicy(`value`: Output) {
        this.justInTimeAccessPolicy = value
    }

    /**
     * @param value The display name of the Azure Active Directory Principal.
     */
    @JvmName("mktbklgdfrarpjin")
    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("vpjbhhyqxuqhveib")
    public suspend fun principalId(`value`: Output) {
        this.principalId = value
    }

    /**
     * @param value The Principal ID of the Azure built-in role that defines the permissions that the Azure Active Directory will have on the projected scope.
     */
    @JvmName("fsneepbiavwycvik")
    public suspend fun roleDefinitionId(`value`: Output) {
        this.roleDefinitionId = value
    }

    /**
     * @param value A `just_in_time_access_policy` block as defined below.
     */
    @JvmName("rmpxfgmhkboptspa")
    public suspend fun justInTimeAccessPolicy(`value`: DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.justInTimeAccessPolicy = mapped
    }

    /**
     * @param argument A `just_in_time_access_policy` block as defined below.
     */
    @JvmName("vyxyfccefacncpxq")
    public suspend fun justInTimeAccessPolicy(argument: suspend DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgsBuilder.() -> Unit) {
        val toBeMapped =
            DefinitionEligibleAuthorizationJustInTimeAccessPolicyArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.justInTimeAccessPolicy = mapped
    }

    /**
     * @param value The display name of the Azure Active Directory Principal.
     */
    @JvmName("eqgitrjyqmskrvdj")
    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("ucrjjgdwquabafxw")
    public suspend fun principalId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principalId = mapped
    }

    /**
     * @param value The Principal ID of the Azure built-in role that defines the permissions that the Azure Active Directory will have on the projected scope.
     */
    @JvmName("utacytynwjidnadu")
    public suspend fun roleDefinitionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleDefinitionId = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy