com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesRecipeUpdateStepScriptRun.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property allowedExitCodes Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]
* @property interpreter The script interpreter to use to run the script. If no interpreter is specified the script is executed directly,
* which likely only succeed for scripts with shebang lines.
* Possible values are: `SHELL`, `POWERSHELL`.
* @property script The shell script to be executed.
*/
public data class GuestPoliciesRecipeUpdateStepScriptRun(
public val allowedExitCodes: List? = null,
public val interpreter: String? = null,
public val script: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.GuestPoliciesRecipeUpdateStepScriptRun): GuestPoliciesRecipeUpdateStepScriptRun = GuestPoliciesRecipeUpdateStepScriptRun(
allowedExitCodes = javaType.allowedExitCodes().map({ args0 -> args0 }),
interpreter = javaType.interpreter().map({ args0 -> args0 }).orElse(null),
script = javaType.script(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy