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

com.pulumi.azure.mediaservices.kotlin.outputs.AccountStorageAccount.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.mediaservices.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 AccountStorageAccount(
    public val id: String,
    public val isPrimary: Boolean? = null,
    public val managedIdentity: AccountStorageAccountManagedIdentity? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.mediaservices.outputs.AccountStorageAccount): AccountStorageAccount = AccountStorageAccount(
            id = javaType.id(),
            isPrimary = javaType.isPrimary().map({ args0 -> args0 }).orElse(null),
            managedIdentity = javaType.managedIdentity().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.mediaservices.kotlin.outputs.AccountStorageAccountManagedIdentity.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy