com.pulumi.azure.containerapp.kotlin.inputs.JobSecretArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerapp.kotlin.inputs
import com.pulumi.azure.containerapp.inputs.JobSecretArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property identity A `identity` block as defined below.
* @property keyVaultSecretId The Key Vault Secret ID. Could be either one of `id` or `versionless_id`.
* @property name Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
* @property value The value for this secret.
*/
public data class JobSecretArgs(
public val identity: Output? = null,
public val keyVaultSecretId: Output? = null,
public val name: Output,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerapp.inputs.JobSecretArgs =
com.pulumi.azure.containerapp.inputs.JobSecretArgs.builder()
.identity(identity?.applyValue({ args0 -> args0 }))
.keyVaultSecretId(keyVaultSecretId?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobSecretArgs].
*/
@PulumiTagMarker
public class JobSecretArgsBuilder internal constructor() {
private var identity: Output? = null
private var keyVaultSecretId: Output? = null
private var name: Output? = null
private var `value`: Output? = null
/**
* @param value A `identity` block as defined below.
*/
@JvmName("jlhpmvxjfgiwhdda")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The Key Vault Secret ID. Could be either one of `id` or `versionless_id`.
*/
@JvmName("comwtaqucwiufnqv")
public suspend fun keyVaultSecretId(`value`: Output) {
this.keyVaultSecretId = value
}
/**
* @param value Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
*/
@JvmName("fmqcxtvdtrepiqqg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The value for this secret.
*/
@JvmName("aqpdtipftchflcaj")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value A `identity` block as defined below.
*/
@JvmName("owyxiwpcsynkdxrd")
public suspend fun identity(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param value The Key Vault Secret ID. Could be either one of `id` or `versionless_id`.
*/
@JvmName("jwrkgntpygiphevf")
public suspend fun keyVaultSecretId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyVaultSecretId = mapped
}
/**
* @param value Specifies the name of the Container App Job resource. Changing this forces a new resource to be created.
*/
@JvmName("kqbeklqopxciqerx")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The value for this secret.
*/
@JvmName("mqcdotrpbmwojquc")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): JobSecretArgs = JobSecretArgs(
identity = identity,
keyVaultSecretId = keyVaultSecretId,
name = name ?: throw PulumiNullFieldException("name"),
`value` = `value`,
)
}