All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigLifecycleConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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.ClusterClusterConfigLifecycleConfigArgs.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.
 * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
 * Example: "2014-10-02T15:01:23.045123456Z".
 * - - -
 * @property idleDeleteTtl The duration to keep the cluster alive while idling
 * (no jobs running). After this TTL, the cluster will be deleted. Valid range: [10m, 14d].
 * @property idleStartTime Time when the cluster became idle
 * (most recent job finished) and became eligible for deletion due to idleness.
 */
public data class ClusterClusterConfigLifecycleConfigArgs(
    public val autoDeleteTime: Output? = null,
    public val idleDeleteTtl: Output? = null,
    public val idleStartTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigLifecycleConfigArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigLifecycleConfigArgs.builder()
            .autoDeleteTime(autoDeleteTime?.applyValue({ args0 -> args0 }))
            .idleDeleteTtl(idleDeleteTtl?.applyValue({ args0 -> args0 }))
            .idleStartTime(idleStartTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterClusterConfigLifecycleConfigArgs].
 */
@PulumiTagMarker
public class ClusterClusterConfigLifecycleConfigArgsBuilder internal constructor() {
    private var autoDeleteTime: Output? = null

    private var idleDeleteTtl: Output? = null

    private var idleStartTime: Output? = null

    /**
     * @param value The time when cluster will be auto-deleted.
     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
     * Example: "2014-10-02T15:01:23.045123456Z".
     * - - -
     */
    @JvmName("tujvwposfxigtjsl")
    public suspend fun autoDeleteTime(`value`: Output) {
        this.autoDeleteTime = value
    }

    /**
     * @param value The duration to keep the cluster alive while idling
     * (no jobs running). After this TTL, the cluster will be deleted. Valid range: [10m, 14d].
     */
    @JvmName("ihhdhniekdoouxex")
    public suspend fun idleDeleteTtl(`value`: Output) {
        this.idleDeleteTtl = value
    }

    /**
     * @param value Time when the cluster became idle
     * (most recent job finished) and became eligible for deletion due to idleness.
     */
    @JvmName("ndcumwddliyfxdgr")
    public suspend fun idleStartTime(`value`: Output) {
        this.idleStartTime = value
    }

    /**
     * @param value The time when cluster will be auto-deleted.
     * A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds.
     * Example: "2014-10-02T15:01:23.045123456Z".
     * - - -
     */
    @JvmName("nhjpvvudgwyqnrjy")
    public suspend fun autoDeleteTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoDeleteTime = mapped
    }

    /**
     * @param value The duration to keep the cluster alive while idling
     * (no jobs running). After this TTL, the cluster will be deleted. Valid range: [10m, 14d].
     */
    @JvmName("ccmecpypttngajmw")
    public suspend fun idleDeleteTtl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idleDeleteTtl = mapped
    }

    /**
     * @param value Time when the cluster became idle
     * (most recent job finished) and became eligible for deletion due to idleness.
     */
    @JvmName("glxvsqjiggccwnlq")
    public suspend fun idleStartTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idleStartTime = mapped
    }

    internal fun build(): ClusterClusterConfigLifecycleConfigArgs =
        ClusterClusterConfigLifecycleConfigArgs(
            autoDeleteTime = autoDeleteTime,
            idleDeleteTtl = idleDeleteTtl,
            idleStartTime = idleStartTime,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy