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

com.pulumi.azurenative.managedservices.kotlin.inputs.EligibleAuthorizationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.managedservices.kotlin.inputs

import com.pulumi.azurenative.managedservices.inputs.EligibleAuthorizationArgs.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

/**
 * The Azure Active Directory principal identifier, Azure built-in role, and just-in-time access policy that describes the just-in-time access the principal will receive on the delegated resource in the managed tenant.
 * @property justInTimeAccessPolicy The just-in-time access policy setting.
 * @property principalId The identifier of the Azure Active Directory principal.
 * @property principalIdDisplayName The display name of the Azure Active Directory principal.
 * @property roleDefinitionId The identifier of the Azure built-in role that defines the permissions that the Azure Active Directory principal will have on the projected scope.
 */
public data class EligibleAuthorizationArgs(
    public val justInTimeAccessPolicy: Output? = null,
    public val principalId: Output,
    public val principalIdDisplayName: Output? = null,
    public val roleDefinitionId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.managedservices.inputs.EligibleAuthorizationArgs =
        com.pulumi.azurenative.managedservices.inputs.EligibleAuthorizationArgs.builder()
            .justInTimeAccessPolicy(
                justInTimeAccessPolicy?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .principalId(principalId.applyValue({ args0 -> args0 }))
            .principalIdDisplayName(principalIdDisplayName?.applyValue({ args0 -> args0 }))
            .roleDefinitionId(roleDefinitionId.applyValue({ args0 -> args0 })).build()
}

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

    private var principalId: Output? = null

    private var principalIdDisplayName: Output? = null

    private var roleDefinitionId: Output? = null

    /**
     * @param value The just-in-time access policy setting.
     */
    @JvmName("dyunyklondbymnxp")
    public suspend fun justInTimeAccessPolicy(`value`: Output) {
        this.justInTimeAccessPolicy = value
    }

    /**
     * @param value The identifier of the Azure Active Directory principal.
     */
    @JvmName("goygwsskykcsyjpi")
    public suspend fun principalId(`value`: Output) {
        this.principalId = value
    }

    /**
     * @param value The display name of the Azure Active Directory principal.
     */
    @JvmName("caebkpxmfsynxcty")
    public suspend fun principalIdDisplayName(`value`: Output) {
        this.principalIdDisplayName = value
    }

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

    /**
     * @param value The just-in-time access policy setting.
     */
    @JvmName("yrjthimjnxgnwafc")
    public suspend fun justInTimeAccessPolicy(`value`: JustInTimeAccessPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.justInTimeAccessPolicy = mapped
    }

    /**
     * @param argument The just-in-time access policy setting.
     */
    @JvmName("shmylwdjmepvidug")
    public suspend fun justInTimeAccessPolicy(argument: suspend JustInTimeAccessPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = JustInTimeAccessPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.justInTimeAccessPolicy = mapped
    }

    /**
     * @param value The identifier of the Azure Active Directory principal.
     */
    @JvmName("urhufamwlmwxlwej")
    public suspend fun principalId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principalId = mapped
    }

    /**
     * @param value The display name of the Azure Active Directory principal.
     */
    @JvmName("gdogiykymxdtqdfr")
    public suspend fun principalIdDisplayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.principalIdDisplayName = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy