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

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

package com.pulumi.azure.confidentialledger.kotlin.inputs

import com.pulumi.azure.confidentialledger.inputs.LedgerAzureadBasedServicePrincipalArgs.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.jvm.JvmName

/**
 *
 * @property ledgerRoleName Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are `Administrator`, `Contributor` and `Reader`.
 * @property principalId Specifies the Principal ID of the AzureAD Service Principal.
 * @property tenantId Specifies the Tenant ID for this AzureAD Service Principal.
 */
public data class LedgerAzureadBasedServicePrincipalArgs(
    public val ledgerRoleName: Output,
    public val principalId: Output,
    public val tenantId: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.confidentialledger.inputs.LedgerAzureadBasedServicePrincipalArgs =
        com.pulumi.azure.confidentialledger.inputs.LedgerAzureadBasedServicePrincipalArgs.builder()
            .ledgerRoleName(ledgerRoleName.applyValue({ args0 -> args0 }))
            .principalId(principalId.applyValue({ args0 -> args0 }))
            .tenantId(tenantId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LedgerAzureadBasedServicePrincipalArgs].
 */
@PulumiTagMarker
public class LedgerAzureadBasedServicePrincipalArgsBuilder internal constructor() {
    private var ledgerRoleName: Output? = null

    private var principalId: Output? = null

    private var tenantId: Output? = null

    /**
     * @param value Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are `Administrator`, `Contributor` and `Reader`.
     */
    @JvmName("rjnjhvcqgdomtmfk")
    public suspend fun ledgerRoleName(`value`: Output) {
        this.ledgerRoleName = value
    }

    /**
     * @param value Specifies the Principal ID of the AzureAD Service Principal.
     */
    @JvmName("aiougvivsiqnhgoy")
    public suspend fun principalId(`value`: Output) {
        this.principalId = value
    }

    /**
     * @param value Specifies the Tenant ID for this AzureAD Service Principal.
     */
    @JvmName("mfbpsfpwvsketogp")
    public suspend fun tenantId(`value`: Output) {
        this.tenantId = value
    }

    /**
     * @param value Specifies the Ledger Role to grant this AzureAD Service Principal. Possible values are `Administrator`, `Contributor` and `Reader`.
     */
    @JvmName("scbwbtqoexvmamun")
    public suspend fun ledgerRoleName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ledgerRoleName = mapped
    }

    /**
     * @param value Specifies the Principal ID of the AzureAD Service Principal.
     */
    @JvmName("jasnyecrrohmwhxy")
    public suspend fun principalId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principalId = mapped
    }

    /**
     * @param value Specifies the Tenant ID for this AzureAD Service Principal.
     */
    @JvmName("fdpumerwedjsoxdk")
    public suspend fun tenantId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tenantId = mapped
    }

    internal fun build(): LedgerAzureadBasedServicePrincipalArgs =
        LedgerAzureadBasedServicePrincipalArgs(
            ledgerRoleName = ledgerRoleName ?: throw PulumiNullFieldException("ledgerRoleName"),
            principalId = principalId ?: throw PulumiNullFieldException("principalId"),
            tenantId = tenantId ?: throw PulumiNullFieldException("tenantId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy