
com.pulumi.azure.media.kotlin.inputs.ServiceAccountStorageAccountArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.media.kotlin.inputs
import com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property id Specifies the ID of the Storage Account that will be associated with the Media Services instance.
* @property isPrimary Specifies whether the storage account should be the primary account or not. Defaults to `false`.
* > **NOTE:** Whilst multiple `storage_account` blocks can be specified - one of them must be set to the primary
* @property managedIdentity A `managed_identity` block as defined below.
*/
public data class ServiceAccountStorageAccountArgs(
public val id: Output,
public val isPrimary: Output? = null,
public val managedIdentity: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs =
com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs.builder()
.id(id.applyValue({ args0 -> args0 }))
.isPrimary(isPrimary?.applyValue({ args0 -> args0 }))
.managedIdentity(
managedIdentity?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ServiceAccountStorageAccountArgs].
*/
@PulumiTagMarker
public class ServiceAccountStorageAccountArgsBuilder internal constructor() {
private var id: Output? = null
private var isPrimary: Output? = null
private var managedIdentity: Output? = null
/**
* @param value Specifies the ID of the Storage Account that will be associated with the Media Services instance.
*/
@JvmName("gesenijljxbgldhm")
public suspend fun id(`value`: Output) {
this.id = value
}
/**
* @param value Specifies whether the storage account should be the primary account or not. Defaults to `false`.
* > **NOTE:** Whilst multiple `storage_account` blocks can be specified - one of them must be set to the primary
*/
@JvmName("xnroorvwyxjgdqvh")
public suspend fun isPrimary(`value`: Output) {
this.isPrimary = value
}
/**
* @param value A `managed_identity` block as defined below.
*/
@JvmName("mtoilarqkeisxbpj")
public suspend
fun managedIdentity(`value`: Output) {
this.managedIdentity = value
}
/**
* @param value Specifies the ID of the Storage Account that will be associated with the Media Services instance.
*/
@JvmName("kaddpnehcbfwdcxw")
public suspend fun id(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.id = mapped
}
/**
* @param value Specifies whether the storage account should be the primary account or not. Defaults to `false`.
* > **NOTE:** Whilst multiple `storage_account` blocks can be specified - one of them must be set to the primary
*/
@JvmName("ixcolxnvdqflpewk")
public suspend fun isPrimary(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.isPrimary = mapped
}
/**
* @param value A `managed_identity` block as defined below.
*/
@JvmName("iacttjjgrgssdwvq")
public suspend fun managedIdentity(`value`: ServiceAccountStorageAccountManagedIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managedIdentity = mapped
}
/**
* @param argument A `managed_identity` block as defined below.
*/
@JvmName("hiloligggehngjay")
public suspend
fun managedIdentity(argument: suspend ServiceAccountStorageAccountManagedIdentityArgsBuilder.() -> Unit) {
val toBeMapped = ServiceAccountStorageAccountManagedIdentityArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.managedIdentity = mapped
}
internal fun build(): ServiceAccountStorageAccountArgs = ServiceAccountStorageAccountArgs(
id = id ?: throw PulumiNullFieldException("id"),
isPrimary = isPrimary,
managedIdentity = managedIdentity,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy