![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.mediaservices.kotlin.inputs.AccountStorageAccountArgs.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.mediaservices.kotlin.inputs
import com.pulumi.azure.mediaservices.inputs.AccountStorageAccountArgs.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 AccountStorageAccountArgs(
public val id: Output,
public val isPrimary: Output? = null,
public val managedIdentity: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.mediaservices.inputs.AccountStorageAccountArgs =
com.pulumi.azure.mediaservices.inputs.AccountStorageAccountArgs.builder()
.id(id.applyValue({ args0 -> args0 }))
.isPrimary(isPrimary?.applyValue({ args0 -> args0 }))
.managedIdentity(
managedIdentity?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [AccountStorageAccountArgs].
*/
@PulumiTagMarker
public class AccountStorageAccountArgsBuilder 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("dyawdpraigxxnxmi")
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("tnbjwdbjlahpknge")
public suspend fun isPrimary(`value`: Output) {
this.isPrimary = value
}
/**
* @param value A `managed_identity` block as defined below.
*/
@JvmName("egyfqvsmcnwsgqcd")
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("tnunbigiqhmbjgwm")
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("yavpeodubvjrvjex")
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("grhugtrmhspqvign")
public suspend fun managedIdentity(`value`: AccountStorageAccountManagedIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managedIdentity = mapped
}
/**
* @param argument A `managed_identity` block as defined below.
*/
@JvmName("xvsyjadrmikmsdjx")
public suspend fun managedIdentity(argument: suspend AccountStorageAccountManagedIdentityArgsBuilder.() -> Unit) {
val toBeMapped = AccountStorageAccountManagedIdentityArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.managedIdentity = mapped
}
internal fun build(): AccountStorageAccountArgs = AccountStorageAccountArgs(
id = id ?: throw PulumiNullFieldException("id"),
isPrimary = isPrimary,
managedIdentity = managedIdentity,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy