com.pulumi.gcp.dataproc.kotlin.inputs.WorkflowTemplatePlacementManagedClusterConfigLifecycleConfigArgs.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.WorkflowTemplatePlacementManagedClusterConfigLifecycleConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property autoDeleteTime The time when cluster will be auto-deleted (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json)).
* @property autoDeleteTtl The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json)).
* @property idleDeleteTtl The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json).
* @property idleStartTime Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json)).
*/
public data class WorkflowTemplatePlacementManagedClusterConfigLifecycleConfigArgs(
public val autoDeleteTime: Output? = null,
public val autoDeleteTtl: Output? = null,
public val idleDeleteTtl: Output? = null,
public val idleStartTime: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementManagedClusterConfigLifecycleConfigArgs =
com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementManagedClusterConfigLifecycleConfigArgs.builder()
.autoDeleteTime(autoDeleteTime?.applyValue({ args0 -> args0 }))
.autoDeleteTtl(autoDeleteTtl?.applyValue({ args0 -> args0 }))
.idleDeleteTtl(idleDeleteTtl?.applyValue({ args0 -> args0 }))
.idleStartTime(idleStartTime?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkflowTemplatePlacementManagedClusterConfigLifecycleConfigArgs].
*/
@PulumiTagMarker
public class WorkflowTemplatePlacementManagedClusterConfigLifecycleConfigArgsBuilder internal constructor() {
private var autoDeleteTime: Output? = null
private var autoDeleteTtl: Output? = null
private var idleDeleteTtl: Output? = null
private var idleStartTime: Output? = null
/**
* @param value The time when cluster will be auto-deleted (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json)).
*/
@JvmName("mcpkvfujucwpieyx")
public suspend fun autoDeleteTime(`value`: Output) {
this.autoDeleteTime = value
}
/**
* @param value The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json)).
*/
@JvmName("olslnvabewbkvvii")
public suspend fun autoDeleteTtl(`value`: Output) {
this.autoDeleteTtl = value
}
/**
* @param value The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json).
*/
@JvmName("mtknlldfwiljxmmr")
public suspend fun idleDeleteTtl(`value`: Output) {
this.idleDeleteTtl = value
}
/**
* @param value Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json)).
*/
@JvmName("uerfywlbedhpaqov")
public suspend fun idleStartTime(`value`: Output) {
this.idleStartTime = value
}
/**
* @param value The time when cluster will be auto-deleted (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json)).
*/
@JvmName("ornbxmbvnuckxbuk")
public suspend fun autoDeleteTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.autoDeleteTime = mapped
}
/**
* @param value The lifetime duration of cluster. The cluster will be auto-deleted at the end of this period. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json)).
*/
@JvmName("cvihkufrfqvldhoj")
public suspend fun autoDeleteTtl(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.autoDeleteTtl = mapped
}
/**
* @param value The duration to keep the cluster alive while idling (when no jobs are running). Passing this threshold will cause the cluster to be deleted. Minimum value is 5 minutes; maximum value is 14 days (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json).
*/
@JvmName("sevfmjdfpifbjtfj")
public suspend fun idleDeleteTtl(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.idleDeleteTtl = mapped
}
/**
* @param value Output only. The time when cluster became idle (most recent job finished) and became eligible for deletion due to idleness (see JSON representation of [JSON Mapping - Language Guide (proto 3)](https://developers.google.com/protocol-buffers/docs/proto3#json)).
*/
@JvmName("wspjqmdmsvcepsuo")
public suspend fun idleStartTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.idleStartTime = mapped
}
internal fun build(): WorkflowTemplatePlacementManagedClusterConfigLifecycleConfigArgs =
WorkflowTemplatePlacementManagedClusterConfigLifecycleConfigArgs(
autoDeleteTime = autoDeleteTime,
autoDeleteTtl = autoDeleteTtl,
idleDeleteTtl = idleDeleteTtl,
idleStartTime = idleStartTime,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy