com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigInitializationActionArgs.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.dataproc.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigInitializationActionArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property script The script to be executed during initialization of the cluster.
* The script must be a GCS file with a gs:// prefix.
* @property timeoutSec The maximum duration (in seconds) which `script` is
* allowed to take to execute its action. GCP will default to a predetermined
* computed value if not set (currently 300).
* - - -
*/
public data class ClusterClusterConfigInitializationActionArgs(
public val script: Output,
public val timeoutSec: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigInitializationActionArgs = com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigInitializationActionArgs.builder()
.script(script.applyValue({ args0 -> args0 }))
.timeoutSec(timeoutSec?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterClusterConfigInitializationActionArgs].
*/
@PulumiTagMarker
public class ClusterClusterConfigInitializationActionArgsBuilder internal constructor() {
private var script: Output? = null
private var timeoutSec: Output? = null
/**
* @param value The script to be executed during initialization of the cluster.
* The script must be a GCS file with a gs:// prefix.
*/
@JvmName("gbphymtjrirxnmxj")
public suspend fun script(`value`: Output) {
this.script = value
}
/**
* @param value The maximum duration (in seconds) which `script` is
* allowed to take to execute its action. GCP will default to a predetermined
* computed value if not set (currently 300).
* - - -
*/
@JvmName("hywehgixsmexbjix")
public suspend fun timeoutSec(`value`: Output) {
this.timeoutSec = value
}
/**
* @param value The script to be executed during initialization of the cluster.
* The script must be a GCS file with a gs:// prefix.
*/
@JvmName("emefigqcjxmdygfg")
public suspend fun script(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.script = mapped
}
/**
* @param value The maximum duration (in seconds) which `script` is
* allowed to take to execute its action. GCP will default to a predetermined
* computed value if not set (currently 300).
* - - -
*/
@JvmName("qogpmvtblctpaybg")
public suspend fun timeoutSec(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeoutSec = mapped
}
internal fun build(): ClusterClusterConfigInitializationActionArgs =
ClusterClusterConfigInitializationActionArgs(
script = script ?: throw PulumiNullFieldException("script"),
timeoutSec = timeoutSec,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy