com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforce.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.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property args Optional arguments to pass to the source during
* execution.
* @property file A remote or local file. Structure is
* documented below.
* @property interpreter The script interpreter to use. Possible values
* are: `INTERPRETER_UNSPECIFIED`, `NONE`, `SHELL`, `POWERSHELL`.
* @property outputFilePath Only recorded for enforce Exec. Path to an
* output file (that is created by this Exec) whose content will be recorded in
* OSPolicyResourceCompliance after a successful run. Absence or failure to
* read this file will result in this ExecResource being non-compliant. Output
* file size is limited to 100K bytes.
* @property script An inline script. The size of the script is limited to
* 1024 characters.
*/
public data class OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforce(
public val args: List? = null,
public val `file`: OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFile? = null,
public val interpreter: String,
public val outputFilePath: String? = null,
public val script: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforce): OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforce =
OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforce(
args = javaType.args().map({ args0 -> args0 }),
`file` = javaType.`file`().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResourceExecEnforceFile.Companion.toKotlin(args0)
})
}).orElse(null),
interpreter = javaType.interpreter(),
outputFilePath = javaType.outputFilePath().map({ args0 -> args0 }).orElse(null),
script = javaType.script().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy