com.pulumi.azurenative.appplatform.kotlin.inputs.ExecActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.appplatform.kotlin.inputs
import com.pulumi.azurenative.appplatform.inputs.ExecActionArgs.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.collections.List
import kotlin.jvm.JvmName
/**
* ExecAction describes a "run in container" action.
* @property command Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
* @property type The type of the action to take to perform the health check.
* Expected value is 'ExecAction'.
*/
public data class ExecActionArgs(
public val command: Output>? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.appplatform.inputs.ExecActionArgs =
com.pulumi.azurenative.appplatform.inputs.ExecActionArgs.builder()
.command(command?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ExecActionArgs].
*/
@PulumiTagMarker
public class ExecActionArgsBuilder internal constructor() {
private var command: Output>? = null
private var type: Output? = null
/**
* @param value Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
*/
@JvmName("efkyvpyqpgpexbfh")
public suspend fun command(`value`: Output>) {
this.command = value
}
@JvmName("ludbypgsxeysraue")
public suspend fun command(vararg values: Output) {
this.command = Output.all(values.asList())
}
/**
* @param values Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
*/
@JvmName("jxeoxbrayqeseubb")
public suspend fun command(values: List