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

com.pulumi.azure.logicapps.kotlin.inputs.StandardIdentityArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.logicapps.kotlin.inputs

import com.pulumi.azure.logicapps.inputs.StandardIdentityArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property identityIds Specifies a list of User Assigned Managed Identity IDs to be assigned to this Logic App Standard.
 * > **NOTE:** When `type` is set to `SystemAssigned`, The assigned `principal_id` and `tenant_id` can be retrieved after the Logic App has been created. More details are available below.
 * > **NOTE:** The `identity_ids` is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
 * @property principalId The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service.
 * @property tenantId The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service.
 * @property type Specifies the type of Managed Service Identity that should be configured on this Logic App Standard. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned` (to enable both).
 */
public data class StandardIdentityArgs(
    public val identityIds: Output>? = null,
    public val principalId: Output? = null,
    public val tenantId: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.logicapps.inputs.StandardIdentityArgs =
        com.pulumi.azure.logicapps.inputs.StandardIdentityArgs.builder()
            .identityIds(identityIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .principalId(principalId?.applyValue({ args0 -> args0 }))
            .tenantId(tenantId?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StandardIdentityArgs].
 */
@PulumiTagMarker
public class StandardIdentityArgsBuilder internal constructor() {
    private var identityIds: Output>? = null

    private var principalId: Output? = null

    private var tenantId: Output? = null

    private var type: Output? = null

    /**
     * @param value Specifies a list of User Assigned Managed Identity IDs to be assigned to this Logic App Standard.
     * > **NOTE:** When `type` is set to `SystemAssigned`, The assigned `principal_id` and `tenant_id` can be retrieved after the Logic App has been created. More details are available below.
     * > **NOTE:** The `identity_ids` is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
     */
    @JvmName("rktaxmaspvnkrnsh")
    public suspend fun identityIds(`value`: Output>) {
        this.identityIds = value
    }

    @JvmName("lqdpsrxaajufjsee")
    public suspend fun identityIds(vararg values: Output) {
        this.identityIds = Output.all(values.asList())
    }

    /**
     * @param values Specifies a list of User Assigned Managed Identity IDs to be assigned to this Logic App Standard.
     * > **NOTE:** When `type` is set to `SystemAssigned`, The assigned `principal_id` and `tenant_id` can be retrieved after the Logic App has been created. More details are available below.
     * > **NOTE:** The `identity_ids` is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
     */
    @JvmName("glbtphpmsbxhnqdc")
    public suspend fun identityIds(values: List>) {
        this.identityIds = Output.all(values)
    }

    /**
     * @param value The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service.
     */
    @JvmName("xackkillivucipfb")
    public suspend fun principalId(`value`: Output) {
        this.principalId = value
    }

    /**
     * @param value The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service.
     */
    @JvmName("lpxyhkgtlrsiccdy")
    public suspend fun tenantId(`value`: Output) {
        this.tenantId = value
    }

    /**
     * @param value Specifies the type of Managed Service Identity that should be configured on this Logic App Standard. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned` (to enable both).
     */
    @JvmName("kikifwbmptlplsqn")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Specifies a list of User Assigned Managed Identity IDs to be assigned to this Logic App Standard.
     * > **NOTE:** When `type` is set to `SystemAssigned`, The assigned `principal_id` and `tenant_id` can be retrieved after the Logic App has been created. More details are available below.
     * > **NOTE:** The `identity_ids` is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
     */
    @JvmName("wrghxptqwudtiwur")
    public suspend fun identityIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identityIds = mapped
    }

    /**
     * @param values Specifies a list of User Assigned Managed Identity IDs to be assigned to this Logic App Standard.
     * > **NOTE:** When `type` is set to `SystemAssigned`, The assigned `principal_id` and `tenant_id` can be retrieved after the Logic App has been created. More details are available below.
     * > **NOTE:** The `identity_ids` is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
     */
    @JvmName("bngjthydsadlngwt")
    public suspend fun identityIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.identityIds = mapped
    }

    /**
     * @param value The Principal ID for the Service Principal associated with the Managed Service Identity of this App Service.
     */
    @JvmName("ucidtfmxvbaovuby")
    public suspend fun principalId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.principalId = mapped
    }

    /**
     * @param value The Tenant ID for the Service Principal associated with the Managed Service Identity of this App Service.
     */
    @JvmName("rmotpcthgiekfolg")
    public suspend fun tenantId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tenantId = mapped
    }

    /**
     * @param value Specifies the type of Managed Service Identity that should be configured on this Logic App Standard. Possible values are `SystemAssigned`, `UserAssigned` and `SystemAssigned, UserAssigned` (to enable both).
     */
    @JvmName("qwoqdcgegnklipit")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): StandardIdentityArgs = StandardIdentityArgs(
        identityIds = identityIds,
        principalId = principalId,
        tenantId = tenantId,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy