com.pulumi.azure.containerapp.kotlin.outputs.AppSecret.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerapp.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property identity The identity to use for accessing the Key Vault secret reference. This can either be the Resource ID of a User Assigned Identity, or `System` for the System Assigned Identity.
* !> **Note:** `identity` must be used together with `key_vault_secret_id`
* @property keyVaultSecretId The ID of a Key Vault secret. This can be a versioned or version-less ID.
* !> **Note:** When using `key_vault_secret_id`, `ignore_changes` should be used to ignore any changes to `value`.
* @property name The secret name.
* @property value The value for this secret.
* !> **Note:** `value` will be ignored if `key_vault_secret_id` and `identity` are provided.
*/
public data class AppSecret(
public val identity: String? = null,
public val keyVaultSecretId: String? = null,
public val name: String,
public val `value`: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.containerapp.outputs.AppSecret): AppSecret =
AppSecret(
identity = javaType.identity().map({ args0 -> args0 }).orElse(null),
keyVaultSecretId = javaType.keyVaultSecretId().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}