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

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

package com.pulumi.azure.lighthouse.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 DefinitionEligibleAuthorization(
    public val justInTimeAccessPolicy: DefinitionEligibleAuthorizationJustInTimeAccessPolicy? = null,
    public val principalDisplayName: String? = null,
    public val principalId: String,
    public val roleDefinitionId: String,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.lighthouse.outputs.DefinitionEligibleAuthorization):
            DefinitionEligibleAuthorization = DefinitionEligibleAuthorization(
            justInTimeAccessPolicy = javaType.justInTimeAccessPolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.lighthouse.kotlin.outputs.DefinitionEligibleAuthorizationJustInTimeAccessPolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            principalDisplayName = javaType.principalDisplayName().map({ args0 -> args0 }).orElse(null),
            principalId = javaType.principalId(),
            roleDefinitionId = javaType.roleDefinitionId(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy