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

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

package com.pulumi.azure.media.kotlin.inputs

import com.pulumi.azure.media.inputs.ServiceAccountEncryptionManagedIdentityArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property useSystemAssignedIdentity Whether to use System Assigned Identity. Possible Values are `true` and `false`.
 * @property userAssignedIdentityId The ID of the User Assigned Identity. This value can only be set when `use_system_assigned_identity` is `false`
 */
public data class ServiceAccountEncryptionManagedIdentityArgs(
    public val useSystemAssignedIdentity: Output? = null,
    public val userAssignedIdentityId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.media.inputs.ServiceAccountEncryptionManagedIdentityArgs =
        com.pulumi.azure.media.inputs.ServiceAccountEncryptionManagedIdentityArgs.builder()
            .useSystemAssignedIdentity(useSystemAssignedIdentity?.applyValue({ args0 -> args0 }))
            .userAssignedIdentityId(userAssignedIdentityId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceAccountEncryptionManagedIdentityArgs].
 */
@PulumiTagMarker
public class ServiceAccountEncryptionManagedIdentityArgsBuilder internal constructor() {
    private var useSystemAssignedIdentity: Output? = null

    private var userAssignedIdentityId: Output? = null

    /**
     * @param value Whether to use System Assigned Identity. Possible Values are `true` and `false`.
     */
    @JvmName("qllbcghndgatijgp")
    public suspend fun useSystemAssignedIdentity(`value`: Output) {
        this.useSystemAssignedIdentity = value
    }

    /**
     * @param value The ID of the User Assigned Identity. This value can only be set when `use_system_assigned_identity` is `false`
     */
    @JvmName("rmmhwpgsdyntgfet")
    public suspend fun userAssignedIdentityId(`value`: Output) {
        this.userAssignedIdentityId = value
    }

    /**
     * @param value Whether to use System Assigned Identity. Possible Values are `true` and `false`.
     */
    @JvmName("koqmrxvxlhnuhwji")
    public suspend fun useSystemAssignedIdentity(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useSystemAssignedIdentity = mapped
    }

    /**
     * @param value The ID of the User Assigned Identity. This value can only be set when `use_system_assigned_identity` is `false`
     */
    @JvmName("twsxhjoytmvbxvmp")
    public suspend fun userAssignedIdentityId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userAssignedIdentityId = mapped
    }

    internal fun build(): ServiceAccountEncryptionManagedIdentityArgs =
        ServiceAccountEncryptionManagedIdentityArgs(
            useSystemAssignedIdentity = useSystemAssignedIdentity,
            userAssignedIdentityId = userAssignedIdentityId,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy