com.pulumi.gcp.osconfig.kotlin.inputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.osconfig.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property allowedSuccessCodes Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
* @property gcsObject A Cloud Storage object containing the executable.
* Structure is documented below.
* @property interpreter The script interpreter to use to run the script. If no interpreter is specified the script will
* be executed directly, which will likely only succeed for scripts with shebang lines.
* Possible values are: `SHELL`, `POWERSHELL`.
* @property localPath An absolute path to the executable on the VM.
*/
public data class PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs(
public val allowedSuccessCodes: Output>? = null,
public val gcsObject: Output? =
null,
public val interpreter: Output? = null,
public val localPath: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs =
com.pulumi.gcp.osconfig.inputs.PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs.builder()
.allowedSuccessCodes(allowedSuccessCodes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.gcsObject(gcsObject?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.interpreter(interpreter?.applyValue({ args0 -> args0 }))
.localPath(localPath?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgs].
*/
@PulumiTagMarker
public class PatchDeploymentPatchConfigPreStepWindowsExecStepConfigArgsBuilder internal constructor() {
private var allowedSuccessCodes: Output>? = null
private var gcsObject:
Output? = null
private var interpreter: Output? = null
private var localPath: Output? = null
/**
* @param value Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
*/
@JvmName("wfwctpmuoxposcbh")
public suspend fun allowedSuccessCodes(`value`: Output>) {
this.allowedSuccessCodes = value
}
@JvmName("ucnsyvdvndylrtgd")
public suspend fun allowedSuccessCodes(vararg values: Output) {
this.allowedSuccessCodes = Output.all(values.asList())
}
/**
* @param values Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
*/
@JvmName("xcfatxknwxtgapuh")
public suspend fun allowedSuccessCodes(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy