![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.compute.kotlin.inputs.RunCommandSourceArgs.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.compute.kotlin.inputs
import com.pulumi.azure.compute.inputs.RunCommandSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property commandId
* @property script
* @property scriptUri
* @property scriptUriManagedIdentity A `script_uri_managed_identity` block as defined above.
*/
public data class RunCommandSourceArgs(
public val commandId: Output? = null,
public val script: Output? = null,
public val scriptUri: Output? = null,
public val scriptUriManagedIdentity: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.compute.inputs.RunCommandSourceArgs =
com.pulumi.azure.compute.inputs.RunCommandSourceArgs.builder()
.commandId(commandId?.applyValue({ args0 -> args0 }))
.script(script?.applyValue({ args0 -> args0 }))
.scriptUri(scriptUri?.applyValue({ args0 -> args0 }))
.scriptUriManagedIdentity(
scriptUriManagedIdentity?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [RunCommandSourceArgs].
*/
@PulumiTagMarker
public class RunCommandSourceArgsBuilder internal constructor() {
private var commandId: Output? = null
private var script: Output? = null
private var scriptUri: Output? = null
private var scriptUriManagedIdentity: Output? = null
/**
* @param value
*/
@JvmName("kpiovljnifbcgqyd")
public suspend fun commandId(`value`: Output) {
this.commandId = value
}
/**
* @param value
*/
@JvmName("tiaxflaxvgankcgr")
public suspend fun script(`value`: Output) {
this.script = value
}
/**
* @param value
*/
@JvmName("lbsvlmxkprkovqqc")
public suspend fun scriptUri(`value`: Output) {
this.scriptUri = value
}
/**
* @param value A `script_uri_managed_identity` block as defined above.
*/
@JvmName("boskjornnqqouijk")
public suspend fun scriptUriManagedIdentity(`value`: Output) {
this.scriptUriManagedIdentity = value
}
/**
* @param value
*/
@JvmName("adkktskroygcwquf")
public suspend fun commandId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.commandId = mapped
}
/**
* @param value
*/
@JvmName("kuadbnanjcayrlrk")
public suspend fun script(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.script = mapped
}
/**
* @param value
*/
@JvmName("xkycsqpcjjcgojmm")
public suspend fun scriptUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scriptUri = mapped
}
/**
* @param value A `script_uri_managed_identity` block as defined above.
*/
@JvmName("vtjluhmecjbvjsrt")
public suspend fun scriptUriManagedIdentity(`value`: RunCommandSourceScriptUriManagedIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scriptUriManagedIdentity = mapped
}
/**
* @param argument A `script_uri_managed_identity` block as defined above.
*/
@JvmName("uutnonbmnvdxtlow")
public suspend fun scriptUriManagedIdentity(argument: suspend RunCommandSourceScriptUriManagedIdentityArgsBuilder.() -> Unit) {
val toBeMapped = RunCommandSourceScriptUriManagedIdentityArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.scriptUriManagedIdentity = mapped
}
internal fun build(): RunCommandSourceArgs = RunCommandSourceArgs(
commandId = commandId,
script = script,
scriptUri = scriptUri,
scriptUriManagedIdentity = scriptUriManagedIdentity,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy