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

@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 - 2024 Weber Informatics LLC | Privacy Policy